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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var eG,W2L,msZ,bv,qs,rzL,oR,lv,$9,pQ,qLL,Rcz,yK,F2Z,XZv,TS,wZR,DsK,SLK,me,lgS,ZQQ,kSK,jRZ,Cvv,wB,vU,lh,$v,TGD,kv,JzR,jP,fr,OS,OQR,hk,Kr,sRG,Pvc,VGD,No,YLK,eT,zcc,bg,iQ9,mU,Us2,Az2,eNQ,fC,tPG,brc,moR,rkK,qSL,nC,NGL,yw,dsK,Weg,wUc,ckK,vvz,M9,GZv,Do9,SSD,BBQ,lDv,Zr2,pUK,EB,Chg,fDL,TBv,MPL,syG,N9,bn,hNQ,irG,Rp,YSS,EvR,Uos,Fd,LeG,QS,ovQ,Ip,wl,vR,Xd,GV,doS,Akc,NBD,ln,WUZ,eQK,tTL,m9v,bCs,jK,rSD,qBz,BR,Q$9,FUK,gl,IM9,cS9,xE,BES,aMG,olL,lMG,ZCL,CgQ,puK,he,KO,fMg,TE9,JSG,s$9,VTR,ASv,eyK,qwQ,qt,QpG,XR2,am,uF,
c7,D1,S5,yE,CF,nF,GVs,sV,SwD,lQD,zy,UV,$SR,AK,Nt,Wa,ed,pRQ,yez,jpz,Cns,nEL,fQD,gEL,Tlz,Jeg,OOQ,RG,r9,MKK,spG,hyz,Kfc,HOG,Png,ca,iOg,va,GE,DV,Sd,ZV,zyg,$P,Lfv,WTD,pP,eOG,t5s,bFK,jd,mtv,rKG,CP,nP,Qmc,g9,I1z,a1G,TE,uhD,w7G,cKc,vNQ,GyQ,DtR,Od,SVg,BRs,MY,oNs,l19,sd,hG,Pa,Vh,ZFQ,kyG,$tc,i8,yKR,jmD,CFZ,zE,LP,Ed,AG,NY,d9,WK,nN9,f12,gNG,TRQ,JKK,xtc,OFR,M5s,smv,hOQ,HFZ,tD,KTs,PFD,r6,V5D,RD,QO,iFG,Utc,LTS,ENv,NRg,dtg,WkQ,mYL,rG9,qdR,ReD,QGZ,FkK,Xa2,uYv,ID,cGc,vPK,GE9,DYG,SdG,B9S,lVL,JGv,xYS,OP9,sGz,heR,BK,HPS,
oD,YdL,zev,UYD,LkR,EPR,AGD,N9R,dYc,p8,ePs,VdQ,tHD,b8S,mL9,rDZ,qEv,RPz,QD2,F_G,XK9,wKK,aR2,vJR,uUs,cDL,SEL,B6D,oJG,GaG,Z8g,DLS,kaz,HK,pKG,K8,VO,yDQ,CNv,nJz,T6g,VHv,xLQ,JDG,MHZ,hPK,O8c,UL9,YEK,L_s,EJc,ADR,N6L,dLz,eFG,WEs,thc,b3c,mcG,rE2,RFc,FEZ,XXD,IAD,wXc,aAL,kgS,AD,pXG,jhc,CQR,naK,fAQ,ga9,JES,xcS,O3c,mE,r$,MhR,PQG,Fz,Xz,zFz,Ucz,m5K,wf9,cX,gKQ,TPG,MCS,x5G,OhG,lQ,sbG,hiG,KJv,Ppg,VC9,ihR,Y0G,ziR,U5Z,EKR,AOc,d5L,NP9,tmc,f3,xa,mDD,rJS,qtS,RTD,QAG,F7s,IbQ,wOZ,ab2,EJ,Nc,d$,pOs,yJ2,tO,CVZ,nqc,bp,gqZ,fbL,
K7s,PVL,VmQ,YtG,EqD,NMG,dDS,WnL,eZQ,bKZ,rQG,qiv,Rb,Xiz,wi9,ueR,cQD,vwc,GJs,aKG,FnZ,Q_g,F0,RZD,Dzg,B8s,$z9,lKG,ab,piZ,j_G,CGS,nwG,fKs,GQ,gwG,JQg,T8D,xzG,MeG,Bf,YiK,Uzv,EwS,N8Z,Z2,WxD,ph,jC,yk,mIS,dzz,r7D,gP,Fxg,M5,a3L,c7G,GmK,DIg,SHs,hO,BTQ,onG,l39,$Ic,kmK,pHG,y7z,CaG,Kh,nng,f3L,Vk,zQ,J7s,xIZ,O_G,Lh,h_v,H_G,Pav,tJ,Lxs,En9,A7v,NTQ,dIv,RA,Fx,Xx,rC2,IA,qmK,Rbv,Qzg,FGv,Its,atQ,X32,wM,uTz,vM2,uV,cC2,GT2,w3s,DqR,vO,BQL,oMD,ltS,ZJs,kTS,$qG,p3c,CeG,yCD,ftZ,MIv,hbK,HJZ,Pec,YmR,iJR,VIK,zbG,LGg,ACG,EMc,dqQ,WYD,
erg,tvz,b1S,Ct,FYR,QQz,XT9,IoS,ft,gM,aoG,uwc,vSQ,ScQ,oSD,BsQ,ND,loK,cAG,CU9,nSG,foz,bG,gSL,JAL,Mv2,H1R,hr9,i1z,Ycg,zrD,UnD,ESK,epZ,AA2,dn2,W$K,tVc,bc2,rjK,mgD,RpG,qT2,ci,QBG,XFQ,IZS,cjv,ZK,$w,v4v,G42,kw,o42,CK,nK,fK,k49,g8,jBz,xw,Ckv,n4Q,fZS,g4K,si,T3D,xgZ,OcS,sBv,HcQ,VVD,YTG,AQ,zpz,Ug9,L$9,E4S,Ajc,N3R,dgL,W1z,WH,beG,m2s,ryR,q6v,RfR,QTD,F1L,X6c,I8K,a89,w6Q,u5Q,cyZ,Qf,yyv,jT2,F3,X3,IM,CcD,nhG,f8R,ghZ,TyL,Jys,x2L,HeG,K1G,PcG,Vz2,ies,cH,Gm,D3,SJ,Z3,$n,kn,zfz,C_,L1S,n_,Ehc,AyZ,f_,Nyg,d2D,WlQ,Flv,IN2,
vgL,BOG,Sbg,XmQ,og9,$fz,s1G,ngD,Vwc,ggg,PXL,iGK,MI,zoG,h7,Ll9,EgS,NO9,df9,WVG,tfs,PH,muR,r8Q,qrL,RLQ,QX2,FVG,XwG,bBv,ww2,uuS,c82,ia,oQ9,la2,BDK,$uD,kiL,y8L,jXR,pwR,xus,Mfs,hLZ,KVK,eI,UuD,zLZ,duv,esK,tBG,bDR,mNG,rc9,qzD,XT,ccZ,GFR,wGg,a0L,vtR,QHD,Szc,nt9,l0D,ZDc,$NK,HDD,PlS,hsL,LZS,sHD,Rsv,UND,otQ,Clg,KZL,DNg,XGG,FZg,I0G,uBz,MBL,jI,XgD,ajc,wgc,u1G,c_Z,$kS,n5K,fjD,sm,TAg,O4R,H4Q,hm2,PLG,Vgs,YDZ,UkG,zmG,Lug,Em,E5G,A_G,dkQ,NA9,AC,rpQ,mA2,ba2,FML,qZQ,XeK,Q5G,ITQ,dQ,aT9,vDg,u62,cpQ,DAg,oDS,bU,$AQ,lTK,k2L,
CtK,nDK,TdK,xAz,RQ,QH,hKG,Hav,Fw,Xw,KML,IQ,aQ,Pt2,ws,VNZ,uU,iaG,YZg,vT,zKS,UAD,LML,EDK,ApK,dAD,Nd2,exv,mV2,bUG,rvD,qQK,Wg9,RxK,XSD,FgS,tXG,I_L,a_K,oQ,wSG,cvD,uXS,vbz,GzD,SQc,DVs,BNS,Zo,l_Z,ZUG,obv,kzz,pS2,jvc,gbG,xVz,HUz,iUQ,$S,UVR,LgL,kS,Eb9,C1,n1,tS9,yH,Tk,bvK,mZS,qRG,Rlz,FFs,IHz,aHG,wLG,uZS,G_G,lHD,BkL,vL2,ZvD,$Zc,Mn,oLR,k_z,HT,pLK,y3G,jwK,C0v,TkL,nLz,gLZ,MSc,sws,VSD,P0Q,zlG,dZg,WzS,tjG,mwG,riS,RHz,Q4G,FzG,InR,ans,wN9,vB9,B0K,oBG,GLQ,Zns,kLR,$wK,lnQ,pNQ,j4Z,CCc,nBR,fnK,gBG,WF,eV,m$,qg,xw9,OnQ,
s4Q,KzR,RB,Q5,PC9,Fr,YlL,zHz,UwS,IB,dwQ,bYG,rsL,qqZ,RzL,QP2,FcS,aIZ,w3,wb2,v2R,uk,G9L,B2K,o2K,lIS,Sqc,jPR,fIQ,CIZ,g2K,x7Q,MuR,hzK,VuS,PIR,U72,SV,LcQ,E2G,BF,AsG,oB,N22,d7v,W5g,tQz,eSK,bdK,mWK,rtG,q8R,w9K,ctZ,GXG,vV9,X9G,QtS,S8s,oV9,p9v,ytD,nVG,Odg,stv,k4,hSg,K5G,PDs,idQ,L52,NjQ,e1R,tFv,bVs,m3L,F6D,rnL,wqv,up9,vr2,jV,D3g,SXL,BuK,orG,lYD,ZVz,$3v,pqQ,ynG,g3,jr9,Cj9,fYD,Jj,nrR,Tug,MFv,Mg,sr9,h1v,HVv,VF2,iV9,K6D,z1Q,AnK,NuR,d3K,ik,WDR,mRG,rFQ,Lc,Q8v,qxD,R6v,Xh2,a6L,whG,GRR,BUG,Sxs,DRZ,oZD,ZHS,$Rz,CzZ,kR2,
nZD,gZG,f6D,s8G,KDg,Vo2,YxG,EZK,bMG,rqZ,q5g,X_2,a5G,ne,hy,D_L,l5G,ocG,$_c,kMc,yqg,p_G,j3G,C9v,H6,Gqc,S59,ZMK,BLZ,M2,gcQ,TLL,JqZ,x_R,OMK,MLS,s3Q,hIv,dy,HMQ,Wm,Kmg,P9G,VLc,iMv,bX,Y5Z,Lmc,Aqg,NLQ,rBG,RDK,QZD,FKR,Icz,acR,a1,uID,cBs,vFc,Ghs,DG2,SUR,oFZ,ZsG,kh2,pQK,gFg,nF2,TJS,Osz,MAc,Sw,sZv,hDg,HsD,Bf9,lJ9,oGL,$Uc,pMv,ZN,jUG,C$L,yXc,nG2,fJG,TfR,xUK,JX2,OxS,gGG,M3v,sU2,h99,HxG,KWG,P$R,V3K,ixG,Y4R,LW9,UUS,EGR,Nfz,AXv,$g,dUG,tOZ,qWG,WOc,RkZ,Q79,FOQ,XzD,Jm,SWD,BvQ,lhG,ZfL,Mf,yrD,fhZ,Tvv,sb,MOs,OfQ,s7G,KG,
hk9,Hfv,KOZ,VOG,ifR,YWR,zkG,LOG,EiZ,qjD,t8D,mrK,Q02,RYL,FwG,X2G,aB2,uWG,v0g,DrZ,j0v,fBG,TSL,J2L,xrQ,O5Q,M8L,hYZ,H5v,V82,i5D,YjZ,zYz,UrL,LwZ,E0D,A2G,WyK,mQ2,ef,t8,bm,mV,rhc,RX,RdS,v62,lUG,Bts,seg,hdg,HTZ,FyD,chz,aUc,PTv,V1G,iTv,DQc,zdG,Lyz,AhK,WIc,e8L,oX,$Q,kQ,QjZ,R8R,azR,w4G,lzS,$MS,p4z,yHG,nyL,gyg,fzR,xMG,M$Z,i7R,Pwv,h8c,V$K,H7K,YPc,Ey9,Hw,rNv,t_D,RgG,QEL,XlL,IS9,Pw,aSc,cNS,GxQ,D$G,BWK,SpK,YQ,pls,Nu,jEQ,CZD,WG,nOc,fSg,gOR,TW9,JNv,x$Z,OuG,M_L,sEZ,hg2,HuS,Ktv,PZD,V_9,iuS,eB,YpL,zg9,U$G,LtL,EOD,ANR,
NWD,d$2,WjZ,e7S,ttL,b2z,bl,rx9,R7G,FjK,a4K,cxc,vIS,GC9,SyG,oIv,l4K,Z2L,IH,jLK,pCS,CRz,nIG,f49,JxS,xvG,O2Q,sLS,Z0,H2G,oH,PRS,Vts,$t,i2D,Yys,z7G,Uv9,pD,NFG,W4G,raG,mXS,RUz,QVD,TF,F4S,XAc,a7Q,uVG,caQ,GPc,DX9,wAs,SvZ,$Xg,jVg,C4L,Jc,noG,f7v,Ozz,goD,Jaz,xXR,P4c,sVZ,VU2,YvQ,UXZ,L4Z,Eos,Aa9,NrD,dXc,e$v,t2D,byZ,mig,rMg,R$R,F3S,aq9,ves,Seg,oeQ,$iv,KD,kps,pBv,yM2,jCD,COK,fqL,geD,Tcz,JM9,xic,OyZ,M22,sCD,h$2,HyG,K3G,V2v,POQ,z$2,L3v,il,Eez,diG,Ncc,zF,trR,bL2,mEL,RuQ,XVg,Fac,q3Z,wVZ,aGg,DEv,uSQ,dz,vWg,k7G,oW9,lGL,
ZLG,$EQ,pVc,ju2,yUS,Wg,eg,xEL,nW9,JUc,TXc,fG2,gWQ,suR,HLL,PB2,Ka9,zuv,Y3R,EWZ,AU9,dE9,WoD,NXD,eAZ,bAR,tsc,rbs,QSv,F1,Fov,Xvc,wvD,DKK,$K9,Io,pvs,nRQ,Jbv,Tgz,fyG,gRS,vg,sSL,xKg,OAK,hAs,KoG,HAQ,iAL,Y22,UKv,Lo2,ER2,Ab2,NgL,WH2,eJD,C4,bjG,f4,meG,QJL,FHL,x5,XWK,apv,ou9,Hg,vuc,BZD,GND,DeS,kNK,pWc,$eG,y1D,jJZ,guR,Cfg,TZK,J1Z,Pg,Ojz,MaL,sJD,xeG,Y5,hJQ,Ve,Vav,A1g,NZz,dev,WXD,e2v,tMD,qo9,mP9,rTK,b$R,QNR,Ims,uPG,cT9,GwG,BbD,DPg,So2,oAQ,Z$z,$PG,kwL,p$G,yT9,jNK,nAv,We,fmv,JTv,Tbs,O$s,xP9,MMG,sNZ,h22,tp,KXZ,dPv,
ATZ,tYz,blZ,F8G,XYD,IsG,asZ,wYZ,uMZ,Gbz,D6v,SFg,B7S,Zlz,$6D,kbQ,pYZ,y6Z,jx2,CAS,nXR,fsL,gXG,J6G,x6L,Olc,haL,K8L,YFG,ilz,VYv,PAc,EXD,U6R,N72,WPR,e0R,tEv,lt,bS2,myc,rLL,FPZ,qaG,XJz,R0s,IvD,pa,avZ,wJv,ufc,QkS,cLs,BYs,lvL,ok9,Ca,ZSS,$y2,kdG,pJS,yLg,jkD,nkG,fvz,gkc,TYz,OSL,xyR,KPL,JLL,fa,Prz,MEL,HSR,YaG,UyS,dys,ALR,NY9,EkQ,LPZ,sZ,WNG,t02,bNG,m4Z,rYG,q1G,IEc,QWc,RBS,FNv,lES,BVG,XES,S1c,CPL,n_K,fE2,g_D,TVD,JYS,x4K,ONG,hB2,KNQ,V0G,Y1G,zBQ,U4v,NVg,AYv,d4D,eqg,qV,mhL,rdG,qOs,Rq9,Qv,FX,X5D,w52,SO9,ZXD,$hD,kAG,
p5L,ydS,j2Z,nCL,gCz,fWc,TKL,xhS,OX9,Mkc,s2L,hqD,HX9,uJ,KLZ,LL9,ECv,YOv,iX2,UhK,zqL,mls,ewQ,Gz,rW2,qAQ,Rws,QYc,FRs,XDs,ICD,aCK,wDs,cWK,GOS,SAg,odZ,ZwS,yWc,jYg,CWz,gdQ,fCL,ndc,TxQ,JWs,OwG,MDK,sYG,hwL,Z_,KRR,PWg,VDc,YAg,iw2,zwc,LR9,Nxv,dlZ,Wdz,eRZ,ty9,m1G,r5v,bbZ,IlK,alv,uO9,wjc,c5Z,D1Q,S9S,B19,osz,ZbD,llG,kBD,flK,nsS,T1Z,J5S,x1G,Hb2,Kd9,PdZ,VyG,zR9,U1s,A5v,d19,N1S,WAS,PS,ehs,t72,biG,mTR,QKv,Rhc,FAL,XrR,aXR,wr2,vHS,DT9,SM2,BHD,oHZ,lXG,Ziv,$TS,k8s,prG,yRg,CuL,jKg,nHv,fX9,gHQ,THg,JRg,xTG,Oiv,sKz,hhS,M7Q,
EQ,PuR,V72,iiv,YMv,zhz,LAZ,NHR,dTv,W0g,eMG,t9D,bWZ,r49,q_9,Q62,XpD,akG,vjL,uF9,wpg,c4G,G5D,DFv,S_Z,lk9,ZW2,$F9,pp2,y49,j6v,njg,gjg,C2g,Thz,J4G,xFv,OWQ,M9S,s69,HWQ,hMs,K0G,P2Q,V9z,iW2,UFD,L0z,EjZ,A4v,Nhg,dFK,W9Z,b99,mCs,et9,t6R,Qgs,F9G,Qg,ujv,clK,Goc,BiG,S7K,o3S,lFK,FZ,u0,$Cz,koG,G_,DH,CEc,p0S,ylz,g3G,xCv,M6G,sgL,htz,H9R,K9G,V6G,i9v,Y7s,ztv,UCQ,L9v,E3Q,ow,AlZ,Ni2,ZH,dCR,WhZ,eWL,tRS,bqG,mOQ,pv,yg,rwR,qNZ,jS,RWG,Q9S,Fhs,XtG,aOg,wtS,cwZ,BmK,SNv,DOs,oTK,lOc,j9R,kUz,pt9,$OZ,yw2,nv,fO9,gTR,TmG,Jws,xOz,MRQ,
Kh9,hWS,fv,s9R,zWg,LhQ,ETK,AwG,NmQ,dOK,enz,txK,bpc,mHg,qIL,Rnz,Qd2,XPz,IiS,wPg,u7Q,SIZ,opG,BoQ,ZpQ,jdv,CbQ,np9,fiv,Toz,Ops,MZ,h3,sR,Mx2,sdz,hnG,Hpz,PbG,VxS,ipG,YIg,UHc,Epc,AIc,NoR,HL,dHK,eVG,tlg,b0v,qh2,RV2,Kv,PL,Xd9,QcS,wdg,I99,ugc,i0,vfQ,GWS,BCg,l9s,YL,$mg,kWg,pdL,yoQ,jcz,C1Z,nfv,gfZ,O0z,MlD,H0z,scK,hVR,KSg,Yhs,P1v,i0S,zVs,Umv,LSg,NCQ,dmD,Ws2,e3G,tnG,QOv,R3S,u9G,GcR,ej,DbK,yE9,SkQ,Be2,lPR,$bZ,kcD,g8G,TeS,qw,JgL,xbK,OZK,sOc,h3K,KsS,Vns,HZD,PoD,Yk2,iZv,E8S,Ub2,AgR,Ne9,db2,WvG,eCG,bgs,ti2,RCG,Xcc,
QFL,IfG,afQ,wcR,Xq,uoZ,cVG,a4,GGv,v$D,Dx2,SKR,o$G,lf9,$xD,kGD,pcG,yVQ,jFc,ffG,JVL,Mis,Og9,sFc,hCv,P3g,dxs,zCL,e4L,tpS,mJS,r$v,FiK,axK,us2,c$Q,v7G,DJL,SnK,Bas,o7D,lxK,ZRv,$Jz,p8L,C5G,n72,fxD,g7v,xJS,J$G,h4K,HRG,KiK,UJs,Ync,LiG,E7R,A$s,dJG,nn,evQ,Ji,bIG,r92,qgL,ILs,wn9,G$K,Sg9,BpQ,lLD,ZIZ,$0S,pnv,jnG,Cxc,fLc,J9S,TpS,gYZ,hi,OIK,x0R,MWL,snR,hvG,HI2,KQ9,Px2,VWv,YgK,zv9,U0Z,LQ9,EYg,A92,NpK,d0S,Wpv,t4c,bEg,Iwv,aw2,woG,uGS,cuv,Dj9,zL,$jZ,ktG,pos,yuz,jlQ,Ul,Ln,AE,Ai,d0,OEG,HEK,PMK,Kpz,Wb,V4s,iER,VKG;
_.WZ=function(W,e){if(Error.captureStackTrace)Error.captureStackTrace(this,_.WZ);else{var t=Error().stack;t&&(this.stack=t)}W&&(this.message=String(W));e!==void 0&&(this.cause=e)};
eG=function(){throw Error("B");};
W2L=function(W,e){e=String.fromCharCode.apply(null,e);return W==null?e:W+e};
msZ=function(W){var e=!1;e=e===void 0?!1:e;if(ecK){if(e&&(tGQ?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("C");W=(bQs||(bQs=new TextEncoder)).encode(W)}else{for(var t=0,b=new Uint8Array(3*W.length),m=0;m<W.length;m++){var q=W.charCodeAt(m);if(q<128)b[t++]=q;else{if(q<2048)b[t++]=q>>6|192;else{if(q>=55296&&q<=57343){if(q<=56319&&m<W.length){var Q=W.charCodeAt(++m);if(Q>=56320&&Q<=57343){q=(q-55296)*1024+Q-56320+65536;b[t++]=q>>18|
240;b[t++]=q>>12&63|128;b[t++]=q>>6&63|128;b[t++]=q&63|128;continue}else m--}if(e)throw Error("C");q=65533}b[t++]=q>>12|224;b[t++]=q>>6&63|128}b[t++]=q&63|128}}W=t===b.length?b:b.subarray(0,t)}return W};
bv=function(W){_.tz.setTimeout(function(){throw W;},0)};
_.m2=function(W,e){return W.lastIndexOf(e,0)==0};
qs=function(W,e){var t=W.length-e.length;return t>=0&&W.indexOf(e,t)==t};
_.QK=function(W){return/^[\s\xa0]*$/.test(W)};
_.XD=function(W,e){return W.indexOf(e)!=-1};
_.IR=function(W,e){return _.XD(W.toLowerCase(),e.toLowerCase())};
_.cZ=function(W,e){var t=0;W=aR(String(W)).split(".");e=aR(String(e)).split(".");for(var b=Math.max(W.length,e.length),m=0;t==0&&m<b;m++){var q=W[m]||"",Q=e[m]||"";do{q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];Q=/(\d*)(\D*)(.*)/.exec(Q)||["","","",""];if(q[0].length==0&&Q[0].length==0)break;t=rzL(q[1].length==0?0:parseInt(q[1],10),Q[1].length==0?0:parseInt(Q[1],10))||rzL(q[2].length==0,Q[2].length==0)||rzL(q[2],Q[2]);q=q[3];Q=Q[3]}while(t==0)}return t};
rzL=function(W,e){return W<e?-1:W>e?1:0};
_.vZ=function(){var W=_.tz.navigator;return W&&(W=W.userAgent)?W:""};
oR=function(W){if(!Dg||!SG)return!1;for(var e=0;e<SG.brands.length;e++){var t=SG.brands[e].brand;if(t&&_.XD(t,W))return!0}return!1};
lv=function(W){return _.XD(_.vZ(),W)};
$9=function(){return Dg?!!SG&&SG.brands.length>0:!1};
pQ=function(){return $9()?!1:lv("Opera")};
qLL=function(){return $9()?!1:lv("Trident")||lv("MSIE")};
Rcz=function(){return $9()?oR("Microsoft Edge"):lv("Edg/")};
yK=function(){return lv("Firefox")||lv("FxiOS")};
_.gG=function(){return lv("Safari")&&!(_.nQ()||($9()?0:lv("Coast"))||pQ()||($9()?0:lv("Edge"))||Rcz()||($9()?oR("Opera"):lv("OPR"))||yK()||lv("Silk")||lv("Android"))};
_.nQ=function(){return $9()?oR("Chromium"):(lv("Chrome")||lv("CriOS"))&&!($9()?0:lv("Edge"))||lv("Silk")};
_.QRc=function(){return lv("Android")&&!(_.nQ()||yK()||pQ()||lv("Silk"))};
F2Z=function(W){var e={};W.forEach(function(t){e[t[0]]=t[1]});
return function(t){return e[t.find(function(b){return b in e})]||""}};
XZv=function(W){var e=_.vZ();if(W==="Internet Explorer"){if(qLL())if((W=/rv: *([\d\.]*)/.exec(e))&&W[1])e=W[1];else{W="";var t=/MSIE +([\d\.]+)/.exec(e);if(t&&t[1])if(e=/Trident\/(\d.\d)/.exec(e),t[1]=="7.0")if(e&&e[1])switch(e[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=t[1];e=W}else e="";return e}var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");t=[];for(var m;m=b.exec(e);)t.push([m[1],m[2],m[3]||void 0]);
e=F2Z(t);switch(W){case "Opera":if(pQ())return e(["Version","Opera"]);if($9()?oR("Opera"):lv("OPR"))return e(["OPR"]);break;case "Microsoft Edge":if($9()?0:lv("Edge"))return e(["Edge"]);if(Rcz())return e(["Edg"]);break;case "Chromium":if(_.nQ())return e(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&yK()||W==="Safari"&&_.gG()||W==="Android Browser"&&_.QRc()||W==="Silk"&&lv("Silk")?(e=t[2])&&e[1]||"":""};
_.Igg=function(W){if($9()&&W!=="Silk"){var e=SG.brands.find(function(t){return t.brand===W});
if(!e||!e.version)return NaN;e=e.version.split(".")}else{e=XZv(W);if(e==="")return NaN;e=e.split(".")}return e.length===0?NaN:Number(e[0])};
TS=function(){return Dg?!!SG&&!!SG.platform:!1};
_.ag9=function(){return TS()?SG.platform==="Android":lv("Android")};
wZR=function(){return lv("iPhone")&&!lv("iPod")&&!lv("iPad")};
_.Jz=function(){return wZR()||lv("iPad")||lv("iPod")};
_.uDv=function(){return TS()?SG.platform==="macOS":lv("Macintosh")};
_.czv=function(){return TS()?SG.platform==="Windows":lv("Windows")};
_.v99=function(){return TS()?SG.platform==="Chrome OS":lv("CrOS")};
_.OL=function(W){return W[W.length-1]};
_.Ms=function(W,e,t){e=_.GSL(W,e,t);return e<0?null:typeof W==="string"?W.charAt(e):W[e]};
_.GSL=function(W,e,t){for(var b=W.length,m=typeof W==="string"?W.split(""):W,q=0;q<b;q++)if(q in m&&e.call(t,m[q],q,W))return q;return-1};
DsK=function(W){for(var e=_.sL,t=typeof W==="string"?W.split(""):W,b=W.length-1;b>=0;b--)if(b in t&&e.call(void 0,t[b],b,W))return b;return-1};
_.PZ=function(W,e){return _.HZ(W,e)>=0};
_.Y9=function(W,e){_.PZ(W,e)||W.push(e)};
_.UL=function(W,e){e=_.HZ(W,e);var t;(t=e>=0)&&_.zS(W,e);return t};
_.zS=function(W,e){Array.prototype.splice.call(W,e,1)};
_.EL=function(W){var e=W.length;if(e>0){for(var t=Array(e),b=0;b<e;b++)t[b]=W[b];return t}return[]};
_.dG=function(W,e){for(var t=1;t<arguments.length;t++){var b=arguments[t];if(_.Ns(b)){var m=W.length||0,q=b.length||0;W.length=m+q;for(var Q=0;Q<q;Q++)W[m+Q]=b[Q]}else W.push(b)}};
_.BGc=function(W,e,t,b){Array.prototype.splice.apply(W,SLK(arguments,1))};
SLK=function(W,e,t){return arguments.length<=2?Array.prototype.slice.call(W,e):Array.prototype.slice.call(W,e,t)};
me=function(W,e){e=e||W;for(var t=0,b=0,m={};b<W.length;){var q=W[b++],Q=_.tk(q)?"o"+_.bh(q):(typeof q).charAt(0)+q;Object.prototype.hasOwnProperty.call(m,Q)||(m[Q]=!0,e[t++]=q)}e.length=t};
_.o9K=function(W,e,t){t=t||_.rB;for(var b=0,m=W.length,q;b<m;){var Q=b+(m-b>>>1);var X=t(e,W[Q]);X>0?b=Q+1:(m=Q,q=!X)}return q?b:-b-1};
_.Q8=function(W,e,t){if(!_.Ns(W)||!_.Ns(e)||W.length!=e.length)return!1;var b=W.length;t=t||lgS;for(var m=0;m<b;m++)if(!t(W[m],e[m]))return!1;return!0};
_.rB=function(W,e){return W>e?1:W<e?-1:0};
lgS=function(W,e){return W===e};
ZQQ=function(W,e,t){e=Array.prototype.splice.call(W,e,1);Array.prototype.splice.call(W,t,0,e[0])};
kSK=function(W){return $sR[W]||""};
jRZ=function(W){if(!pZL)return _.Xb(W);W=yzS.test(W)?W.replace(yzS,kSK):W;W=atob(W);for(var e=new Uint8Array(W.length),t=0;t<W.length;t++)e[t]=W.charCodeAt(t);return e};
Cvv=function(W,e){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=e};
_.Iy=function(W){W=Error(W);Cvv(W,"warning");return W};
wB=function(W,e){if(W!=null){var t;var b=(t=n9L)!=null?t:n9L={};t=b[W]||0;t>=e||(b[W]=t+1,W=Error(),Cvv(W,"incident"),bv(W))}};
vU=function(W,e,t){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(t===void 0?0:t)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():e};
lh=function(W,e){BU||_.oy in W||fgZ(W,g9z);W[_.oy]|=e};
$v=function(W,e){BU||_.oy in W||fgZ(W,g9z);W[_.oy]=e};
TGD=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
kv=function(W){lh(W,34);return W};
JzR=function(W){lh(W,32);return W};
jP=function(){return typeof BigInt==="function"};
fr=function(W,e){return e===void 0?W.copyOnWrite!==Cr&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.oy]|0)):!!(2&e)&&W.copyOnWrite!==Cr};
_.xv=function(W,e){if(W!=null)if(typeof W==="string")W=W?new gB(W,TZ):_.Jk();else if(W.constructor!==gB)if(xsD&&W!=null&&W instanceof Uint8Array)W=W.length?new gB(new Uint8Array(W),TZ):_.Jk();else{if(!e)throw Error();W=void 0}return W};
OS=function(W,e){if(typeof e!=="number"||e<0||e>=W.length)throw Error();};
OQR=function(W,e,t){var b=e&128?0:-1,m=W.length,q;if(q=!!m)q=W[m-1],q=q!=null&&typeof q==="object"&&q.constructor===Object;var Q=m+(q?-1:0);for(e=e&128?1:0;e<Q;e++)t(e-b,W[e]);if(q){W=W[m-1];for(var X in W)!isNaN(X)&&t(+X,W[X])}};
hk=function(W){return W&128?Mo:void 0};
Kr=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
sRG=function(){var W=MG2;return Kr(function(e){for(var t in W)if(e===W[t]&&!/^[0-9]+$/.test(t))return!0;return!1})};
_.Yv=function(W){var e=W;if(hcS(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e));}else if(HQL(e)&&!Number.isSafeInteger(e))throw Error(String(e));return ih?BigInt(W):W=K2G(W)?W?"1":"0":hcS(W)?W.trim()||"0":String(W)};
Pvc=function(W,e){if(W.length>e.length)return!1;if(W.length<e.length||W===e)return!0;for(var t=0;t<W.length;t++){var b=W[t],m=e[t];if(b>m)return!1;if(b<m)return!0}};
VGD=function(W){var e=W>>>0;Lr=e;Ak=(W-e)/4294967296>>>0};
No=function(W){if(W<0){VGD(-W);var e=_.R(iQ9(Lr,Ak));W=e.next().value;e=e.next().value;Lr=W>>>0;Ak=e>>>0}else VGD(W)};
YLK=function(W,e){var t=e*4294967296+(W>>>0);return Number.isSafeInteger(t)?t:_.dB(W,e)};
eT=function(W,e){var t=e&2147483648;t&&(W=~W+1>>>0,e=~e>>>0,W==0&&(e=e+1>>>0));W=YLK(W,e);return typeof W==="number"?t?-W:W:t?"-"+W:W};
_.dB=function(W,e){e>>>=0;W>>>=0;if(e<=2097151)var t=""+(4294967296*e+W);else jP()?t=""+(BigInt(e)<<BigInt(32)|BigInt(W)):(t=(W>>>24|e<<8)&16777215,e=e>>16&65535,W=(W&16777215)+t*6777216+e*6710656,t+=e*8147497,e*=2,W>=1E7&&(t+=W/1E7>>>0,W%=1E7),t>=1E7&&(e+=t/1E7>>>0,t%=1E7),t=e+zcc(t)+zcc(W));return t};
zcc=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.tS=function(W,e){e&2147483648?jP()?W=""+(BigInt(e|0)<<BigInt(32)|BigInt(W>>>0)):(e=_.R(iQ9(W,e)),W=e.next().value,e=e.next().value,W="-"+_.dB(W,e)):W=_.dB(W,e);return W};
bg=function(W){if(W.length<16)No(Number(W));else if(jP())W=BigInt(W),Lr=Number(W&BigInt(4294967295))>>>0,Ak=Number(W>>BigInt(32)&BigInt(4294967295));else{var e=+(W[0]==="-");Ak=Lr=0;for(var t=W.length,b=e,m=(t-e)%6+e;m<=t;b=m,m+=6)b=Number(W.slice(b,m)),Ak*=1E6,Lr=Lr*1E6+b,Lr>=4294967296&&(Ak+=Math.trunc(Lr/4294967296),Ak>>>=0,Lr>>>=0);e&&(e=_.R(iQ9(Lr,Ak)),W=e.next().value,e=e.next().value,Lr=W,Ak=e)}};
iQ9=function(W,e){e=~e;W?W=~W+1:e+=1;return[W,e]};
mU=function(W){return Array.prototype.slice.call(W)};
_.Qw=function(W,e){throw Error(e===void 0?"unexpected value "+W+"!":e);};
_.FC=function(W){if(W!=null&&typeof W!=="number")throw Error("I`"+typeof W+"`"+W);return W};
_.XC=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
Us2=function(W){if(W!=null&&typeof W!=="boolean")throw Error("J`"+_.ug(W)+"`"+W);return W};
_.L2c=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.DM=function(W){switch(typeof W){case "bigint":return!0;case "number":return vu(W);case "string":return E9S.test(W);default:return!1}};
_.o$=function(W){if(!vu(W))throw _.Iy("enum");return W|0};
_.lg=function(W){return W==null?W:vu(W)?W|0:void 0};
Az2=function(W){if(typeof W!=="number")throw _.Iy("int32");if(!vu(W))throw _.Iy("int32");return W|0};
_.ZM=function(W){return W==null?W:Az2(W)};
_.$l=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return vu(W)?W|0:void 0};
_.pC=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return vu(W)?W>>>0:void 0};
eNQ=function(W){var e=0;e=e===void 0?0:e;if(!_.DM(W))throw _.Iy("int64");var t=typeof W;switch(e){case 512:switch(t){case "string":return yw(W);case "bigint":return String(CC(64,W));default:return NGL(W)}case 1024:switch(t){case "string":return dsK(W);case "bigint":return _.Yv(CC(64,W));default:return Weg(W)}case 0:switch(t){case "string":return yw(W);case "bigint":return _.Yv(CC(64,W));default:return nC(W)}default:return _.Qw(e,"Unknown format requested type for int64")}};
fC=function(W){return W==null?W:eNQ(W)};
tPG=function(W){if(W[0]==="-")return!1;var e=W.length;return e<20?!0:e===20&&Number(W.substring(0,6))<184467};
brc=function(W){var e=W.length;return W[0]==="-"?e<20?!0:e===20&&Number(W.substring(0,7))>-922337:e<19?!0:e===19&&Number(W.substring(0,6))<922337};
moR=function(W){if(W<0){No(W);var e=_.dB(Lr,Ak);W=Number(e);return gE(W)?W:e}e=String(W);if(tPG(e))return e;No(W);return YLK(Lr,Ak)};
rkK=function(W){if(brc(W))return W;bg(W);return _.tS(Lr,Ak)};
qSL=function(W){if(tPG(W))return W;bg(W);return _.dB(Lr,Ak)};
nC=function(W){W=T1(W);gE(W)||(No(W),W=eT(Lr,Ak));return W};
_.RNS=function(W){W=T1(W);return W>=0&&gE(W)?W:moR(W)};
NGL=function(W){W=T1(W);if(gE(W))W=String(W);else{var e=String(W);brc(e)?W=e:(No(W),W=_.tS(Lr,Ak))}return W};
_.QyG=function(W){W=T1(W);if(W>=0&&gE(W))W=String(W);else{var e=String(W);tPG(e)?W=e:(No(W),W=_.dB(Lr,Ak))}return W};
yw=function(W){var e=T1(Number(W));if(gE(e))return String(e);e=W.indexOf(".");e!==-1&&(W=W.substring(0,e));return rkK(W)};
dsK=function(W){var e=T1(Number(W));if(gE(e))return _.Yv(e);e=W.indexOf(".");e!==-1&&(W=W.substring(0,e));return jP()?_.Yv(CC(64,BigInt(W))):_.Yv(rkK(W))};
Weg=function(W){return gE(W)?_.Yv(nC(W)):_.Yv(NGL(W))};
_.Fev=function(W){return gE(W)?_.Yv(_.RNS(W)):_.Yv(_.QyG(W))};
_.XU2=function(W){var e=T1(Number(W));if(gE(e)&&e>=0)return String(e);e=W.indexOf(".");e!==-1&&(W=W.substring(0,e));return qSL(W)};
_.IDD=function(W){var e=T1(Number(W));if(gE(e)&&e>=0)return _.Yv(e);e=W.indexOf(".");e!==-1&&(W=W.substring(0,e));return jP()?_.Yv((0,_.JS)(64,BigInt(W))):_.Yv(qSL(W))};
_.aDG=function(W){if(W==null)return W;if(typeof W==="bigint")return xl(W)?W=Number(W):(W=CC(64,W),W=xl(W)?Number(W):String(W)),W;if(_.DM(W))return typeof W==="number"?nC(W):yw(W)};
wUc=function(W,e){e=e===void 0?!1:e;var t=typeof W;if(W==null)return W;if(t==="bigint")return String(CC(64,W));if(_.DM(W))return t==="string"?yw(W):e?NGL(W):nC(W)};
_.ubz=function(W){var e=typeof W;if(W==null)return W;if(e==="bigint")return _.Yv(CC(64,W));if(_.DM(W))return e==="string"?dsK(W):Weg(W)};
ckK=function(W){if(W==null)return W;var e=typeof W;if(e==="bigint")return String(CC(64,W));if(_.DM(W)){if(e==="string")return yw(W);if(e==="number")return nC(W)}};
vvz=function(W){if(W==null)return W;var e=typeof W;if(e==="bigint")return String((0,_.JS)(64,W));if(_.DM(W)){if(e==="string")return _.XU2(W);if(e==="number")return _.RNS(W)}};
_.OB=function(W){if(typeof W!=="string")throw Error();return W};
M9=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.Hu=function(W){return W==null||typeof W==="string"?W:void 0};
GZv=function(W,e,t,b){if(W!=null&&W[KC]===Pu)return W;if(!Array.isArray(W))return t?b&2?((W=e[Vw])||(W=new e,kv(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),W=e[Vw]=W),e=W):e=new e:e=void 0,e;t=W[_.oy]|0;b=t|b&32|b&2;b!==t&&$v(W,b);return new e(W)};
Do9=function(W,e,t){W=e?Az2(W):_.$l(W);return W==null?t?0:void 0:W|0};
SSD=function(W){return W};
BBQ=function(W){return W};
lDv=function(W,e,t,b,m,q){W=GZv(W,b,t,q);m&&(W=ovQ(W));return W};
Zr2=function(W){return[W,this.get(W)]};
pUK=function(){return $oQ||($oQ=new ig(kv([]),void 0,void 0,void 0,kZK))};
EB=function(W){var e=Yl(LC);return e?W[e]:void 0};
Chg=function(W,e){var t=t===void 0?!1:t;if(Yl(ykG)&&Yl(LC)&&void 0===ykG){var b=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=b[LC];if(!m)return;if(m=m.reviveUnknownFields)try{m(b,e,jyS);return}catch(q){bv(q)}}t&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(t=Yl(LC))&&t in W&&(W=W[t])&&delete W[e])};
fDL=function(W,e){var t=Yl(LC),b;BU&&t&&((b=W[t])==null?void 0:b[e])!=null&&wB(nv9,3)};
TBv=function(W,e){e<100||wB(gvL,1)};
MPL=function(W,e,t,b){var m=b!==void 0;b=!!b;var q=Yl(LC),Q;!m&&BU&&q&&(Q=W[q])&&AS(Q,TBv);q=[];var X=W.length;Q=4294967295;var I=!1,u=!!(e&64),c=u?e&128?0:-1:void 0;if(!(e&1)){var v=X&&W[X-1];v!=null&&typeof v==="object"&&v.constructor===Object?(X--,Q=X):v=void 0;if(u&&!(e&128)&&!m){I=!0;var D;Q=((D=JkR)!=null?D:SSD)(Q-c,c,W,v)+c}}e=void 0;for(D=0;D<X;D++){var B=W[D];if(B!=null&&(B=t(B,b))!=null)if(u&&D>=Q){var k=D-c,n=void 0;((n=e)!=null?n:e={})[k]=B}else q[D]=B}if(v)for(var f in v)X=v[f],X!=null&&
(X=t(X,b))!=null&&(D=+f,B=void 0,u&&!Number.isNaN(D)&&(B=D+c)<Q?q[B]=X:(D=void 0,((D=e)!=null?D:e={})[f]=X));e&&(I?q.push(e):q[Q]=e);m&&Yl(LC)&&(W=EB(W))&&W instanceof xo2&&(q[LC]=Orv(W));return q};
syG=function(W){W[0]=N9(W[0]);W[1]=N9(W[1]);return W};
N9=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return xl(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var e=W[_.oy]|0;return W.length===0&&e&1?void 0:MPL(W,e,N9)}if(W!=null&&W[KC]===Pu)return hNQ(W);if(W instanceof gB){e=W.JSC$6865_value_;if(e==null)W="";else if(typeof e==="string")W=e;else{if(pZL){for(var t="",b=0,m=e.length-10240;b<m;)t+=String.fromCharCode.apply(null,e.subarray(b,b+=10240));t+=String.fromCharCode.apply(null,
b?e.subarray(b):e);e=btoa(t)}else e=_.eK(e);W=W.JSC$6865_value_=e}return W}if(W instanceof ig)return W=W.size!==0?Array.from(te.prototype.entries.call(W),syG):void 0,W;return}return W};
bn=function(W,e){if(e){JkR=e==null||e===SSD||e[HrK]!==KeR?SSD:e;try{return hNQ(W)}finally{JkR=void 0}}return hNQ(W)};
hNQ=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return MPL(W,W[_.oy]|0,N9)};
irG=function(W){switch(typeof W){case "boolean":return PhK||(PhK=[0,void 0,!0]);case "number":return W>0?void 0:W===0?VPG||(VPG=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
Rp=function(W,e,t){return W=_.qS(W,e[0],e[1],t?1:2)};
_.qS=function(W,e,t,b){b=b===void 0?0:b;if(W==null){var m=32;t?(W=[t],m|=128):W=[];e&&(m=m&-8380417|(e&1023)<<13)}else{if(!Array.isArray(W))throw Error("L");m=W[_.oy]|0;2048&m&&!(2&m)&&YSS();if(m&256)throw Error("N");if(m&64)return b!==0||m&2048||$v(W,m|2048),W;if(t&&(m|=128,t!==W[0]))throw Error("O");a:{t=W;m|=64;var q=t.length;if(q){var Q=q-1,X=t[Q];if(X!=null&&typeof X==="object"&&X.constructor===Object){e=m&128?0:-1;Q-=e;if(Q>=1024)throw Error("Q");for(var I in X)q=+I,q<Q&&(t[q+e]=X[I],delete X[I]);
m=m&-8380417|(Q&1023)<<13;break a}}if(e){I=Math.max(e,q-(m&128?0:-1));if(I>1024)throw Error("R");m=m&-8380417|(I&1023)<<13}}}m|=64;b===0&&(m|=2048);$v(W,m);return W};
YSS=function(){wB(zNS,5)};
EvR=function(W,e){if(typeof W!=="object")return W;if(Array.isArray(W)){var t=W[_.oy]|0;return W.length===0&&t&1?void 0:Uos(W,t,e)}if(W!=null&&W[KC]===Pu)return LeG(W);if(W instanceof ig){e=W.arrayState;if(e&2)return W;if(!W.size)return;t=kv(Array.from(te.prototype.entries.call(W)));if(W.valueCtor)for(W=0;W<t.length;W++){var b=t[W],m=b[1];m==null||typeof m!=="object"?m=void 0:m!=null&&m[KC]===Pu?m=LeG(m):Array.isArray(m)?m=Uos(m,m[_.oy]|0,!!(e&32)):m=void 0;b[1]=m}return t}if(W instanceof gB)return W};
Uos=function(W,e,t){if(e&2)return W;!t||4096&e||16&e?W=QS(W,e,!1,t&&!(e&16)):(lh(W,34),e&4&&Object.freeze(W));return W};
Fd=function(W,e,t){W=new W.constructor(e);t&&(W.copyOnWrite=Cr);W.noLegacyNull=Cr;return W};
LeG=function(W){var e=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.oy]|0;return fr(W,t)?W:Xd(W,e,t)?Fd(W,e):QS(e,t)};
QS=function(W,e,t,b){b!=null||(b=!!(34&e));W=MPL(W,e,EvR,b);b=32;t&&(b|=2);e=e&8380609|b;$v(W,e);return W};
ovQ=function(W){var e=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.oy]|0;return fr(W,t)?Xd(W,e,t)?Fd(W,e,!0):new W.constructor(QS(e,t,!1)):W};
Ip=function(W){if(W.copyOnWrite!==Cr)return!1;var e=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=QS(e,e[_.oy]|0);lh(e,2048);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=e;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
wl=function(W){if(!Ip(W)&&fr(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.oy]|0))throw Error();};
vR=function(W,e){e===void 0&&(e=W[_.oy]|0);e&32&&!(e&4096)&&$v(W,e|4096)};
Xd=function(W,e,t){return t&2?!0:t&32&&!(t&4096)?($v(e,t|2),W.copyOnWrite=Cr,!0):!1};
GV=function(W,e,t,b,m){var q=t+(m?0:-1),Q=W.length-1;if(Q>=1+(m?0:-1)&&q>=Q){var X=W[Q];if(X!=null&&typeof X==="object"&&X.constructor===Object)return X[t]=b,e}if(q<=Q)return W[q]=b,e;if(b!==void 0){var I;Q=((I=e)!=null?I:e=W[_.oy]|0)>>13&1023||536870912;t>=Q?b!=null&&(q={},W[Q+(m?0:-1)]=(q[t]=b,q)):W[q]=b}return e};
_.op=function(W,e,t,b,m){var q=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=q[_.oy]|0;b=fr(W,Q)?1:b;m=!!m||b===3;b===2&&Ip(W)&&(q=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=q[_.oy]|0);W=Akc(q,e);var X=W===SK?7:W[_.oy]|0,I=NBD(X,Q);var u=4&I?!1:!0;if(u){4&I&&(W=mU(W),X=0,I=BR(I,Q),Q=GV(q,Q,e,W));for(var c=0,v=0;c<W.length;c++){var D=t(W[c]);D!=null&&(W[v++]=D)}v<c&&(W.length=v);t=(I|4)&-513;I=t&=-1025;I&=-4097}I!==X&&($v(W,I),2&I&&Object.freeze(W));return W=doS(W,I,q,
Q,e,b,u,m)};
doS=function(W,e,t,b,m,q,Q,X){var I=e;q===1||(q!==4?0:2&e||!(16&e)&&32&b)?ln(e)||(e|=!W.length||Q&&!(4096&e)||32&b&&!(4096&e||16&e)?2:256,e!==I&&$v(W,e),Object.freeze(W)):(q===2&&ln(e)&&(W=mU(W),I=0,e=BR(e,b),b=GV(t,b,m,W)),ln(e)||(X||(e|=16),e!==I&&$v(W,e)));2&e||!(4096&e||16&e)||vR(t,b);return W};
Akc=function(W,e,t){W=ZQ(W,e,t);return Array.isArray(W)?W:SK};
NBD=function(W,e){2&e&&(W|=2);return W|1};
ln=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
WUZ=function(W){return _.xv(W,!0)};
eQK=function(W,e){var t=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=t[_.oy]|0;a:{var m=b;b=fr(W,b);!b&&Ip(W)&&(t=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=t[_.oy]|0);var q=ZQ(t,e);W=!1;if(q==null){if(b){e=pUK();break a}q=[]}else if(q.constructor===ig)if(q.arrayState&2&&!b)q=Array.from(te.prototype.entries.call(q));else{e=q;break a}else Array.isArray(q)?W=!!((q[_.oy]|0)&2):q=[];if(b){if(!q.length){e=pUK();break a}W||(W=!0,kv(q))}else if(W){W=!1;b=q;b=mU(b);for(q=0;q<
b.length;q++){var Q=b[q]=mU(b[q]);Array.isArray(Q[1])&&(Q[1]=kv(Q[1]))}q=b}!W&&m&32&&JzR(q);b=new ig(q,void 0,Do9,Do9);m=GV(t,m,e,b);W||vR(t,m);e=b}return e};
_.$E=function(W,e,t,b){wl(W);var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=m[_.oy]|0;if(t==null)return GV(m,q,e),W;var Q=t===SK?7:t[_.oy]|0,X=Q,I=ln(Q),u=I||Object.isFrozen(t);I||(Q=0);u||(t=mU(t),X=0,Q=BR(Q,q),u=!1);Q|=5;var c;I=(c=TGD(Q))!=null?c:0;for(c=0;c<t.length;c++){var v=t[c],D=b(v,I);Object.is(v,D)||(u&&(t=mU(t),X=0,Q=BR(Q,q),u=!1),t[c]=D)}Q!==X&&(u&&(t=mU(t),Q=BR(Q,q)),$v(t,Q));GV(m,q,e,t);return W};
_.kE=function(W,e,t,b,m){wl(W);var q=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;GV(q,q[_.oy]|0,e,(b==="0"?Number(t)===0:t===b)?void 0:t,m);return W};
_.pO=function(W,e,t){if(e&2)throw Error();var b=hk(e),m=Akc(W,t,b),q=m===SK?7:m[_.oy]|0,Q=NBD(q,e);if(2&Q||ln(Q)||16&Q)m=mU(m),q=0,Q=BR(Q,e),GV(W,e,t,m,b);Q&=-13;Q!==q&&$v(m,Q);return m};
tTL=function(W){if(BU){var e;return(e=W[yS])!=null?e:W[yS]=new Map}if(yS in W)return W[yS];e=new Map;Object.defineProperty(W,yS,{value:e});return e};
m9v=function(W,e,t,b,m){var q=tTL(W),Q=bCs(q,W,e,t,m);Q!==b&&(Q&&(e=GV(W,e,Q,void 0,m)),q.set(t,b));return e};
bCs=function(W,e,t,b,m){var q=W.get(b);if(q!=null)return q;for(var Q=q=0;Q<b.length;Q++){var X=b[Q];ZQ(e,X,m)!=null&&(q!==0&&(t=GV(e,t,q,void 0,m)),q=X)}W.set(b,q);return q};
jK=function(W,e,t,b,m){var q=!1;b=ZQ(W,b,m,function(Q){var X=GZv(Q,t,!1,e);q=X!==Q&&X!=null;return X});
if(b!=null)return q&&!fr(b)&&vR(W,e),b};
rSD=function(W,e,t,b,m,q,Q,X){var I=fr(W,t);q=I?1:q;Q=!!Q||q===3;I=X&&!I;(q===2||I)&&Ip(W)&&(e=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=e[_.oy]|0);W=Akc(e,m);var u=W===SK?7:W[_.oy]|0,c=NBD(u,t);if(X=!(4&c)){var v=W,D=t,B=!!(2&c);B&&(D|=2);for(var k=!B,n=!0,f=0,M=0;f<v.length;f++){var K=GZv(v[f],b,!1,D);if(K instanceof b){if(!B){var U=fr(K);k&&(k=!U);n&&(n=U)}v[M++]=K}}M<f&&(v.length=M);c|=4;c=n?c&-4097:c|4096;c=k?c|8:c&-9}c!==u&&($v(W,c),2&c&&Object.freeze(W));if(I&&!(8&c||!W.length&&
(q===1||(q!==4?0:2&c||!(16&c)&&32&t)))){ln(c)&&(W=mU(W),c=BR(c,t),t=GV(e,t,m,W));b=W;I=c;for(u=0;u<b.length;u++)v=b[u],c=ovQ(v),v!==c&&(b[u]=c);I|=8;c=I=b.length?I|4096:I&-4097;$v(W,c)}return W=doS(W,c,e,t,m,q,X,Q)};
qBz=function(W){W==null&&(W=void 0);return W};
BR=function(W,e){return W=(2&e?W|2:W&-3)&-273};
_.RQG=function(W,e,t,b,m){wl(W);e=_.op(W,e,m,2,!0);var q;m=(q=TGD(e===SK?7:e[_.oy]|0))!=null?q:0;e.push(t(b,m));return W};
Q$9=function(W,e,t,b,m,q,Q){wl(W);var X=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=rSD(W,X,X[_.oy]|0,t,e,2,!0);if(q&&Q)m!=null||(m=W.length-1),OS(W,m),W.splice(m,q),W.length||(W[_.oy]&=-4097);else{if(q){if(typeof m!=="number"||m<0||m>W.length)throw Error();}else b=b!=null?b:new t;m!=void 0?W.splice(m,q,b):W.push(b);m=t=W===SK?7:W[_.oy]|0;(b=fr(b))?(t&=-9,W.length===1&&(t&=-4097)):t|=4096;t!==m&&$v(W,t);b||vR(X)}};
FUK=function(W,e){if(typeof W==="string")return new nO(jRZ(W),e);if(Array.isArray(W))return new nO(new Uint8Array(W),e);if(W.constructor===Uint8Array)return new nO(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new nO(W,!1);if(W.constructor===gB)return e=fO(W)||new Uint8Array(0),new nO(e,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new nO(W,!1);throw Error();};
gl=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
IM9=function(W,e){var t=t===void 0?XuK:t;return new TV(W,e,t)};
cS9=function(W,e,t,b,m){e=aMG(e,b);e!=null&&(t=_.wuv(W,t),m(e,W),_.uC2(W,t))};
xE=function(W,e,t,b){var m=b[W];if(m)return m;m={};m.binaryFields=b;m.messageMetadata=irG(b[0]);var q=b[1],Q=1;q&&q.constructor===Object&&(m.extensions=q,q=b[++Q],typeof q==="function"&&(m.isMessageSet=!0,vlG!=null||(vlG=q),G12!=null||(G12=b[Q+1]),q=b[Q+=2]));for(var X={};q&&Array.isArray(q)&&q.length&&typeof q[0]==="number"&&q[0]>0;){for(var I=0;I<q.length;I++)X[q[I]]=q;q=b[++Q]}for(I=1;q!==void 0;){typeof q==="number"&&(I+=q,q=b[++Q]);var u=void 0;if(q instanceof TV)var c=q;else c=D9L,Q--;q=void 0;
if((q=c)==null?0:q.$$isMsg){q=b[++Q];u=b;var v=Q;typeof q==="function"&&(q=q(),u[v]=q);u=q}q=b[++Q];v=I+1;typeof q==="number"&&q<0&&(v-=q,q=b[++Q]);for(;I<v;I++){var D=X[I];u?t(m,I,c,u,D):e(m,I,c,D)}}return b[W]=m};
BES=function(W){return Array.isArray(W)?W[0]instanceof TV?W:[SB9,W]:[W,void 0]};
aMG=function(W,e){if(W instanceof _.Ow)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return Rp(W,e,!1)};
olL=function(W,e,t,b){var m=t.$$binaryReaderFn;W[e]=b?function(q,Q,X){return m(q,Q,X,b)}:m};
lMG=function(W,e,t,b,m){var q=t.$$binaryReaderFn,Q,X;W[e]=function(I,u,c){return q(I,u,c,X||(X=xE(MS,olL,lMG,b).messageMetadata),Q||(Q=ZCL(b)),m)}};
ZCL=function(W){var e=W[$9K];if(e!=null)return e;var t=xE(MS,olL,lMG,W);e=t.isMessageSet?function(b,m){return vlG(b,m,t)}:function(b,m){for(;k1z(m)&&m.nextWireType_!=4;){var q=m.nextField_,Q=t[q];
if(Q==null){var X=t.extensions;X&&(X=X[q])&&(X=puK(X),X!=null&&(Q=t[q]=X))}if(Q==null||!Q(m,b,q)){X=m;Q=X.fieldCursor_;sw(X);if(X.discardUnknownFields)var I=void 0;else{var u=X.decoder_.cursor_-Q;X.decoder_.cursor_=Q;I=ySD(X.decoder_,u)}u=X=Q=void 0;var c=b;I&&((Q=(X=(u=c[LC])!=null?u:c[LC]=new xo2)[q])!=null?Q:X[q]=[]).push(I)}}if(b=EB(b))b.reviveUnknownFields=t.binaryFields[j$v];return!0};
W[$9K]=e;W[j$v]=CgQ.bind(W);return e};
CgQ=function(W,e,t,b){var m=this[MS],q=this[$9K],Q=Rp(void 0,m.messageMetadata,!1),X=EB(W);if(X){var I=!1,u=m.extensions;if(u){m=function(k,n,f){if(f.length!==0)if(u[n])for(k=_.R(f),n=k.next();!n.done;n=k.next()){n=nlg(n.value);try{I=!0,q(Q,n)}finally{n.free()}}else b==null||b(W,n,f)};
if(e==null)AS(X,m);else if(X!=null){var c=X[e];c&&m(X,e,c)}if(I){var v=W[_.oy]|0;if(v&2&&v&2048&&(t==null||!t.reviveIntoImmutable))throw Error();var D=hk(v),B=function(k,n){if(ZQ(W,k,D)!=null)switch(t==null?void 0:t.resolutionBehavior){case 1:return;default:throw Error();}n!=null&&(v=GV(W,v,k,n,D));delete X[k]};
e==null?OQR(Q,Q[_.oy]|0,function(k,n){B(k,n)}):B(e,ZQ(Q,e,D))}}}};
puK=function(W){W=BES(W);var e=W[0].$$binaryReaderFn;if(W=W[1]){var t=ZCL(W),b=xE(MS,olL,lMG,W).messageMetadata;return function(m,q,Q){return e(m,q,Q,b,t)}}return e};
he=function(W,e,t){W[e]=t.$$binaryWriterFn};
KO=function(W,e,t,b){var m,q,Q=t.$$binaryWriterFn;W[e]=function(X,I,u){return Q(X,I,u,q||(q=xE(HR,he,KO,b).messageMetadata),m||(m=fMg(b)))}};
fMg=function(W){var e=W[glD];if(!e){var t=xE(HR,he,KO,W);e=function(b,m){return TE9(b,m,t)};
W[glD]=e}return e};
TE9=function(W,e,t){OQR(W,W[_.oy]|0,function(b,m){if(m!=null){var q=JSG(t,b);q?q(e,m,b):b<500||wB(x9K,3)}});
(W=EB(W))&&AS(W,function(b,m,q){PR(e,e.encoder_.end());for(b=0;b<q.length;b++)PR(e,fO(q[b])||new Uint8Array(0))})};
JSG=function(W,e){var t=W[e];if(t)return t;if(t=W.extensions)if(t=t[e]){t=BES(t);var b=t[0].$$binaryWriterFn;if(t=t[1]){var m=fMg(t),q=xE(HR,he,KO,t).messageMetadata;t=W.isMessageSet?G12(q,m):function(Q,X,I){return b(Q,X,I,q,m)}}else t=b;
return W[e]=t}};
_.OCc=function(W,e,t){if(Array.isArray(e)){var b=e[_.oy]|0;if(b&4)return e;for(var m=0,q=0;m<e.length;m++){var Q=W(e[m]);Q!=null&&(e[q++]=Q)}q<m&&(e.length=q);t&&($v(e,(b|5)&-1537),b&2&&Object.freeze(e));return e}};
_.VS=function(W,e,t){return new TV(W,e,t)};
_.MTv=function(W,e,t){return new TV(W,e,t)};
_.YE=function(W,e,t){GV(W,W[_.oy]|0,e,t,hk(W[_.oy]|0))};
s$9=function(W,e,t){e=_.XC(e);e!=null&&(_.Uw(W,t,1),W=W.encoder_,t=LO||(LO=new DataView(new ArrayBuffer(8))),t.setFloat64(0,+e,!0),Lr=t.getUint32(0,!0),Ak=t.getUint32(4,!0),_.Ew(W,Lr),_.Ew(W,Ak))};
_.Ae=function(W,e,t){e=ckK(e);if(e!=null){switch(typeof e){case "string":hQv(e)}if(e!=null)switch(_.Uw(W,t,0),typeof e){case "number":W=W.encoder_;No(e);HC9(W,Lr,Ak);break;case "bigint":t=BigInt.asUintN(64,e);t=new KUR(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)));HC9(W.encoder_,t.JSC$6909_lo,t.JSC$6909_hi);break;default:t=hQv(e),HC9(W.encoder_,t.JSC$6909_lo,t.JSC$6909_hi)}}};
VTR=function(W,e,t){e=_.$l(e);e!=null&&e!=null&&(_.Uw(W,t,0),_.Pgv(W.encoder_,e))};
_.YBs=function(W,e,t){iCG(W,t,vvz(e))};
_.zQ2=function(W,e,t){e=_.L2c(e);e!=null&&(_.Uw(W,t,0),W.encoder_.JSC$6911_buffer_.push(e?1:0))};
_.Elz=function(W,e,t){e=_.Hu(e);e!=null&&LUG(W,t,msZ(e))};
ASv=function(W,e,t,b,m){e=aMG(e,b);e!=null&&(t=_.wuv(W,t),m(e,W),_.uC2(W,t))};
_.NEG=function(W,e,t){e=e==null||typeof e=="string"||e instanceof gB?e:void 0;e!=null&&LUG(W,t,FUK(e,!0).buffer)};
_.d9Q=function(W,e,t){e=_.$l(e);e!=null&&(e=parseInt(e,10),_.Uw(W,t,0),_.Pgv(W.encoder_,e))};
_.NS=function(W,e){return function(t,b){var m={treatNewDataAsImmutable:!0};b&&Object.assign(m,b);t=nlg(t,void 0,void 0,m);try{var q=new W,Q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ZCL(e)(Q,t);var X=q}finally{t.free()}return X}};
_.dl=function(W){return function(e){return Wf2(e,W)}};
eyK=function(W){return function(){return Wf2(this,W)}};
_.W7=function(W){return Kr(function(e){return e instanceof W&&!fr(e)})};
_.e5=function(W){return function(e){return tKc(W,e)}};
qwQ=function(W,e){return bOR({child:W,origin:e||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:mSs,getPayloadCase:function(t){return t.getPayloadCase()},
createInitMessage:function(t){var b=new tK,m=new re2;t=_.bF(m,1,t);return _.mT(b,5,rR,t)}})};
qt=function(W){return{valueOf:W}.valueOf()};
QpG=function(){var W=null;if(!Ryz)return W;try{var e=function(t){return t};
W=Ryz.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(t){}return W};
XR2=function(){FfR===void 0&&(FfR=QpG());return FfR};
_.Fh=function(W){var e=XR2();W=e?e.createScriptURL(W):W;return new QE(W)};
_.Xh=function(W){if(W instanceof QE)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.Im=function(W){return Object.isFrozen(W)&&Object.isFrozen(W.raw)};
am=function(W){return W.toString().indexOf("`")===-1};
uF=function(W){return new _.wR(IQg,W)};
c7=function(W){return W instanceof _.wR};
_.v7=function(W){if(c7(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
D1=function(W){return new aQ2(function(e){return e.substr(0,W.length+1).toLowerCase()===W+":"})};
S5=function(W,e){e=e===void 0?wRc:e;if(c7(W))return W;for(var t=0;t<e.length;++t){var b=e[t];if(b instanceof aQ2&&b.isValid(W))return uF(W)}};
_.lF=function(W,e){e=e===void 0?wRc:e;return S5(W,e)||om};
_.Z1=function(W){var e=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof e.ManagedMediaSource!=="undefined"&&W instanceof e.ManagedMediaSource)return uF(URL.createObjectURL(W));e=W.type;e.toLowerCase()==="application/octet-stream"?e=!0:(e=e.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),e=(e==null?void 0:e.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(e[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(e[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(e[1])||/^font\/[\w-]+$/i.test(e[1])));if(!e)throw Error("da");return uF(URL.createObjectURL(W))};
_.kN=function(W){for(var e=_.$N.apply(1,arguments),t=[W[0]],b=0;b<e.length;b++)t.push(String(e[b])),t.push(W[b+1]);return uF(t.join(""))};
_.ceS=function(W){if(!udZ){a:{var e=document.createElement("a");try{e.href=W}catch(t){W=void 0;break a}W=e.protocol;W=W===":"||W===""?"https:":W}return W}try{e=new URL(W)}catch(t){return"https:"}return e.protocol};
_.pF=function(W){W instanceof _.wR?W=_.v7(W):W=vED.test(W)?W:void 0;return W};
yE=function(W,e){e=_.pF(e);e!==void 0&&(W.href=e)};
CF=function(W){var e=XR2();W=e?e.createHTML(W):W;return new j5(W)};
nF=function(W){if(W instanceof j5)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.fF=function(W,e){W.src=_.Xh(e).toString()};
GVs=function(W,e){W.setAttribute("sandbox","");for(var t=0;t<e.length;t++)W.sandbox.supports&&!W.sandbox.supports(e[t])||W.sandbox.add(e[t])};
_.DSs=function(W,e,t){W.removeAttribute("srcdoc");switch(e){case 0:if(t instanceof QE)throw new gR("TrustedResourceUrl",0);GVs(W,[]);e=_.pF(t);e!==void 0&&(W.src=e);break;case 1:if(!(t instanceof QE))throw new gR(typeof t,1);GVs(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.fF(W,t);break;case 2:if(t instanceof QE)throw new gR("TrustedResourceUrl",2);GVs(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
e=_.pF(t);e!==void 0&&(W.src=e);break;default:_.Qw(e)}};
_.Ty=function(W,e,t,b){e=_.pF(e);return e!==void 0?W.open(e,t,b):null};
_.JK=function(W){W=W===void 0?document:W;var e,t;W=(t=(e=W).querySelector)==null?void 0:t.call(e,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.Mt=function(W){var e=XR2();W=e?e.createScript(W):W;return new _.OV(W)};
sV=function(W){if(W instanceof _.OV)return W.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
SwD=function(W){var e=_.JK(W.ownerDocument);e&&W.setAttribute("nonce",e)};
_.hK=function(W,e){W.textContent=sV(e);SwD(W)};
_.H7=function(W,e){W.src=_.Xh(e);SwD(W)};
_.KF=function(W,e){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("da");W.innerHTML=nF(e)};
_.P7=function(W,e,t,b){if(W.length===0)throw Error("da");W=W.map(function(q){if(q instanceof Blg)q=q.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return q});
var m=t.toLowerCase();if(W.every(function(q){return m.indexOf(q)!==0}))throw Error("fa`"+t);
e.setAttribute(t,b)};
_.VE=function(W,e,t){if(e instanceof QE)W.href=_.Xh(e).toString(),W.rel=t;else{if(oEz.indexOf(t)===-1)throw Error("ga`"+t);e=_.pF(e);e!==void 0&&(W.href=e,W.rel=t)}};
lQD=function(W){return"function"==typeof _.iF&&W instanceof _.iF};
_.ZOg=function(W){if(lQD(W))return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.YN=function(W,e){e=_.pF(e);e!==void 0&&(W.href=e)};
zy=function(W,e){W&&(e=W.indexOf(e),0<=e&&W.splice(e,1))};
UV=function(W){return typeof W==="function"};
$SR=function(W){return W instanceof EV||W&&"closed"in W&&UV(W.remove)&&UV(W.add)&&UV(W.unsubscribe)};
AK=function(){};
Nt=function(W){kVD(function(){throw W;})};
Wa=function(W){return W};
ed=function(){return pRQ(_.$N.apply(0,arguments))};
pRQ=function(W){return W.length===0?Wa:W.length===1?W[0]:function(e){return W.reduce(function(t,b){return b(t)},e)}};
yez=function(W){var e;return(e=W!=null?W:void 0)!=null?e:Promise};
jpz=function(W,e){return new tG(function(t){var b=0;return e.schedule(function(){b===W.length?t.complete():(t.next(W[b++]),t.closed||this.schedule())})})};
Cns=function(W,e){if(!W)throw Error("ha");return new tG(function(t){var b=new EV;b.add(e.schedule(function(){var m=W[Symbol.asyncIterator]();b.add(e.schedule(function(){var q=this;m.next().then(function(Q){Q.done?t.complete():(t.next(Q.value),q.schedule())})}))}));
return b})};
nEL=function(W,e,t){e=e.schedule(function(){try{t.call(this)}catch(b){W.error(b)}},0);
W.add(e)};
fQD=function(W,e){return new tG(function(t){var b;t.add(e.schedule(function(){b=W[b8]();nEL(t,e,function(){var m=b.next(),q=m.value;m.done?t.complete():(t.next(q),this.schedule())})}));
return function(){var m;return UV((m=b)==null?void 0:m.return)&&b.return()}})};
gEL=function(W,e){return new tG(function(t){var b=new EV;b.add(e.schedule(function(){var m=W[mk]();b.add(m.subscribe({next:function(q){b.add(e.schedule(function(){return t.next(q)}))},
error:function(q){b.add(e.schedule(function(){return t.error(q)}))},
complete:function(){b.add(e.schedule(function(){return t.complete()}))}}))}));
return b})};
Tlz=function(W,e){return new tG(function(t){return e.schedule(function(){return W.then(function(b){t.add(e.schedule(function(){t.next(b);t.add(e.schedule(function(){return t.complete()}))}))},function(b){t.add(e.schedule(function(){return t.error(b)}))})})})};
Jeg=function(W){return new TypeError("ia`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
OOQ=function(W,e){if(W!=null){if(UV(W[mk]))return gEL(W,e);if(xSG(W))return jpz(W,e);if(UV(W==null?void 0:W.then))return Tlz(W,e);if(Symbol.asyncIterator&&UV(W==null?void 0:W[Symbol.asyncIterator]))return Cns(W,e);if(UV(W==null?void 0:W[b8]))return fQD(W,e)}throw Jeg(W);};
RG=function(W,e){return e?OOQ(W,e):r9(W)};
r9=function(W){if(W instanceof tG)return W;if(W!=null){if(UV(W[mk]))return MKK(W);if(xSG(W))return spG(W);if(UV(W==null?void 0:W.then))return hyz(W);if(Symbol.asyncIterator&&UV(W==null?void 0:W[Symbol.asyncIterator]))return HOG(W);if(UV(W==null?void 0:W[b8]))return Kfc(W)}throw Jeg(W);};
MKK=function(W){return new tG(function(e){var t=W[mk]();if(UV(t.subscribe))return t.subscribe(e);throw new TypeError("ja");})};
spG=function(W){return new tG(function(e){for(var t=0;t<W.length&&!e.closed;t++)e.next(W[t]);e.complete()})};
hyz=function(W){return new tG(function(e){W.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Nt)})};
Kfc=function(W){return new tG(function(e){for(var t=W[b8]();!e.closed;){var b=t.next(),m=b.value;b.done?e.complete():e.next(m)}return function(){return UV(t==null?void 0:t.return)&&t.return()}})};
HOG=function(W){return new tG(function(e){Png(W,e).catch(function(t){return e.error(t)})})};
Png=function(W,e){var t,b,m,q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:_.Qh(I,2,3);var u=W[Symbol.asyncIterator];q=u!==void 0?u.call(W):new VKG(_.R(W));case 5:return _.a(I,q.next(),8);case 8:b=I.yieldResult;if(b.done){I.jumpTo(3);break}Q=b.value;e.next(Q);I.jumpTo(5);break;case 3:_.FY(I);_.IG(I,9);if(!b||b.done||!(m=q.return)){I.jumpTo(9);break}return _.a(I,m.call(q),9);case 9:_.FY(I,0,0,1);if(t)throw t.error;_.aG(I,10,1);break;case 10:_.aG(I,4);break;case 2:X=_.w9(I);t={error:X};I.jumpTo(3);
break;case 4:e.complete(),_.u8(I)}})};
ca=function(W,e){return e?jpz(W,e):spG(W)};
iOg=function(W){return UV(W[W.length-1])?W.pop():void 0};
va=function(W){var e=W[W.length-1];return e&&UV(e.schedule)?W.pop():void 0};
GE=function(){var W=_.$N.apply(0,arguments),e=va(W);return e?jpz(W,e):ca(W)};
DV=function(W){var e=UV(W)?W:function(){return W};
return new tG(function(t){return t.error(e())})};
Sd=function(W){return function(e){if(UV(e==null?void 0:e.lift))return e.lift(function(t){try{return W(t,this)}catch(b){this.error(b)}});
throw new TypeError("ka");}};
ZV=function(){return Sd(function(W,e){var t=null;W._refCount++;var b=new l8(e,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)t=null;else{var m=W._connection,q=t;t=null;!m||q&&m!==q||m.unsubscribe();e.unsubscribe()}});
W.subscribe(b);b.closed||(t=W.connect())})};
zyg=function(){var W=Yws;var e=e===void 0?0:e;return Sd(function(t,b){b.add(W.schedule(function(){return t.subscribe(b)},e))})};
$P=function(W){return Sd(function(e,t){var b=0;e.subscribe(new l8(t,function(m){t.next(W.call(void 0,m,b++))}))})};
Lfv=function(W){return $P(function(e){return USD(e)?W.apply(null,_.kP(e)):W(e)})};
WTD=function(W){if(W.length===1){var e=W[0];if(EEZ(e))return{args:e,keys:null};if(e&&typeof e==="object"&&AeQ(e)===NlD)return W=dSQ(e),{args:W.map(function(t){return e[t]}),
keys:W}}return{args:W,keys:null}};
pP=function(){var W=_.$N.apply(0,arguments),e=va(W),t=iOg(W);W=WTD(W);var b=W.args,m=W.keys;if(b.length===0)return RG([],e);e=new tG(eOG(b,e,m?function(q){for(var Q={},X=0;X<q.length;X++)Q[m[X]]=q[X];return Q}:Wa));
return t?e.pipe(Lfv(t)):e};
eOG=function(W,e,t){t=t===void 0?Wa:t;return function(b){t5s(e,function(){for(var m=W.length,q=Array(m),Q=m,X=W.map(function(){return!1}),I=!0,u={i$jscomp$216:0};u.i$jscomp$216<m;u={i$jscomp$216:u.i$jscomp$216},u.i$jscomp$216++)t5s(e,function(c){return function(){RG(W[c.i$jscomp$216],e).subscribe(new yh(b,function(v){q[c.i$jscomp$216]=v;
I&&(X[c.i$jscomp$216]=!0,I=!X.every(Wa));I||b.next(t(q.slice()))},function(){return--Q===0}))}}(u),b)},b)}};
t5s=function(W,e,t){W?t.add(W.schedule(e)):e()};
bFK=function(W,e,t,b){var m=[],q=0,Q=0,X=!1,I=function(u){q++;r9(t(u,Q++)).subscribe(new l8(e,function(c){e.next(c)},void 0,function(){q--;
for(var c={};m.length&&q<b;c={bufferedValue:void 0})c.bufferedValue=m.shift(),I(c.bufferedValue);!X||m.length||q||e.complete()}))};
W.subscribe(new l8(e,function(u){return q<b?I(u):m.push(u)},void 0,function(){X=!0;
!X||m.length||q||e.complete()}));
return function(){m=null}};
jd=function(W,e){var t=t===void 0?Infinity:t;if(UV(e))return jd(function(b,m){return $P(function(q,Q){return e(b,q,m,Q)})(r9(W(b,m)))},t);
typeof e==="number"&&(t=e);return Sd(function(b,m){return bFK(b,m,W,t)})};
mtv=function(W){W=W===void 0?Infinity:W;return jd(Wa,W)};
rKG=function(){var W=_.$N.apply(0,arguments);return mtv(1)(ca(W,va(W)))};
CP=function(W){return new tG(function(e){r9(W()).subscribe(e)})};
nP=function(W,e,t){if(UV(t)){var b=t;t=void 0}if(b)return nP(W,e,t).pipe(Lfv(b));b=_.R(UV(W.addEventListener)&&UV(W.removeEventListener)?qVZ.map(function(Q){return function(X){return W[Q](e,X,t)}}):UV(W.addListener)&&UV(W.removeListener)?ROg.map(Qmc(W,e)):UV(W.on)&&UV(W.off)?FTQ.map(Qmc(W,e)):[]);
var m=b.next().value,q=b.next().value;return!m&&xSG(W)?jd(function(Q){return nP(Q,e,t)})(ca(W)):new tG(function(Q){if(!m)throw new TypeError("la");
var X=function(){var I=_.$N.apply(0,arguments);return Q.next(1<I.length?I:I[0])};
m(X);return function(){return q(X)}})};
Qmc=function(W,e){return function(t){return function(b){return W[t](e,b)}}};
g9=function(){var W=_.$N.apply(0,arguments),e=va(W);var t=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?r9(W[0]):mtv(t)(ca(W,e)):fP};
I1z=function(W){return W.length===1&&X72(W[0])?W[0]:W};
a1G=function(){var W=I1z(_.$N.apply(0,arguments));return Sd(function(e,t){var b=[e].concat(_.kP(W)),m=function(){if(!t.closed)if(b.length>0){try{var q=r9(b.shift())}catch(X){m();return}var Q=new l8(t,void 0,AK,AK);t.add(q.subscribe(Q));Q.add(m)}else t.complete()};
m()})};
TE=function(W){return Sd(function(e,t){var b=0;e.subscribe(new l8(t,function(m){return W.call(void 0,m,b++)&&t.next(m)}))})};
uhD=function(){var W=_.$N.apply(0,arguments);W=I1z(W);return W.length===1?r9(W[0]):new tG(w7G(W))};
w7G=function(W){return function(e){for(var t=[],b={i$jscomp$219:0};t&&!e.closed&&b.i$jscomp$219<W.length;b={i$jscomp$219:b.i$jscomp$219},b.i$jscomp$219++)t.push(r9(W[b.i$jscomp$219]).subscribe(new l8(e,function(m){return function(q){if(t){for(var Q=0;Q<t.length;Q++)Q!==m.i$jscomp$219&&t[Q].unsubscribe();t=null}e.next(q)}}(b))))}};
cKc=function(){var W=_.$N.apply(0,arguments),e=iOg(W),t=I1z(W);return t.length?new tG(function(b){var m=t.map(function(){return[]}),q=t.map(function(){return!1});
b.add(function(){m=q=null});
for(var Q={sourceIndex$jscomp$1:0};!b.closed&&Q.sourceIndex$jscomp$1<t.length;Q={sourceIndex$jscomp$1:Q.sourceIndex$jscomp$1},Q.sourceIndex$jscomp$1++)r9(t[Q.sourceIndex$jscomp$1]).subscribe(new l8(b,function(X){return function(I){m[X.sourceIndex$jscomp$1].push(I);m.every(function(u){return u.length})&&(I=m.map(function(u){return u.shift()}),b.next(e?e.apply(null,_.kP(I)):I),m.some(function(u,c){return!u.length&&q[c]})&&b.complete())}}(Q),void 0,function(X){return function(){q[X.sourceIndex$jscomp$1]=
!0;
!m[X.sourceIndex$jscomp$1].length&&b.complete()}}(Q)));
return function(){m=q=null}}):fP};
vNQ=function(W){var e,t,b;return!!W&&typeof W.active==="boolean"&&typeof((e=W.clock)==null?void 0:e.now)==="function"&&((t=W.clock)==null?void 0:t.timeline)!==void 0&&!((b=W.lastMeasurement)==null||!b.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
GyQ=function(W){function e(t){return typeof t==="boolean"||typeof t==="string"||typeof t==="number"||t===void 0||t===null}
return e(W)?!0:Array.isArray(W)?W.every(e):typeof W==="object"?Object.keys(W).every(function(t){return typeof t==="string"})&&Object.values(W).every(function(t){return Array.isArray(t)?t.every(e):e(t)}):!1};
DtR=function(W){if(GyQ(W))return W;if(vNQ(W))return{lastMeasurement:{value:DtR(W.lastMeasurement.value),timestamp:JG(W.lastMeasurement.timestamp,new xP(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(e){}return String(W)};
Od=function(W,e){return function(t){return new tG(function(b){return t.subscribe(function(m){W.timeExecution(e,function(){b.next(m)})()},function(m){W.timeExecution(e,function(){b.error(m)})()},function(){W.timeExecution(e,function(){b.complete()})()})})}};
SVg=function(W,e){var t=!1;return new tG(function(b){var m=W.setTimeout(function(){t=!0;b.next(!0);b.complete()},e);
return function(){t||W.clearTimeout(m)}})};
BRs=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
MY=function(W){return Sd(function(e,t){var b=null,m=!1,q;b=e.subscribe(new l8(t,void 0,function(Q){q=r9(W(Q,MY(W)(e)));b?(b.unsubscribe(),b=null,q.subscribe(t)):m=!0}));
m&&(b.unsubscribe(),b=null,q.subscribe(t))})};
oNs=function(W,e,t){return function(b,m){var q=t,Q=e,X=0;b.subscribe(new l8(m,function(I){var u=X++;Q=q?W(Q,I,u):(q=!0,I);m.next(Q)},void 0,void 0))}};
l19=function(W){W=W===void 0?null:W;return Sd(function(e,t){var b=!1;e.subscribe(new l8(t,function(m){b=!0;t.next(m)},void 0,function(){b||t.next(W);
t.complete()}))})};
sd=function(){return Sd(function(W,e){W.subscribe(new l8(e,AK))})};
hG=function(W){return Sd(function(e,t){e.subscribe(new l8(t,function(){return t.next(W)}))})};
Pa=function(W){return W<=0?function(){return fP}:Sd(function(e,t){var b=0;
e.subscribe(new l8(t,function(m){++b<=W&&(t.next(m),W<=b&&t.complete())}))})};
Vh=function(W){var e=e===void 0?Wa:e;var t;W=(t=W)!=null?t:ZFQ;return Sd(function(b,m){var q,Q=!0;b.subscribe(new l8(m,function(X){var I=e(X);if(Q||!W(q,I))Q=!1,q=I,m.next(X)}))})};
ZFQ=function(W,e){return W===e};
kyG=function(W){W=W===void 0?$tc:W;return Sd(function(e,t){var b=!1;e.subscribe(new l8(t,function(m){b=!0;t.next(m)},void 0,function(){return b?t.complete():t.error(W())}))})};
$tc=function(){return new p79};
i8=function(){var W=_.$N.apply(0,arguments);return function(e){return rKG(e,GE.apply(null,_.kP(W)))}};
yKR=function(W){return Sd(function(e,t){var b=0;e.subscribe(new l8(t,function(m){W.call(void 0,m,b++,e)||(t.next(!1),t.complete())},void 0,function(){t.next(!0);
t.complete()}))})};
jmD=function(){return Sd(function(W,e){var t=[];W.subscribe(new l8(e,function(b){t.push(b);1<t.length&&t.shift()},void 0,function(){for(var b=_.R(t),m=b.next();!m.done;m=b.next())e.next(m.value);
e.complete()},function(){t=null}))})};
CFZ=function(W,e){var t=arguments.length>=2;return function(b){return b.pipe(W?TE(function(m,q){return W(m,q,b)}):Wa,jmD(),t?l19(e):kyG(function(){return new p79}))}};
zE=function(W){var e=UV(W)?W:function(){return W};
return UV()?Sd(function(t,b){var m=e();(void 0)(m).subscribe(b).add(t.subscribe(m))}):function(t){var b=new YP(t,e);
UV(t==null?void 0:t.lift)&&(b.lift=t.lift);b.source=t;b.subjectFactory=e;return b}};
LP=function(W){var e=new Ud(W,void 0,void 0);return function(t){return zE(function(){return e})(t)}};
Ed=function(W,e){return Sd(oNs(W,e,arguments.length>=2))};
AG=function(){var W=_.$N.apply(0,arguments),e=va(W);return Sd(function(t,b){(e?rKG(W,t,e):rKG(W,t)).subscribe(b)})};
NY=function(W){return Sd(function(e,t){var b=null,m=0,q=!1;e.subscribe(new l8(t,function(Q){var X;(X=b)==null||X.unsubscribe();X=m++;r9(W(Q,X)).subscribe(b=new l8(t,function(I){return t.next(I)},void 0,function(){b=null;
q&&!b&&t.complete()}))},void 0,function(){(q=!0,!b)&&t.complete()}))})};
d9=function(W,e){e=e===void 0?!1:e;return Sd(function(t,b){var m=0;t.subscribe(new l8(b,function(q){var Q=W(q,m++);(Q||e)&&b.next(q);!Q&&b.complete()}))})};
WK=function(W,e,t){var b=UV(W)||e||t?{next:W,error:e,complete:t}:W;return b?Sd(function(m,q){m.subscribe(new l8(q,function(Q){var X;(X=b.next)==null||X.call(b,Q);q.next(Q)},function(Q){var X;
(X=b.error)==null||X.call(b,Q);q.error(Q)},function(){var Q;
(Q=b.complete)==null||Q.call(b);q.complete()}))}):Wa};
nN9=function(){var W=_.$N.apply(0,arguments),e=iOg(W);return Sd(function(t,b){for(var m=W.length,q=Array(m),Q=W.map(function(){return!1}),X=!1,I={i$jscomp$229:0};I.i$jscomp$229<m;I={i$jscomp$229:I.i$jscomp$229},I.i$jscomp$229++)r9(W[I.i$jscomp$229]).subscribe(new l8(b,function(u){return function(c){q[u.i$jscomp$229]=c;
X||Q[u.i$jscomp$229]||(Q[u.i$jscomp$229]=!0,(X=Q.every(Wa))&&(Q=null))}}(I),void 0,AK));
t.subscribe(new l8(b,function(u){X&&(u=[u].concat(_.kP(q)),b.next(e?e.apply(null,_.kP(u)):u))}))})};
f12=function(W){var e=[],t=0,b;for(b in W)e[t++]=b;return e};
gNG=function(W,e){for(var t in W)if(W[t]==e)return!0;return!1};
TRQ=function(W,e,t){for(var b in W)if(e.call(t,W[b],b,W))return b};
JKK=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var e=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),t;for(t in W)e[t]=JKK(W[t]);return e};
xtc=function(W){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return xtc.apply(null,arguments[0]);if(e%2)throw Error("pa");for(var t={},b=0;b<e;b+=2)t[arguments[b]]=arguments[b+1];return t};
OFR=function(W){var e=arguments.length;if(e==1&&Array.isArray(arguments[0]))return OFR.apply(null,arguments[0]);for(var t={},b=0;b<e;b++)t[arguments[b]]=!0;return t};
_.eH=function(W){return new Blg(W[0].toLowerCase())};
M5s=function(W){try{return new URL(W,window.document.baseURI)}catch(e){return new URL("about:invalid")}};
smv=function(W,e){var t=e.createRange();t.selectNode(e.body);W=CF(W);return t.createContextualFragment(nF(W))};
hOQ=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
HFZ=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
tD=function(W,e,t){W.setAttribute(e,t)};
KTs=function(W){return W.parts.map(function(e){var t=e.descriptor;return""+e.url+(t?" "+t:"")}).join(" , ")};
_.bN=function(W){var e=_.$N.apply(1,arguments);if(e.length===0)return _.Fh(W[0]);for(var t=W[0],b=0;b<e.length;b++)t+=encodeURIComponent(e[b])+W[b+1];return _.Fh(t)};
_.m_=function(W,e){W=_.Xh(W).toString();var t=W.split(/[?#]/),b=/[?]/.test(W)?"?"+t[1]:"";return PFD(t[0],b,/[#]/.test(W)?"#"+(b?t[2]:t[1]):"",e)};
PFD=function(W,e,t,b){function m(Q,X){Q!=null&&(Array.isArray(Q)?Q.forEach(function(I){return m(I,X)}):(e+=q+encodeURIComponent(X)+"="+encodeURIComponent(Q),q="&"))}
var q=e.length?"&":"?";b.constructor===Object&&(b=Object.entries(b));Array.isArray(b)?b.forEach(function(Q){return m(Q[1],Q[0])}):b.forEach(m);
return _.Fh(W+e+t)};
r6=function(W,e,t,b){this.top=W;this.right=e;this.bottom=t;this.left=b};
V5D=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
RD=function(W){return function(e){return e.pipe(iFG(W,zE(new qL)))}};
QO=function(W){return function(e){return e.pipe(iFG(W,LP(1)))}};
iFG=function(W,e){function t(b){return new tG(function(m){return b.subscribe(function(q){FU(W,function(){return void m.next(q)},3)},function(q){FU(W,function(){return void m.error(q)},3)},function(){FU(W,function(){return void m.complete()},3)})})}
return ed(t,zyg(),e,ZV(),t)};
Utc=function(W){var e=YV2(W);return e===null?new XU(null):e.pipe($P(function(t){t=t.serialize();if(zOL)t=_.tz.btoa(t);else{for(var b=[],m=0,q=0;q<t.length;q++){var Q=t.charCodeAt(q);Q>255&&(b[m++]=Q&255,Q>>=8);b[m++]=Q}t=_.eK(b)}return t}),Pa(1),QO(W.queue))};
LTS=function(W){var e=e===void 0?{}:e;if(typeof Event==="function")return new Event(W,e);if(typeof document!=="undefined"){var t=document.createEvent("CustomEvent");t.initCustomEvent(W,e.bubbles||!1,e.cancelable||!1,e.detail);return t}throw Error();};
ENv=function(W){return typeof W==="string"?document.getElementById(W):W};
NRg=function(W){var e=!1;e=e===void 0?!1:e;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var t;if(e&&((t=W.style)==null?void 0:t.display)==="none")return!0}var b,m;return AKG.test((b=W.getAttribute("width"))!=null?b:"")&&AKG.test((m=W.getAttribute("height"))!=null?m:"")};
dtg=function(W,e){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var t=W.readyState;else{var b,m;t=(b=W.contentWindow)==null?void 0:(m=b.document)==null?void 0:m.readyState}return t==="complete"}catch(q){return e===void 0?!1:e}};
WkQ=function(W){W||(W=function(e,t,b){e.addEventListener(t,b)});
return W};
mYL=function(W,e){var t=eeR();t=t===void 0?new tdK:t;if(W=ENv(W)){var b=WkQ(b);for(var m=!1,q=function(f){m||(m=!0,e(f))},Q,X=2,I=0;I<bP2.length;++I)if(bP2[I]===W.tagName){X=3;
Q=[W];break}Q||(Q=W.querySelectorAll(bP2.join(",")));var u=0,c=0,v=!0,D=W=!1;I={};for(var B=0;B<Q.length;I={isImg:void 0},B++){var k=Q[B];if(!NRg(k))if(I.isImg=k.tagName==="IMG",dtg(k,t.crossDomainLoadedDefault))W=!0,I.isImg&&(v=!0);else{u++;var n=function(f){return function(M){u--;!u&&v&&q(X);f.isImg&&(M=M&&M.type==="error",c--,M||(v=!0),!c&&D&&v&&q(X))}}(I);
b(k,"load",n);I.isImg&&(c++,b(k,"error",n))}}c===0&&(v=!0);Q=null;Q=_.tz.document.readyState==="complete";if(u===0&&!W&&Q)X=5;else if(u||!W){b(_.tz,"load",function(){!t.pendingImagesBlockLoad||!c&&v?q(4):D=!0});
return}q(X)}};
rG9=function(W,e,t){if(W)for(var b=0;W!=null&&b<500&&!t(W);++b)W=e(W)};
qdR=function(W,e){rG9(W,function(t){try{return t===t.parent?null:t.parent}catch(b){}return null},e)};
ReD=function(W,e){if(W.tagName=="IFRAME")e(W);else{W=W.querySelectorAll("IFRAME");for(var t=0;t<W.length&&!e(W[t]);++t);}};
QGZ=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
FkK=function(W,e,t){try{var b=JSON.parse(t.data)}catch(Q){}if(typeof b==="object"&&b&&b.type==="creativeLoad"){var m=QGZ(W);if(t.source&&m){var q;qdR(t.source,function(Q){try{if(Q.parent===m)return q=Q,!0}catch(X){}});
q&&ReD(W,function(Q){if(Q.contentWindow===q)return e(b),!0})}}};
Xa2=function(W){return typeof W==="string"?document.getElementById(W):W};
uYv=function(){var W={};return W[0]=_.bN(IVL,"current"),W[1]=_.bN(aVc),W[2]=_.bN(wa2),W};
ID=function(W,e){return W.left===e.left&&W.top===e.top&&W.width===e.width&&W.height===e.height};
cGc=function(W,e){return{left:Math.max(W.left,e.left),top:Math.max(W.top,e.top),width:Math.max(0,Math.min(W.left+W.width,e.left+e.width)-Math.max(W.left,e.left)),height:Math.max(0,Math.min(W.top+W.height,e.top+e.height)-Math.max(W.top,e.top))}};
vPK=function(W,e){return{left:Math.round(W.left+e.x),top:Math.round(W.top+e.y),width:W.width,height:W.height}};
GE9=function(W,e,t){if(W&&e!==null&&e!=e.top){if(!e.top)return new _.aD(-12245933,-12245933);e=e.top}try{return(t===void 0?0:t)?(new _.aD(e.innerWidth,e.innerHeight)).round():_.uN(e).round()}catch(b){return new _.aD(-12245933,-12245933)}};
DYG=function(W,e,t){try{if(W){if(!e.top)return new r6(-12245933,-12245933,-12245933,-12245933);e=e.top}var b=GE9(W,e,t),m=b.height,q=b.width;if(q===-12245933)return new r6(q,q,q,q);var Q=cK(vK(e.document)),X=Q.x,I=Q.y;return new r6(I,X+q,I+m,X)}catch(u){return new r6(-12245933,-12245933,-12245933,-12245933)}};
SdG=function(W){var e;return(e=W.google_tag_data)!=null?e:W.google_tag_data={}};
B9S=function(W){var e,t;return typeof((e=W.navigator)==null?void 0:(t=e.userAgentData)==null?void 0:t.getHighEntropyValues)==="function"};
lVL=function(W){if(!B9S(W))return null;var e=SdG(W);if(e.uach_promise)return e.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(oPK).then(function(t){e.uach!=null||(e.uach=t);return t});
return e.uach_promise=W};
JGv=function(W){var e;return ZPK($YK(kEz(pac(yGR(jGZ(C8S(nPG(fVc(new gPv,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((e=W.fullVersionList)==null?void 0:e.map(function(t){var b=new T9L;b=_.Ga(b,1,t.brand);return _.Ga(b,2,t.version)}))||[]),W.wow64||!1)};
xYS=function(W){var e,t;return(t=(e=lVL(W))==null?void 0:e.then(function(b){return JGv(b)}))!=null?t:null};
OP9=function(W,e){return new tG(function(t){var b=!1,m=Array(e.length);m.fill(void 0);var q=new Set,Q=new Set,X=function(v,D){W.running?(m[D]=v,q.add(D),b||(b=!0,FU(W,function(){b=!1;t.next(_.EL(m))},1))):t.error(new DR(D))},I=function(v,D){Q.add(D);
q.add(D);FU(W,function(){t.error(v)},1)},u=function(v){Q.add(v);
FU(W,function(){Q.size===e.length&&t.complete()},1)},c=e.map(function(v,D){return v.subscribe(function(B){return void X(B,D)},function(B){return void I(B,D)},function(){return void u(D)})});
return function(){c.forEach(function(v){return void v.unsubscribe()})}})};
sGz=function(W,e,t){function b(){if(e.debugChannel){var f=e.debugChannel,M=f.next;var K={creativeId:e.debugNames.getName(t),requiredSignals:m,signals:Object.assign({},q),hasPrematurelyCompleted:Q,errorMessage:X,erroredSignalKey:I};K={specMajor:2,specMinor:0,specPatch:0,timestamp:JG(e.timeProvider.now(),new xP(0,e.timeProvider.timeline)),instanceId:e.debugNames.getName(e.symbol),creativeState:K};M.call(f,K)}}
for(var m=Object.keys(W),q={},Q=!1,X=null,I=null,u={},c=new Set,v=[],D=[],B=_.R(m),k=B.next(),n={};!k.done;n={key$jscomp$375:void 0},k=B.next())n.key$jscomp$375=k.value,k=W[n.key$jscomp$375],k instanceof XU?(u[n.key$jscomp$375]=k.value,c.add(n.key$jscomp$375),e.debugChannel&&(q[String(n.key$jscomp$375)]=DtR(k.value))):(k=k.pipe(Vh(function(f,M){return vNQ(f)||vNQ(M)?!1:f===M}),$P(function(f){return function(M){e.debugChannel&&(q[String(f.key$jscomp$375)]=DtR(M),b());
var K={};return K[f.key$jscomp$375]=M,K}}(n)),MY(function(f){return function(M){if(M instanceof DR)throw new MdK(String(f.key$jscomp$375));
throw M;}}(n)),WK(function(f){return function(){c.add(f.key$jscomp$375)}}(n),function(f){return function(M){I=String(f.key$jscomp$375);
X=String(M);b()}}(n),function(f){return function(){c.has(f.key$jscomp$375)||(Q=!0,b())}}(n))),D.push(n.key$jscomp$375),v.push(k));
(W=Object.keys(q).length>0)&&b();B=OP9(e.queue,v).pipe(MY(function(f){if(f instanceof DR)throw new SH(String(D[f.inputObservableIndex]));throw f;}),$P(function(f){return Object.freeze(Object.assign.apply(Object,[{},
u].concat(_.kP(f))))}));
return(v=v.length>0)&&W?g9(GE(Object.freeze(u)),B):v?B:GE(Object.freeze(u))};
heR=function(W,e,t,b,m){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var q={};try{return e.pipe(MY(function(Q){b(Object.assign({},q,{error:Q}));return fP}),jd(function(Q){try{var X=t(W,Q)}catch(u){return b(Object.assign({},q,{error:u instanceof Error?u:String(u)})),fP}var I={};
return sGz(X,W,Q.symbol).pipe(WK(function(u){I=u}),LP(1),ZV()).pipe(m,MY(function(u){b(Object.assign({},I,{error:u}));
return fP}),i8(void 0),$P(function(){return!0}))})).pipe(Ed(function(Q){return Q+1},0),MY(function(Q){b(Object.assign({},q,{error:Q}));
return fP}))}catch(Q){return b(Object.assign({},q,{error:Q})),fP}})()};
BK=function(W){var e=new Map;if(typeof W!=="object"||W===null)return e;Object.values(W).forEach(function(t){t&&typeof t.extrapolateToNow==="function"&&(e.has(t.clock.timeline)||e.set(t.clock.timeline,t.clock.now()))});
return e};
HPS=function(W,e){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(t){return HPS(t,e)}).join(","):W instanceof xP?W.toString():W&&typeof W.extrapolateToNow==="function"?HPS(W.extrapolateUsingTimestampMap(e).value,e):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof Kkz?P8L(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
oD=function(W,e){W=Object.entries(W).map(function(t){var b=_.R(t);t=b.next().value;b=b.next().value;b=HPS(b,e);return b===null?"":t+"="+b}).filter(function(t){return t!==""});
return W.length?W.join("&"):""};
YdL=function(W,e){var t=VdQ,b=iP2;e=e===void 0?.01:e;return function(m){e>0&&Math.random()<=e&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),m=Object.assign({},m,{errorMessage:m.error instanceof Error&&m.error.message?m.error.message:String(m.error),errorStack:m.error instanceof Error&&m.error.stack?String(m.error.stack):null,errorName:m.error instanceof
Error&&m.error.name?String(m.error.name):null,errorContext:String(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:m.escapedQueryId}),t(Object.assign({},m,{payloadMapper:function(){return function(q){try{return b(Object.assign({},q))}catch(Q){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),BK(m)).forEach(function(q){W.beaconFactory.makeBeacon(q).sendNow()}))}};
zev=function(){var W=_.$N.apply(0,arguments);return function(e){var t=e.pipe(LP(1),ZV());e=W.map(function(b){return t.pipe(b,i8(!0))});
return pP(e).pipe(Pa(1),sd())}};
UYD=function(){var W=_.$N.apply(0,arguments);return function(e){var t=e.pipe(LP(1),ZV());e=W.map(function(b){return t.pipe(b,i8(!0))});
return g9.apply(null,_.kP(e)).pipe(Pa(1),sd())}};
LkR=function(W,e){return function(t){var b=t.pipe(LP(1),ZV());t=b.pipe(W,i8(!0));b=b.pipe(ed(e,LP(),ZV()),i8(!0));t=pP([t,b]);return uhD(t,b).pipe(Pa(1),sd())}};
EPR=function(W,e,t){t(!0)};
AGD=function(W,e){return ed(NY(function(t){var b=W(t),m=e(t),q={};return b&&m&&q?new tG(function(Q){m(b,q,function(X){Q.next(Object.assign({},t,{canEmit:X}));Q.complete()});
return function(){}}):lN}),TE(function(t){return t.canEmit}))};
N9R=function(W){var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(t){return t.pipe(NY(function(b){return new tG(function(m){function q(){X.disconnect();I.unsubscribe()}
var Q=W.MutationObserver;if(Q&&b.ref!==void 0){var X=new Q(function(u){m.next(u)});
X.observe(b.ref,e);var I=b.JSC$7406_released.subscribe(q);return q}})}))}};
dYc=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var e=W.creativeFound===!1?"n":null;if(e!==null)return e}return W.geometricMeasurementErrors instanceof ZR?"msf":W.contextValidationErrors instanceof $J?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
p8=function(W,e){return W.replace(W_R,function(t,b){try{var m=_.kJ.get(e,b);if(m==null||m.toString()==null)return t;m=m.toString();if(m==""||!_.QK(m==null?"":String(m)))return encodeURIComponent(m).replace(/%2C/g,",")}catch(q){}return t})};
ePs=function(W,e){var t=Object.assign({},W),b=W.userAgentClientHints;t=(delete t.userAgentClientHints,t);t=W.payloadMapper(t);var m=oD(t,e);return _.yO(W.urlPrefixes,function(q){var Q="";typeof b==="string"&&(Q="&"+oD({uach:b},e));var X={};return p8(q,(X.VIEWABILITY=m,X))+Q})};
VdQ=function(W,e){var t=W.payloadMapper(W),b=oD(t,e);return b?_.yO(W.urlPrefixes,function(m){m=m.indexOf("?")>=0?m:m+"?";m="?&".indexOf(m.slice(-1))>=0?m:m+"&";return m+b}):W.urlPrefixes};
tHD=function(){return ed(TE(function(W){return W!==void 0}),$P(function(W){return W}))};
b8S=function(W){return ed($P(function(){return!0}),AG(!1),QO(W))};
mL9=function(W){return W.length<=0?fP:pP(W.map(function(e){var t=0;return e.pipe($P(function(b){return{index:t++,value:b}}))})).pipe(TE(function(e){return e.every(function(t){return t.index===e[0].index})}),$P(function(e){return e.map(function(t){return t.value})}))};
rDZ=function(W,e){W.currentState&&(W.previousState=W.currentState);W.currentState=e;W.previousState&&W.previousState.value?(e=Math.max(0,JG(e.timestamp,W.previousState.timestamp)),W.totalTime+=e,W.consecutiveTime+=e):W.consecutiveTime=0;return W};
qEv=function(){return ed(Ed(rDZ,{totalTime:0,consecutiveTime:0}),$P(function(W){return W.totalTime}))};
RPz=function(){return ed(Ed(rDZ,{totalTime:0,consecutiveTime:0}),$P(function(W){return W.consecutiveTime}))};
QD2=function(W,e){return function(t){return mL9(e.map(function(b){return t.pipe(W(b))}))}};
F_G=function(){var W;return ed(WK(function(e){return void(W=e.timestamp)}),RPz(),$P(function(e){return{timestamp:W,
value:Math.round(e)}}))};
XK9=function(W,e){return ID(W.topWindowViewportExternalGeometry,e.topWindowViewportExternalGeometry)&&ID(W.elementGeometry,e.elementGeometry)&&ID(W.exposedViewportLocalGeometry,e.exposedViewportLocalGeometry)&&ID(W.intersectionGeometry,e.intersectionGeometry)&&W.elementGeometrySourceName===e.elementGeometrySourceName&&W.measurementRequests===e.measurementRequests&&W.viewportGeometrySourceName===e.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===e.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
e.viewportLocalAppOffset.y};
wKK=function(W,e){return function(t){return function(b){var m=b.pipe(zE(new qL),ZV());b=t.element.pipe(Vh());m=m.pipe($P(function(q){return q.value}));
return pP([b,m,e]).pipe($P(function(q){var Q=_.R(q);q=Q.next().value;var X=Q.next().value;Q=Q.next().value;if(q.ref===void 0)var I={top:0,left:0,width:0,height:0};else{I=q.ref.getBoundingClientRect();var u=q.ref,c=W.global,v=new _.jH(0,0),D=C8(_.n8(u));if(f8(D,"parent")){do{if(D==c)var B=_.g6(u);else B=IRg(u),B=new _.jH(B.left,B.top);v.x+=B.x;v.y+=B.y}while(D&&D!=c&&D!=D.parent&&(u=D.frameElement)&&(D=D.parent))}I={top:v.y,left:v.x,width:I.width,height:I.height}}I=vPK(I,X.viewportLocalAppOffset);
c=cGc(I,X.exposedViewportLocalGeometry);v=W.timeProvider.now();D=Object;u=D.assign;if(Q!==2||W.inCrossDomainIframe||c.width<=0||c.height<=0)var k=!1;else try{var n=W.document.elementFromPoint(c.left+c.width/2,c.top+c.height/2);k=n?!aR2(n,q):!1}catch(f){k=!1}return{timestamp:v,value:u.call(D,{},X,{elementGeometrySourceName:"geo",intersectionGeometry:k?Ta.intersectionGeometry:c,elementGeometry:I})}}),RD(W.queue))}}};
aR2=function(W,e,t){t=t===void 0?0:t;return W.ref===void 0||e.ref===void 0?!1:W.ref===e.ref||_.JD(e.ref,function(b){return b===W.ref})?!0:e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView===e.ref.ownerDocument.defaultView.top?!1:t<10&&e.ref.ownerDocument&&e.ref.ownerDocument.defaultView&&e.ref.ownerDocument.defaultView.frameElement?aR2(W,new xJ(e.ref.ownerDocument.defaultView.frameElement),t+1):!0};
vJR=function(W){return function(e){return e.pipe(W.ResizeObserver?uUs(W):cDL(W),LP(1),ZV())}};
uUs=function(W){return function(e){return e.pipe(NY(function(t){var b=W.ResizeObserver;if(!b||t.ref===void 0)return GE(Ta.elementGeometry);var m=(new tG(function(q){function Q(){t.ref!==void 0&&X.unobserve(t.ref);X.disconnect();I.unsubscribe()}
if(t.ref===void 0)return q.complete(),function(){};
var X=new b(function(u){u.forEach(function(c){q.next(c)})});
X.observe(t.ref);var I=t.JSC$7406_released.subscribe(Q);return Q})).pipe(Od(W.performanceMonitor,736),$P(function(q){return q.contentRect}));
return g9(GE(t.ref.getBoundingClientRect()),m)}),Vh(ID))}};
cDL=function(W){return function(e){var t=e.pipe(N9R(W)),b=W.onResize;t=g9(e.pipe($P(function(){return LTS("resize")})),t,b);
return pP(e,t).pipe(Od(W.performanceMonitor,737),$P(function(m){m=_.R(m).next().value;return m.ref===void 0?void 0:m.ref.getBoundingClientRect()}),tHD(),Vh(ID))}};
SEL=function(W,e){var t=GaG(W,e).pipe(LP(1),ZV());return function(b){return function(m){m=m.pipe(NY(function(q){return q.element}),Vh());
return pP([t,m]).pipe(NY(function(q){var Q=_.R(q);q=Q.next().value;Q=Q.next().value;return DLS(W,q.intersectionObserver,vJR(W),q.observations,b,q.flushRecords,Q)}),RD(W.queue))}}};
B6D=function(W){return $P(function(e){return e.value.viewportGeometrySourceName!=="nio"?e:Object.assign({},e,{value:Object.assign({},e.value,{exposedViewportLocalGeometry:OE(W,!0),topWindowViewportExternalGeometry:OE(W,!0)})})})};
oJG=function(W,e){return GE(e).pipe(W,$P(function(){return e}))};
GaG=function(W,e){return W.timeProvider.timeline!==lRR?DV(new ZR(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?DV(new ZR(0)):(new tG(function(t){var b=new qL,m=new ML(b.next.bind(b),{threshold:[].concat(_.kP(e))});t.next({observations:b.pipe(Od(W.performanceMonitor,735)),intersectionObserver:m,flushRecords:function(q){q=m.takeRecords(q);q.length>0&&b.next(q)}})})).pipe(Pa(1),LP(1),ZV()):DV(new ZR(1))};
Z8g=function(W){return OOQ(W.sort(function(e,t){return e.time-t.time}),Yws)};
DLS=function(W,e,t,b,m,q,Q){return new tG(function(X){function I(){k||(k=!0,Q.ref!==void 0&&e.unobserve(m,Q.ref),c.unsubscribe(),B.unsubscribe(),D.unsubscribe(),n.unsubscribe())}
if(Q.ref!==void 0){$LR(e,m);e.observe(m,Q.ref);var u=new sE({timestamp:W.timeProvider.now(),value:Object.assign({},Ta,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),c=b.pipe(jd(function(f){return Z8g(f)}),TE(function(f){return f.target===Q.ref}),$P(function(f){return{timestamp:new xP(f.time,lRR),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:f.rootBounds||hD,topWindowViewportExternalGeometry:f.rootBounds||OE(W,!0),measurementRequests:v,elementGeometrySourceName:"nio",intersectionGeometry:f.intersectionRect,elementGeometry:f.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:f.isIntersecting,isV2Visible:f.isVisible}}}),zE(u),ZV()).subscribe(X),v=new qL,D=v.subscribe(function(){q(m);
X.next({timestamp:W.timeProvider.now(),value:u.value.value});Q.ref!==void 0&&(e.unobserve(m,Q.ref),e.observe(m,Q.ref))}),B=oJG(t,Q).subscribe(function(){v.next()}),k=!1,n=Q.JSC$7406_released.subscribe(function(){return I()});
return I}})};
kaz=function(W,e){var t=W.getOnBackgrounded().pipe($P(function(){return"b"}));
return uhD(e,t).pipe(Pa(1),QO(W.queue))};
HK=function(W){return function(e){var t;return e.pipe(WK(function(b){return void(t=b.timestamp)}),$P(function(b){return b.value}),W,$P(function(b){return{timestamp:t,
value:b}}))}};
pKG=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)};
K8=function(W,e,t){t=t===void 0?function(b,m){return b===m}:t;
return W.timestamp.equals(e.timestamp)&&t(W.value,e.value)};
VO=function(W,e){return e.pipe($P(function(t){return new PK(W.timeProvider,{timestamp:W.timeProvider.now(),value:t})}))};
yDQ=function(W){return function(e){return e.pipe(nN9(W),$P(function(t){var b=_.R(t);t=b.next().value;b=b.next().value;var m=t.value;return{timestamp:t.timestamp,value:m>=1?!0:m<=0?!1:m>=b}}))}};
CNv=function(){return ed(TE(function(W,e){return e>0}),jD9,AG(-1),Vh())};
nJz=function(W,e,t){return W?pP([e,t]).pipe(TE(function(b){var m=_.R(b);b=m.next().value;m=m.next().value;return b.timestamp.equals(m.timestamp)}),$P(function(b){var m=_.R(b);
b=m.next().value;m=m.next().value;return b.value>m.value?b:m})):e};
T6g=function(W){return function(e){var t=e.pipe(fR9),b=e.pipe(gJg);return W instanceof tG?W.pipe(NY(function(m){return nJz(m,t,b)})):nJz(W.value,t,b)}};
VHv=function(W,e,t,b){var m=b.geometryIsOccluded,q=b.exposureThreshold,Q=b.wasLargeAdAtRender,X=b.allowLargeAdThreshold,I=b.largeAdExposureThreshold,u=b.mayUseViewportShareExposure,c=b.hasMeasurementStarted;b=b.useIntersectionObserverV2;e=JDG(W,t,e);t=xLQ(W,t);b=O8c(e,b);var v=MHZ(W,m,u,e),D=v.pipe($P(function(L){return L.value}),Vh(),QO(W),Ed(function(L,E){return Math.max(L,E)},0)),B=v.pipe($P(function(L){return L.value}),CNv(),QO(W)),k=e.pipe(sDz,$P(function(L){return L.value}),Pa(2),Vh(),QO(W));
Q=hPK(W,e,Q,X);var n=Q.pipe(AG(!1),Vh(),$P(function(L){return L?I:q}));
X=v.pipe(yDQ(n),Vh(),QO(W));var f=pP([X,e]).pipe(TE(function(L){var E=_.R(L);L=E.next().value;E=E.next().value;return L.timestamp.equals(E.timestamp)}),$P(function(L){var E=_.R(L);
L=E.next().value;E=E.next().value;return{visible:L.value,geometry:E.value.elementGeometry}}),Ed(function(L,E){return!E.visible&&L.visible?L:E},{visible:!1,
geometry:hD}),$P(function(L){return L.geometry}),AG(hD),QO(W),Vh(ID));
u=u instanceof tG?u.pipe(Vh(),hG()):lN;n=pP([u,n]).pipe(hG());var M=e.pipe(TE(function(L){return L.value.viewportGeometrySourceName!=="ns"&&L.value.elementGeometrySourceName!=="ns"}),Ed(function(L){return L+1},0),AG(0),QO(W)),K=t.pipe(hG(!0),AG(!1),QO(W));
K=pP([c,K]).pipe($P(function(L){var E=_.R(L);L=E.next().value;E=E.next().value;return L&&!E}),QO(W));
var U=e.pipe(H8G,Vh()),V=U.pipe($P(function(L){return L.value}),Ed(function(L,E){return Math.max(L,E)},0),Vh(),QO(W));
W=U.pipe($P(function(L){return L.value}),CNv(),QO(W));
return{shouldResetExposureSignals:u,shouldResetViewabilitySignals:n,geometrySignals:{readyGeometryWithDefault:e,measurementStrategy:e.pipe(K_9),creativePosition:f.pipe(Vh(ID)),visible:X.pipe(Vh(K8)),timestampedExposure:v.pipe(Vh(K8)),maximumExposure:D,minimumExposure:B,browserSize:e.pipe(PNG,Vh(_.Q8)),timestampedScreenShare:U,maxScreenShare:V,minScreenShare:W,geometricMeasurementErrors:t,measurementRequests:e.pipe($P(function(L){return L.value.measurementRequests})),
isLargeAd:Q,geometryIsOccluded:m,hasMeasurementStarted:c,geometryMeasurable:K,validMeasurementCount:M,loadTimeExposure:k,v2VisibilityBitVector:b}}};
xLQ=function(W,e){return e.pipe(TE(function(){return!1}),$P(function(t){return t}),MY(function(t){return iN(new XU(t),W)}))};
JDG=function(W,e,t){return e.pipe(a1G(lN),QO(W)).pipe(Vh(function(b,m){return K8(b,m,XK9)}),AG({timestamp:t.now(),
value:Ta}),QO(W))};
MHZ=function(W,e,t,b){t=b.pipe(T6g(t),HK($P(function(m){return Math.round(m*100)/100})),QO(W));
return e instanceof XU?t:pP([t,e]).pipe($P(function(m){var q=_.R(m);m=q.next().value;q=q.next().value;return{timestamp:q.timestamp.maximum(m.timestamp),value:q.value?0:m.value}}),Vh(K8),QO(W))};
hPK=function(W,e,t,b){e=[e.pipe($P(function(m){return m.value.elementGeometry.width*m.value.elementGeometry.height>=242500}))];
t instanceof tG&&e.push(t.pipe($P(function(m){return!!m})));
t=pP(e);return b?t.pipe($P(function(m){return m.some(function(q){return q})}),AG(!1),Vh(),QO(W)):iN(new XU(!1),W)};
O8c=function(W,e){W=pP([W,e]).pipe($P(function(m){var q=_.R(m);m=q.next().value;if(q.next().value&&m.value.isIntersecting)return m.value.isV2Visible}),Vh());
var t=W.pipe($P(function(m){return m===void 0?!0:m}),Ed(function(m,q){return m||!q},!1)),b=W.pipe(Ed(function(m,q){return q===void 0?m:q?!1:m!=null?m:!0},void 0),$P(function(m){return!!m}));
return pP([e,cKc(W,t,b)]).pipe($P(function(m){var q=_.R(m);m=q.next().value;var Q=_.R(q.next().value);q=Q.next().value;var X=Q.next().value;Q=Q.next().value;var I=0;if(!m)return 0;if(q===void 0)return 16;q&&(I|=1);q||(I|=2);X&&(I|=4);Q&&(I|=8);return I}))};
UL9=function(W,e,t,b,m){var q=YJ.timeThresholdMs;var Q=Q===void 0?new i8G(e,b):Q;return(new tG(function(X){var I=t.pipe(AG(void 0),NY(function(){return YEK(m)})).pipe($P(function(u){var c=u.value;
u=u.timestamp;var v=c.visible;c=c.consecutiveViewTime;var D=c>=q;D||!v?za(Q):(u=Math.max(0,JG(e.now(),u)),zPG(Q,Math.max(0,q-c-u)));return D}),Ed(function(u,c){return c||u},!1),Vh()).subscribe(X);
return function(){Q.dispose();I.unsubscribe()}})).pipe(d9(function(X){return!X},!0),QO(W))};
YEK=function(W){return mL9([W,W.pipe(F_G())]).pipe($P(function(e){var t=_.R(e);e=t.next().value;t=t.next().value;return{timestamp:e.timestamp,value:{visible:e.value,consecutiveViewTime:t.value}}}),Vh(function(e,t){return K8(e,t,function(b,m){return b.consecutiveViewTime===m.consecutiveViewTime&&b.visible===m.visible})}))};
L_s=function(){return ed(RPz(),Ed(function(W,e){return Math.max(W,e)},0),$P(function(W){return Math.round(W)}))};
EJc=function(W){return ed(yDQ(GE(W)),L_s())};
ADR=function(W,e){return e instanceof tG?e.pipe(NY(function(t){return(t=t?15:null)?DV(new ZR(t)):W})):(e=e.value?15:null)?DV(new ZR(e)):W};
N6L=function(W){var e=new ZR(13);if(W.length<1)return{chain:fP,capturedErrors:fP};var t=new qL,b=W[0];return{chain:W.slice(1).reduce(function(m,q){return m.pipe(MY(function(Q){t.next(Q);return q}))},b).pipe(MY(function(m){t.next(m);
return DV(e)}),zE(new qL),ZV()),
capturedErrors:t}};
dLz=function(W,e){var t=W.pipe(zE(new qL),ZV());return NY(function(b){return t.pipe(e(b))})};
eFG=function(W,e){if(W.inCrossDomainIframe)return DV(new ZR(6));var t=new qL;return g9(GE({}),e,t).pipe($P(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:WEs(W),topWindowViewportExternalGeometry:OE(W,!0),measurementRequests:t,viewportLocalAppOffset:{x:0,y:0}}}}),RD(W.queue))};
WEs=function(W){var e=OE(W,!1);if(!W.inIframe||!UE(W.global.parent)||W.global.parent===W.global)return e;var t=new L8(W.global.parent,W.debugChannel);t.beaconFactory=W.beaconFactory;t=WEs(t);W=W.global.frameElement.getBoundingClientRect();return cGc(vPK(cGc(t,W),{x:e.left-W.left,y:e.top-W.top}),e)};
thc=function(W){if(W.prerendering)return 3;var e;return(e={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?e:0};
b3c=function(W){return W.document.JSC$7417_onVisibilityChange.pipe($P(function(e){return e==="visible"}),Vh(),QO(W.queue))};
mcG=function(W,e,t){var b;return e.pipe(Vh(),NY(function(m){return t.pipe($P(function(){if(!b){b=!0;try{m.next()}finally{b=!1}}return!0}))}),AG(!1),QO(W.queue))};
rE2=function(W){return ed(HK($P(function(e){return e>=1?!0:e<=0?!1:e>=W})),qEv(),$P(function(e){return Math.round(e)}))};
RFc=function(W,e,t,b,m){var q=qJ9;if(q.length>1)for(var Q=0;Q<q.length-1;Q++)if(q[Q]<q[Q+1])throw Error();Q=m.pipe(AG(void 0),NY(function(){return t.pipe(F_G())}),Vh(),QO(W));
m=m.pipe(AG(void 0),NY(function(){return t.pipe(L_s())}),Vh(),QO(W));
return{totalMeasurementTime:b.pipe(AG(void 0),NY(function(){return e.pipe($P(function(X){return{timestamp:X.timestamp,value:!0}}),qEv())}),Vh(),QO(W)),
totalUnviewedTime:b.pipe(AG(void 0),NY(function(){return e.pipe($P(function(X){return{timestamp:X.timestamp,value:X.value===0}}),qEv())}),Vh(),QO(W)),
maxTimeOnScreen:b.pipe(AG(void 0),NY(function(){return e.pipe(QD2(EJc,q))}),Vh(_.Q8),QO(W)),
timeOnScreen:b.pipe(AG(void 0),NY(function(){return e.pipe(QD2(rE2,q),$P(function(X){return X.map(function(I,u){return u>0?I-X[u-1]:I})}))}),Vh(_.Q8),QO(W)),
maxConsecutiveViewTime:m,consecutiveViewTime:Q.pipe(Vh(K8),QO(W))}};
FEZ=function(W){var e=!0;e=e===void 0?!1:e;return ed(NY(function(t){return QhL(W.document,t,e)}),QO(W.queue))};
XXD=function(W,e,t){var b=t.pipe($P(function(m){return{value:m,timestamp:W.timeProvider.now()}}),Vh(K8));
return e instanceof tG?e.pipe(Vh(),NY(function(m){return m?iN(new XU({value:!1,timestamp:W.timeProvider.now()}),W.queue):b})):e.value===!1?b:new XU(!1)};
IAD=function(W,e,t,b,m,q,Q){var X=YJ;e=e instanceof tG?e.pipe(AG(!1),Vh()):e;var I=!W.isMobile();t=XXD(W,t,b);W=Q.measurableCreative.pipe(b8S(W.queue));return Object.assign({},X,{geometryIsOccluded:t,wasLargeAdAtRender:m,allowLargeAdThreshold:I,mayUseViewportShareExposure:e,hasMeasurementStarted:W,useIntersectionObserverV2:q})};
wXc=function(W,e,t,b,m,q){var Q=1;q=q===void 0?!0:q;Q=Q===void 0?.01:Q;var X=X===void 0?W.timeProvider.intervalObservable(100).pipe(QO(W.queue)):X;return W.performanceMonitor.timeExecution(916,function(){return aAL(W,e.pipe(RD(W.queue)),t.pipe(RD(W.queue)),b,m,q,Q,X)})()};
aAL=function(W,e,t,b,m,q,Q,X){var I=b3c(W).pipe($P(function(c){return!c})),u=new uzv(W,[new cEG(W,qJ9),
new va9(W,X)]);X=zev(Ggc,Dcg);return heR(W,e,function(c,v){var D=iN(new XU(v.element),c.queue).pipe(FEZ(c),QO(c.queue)),B={loadedElement:D,shouldMeasure:D.pipe(hG(!0)),measurableCreative:D.pipe($P(function(L){var E=E===void 0?Symbol():E;return Object.freeze({symbol:E,element:iN(new XU(L),c.queue)})})),
creativeSearchResult:iN(new XU("mue"),c.queue)},k=new XU(!1),n=new XU(!1),f=new XU(17),M=new XU(!1),K=new XU(!1),U=iN(EE,c.queue);k=u.buildGeometrySource(B,{inApp:k,useV2:!1,requestSource:iN(f,c.queue)}).geometrySource;B=IAD(c,M,n,I,K,U,B);n=VHv(c.queue,c.timeProvider,k,B);B=n.geometrySignals;M=n.shouldResetViewabilitySignals;n=RFc(c.queue,B.timestampedExposure,B.visible,n.shouldResetExposureSignals,M);M=UL9(c.queue,c.timeProvider,M,B.measurementRequests,B.visible);K=t.pipe(TE(function(L){return L===
v.element.ref}),$P(function(){return"ur"}));
U=SVg(c.timeProvider,m).pipe(hG("t"));K=kaz(c,g9(K,U));U=mcG(c,B.measurementRequests,K.pipe(TE(function(L){return L!==null})));
k=K.pipe(TE(function(L){return L!==null}),$P(function(){return thc(c.global.document)===1}));
var V=SJZ(c.document);return Object.assign({},{beaconFactory:new XU(c.beaconFactory),context:new XU(c),inferredPingId:new XU("lidar2"),timeOnScreenPingId:new XU("lidartos"),binaryContext:new XU(17),binaryVersion:new XU(b),requestSource:f,contextValidationErrors:new XU(c.validate()?null:new $J),contextVisibilityKnown:new XU(V),payloadMapper:new XU(iP2),endOfSessionReason:K,timeOnScreenReason:K,requestMeasurementOnEndOfSession:U,hasImpressionFired:B$v,crossDomainIframeState:new XU(c.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:EE,inFetchLaterBeaconExperiment:EE,isTurtlex:EE,turtlexReportEventData:new XU(""),reportFencedFrameEvent:lN,isViewableAttributionEnabled:EE,inViewableAttributionExperiment:new XU(0),fetchBeaconFactory:lN,supportsPendingBeacon:EE,supportsFetchLater:EE,emit:new XU(EPR),beginToRenderEvent:new XU(Symbol()),activeViewUnmeasurableEvent:new XU(Symbol()),activeViewViewableEvent:new XU(Symbol()),creativeFound:B$v,immediateUrlPrefixes:new XU(v.immediateUrls),timeOnScreenUrlPrefixes:new XU(v.timeOnScreenUrls),
cpmavUrls:lN,viewableRelayUrls:lN,measurementDeferralState:new XU(2),urlSerializer:new XU(ePs),viewUrlSerializer:new XU(oaQ),isCreativeLoaded:D.pipe(b8S(c.queue)),pageVisible:I.pipe($P(function(L){return!L})),
eosPageVisible:k,timestampedExposureHistory:B.timestampedExposure.pipe(Ed(function(L,E){L.push(E);return L},[]))},B,{viewable:VO(c,M),
maxTimeOnScreen:VO(c,n.maxTimeOnScreen),timeOnScreen:VO(c,n.timeOnScreen),maxConsecutiveViewTime:VO(c,n.maxConsecutiveViewTime),consecutiveViewTime:n.consecutiveViewTime.pipe($P(function(L){return new PK(c.timeProvider,L)})),
totalMeasurementTime:VO(c,n.totalMeasurementTime),totalUnviewedTime:VO(c,n.totalUnviewedTime),userAgentClientHints:Utc(c),clientOrderPingCounter:new XU(new Kkz)})},YdL(W,Q),UYD(q?LkR(X,lAQ):LkR(X,Z3z),$cv))};
kgS=function(W){var e=_.$N.apply(1,arguments).filter(Boolean).join("&");if(!e)return W;var t=W.match(/[?&]adurl=/);return t?W.slice(0,t.index+1)+e+"&"+W.slice(t.index+1):W+(W.indexOf("?")<0?"?":"&")+e};
AD=function(W,e){return e?"&"+W+"="+encodeURIComponent(e):""};
pXG=function(){try{var W,e;return!!((W=window)==null?0:(e=W.top)==null?0:e.location.href)&&!1}catch(t){return!0}};
_.NL=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.d6=function(W){for(var e=0,t=arguments.length;e<t;++e){var b=arguments[e];_.Ns(b)?_.d6.apply(null,b):_.NL(b)}};
jhc=function(){var W=yE9();W=W===void 0?"bevasrsg":W;return new Promise(function(e){var t=window===window.top?window:pXG()?window:window.top,b=t[W],m;((m=b)==null?0:m.bevasrs)?e(new WX(b.bevasrs)):(b||(b={},b=(b.nqfbel=[],b),t[W]=b),b.nqfbel.push(function(q){e(new WX(q))}))})};
CQR=function(W){var e={c:W.c6,e:W.w43,mc:W.kIq,me:W.dgI};W.bx&&(e.co={c:W.bx.bx8,a:W.bx.oPi,s:W.bx.i29});return e};
naK=function(W){var e,t,b={c6:W.c,w43:W.e,kIq:(e=W.mc)!=null?e:!1,dgI:(t=W.me)!=null?t:!1};W.co&&(b.bx={bx8:W.co.c,oPi:W.co.a,i29:W.co.s});return b};
fAQ=function(W){return function(){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W(),2);e=t.yieldResult;return t.return({f:function(){return e.ttW()},
c:function(b){return e.vqq(b)},
m:function(b){return e.tI(naK(b))},
mws:function(b){return e.i8(naK(b))}})})}};
ga9=function(W,e){var t=yE9();t=t===void 0?"bevasrsg":t;e={s:function(q){var Q;return W.snapshot(Object.assign({},q.c&&{c6:q.c},q.s&&{gvW:q.s},{qzO:(Q=q.p)!=null?Q:!0}))},
e:function(q){var Q;return void((Q=W.hIm)==null?void 0:Q.call(W,q))},
c:function(q,Q){return W.wSq(q,Q)},
p:W.bde,l:function(){return W.wlS()},
wpc:e?fAQ(e):void 0};var b=window===window.top?window:pXG()?window:window.top,m=b[t];if(m){m.bevasrs=e;if(m.nqfbel!==void 0)for(t=_.R(m.nqfbel),b=t.next();!b.done;b=t.next())b=b.value,b(e);m.nqfbel=void 0}else m={},m=(m.bevasrs=e,m.nqfbel=void 0,m),b[t]=m};
JES=function(W){var e=e===void 0?49:e;var t=[];_.eh(W,T$S,6,_.tE()).forEach(function(b){_.bQ(b,2)<=e&&t.push(_.bQ(b,1))});
return t};
xcS=function(W){var e=e===void 0?49:e;var t=[];_.eh(W,T$S,6,_.tE()).forEach(function(b){_.bQ(b,2)>e&&t.push(_.bQ(b,1))});
return t};
O3c=function(W){W.then(function(){},function(){})};
mE=function(W){return{fieldType:1,fieldName:W}};
r$=function(W){return{fieldType:2,fieldName:W}};
_.qc=function(W){return{fieldType:3,fieldName:W}};
MhR=function(){function W(){m[0]=1732584193;m[1]=4023233417;m[2]=2562383102;m[3]=271733878;m[4]=3285377520;c=u=0}
function e(v){for(var D=Q,B=0;B<64;B+=4)D[B/4]=v[B]<<24|v[B+1]<<16|v[B+2]<<8|v[B+3];for(B=16;B<80;B++)v=D[B-3]^D[B-8]^D[B-14]^D[B-16],D[B]=(v<<1|v>>>31)&4294967295;v=m[0];var k=m[1],n=m[2],f=m[3],M=m[4];for(B=0;B<80;B++){if(B<40)if(B<20){var K=f^k&(n^f);var U=1518500249}else K=k^n^f,U=1859775393;else B<60?(K=k&n|f&(k|n),U=2400959708):(K=k^n^f,U=3395469782);K=((v<<5|v>>>27)&4294967295)+K+M+U+D[B]&4294967295;M=f;f=n;n=(k<<30|k>>>2)&4294967295;k=v;v=K}m[0]=m[0]+v&4294967295;m[1]=m[1]+k&4294967295;m[2]=
m[2]+n&4294967295;m[3]=m[3]+f&4294967295;m[4]=m[4]+M&4294967295}
function t(v,D){if(typeof v==="string"){v=unescape(encodeURIComponent(v));for(var B=[],k=0,n=v.length;k<n;++k)B.push(v.charCodeAt(k));v=B}D||(D=v.length);B=0;if(u==0)for(;B+64<D;)e(v.slice(B,B+64)),B+=64,c+=64;for(;B<D;)if(q[u++]=v[B++],c++,u==64)for(u=0,e(q);B+64<D;)e(v.slice(B,B+64)),B+=64,c+=64}
function b(){var v=[],D=c*8;u<56?t(X,56-u):t(X,64-(u-56));for(var B=63;B>=56;B--)q[B]=D&255,D>>>=8;e(q);for(B=D=0;B<5;B++)for(var k=24;k>=0;k-=8)v[D++]=m[B]>>k&255;return v}
for(var m=[],q=[],Q=[],X=[128],I=1;I<64;++I)X[I]=0;var u,c;W();return{reset:W,update:t,digest:b,digestString:function(){for(var v=b(),D="",B=0;B<v.length;B++)D+="0123456789ABCDEF".charAt(Math.floor(v[B]/16))+"0123456789ABCDEF".charAt(v[B]%16);return D}}};
PQG=function(W,e){e=e===void 0?shZ:e;if(!hFK){var t;W=(t=W.navigator)==null?void 0:t.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("za"));H3R((W.brands||[]).map(function(m){var q=new KED;q=_.Ga(q,1,m.brand);return _.Ga(q,2,m.version)}));
typeof W.mobile==="boolean"&&_.Rh(QV,2,W.mobile);hFK=W.getHighEntropyValues(e)}var b=new Set(e);return hFK.then(function(m){var q=QV.clone();b.has("platform")&&_.Ga(q,3,m.platform);b.has("platformVersion")&&_.Ga(q,4,m.platformVersion);b.has("architecture")&&_.Ga(q,5,m.architecture);b.has("model")&&_.Ga(q,6,m.model);b.has("uaFullVersion")&&_.Ga(q,7,m.uaFullVersion);return q.serialize()}).catch(function(){return QV.serialize()})};
Fz=function(W,e,t,b){this.initialValue_=W;this.maxValue_=e;this.currBaseValue_=this.currValue_=W;this.randomFactor_=t||0;this.backoffFactor_=b||2};
Xz=function(W){this.src=W;this.listeners={};this.typeCount_=0};
zFz=function(){for(var W;W=VhG.remove();){try{W.fn.call(W.scope)}catch(e){bv(e)}i3Z.put(W)}YJS=!1};
_.Ih=function(W){switch(W){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}};
Ucz=function(W){switch(W){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""}};
_.LEG=function(){};
m5K=function(W){return{wnD:new EaQ(W),errorCount:new AEs(W),eventCount:new N$L(W),cHK:new dcQ(W),lch:new WJ2(W),ngO:new eiQ(W),x7d:new tCD(W),zrO:new bhg(W)}};
wf9=function(W,e,t,b){W=rOD(q0S(RiG(new _.ah(1828,"0"),W),new QbL));e.length&&FJL(W,Xf2(new I2Z,e));b!==void 0&&(W.destinationUrl=b);var m=new a29(1828,"","",!1,"",W.build());_.w$(m,W);var q=new uQ({flush:function(Q){try{m.flush(Q)}catch(X){t(X)}}});
q.addOnDisposeCallback(function(){setTimeout(function(){try{q.snapshotAndFlush()}finally{m.dispose()}})});
q.invocationLimit=1E5;q.flushInterval=3E4;q.JSC$7833_flushTimer.setInterval(3E4);return q};
cX=function(){var W,e,t;return(t=(W=globalThis.performance)==null?void 0:(e=W.now)==null?void 0:e.call(W))!=null?t:Date.now()};
gKQ=function(W,e,t){if(W.disable)return new u0Q;e=e?JES(e):[];if(t)return t.rNm(e),t.share();W={xM:W.xM,hT8:W.xI0,o2e:W.wiI,destinationUrl:W.destinationUrl,jDJ:W.jDJ,sO:W.sO};t=e;t=t===void 0?[]:t;return new vX(W,t)};
TPG=function(W){if(!W)return null;W=_.Gg(W,2);return W===null||W===void 0?null:CF(W)};
_.JOL=function(W){if(!W)return null;W=_.Gg(W,4);return W===null||W===void 0?null:_.Fh(W)};
MCS=function(W,e){return e?x5G(e):W?OhG(W):Promise.resolve()};
x5G=function(W){return new Promise(function(e,t){var b=_.DA("SCRIPT"),m=_.JOL(W);_.H7(b,m);b.onload=function(){_.BX(b);e()};
b.onerror=function(){_.BX(b);t(Error("Ka"))};
(oh("HEAD")[0]||document.documentElement).appendChild(b)})};
OhG=function(W){return new Promise(function(e){var t=_.DA("SCRIPT");if(W){var b=_.Gg(W,6);b=b===null||b===void 0?null:_.Mt(b)}else b=null;_.hK(t,b);(oh("HEAD")[0]||document.documentElement).appendChild(t);_.BX(t);e()})};
lQ=function(W,e,t){var b,m=new Promise(function(q){b=setTimeout(q,e)});
return Promise.race([W.finally(function(){return void clearTimeout(b)}),
m.then(t)])};
sbG=function(W,e){try{return globalThis.sessionStorage.setItem(W,e),!0}catch(t){return!1}};
hiG=function(W,e,t,b){e=e===void 0?0:e;t=t===void 0?W.length:t;var m=0;for(b&&(m=hiG(b));e<t;e++)b=typeof W==="string"?W.charCodeAt(e):W[e],m=HhL(31,m)+b|0;return m};
KJv=function(W,e){return[hiG(W,0,W.length>>1,e),hiG(W,W.length>>1)]};
Ppg=function(W){var e=_.R(KJv(W,ZA));W=e.next().value;e=e.next().value;return W.toString(16)+e.toString(16)};
VC9=function(W,e){var t=KJv(e);W=new Uint32Array(W.buffer);e=W[0];var b=_.R(t);t=b.next().value;b=b.next().value;for(var m=1;m<W.length;m+=2){for(var q=e,Q=m,X=t,I=b,u=0;u<22;u++)Q=Q>>>8|Q<<24,Q+=q|0,Q^=X+38293,q=q<<3|q>>>29,q^=Q,I=I>>>8|I<<24,I+=X|0,I^=u+38293,X=X<<3|X>>>29,X^=I;q=[q,Q];W[m]^=q[0];m+1<W.length&&(W[m+1]^=q[1])}};
ihR=function(W,e,t,b,m){var q=(4-(ZA.length+t.length)%4)%4,Q=new Uint8Array(4+q+ZA.length+4+t.length),X=new DataView(Q.buffer),I=0;X.setUint32(I,Math.random()*4294967295);I=I+4+q;Q.set(ZA,I);I+=ZA.length;X.setUint32(I,m);Q.set(t,I+4);VC9(Q,b);return W.insert(e,function(u){return void globalThis.sessionStorage.removeItem(u)})?sbG(e,_.eK(Q))?"s":"t":"i"};
Y0G=function(W,e){var t=globalThis.sessionStorage.getItem(W);if(!t)return["m"];try{var b=_.Xb(t);VC9(b,e)}catch(m){return globalThis.sessionStorage.removeItem(W),["c"]}for(e=4;e<7&&b[e]===0;)e++;for(t=0;t<ZA.length;t++)if(b[e++]!==ZA[t])return globalThis.sessionStorage.removeItem(W),["d"];t=(new DataView(b.buffer)).getUint32(e);return Math.floor(Date.now()/1E3)>=t?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(b.buffer,e+4)]};
ziR=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.$a(W)};
U5Z=function(W){var e=W,t;return function(){if(e){var b=e;e=void 0;t=b.apply(this,arguments)}return t}};
EKR=function(W){return Kr(function(e){if(e instanceof W)return!0;var t,b,m=e==null?void 0:(t=e.ownerDocument)==null?void 0:(b=t.defaultView)==null?void 0:b[W.name];return LJc(m)&&e instanceof m})};
_.yV=function(W,e,t){_.ka.call(this);this.JSC$8046_listener_=W;this.JSC$8046_interval_=e||0;this.handler_=t;this.callback_=(0,_.p3)(this.JSC$8048_doAction_,this)};
_.jh=function(W){W=AOc(W);return _.Fh(W)};
AOc=function(W){return W===null?"null":W===void 0?"undefined":W};
d5L=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return NP9(function(){return _.F(function(e){document.activeElement&&document.activeElement.blur();return e.return(NP9(function(){W.focus()}))})})};
_.W7G=function(W){var e=e===void 0?5:e;setTimeout(function(){var t;return _.F(function(b){b.nextAddress==1&&(t=document.activeElement);if(b.nextAddress!=5)return(document.activeElement===t||document.activeElement===document.body)&&e>=0&&W?_.a(b,d5L(W),5):b.jumpTo(0);if(document.activeElement===W)return b.return();W=W.parentElement;--e;return b.jumpTo(2)})},15)};
NP9=function(W){return new Promise(function(e){requestAnimationFrame(function(){e(W())})})};
tmc=function(W){if(_.C3)W(_.C3);else{var e;((e=eTD)!=null?e:eTD=[]).push(W)}};
f3=function(){!_.C3&&_.n3&&_.bt2(_.n3());return _.C3};
_.bt2=function(W){_.C3=W;var e;(e=eTD)==null||e.forEach(tmc);eTD=void 0};
_.g$=function(W){_.C3&&_.C3.beforeLoadModuleCode(W)};
_.Tg=function(){_.C3&&_.C3.JSC$9002_setLoaded()};
xa=function(W){return xl(W)?Number(W):String(W)};
mDD=function(W){this.action=W;this.wfv=!1};
rJS=function(W,e){mDD.call(this,"set-drive-options");this.appId=W;this.appOrigin=e};
qtS=function(W){mDD.call(this,"visibility");this.visible=W};
RTD=function(W,e,t){OJ.call(this,W,e,t)};
QAG=function(W){Mc.call(this,W)};
F7s=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
IbQ=function(W,e){var t=e&&e.getWindow()||window;if(F7s(e))W();else if(XOS)XOS.push(W);else var b=XOS=[W],m=t.setInterval(function(){if(F7s(e)){t.clearInterval(m);for(var q=0;q<b.length;q++)b[q]();XOS=null}},100)};
wOZ=function(W,e){var t=new sJ(W);_.w$(e,t);var b={passive:!1};e.listen(t,"mousewheel",function(m){return void ab2(W,m)},b).listen(W,"scroll",function(m){return void ab2(W,m)},b)};
ab2=function(W,e){var t;a:{for(t=e.target;t;){if(t.nodeType==1){var b=_.K3(t,"overflowY");if(b=="auto"||b=="scroll")break a}t=t.parentNode}t=null}if(!t||!_.PX(W,t)||t.scrollHeight==t.clientHeight||e.deltaY>0&&Math.abs(t.scrollTop-(t.scrollHeight-t.clientHeight))<=1||e.deltaY<0&&t.scrollTop==0)e.preventDefault(),e.stopPropagation()};
EJ=function(W,e,t,b,m,q,Q,X,I){X=X===void 0?!1:X;I=I===void 0?!1:I;OJ.call(this,void 0,void 0,void 0);OJ.call(this,q?q+" picker modal-dialog":"picker modal-dialog",!0,t);_.VV(W,"protocol");this.iframeManager_=new uxR;this.targetId_=iQ();this.rpcToken_=iQ();W=_.Ya(W);_.zg(W,"hostId");t=_.zg(W,"parent");this.useGapi_=!I&&!0||(t==null?void 0:t.includes("onepick.corp.google.com"));X&&_.UJ(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=b;this.preferredDialogHeight_=m;b!==void 0||
m!==void 0?b=!0:(b=_.zg(_.Ya(W.toString()),"hostId"),cJZ||(cJZ=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),b=!cJZ.has(b));this.autoSizeDialog_=b;this.JSC$8236_gadgetsDomHelper_=Q||this.JSC$8187_dom_;e&&(Q=this.JSC$8236_gadgetsDomHelper_,e=_.zg(_.Ya(this.JSC$8238_url_),"grugl")=="true"?vqQ:GnL,F7s(Q)||(Q=Q||vK(document),b=Q.createElement("SCRIPT"),_.H7(b,e),b.type="text/javascript",Q.JSC$7372_document_.body.appendChild(b)));
W=W.toString();e=null;Q=W.indexOf("/picker?");Q>-1?e=W.substring(0,Q+8-1):qs(W,"/picker")&&(e=W);e&&this.setRelayUrl(e+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$8221_element_=this.buttonEl_,W.render()):_.KF(this.buttonEl_,DDZ),_.L3(this.buttonEl_,!!this.buttons_))};
_.lb2=function(W){var e=e===void 0?Stc:e;var t=_.bh(W),b=function(q){q=_.R(q);q.next();q=AE(q);return e(t,q)},m=function(q){var Q=_.R(q);
q=Q.next().value;Q=AE(Q);return W.apply(q,Q)};
return function(){var q=_.$N.apply(0,arguments),Q=this||_.tz,X=BMZ.get(Q);X||(X={},BMZ.set(Q,X));return oqg(X,[this].concat(_.kP(q)),m,b)}};
Nc=function(W){var e={};W=W.replace(/\r/g,"").split("\n");for(var t=0;t<W.length;t++){var b=W[t],m=b.indexOf(":");m<0||(e[b.substring(0,m)]=b.substring(m+2,b.length))}return e};
d$=function(W,e,t){t=t===void 0?function(){}:t;
return W?e():t()};
_.$Dg=function(W){var e;return((e=ZtZ.documentOverride)!=null?e:W).__wizdispatcher};
_.eC=function(W){var e=Wf;Wf=W;return e};
pOs=function(W){return W===knG||(W==null?void 0:W.name)==="\u0275NotFound"};
yJ2=function(W,e){var t;if((t=W)==null?0:t.isDisposed)throw Error("ob`"+String(W.debugName));for(;W!==void 0;){t=W;if(t.retrieve)return t.retrieve(e,{optional:!0});W=W.parent}return knG};
tO=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
_.jA2=function(W){var e=Wf;if(!e){switch(W===void 0?3:W){case 0:W=Error("nb");break;case 1:W=Error("pb");break;case 2:W=Error("qb");break;default:W=Error("rb")}throw W;}return e};
CVZ=function(W){var e=_.eC(W);W={};return W[Symbol.dispose]=function(){_.eC(e)},W};
nqc=function(W,e){W.disposables||(W.disposables=[]);W.disposables.push(e)};
bp=function(W){var e=Wf;e&&!e.isDisposed&&(nqc(e,W),W.parent=e)};
gqZ=function(W){if(W.disposables){for(var e=_.R(W.disposables),t=e.next();!t.done;t=e.next())t=t.value,typeof t==="function"?t():fbL(t);W.disposables.length=0}};
fbL=function(W){if(!W.isDisposed){W.isDisposed=!0;var e;(e=W[Symbol.dispose])==null||e.call(W);delete W.parent;gqZ(W)}};
K7s=function(W){var e={retrieve:function(t){switch(t.\u0275prov.token){case TMR.\u0275prov.token:var b=W.asyncDeps;break;case JJg.\u0275prov.token:b=W.rootElement;break;case xDZ.\u0275prov.token:b=W.modelRootElement;break;case Ots.\u0275prov.token:b=W.appContext;break;case MmR.\u0275prov.token:b=W.rendererData;break;case sAg.\u0275prov.token:b=W.injectingConstructor;break;case hT2.\u0275prov.token:b=W.dispatcher}if(b)t=b;else a:{for(b=e.parent;b;){var m=b;if(m.retrieve){t=m.retrieve(t);break a}b=
b.parent}b=t.\u0275prov.token;m=HtG[b];m!==void 0?t=m:(m=t.\u0275prov.providedIn,t.\u0275prov.factory?(t=t.\u0275prov.factory(),b&&m==="root"&&(HtG[b]=t)):t=knG)}return t}};
bp(e);return e};
PVL=function(){var W=_.jA2(1),e=yJ2(W,Ots);pOs(e)&&(W=yJ2(W,hT2),pOs(W)||W.getOptionalAppContext())};
VmQ=function(W){if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var e=W.tagName.toUpperCase();if(e=="SCRIPT"||e=="LINK")return W}return null};
YtG=function(W,e){if((W=W===void 0?"":W)&&e)throw Error("xb");var t="";var b=_.tz._F_jsUrl;(W=e||VmQ(W))&&(t=W.src?W.src:W.getAttribute("href"));if(b&&t){if(b!=t)throw Error("yb`"+b+"`"+t);t=b}else t=b||t;if(!itv(t))throw Error("zb");return t};
EqD=function(){if(!zTK){zTK=!0;try{var W=YtG(_.tz._F_jsUrl?"":"base-js")}catch(b){return}var e=UD9(L7z(W)),t=Object.keys(e);t.length!==0&&tmc(function(b){for(var m=_.R(t),q=m.next();!q.done;q=m.next()){q=q.value;for(var Q=_.R(Object.keys(e[q])),X=Q.next();!X.done;X=Q.next())b.addExtraEdge(q,X.value)}})}};
NMG=function(){var W=Object.assign({},AJz);Object.getOwnPropertyNames(AJz).forEach(function(e){_.mJ[e]!==void 0&&(W[e]=_.mJ[e])});
return W};
dDS=function(W,e){if(_.mJ.enablePerformanceTiming){var t,b;(b=(t=performance).mark)==null||b.call(t,W+"Start__"+e)}};
WnL=function(W,e){if(_.mJ.enablePerformanceTiming){var t,b;(b=(t=performance).measure)==null||b.call(t,W+"__"+e,W+"Start__"+e)}};
eZQ=function(W,e,t){var b;return W&&e?W+"__"+e:(b=W!=null?W:e)!=null?b:t};
bKZ=function(W,e){var t=Object.create(teZ);t.debugName=e;!Wf||bp(t);e=_.eC(t);try{W(t)}finally{_.eC(e)}return function(){return void fbL(t)}};
rQG=function(W){return rP(W)&&mzS in W};
qiv=function(W,e){return Object.is(W,e)};
Rb=function(W){var e=q5;q5=W;return e};
Xiz=function(W){if(Qk)throw Error("da");if(q5!==null){var e=q5.nextProducerIndex++;RZD(q5);e<q5.producerNode.length&&q5.producerNode[e]!==W&&F0(q5)&&Q_g(q5.producerNode[e],q5.producerIndexOfThis[e]);q5.producerNode[e]!==W&&(q5.producerNode[e]=W,q5.producerIndexOfThis[e]=F0(q5)?FnZ(W,q5,e):0);q5.producerLastReadVersion[e]=W.version}};
wi9=function(W){if(!F0(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==IK9)(W.producerMustRecompute(W)||aKG(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=IK9};
ueR=function(W){if(W.liveConsumerNode!==void 0){var e=Qk;Qk=!0;try{for(var t=_.R(W.liveConsumerNode),b=t.next();!b.done;b=t.next()){var m=b.value;m.dirty||(W=void 0,m.dirty=!0,ueR(m),(W=m.consumerMarkedDirty)==null||W.call(m,m))}}finally{Qk=e}}};
cQD=function(){var W;return((W=q5)==null?void 0:W.consumerAllowSignalWrites)!==!1};
vwc=function(W){W&&(W.nextProducerIndex=0);return Rb(W)};
GJs=function(W,e){Rb(e);if(W&&W.producerNode!==void 0&&W.producerIndexOfThis!==void 0&&W.producerLastReadVersion!==void 0){if(F0(W))for(e=W.nextProducerIndex;e<W.producerNode.length;e++)Q_g(W.producerNode[e],W.producerIndexOfThis[e]);for(;W.producerNode.length>W.nextProducerIndex;)W.producerNode.pop(),W.producerLastReadVersion.pop(),W.producerIndexOfThis.pop()}};
aKG=function(W){RZD(W);for(var e=0;e<W.producerNode.length;e++){var t=W.producerNode[e],b=W.producerLastReadVersion[e];if(b!==t.version)return!0;wi9(t);if(b!==t.version)return!0}return!1};
FnZ=function(W,e,t){Dzg(W);if(W.liveConsumerNode.length===0&&W.producerNode!==void 0)for(var b=0;b<W.producerNode.length;b++)W.producerIndexOfThis[b]=FnZ(W.producerNode[b],W,b);W.liveConsumerIndexOfThis.push(t);return W.liveConsumerNode.push(e)-1};
Q_g=function(W,e){Dzg(W);if(W.liveConsumerNode.length===1&&W.producerNode!==void 0)for(var t=0;t<W.producerNode.length;t++)Q_g(W.producerNode[t],W.producerIndexOfThis[t]);t=W.liveConsumerNode.length-1;W.liveConsumerNode[e]=W.liveConsumerNode[t];W.liveConsumerIndexOfThis[e]=W.liveConsumerIndexOfThis[t];W.liveConsumerNode.length--;W.liveConsumerIndexOfThis.length--;e<W.liveConsumerNode.length&&(t=W.liveConsumerIndexOfThis[e],W=W.liveConsumerNode[e],RZD(W),W.producerIndexOfThis[t]=e)};
F0=function(W){var e,t;return W.consumerIsAlwaysLive||((t=W==null?void 0:(e=W.liveConsumerNode)==null?void 0:e.length)!=null?t:0)>0};
RZD=function(W){W.producerNode!=null||(W.producerNode=[]);W.producerIndexOfThis!=null||(W.producerIndexOfThis=[]);W.producerLastReadVersion!=null||(W.producerLastReadVersion=[])};
Dzg=function(W){W.liveConsumerNode!=null||(W.liveConsumerNode=[]);W.liveConsumerIndexOfThis!=null||(W.liveConsumerIndexOfThis=[])};
B8s=function(W){var e=Object.create(SiD);e.computation=W;W=function(){wi9(e);Xiz(e);if(e.value===X0)throw e.error;return e.value};
W[Ib]=e;return W};
$z9=function(W,e){var t=Object.create(owK);t.value=W;e!==void 0&&(t.equal=e);W=function(){Xiz(t);return t.value};
W[Ib]=t;return[W,function(b){return lKG(t,b)},
function(b){cQD()||ZKZ(t);lKG(t,b(t.value))}]};
lKG=function(W,e){cQD()||ZKZ(W);if(!W.equal(W.value,e)){W.value=e;W.version++;IK9++;ueR(W);var t;(t=kJs)==null||t(W)}};
ab=function(W){var e=Rb(null);try{return W()}finally{Rb(e)}};
_.up=function(W,e,t){t=t===void 0?"":t;W=$z9(W,e==null?void 0:e.equals);var b=W[0],m=b[Ib];m.debugName=eZQ(e==null?void 0:e.debugName,t,"[signal]");if(!_.mJ.enablePerformanceTiming)return W;var q=W[1],Q=W[2];return[b,function(X){piZ(function(){return void q(X)},m)},
function(X){piZ(function(){return void Q(X)},m)}]};
piZ=function(W,e){dDS("signalSet",e.debugName);try{W()}finally{WnL("signalSet",e.debugName)}};
j_G=function(W,e){var t=_.R(_.up(W,void 0,"cPpJzc"));W=t.next().value;t=t.next().value;W[yQg]=t;W[cf]=e;return W};
CGS=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
nwG=function(W){return typeof W==="function"&&yQg in W&&typeof W[yQg]==="function"};
fKs=function(W,e){Object.defineProperty(W,cf,{get:function(){return e}})};
GQ=function(W,e){if(vf(W)){var t=W.map(function(q){return GQ(q,e)});
fKs(t,e);return t}if(CGS(W)){t={};W=_.R(Object.entries(W));for(var b=W.next();!b.done;b=W.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;t[b]=GQ(m,e)}fKs(t,e);return t}return j_G(W,e)};
gwG=function(W){if(vf(W))return W.map(function(m){return gwG(m)});
if(CGS(W)){var e={};W=_.R(Object.entries(W));for(var t=W.next();!t.done;t=W.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;e[t]=gwG(b)}return e}return nwG(W)?W():W};
JQg=function(){var W={height:0,width:0};if(!CGS(W))throw Error("Lb");var e=Symbol("Mb");return[GQ(W,e),function(t,b){if(t[cf]===e)if(typeof b==="function"){var m=[].concat(_.kP(gwG(t)));b=b(m)||m;T8D(t,[].concat(_.kP(b)))}else T8D(t,b);else throw Error("Nb");}]};
T8D=function(W,e){if(nwG(W))W[yQg](e);else if(vf(W)&&vf(e))e=GQ(e,W[cf]),W.length=0,W.push.apply(W,_.kP(e));else if((CGS(W)||vf(W))&&(vf(e)||typeof e==="object"&&e!==null)){e=_.R(Object.entries(e));for(var t=e.next();!t.done;t=e.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;var m=W,q=m[t];Object.hasOwn(W,t)?T8D(q,b):m[t]=GQ(b,W[cf])}}else throw Error("Ob");};
xzG=function(W){return Object.create(Object.assign({},D2,W))};
MeG=function(){var W;return(W=OKQ)!=null?W:OKQ=xzG({consumerAllowSignalWrites:!0})};
_.SC=function(W,e,t){t=t===void 0?"":t;W=B8s(W);var b=W[Ib];b.debugName=eZQ(e==null?void 0:e.debugName,t,"[computed]");(e==null?void 0:e.equals)!=null&&(b.equal=e.equals);return W};
Bf=function(W){var e=Rb(s_9);try{W()}finally{Rb(e)}};
YiK=function(W){if(!W.isDisposed)switch(W.effectType){case hZG:HKz.schedule(W);break;case KnQ:PGv.schedule(W);break;case VeL:iKG.schedule(W);break;default:_.Qw(W.effectType)}};
Uzv=function(W){zZK.push(W);return function(){var e=zZK.indexOf(W);e!==-1&&zZK.splice(e,1)}};
EwS=function(){if(ob>0)_.mJ.flushRenderEffectsDuringRender&&HKz.flush();else for(var W=_.R(Lns),e=W.next();!e.done;e=W.next())e.value.flush()};
N8Z=function(W){lp=!0;try{for(var e=_.R(W),t=e.next();!t.done;t=e.next()){for(var b=t.value,m=[b],q=b;q.parent!==void 0;)q=q.parent,AQz(q)&&W.has(q)&&m.push(q);for(;m.length>0;){var Q=m.pop();W.delete(Q);Q.run()}}}finally{lp=!1}};
Z2=function(W){ob--;if(W){W=_.R(Lns);for(var e=W.next();!e.done;e=W.next())e.value.clear()}else ob>0||lp&&!_.mJ.flushRenderEffectsDuringRender||EwS()};
WxD=function(W,e,t){var b=dzz(W);$K={name:t?b+" ("+t+")":b,isReactive:W.componentType!==kK,parent:$K};W=e();$K=$K.parent;return W};
ph=function(){var W=$K;return W?W.isReactive:!1};
jC=function(W,e){var t=$K;e&&($K=e);try{return W()}catch(q){W=q;yk(W,$K);if(W!==e_L){tJ2=$K;e=[];for(var b=Wf;b;){var m=void 0;e.push((m=b.debugName)!=null?m:"[context]");m=void 0;b=(m=b.parent)!=null?m:null}b_R=e.reverse()}e_L=W;throw W;}finally{$K=t}};
yk=function(W,e){try{var t=mIS(e);if(t&&!W.componentStack&&(W.componentStack=t,_.mJ.enableComponentStacksInErrorMessages)){var b=W.message+"\n\nComponent stack: "+t;W.stack&&(W.stack=W.stack.replace(W.message,b));W.message=b}}catch(m){}};
mIS=function(W){if(rP(W)&&W.name!==void 0&&W.isReactive!==void 0&&W.parent!==void 0||W===null){for(var e=0,t="";e<20&&W;)t+=W.name+" > ",W=W.parent,e++;W=t.slice(0,-3)}else if(_.mJ.enableContextBasedComponentStacks){a:{for(W=W===void 0?Wf:W;W;){if(rQG(W))break a;e=void 0;W=(e=W.parent)!=null?e:null}W=null}W=W.getComponentStack().slice(0,20).join(" > ")}else W="";return W};
dzz=function(W){return W.debugName||W.name||"[component]"};
r7D=function(W,e,t){e=Object.create(e);e.effectFn=W;t&&(e.debugName=t);bp(e);e.componentStack=$K;return e};
_.nh=function(W,e){W=r7D(W,qHg,e);YiK(W)};
_.fh=function(W){var e=Wf;if(e){var t=$K;nqc(e,function(){var b=Rb(MeG());try{jC(function(){return void W()},t)}catch(m){throw _.mJ.enableContextBasedComponentStacks&&yk(m),m;
}finally{Rb(b)}})}};
gP=function(W,e){var t={};(e===void 0||e)&&bp(t);e=_.eC(t);try{W(t)}finally{_.eC(e)}return function(){return void fbL(t)}};
_.TQ=function(W){return typeof W==="function"?W():(W==null?0:W[R_c])?W.get():W};
_.JO=function(W,e){W=r7D(W,QMG,e);YiK(W)};
Fxg=function(W){if(Wf)throw Error("sb");gP(W,!1)};
M5=function(W,e){W=_.eC(W);try{return ab(e)}finally{_.eC(W)}};
_.s0=function(W,e){var t=mIS(tJ2),b,m;var q=(m=(b=b_R)==null?void 0:b.slice())!=null?m:[];e={componentStack:t,contextTrace:q,errorSeverity:3,featureFlags:NMG(),tagName:e};return[W,e]};
a3L=function(W,e,t){if(Object.hasOwnProperty.call(XHL,W)&&(W=XHL[W],Object.hasOwnProperty.call(W,e)&&(W=W[e],W instanceof Array))){for(var b=null,m=!1,q=0,Q=W.length;q<Q;++q){var X=W[q],I=X.contingentAttribute;if(!I)return X.contract;b===null&&(b={});I=Object.hasOwnProperty.call(b,I)?b[I]:b[I]=t(I);if(I===X.requiredValue)return X.contract;I==null&&(m=!0)}if(m)return null}e=I3G[e];return typeof e==="number"?e:null};
c7G=function(W,e,t){var b=null;(W=wHR[W])&&(b=W[e]);return typeof b!=="number"&&((W=wHR["*"])&&(b=W[e]),typeof b!=="number")?!1:!0===u3v[b][String(t).toLowerCase()]};
GmK=function(W,e){e=a3L(W.toLowerCase(),e,function(){var b;(b=_.mJ.handleError)==null||b.call.apply(b,[_.mJ].concat(_.kP(_.s0(Error("Sb"),W.toLowerCase()))))});
if(e===null)return null;var t;return(t=vnc[e])!=null?t:null};
DIg=function(W,e,t){if(t===null||t===void 0)return t;W=GmK(W,e);return W===null?t:W(e,t)};
SHs=function(){};
hO=function(W,e){for(;W.length>e;)W.pop()};
BTQ=function(W){W=Array(W);hO(W,0);return W};
onG=function(W,e,t){if(t==null)W.removeAttribute(e);else{var b;(b=e.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":e.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(b,e,t):W.setAttribute(e,t)}};
l39=function(W,e,t){W[e]=t};
$Ic=function(W,e,t){W=W.style;if(typeof t==="string")W.cssText=t;else{W.cssText="";for(var b in t)if(Z_R.call(t,b)){e=W;var m=b,q=t[b];m.indexOf("-")>=0?e.setProperty(m,q):e[m]=q}}};
kmK=function(W,e,t){var b=typeof t;b==="object"||b==="function"?W[e]=t:onG(W,e,t)};
pHG=function(){var W=new SHs;W[Hf.default]=kmK;W.style=$Ic;return W};
y7z=function(W,e,t,b){(b[e]||b[Hf.default])(W,e,t)};
CaG=function(W,e,t){e=new jMD(e,t);return W.__incrementalDOMData=e};
Kh=function(W,e){if(W.__incrementalDOMData)return W.__incrementalDOMData;var t=W.nodeType===1?W.localName:W.nodeName,b=W.nodeType===1?W.getAttribute("key"):null;e=CaG(W,t,W.nodeType===1?b||e:null);if(W.nodeType===1&&(W=W.attributes,t=W.length)){b=e._attrsArr||(e._attrsArr=BTQ(t*2));for(var m=0,q=0;m<t;m+=1,q+=2){var Q=W[m],X=Q.value;b[q]=Q.name;b[q+1]=X}}return e};
nng=function(W,e,t,b,m){return e==t&&b==m};
f3L=function(W){for(var e=Pf,t=Vk();t!==W;){var b=t.nextSibling;e.removeChild(t);ip.deleted.push(t);t=b}};
Vk=function(){return YK?YK.nextSibling:Pf.firstChild};
zQ=function(){YK=Vk()};
J7s=function(W,e,t){zQ();var b;a:{if(b=YK){do{var m=b,q=W,Q=e,X=Kh(m,Q);if(gnZ(m,q,X.nameOrCtor,Q,X.key))break a}while(e&&(b=b.nextSibling))}b=null}b||(W==="#text"?(t=U0.createTextNode(""),CaG(t,"#text",null),W=t):(b=U0,m=Pf,typeof W==="function"?b=new W:b=(m=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":m==null||Kh(m).nameOrCtor==="foreignObject"?null:m.namespaceURI)?b.createElementNS(m,W):b.createElement(W),CaG(b,W,e),W=b,t&&W.setAttribute("nonce",t)),ip.created.push(W),
b=W);t=b;if(t!==YK){if(TTG.indexOf(t)>=0)for(W=Pf,e=t.nextSibling,b=YK;b!==null&&b!==t;)m=b.nextSibling,W.insertBefore(b,e),b=m;else Pf.insertBefore(t,YK);YK=t}};
xIZ=function(W,e,t){J7s(W,e,t);Pf=YK;YK=null;return Pf};
O_G=function(){f3L(null);YK=Pf;Pf=Pf.parentNode};
Lh=function(){YK=Pf.lastChild};
h_v=function(W,e){e=e===void 0?{}:e;var t=e.matches===void 0?nng:e.matches;return function(b,m,q){var Q=ip,X=U0,I=TTG,u=E0,c=AO,v=YK,D=Pf,B=gnZ;U0=b.ownerDocument;ip=new MJs(b);gnZ=t;E0=[];AO=[];YK=null;var k=Pf=b.parentNode,n,f=sM9.call(b);if((n=f.nodeType===11||f.nodeType===9?f.activeElement:null)&&b.contains(n)){for(f=[];n!==k;)f.push(n),n=n.parentNode||(k?n.host:null);k=f}else k=[];TTG=k;try{return W(b,m,q)}finally{b=ip,N5&&b.deleted.length>0&&N5(b.deleted),U0=X,ip=Q,gnZ=B,E0=u,AO=c,YK=v,Pf=D,
TTG=I}}};
H_G=function(W,e,t,b){dP.push(y7z);dP.push(W);dP.push(e);dP.push(t);dP.push(b)};
Pav=function(W,e,t){var b=AO;e=e._attrsArr||(e._attrsArr=BTQ(b.length));for(var m=!e.length||!1,q=0;q<b.length;q+=2){var Q=b[q];if(m)e[q]=Q;else if(e[q]!==Q)break;var X=b[q+1];if(m||e[q+1]!==X)e[q+1]=X,H_G(W,Q,X,t)}if(q<b.length||q<e.length){for(q=m=q;q<e.length;q+=2)WO[e[q]]=e[q+1];for(q=m;q<b.length;q+=2)m=b[q],Q=b[q+1],WO[m]!==Q&&H_G(W,m,Q,t),e[q]=m,e[q+1]=Q,delete WO[m];hO(e,b.length);for(var I in WO)H_G(W,I,void 0,t),delete WO[I]}W=KxG;KxG=t=dP.length;for(I=W;I<t;I+=5)(0,dP[I])(dP[I+1],dP[I+
2],dP[I+3],dP[I+4]);KxG=W;hO(dP,W);hO(b,0)};
tJ=function(W){J7s("#text",null);var e=YK;var t=Kh(e);if(t.text!==W){t=t.text=W;for(var b=1;b<arguments.length;b+=1)t=(0,arguments[b])(t);e.data!==t&&(e.data=t)}};
Lxs=function(W,e,t){if(t===!1&&VJs.has(e))onG(W,e,null);else if(e!=="idomKey"&&e!=="skip"&&e!=="skipchildren"&&e!=="children"&&e!=="el")if(e.startsWith("on"))if(e[2]===":")if(t===void 0||t===null){var b;(b=_.mJ.handleError)==null||b.call.apply(b,[_.mJ].concat(_.kP(_.s0(Error("Wb`"+e),W.tagName))));W[e]=void 0}else{var m=e.slice(3);b=ph();if(m==="jsaction"){t=_.R(Array.isArray(t)?t:[t]);for(var q=t.next();!q.done;q=t.next()){q=q.value;if(typeof q!=="object"||q===null||typeof q.selfReg!=="function")throw Error("Zb`"+
e);q.selfReg(0,W,b?_.fh:function(){})}}else{if(typeof t!=="object"||t===null)throw Error("Xb`"+e+"`"+typeof t);
if(typeof t.getFn!=="function")throw Error("Yb`"+e+"`"+Object.keys(t));if(t.selfReg)t.selfReg(0,W,m,b?_.fh:function(){});
else if(b&&W["on"+m]===void 0){var Q=t.getFn(0);W.addEventListener(m,Q);_.fh(function(){return void W.removeEventListener(m,Q)})}else if(b||!i_S.includes(m))W["on"+m]=t.getFn(0)}}else YHs(W,e,t);
else{if(e.startsWith("data-")&&typeof t==="string")try{t=z_Q(t)}catch(X){t="zSoyz"}typeof t!=="function"||W._disposeEffects!=null?(_.mJ.enableAttributeSanitization&&(t=DIg(W.tagName,e,t)),e==="style"?("function"==typeof _.bV&&t instanceof _.bV&&(t=t.toString()),UIZ(W,e,t)):e.startsWith("prop:")?(e=e.slice(5),W[e]=t):YHs(W,e,t)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(e))}};
En9=function(W,e,t){t=(t===void 0?{}:t).isReactive;if(e==null?0:e.el){var b=e.el;if(typeof b==="function")b(W);else{var m;(m=b.onRender)==null||m.call(b,W);W._disposeRef||(W._disposeRef=function(){var q;(q=b.onUnmount)==null||q.call(b);delete W._disposeRef},t&&_.fh(function(){var q;
return void((q=W._disposeRef)==null?void 0:q.call(W))}))}}};
A7v=function(W){return rP(W)&&m7 in W};
NTQ=function(W){return A7v(W)?W[m7].flattened:W};
dIv=function(W,e){var t=_.$N.apply(2,arguments),b;e=(b=e)!=null?b:{};b={};return b.type=W,b.props=e,b.children=t,b[rM]=!0,b};
_.qD=function(W){return W.children};
RA=function(W){var e=WGz!==dIv;WGz=W?ebG:dIv;return e};
_.QZ=function(W){return _.tk(W)?"nodeType"in W:!1};
Fx=function(){return document.createTextNode("")};
Xx=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
rC2=function(W){var e=document.createElement("div");if(tIQ(W)&&TPG(W))_.KF(e,TPG(W));else if(W instanceof j5)_.KF(e,W);else if(bJK(W)){if(W.contentKind!==mq9)throw Error("Vb");W=CF(W.toString());_.KF(e,W)}W=_.R(e.childNodes);for(var t=W.next();!t.done;t=W.next())t.value._isSafeOrSanitizedHtmlNode=!0;return e};
IA=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
qmK=function(W){return W instanceof QE||c7(W)||"function"==typeof _.iF&&W instanceof _.iF||"function"==typeof _.bV&&W instanceof _.bV};
Rbv=function(W,e){var t=W.parentElement;if(!t)return e;t.replaceChild(e,W);return e};
Qzg=function(W,e){var t=W[0].parentElement;if(t)if(W[0].previousSibling||W[W.length-1].nextSibling){t.insertBefore(e,W[0]);for(var b=W.length-1;b>=0;b--)t.removeChild(W[b])}else t.textContent="",t.appendChild(e);return e};
FGv=function(W,e){if(W[0].parentElement)for(var t=W[0].parentElement,b=e.length,m=W.length,q=b,Q=0,X=0,I=W[m-1].nextSibling,u=null;Q<m||X<q;)if(W[Q]===e[X])Q++,X++;else{for(;W[m-1]===e[q-1];)m--,q--;if(m===Q)for(var c=q<b?X?e[X-1].nextSibling:e[q-X]:I;X<q;){var v=e[X++];t.insertBefore(v,c)}else if(q===X)for(;Q<m;)c=W[Q],u&&u.has(c)||t.removeChild(c),Q++;else if(W[Q]===e[q-1]&&e[X]===W[m-1])c=W[--m].nextSibling,t.insertBefore(e[X++],W[Q++].nextSibling),t.insertBefore(e[--q],c),W[m]=e[q];else{if(!u)for(u=
new Map,c=X;c<q;)u.set(e[c],c++);c=u.get(W[Q]);if(c==null)t.removeChild(W[Q]),Q++;else if(X<c&&c<q){v=Q;for(var D=1,B=void 0;++v<m&&v<q&&(B=u.get(W[v]))!=null&&B===c+D;)D++;if(D>c-X)for(v=W[Q];X<c;)t.insertBefore(e[X++],v);else t.replaceChild(e[X++],W[Q++])}else Q++}}return e};
Its=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("hc`"+W.length+"`"+W.map(X32).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.OV)){var e,t;if((e=window)==null?0:(t=e.trustedTypes)==null?0:t.isScript(W))throw Error("gc");if(String(W).trim().length===0)return null;throw Error("ic`"+X32(W));}return W};
atQ=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("jc`"+W.length+"`"+W.map(X32).join(", "));W=W[0]}if(W==null)return null;if(!lQD(W)){if(String(W).trim().length===0)return null;throw Error("kc`"+X32(W));}return W};
X32=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
wM=function(W,e){e=e===void 0?{}:e;var t=w3s();_.mJ.legacyTriggerSoyRendererEvents&&PVL();_.JO(function(){e.isControlFlowComponent&&ob++;var b=t[0],m=t[m7].flattened,q=RA(!0);try{var Q=W(),X=uTz(b,Q,t);Array.isArray(X)||(t[m7].flattened=[X]);var I=t[m7].flattened;if(m&&(!Array.isArray(m)||m.length!==0)){var u=Array.isArray(m)?m[0]:m,c=u[aA],v=u._disposeEffects;u._disposeEffects=void 0;u=Array.isArray(I)?I[0]:I;u[aA]=c;u[aA]&&(u[aA].numNodes=u===I?1:I.length);u._disposeEffects=v}t[0]=X;e.isControlFlowComponent&&
Z2(!1)}catch(D){throw e.isControlFlowComponent&&Z2(!0),D;}finally{RA(q)}},e.debugName);
return t};
uTz=function(W,e,t){for(;typeof e==="function";)e=e();if(e!=null&&e[rM]){var b,m,q;(q=_.mJ.handleError)==null||q.call.apply(q,[_.mJ].concat(_.kP(_.s0(Error("lc`"+((b=e.type)==null?void 0:b.TAG_NAME)),(m=e.type)==null?void 0:m.TAG_NAME))))}if(W==null)return e==null?Fx():IA(e)?Xx(e):qmK(e)?Xx(e.toString()):_.QZ(e)?e:e.length===0?Fx():cC2(e,t);if(_.QZ(W)){if(e==null)return Rbv(W,Fx());if(IA(e))return vM2(W,e);if(qmK(e))return vM2(W,e.toString());if(_.QZ(e))return Rbv(W,e);if(e.length===0)return Rbv(W,
Fx());e=cC2(e,t);FGv([W],t[m7].flattened);return e}W=uV(W);if(e==null)return Qzg(W,Fx());if(IA(e))return Qzg(W,Xx(e));if(qmK(e))return Qzg(W,Xx(e.toString()));if(_.QZ(e))return FGv(W,[e])[0];if(e.length===0)return Qzg(W,Fx());e=cC2(e,t);FGv(W,t[m7].flattened);return e};
vM2=function(W,e){W.nodeType===Node.TEXT_NODE?W.textContent!==String(e)&&(W.textContent=String(e)):W=Rbv(W,Xx(e));return W};
uV=function(W,e,t){return GT2(W,e!=null?e:[],t===void 0?!1:t)};
cC2=function(W,e){var t=uV(W,void 0,!0);if(t.length===0)return Fx();e[m7].flattened=t;return W};
GT2=function(W,e,t,b,m){e=e===void 0?[]:e;t=t===void 0?!1:t;m=m===void 0?-1:m;if(W==null)return e;if(W instanceof cO)return W=W.render(),GT2(W,e,t,b,m);if(_.QZ(e)&&e.nodeType===Node.ELEMENT_NODE)switch(e.tagName){case "SCRIPT":t=Its(W);t!==null&&_.hK(e,t);return;case "STYLE":t=atQ(W);t!==null&&(e.textContent=_.ZOg(t));return}IA(W)&&(W=Xx(W),b&&t&&(b[m]=W));if(bJK(W)||W instanceof j5||tIQ(W)){t=rC2(W);t=Array.from(t.childNodes);t=_.R(t);for(W=t.next();!W.done;W=t.next())DqR(e,W.value);return e}qmK(W)&&
(W=Xx(W.toString()),b&&t&&(b[m]=W));if(_.QZ(W))return DqR(e,W);if(Array.isArray(W)){for(var q=0;q<W.length;q++)GT2(W[q],e,t,W,q);return e}if(typeof W==="function"){W=wM(W,{debugName:"qmF2ne"})[0];if(Array.isArray(W)){t=_.R(W);for(W=t.next();!W.done;W=t.next())DqR(e,W.value);return e}b&&t&&(b[m]=W);return DqR(e,W)}if(W!=null&&W[rM]){b=RA(!0);m=WGz;try{q=m.apply(null,[W.type,W.props].concat(_.kP(W.children)))}finally{RA(b)}return GT2(q,e,t)}var Q;(Q=_.mJ.handleError)==null||Q.call.apply(Q,[_.mJ].concat(_.kP(_.s0(Error("mc")))));
return e};
w3s=function(W){var e={};e=Object.assign([],(e[m7]={flattened:[]},e));if(!W)return e;e[0]=cC2(W,e);return e};
DqR=function(W,e){Array.isArray(W)?W.push(e):W.appendChild(e);return W};
vO=function(W){if(!_.mJ.enableLazyTsx)return W;if(Array.isArray(W)){for(var e=0;e<W.length;e++)W[e]=vO(W[e]);return W}return W instanceof cO?(W=W.render(),vO(W)):W};
BQL=function(W,e){var t,b,m=dzz(W),q=function(B){b=B;B=RA(!0);var k=Rb(Gn);dDS("render",m);try{t=vO(W(e))}finally{WnL("render",m),Rb(k),RA(B)}};
q=_.mJ.enableContextPerComponent?bKZ(q,m):gP(q,_.mJ.alwaysTrackContexts||!!Wf);rQG(b);if(!e.renderedFromIdom){var Q=_.eC(b);try{return Smc(W,e,t),t}finally{_.eC(Q)}}!A7v(t)&&Array.isArray(t)&&(t=w3s(t));var X=NTQ(t);Q=Array.isArray(X)?X[0]:X;var I=!1;if(Q){var u,c=(u=e==null?void 0:e.idomKey)!=null?u:W;u=X!==Q;Q._disposeEffects=q;var v=Q[aA]||{},D=A7v(t)?t:v.sourceDynamicRange;Object.assign(v,{key:c,numNodes:u?X.length:1,context:b,higherOrder:!!Q[aA],sourceDynamicRange:D});Q[aA]=v}else I=!0;(function(){var B=
_.eC(b);try{Smc(W,e,X)}finally{_.eC(B)}})();
I&&q();return t};
oMD=function(W){var e={},t;for(t in W)e={prev$jscomp$23:void 0,next$jscomp$32:void 0},e.prev$jscomp$23=Db[t],e.next$jscomp$32=W[t],Db[t]=function(b){return function(){var m=_.$N.apply(0,arguments);b.prev$jscomp$23.apply(null,_.kP(m));b.next$jscomp$32.apply(null,_.kP(m))}}(e)};
ltS=function(){if(ph())throw Error("nc");return Sm};
ZJs=function(W,e){if(!W.__unmounted&&e){W.__unmounted=!0;try{W.didUnmount()}catch(m){var t,b;(b=_.mJ.handleError)==null||b.call.apply(b,[_.mJ].concat(_.kP(_.s0(m,(t=W.JSC$8260___type)==null?void 0:t.TAG_NAME))))}Db.didUnmount(W);W.el=null;e.__instance&&delete e.__instance}};
kTS=function(W,e,t){W._signalProps!=null&&W._disposeEffects==null&&((t===void 0?0:t)?W._disposeEffects=gP(function(){return void $qG(W,e)},_.mJ.alwaysTrackContexts||!!Wf):$qG(W,e))};
$qG=function(W,e){_.JO(function(){for(var t=W._signalProps,b=W._signalValues,m=0;m<t.length;m++){var q=t[m],Q=e[q]();b[m]!==Q&&(b[m]=Q,Lxs(W,q,Q))}},"e3YVbb")};
p3c=function(W,e,t){var b,m=[];W._disposeEffects=gP(function(){_.JO(function(){var q=t();if(q===null||q===void 0)q="";if(IA(q)||q===null)b!=null||(b=document.createTextNode("")),b.parentNode!==W&&(b._isSignalTextNode=!0,W.insertBefore(b,e)),b.textContent=String(q);else if(bJK(q)||q instanceof j5||tIQ(q)){for(var Q=m.length>0?m[m.length-1].nextSibling:e,X=_.R(m),I=X.next();!I.done;I=X.next())W.removeChild(I.value);q=rC2(q);m=Array.from(q.childNodes);q=_.R(m);for(X=q.next();!X.done;X=q.next())W.insertBefore(X.value,
Q)}else throw I=(X=(Q=$K)==null?void 0:Q.name)!=null?X:"unknown",Error("cc`"+I+"`"+typeof q);},"VvDgC")},_.mJ.alwaysTrackContexts||!!Wf)};
CeG=function(W,e){var t=_.$N.apply(2,arguments);e!=null||(e={});return!_.mJ.enableLazyTsx||$K!=null&&!ph()?yCD(W,e,t):new jzZ(W,e,t)};
yCD=function(W,e,t){if(W===_.qD)return t;if(typeof W==="function")return $K&&!ph()&&(e.renderedFromIdom=!0),WxD(W,function(){var q=nML(W,e,t);if(q)return q;t.length>0&&(e.children=t.length===1?t[0]:t);if(W.componentType===kK){var Q;bKZ(function(){var X=e;if(W.componentType!==kK)Q=!1;else{X||(X={});var I=new BO(X,W),u=Rb(Gn);try{var c=I.render(X)}finally{Rb(u)}c instanceof HTMLElement?(c.__instance=I,I.el=c,I.JSC$8260___type=W,W.TAG_NAME=c.tagName.toLowerCase(),Db.didPatch(I),Q=c):Q=c}},W.name);
if(Q)return Q}return BQL(W,e)},e.debugInstance);
var b=ftZ(W,e),m;for(m in e)Lxs(b,m,e[m]);kTS(b,e);uV(t,b);En9(b,e,{isReactive:!0});gMv(b,e);return b};
ftZ=function(W,e){W=(TQc.has(W.toLowerCase())?0:JCD.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):xqz(W,e)||document.createElement(W);W[OJ9]=!0;return W};
MIv=function(W){if(W){var e;(e=W._disposeRef)==null||e.call(W);var t;(t=W._disposeEffects)==null||t.call(W);W.__instance&&W.__instance instanceof oA&&(e=W.__instance,ZJs(e,W),e instanceof BO&&e.disposeEffects());for(e=0;e<W.childNodes.length;e++)MIv(W.childNodes[e])}};
hbK=function(W){sz2.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var e=[].concat(_.kP(sz2));sz2=[];e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;try{for(var b=0;b<t.length;b++)MIv(t[b])}catch(m){b=t=void 0,(b=(t=_.mJ).handleError)==null||b.call.apply(b,[t].concat(_.kP(_.s0(m))))}}})})};
_.w=function(W,e){return WGz.apply(null,[W,e].concat(_.kP(_.$N.apply(2,arguments))))};
HJZ=function(W,e){e=e===void 0?new Map:e;W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,!e.has(t)){var b=void 0,m=(b=t.producerNode)!=null?b:[];e.set(t,m);HJZ(m,e)}return e};
_.G=function(W){var e=W.cond;if(e===void 0)return W.else&&W.else();var t=_.SC(function(){return!!e()},void 0,"JHVi8"),b=function(){var m=e();
if(!m){var q;(q=_.mJ.handleError)==null||q.call.apply(q,[_.mJ].concat(_.kP(_.s0(KGQ.nonNullableCondIsNull()))))}return m};
return wM(function(){var m=t(),q;gP(function(){var Q=Rb(Gn);try{q=vO(m?W.then(b):W.else&&W.else())}finally{Rb(Q)}},!0);
return q},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
Pec=function(W){return _.G(W)};
_.lV=function(W){return W.keyBy==="INDEX"?VIK(W):iJR(W)};
YmR=function(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next()){var t=void 0;(t=e.value)==null||t()}};
iJR=function(W){var e=W.keyBy===void 0||W.keyBy==="REFERENCE",t=e?function(c){return c}:W.keyBy,b=[],m=[],q=[],Q=[],X=[],I=[],u=!0;
_.fh(function(){YmR(Q)});
return wM(function(){var c=W.each(),v=c.length;if(v===0){if(b.length===0&&!u)return q;YmR(Q);b=c;m=[];for(c=0;c<b.length;c++)m.push(t(b[c]));q=[];Q=[];X=[];I=[];W.fallback&&(Q[0]=zbG(function(){q[0]=vO(W.fallback())}));
u=!1;return q}for(var D=new Uqz,B=b.length-1;B>=0;B--)D.push(m[B],B);B=Array(v);for(var k=Array(v),n=Array(v),f=Array(v),M=Array(e?0:v),K={i$jscomp$443:0};K.i$jscomp$443<v;K={i$jscomp$443:K.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},K.i$jscomp$443++){K.item$jscomp$103=c[K.i$jscomp$443];K.key$jscomp$524=t(K.item$jscomp$103);var U=D.pop(K.key$jscomp$524);U!=null?(n[K.i$jscomp$443]=q[U],k[K.i$jscomp$443]=m[U],B[K.i$jscomp$443]=Q[U],f[K.i$jscomp$443]=X[U],e||(M[K.i$jscomp$443]=I[U]),Bf(function(V){return function(){f[V.i$jscomp$443](V.i$jscomp$443);
if(!e)M[V.i$jscomp$443](V.item$jscomp$103)}}(K)),delete Q[U]):B[K.i$jscomp$443]=zbG(function(V){return function(){var L=_.R(_.up(V.i$jscomp$443,void 0,"Fqk1zd")),E=L.next().value;
L=L.next().value;f[V.i$jscomp$443]=L;k[V.i$jscomp$443]=V.key$jscomp$524;if(e)n[V.i$jscomp$443]=vO(W.children(V.item$jscomp$103,E));else{var RR=_.R(_.up(V.item$jscomp$103,void 0,"GBj5de"));L=RR.next().value;RR=RR.next().value;M[V.i$jscomp$443]=RR;n[V.i$jscomp$443]=vO(W.children(L,E))}}}(K))}YmR(Q);
b=c;m=k;q=n;Q=B;X=f;I=M;u=!1;return n},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
VIK=function(W){var e=[],t=[],b=[],m=[],q=!1;_.fh(function(){for(var Q=_.R(m),X=Q.next();!X.done;X=Q.next())X=X.value,X()});
return wM(function(){var Q=W.each();q&&Q.length>0&&(m.pop()(),e.pop(),q=!1);for(var X=Array(Q.length),I={i$jscomp$444:0};I.i$jscomp$444<Q.length;I={i$jscomp$444:I.i$jscomp$444},I.i$jscomp$444++)if(I.i$jscomp$444<e.length)e[I.i$jscomp$444]!==Q[I.i$jscomp$444]&&(Bf(function(c){return function(){return void t[c.i$jscomp$444](Q[c.i$jscomp$444])}}(I)),e[I.i$jscomp$444]=Q[I.i$jscomp$444]),X[I.i$jscomp$444]=b[I.i$jscomp$444];
else{var u=zbG(function(c){return function(){e[c.i$jscomp$444]=Q[c.i$jscomp$444];var v=_.R(_.up(Q[c.i$jscomp$444],void 0,"kGMqJe")),D=v.next().value;v=v.next().value;t[c.i$jscomp$444]=v;X[c.i$jscomp$444]=vO(W.children(D,c.i$jscomp$444))}}(I));
m[I.i$jscomp$444]=u}for(;e.length>Q.length;)e.pop(),m.pop()(),t.pop();Q.length===0&&!q&&W.fallback&&(I=zbG(function(){X[0]=vO(W.fallback())}),m[0]=I,q=!0);
return b=X},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
zbG=function(W){var e=Wf;return gP(function(t){var b=Rb(Gn);try{t.parent=e,W(t)}finally{Rb(b)}},!1)};
_.Zb=function(W){return W};
_.$q=function(W){return{isDefault:!0,children:W.children}};
_.kq=function(W){var e=LGg(W),t=_.SC(function(){return EMc(e)},void 0,"F1PF4");
return wM(function(){var b=t(),m;gP(function(){var q=Rb(Gn);try{m=vO(b())}finally{Rb(q)}});
return m},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
LGg=function(W){W=W.children;return Array.isArray(W)?W:[W]};
ACG=function(W){var e=W.props;W=W.getChildren()[0];return e.when?{when:e.when,children:W}:{isDefault:!0,children:W}};
EMc=function(W){var e=function(){return null};
W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,t!=null&&t[rM]&&(t=t.type===_.$q?{isDefault:!0,children:t.children[0]}:{when:t.props.when,children:t.children[0]}),t instanceof cO&&(t=ACG(t)),t.isDefault)e=t.children;else if(t.when())return t.children;return e};
dqQ=function(W){var e=null,t,b={get value(){var q,Q;(Q=(q=m).validateGetValue)==null||Q.call(q);return m.__value},set value(q){m.__hasBeenSet=!0;m.__value=q}},m=(b.__value=null,b.__hasBeenSet=!1,b.__hasErrored=!1,b.onRender=function(q){if(t&&q!==t){t._disposeRef=void 0;var Q;(Q=e)==null||Q()}t=q;e=W(q)||null},b.onUnmount=function(){var q;
(q=e)==null||q();e=null},b[NQz]=!0,b);
return m};
WYD=function(W){var e=ltS();if(e==null)throw _.pt.PRIMITIVE_INVALID_HOOK_CALL();var t=e.hookCounter++;e.hooks||(e.hooks=[]);var b=e.hooks;b[t]||(b[t]={key:W,host:e});if(W!==b[t].key){if(e.JSC$8260___type){var m;W=(m=e.JSC$8260___type)==null?void 0:m.name}else W=e instanceof BO?dzz(e.functionComponent):"<"+e.el.tagName.toLowerCase()+">";throw _.pt.OUT_OF_ORDER_HOOK_CALL(W);}return b[t]};
erg=function(W,e){return!W||W.length!==(e==null?void 0:e.length)||W.some(function(t,b){return t!==e[b]})};
tvz=function(W,e){var t=WYD("onChange"),b=ltS();erg(t.deps,e)&&(t.deps=e,t.pendingEffect=W,b.__syncEffects||(b.__syncEffects=[]),b.__syncEffects.push(t))};
_.yZ=function(W,e){var t=t===void 0?{}:t;t=t.appContext;var b=!!_.mJ.legacyTriggerSoyRendererEvents;e=b1S(W,e,t);b&&(t==null&&(t=_.$Dg(document).getAppContext()),t.get(mnD).JSC$25568_getEventTarget().dispatchEvent(new rAS(qcG,W,mq9)));return e};
b1S=function(W,e,t){var b=jC(function(){var m=Rb(Gn);try{return gP(function(){var q=_.$Dg(_.n8(W)),Q;var X=K7s({rootElement:{value:W},appContext:t||(q==null?void 0:(Q=q.getOptionalAppContext)==null?void 0:Q.call(q)),dispatcher:q});q=_.eC(X);X=RA(!0);ob++;try{uV(e(),W),Z2(!1)}catch(I){throw Z2(!0),I;}finally{RA(X),_.eC(q)}},!1)}catch(q){throw _.mJ.enableContextBasedComponentStacks&&yk(q),q;
}finally{Rb(m)}});
W[Rrz]=!0;return function(){W.textContent="";b();W[Rrz]=!1}};
_.jm=function(W){if(AQz(q5)){var e;(e=_.mJ.handleError)==null||e.call.apply(e,[_.mJ].concat(_.kP(_.s0(Error("bc")))))}var t=Wf,b=$K;Promise.resolve().then(function(){if(t&&!t.isDisposed){var m=_.eC(t);try{jC(function(){return void W()},b)}catch(q){throw _.mJ.enableContextBasedComponentStacks&&yk(q),q;
}finally{_.eC(m)}}})};
Ct=function(W,e){tvz(function(){return ab(W)},e)};
_.nt=function(W){ph()?_.jm(function(){ab(W)}):tvz(function(){return ab(W)},[])};
FYR=function(W){var e=[].concat(_.kP(W));W.length=0;W=_.R(e);for(e=W.next();!e.done;e=W.next()){e=e.value;QQz(e);var t=e.pendingEffect;e.pendingEffect=null;if(t=t==null?void 0:t())e.pendingCleanup=t}};
QQz=function(W){var e=W.pendingCleanup;W.pendingCleanup=null;e==null||e()};
XT9=function(W,e){if(ph())return W();var t=WYD("useMemoInternal");erg(t.deps,e)&&(t.deps=e,t.value=W());return t.value};
IoS=function(W,e){return XT9(W,e)};
ft=function(W){return XT9(W,[])};
gM=function(W){return ft(function(){return{value:W}})};
_.Tn=function(W,e){if(!W)return null;W=Object.keys(W);W=_.R(W);for(var t=W.next();!t.done;t=W.next()){t=t.value;var b=t.toLowerCase();if(b.indexOf(e,b.length-e.length)>-1)return t}return null};
_.xq=function(){var W=arguments,e=_.JJ;W.length>1?e[W[0]]=W[1]:W.length===1&&Object.assign(e,W[0])};
_.Ot=function(W,e){return W in _.JJ?_.JJ[W]:e};
_.MD=function(W,e){return!!_.Ot(W,e)};
aoG=function(W){var e=_.JJ.EXPERIMENT_FLAGS;return e?e[W]:void 0};
uwc=function(W){wTv.forEach(function(e){return e(W)})};
_.hJ=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(e){_.st(e)}}:W};
_.st=function(W){var e=_.HO("yt.logging.errors.log");e?e(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=_.Ot("ERRORS",[]),e.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.xq("ERRORS",e));uwc(W)};
_.Kt=function(W,e,t,b,m){var q=_.HO("yt.logging.errors.log");q?q(W,"WARNING",e,t,b,void 0,m):(q=_.Ot("ERRORS",[]),q.push([W,"WARNING",e,t,b,void 0,m]),_.xq("ERRORS",q))};
vSQ=function(W,e){e=W.split(e);for(var t={},b=0,m=e.length;b<m;b++){var q=e[b].split("=");if(q.length===1&&q[0]||q.length===2)try{var Q=cAG(q[0]||""),X=cAG(q[1]||"");if(Q in t){var I=t[Q];Array.isArray(I)?_.dG(I,X):t[Q]=[I,X]}else t[Q]=X}catch(D){var u=D,c=q[0],v=String(vSQ);u.args=[{key:c,value:q[1],query:W,method:Gks===v?"unchanged":v}];Dnc.hasOwnProperty(c)||_.Kt(u)}}return t};
ScQ=function(W){var e=[];_.kJ.forEach(W,function(t,b){var m=_.PO(b);_.VZ(Array.isArray(t)?t:[t],function(q){q==""?e.push(m):e.push(m+"="+_.PO(q))})});
return e.join("&")};
_.iV=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return vSQ(W,"&")};
_.Yq=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.iV(W.length>1?W[1]:W[0])):{}};
_.zn=function(W,e){return BsQ(W,e||{},!0)};
oSD=function(W,e){return BsQ(W,e||{},!1)};
BsQ=function(W,e,t){var b=W.split("#",2);W=b[0];b=b.length>1?"#"+b[1]:"";var m=W.split("?",2);W=m[0];m=_.iV(m[1]||"");for(var q in e)if(t||!_.kJ.containsKey(m,q))m[q]=e[q];return _.Ut(W,m)+b};
ND=function(W){if(!e)var e=window.location.href;var t=_.Lt(W)[1]||null,b=_.Et(W);return t&&b?AJ(W,e):b?_.Et(e)===b&&(Number(_.Lt(e)[4]||null)||null)===(Number(_.Lt(W)[4]||null)||null):!0};
_.Z1K=function(W){W=loK(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
loK=function(W){W=_.Et(W);return W!==null?W.split(".").reverse():null};
cAG=function(W){return W&&W.match($nS)?W:dM(W)};
_.Wi=function(W){return new kkL(W)};
_.ee=function(){pTD||(pTD=new yAg);return pTD};
CU9=function(W){var e=_.tQ,t,b;_.F(function(m){t=_.ee();return(b=t.resolve(_.Wi(e)))?(W(b),m.return(Promise.resolve(b))):m.return(t.resolve(new jQS(e)).then(function(q){W(q);return q}))})};
_.S=function(W){W=bG(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.mn=function(W,e){W=bG(W);return W===void 0&&e!==void 0?e:Number(W||0)};
nSG=function(W){W=bG(W);return Array.isArray(W)?_.yO(W,function(e){return Number(e||0)}):[Number(W||0)]};
_.r8=function(W){W=bG(W);return W!==void 0?String(W):""};
_.qz=function(W){W=bG(W);return Array.isArray(W)?_.yO(W,function(e){return String(e||"")}):[String(W||"")]};
foz=function(){return _.Ot("EXPERIMENTS_TOKEN","")};
bG=function(W){return _.Ot("EXPERIMENT_FLAGS",{})[W]};
gSL=function(){for(var W=[],e=_.Ot("EXPERIMENTS_FORCED_FLAGS",{}),t=_.R(Object.keys(e)),b=t.next();!b.done;b=t.next())b=b.value,W.push({key:b,value:String(e[b])});t=_.Ot("EXPERIMENT_FLAGS",{});b=_.R(Object.keys(t));for(var m=b.next();!m.done;m=b.next())m=m.value,m.startsWith("force_")&&e[m]===void 0&&W.push({key:m,value:String(t[m])});return W};
JAL=function(){if(!TsQ)return null;var W=TsQ();return"open"in W?W:null};
_.xnK=function(W){switch(_.R_(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.R_=function(W){return W&&"status"in W?W.status:-1};
_.Qm=function(W,e){typeof W==="function"&&(W=_.hJ(W));return window.setTimeout(W,e)};
_.Fe=function(W,e){typeof W==="function"&&(W=_.hJ(W));return window.setInterval(W,e)};
_.Xe=function(W){window.clearTimeout(W)};
Mv2=function(W){W=_.Yq(W);for(var e=_.R(O1z),t=e.next();!t.done;t=e.next())if(W[t.value]!==void 0)return!0;return!1};
H1R=function(W,e,t,b,m,q,Q,X){t=t===void 0?"GET":t;b=b===void 0?"":b;X=X===void 0?!1:X;var I=JAL();if(!I)return null;var u=function(){(I&&"readyState"in I?I.readyState:0)===4&&e&&_.hJ(e)(I)};
"onloadend"in I?I.addEventListener("loadend",u,!1):I.onreadystatechange=u;_.S("debug_forward_web_query_parameters")&&(W=sQc(W,window.location.search));I.open(t,W,!0);q&&(I.responseType=q);Q&&(I.withCredentials=!0);t=t==="POST"&&(window.FormData===void 0||!(b instanceof FormData));if(m=hr9(W,m))for(var c in m)I.setRequestHeader(c,m[c]),"content-type"===c.toLowerCase()&&(t=!1);t&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(X&&"setAttributionReporting"in XMLHttpRequest.prototype){W=
{eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(W)}catch(v){_.Kt(v)}}I.send(b);return I};
hr9=function(W,e){e=e===void 0?{}:e;var t=ND(W),b=_.Ot("INNERTUBE_CLIENT_NAME"),m=_.S("web_ajax_ignore_global_headers_if_set"),q;for(q in KYv){var Q=_.Ot(KYv[q]),X=q==="X-Goog-AuthUser"||q==="X-Goog-PageId";q!=="X-Goog-Visitor-Id"||Q||(Q=_.Ot("VISITOR_DATA"));var I;if(!(I=!Q)){if(!(I=t||(_.Et(W)?!1:!0))){I=W;var u;if(u=_.S("add_auth_headers_to_remarketing_google_dot_com_ping")&&q==="Authorization"&&(b==="TVHTML5"||b==="TVHTML5_UNPLUGGED"||b==="TVHTML5_SIMPLY"))u=loK(I),u=u===null?!1:u[1]==="google"?
!0:u[2]==="google"?u[0]==="au"&&u[1]==="com"?!0:u[0]==="uk"&&u[1]==="co"?!0:!1:!1;u&&(I=_.I_(I)||"",I=I.split("/"),I="/"+(I.length>1?I[1]:""),u=I==="/pagead");I=u?!0:!1}I=!I}I||m&&e[q]!==void 0||b==="TVHTML5_UNPLUGGED"&&X||(e[q]=Q)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(t||!_.Et(W))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(t||!_.Et(W)){try{var c=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}c&&(e["X-YouTube-Time-Zone"]=
c)}document.location.hostname.endsWith("youtubeeducation.com")||!t&&_.Et(W)||(e["X-YouTube-Ad-Signals"]=ScQ(PUz()));return e};
_.VvQ=function(W,e){var t=_.Et(W);_.S("debug_handle_relative_url_for_query_forward_killswitch")||!t&&ND(W)&&(t=document.location.hostname);var b=_.I_(W);b=(t=t&&(t.endsWith("youtube.com")||t.endsWith("youtube-nocookie.com")))&&b&&b.startsWith("/api/");if(!t||b)return W;var m=_.iV(e),q={};_.VZ(O1z,function(Q){m[Q]&&(q[Q]=m[Q])});
return oSD(W,q)};
i1z=function(W,e){e.method="POST";e.postParams||(e.postParams={});return _.a_(W,e)};
Ycg=function(W,e){var t=_.Ot("XSRF_FIELD_NAME"),b;e.headers&&(b=e.headers["Content-Type"]);return!e.excludeXsrf&&(!_.Et(W)||e.withCredentials||_.Et(W)===document.location.hostname)&&e.method==="POST"&&(!b||b==="application/x-www-form-urlencoded")&&!(e.postParams&&e.postParams[t])};
_.a_=function(W,e){var t=e.format||"JSON";W=zrD(W,e);var b=UnD(W,e),m=!1,q=LY9(W,function(I){if(!m){m=!0;X&&_.Xe(X);var u=_.xnK(I),c=null,v=400<=I.status&&I.status<500,D=500<=I.status&&I.status<600;if(u||v||D)c=ESK(W,t,I,e.convertToSafeHtml);u&&(u=AA2(t,I,c));c=c||{};v=e.context||_.tz;u?e.onSuccess&&e.onSuccess.call(v,I,c):e.onError&&e.onError.call(v,I,c);e.onFinish&&e.onFinish.call(v,I,c)}},e.method,b,e.headers,e.responseType,e.withCredentials);
b=e.timeout||0;if(e.onTimeout&&b>0){var Q=e.onTimeout;var X=_.Qm(function(){m||(m=!0,q.abort(),_.Xe(X),Q.call(e.context||_.tz,q))},b)}return q};
zrD=function(W,e){e.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var t=_.Ot("XSRF_FIELD_NAME");if(e=e.urlParams)e[t]&&delete e[t],W=_.zn(W,e);return W};
UnD=function(W,e){var t=_.Ot("XSRF_FIELD_NAME"),b=_.Ot("XSRF_TOKEN"),m=e.postBody||"",q=e.postParams;Ycg(W,e)&&(q||(q={}),q[t]=b);(_.S("ajax_parse_query_data_only_when_filled")&&q&&Object.keys(q).length>0||q)&&typeof m==="string"&&(m=_.iV(m),_.kJ.extend(m,q),m=e.postBodyFormat&&e.postBodyFormat==="JSON"?JSON.stringify(m):_.w8(m));q=m||q&&!_.kJ.isEmpty(q);!NsS&&q&&e.method!=="POST"&&(NsS=!0,_.st(Error("Gc")));return m};
ESK=function(W,e,t,b){var m=null;switch(e){case "JSON":try{var q=t.responseText}catch(Q){throw b=Error("Hc"),b.params=W,_.Kt(b),Q;}W=t.getResponseHeader("Content-Type")||"";q&&W.indexOf("json")>=0&&(q.substring(0,5)===")]}'\n"&&(q=q.substring(5)),m=JSON.parse(q));break;case "XML":if(W=(W=t.responseXML)?dn2(W):null)m={},_.VZ(W.getElementsByTagName("*"),function(Q){m[Q.tagName]=W$K(Q)})}b&&epZ(m);
return m};
epZ=function(W){if(_.tk(W))for(var e in W)e==="html_content"||qs(e,"_html")?W[e]=CF(W[e]):epZ(W[e])};
AA2=function(W,e,t){if(e&&e.status===204)return!0;switch(W){case "JSON":return!!t;case "XML":return Number(t&&t.return_code)===0;case "RAW":return!0;default:return!!t}};
dn2=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
W$K=function(W){var e="";_.VZ(W.childNodes,function(t){e+=t.nodeValue});
return e};
tVc=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")};
bc2=function(W){if(!W.stack)return!0;var e=!W.stack.includes("\n");return e&&W.stack.includes("ErrorType: ")||e&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1};
_.uG=function(W){_.ka.call(this);this.JSC$8493_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
rjK=function(W,e){var t=W.length,b=0,m=function(){return W.charCodeAt(b++)};
do{var q=mgD(m);if(q===Infinity)break;var Q=q>>3;switch(q&7){case 0:q=mgD(m);if(Q===e)return q;break;case 1:if(Q===e)return;b+=8;break;case 2:q=mgD(m);if(Q===e)return W.substr(b,q);b+=q;break;case 5:if(Q===e)return;b+=4;break;default:return}}while(b<t)};
mgD=function(W){var e=W(),t=e&127;if(e<128)return t;e=W();t|=(e&127)<<7;if(e<128)return t;e=W();t|=(e&127)<<14;if(e<128)return t;e=W();return e<128?t|(e&127)<<21:Infinity};
RpG=function(W,e,t,b){if(W)if(Array.isArray(W)){var m=b;for(b=0;b<W.length&&!(W[b]&&(m+=qT2(b,W[b],e,t),m>500));b++);b=m}else if(typeof W==="object")for(m in W){if(W[m]){var q=m;var Q=W[m],X=e,I=t;q=typeof Q!=="string"||q!=="clickTrackingParams"&&q!=="trackingParams"?0:(Q=rjK(atob(Q.replace(/-/g,"+").replace(/_/g,"/")),2))?qT2(q+".ve",Q,X,I):0;b+=q;b+=qT2(m,W[m],e,t);if(b>500)break}}else t[e]=ci(W),b+=t[e].length;else t[e]=ci(W),b+=t[e].length;return b};
qT2=function(W,e,t,b){t+="."+W;W=ci(e);b[t]=W;return t.length+W.length};
ci=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(e){return"unable to serialize "+typeof W+" ("+e.message+")"}};
QBG=function(W){switch(W){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}};
_.GJ=function(W,e,t,b,m){_.vi.set(W,e,{maxAge:t,path:"/",domain:b===void 0?"youtube.com":b,secure:m===void 0?!1:m})};
_.F$v=function(W,e,t){_.vi.remove(W,e===void 0?"/":e,t===void 0?"youtube.com":t)};
_.DK=function(){if(_.S("embeds_web_enable_cookie_detection_fix")){if(!_.tz.navigator.cookieEnabled)return!1}else if(!_.vi.isEnabled())return!1;if(!_.vi.isEmpty())return!0;_.S("embeds_web_enable_cookie_detection_fix")?_.vi.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.vi.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.vi.get("TESTCOOKIESENABLED")!=="1")return!1;_.vi.remove("TESTCOOKIESENABLED");return!0};
XFQ=function(){var W=_.tz.navigator;return W?W.connection:void 0};
IZS=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.wFZ=function(){var W=XFQ();if(W){var e=aZv[W.type||"unknown"]||"CONN_UNKNOWN";W=aZv[W.effectiveType||"unknown"]||"CONN_UNKNOWN";e==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(e=W);if(e!=="CONN_UNKNOWN")return e;if(W!=="CONN_UNKNOWN")return W}};
cjv=function(){var W=XFQ();if(W!=null&&W.effectiveType)return urK.hasOwnProperty(W.effectiveType)?urK[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Bi=function(){try{return _.Se(),!0}catch(W){return!1}};
_.Se=function(W){if(_.Ot("DATASYNC_ID")!==void 0)return _.Ot("DATASYNC_ID");throw new _.o_("Datasync ID not set",W===void 0?"unknown":W);};
_.lG=function(W){this.mechanism=W};
ZK=function(W){this.mechanism=W};
$w=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
v4v=function(){var W=null;try{W=_.tz.localStorage||null}catch(e){}$w.call(this,W)};
G42=function(){var W=null;try{W=_.tz.sessionStorage||null}catch(e){}$w.call(this,W)};
kw=function(W,e){this.mechanism_=W;this.JSC$8595_prefix_=e+"::"};
_.DgR=function(W){var e=new v4v;return e.isAvailable()?W?new kw(e,W):e:null};
_.STG=function(W){var e=new G42;return e.isAvailable()?W?new kw(e,W):e:null};
o42=function(){var W;return(W=B3v())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.je=function(W){lZz||(_.pK?_.pK.logError(W):(_.ym.push({type:"ERROR",payload:W}),_.ym.length>10&&_.ym.shift()))};
CK=function(W,e){lZz||(_.pK?_.pK.logEvent(W,e):(_.ym.push({type:"EVENT",eventType:W,payload:e}),_.ym.length>10&&_.ym.shift()))};
nK=function(W){if(W.indexOf(":")>=0)throw Error("Oc");};
fK=function(W){return W.substr(0,W.indexOf(":"))||W};
k49=function(){return(ZcG||$gR)&&g8("applewebkit")&&!g8("version")&&(!g8("safari")||g8("gsa/"))};
g8=function(W){var e=_.vZ();return e?e.toLowerCase().indexOf(W)>=0:!1};
jBz=function(W,e,t,b){e=fK(e);var m=W instanceof Error?W:Error("Pc`"+W);if(m instanceof TJ)return m;W={objectStoreNames:t,dbName:e,dbVersion:b};if(m.name==="QuotaExceededError")return new TJ("QUOTA_EXCEEDED",W);if(_.JQ&&m.name==="UnknownError")return new TJ("QUOTA_MAYBE_EXCEEDED",W);if(m instanceof pFz)return new TJ("MISSING_INDEX",Object.assign({},W,{objectStore:m.objectStore,index:m.index}));if(m.name==="InvalidStateError"&&yjK.some(function(q){return m.message.includes(q)}))return new TJ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(m.name==="AbortError")return new TJ("UNKNOWN_ABORT",W,m.message);m.args=[Object.assign({},W,{name:"IdbError",originalName:m.name})];m.level="WARNING";return m};
xw=function(W,e,t){var b=o42();return new TJ("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:e,version:t,hasSucceededOnce:b==null?void 0:b.hasSucceededOnce}})};
Ckv=function(W){if(!W)throw Error();throw W;};
n4Q=function(W){return W};
fZS=function(W,e,t){var b=function(){try{W.removeEventListener("success",m),W.removeEventListener("error",q)}catch(Q){}},m=function(){e(W.result);
b()},q=function(){t(W.error);
b()};
W.addEventListener("success",m);W.addEventListener("error",q)};
g4K=function(W){return new Promise(function(e,t){fZS(W,e,t)})};
si=function(W){return new Oi(new Mz(function(e,t){fZS(W,e,t)}))};
T3D=function(W,e){return new Oi(new Mz(function(t,b){var m=function(){var q=W?e(W):null;q?q.then(function(Q){W=Q;m()},b):t()};
m()}))};
xgZ=function(W,e,t){return new Promise(function(b,m){var q=e!==void 0?self.indexedDB.open(W,e):self.indexedDB.open(W);var Q=t.blocked,X=t.blocking,I=t.terminated,u=t.upgrade,c=t.closed,v,D=function(){v||(v=new hQ(q.result,{closed:c}));return v};
q.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Uc");if(q.transaction===null)throw Error("Vc");B.dataLoss&&B.dataLoss!=="none"&&CK("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:fK(W)});var k=D(),n=new Jj9(q.transaction);u&&u(k,function(f){return B.oldVersion<f&&B.newVersion>=f},n);
n.done.catch(function(f){m(f)})}catch(f){m(f)}});
q.addEventListener("success",function(){var B=q.result;X&&B.addEventListener("versionchange",function(){X(D())});
B.addEventListener("close",function(){CK("IDB_UNEXPECTEDLY_CLOSED",{dbName:fK(W),dbVersion:B.version});I&&I()});
b(D())});
q.addEventListener("error",function(){m(q.error)});
Q&&q.addEventListener("blocked",function(){Q()})})};
OcS=function(W,e,t){t=t===void 0?{}:t;return xgZ(W,e,t)};
_.KK=function(W,e){e=e===void 0?{}:e;var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return _.Qh(Q,2),t=self.indexedDB.deleteDatabase(W),b=e,(m=b.blocked)&&t.addEventListener("blocked",function(){m()}),_.a(Q,g4K(t),4);
if(Q.nextAddress!=2)return _.Hi(Q,0);q=_.w9(Q);throw jBz(q,W,"",-1);})};
sBv=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.iG(MVD,e),2);t=b.yieldResult;return b.return(_.zJ(t,["databases"],{enableRetries:!0,mode:"readwrite"},function(m){var q=m.objectStore("databases");return q.get(W.actualName).then(function(Q){if(Q?W.actualName!==Q.actualName||W.publicName!==Q.publicName||W.userIdentifier!==Q.userIdentifier:1)return q.put(W).then(function(){})})}))})};
_.Ui=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return W?_.a(b,_.iG(MVD,e),2):b.return();t=b.yieldResult;return b.return(t.delete("databases",W))})};
_.hp2=function(W,e){var t,b;return _.F(function(m){return m.nextAddress==1?(t=[],_.a(m,_.iG(MVD,e),2)):m.nextAddress!=3?(b=m.yieldResult,_.a(m,_.zJ(b,["databases"],{enableRetries:!0,mode:"readonly"},function(q){t.length=0;return LK(q.objectStore("databases"),{},function(Q){W(Q.getValue())&&t.push(Q.getValue());return Q.continue()})}),3)):m.return(t)})};
HcQ=function(W,e){return _.hp2(function(t){return t.publicName===W&&t.userIdentifier!==void 0},e)};
VVD=function(){var W,e,t,b;return _.F(function(m){switch(m.nextAddress){case 1:W=o42();if((e=W)==null?0:e.hasSucceededOnce)return m.return(!0);var q;if(q=K$K)q=/WebKit\/([0-9]+)/.exec(_.vZ()),q=!!(q&&parseInt(q[1],10)>=600);q&&(q=/WebKit\/([0-9]+)/.exec(_.vZ()),q=!(q&&parseInt(q[1],10)>=602));if(q||Ei)return m.return(!1);try{if(t=self,!(t.indexedDB&&t.IDBIndex&&t.IDBKeyRange&&t.IDBObjectStore))return m.return(!1)}catch(Q){return m.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return m.return(!1);
_.Qh(m,2);b={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.a(m,sBv(b,PkR),4);case 4:return _.a(m,_.Ui("yt-idb-test-do-not-use",PkR),5);case 5:return m.return(!0);case 2:return _.w9(m),m.return(!1)}})};
YTG=function(){if(icG!==void 0)return icG;lZz=!0;return icG=VVD().then(function(W){lZz=!1;var e;if((e=B3v())!=null&&e.expiringStorage_){var t;e={hasSucceededOnce:((t=o42())==null?void 0:t.hasSucceededOnce)||W};var b;(b=B3v())==null||b.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return W})};
AQ=function(){return _.HO("ytglobal.idbToken_")||void 0};
_.d8=function(){var W=AQ();return W?Promise.resolve(W):YTG().then(function(e){(e=e?PkR:void 0)&&_.Nz("ytglobal.idbToken_",e);return e})};
zpz=function(W){if(!_.Bi())throw W=new TJ("AUTH_INVALID",{dbName:W}),_.je(W),W;var e=_.Se();return{actualName:W+":"+e,publicName:W,userIdentifier:e}};
Ug9=function(W,e,t,b){var m,q,Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:return q=(m=Error().stack)!=null?m:"",_.a(c,_.d8(),2);case 2:Q=c.yieldResult;if(!Q)throw X=xw("openDbImpl",W,e),_.S("ytidb_async_stack_killswitch")||(X.stack=X.stack+"\n"+q.substring(q.indexOf("\n")+1)),_.je(X),X;nK(W);I=t?{actualName:W,publicName:W,userIdentifier:void 0}:zpz(W);_.Qh(c,3);return _.a(c,sBv(I,Q),5);case 5:return _.a(c,OcS(I.actualName,e,b),6);case 6:return c.return(c.yieldResult);case 3:return u=
_.w9(c),_.Qh(c,7),_.a(c,_.Ui(I.actualName,Q),9);case 9:_.Hi(c,8);break;case 7:_.w9(c);case 8:throw u;}})};
L$9=function(W,e,t){t=t===void 0?{}:t;return Ug9(W,e,!1,t)};
E4S=function(W,e,t){t=t===void 0?{}:t;return Ug9(W,e,!0,t)};
Ajc=function(W,e){e=e===void 0?{}:e;var t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,_.d8(),2);if(m.nextAddress!=3){t=m.yieldResult;if(!t)return m.return();nK(W);b=zpz(W);return _.a(m,_.KK(b.actualName,e),3)}return _.a(m,_.Ui(b.actualName,t),0)})};
N3R=function(W,e,t){W=W.map(function(b){return _.F(function(m){return m.nextAddress==1?_.a(m,_.KK(b.actualName,e),2):_.a(m,_.Ui(b.actualName,t),0)})});
return Promise.all(W).then(function(){})};
dgL=function(W){var e=e===void 0?{}:e;var t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,_.d8(),2);if(m.nextAddress!=3){t=m.yieldResult;if(!t)return m.return();nK(W);return _.a(m,HcQ(W,t),3)}b=m.yieldResult;return _.a(m,N3R(b,e,t),0)})};
W1z=function(W,e){e=e===void 0?{}:e;var t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.d8(),2);if(b.nextAddress!=3){t=b.yieldResult;if(!t)return b.return();nK(W);return _.a(b,_.KK(W,e),3)}return _.a(b,_.Ui(W,t),0)})};
WH=function(W,e){return efz(W,e)};
beG=function(W){return _.iG(tzQ(),W)};
m2s=function(W,e,t,b){var m,q,Q;return _.F(function(X){switch(X.nextAddress){case 1:return m={config:W,hashData:e,timestamp:b!==void 0?b:(0,_.eJ)()},_.a(X,beG(t),2);case 2:return q=X.yieldResult,_.a(X,q.clear("hotConfigStore"),3);case 3:return _.a(X,q.put("hotConfigStore",m),4);case 4:return Q=X.yieldResult,X.return(Q)}})};
ryR=function(W,e,t,b,m){var q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:return q={config:W,hashData:e,configData:t,timestamp:m!==void 0?m:(0,_.eJ)()},_.a(I,beG(b),2);case 2:return Q=I.yieldResult,_.a(I,Q.clear("coldConfigStore"),3);case 3:return _.a(I,Q.put("coldConfigStore",q),4);case 4:return X=I.yieldResult,I.return(X)}})};
q6v=function(W){var e,t;return _.F(function(b){return b.nextAddress==1?_.a(b,beG(W),2):b.nextAddress!=3?(e=b.yieldResult,t=void 0,_.a(b,_.zJ(e,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.t7(m.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(q){t=q.getValue()})}),3)):b.return(t)})};
RfR=function(W){var e,t;return _.F(function(b){return b.nextAddress==1?_.a(b,beG(W),2):b.nextAddress!=3?(e=b.yieldResult,t=void 0,_.a(b,_.zJ(e,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(m){return _.t7(m.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(q){t=q.getValue()})}),3)):b.return(t)})};
QTD=function(){return _.F(function(W){return _.a(W,dgL("ytGcfConfig"),0)})};
F1L=function(){return"INNERTUBE_API_KEY"in _.JJ&&"INNERTUBE_API_VERSION"in _.JJ};
_.ba=function(){return{innertubeApiKey:_.Ot("INNERTUBE_API_KEY"),innertubeApiVersion:_.Ot("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Ot("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Ot("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Ot("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Ot("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.MD("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.MD("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Ot("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.vhS=function(W){var e={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(e.client.userAgent=String(navigator.userAgent));var t=_.tz.devicePixelRatio;t&&t!=1&&(e.client.screenDensityFloat=String(t));t=foz();t!==""&&(e.client.experimentsToken=t);t=gSL();t.length>0&&(e.request={internalExperimentFlags:t});X6c(W,void 0,e);
I8K(void 0,e);a89(void 0,e);w6Q(W,void 0,e);u5Q(void 0,e);_.S("start_client_gcf")&&cyZ(void 0,e);_.Ot("DELEGATED_SESSION_ID")&&!_.S("pageid_as_header_web")&&(e.user={onBehalfOfUser:_.Ot("DELEGATED_SESSION_ID")});!_.S("fill_delegate_context_in_gel_killswitch")&&(W=_.Ot("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:W}));W=_.Ot("INNERTUBE_CONTEXT");var b;if(_.S("enable_persistent_device_token")&&(W==null?0:(b=W.client)==null?0:b.rolloutToken)){var m;
e.client.rolloutToken=W==null?void 0:(m=W.client)==null?void 0:m.rolloutToken}b=Object;m=b.assign;W=e.client;t={};for(var q=_.R(Object.entries(_.iV(_.Ot("DEVICE","")))),Q=q.next();!Q.done;Q=q.next()){var X=_.R(Q.value);Q=X.next().value;X=X.next().value;Q==="cbrand"?t.deviceMake=X:Q==="cmodel"?t.deviceModel=X:Q==="cbr"?t.browserName=X:Q==="cbrver"?t.browserVersion=X:Q==="cos"?t.osName=X:Q==="cosver"?t.osVersion=X:Q==="cplatform"&&(t.platform=X)}e.client=m.call(b,W,t);return e};
X6c=function(W,e,t){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(e){t=_.mx(e,GvG,96)||new GvG;var b=D2Z();b=Object.keys(S6G).indexOf(b);b=b===-1?null:b;b!==null&&_.rT(t,3,b);_.bF(e,96,t)}else t&&(t.client.mainAppWebInfo=(b=t.client.mainAppWebInfo)!=null?b:{},t.client.mainAppWebInfo.webDisplayMode=D2Z())};
I8K=function(W,e){var t=_.HO("yt.embedded_player.embed_url");t&&(W?(e=_.mx(W,Byz,7)||new Byz,_.Ga(e,4,t),_.bF(W,7,e)):e&&(e.thirdParty={embedUrl:t}))};
a89=function(W,e){var t;if(_.S("web_log_memory_total_kbytes")&&((t=_.tz.navigator)==null?0:t.deviceMemory)){var b;t=(b=_.tz.navigator)==null?void 0:b.deviceMemory;W?_.qI(W,95,fC(t*1E6)):e&&(e.client.memoryTotalKbytes=""+t*1E6)}};
w6Q=function(W,e,t){if(W.appInstallData)if(e){var b;t=(b=_.mx(e,RM,62))!=null?b:new RM;_.Ga(t,6,W.appInstallData);_.bF(e,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},t.client.configInfo.appInstallData=W.appInstallData)};
u5Q=function(W,e){var t=_.wFZ();t&&(W?_.rT(W,61,ohS[t]):e&&(e.client.connectionType=t));_.S("web_log_effective_connection_type")&&(t=cjv())&&(W?_.rT(W,94,l8Q[t]):e&&(e.client.effectiveConnectionType=t))};
_.kvc=function(W,e,t){t=t===void 0?{}:t;var b={};_.Ot("EOM_VISITOR_DATA")?b={"X-Goog-EOM-Visitor-Id":_.Ot("EOM_VISITOR_DATA")}:b={"X-Goog-Visitor-Id":t.visitorData||_.Ot("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return b;e=t.authorization||_.Ot("AUTHORIZATION");e||(W?e="Bearer "+_.HO("gapi.auth.getToken")().access_token:(ZeL.instance||(ZeL.instance=new ZeL),W=$2z(),_.S("pageid_as_header_web")||delete W["X-Goog-PageId"],b=Object.assign({},b,W)));e&&(b.Authorization=e);return b};
cyZ=function(W,e){var t=p6c();if(t){var b=t.coldConfigData,m=t.coldHashData;t=t.hotHashData;if(W){var q;e=(q=_.mx(W,RM,62))!=null?q:new RM;b=_.Ga(e,1,b);_.Ga(b,3,m).setHotHashData(t);_.bF(W,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},b&&(e.client.configInfo.coldConfigData=b),m&&(e.client.configInfo.coldHashData=m),t&&(e.client.configInfo.hotHashData=t))}};
Qf=function(W){for(var e=W.length;--e>=0;)W[e]=0};
yyv=function(W,e,t,b,m){this.static_tree=W;this.extra_bits=e;this.extra_base=t;this.elems=b;this.max_length=m;this.has_stree=W&&W.length};
jT2=function(W,e){this.dyn_tree=W;this.max_code=0;this.stat_desc=e};
F3=function(W,e){W.pending_buf[W.pending++]=e&255;W.pending_buf[W.pending++]=e>>>8&255};
X3=function(W,e,t){W.bi_valid>16-t?(W.bi_buf|=e<<W.bi_valid&65535,F3(W,W.bi_buf),W.bi_buf=e>>16-W.bi_valid,W.bi_valid+=t-16):(W.bi_buf|=e<<W.bi_valid&65535,W.bi_valid+=t)};
IM=function(W,e,t){X3(W,t[e*2],t[e*2+1])};
CcD=function(W,e){var t=0;do t|=W&1,W>>>=1,t<<=1;while(--e>0);return t>>>1};
nhG=function(W,e,t){var b=Array(16),m=0,q;for(q=1;q<=15;q++)b[q]=m=m+t[q-1]<<1;for(t=0;t<=e;t++)m=W[t*2+1],m!==0&&(W[t*2]=CcD(b[m]++,m))};
f8R=function(W){var e;for(e=0;e<286;e++)W.dyn_ltree[e*2]=0;for(e=0;e<30;e++)W.dyn_dtree[e*2]=0;for(e=0;e<19;e++)W.bl_tree[e*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
ghZ=function(W){W.bi_valid>8?F3(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
TyL=function(W,e,t){ghZ(W);F3(W,t);F3(W,~t);aM.arraySet(W.pending_buf,W.window,e,t,W.pending);W.pending+=t};
Jys=function(W,e,t,b){var m=e*2,q=t*2;return W[m]<W[q]||W[m]===W[q]&&b[e]<=b[t]};
x2L=function(W,e,t){for(var b=W.heap[t],m=t<<1;m<=W.heap_len;){m<W.heap_len&&Jys(e,W.heap[m+1],W.heap[m],W.depth)&&m++;if(Jys(e,b,W.heap[m],W.depth))break;W.heap[t]=W.heap[m];t=m;m<<=1}W.heap[t]=b};
HeG=function(W,e,t){var b=0;if(W.last_lit!==0){do{var m=W.pending_buf[W.d_buf+b*2]<<8|W.pending_buf[W.d_buf+b*2+1];var q=W.pending_buf[W.l_buf+b];b++;if(m===0)IM(W,q,e);else{var Q=wT[q];IM(W,Q+256+1,e);var X=Oes[Q];X!==0&&(q-=Mzz[Q],X3(W,q,X));m--;Q=m<256?ua[m]:ua[256+(m>>>7)];IM(W,Q,t);X=sTS[Q];X!==0&&(m-=hfR[Q],X3(W,m,X))}}while(b<W.last_lit)}IM(W,256,e)};
K1G=function(W,e){var t=e.dyn_tree,b=e.stat_desc.static_tree,m=e.stat_desc.has_stree,q=e.stat_desc.elems,Q,X=-1;W.heap_len=0;W.heap_max=573;for(Q=0;Q<q;Q++)t[Q*2]!==0?(W.heap[++W.heap_len]=X=Q,W.depth[Q]=0):t[Q*2+1]=0;for(;W.heap_len<2;){var I=W.heap[++W.heap_len]=X<2?++X:0;t[I*2]=1;W.depth[I]=0;W.opt_len--;m&&(W.static_len-=b[I*2+1])}e.max_code=X;for(Q=W.heap_len>>1;Q>=1;Q--)x2L(W,t,Q);I=q;do Q=W.heap[1],W.heap[1]=W.heap[W.heap_len--],x2L(W,t,1),b=W.heap[1],W.heap[--W.heap_max]=Q,W.heap[--W.heap_max]=
b,t[I*2]=t[Q*2]+t[b*2],W.depth[I]=(W.depth[Q]>=W.depth[b]?W.depth[Q]:W.depth[b])+1,t[Q*2+1]=t[b*2+1]=I,W.heap[1]=I++,x2L(W,t,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];Q=e.dyn_tree;I=e.max_code;b=e.stat_desc.static_tree;m=e.stat_desc.has_stree;q=e.stat_desc.extra_bits;var u=e.stat_desc.extra_base,c=e.stat_desc.max_length,v,D=0;for(v=0;v<=15;v++)W.bl_count[v]=0;Q[W.heap[W.heap_max]*2+1]=0;for(e=W.heap_max+1;e<573;e++){var B=W.heap[e];v=Q[Q[B*2+1]*2+1]+1;v>c&&(v=c,D++);Q[B*2+1]=v;if(!(B>
I)){W.bl_count[v]++;var k=0;B>=u&&(k=q[B-u]);var n=Q[B*2];W.opt_len+=n*(v+k);m&&(W.static_len+=n*(b[B*2+1]+k))}}if(D!==0){do{for(v=c-1;W.bl_count[v]===0;)v--;W.bl_count[v]--;W.bl_count[v+1]+=2;W.bl_count[c]--;D-=2}while(D>0);for(v=c;v!==0;v--)for(B=W.bl_count[v];B!==0;)b=W.heap[--e],b>I||(Q[b*2+1]!==v&&(W.opt_len+=(v-Q[b*2+1])*Q[b*2],Q[b*2+1]=v),B--)}nhG(t,X,W.bl_count)};
PcG=function(W,e,t){var b,m=-1,q=e[1],Q=0,X=7,I=4;q===0&&(X=138,I=3);e[(t+1)*2+1]=65535;for(b=0;b<=t;b++){var u=q;q=e[(b+1)*2+1];++Q<X&&u===q||(Q<I?W.bl_tree[u*2]+=Q:u!==0?(u!==m&&W.bl_tree[u*2]++,W.bl_tree[32]++):Q<=10?W.bl_tree[34]++:W.bl_tree[36]++,Q=0,m=u,q===0?(X=138,I=3):u===q?(X=6,I=3):(X=7,I=4))}};
Vz2=function(W,e,t){var b,m=-1,q=e[1],Q=0,X=7,I=4;q===0&&(X=138,I=3);for(b=0;b<=t;b++){var u=q;q=e[(b+1)*2+1];if(!(++Q<X&&u===q)){if(Q<I){do IM(W,u,W.bl_tree);while(--Q!==0)}else u!==0?(u!==m&&(IM(W,u,W.bl_tree),Q--),IM(W,16,W.bl_tree),X3(W,Q-3,2)):Q<=10?(IM(W,17,W.bl_tree),X3(W,Q-3,3)):(IM(W,18,W.bl_tree),X3(W,Q-11,7));Q=0;m=u;q===0?(X=138,I=3):u===q?(X=6,I=3):(X=7,I=4)}}};
ies=function(W){var e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&W.dyn_ltree[t*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(t=32;t<256;t++)if(W.dyn_ltree[t*2]!==0)return 1;return 0};
cH=function(W,e,t){W.pending_buf[W.d_buf+W.last_lit*2]=e>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=e&255;W.pending_buf[W.l_buf+W.last_lit]=t&255;W.last_lit++;e===0?W.dyn_ltree[t*2]++:(W.matches++,e--,W.dyn_ltree[(wT[t]+256+1)*2]++,W.dyn_dtree[(e<256?ua[e]:ua[256+(e>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
Gm=function(W,e){W.msg=vH[e];return e};
D3=function(W){for(var e=W.length;--e>=0;)W[e]=0};
SJ=function(W){var e=W.state,t=e.pending;t>W.avail_out&&(t=W.avail_out);t!==0&&(aM.arraySet(W.output,e.pending_buf,e.pending_out,t,W.next_out),W.next_out+=t,e.pending_out+=t,W.total_out+=t,W.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))};
Z3=function(W,e){var t=W.block_start>=0?W.block_start:-1,b=W.strstart-W.block_start,m=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=ies(W));K1G(W,W.l_desc);K1G(W,W.d_desc);PcG(W,W.dyn_ltree,W.l_desc.max_code);PcG(W,W.dyn_dtree,W.d_desc.max_code);K1G(W,W.bl_desc);for(m=18;m>=3&&W.bl_tree[Y69[m]*2+1]===0;m--);W.opt_len+=3*(m+1)+5+5+4;var q=W.opt_len+3+7>>>3;var Q=W.static_len+3+7>>>3;Q<=q&&(q=Q)}else q=Q=b+5;if(b+4<=q&&t!==-1)X3(W,e?1:0,3),TyL(W,t,b);else if(W.strategy===4||Q===q)X3(W,2+(e?
1:0),3),HeG(W,BH,la);else{X3(W,4+(e?1:0),3);t=W.l_desc.max_code+1;b=W.d_desc.max_code+1;m+=1;X3(W,t-257,5);X3(W,b-1,5);X3(W,m-4,4);for(q=0;q<m;q++)X3(W,W.bl_tree[Y69[q]*2+1],3);Vz2(W,W.dyn_ltree,t-1);Vz2(W,W.dyn_dtree,b-1);HeG(W,W.dyn_ltree,W.dyn_dtree)}f8R(W);e&&ghZ(W);W.block_start=W.strstart;SJ(W.strm)};
$n=function(W,e){W.pending_buf[W.pending++]=e};
kn=function(W,e){W.pending_buf[W.pending++]=e>>>8&255;W.pending_buf[W.pending++]=e&255};
zfz=function(W,e){var t=W.max_chain_length,b=W.strstart,m=W.prev_length,q=W.nice_match,Q=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,X=W.window,I=W.w_mask,u=W.prev,c=W.strstart+258,v=X[b+m-1],D=X[b+m];W.prev_length>=W.good_match&&(t>>=2);q>W.lookahead&&(q=W.lookahead);do{var B=e;if(X[B+m]===D&&X[B+m-1]===v&&X[B]===X[b]&&X[++B]===X[b+1]){b+=2;for(B++;X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&X[++b]===X[++B]&&b<c;);
B=258-(c-b);b=c-258;if(B>m){W.match_start=e;m=B;if(B>=q)break;v=X[b+m-1];D=X[b+m]}}}while((e=u[e&I])>Q&&--t!==0);return m<=W.lookahead?m:W.lookahead};
C_=function(W){var e=W.w_size,t;do{var b=W.window_size-W.lookahead-W.strstart;if(W.strstart>=e+(e-262)){aM.arraySet(W.window,W.window,e,e,0);W.match_start-=e;W.strstart-=e;W.block_start-=e;var m=t=W.hash_size;do{var q=W.head[--m];W.head[m]=q>=e?q-e:0}while(--t);m=t=e;do q=W.prev[--m],W.prev[m]=q>=e?q-e:0;while(--t);b+=e}if(W.strm.avail_in===0)break;m=W.strm;t=W.window;q=W.strstart+W.lookahead;var Q=m.avail_in;Q>b&&(Q=b);Q===0?t=0:(m.avail_in-=Q,aM.arraySet(t,m.input,m.next_in,Q,q),m.state.wrap===
1?m.adler=U2s(m.adler,t,Q,q):m.state.wrap===2&&(m.adler=jJ(m.adler,t,Q,q)),m.next_in+=Q,m.total_in+=Q,t=Q);W.lookahead+=t;if(W.lookahead+W.insert>=3)for(b=W.strstart-W.insert,W.ins_h=W.window[b],W.ins_h=(W.ins_h<<W.hash_shift^W.window[b+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[b+3-1])&W.hash_mask,W.prev[b&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=b,b++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
L1S=function(W,e){for(var t;;){if(W.lookahead<262){C_(W);if(W.lookahead<262&&e===0)return 1;if(W.lookahead===0)break}t=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,t=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);t!==0&&W.strstart-t<=W.w_size-262&&(W.match_length=zfz(W,t));if(W.match_length>=3)if(t=cH(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else t=cH(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(t&&(Z3(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return e===4?(Z3(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z3(W,!1),W.strm.avail_out===0)?1:2};
n_=function(W,e){for(var t,b;;){if(W.lookahead<262){C_(W);if(W.lookahead<262&&e===0)return 1;if(W.lookahead===0)break}t=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,t=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;t!==0&&W.prev_length<W.max_lazy_match&&W.strstart-t<=W.w_size-262&&(W.match_length=zfz(W,t),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){b=W.strstart+W.lookahead-3;t=cH(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=b&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(t&&(Z3(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((t=
cH(W,0,W.window[W.strstart-1]))&&Z3(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(cH(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return e===4?(Z3(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z3(W,!1),W.strm.avail_out===0)?1:2};
Ehc=function(W,e){for(var t,b,m,q=W.window;;){if(W.lookahead<=258){C_(W);if(W.lookahead<=258&&e===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(b=W.strstart-1,t=q[b],t===q[++b]&&t===q[++b]&&t===q[++b])){for(m=W.strstart+258;t===q[++b]&&t===q[++b]&&t===q[++b]&&t===q[++b]&&t===q[++b]&&t===q[++b]&&t===q[++b]&&t===q[++b]&&b<m;);W.match_length=258-(m-b);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(t=cH(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(t=cH(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(t&&(Z3(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return e===4?(Z3(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z3(W,!1),W.strm.avail_out===0)?1:2};
AyZ=function(W,e){for(var t;;){if(W.lookahead===0&&(C_(W),W.lookahead===0)){if(e===0)return 1;break}W.match_length=0;t=cH(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(t&&(Z3(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return e===4?(Z3(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(Z3(W,!1),W.strm.avail_out===0)?1:2};
f_=function(W,e,t,b,m){this.good_length=W;this.max_lazy=e;this.nice_length=t;this.max_chain=b;this.func=m};
Nyg=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 aM.Buf16(1146);this.dyn_dtree=new aM.Buf16(122);this.bl_tree=new aM.Buf16(78);D3(this.dyn_ltree);D3(this.dyn_dtree);D3(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new aM.Buf16(16);this.heap=new aM.Buf16(573);D3(this.heap);this.heap_max=this.heap_len=0;this.depth=new aM.Buf16(573);D3(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};
d2D=function(W,e){if(!W||!W.state||e>5||e<0)return W?Gm(W,-2):-2;var t=W.state;if(!W.output||!W.input&&W.avail_in!==0||t.status===666&&e!==4)return Gm(W,W.avail_out===0?-5:-2);t.strm=W;var b=t.last_flush;t.last_flush=e;if(t.status===42)if(t.wrap===2)W.adler=0,$n(t,31),$n(t,139),$n(t,8),t.gzhead?($n(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),$n(t,t.gzhead.time&255),$n(t,t.gzhead.time>>8&255),$n(t,t.gzhead.time>>16&255),$n(t,t.gzhead.time>>
24&255),$n(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),$n(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&($n(t,t.gzhead.extra.length&255),$n(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(W.adler=jJ(W.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=69):($n(t,0),$n(t,0),$n(t,0),$n(t,0),$n(t,0),$n(t,t.level===9?2:t.strategy>=2||t.level<2?4:0),$n(t,3),t.status=113);else{var m=8+(t.w_bits-8<<4)<<8;m|=(t.strategy>=2||t.level<2?0:t.level<6?1:t.level===6?2:3)<<6;t.strstart!==0&&(m|=
32);t.status=113;kn(t,m+(31-m%31));t.strstart!==0&&(kn(t,W.adler>>>16),kn(t,W.adler&65535));W.adler=1}if(t.status===69)if(t.gzhead.extra){for(m=t.pending;t.gzindex<(t.gzhead.extra.length&65535)&&(t.pending!==t.pending_buf_size||(t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m)),SJ(W),m=t.pending,t.pending!==t.pending_buf_size));)$n(t,t.gzhead.extra[t.gzindex]&255),t.gzindex++;t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m));t.gzindex===t.gzhead.extra.length&&
(t.gzindex=0,t.status=73)}else t.status=73;if(t.status===73)if(t.gzhead.name){m=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m)),SJ(W),m=t.pending,t.pending===t.pending_buf_size)){var q=1;break}q=t.gzindex<t.gzhead.name.length?t.gzhead.name.charCodeAt(t.gzindex++)&255:0;$n(t,q)}while(q!==0);t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m));q===0&&(t.gzindex=0,t.status=91)}else t.status=91;if(t.status===
91)if(t.gzhead.comment){m=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m)),SJ(W),m=t.pending,t.pending===t.pending_buf_size)){q=1;break}q=t.gzindex<t.gzhead.comment.length?t.gzhead.comment.charCodeAt(t.gzindex++)&255:0;$n(t,q)}while(q!==0);t.gzhead.hcrc&&t.pending>m&&(W.adler=jJ(W.adler,t.pending_buf,t.pending-m,m));q===0&&(t.status=103)}else t.status=103;t.status===103&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&SJ(W),
t.pending+2<=t.pending_buf_size&&($n(t,W.adler&255),$n(t,W.adler>>8&255),W.adler=0,t.status=113)):t.status=113);if(t.pending!==0){if(SJ(W),W.avail_out===0)return t.last_flush=-1,0}else if(W.avail_in===0&&(e<<1)-(e>4?9:0)<=(b<<1)-(b>4?9:0)&&e!==4)return Gm(W,-5);if(t.status===666&&W.avail_in!==0)return Gm(W,-5);if(W.avail_in!==0||t.lookahead!==0||e!==0&&t.status!==666){b=t.strategy===2?AyZ(t,e):t.strategy===3?Ehc(t,e):gT[t.level].func(t,e);if(b===3||b===4)t.status=666;if(b===1||b===3)return W.avail_out===
0&&(t.last_flush=-1),0;if(b===2&&(e===1?(X3(t,2,3),IM(t,256,BH),t.bi_valid===16?(F3(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)):e!==5&&(X3(t,0,3),TyL(t,0,0),e===3&&(D3(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),SJ(W),W.avail_out===0))return t.last_flush=-1,0}if(e!==4)return 0;if(t.wrap<=0)return 1;t.wrap===2?($n(t,W.adler&255),$n(t,W.adler>>8&255),$n(t,W.adler>>16&255),$n(t,W.adler>>24&255),$n(t,
W.total_in&255),$n(t,W.total_in>>8&255),$n(t,W.total_in>>16&255),$n(t,W.total_in>>24&255)):(kn(t,W.adler>>>16),kn(t,W.adler&65535));SJ(W);t.wrap>0&&(t.wrap=-t.wrap);return t.pending!==0?0:1};
WlQ=function(W){if(!(this instanceof WlQ))return new WlQ(W);W=this.options=aM.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new eog;this.strm.avail_out=0;var e=this.strm;var t=W.level,b=W.method,m=W.windowBits,q=W.memLevel,Q=W.strategy;if(e){var X=1;t===-1&&(t=6);m<0?(X=0,m=-m):m>15&&
(X=2,m-=16);if(q<1||q>9||b!==8||m<8||m>15||t<0||t>9||Q<0||Q>4)e=Gm(e,-2);else{m===8&&(m=9);var I=new Nyg;e.state=I;I.strm=e;I.wrap=X;I.gzhead=null;I.w_bits=m;I.w_size=1<<I.w_bits;I.w_mask=I.w_size-1;I.hash_bits=q+7;I.hash_size=1<<I.hash_bits;I.hash_mask=I.hash_size-1;I.hash_shift=~~((I.hash_bits+3-1)/3);I.window=new aM.Buf8(I.w_size*2);I.head=new aM.Buf16(I.hash_size);I.prev=new aM.Buf16(I.w_size);I.lit_bufsize=1<<q+6;I.pending_buf_size=I.lit_bufsize*4;I.pending_buf=new aM.Buf8(I.pending_buf_size);
I.d_buf=I.lit_bufsize;I.l_buf=3*I.lit_bufsize;I.level=t;I.strategy=Q;I.method=b;if(e&&e.state){e.total_in=e.total_out=0;e.data_type=2;t=e.state;t.pending=0;t.pending_out=0;t.wrap<0&&(t.wrap=-t.wrap);t.status=t.wrap?42:113;e.adler=t.wrap===2?0:1;t.last_flush=0;if(!twc){b=Array(16);for(q=Q=0;q<28;q++)for(Mzz[q]=Q,m=0;m<1<<Oes[q];m++)wT[Q++]=q;wT[Q-1]=q;for(q=Q=0;q<16;q++)for(hfR[q]=Q,m=0;m<1<<sTS[q];m++)ua[Q++]=q;for(Q>>=7;q<30;q++)for(hfR[q]=Q<<7,m=0;m<1<<sTS[q]-7;m++)ua[256+Q++]=q;for(m=0;m<=15;m++)b[m]=
0;for(m=0;m<=143;)BH[m*2+1]=8,m++,b[8]++;for(;m<=255;)BH[m*2+1]=9,m++,b[9]++;for(;m<=279;)BH[m*2+1]=7,m++,b[7]++;for(;m<=287;)BH[m*2+1]=8,m++,b[8]++;nhG(BH,287,b);for(m=0;m<30;m++)la[m*2+1]=5,la[m*2]=CcD(m,5);bGR=new yyv(BH,Oes,257,286,15);mf2=new yyv(la,sTS,0,30,15);rmc=new yyv([],qbR,0,19,7);twc=!0}t.l_desc=new jT2(t.dyn_ltree,bGR);t.d_desc=new jT2(t.dyn_dtree,mf2);t.bl_desc=new jT2(t.bl_tree,rmc);t.bi_buf=0;t.bi_valid=0;f8R(t);t=0}else t=Gm(e,-2);t===0&&(e=e.state,e.window_size=2*e.w_size,D3(e.head),
e.max_lazy_match=gT[e.level].max_lazy,e.good_match=gT[e.level].good_length,e.nice_match=gT[e.level].nice_length,e.max_chain_length=gT[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0);e=t}}else e=-2;if(e!==0)throw Error(vH[e]);W.header&&(e=this.strm)&&e.state&&e.state.wrap===2&&(e.state.gzhead=W.header);if(W.dictionary){var u;typeof W.dictionary==="string"?u=Ro2(W.dictionary):Q1L.call(W.dictionary)==="[object ArrayBuffer]"?
u=new Uint8Array(W.dictionary):u=W.dictionary;W=this.strm;q=u;Q=q.length;if(W&&W.state)if(u=W.state,e=u.wrap,e===2||e===1&&u.status!==42||u.lookahead)e=-2;else{e===1&&(W.adler=U2s(W.adler,q,Q,0));u.wrap=0;Q>=u.w_size&&(e===0&&(D3(u.head),u.strstart=0,u.block_start=0,u.insert=0),t=new aM.Buf8(u.w_size),aM.arraySet(t,q,Q-u.w_size,u.w_size,0),q=t,Q=u.w_size);t=W.avail_in;b=W.next_in;m=W.input;W.avail_in=Q;W.next_in=0;W.input=q;for(C_(u);u.lookahead>=3;){q=u.strstart;Q=u.lookahead-2;do u.ins_h=(u.ins_h<<
u.hash_shift^u.window[q+3-1])&u.hash_mask,u.prev[q&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=q,q++;while(--Q);u.strstart=q;u.lookahead=2;C_(u)}u.strstart+=u.lookahead;u.block_start=u.strstart;u.insert=u.lookahead;u.lookahead=0;u.match_length=u.prev_length=2;u.match_available=0;W.next_in=b;W.input=m;W.avail_in=t;u.wrap=e;e=0}else e=-2;if(e!==0)throw Error(vH[e]);this._dict_set=!0}};
Flv=function(W,e){e=e||{};e.gzip=!0;e=new WlQ(e);e.push(W,!0);if(e.err)throw e.msg||vH[e.err];return e.result};
IN2=function(W,e){var t=XmQ();t&&t.publish.call(t,W.toString(),W,e)};
vgL=function(W,e,t){var b=XmQ();if(!b)return 0;var m=b.subscribe(W.toString(),function(q,Q){var X=_.HO("ytPubsub2Pubsub2SkipSubKey");X&&X==m||(X=function(){if(aNZ[m])try{if(Q&&W instanceof wmG&&W!=q)try{var I=W.dataClass,u=Q;if(!u.args||!u.version)throw Error("Xc");try{if(!I.version_){var c=new I;I.version_=c.version}var v=I.version_}catch(D){}if(!v||u.version!=v)throw Error("Yc");try{Q=Reflect.construct(I,_.EL(u.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}catch(D){throw D.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+D.message,D;}e.call(t||window,Q)}catch(D){_.st(D)}},u4S[W.toString()]?_.HO("yt.scheduler.instance")?_.Tm.addLowPriorityJob(X):_.Qm(X,0):X())});
aNZ[m]=!0;cmS[W.toString()]||(cmS[W.toString()]=[]);cmS[W.toString()].push(m);return m};
BOG=function(){var W=Gqc,e=vgL(Df2,function(t){W.apply(void 0,arguments);Sbg(e)});
return e};
Sbg=function(W){var e=XmQ();e&&(typeof W==="number"&&(W=[W]),_.VZ(W,function(t){e.unsubscribeByKey(t);delete aNZ[t]}))};
XmQ=function(){return _.HO("ytPubsub2Pubsub2Instance")};
og9=function(W,e,t){t=t===void 0?{sampleRate:.1}:t;Math.random()<Math.min(.02,t.sampleRate/100)&&IN2("meta_logging_csi_event",{timerName:W,timelineData:e})};
_.lNv=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Mt(W):null:null};
_.J7=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Fh(W):null:null};
$fz=function(){ZGZ||(ZGZ=_.J7(_.Ot("WORKER_SERIALIZATION_URL")));return ZGZ||void 0};
_.pmD=function(){var W=$fz();kqc||W===void 0||(kqc=new Worker(_.Xh(W),void 0));return kqc};
_.yms=function(){return typeof Worker==="function"&&$fz()?!0:!1};
_.fN9=function(){if(_.yms()&&!j1z){var W=function(t){t=t.data;if(t.op==="gzippedGelBatch"){var b=CXD.get(t.key);b&&(ngD(t.gzippedBatch,b.latencyPayload,b.url,b.options,b.sendFn),CXD.delete(t.key))}},e=_.pmD();
e&&(e.addEventListener("message",W),e.onerror=function(){CXD.clear()},j1z=!0)}};
s1G=function(W,e,t,b,m){m=m===void 0?!1:m;var q={startTime:(0,_.eJ)(),ticks:{},infos:{}};if(xn)try{var Q=ggg(e);if(Q!=null&&(Q>TOL||Q<Jmv))b(W,t);else{if(_.S("gzip_gel_with_worker")&&(_.S("initial_gzip_use_main_thread")&&!xf2||!_.S("initial_gzip_use_main_thread"))){j1z||_.fN9();var X=_.pmD();if(X&&!m){CXD.set(OGv,{latencyPayload:q,url:W,options:t,sendFn:b});X.postMessage({op:"gelBatchToGzip",serializedBatch:e,key:OGv});OGv++;return}}var I=Flv(MwD(e));ngD(I,q,W,t,b)}}catch(u){_.Kt(u),b(W,t)}else b(W,
t)};
ngD=function(W,e,t,b,m){xf2=!1;var q=(0,_.eJ)();e.ticks.gelc=q;OH++;_.S("disable_compression_due_to_performance_degredation")&&q-e.startTime>=hoS&&(HGQ++,_.S("abandon_compression_after_N_slow_zips")?OH===_.mn("compression_disable_point")&&HGQ>Klz&&(xn=!1):xn=!1);PXL(e);b.headers||(b.headers={});b.headers["Content-Encoding"]="gzip";b.postBody=W;b.postParams=void 0;m(t,b)};
Vwc=function(W){var e=e===void 0?!1:e;var t=t===void 0?!1:t;var b=(0,_.eJ)(),m={startTime:b,ticks:{},infos:{}},q=e?_.HO("yt.logging.gzipForFetch",!1):!0;if(xn&&q){if(!W.body)return W;try{var Q=t?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);q=Q;if(!t&&typeof Q==="string"){var X=ggg(Q);if(X!=null&&(X>TOL||X<Jmv))return W;t=e?{level:1}:void 0;q=Flv(MwD(Q),t);var I=(0,_.eJ)();m.ticks.gelc=I;if(e){OH++;if((_.S("disable_compression_due_to_performance_degredation")||_.S("disable_compression_due_to_performance_degradation_lr"))&&
I-b>=hoS)if(HGQ++,_.S("abandon_compression_after_N_slow_zips")||_.S("abandon_compression_after_N_slow_zips_lr")){e=HGQ/OH;var u=Klz/_.mn("compression_disable_point");OH>0&&OH%_.mn("compression_disable_point")===0&&e>=u&&(xn=!1)}else xn=!1;PXL(m)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=q;return W}catch(c){return _.Kt(c),W}}else return W};
ggg=function(W){try{return(new Blob(W.split(""))).size}catch(e){return _.Kt(e),null}};
PXL=function(W){_.S("gel_compression_csi_killswitch")||!_.S("log_gel_compression_latency")&&!_.S("log_gel_compression_latency_lr")||og9("gel_compression",W,{sampleRate:.1})};
iGK=function(){this.blockSize=-1};
MI=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
zoG=function(W){W=Object.assign({},W);delete W.Authorization;var e=_.Yb9();if(e){var t=new MI;t.update(_.Ot("INNERTUBE_API_KEY"));t.update(e);W.hash=_.eK(t.digest(),3)}return W};
h7=function(){UfZ||(UfZ=new _.sH("yt.innertube"));return UfZ};
Ll9=function(W,e,t,b){if(b)return null;b=h7().get("nextId",!0)||1;var m=h7().get("requests",!0)||{};m[b]={method:W,request:e,authState:zoG(t),requestTime:Math.round((0,_.eJ)())};h7().set("nextId",b+1,86400,!0);h7().set("requests",m,86400,!0);return b};
EgS=function(W){var e=h7().get("requests",!0)||{};delete e[W];h7().set("requests",e,86400,!0)};
NO9=function(W){var e=h7().get("requests",!0);if(e){for(var t in e){var b=e[t];if(!(Math.round((0,_.eJ)())-b.requestTime<6E4)){var m=b.authState,q=zoG(_.kvc(!1));_.kJ.equals(m,q)&&(m=b.request,"requestTimeMs"in m&&(m.requestTimeMs=Math.round((0,_.eJ)())),AmQ(W,b.method,m,{}));delete e[t]}}h7().set("requests",e,86400,!0)}};
df9=function(W){var e;return(W=W==null?void 0:(e=W.error)==null?void 0:e.code)&&W>=400&&W<=599?!1:!0};
WVG=function(W){var e;W=W==null?void 0:(e=W.error)==null?void 0:e.code;return!(W!==400&&W!==415)};
tfs=function(){if(eLD)return eLD();var W={};eLD=WH("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(e,t,b){t(2)&&HH(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});t(3);t(5)&&(b=b.objectStore("LogsRequestsStore"),b.JSC$8654_wrapped.indexNames.contains("newRequest")&&b.JSC$8654_wrapped.deleteIndex("newRequest"),K_(b,"newRequestV2",["status","interface","timestamp"]));t(7)&&e.JSC$8639_wrapped.objectStoreNames.contains("sapisid")&&e.JSC$8639_wrapped.deleteObjectStore("sapisid");
t(9)&&e.JSC$8639_wrapped.objectStoreNames.contains("SWHealthLog")&&e.JSC$8639_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return eLD()};
PH=function(W){return _.iG(tfs(),W)};
muR=function(W,e){var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return t={startTime:(0,_.eJ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.a(Q,PH(e),2);if(Q.nextAddress!=3)return b=Q.yieldResult,m=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.a(Q,b.put("LogsRequestsStore",m),3);q=Q.yieldResult;t.ticks.tc=(0,_.eJ)();bBv(t);return Q.return(q)})};
r8Q=function(W,e){var t,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return t={startTime:(0,_.eJ)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.a(c,PH(e),2);if(c.nextAddress!=3)return b=c.yieldResult,m=_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME",0),q=[W,m,0],Q=[W,m,(0,_.eJ)()],X=IDBKeyRange.bound(q,Q),I="prev",_.S("use_fifo_for_networkless")&&(I="next"),u=void 0,_.a(c,_.zJ(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(v){return _.t7(v.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:X,direction:I},function(D){D.getValue()&&(u=D.getValue(),W==="NEW"&&(u.status="QUEUED",D.update(u)))})}),3);
t.ticks.tc=(0,_.eJ)();bBv(t);return c.return(u)})};
qrL=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,PH(e),2);t=b.yieldResult;return b.return(_.zJ(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){var q=m.objectStore("LogsRequestsStore");return q.get(W).then(function(Q){if(Q)return Q.status="QUEUED",q.put(Q).then(function(){return Q})})}))})};
RLQ=function(W,e,t,b){t=t===void 0?!0:t;var m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,PH(e),2);m=q.yieldResult;return q.return(_.zJ(m,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var X=Q.objectStore("LogsRequestsStore");return X.get(W).then(function(I){return I?(I.status="NEW",t&&(I.sendCount+=1),b!==void 0&&(I.options.compress=b),X.put(I).then(function(){return I})):Oi.resolve(void 0)})}))})};
QX2=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,PH(e),2);t=b.yieldResult;return b.return(t.delete("LogsRequestsStore",W))})};
FVG=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,PH(W),2);e=b.yieldResult;t=(0,_.eJ)()-2592E6;return _.a(b,_.zJ(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){return LK(m.objectStore("LogsRequestsStore"),{},function(q){if(q.getValue().timestamp<=t)return q.delete().then(function(){return q.continue()})})}),0)})};
XwG=function(){_.F(function(W){return _.a(W,dgL("LogsDatabaseV2"),0)})};
bBv=function(W){_.S("nwl_csi_killswitch")||og9("networkless_performance",W,{sampleRate:1})};
_.aav=function(W){return _.iG(Ia9(),W)};
ww2=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,_.aav(W),2);e=b.yieldResult;t=(0,_.eJ)()-2592E6;return _.a(b,_.zJ(e,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(m){return LK(m.objectStore("SWHealthLog"),{},function(q){if(q.getValue().timestamp<=t)return q.delete().then(function(){return q.continue()})})}),0)})};
uuS=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,_.aav(W),2);e=t.yieldResult;return _.a(t,e.clear("SWHealthLog"),0)})};
_.Vf=function(W,e,t,b,m,q,Q){m=m===void 0?"":m;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;if(W)if(t&&!g8("cobalt"))_.Kt(new _.o_("Legacy referrer-scrubbed ping detected")),W&&c82(W,void 0,{scrubReferrer:!0});else if(m)H1R(W,e,"POST",m,b);else if(_.Ot("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||b||Q)H1R(W,e,"GET","",b,void 0,q,Q);else{b:{try{c:{var X=new vQR({url:W});if(X.urlParamValues_.dsh==="1")var I=null;else{var u=X.urlParamValues_.ae;if(u==="1"){var c=X.urlParamValues_.adurl;if(c)try{I={version:3,directUrl:decodeURIComponent(c),
asyncUrl:kgS(X.JSC$7522_url_,"act=1","ri=1",Gic(X))};break c}catch(k){}}I=u==="2"?{version:4,directUrl:kgS(X.JSC$7522_url_,"dct=1","suid="+X.suid_,""),asyncUrl:kgS(X.JSC$7522_url_,"act=1","ri=1","suid="+X.suid_)}:null}}if(I){var v=_.I_(W);var D=!(!v||!v.endsWith("/aclk")||_.VV(W,"ri")!=="1");break b}}catch(k){}D=!1}if(D){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var B=!0;break b}}catch(k){}B=!1}B?(e&&e(),t=!0):t=!1}else t=!1;t||c82(W,e)}};
c82=function(W,e,t){t=t===void 0?{}:t;var b=new Image,m=""+DuD++;Sr2[m]=b;b.onload=b.onerror=function(){e&&Sr2[m]&&e();delete Sr2[m]};
t.scrubReferrer&&(b.referrerPolicy="no-referrer");b.src=W};
ia=function(W,e){BDK(W,e==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
oQ9=function(W){var e;return((e=document.featurePolicy)==null?0:e.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
la2=function(W){if(!W)return!1;try{var e;if(((e=_.iV(W))==null?void 0:e.asm)==="4")return!0}catch(t){_.st(t)}return!1};
BDK=function(W,e){e?(W=oQ9(W),_.Vf(W,void 0,void 0,void 0,"",!0,!0)):_.Vf(W)};
$uD=function(){ZBK||(ZBK=new _.sH("yt.offline"));return ZBK};
kiL=function(W){if(_.S("offline_error_handling")){var e=$uD().get("errors",!0)||{};e[W.message]={name:W.name,stack:W.stack};W.level&&(e[W.message].level=W.level);$uD().set("errors",e,2592E3,!0)}};
y8L=function(W,e,t,b){b=b===void 0?!1:b;e=_.S("web_fp_via_jspb")?Object.assign({},e):e;_.S("use_cfr_monitor")&&pwR(W,e);if(_.S("use_request_time_ms_header"))e.headers&&ND(W)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eJ)())));else{var m;if((m=e.postParams)==null?0:m.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,_.eJ)())}t&&Object.keys(e).length===0?_.Vf(W):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),s1G(W,e.postBody,
e,_.a_,b)):s1G(W,JSON.stringify(e.postParams),e,i1z,b):_.a_(W,e)};
jXR=function(W,e){_.S("use_event_time_ms_header")&&ND(W)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.eJ)())));return e};
_.nQL=function(){Cms||(Cms=new _.Yn({logOfflineErrors:!0,enablePolling:!0}));return Cms};
pwR=function(W,e){var t=e.onError?e.onError:function(){};
e.onError=function(m,q){zm().requestComplete(W,!1);t(m,q)};
var b=e.onSuccess?e.onSuccess:function(){};
e.onSuccess=function(m,q){zm().requestComplete(W,!0);b(m,q)}};
_.faz=function(){return _.Et(document.location.toString())!=="www.youtube-nocookie.com"};
_.J8K=function(){return _.HO("ytNetworklessLoggingInitializationOptions")?_.gQL.isNwlInitialized:_.TDg};
xus=function(W,e){if(_.S("polymer_on_demand_shady_dom")){var t;var b=(t=W.__shady_native_firstElementChild)!=null?t:W.firstElementChild}else b=W.firstElementChild;for(;b;){if(W=e(b)?b:xus(b,e))return W;b=b.nextElementSibling}return null};
Mfs=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var e=OBc+"VisibilityState";if(e in W)return W[e]};
_.sXL=function(W,e){var t;UH(W,function(b){t=e[b];return!!t});
return t};
_.EH=function(W){var e=hLZ(W);e?e.focus(void 0):_.L_(W)};
hLZ=function(W){return(W=xus(W,function(e){return _.A7(e)?HBL(e)&&!!e.offsetParent:!1}))?W:null};
_.L_=function(W,e){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(e)};
KVK=function(W,e,t,b){b=b===void 0?{}:b;W.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return _.kJ.findKey(NI,function(m){var q=typeof m[4]==="boolean"&&m[4]==!!b,Q=_.tk(m[4])&&_.tk(b)&&_.kJ.equals(m[4],b);return!!m.length&&m[0]==W&&m[1]==e&&m[2]==t&&(q||Q)})};
_.W3=function(W,e,t,b){b=b===void 0?{}:b;if(!W||!W.addEventListener&&!W.attachEvent)return"";var m=KVK(W,e,t,b);if(m)return m;m=++PmG.count+"";var q=!(e!="mouseenter"&&e!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var Q=q?function(X){X=new dT(X);if(!_.JD(X.relatedTarget,function(I){return I==W},!0))return X.currentTarget=W,X.type=e,t.call(W,X)}:function(X){X=new dT(X);
X.currentTarget=W;return t.call(W,X)};
Q=_.hJ(Q);W.addEventListener?(e=="mouseenter"&&q?e="mouseover":e=="mouseleave"&&q?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),Vfz()||typeof b==="boolean"?W.addEventListener(e,Q,b):W.addEventListener(e,Q,!!b.capture)):W.attachEvent("on"+e,Q);NI[m]=[W,e,t,Q,b];return m};
_.YrG=function(W,e,t){var b=b===void 0?{}:b;var m=_.W3(W,e,function(){_.iB2(m);t.apply(W,arguments)},b)};
_.iB2=function(W){W&&(typeof W=="string"&&(W=[W]),_.VZ(W,function(e){if(e in NI){var t=NI[e],b=t[0],m=t[1],q=t[3];t=t[4];b.removeEventListener?Vfz()||typeof t==="boolean"?b.removeEventListener(m,q,t):b.removeEventListener(m,q,!!t.capture):b.detachEvent&&b.detachEvent("on"+m,q);delete NI[e]}}))};
eI=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.W3(window,"mousemove",(0,_.p3)(this.onMouseMove_,this));this.timerId_=_.Fe((0,_.p3)(this.checkPosition_,this),25)};
UuD=function(){var W={};var e=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.HO("_lact",window)==null){var t=parseInt(_.Ot("LACT"),10);t=isFinite(t)?Date.now()-Math.max(t,0):-1;_.Nz("_lact",t,window);_.Nz("_fact",t,window);t==-1&&_.tC();_.W3(document,"keydown",_.tC);_.W3(document,"keyup",_.tC);_.W3(document,"mousedown",_.tC);_.W3(document,"mouseup",_.tC);e?_.W3(window,"touchmove",function(){zLZ("touchmove",200)},{passive:!0}):
(_.W3(window,"resize",function(){zLZ("resize",200)}),W&&_.W3(window,"scroll",function(){zLZ("scroll",200)}));
new eI(function(){zLZ("mouse",100)});
_.W3(document,"touchstart",_.tC,{passive:!0});_.W3(document,"touchend",_.tC,{passive:!0})}};
zLZ=function(W,e){LVD[W]||(LVD[W]=!0,_.Tm.addLowPriorityJob(function(){_.tC();LVD[W]=!1},e))};
_.tC=function(){_.HO("_lact",window)==null&&UuD();var W=Date.now();_.Nz("_lact",W,window);_.HO("_fact",window)==-1&&_.Nz("_fact",W,window);(W=_.HO("ytglobal.ytUtilActivityCallback_"))&&W()};
_.be=function(){var W=_.HO("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.Rz=function(W,e,t){var b=_.mG();if(b&&e){var m=b.subscribe(W,function(){var q=arguments,Q=function(){rQ[m]&&e.apply&&typeof e.apply=="function"&&e.apply(t||window,q)};
try{_.EQc[W]?Q():_.Qm(Q,0)}catch(X){_.st(X)}},t);
rQ[m]=!0;qq[W]||(qq[W]=[]);qq[W].push(m);return m}return 0};
_.A8G=function(W){var e=_.mG();e&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.VZ(W,function(t){e.unsubscribeByKey(t);delete rQ[t]}))};
_.ND2=function(W,e){var t=_.mG();t&&t.publish.apply(t,arguments)};
_.WZc=function(W){var e=_.mG();if(e)if(e.clear(W),W)duv(W);else for(var t in qq)duv(t)};
_.mG=function(){return _.tz.ytPubsubPubsubInstance};
duv=function(W){qq[W]&&(W=qq[W],_.VZ(W,function(e){rQ[e]&&delete rQ[e]}),W.length=0)};
esK=function(){var W,e;return"h5vcc"in Qo&&((W=Qo.h5vcc.traceEvent)==null?0:W.traceBegin)&&((e=Qo.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in Qo&&Qo.performance.mark&&Qo.performance.measure?2:0};
tBG=function(W){var e=esK();switch(e){case 1:Qo.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:Qo.performance.mark(W+"-start");break;case 0:break;default:_.Qw(e,"unknown trace type")}};
bDR=function(W){var e=esK();switch(e){case 1:Qo.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:e=W+"-start";var t=W+"-end";Qo.performance.mark(t);Qo.performance.measure(W,e,t);break;case 0:break;default:_.Qw(e,"unknown trace type")}};
mNG=function(W){var e,t;(t=(e=window).onerror)==null||t.call(e,W.message,"",0,0,W)};
rc9=function(W){if(_.S("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(e){mNG(e)}};
qzD=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.l=function(W,e){if(W)return W[e.name]};
XT=function(){var W=_.HO("yt.logging.ims");W||(W=new FT,_.Nz("yt.logging.ims",W));return W};
ccZ=function(W,e){if(W.endpoint==="log_event"){Rsv(W);var t=QHD(W),b=FZg(W.payload)||"",m=XGG(b),q=200;if(m){if(m.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;q=I0G(m.tier);if(q===400){a0L(W,e);return}}Iz[t]=!0;t={cttAuthInfo:t,isJspb:!1,tier:q};XT().storePayload(t,W.payload);wGg(e,!1,t,uBz(b))}};
GFR=function(W,e,t){if(e.endpoint==="log_event"){Rsv(void 0,e);var b=QHD(e,!0),m=XGG(W),q=200;if(m){if(m.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;q=I0G(m.tier);if(q===400){vtR(W,e,t);return}}Iz[b]=!0;b={cttAuthInfo:b,isJspb:!0,tier:q};XT().storePayload(b,bn(e.payload));wGg(t,!0,b,uBz(W))}};
wGg=function(W,e,t,b){e=e===void 0?!1:e;b=b===void 0?!1:b;W&&(ue=new W);W=_.mn("tvhtml5_logging_max_batch_ads_fork")||_.mn("tvhtml5_logging_max_batch")||_.mn("web_logging_max_batch")||100;var m=(0,_.eJ)(),q=DNg(e,t.tier),Q=q.lastDebounceQueueFromLogTimeMs;b&&(q.useVideoStatsEndPoint=!0);b=0;t&&(b=XT().getSequenceCount(t));var X=function(){Szc({writeThenSend:!0},e,t.tier)};
b>=1E3?X():b>=W?Bzz||(Bzz=otQ(function(){X();Bzz=void 0},0)):m-Q>=10&&(l0D(e,t.tier),q.lastDebounceQueueFromLogTimeMs=m)};
a0L=function(W,e){if(W.endpoint==="log_event"){_.S("more_accurate_gel_parser")&&XT().storePayload({isJspb:!1},W.payload);Rsv(W);var t=QHD(W),b=new Map;b.set(t,[W.payload]);var m=FZg(W.payload)||"";e&&(ue=new e);return new _.c3(function(q,Q){ue&&ue.isReady()?ZDc(b,ue,q,Q,{bypassNetworkless:!0},!0,uBz(m)):q()})}};
vtR=function(W,e,t){if(e.endpoint==="log_event"){Rsv(void 0,e);var b=QHD(e,!0),m=new Map;m.set(b,[bn(e.payload)]);t&&(ue=new t);return new _.c3(function(q){ue&&ue.isReady()?$NK(m,ue,q,{bypassNetworkless:!0},!0,uBz(W)):q()})}};
QHD=function(W,e){var t="";if(W.dangerousLogToVisitorSession)t="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(e===void 0?0:e){e=W.cttAuthInfo.token;t=W.cttAuthInfo;var b=new kFL;t.videoId?b.setVideoId(t.videoId):t.playlistId&&v3(b,2,pGg,M9(t.playlistId));yc9[e]=b}else e=W.cttAuthInfo,t={},e.videoId?t.videoId=e.videoId:e.playlistId&&(t.playlistId=e.playlistId),jHz[W.cttAuthInfo.token]=t;t=W.cttAuthInfo.token}return t};
Szc=function(W,e,t){W=W===void 0?{}:W;e=e===void 0?!1:e;new _.c3(function(b,m){var q=DNg(e,t),Q=q.useVideoStatsEndPoint;q.useVideoStatsEndPoint=!1;Clg(q.queueTimer);Clg(q.queueMaxTimer);q.queueMaxTimer=0;ue&&ue.isReady()?t===void 0&&_.S("enable_web_tiered_gel")?nt9(b,m,W,e,300,Q):nt9(b,m,W,e,t,Q):(l0D(e,t),b())})};
nt9=function(W,e,t,b,m,q){var Q=ue;t=t===void 0?{}:t;b=b===void 0?!1:b;m=m===void 0?200:m;q=q===void 0?!1:q;var X=new Map,I=new Map,u={isJspb:b,cttAuthInfo:void 0,tier:m},c={isJspb:b,cttAuthInfo:void 0};if(b){e=_.R(Object.keys(Iz));for(m=e.next();!m.done;m=e.next())m=m.value,I=_.S("enable_web_tiered_gel")?XT().smartExtractMatchingEntries({keys:[u,c],sizeLimit:1E3}):XT().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),I.length>0&&X.set(m,I),(_.S("web_fp_via_jspb_and_json")&&t.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&
delete Iz[m];$NK(X,Q,W,t,!1,q)}else{X=_.R(Object.keys(Iz));for(u=X.next();!u.done;u=X.next())u=u.value,c=_.S("enable_web_tiered_gel")?XT().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:u,tier:m},{isJspb:!1,cttAuthInfo:u}],sizeLimit:1E3}):XT().extractMatchingEntries({isJspb:!1,cttAuthInfo:u}),c.length>0&&I.set(u,c),(_.S("web_fp_via_jspb_and_json")&&t.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&delete Iz[u];ZDc(I,Q,W,e,t,!1,q)}};
l0D=function(W,e){W=W===void 0?!1:W;e=e===void 0?200:e;var t=function(){Szc({writeThenSend:!0},W,e)},b=DNg(W,e),m=b===f0c||b===gtK?5E3:TzG;
_.S("web_gel_timeout_cap")&&!b.queueMaxTimer&&(m=otQ(function(){t()},m),b.queueMaxTimer=m);
Clg(b.queueTimer);m=_.Ot("LOGGING_BATCH_TIMEOUT",_.mn("web_gel_debounce_ms",1E4));_.S("shorten_initial_gel_batch_timeout")&&JcS&&(m=xNQ);m=otQ(function(){_.mn("gel_min_batch_size")>0?XT().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:e})>=ODv&&t():t()},m);
b.queueTimer=m};
ZDc=function(W,e,t,b,m,q,Q){m=m===void 0?{}:m;var X=Math.round((0,_.eJ)()),I=W.size,u=MBL(Q);W=_.R(W);var c=W.next();for(Q={};!c.done;Q={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},c=W.next()){var v=_.R(c.value);c=v.next().value;v=v.next().value;Q.batchRequest=_.kJ.unsafeClone({context:_.vhS(e.config_||_.ba())});if(!_.Ns(v)&&!_.S("throw_err_when_logevent_malformed_killswitch")){b();break}Q.batchRequest.events=v;
(v=jHz[c])&&sHD(Q.batchRequest,c,v);delete jHz[c];Q.dangerousLogToVisitorSession=c==="visitorOnlyApprovedKey";hsL(Q.batchRequest,X,Q.dangerousLogToVisitorSession);HDD(m);Q.onSuccess$jscomp$3=function(D){_.S("start_client_gcf")&&_.Tm.addLowPriorityJob(function(){return _.F(function(B){return _.a(B,KZL(D),0)})});
I--;I||t()};
Q.networkFailures=0;Q.onError$jscomp$5=function(D){return function(){D.networkFailures++;if(m.bypassNetworkless&&D.networkFailures===1)try{AmQ(e,u,D.batchRequest,PlS({writeThenSend:!0},D.dangerousLogToVisitorSession,D.onSuccess$jscomp$3,D.onError$jscomp$5,q)),JcS=!1}catch(B){_.st(B),b()}I--;I||t()}}(Q);
try{AmQ(e,u,Q.batchRequest,PlS(m,Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,q)),JcS=!1}catch(D){_.st(D),b()}}};
$NK=function(W,e,t,b,m,q){b=b===void 0?{}:b;var Q=Math.round((0,_.eJ)()),X={value:W.size},I=new Map([].concat(_.kP(W)));I=_.R(I);for(var u=I.next();!u.done;u=I.next()){var c=_.R(u.value).next().value,v=W.get(c);u=new VBK;var D=e.config_||_.ba(),B=new GT,k=new iD2;_.Ga(k,1,D.innertubeContextHostLanguage);_.Ga(k,2,D.innertubeContextGeoLocation);_.rT(k,16,D.innertubeContextClientNameFieldNumber);_.Ga(k,17,D.innertubeContextClientVersion);if(D.innertubeContextClientConfigInfo){var n=D.innertubeContextClientConfigInfo,
f=new RM;n.coldConfigData&&_.Ga(f,1,n.coldConfigData);n.appInstallData&&_.Ga(f,6,n.appInstallData);n.coldHashData&&_.Ga(f,3,n.coldHashData);n.hotHashData&&f.setHotHashData(n.hotHashData);_.bF(k,62,f)}(n=_.tz.devicePixelRatio)&&n!=1&&_.qI(k,65,_.FC(n));n=foz();n!==""&&_.Ga(k,54,n);n=gSL();if(n.length>0){f=new Yzs;for(var M=0;M<n.length;M++){var K=new Dt;K.setKey(n[M].key);v3(K,2,zsg,M9(n[M].value));SI(f,15,Dt,K)}_.bF(B,5,f)}X6c(D,k);I8K(B);a89(k);w6Q(D,k);u5Q(k);_.S("start_client_gcf")&&cyZ(k);_.Ot("DELEGATED_SESSION_ID")&&
!_.S("pageid_as_header_web")&&(D=new B3,_.Ga(D,3,_.Ot("DELEGATED_SESSION_ID")));!_.S("fill_delegate_context_in_gel_killswitch")&&(n=_.Ot("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f=_.mx(B,B3,3)||new B3,D=B,n=_.Ga(f,18,n),_.bF(D,3,n));D=k;n=_.R(Object.entries(_.iV(_.Ot("DEVICE",""))));for(f=n.next();!f.done;f=n.next())M=_.R(f.value),f=M.next().value,M=M.next().value,f==="cbrand"?_.Ga(D,12,M):f==="cmodel"?_.Ga(D,13,M):f==="cbr"?_.Ga(D,87,M):f==="cbrver"?_.Ga(D,88,M):f==="cos"?_.Ga(D,18,
M):f==="cosver"?_.Ga(D,19,M):f==="cplatform"&&_.rT(D,42,QBG(M));B.setClient(k);_.bF(u,1,B);if(k=yc9[c])a:{if(_.Gg(k,oz(k,pGg,1)))B=1;else if(k.getPlaylistId())B=2;else break a;_.bF(u,4,k);k=u.getContext()||new GT;D=_.mx(k,B3,3)||new B3;n=new le;n.setToken(c);_.rT(n,1,B);SI(D,12,le,n);_.bF(k,3,D)}delete yc9[c];c=c==="visitorOnlyApprovedKey";UND()||_.Zt(u,2,Q);!c&&(B=_.Ot("EVENT_ID"))&&(k=LZS(),D=new EtK,_.Ga(D,1,B),_.Zt(D,2,k),_.bF(u,5,D));HDD(b);if(_.S("jspb_serialize_with_worker")&&(B=_.pmD())&&
b.writeThenSend){_.AcZ.set(NzG,{client:e,resolve:t,networklessOptions:b,isIsolated:m,useVSSEndpoint:q,dangerousLogToVisitorSession:c,requestsOutstanding:X});B.postMessage({op:"gelBatchToSerialize",batchRequest:bn(u),clientEvents:v,key:NzG});NzG++;break}if(v){B=[];for(k=0;k<v.length;k++)try{B.push(new $M(v[k]))}catch(U){_.st(new _.o_("Transport failed to deserialize "+String(v[k])))}v=B}else v=[];v=_.R(v);for(B=v.next();!B.done;B=v.next())SI(u,3,$M,B.value);v={startTime:(0,_.eJ)(),ticks:{},infos:{}};
u=u.serialize();v.ticks.geljspc=(0,_.eJ)();_.S("log_jspb_serialize_latency")&&og9("gel_jspb_serialize",v,{sampleRate:.1});_.dND(u,e,t,b,m,q,c,X)}};
_.dND=function(W,e,t,b,m,q,Q,X){b=b===void 0?{}:b;X=X===void 0?{value:0}:X;q=MBL(q);b=PlS(b,Q,function(I){_.S("start_client_gcf")&&_.Tm.addLowPriorityJob(function(){return _.F(function(u){return _.a(u,KZL(I),0)})});
X.value--;X.value||t()},function(){X.value--;
X.value||t()},m);
b.headers["Content-Type"]="application/json+protobuf";b.postBodyFormat="JSPB";b.postBody=W;AmQ(e,q,"",b);JcS=!1};
HDD=function(W){_.S("always_send_and_write")&&(W.writeThenSend=!1)};
PlS=function(W,e,t,b,m){W={retry:!0,onSuccess:t,onError:b,networklessOptions:W,dangerousLogToVisitorSession:e,bypassMonitoring:!!m,headers:{},postBodyFormat:"",postBody:"",compress:_.S("compress_gel")||_.S("compress_gel_lr")};UND()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eJ)())));return W};
hsL=function(W,e,t){UND()||(W.requestTimeMs=String(e));_.S("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!t&&(e=_.Ot("EVENT_ID"))&&(t=LZS(),W.serializedClientEventId={serializedEventId:e,clientCounter:String(t)})};
LZS=function(){var W=_.Ot("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.xq("BATCH_CLIENT_COUNTER",W);return W};
sHD=function(W,e,t){if(t.videoId)var b="VIDEO";else if(t.playlistId)b="PLAYLIST";else return;W.credentialTransferTokenTargetId=t;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:e,scope:b}]};
Rsv=function(W,e){var t=_.r8("il_payload_scraping")==="enable_il_payload_scraping";if(!_.HO("yt.logging.transport.enableScrapingForTest"))if(t)WuZ=[],_.Nz("yt.logging.transport.enableScrapingForTest",!0),_.Nz("yt.logging.transport.scrapedPayloadsForTesting",WuZ),_.Nz("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Nz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Nz("yt.logging.transport.scrapeClientEvent",!0);else return;t=_.HO("yt.logging.transport.scrapedPayloadsForTesting");var b=_.HO("yt.logging.transport.payloadToScrape");e&&(e=_.HO("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e.payload)())&&t.push(e);e=_.HO("yt.logging.transport.scrapeClientEvent");if(b&&b.length>=1)for(var m=0;m<b.length;m++)if(W&&W.payload[b[m]])if(e)t.push(W.payload);else{var q=void 0;t.push(((q=W)==null?void 0:q.payload)[b[m]])}_.Nz("yt.logging.transport.scrapedPayloadsForTesting",
t)};
UND=function(){return _.S("use_request_time_ms_header")||_.S("lr_use_request_time_ms_header")};
otQ=function(W,e){return _.S("transport_use_scheduler")===!1?_.Qm(W,e):_.S("logging_avoid_blocking_during_navigation")||_.S("lr_logging_avoid_blocking_during_navigation")?_.kM(_.Tm,function(){if(_.em2().currentState==="none")W();else{var t={};_.em2().install((t.none={callback:W},t))}},e):_.kM(_.Tm,W,e)};
Clg=function(W){_.S("transport_use_scheduler")?_.Tm.cancelJob(W):_.Xe(W)};
KZL=function(W){var e,t,b,m,q,Q,X,I,u,c;return _.F(function(v){return v.nextAddress==1?(b=(e=W)==null?void 0:(t=e.responseContext)==null?void 0:t.globalConfigGroup,m=_.l(b,tgD),Q=(q=b)==null?void 0:q.hotHashData,X=_.l(b,b4Q),u=(I=b)==null?void 0:I.coldHashData,(c=_.ee().resolve(_.Wi(pJ)))?Q?m?_.a(v,mkD(c,Q,m),2):_.a(v,mkD(c,Q),2):v.jumpTo(2):v.return()):u?X?_.a(v,r_K(c,u,X),0):_.a(v,r_K(c,u),0):v.jumpTo(0)})};
DNg=function(W,e){e=e===void 0?200:e;return W?e===300?f0c:qD2:e===300?gtK:RmK};
XGG=function(W){if(_.S("enable_web_tiered_gel")){W=Qoc[W||""];var e,t,b,m=_.ee().resolve(_.Wi(pJ))==null?void 0:(e=Fuc())==null?void 0:(t=e.loggingHotConfig)==null?void 0:(b=t.eventLoggingConfig)==null?void 0:b.payloadPolicies;if(m)for(e=0;e<m.length;e++)if(m[e].payloadNumber===W)return m[e]}};
FZg=function(W){W=Object.keys(W);W=_.R(W);for(var e=W.next();!e.done;e=W.next())if(e=e.value,Qoc[e])return e};
I0G=function(W){switch(W){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}};
uBz=function(W){return W==="gelDebuggingEvent"};
MBL=function(W){return(W===void 0?0:W)&&_.S("vss_through_gel_video_stats")?"video_stats":"log_event"};
jI=function(W,e,t,b){b=b===void 0?{}:b;var m={},q=Math.round(b.timestamp||(0,_.eJ)());m.eventTimeMs=q<Number.MAX_SAFE_INTEGER?q:0;m[W]=e;W=_.be();m.context={lastActivityMs:String(b.timestamp||!isFinite(W)?-1:W)};b.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")&&(W=m.context,e=b.sequenceGroup,e={index:XgD(e),groupKey:e},W.sequence=e,b.endOfSequence&&delete yo[b.sequenceGroup]);(b.sendIsolatedPayload?a0L:ccZ)({endpoint:"log_event",payload:m,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},
t)};
XgD=function(W){yo[W]=W in yo?yo[W]+1:0;return yo[W]};
_.nJ=function(W,e,t){t=t===void 0?{}:t;var b=CJ;_.MD("ytLoggingEventsDefaultDisabled",!1)&&CJ===CJ&&(b=null);jI(W,e,b,t)};
_.fJ=function(){if(_.S("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var e=Ijz;Ijz=[];if(e){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,W?jI(t.payloadName,t.payload,CJ,t.options):_.nJ(t.payloadName,t.payload,t.options)}Szc(void 0,!0);if(!_.S("web_fp_via_jspb_and_json"))return}Szc(void 0,!1)};
ajc=function(W,e){var t;if((t=e)==null?0:t.componentStack)return e;if(W=W.componentStack)e||(e={}),e.componentStack=W;return e};
wgc=function(){_.VZ(_.Ot("ERRORS")||[],function(W){_.gQ.apply(null,W)});
_.xq("ERRORS",[])};
_.TT=function(W){_.gQ(W)};
_.JC=function(W){_.gQ(W,"WARNING")};
u1G=function(W){W instanceof Error?_.gQ(W):(W=_.tk(W)?JSON.stringify(W):String(W),W=new _.o_(W),W.name="RejectedPromiseError",_.JC(W))};
c_Z=function(W,e,t,b,m,q){e=e===void 0?"Unknown file":e;t=t===void 0?0:t;var Q=!1,X=aoG("log_window_onerror_fraction");if(X&&Math.random()<X)Q=!0;else{X=document.getElementsByTagName("script");for(var I=0,u=X.length;I<u;I++)if(X[I].src.indexOf("/debug-")>0){Q=!0;break}}Q&&(Q=!1,m?Q=!0:(typeof W==="string"?X=W:ErrorEvent&&W instanceof ErrorEvent?(Q=!0,X=W.message,e=W.filename,t=W.lineno,b=W.colno):(X="Unknown error",e="Unknown file",t=0),m=new _.o_(X),m.name="UnhandledWindowError",m.message=X,m.fileName=
e,m.lineNumber=t,isNaN(b)?delete m.columnNumber:m.columnNumber=b),_.S("wiz_enable_component_stack_propagation_killswitch")||(q=ajc(m,q)),q&&_.xM(m,q),Q?_.gQ(m):_.JC(m))};
_.gQ=function(W,e,t,b,m,q,Q,X){q=q===void 0?{}:q;q.name=t||_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME",1);q.version=b||_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION");t=q;e=e===void 0?"ERROR":e;Q=Q===void 0?!1:Q;e=e===void 0?"ERROR":e;Q=Q===void 0?!1:Q;if(W&&(W.hasOwnProperty("level")&&W.level&&(e=W.level),_.S("console_log_js_exceptions")&&(b=[],b.push("Name: "+W.name),b.push("Message: "+W.message),W.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&b.push("Error args: "+
JSON.stringify(W.args)),b.push("File name: "+W.fileName),b.push("Stacktrace: "+W.stack),b=b.join("\n"),window.console.log(b,W)),!(v5s>=5))){b=[];m=_.R(GfG);for(q=m.next();!q.done;q=m.next()){q=q.value;try{q()&&b.push(q())}catch(f){}}b=[].concat(_.kP(DkZ),_.kP(b));var I=SD2(W);m=I.message||"Unknown Error";q=I.name||"UnknownError";var u=I.stack||W.stacktrace||"Not available";if(u.startsWith(q+": "+m)){var c=u.split("\n");c.shift();u=c.join("\n")}c=I.lineNumber||"Not available";I=I.fileName||"Not available";
var v=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var D=0;D<W.args.length&&!(v=RpG(W.args[D],"params."+D,t,v),v>=500);D++);else if(W.hasOwnProperty("params")&&W.params){var B=W.params;if(typeof W.params==="object")for(D in B){if(B[D]){var k="params."+D,n=ci(B[D]);t[k]=n;v+=k.length+n.length;if(v>500)break}}else t.params=ci(B)}if(b.length)for(D=0;D<b.length&&!(v=RpG(b[D],"params.context."+D,t,v),v>=500);D++);navigator.vendor&&!t.hasOwnProperty("vendor")&&(t["device.vendor"]=navigator.vendor);
D={message:m,name:q,lineNumber:c,fileName:I,stack:u,params:t,sampleWeight:1};t=Number(W.columnNumber);isNaN(t)||(D.lineNumber=D.lineNumber+":"+t);if(W.level==="IGNORED")W=0;else a:{W=BAG();t=_.R(W.messageWeights);for(b=t.next();!b.done;b=t.next())if(b=b.value,D.message&&D.message.match(b.messageRegExp)){W=b.weight;break a}W=_.R(W.callbackWeights);for(t=W.next();!t.done;t=W.next())if(t=t.value,t.callback(D)){W=t.weight;break a}W=1}D.sampleWeight=W;W=_.R(o5L);for(t=W.next();!t.done;t=W.next())if(t=
t.value,t.patternsForType[D.name])for(m=_.R(t.patternsForType[D.name]),b=m.next();!b.done;b=m.next())if(q=b.value,b=D.message.match(q.regexp)){D.params["params.error.original"]=b[0];m=q.groups;q={};for(c=0;c<m.length;c++)q[m[c]]=b[c+1],D.params["params.error."+m[c]]=b[c+1];D.message=t.messageFn(q);break}D.params||(D.params={});W=BAG();D.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;D.params["params.serviceWorker"]="false";_.tz.document&&_.tz.document.querySelectorAll&&
(D.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Om(ljD,"sample")).constructor!==Om&&(D.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(D);if(D.sampleWeight!==0&&!Z4v.has(D.message)){if(Q&&_.S("web_enable_error_204"))$kS(e===void 0?"ERROR":e,D);else{e=e===void 0?"ERROR":e;e==="ERROR"?(kfL.publish("handleError",D),_.S("record_app_crashed_web")&&pgR===0&&D.sampleWeight===1&&(pgR++,Q={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.S("report_client_error_with_app_crash_ks")||(Q.systemHealth={crashData:{clientError:{logMessage:{message:D.message}}}}),_.nJ("appCrashed",Q)),y_G++):e==="WARNING"&&kfL.publish("handleWarning",D);if(_.S("kevlar_gel_error_routing")){Q=e;X=X===void 0?{}:X;b:{W=_.R(joz);for(t=W.next();!t.done;t=W.next())if(g8(t.value.toLowerCase())){W=!0;break b}W=!1}if(W)X=void 0;else{t={stackTrace:D.stack};D.fileName&&(t.filename=D.fileName);W=D.lineNumber&&D.lineNumber.split?D.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(t.lineNumber=Number(W[0]),t.columnNumber=Number(W[1])):t.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:D.message,errorClassName:D.name,sampleWeight:D.sampleWeight};Q==="ERROR"?W.level="ERROR_LEVEL_ERROR":Q==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");t={isObfuscated:!0,browserStackInfo:t};X.pageUrl=window.location.href;X.kvPairs=[];_.Ot("FEXP_EXPERIMENTS")&&(X.experimentIds=_.Ot("FEXP_EXPERIMENTS"));
b=_.Ot("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!aoG("web_disable_gel_stp_ecatcher_killswitch")&&b)for(m=_.R(Object.keys(b)),q=m.next();!q.done;q=m.next())q=q.value,X.kvPairs.push({key:q,value:String(b[q])});if(b=D.params)for(m=_.R(Object.keys(b)),q=m.next();!q.done;q=m.next())q=q.value,X.kvPairs.push({key:"client."+q,value:String(b[q])});b=_.Ot("SERVER_NAME");m=_.Ot("SERVER_VERSION");b&&m&&(X.kvPairs.push({key:"server.name",value:b}),X.kvPairs.push({key:"server.version",value:m}));X={errorMetadata:X,
stackTrace:t,logMessage:W}}X&&(_.nJ("clientError",X),(Q==="ERROR"||_.S("errors_flush_gel_always_killswitch"))&&_.fJ())}_.S("suppress_error_204_logging")||$kS(e,D)}try{Z4v.add(D.message)}catch(f){}v5s++}}};
$kS=function(W,e){var t=e.params||{};W={urlParams:{a:"logerror",t:"jserror",type:e.name,msg:e.message.substr(0,250),line:e.lineNumber,level:W,"client.name":t.name},postParams:{url:_.Ot("PAGE_NAME",window.location.href),file:e.fileName},method:"POST"};t.version&&(W["client.version"]=t.version);if(W.postParams){e.stack&&(W.postParams.stack=e.stack);e=_.R(Object.keys(t));for(var b=e.next();!b.done;b=e.next())b=b.value,W.postParams["client."+b]=t[b];if(t=_.Ot("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(e=
_.R(Object.keys(t)),b=e.next();!b.done;b=e.next())b=b.value,W.postParams[b]=t[b];(t=_.Ot("LAVA_VERSION"))&&(W.postParams["lava.version"]=t);t=_.Ot("SERVER_NAME");e=_.Ot("SERVER_VERSION");t&&e&&(W.postParams["server.name"]=t,W.postParams["server.version"]=e)}_.a_(_.Ot("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.CLs=function(W,e){e=e===void 0?"ERROR":e;var t=t===void 0?{}:t;var b=_.HO("ytbin.polymer.shared.lib.tampering.info");b&&(b=b())&&(t["params.tamperingInfo"]=b.sort().join(","));_.gQ(W,e,void 0,void 0,!0,t)};
_.xM=function(W){var e=_.$N.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.kP(e))};
n5K=function(W){W.level="IGNORED"};
fjD=function(W,e){DkZ.push(W);e();DkZ.pop()};
sm=function(W,e){for(var t in e)e.hasOwnProperty(t)&&(W=_.Mq(W,t,e[t]));return W};
_.g5D=function(W,e,t){t=t===void 0?!1:t;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return e=_.mn("polymer_report_client_url_requested_rate"),!t&&Math.random()<e&&_.JC(new _.o_("urlForEndpoint used on client endpoint",W)),null;var b=_.mn("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)b=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<b){var m={},q;for(q in W)m[q]="1";_.JC(new _.o_("Missing navigation data",
m))}m="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)m=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<b&&_.JC(new _.o_("Should not manually handle search",W)),m="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(m+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<b&&_.JC(new _.o_("Should not manually handle watch",W)),m="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(m+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(m+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(m+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)b=W.browseEndpoint.browseId,(q=W.browseEndpoint.canonicalBaseUrl)?m=q:b&&(m=b.substr(0,2),m=m==="FE"?b==="FEwhat_to_watch"?"/":b==="FEmy_videos"?"/my_videos":"/feed/"+b.substr(2):m==="VL"?"/playlist?list="+b.substr(2):"/channel/"+b),m&&W.browseEndpoint.query&&
(m=sm(m+"/search",{query:W.browseEndpoint.query})),m&&W.browseEndpoint.params&&(m=sm(m,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(m="https://accounts.google.com/ServiceLogin",b={},_.kJ.extend(b,e||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),e=b):W.uploadEndpoint?m="//www.youtube.com/upload":W.liveChatEndpoint?(m=W.liveChatEndpoint,b=_.kJ.clone(m),_.tk(m.continuation)&&(q=Object.keys(m.continuation)[0],
b.continuation=m.continuation[q].continuation),m=sm("/youtubei/v1/live_chat/get_live_chat",b)):W.liveChatReplayEndpoint?(m=_.kJ.clone(W.liveChatReplayEndpoint),m.currentPlayerState&&(_.kJ.extend(m,m.currentPlayerState),delete m.currentPlayerState),m=sm("/youtubei/v1/live_chat/get_live_chat_replay",m)):W.liveChatItemContextMenuEndpoint?m=sm("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?m=sm("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?m=sm("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?m=sm("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?m=W.liveDashboardEndpoint.videoId?sm("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?m="/webcam":W.getPdgBuyFlowCommand&&
(m=sm(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return m||t?sm(m,e||{}):(_.JC(new _.o_("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
TAg=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.xkQ=function(W,e){var t=e+W,b=J_9.get(t);if(b)return b;W=e+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();J_9.set(t,W);return W};
O4R=function(W){var e=_.Tn(W,"action")||_.Tn(W,"command")||_.Tn(W,"endpoint");if(!e)return null;e=_.xkQ(e,"yt");_.l(W,_.hC)&&(e+="-"+_.l(W,_.hC).signal.toLowerCase().replace(/_/g,"-"));return e};
H4Q=function(W){try{var e=Object.keys(W)}catch(m){return[]}for(var t=0;t<e.length;t++){var b=e[t];if(Mgc.test(b)||soS.test(b))return hm2(W[b])}return[]};
hm2=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
PLG=function(W,e){e=e===void 0?!1:e;var t=_.ee().resolve(_.Wi(H3));t||(t=new KuK,_.ee().addProvider({provide:H3,useValue:t}));return t&&W&&!_.kJ.isEmpty(W)?t.getUrl(W,e):""};
Vgs=function(W,e,t){t=t===void 0?"":t;if(e){W.data=e;var b=PLG(e);b?(yE(W,b),TAg(e)||!ND(b)?W.rel="nofollow":W.removeAttribute("rel"),_.l(e,_.KJ)&&_.l(e,_.KJ).target==="TARGET_NEW_WINDOW"?W.target="_blank":t?W.target=t:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.YM=function(W,e){var t=Wf;if(ph())i4G(W,function(){var q=_.$N.apply(0,arguments);M5(t,function(){e.apply(null,_.kP(q))})});
else{var b=_.P3.getInstance(),m=gM(e);tvz(function(){m.value=e});
_.nt(function(){var q={},Q=_.Vo(b,(q[W]=function(){var X=_.$N.apply(0,arguments);M5(t,function(){m.value.apply(m,_.kP(X))})},q));
return function(){var X={};_.ie(b,(X[W]="",X),Q)}})}};
_.zT=function(W,e){return YDZ(W,!1,e)};
_.Um=function(W,e){return YDZ(W,!0,e)};
YDZ=function(W,e,t){return ph()?zmG(W,e,t):UkG(W,e,t)};
UkG=function(W,e,t){return ft(function(){return zmG(W,e,t)})};
zmG=function(W,e,t){var b=dqQ(function(m){b.__value&&b.__value===m||(b.__count=b.__count?b.__count+1:1);b.value=m;var q=function(){var Q=Rb(null);try{return t==null?void 0:t(m)}finally{Rb(Q)}}();
return function(){q==null||q();b.value=null}});
W!==_.LJ&&(b.__expectedTagName=W);b.__optional=e;b.isIdom=!ph();return b};
Lug=function(W){var e=Wf,t=$K;return{getFn:function(){return function(b){e.isDisposed||jC(function(){return ab(function(){return W(b)})},t)!==!0&&b.stopPropagation()}}}};
Em=function(W){if(typeof W.children==="function")return W.children(),null;W=_.R(W.children);for(var e=W.next();!e.done;e=W.next())e=e.value,e();return null};
E5G=function(W){var e;return((e=W.prototype)==null?void 0:e.render)===void 0};
A_G=function(W){W=W.items.map(W.children);return W.length>0&&typeof W[0]==="string"?W.join(""):W};
dkQ=function(W,e,t){t=t===void 0?!1:t;jC(function(){return NA9(W,e,t)})};
NA9=function(W,e,t){var b=null;ob++;t=(t===void 0?0:t)?WMZ:eKc;try{b=t(W,function(){AC(e)}),Z2(!1)}catch(m){throw Z2(!0),m;
}return b===null?W:b};
AC=function(W){if(W!==void 0&&W!==null)if(W instanceof cO)for(var e=Pf;Vk()!=null&&OJ9 in Vk()&&e.contains(Vk());)zQ();else if(Array.isArray(W))for(e=_.R(W),W=e.next();!W.done;W=e.next())AC(W.value);else if(W instanceof QE||"function"==typeof _.iF&&W instanceof _.iF||"function"==typeof _.bV&&W instanceof _.bV)tJ(W.toString());else if(_.QZ(W)){if(Vk()!==W){var t,b;e=(b=(t=$K)==null?void 0:t.name)!=null?b:"unknown";throw Error("fc`"+W.tagName+"`"+e);}zQ()}else if(bJK(W)||W instanceof j5||tIQ(W))for(e=
rC2(W),e=Array.from(e.childNodes),e=_.R(e),W=e.next();!W.done;W=e.next())Pf.appendChild(W.value),zQ();else if(c7(W)&&(W=W.toString()),t=typeof W,t==="boolean"||t==="number"||t==="string")tJ(W);else if(typeof W==="function"){e=Pf;var m=Vk();m&&(m._isSignalTextNode||m._isSafeOrSanitizedHtmlNode)||p3c(e,m,W);zQ()}else if(W.type===A_G)AC(W.type(Object.assign({},W.props,{children:W.children[0]})));else{Db.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||xIZ(W.type,W.props.idomKey);m=Pf;for(e in W.props)if(W.props[e]!==
tNK){var q=W.props[e];t=AO;t.push(e);t.push(q)}e=_.mJ.attributes;e=e===void 0?Nq:e;q=Pf;t=Kh(q);Pav(q,t,e);kTS(m,W.props,!0);if((W.props.skip||W.props.skipchildren)&&Pf.hasChildNodes())Lh();else{if(W.type==="style"&&atQ(W.children)===null){Lh();e=void 0;break a}AC(W.children)}O_G();W.__open&&(W.__open=!1);En9(m,W.props);e=m}return e}if(W.type===_.qD)AC(W.children);else if(!ba2(W)){e=W;try{mA2(e)}catch(Q){W=Q,(q=_.mJ.handleError)==null||q.call.apply(q,[_.mJ].concat(_.kP(_.s0(W,(m=e.type)==null?void 0:
m.TAG_NAME))))}e.__open&&(O_G(),e.__open=!1)}}};
rpQ=function(W,e){var t;E5G(W)?t=new BO(e,W):t=new W(e);t.JSC$8260___type=W;t.__updateContext={nextState:t.state,isForced:!1};return t};
mA2=function(W){var e=W.type,t=e.TAG_NAME;if(e===Em)W.props.children=W.children,e(W.props);else{W.children.length>0&&(W.props.children=W.children);var b;(b=W.props).idomKey||(b.idomKey=e);if(t){var m=xIZ(t,W.props.idomKey);W.__open=!0;var q=m.__instance}q||(q=rpQ(e,W.props),q.props=null,m&&(m.__instance=q,q.el=m));var Q;t=((Q=q.__updateContext)!=null?Q:{nextState:q.state,isForced:!1}).nextState;q.__updateContext=void 0;e.getDerivedStateFromProps&&(t=e.getDerivedStateFromProps(W.props,t));q.props=
W.props;q.state=t;Q=function(){var X=q;Db.beforeRender(X);var I=X.render(X.props);Db.afterRender(X,I);I?(X.props.idomKey&&(I.props.idomKey=X.props.idomKey),X=I):X=void 0;if(I=X)if(I.__open=W.__open,X=AC(I),W.__open=I.__open,!e.TAG_NAME)if(X)e.TAG_NAME=X.tagName.toLowerCase(),X.__instance=q,q.el=X;else{var u;if((u=q.hooks)==null?0:u.length){var c;(c=_.mJ.handleError)==null||c.call.apply(c,[_.mJ].concat(_.kP(_.s0(Error("kd")))))}}q.didPatch();Db.didPatch(q)};
(t=q.functionComponent)?WxD(t,Q,q.props.debugInstance):Q()}};
ba2=function(W){var e=W.type;if(!E5G(e)||e===Em||e.componentType===kK)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var t,b=(t=W.props.idomKey)!=null?t:W.type,m;if(Vk()&&((m=Vk()[aA])==null?void 0:m.key)===b){var q=Vk(),Q=q[aA];if(!Q)throw Error("ec`"+q.tagName);var X;(X=Q.updateSignalsFromIdomProps)==null||X.call(Q,W.props);qZQ(Q);return!0}if(RKL.has(e.name))throw X=e.name,e=(Q=(q=$K)==null?void 0:q.name)!=null?Q:"unknown",Error("dc`"+X+"`"+e);nML(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(X=WxD(W.type,function(){return BQL(W.type,W.props)},W.props.debugInstance))&&Q5G(X);
return!0};
FML=function(W){for(var e=0;e<uV(W).length;e++)zQ()};
qZQ=function(W){var e=XeK();if(e)FML(e);else for(var t=0;t<W.numNodes;t++)(e=XeK())?FML(e):zQ()};
XeK=function(){var W;return(W=Vk()[aA])==null?void 0:W.sourceDynamicRange};
Q5G=function(W){W=NTQ(W);W=Array.isArray(W)?W:[W];W=_.R(W);for(var e=W.next();!e.done;e=W.next())Pf.insertBefore(e.value,Vk()),zQ()};
ITQ=function(W){var e=ltS(),t=ft(function(){return{value:typeof W==="function"?W():W}});
return[t.value,function(b){if(Sm!==null){var m;(m=_.mJ.handleError)==null||m.call.apply(m,[_.mJ].concat(_.kP(_.s0(Error("ld")))))}t.value=typeof b==="function"?b(t.value):b;e.__updateContext={nextState:e.state,isForced:!0};b=_.eC(e.effectContext);m=RA(!1);try{if(e.el){var q,Q={},X=(Q.props=e.props,Q.type=e.JSC$8260___type,Q.children=(q=e.props.children)!=null?q:[],Q[rM]=!0,Q);try{dkQ(e.el,X,!0)}catch(c){var I,u;(u=_.mJ.handleError)==null||u.call.apply(u,[_.mJ].concat(_.kP(_.s0(c,(I=e.JSC$8260___type)==
null?void 0:I.TAG_NAME))))}}}finally{RA(m),_.eC(b)}}]};
dQ=function(W,e){var t=Wf,b=function(m){M5(t,function(){e(m)})};
window.addEventListener(W,b,void 0);_.fh(function(){window.removeEventListener(W,b,void 0)})};
_.ev=function(W,e){var t=Wf;_.nt(function(){var b,m=(b=e.observer)!=null?b:_.ee().resolve(WT);if(b=W.value){var q=aT9(b),Q=[];e.showOption&&Q.push(m.observe(b,function(){M5(t,function(){e.visibilityCallback(!0)})},e.showOption));
e.hideOption&&Q.push(m.observe(b,function(){M5(t,function(){e.visibilityCallback(!1)})},e.hideOption));
e.prescanOption&&e.prescanCallback&&Q.push(m.observe(b,function(){M5(t,function(){e.prescanCallback()})},e.prescanOption));
var X;q.visibilityMonitorKeys=((X=q.visibilityMonitorKeys)!=null?X:[]).concat(Q)}})};
aT9=function(W){var e;return(e=W.polymerController)!=null?e:W};
_.tA=function(W){W.componentType=kK};
vDg=function(W,e){var t=weG;return _.w(_.qD,null,d$(_.mJ.enableLazyTsx,function(){return _.w(u62,{id:t,value:W,children:e})},function(){var b=cpQ(t,W);
bp(b);b=_.eC(b);try{return e()}finally{_.eC(b)}}))};
u62=function(W){var e=W.children;W=cpQ(W.id,W.value);bp(W);W=_.eC(W);try{return _.w(_.qD,null,vO(e()))}finally{_.eC(W)}};
cpQ=function(W,e){return Object.assign(Object.create(G2g),{id:W,contextValue:e})};
DAg=function(W){var e,t=Wf;_.JO(function(){var b=_.eC(t),m=RA(!e);try{if(e)dkQ(e,W.children(),!0);else if(e=vO(W.children()),!(e instanceof Element))throw Error("md");}finally{RA(m),_.eC(b)}});
return e};
_.SZL=function(W,e){var t;e=gP(function(){var b=RA(!0);try{t=uV(W())}finally{RA(b)}},e===void 0?!1:e);
return[t,e]};
oDS=function(W){W=W.buf.charCodeAt(W.pos++);return BdQ[W]};
bU=function(W){var e=0,t=0;do{var b=oDS(W);e|=(b&31)<<t;t+=5}while(b&32);return e<0?e+4294967296:e};
$AQ=function(W,e,t){lTK(W,e);W[e][ZaG].unshift(t)};
lTK=function(W,e){if(!W[e]||!W[e][ZaG]){var t=W[e],b=t?[t]:[];W[e]=function(){for(var m=_.R(b),q=m.next();!q.done;q=m.next())q.value.apply(this,arguments)};
W[e][ZaG]=b}};
k2L=function(W){if(!W)return[];var e=[];W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,Array.isArray(t)?e.push.apply(e,_.kP(k2L(t))):e.push(t);return e};
_.rs=function(W,e){if(W&&peG.test(W)||W==="//")return W;if(ypS===void 0){ypS=!1;try{var t=new URL("b","http://a");t.pathname="c%20d";ypS=t.href==="http://a/c%20d"}catch(b){}}e||(e=document.baseURI||window.location.href);if(ypS)try{return(new URL(W,e)).href}catch(b){return W}mY||(mY=document.implementation.createHTMLDocument("temp"),mY.base=mY.createElement("base"),mY.head.appendChild(mY.base),mY.anchor=mY.createElement("a"),mY.body.appendChild(mY.anchor));mY.base.href=e;mY.anchor.href=W;return mY.anchor.href||
W};
CtK=function(W,e){return W.replace(j5s,function(t,b,m,q){return b+"'"+_.rs(m.replace(/["']/g,""),e)+"'"+q})};
nDK=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
TdK=function(){fTQ=!1;for(var W=qn.length,e=0;e<W;e++){var t=qn[e];if(t)try{t()}catch(b){setTimeout(function(){throw b;})}}qn.splice(0,W);
gDv+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
xAz=function(W){JpG.push(W)};
RQ=function(W){return OaQ[W]||(OaQ[W]=W.indexOf("-")<0?W:W.replace(MNs,function(e){return e[1].toUpperCase()}))};
QH=function(W){return OaQ[W]||(OaQ[W]=W.replace(s5G,"-$1").toLowerCase())};
hKG=function(W,e){var t=e.parentInfo&&hKG(W,e.parentInfo);if(t)for(W=t.firstChild,t=0;W;W=W.nextSibling){if(e.parentIndex===t++)return W}else return W};
Hav=function(W,e){W=W._methodHost||W;return function(t){if(W[e])W[e](t,t.detail);else console.warn("listener method `"+e+"` not defined")}};
Fw=function(W){return W.indexOf(".")>=0};
Xw=function(W){var e=W.indexOf(".");return e===-1?W:W.slice(0,e)};
KML=function(W,e){return W.indexOf(e+".")===0};
IQ=function(W,e){return e.indexOf(W+".")===0};
aQ=function(W,e,t){return e+t.slice(W.length)};
Pt2=function(W,e){return W===e||KML(W,e)||IQ(W,e)};
ws=function(W){if(Array.isArray(W)){for(var e=[],t=0;t<W.length;t++)for(var b=W[t].toString().split("."),m=0;m<b.length;m++)e.push(b[m]);return e.join(".")}return W};
VNZ=function(W){return Array.isArray(W)?ws(W).split("."):W.toString().split(".")};
uU=function(W,e,t){e=VNZ(e);for(var b=0;b<e.length;b++){if(!W)return;W=W[e[b]]}t&&(t.path=e.join("."));return W};
iaG=function(W,e,t){var b=VNZ(e),m=b[b.length-1];if(b.length>1){for(e=0;e<b.length-1;e++)if(W=W[b[e]],!W)return;W[m]=t}else W[e]=t;return b.join(".")};
YZg=function(W,e,t){var b=W[e];if(!b)b=W[e]={};else if(!W.hasOwnProperty(e)&&(b=W[e]=Object.create(W[e]),t))for(var m in b)for(W=b[m],e=b[m]=Array(W.length),t=0;t<W.length;t++)e[t]=W[t];return b};
vT=function(W,e,t,b,m,q){if(e){var Q=!1,X=cT++,I;for(I in t){var u=m?Xw(I):I;if(u=e[u])for(var c=0,v=u.length,D=void 0;c<v&&(D=u[c]);c++)D.info&&D.info.lastRun===X||m&&!zKS(I,D.trigger)||(D.info&&(D.info.lastRun=X),D.fn(W,I,t,b,D.info,m,q),Q=!0)}return Q}return!1};
zKS=function(W,e){if(e){var t=e.name;return t==W||!(!e.structured||!KML(t,W))||!(!e.wildcard||!IQ(t,W))}return!0};
UAD=function(W,e,t,b,m){e=typeof m.method==="string"?W[m.method]:m.method;t=m.property;e?e.call(W,W.__data[t],b[t]):m.dynamicFn||console.warn("observer method `"+m.method+"` not defined")};
LML=function(W,e,t,b){t={value:t,queueProperty:!0};b&&(t.path=b);(0,_.Gk)(W).dispatchEvent(new CustomEvent(e,{detail:t}))};
EDK=function(W,e,t,b,m,q){q=(b=(q?Xw(e):e)!=e?e:null)?uU(W,b):W.__data[e];b&&q===void 0&&(q=t[e]);LML(W,m.eventName,q,b)};
ApK=function(W,e,t,b,m){t=W.__data[e];Do&&(t=Do(t,m.attrName,"attribute",W));W._propertyToAttribute(e,m.attrName,t)};
dAD=function(W){var e=W.constructor.__orderedComputedDeps;if(!e){e=new Map;for(var t=W.__computeEffects,b=Nd2(W),m=b.counts,q=b.ready,Q=b.total;b=q.shift();)e.set(b,e.size),(b=t[b])&&b.forEach(function(X){X=X.info.methodInfo;--Q;--m[X]===0&&q.push(X)});
Q!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=e}return e};
Nd2=function(W){var e=W.__computeInfo,t={};W=W.__computeEffects;var b=[],m=0,q;for(q in e){var Q=e[q];m+=t[q]=Q.args.filter(function(I){return!I.literal}).length+(Q.dynamicFn?1:0)}for(var X in W)e[X]||b.push(X);
return{counts:t,ready:b,total:m}};
exv=function(W,e,t,b,m){e=Wg9(W,e,t,b,m);if(e===Sv)return!1;m=m.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[m])return W._setPendingProperty(m,e,!0);W[m]=e;return!1};
mV2=function(W,e,t,b,m,q,Q){t.bindings=t.bindings||[];b={kind:b,target:m,parts:q,literal:Q,isCompound:q.length!==1};t.bindings.push(b);b.target&&b.kind!="attribute"&&b.kind!="text"&&!b.isCompound&&b.parts[0].mode==="{"&&(t=b.parts[0],q=t.negate,b.listenerEvent=t.event||QH(m)+"-changed",b.listenerNegate=q);m=e.nodeInfoList.length;for(t=0;t<b.parts.length;t++){var X=b.parts[t];X.compoundIndex=t;q=W;Q=e;var I=b,u=X,c=m;if(!u.literal)if(I.kind==="attribute"&&I.target[0]==="-")console.warn("Cannot set attribute "+
I.target+' because "-" is not a valid attribute starting character');else for(X=u.dependencies,I={index:c,binding:I,part:u,evaluator:q},u=0;u<X.length;u++)c=X[u],typeof c=="string"&&(c=tXG(c),c.wildcard=!0),q._addTemplatePropertyEffect(Q,c.rootProperty,{fn:bUG,info:I,trigger:c})}};
bUG=function(W,e,t,b,m,q,Q){Q=Q[m.index];var X=m.binding,I=m.part;q&&I.source&&e.length>I.source.length&&X.kind=="property"&&!X.isCompound&&Q.__isPropertyEffectsClient&&Q.__dataHasAccessor&&Q.__dataHasAccessor[X.target]?(t=t[e],e=aQ(I.source,X.target,e),Q._setPendingPropertyOrPath(e,t,!1,!0)&&W._enqueueClient(Q)):(e=m.evaluator._evaluateBinding(W,I,e,t,b,q),e!==Sv&&(X.isCompound&&(t=Q.__dataCompoundStorage[X.target],t[I.compoundIndex]=e,e=t.join("")),X.kind==="attribute"||X.target!=="textContent"&&
(X.target!=="value"||Q.localName!=="input"&&Q.localName!=="textarea")||(e=e==void 0?"":e),I=e,Do&&(I=Do(I,X.target,X.kind,Q)),X.kind=="attribute"?W._valueToNodeAttribute(Q,I,X.target):(X=X.target,Q.__isPropertyEffectsClient&&Q.__dataHasAccessor&&Q.__dataHasAccessor[X]?Q.__readOnly&&Q.__readOnly[X]||Q._setPendingProperty(X,I)&&W._enqueueClient(Q):W._setUnmanagedPropertyToNode(Q,X,I))))};
rvD=function(W,e,t){if(t.listenerEvent){var b=t.parts[0];W.addEventListener(t.listenerEvent,function(m){var q=t.target,Q=b.source,X=b.negate,I=m.detail,u=I&&I.path;u?(Q=aQ(q,Q,u),m=I&&I.value):m=m.currentTarget[q];e.__readOnly&&e.__readOnly[Q]||!e._setPendingPropertyOrPath(Q,X?!m:m,!0,!!u)||I&&I.queueProperty||e._invalidateProperties()})}};
qQK=function(W,e,t,b,m,q){q=e.static||q&&(typeof q!=="object"||q[e.methodName]);m={methodName:e.methodName,args:e.args,methodInfo:m,dynamicFn:q};for(var Q=0,X=void 0;Q<e.args.length&&(X=e.args[Q]);Q++)X.literal||W._addPropertyEffect(X.rootProperty,t,{fn:b,info:m,trigger:X});q&&W._addPropertyEffect(e.methodName,t,{fn:b,info:m});return m};
Wg9=function(W,e,t,b,m){b=W._methodHost||W;var q=b[m.methodName];if(q)return W=W._marshalArgs(m.args,e,t),W===Sv?Sv:q.apply(b,W);m.dynamicFn||console.warn("method `"+m.methodName+"` not defined")};
RxK=function(W){for(var e="",t=0;t<W.length;t++)e+=W[t].literal||"";return e};
XSD=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var e={methodName:W[1],static:!0,args:Qvz};return W[2].trim()?FgS(W[2].replace(/\\,/g,"&comma;").split(","),e):e}return null};
FgS=function(W,e){e.args=W.map(function(t){t=tXG(t);t.literal||(e.static=!1);return t},this);
return e};
tXG=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var e={name:W,value:"",literal:!1},t=W[0];t==="-"&&(t=W[1]);t>="0"&&t<="9"&&(t="#");switch(t){case "'":case '"':e.value=W.slice(1,-1);e.literal=!0;break;case "#":e.value=Number(W),e.literal=!0}e.literal||(e.rootProperty=Xw(W),e.structured=Fw(W),e.structured&&(e.wildcard=W.slice(-2)==".*",e.wildcard&&(e.name=W.slice(0,-2))));return e};
I_L=function(W,e,t){W=uU(W,t);W===void 0&&(W=e[t]);return W};
a_K=function(W,e,t,b){b={indexSplices:b};BT&&!W._overrideLegacyUndefined&&(e.splices=b);W.notifyPath(t+".splices",b);W.notifyPath(t+".length",e.length);BT&&!W._overrideLegacyUndefined&&(b.indexSplices=[])};
oQ=function(W,e,t,b,m,q){a_K(W,e,t,[{index:b,addedCount:m,removed:q,object:e,type:"splice"}])};
wSG=function(W){W=CtK((W.body?W.body:W).textContent,W.baseURI);var e=document.createElement("style");e.textContent=W;return e};
cvD=function(W){W=W.trim().split(/\s+/);for(var e=[],t=0;t<W.length;t++)e.push.apply(e,_.kP(uXS(W[t])));return e};
uXS=function(W){var e=lU.import(W);if(!e)return console.warn("Could not find style data in module named",W),[];if(e._styles===void 0){W=[];W.push.apply(W,_.kP(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e)));var t=e.querySelector("template");t&&W.push.apply(W,_.kP(vbz(t,e.assetpath)));e._styles=W}return e._styles};
vbz=function(W,e){if(!W._styles){for(var t=[],b=W.content.querySelectorAll("style"),m=0;m<b.length;m++){var q=b[m],Q=q.getAttribute("include");Q&&t.push.apply(t,_.kP(cvD(Q).filter(function(X,I,u){return u.indexOf(X)===I})));
e&&(q.textContent=CtK(q.textContent,e));t.push(q)}W._styles=t}return W._styles};
GzD=function(W){return(W=lU.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var e=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var t=0;t<W.length;t++){var b=W[t];if(b.import){var m=b.import;if((b=b.hasAttribute("shady-unscoped"))&&!m._unscopedStyle){var q=wSG(m);q.setAttribute("shady-unscoped","");m._unscopedStyle=q}else m._style||(m._style=wSG(m));e.push(b?m._unscopedStyle:m._style)}}return e};
SQc=function(W){W=W.trim().split(/\s+/);for(var e="",t=0;t<W.length;t++)e+=DVs(W[t]);return e};
DVs=function(W){var e=lU.import(W);if(e&&e._cssText===void 0){var t=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e),b=e.querySelector("template");b&&(t+=BNS(b,e.assetpath));e._cssText=t||null}e||console.warn("Could not find style data in module named",W);return e&&e._cssText||""};
BNS=function(W,e){var t="";W=vbz(W,e);for(e=0;e<W.length;e++){var b=W[e];b.parentNode&&b.parentNode.removeChild(b);t+=b.textContent}return t};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var e="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var t=0;t<W.length;t++)e+=W[t].textContent;return e};
Zo=function(W,e){return{index:W,removed:[],addedCount:e}};
l_Z=function(W,e,t,b){var m=0,q=0,Q=0,X=0,I=Math.min(e-m,b-q);if(m==0&&q==0)a:{for(Q=0;Q<I;Q++)if(W[Q]!==t[Q])break a;Q=I}if(e==W.length&&b==t.length){X=W.length;for(var u=t.length,c=0;c<I-Q&&obv(W[--X],t[--u]);)c++;X=c}m+=Q;q+=Q;e-=X;b-=X;if(e-m==0&&b-q==0)return[];if(m==e){for(e=Zo(m,0);q<b;)e.removed.push(t[q++]);return[e]}if(q==b)return[Zo(m,e-m)];I=m;Q=q;b=b-Q+1;X=e-I+1;e=Array(b);for(u=0;u<b;u++)e[u]=Array(X),e[u][0]=u;for(u=0;u<X;u++)e[0][u]=u;for(u=1;u<b;u++)for(c=1;c<X;c++)if(W[I+c-1]===
t[Q+u-1])e[u][c]=e[u-1][c-1];else{var v=e[u-1][c]+1,D=e[u][c-1]+1;e[u][c]=v<D?v:D}I=e.length-1;Q=e[0].length-1;b=e[I][Q];for(W=[];I>0||Q>0;)I==0?(W.push(2),Q--):Q==0?(W.push(3),I--):(X=e[I-1][Q-1],u=e[I-1][Q],c=e[I][Q-1],v=u<c?u<X?u:X:c<X?c:X,v==X?(X==b?W.push(0):(W.push(1),b=X),I--,Q--):v==u?(W.push(3),I--,b=u):(W.push(2),Q--,b=c));W.reverse();e=void 0;I=[];for(Q=0;Q<W.length;Q++)switch(W[Q]){case 0:e&&(I.push(e),e=void 0);m++;q++;break;case 1:e||(e=Zo(m,0));e.addedCount++;m++;e.removed.push(t[q]);
q++;break;case 2:e||(e=Zo(m,0));e.addedCount++;m++;break;case 3:e||(e=Zo(m,0)),e.removed.push(t[q]),q++}e&&I.push(e);return I};
ZUG=function(W,e){return l_Z(W,W.length,e,e.length)};
obv=function(W,e){return W===e};
kzz=function(W){if(W instanceof $Vc)return W.value;throw Error("Dd`"+W);};
pS2=function(W,e){for(var t in e)t===null?W.style.removeProperty(t):W.style.setProperty(t,e[t])};
jvc=function(W,e){return(W=window.getComputedStyle(W).getPropertyValue(e))?W.trim():""};
gbG=function(W){requestAnimationFrame(function(){CJz?CJz(W):(nbv||(nbv=new Promise(function(e){f_v=e}),document.readyState==="complete"?f_v():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&f_v()})),nbv.then(function(){W&&W()}))})};
xVz=function(W){TNR=W&&W.shimcssproperties?!1:JvZ||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
HUz=function(W){if(!(OUD.indexOf(W)>-1)&&W!=="touchend"&&MX2&&sv9&&hxL)return{passive:!0}};
iUQ=function(W){for(var e=Kgv?["click"]:OUD,t=0,b;t<e.length;t++)b=e[t],W?(PJc.length=0,document.addEventListener(b,VX9,!0)):document.removeEventListener(b,VX9,!0)};
$S=function(W){var e=W.type;return OUD.indexOf(e)>-1?e==="mousemove"?(e=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!YQK&&(e=zx2[W.which]||0),!!(e&1)):(W.button===void 0?0:W.button)===0:!1};
UVR=function(W){if(W.type==="click"){if(W.detail===0)return!0;var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;e=e.getBoundingClientRect();var t=W.pageX;W=W.pageY;return!(t>=e.left&&t<=e.right&&W>=e.top&&W<=e.bottom)}return!1};
LgL=function(W,e,t){W.movefn=e;W.upfn=t;document.addEventListener("mousemove",e);document.addEventListener("mouseup",t)};
kS=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
Eb9=function(W,e){for(var t=document.elementFromPoint(W,e),b=t;b&&b.shadowRoot&&!window.ShadyDOM;){var m=b;b=b.shadowRoot.elementFromPoint(W,e);if(m===b)break;b&&(t=b)}return t};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var e=AvK(W);return e.length>0?e[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var e=W.type,t=W.currentTarget.__polymerGestures;if(t&&(t=t[e])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},e.slice(0,5)==="touch")){var b=W.changedTouches[0];e==="touchstart"&&W.touches.length===1&&(NNL=b.identifier);if(NNL!==b.identifier)return;MX2||(e==="touchstart"||e==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}b=
W.__polymerGesturesHandled;if(!b.skip){for(var m=0,q;m<p1.length;m++)q=p1[m],t[q.name]&&!b[q.name]&&q.flow&&q.flow.start.indexOf(W.type)>-1&&q.reset&&q.reset();for(m=0;m<p1.length;m++)q=p1[m],t[q.name]&&!b[q.name]&&(b[q.name]=!0,q[e](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var e=W.changedTouches[0],t=W.type;if(t==="touchstart")dV2=e.clientX,WF2=e.clientY,elK=!1;else if(t==="touchmove"&&!elK){elK=!0;t="auto";for(var b=AvK(W),m=0,q;m<b.length;m++)if(q=b[m],q.__polymerGesturesTouchAction){t=q.__polymerGesturesTouchAction;break}b=!1;m=Math.abs(dV2-e.clientX);e=Math.abs(WF2-e.clientY);W.cancelable&&(t==="none"?b=!0:t==="pan-x"?b=e>m:t==="pan-y"&&(b=m>e));b?W.preventDefault():
yH("track")}};
C1=function(W,e,t){return jv[e]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,e,t),!0):!1};
n1=function(W,e,t){return jv[e]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,e,t),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,e,t){var b=jv[e],m=b.deps,q=b.name,Q=W.__polymerGestures;Q||(W.__polymerGestures=Q={});for(var X=0,I,u;X<m.length;X++)I=m[X],Kgv&&OUD.indexOf(I)>-1&&I!=="click"||((u=Q[I])||(Q[I]=u={_count:0}),u._count===0&&W.addEventListener(I,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,HUz(I)),u[q]=(u[q]||0)+1,u._count=(u._count||0)+1);W.addEventListener(e,t);b.touchAction&&_.f1(W,b.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,e,t){var b=jv[e],m=b.deps;b=b.name;var q=W.__polymerGestures;if(q)for(var Q=0,X,I;Q<m.length;Q++)X=m[Q],(I=q[X])&&I[b]&&(I[b]=(I[b]||1)-1,I._count=(I._count||1)-1,I._count===0&&W.removeEventListener(X,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,HUz(X)));W.removeEventListener(e,t)};
tS9=function(W){p1.push(W);for(var e=0;e<W.emits.length;e++)jv[W.emits[e]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var e=0,t;e<p1.length;e++){t=p1[e];for(var b=0,m;b<t.emits.length;b++)if(m=t.emits[b],m===W)return t}return null};
_.f1=function(W,e){MX2&&W instanceof HTMLElement&&gs.run(function(){W.style.touchAction=e});
W.__polymerGesturesTouchAction=e};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,e,t){e=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});e.detail=t;(0,_.Gk)(W).dispatchEvent(e);e.defaultPrevented&&(W=t.preventer||t.sourceEvent)&&W.preventDefault&&W.preventDefault()};
yH=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
Tk=function(W,e,t,b){e&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,W,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:b,prevent:function(m){return yH(m)}})};
bvK=function(W,e,t){if(W.prevent)return!1;if(W.started)return!0;t=Math.abs(W.y-t);return Math.abs(W.x-e)>=5||t>=5};
mZS=function(W,e,t){if(e){var b=W.moves[W.moves.length-2],m=W.moves[W.moves.length-1],q=m.x-W.x,Q=m.y-W.y,X=0;if(b){var I=m.x-b.x;X=m.y-b.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,"track",{state:W.state,x:t.clientX,y:t.clientY,dx:q,dy:Q,ddx:I,ddy:X,sourceEvent:t,hover:function(){return Eb9(t.clientX,t.clientY)}})}};
qRG=function(W,e,t){var b=Math.abs(e.clientX-W.x),m=Math.abs(e.clientY-W.y),q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t||e);!q||r3Z[q.localName]&&q.hasAttribute("disabled")||!(isNaN(b)||isNaN(m)||b<=25&&m<=25||UVR(e))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t})};
Rlz=function(W,e,t,b,m){var q;m&&(q=typeof t==="object"&&t!==null)&&(b=W.__dataTemp[e]);b=b!==t&&(b===b||t===t);q&&b&&(W.__dataTemp[e]=t);return b};
FFs=function(){if(JA&&!xS){if(!Qws){Qws=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
IHz=function(){return XL2};
aHG=function(W,e){XL2=W;Object.setPrototypeOf(W,e.prototype);new e;XL2=null};
wLG=function(W,e){for(var t=0;t<e.length;t++){var b=e[t];if(!!W!=!!b.__hideTemplateChildren__)if(b.nodeType===Node.TEXT_NODE)W?(b.__polymerTextContent__=b.textContent,b.textContent=""):b.textContent=b.__polymerTextContent__;else if(b.localName==="slot")if(W)b.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Gk)((0,_.Gk)(b).parentNode).replaceChild(b.__polymerReplaced__,b);else{var m=b.__polymerReplaced__;m&&(0,_.Gk)((0,_.Gk)(m).parentNode).replaceChild(b,m)}else b.style&&(W?(b.__polymerDisplay__=
b.style.display,b.style.display="none"):b.style.display=b.__polymerDisplay__);b.__hideTemplateChildren__=W;b._showHideChildren&&b._showHideChildren(W)}};
uZS=function(W){return(W=W.__dataHost)&&W._methodHost||W};
G_G=function(W,e,t){var b=t.mutableData?c3D:Oc;Mn.mixin&&(b=Mn.mixin(b));var m=function(){return b.apply(this,arguments)||this};
_.Z(m,b);m.prototype.__templatizeOptions=t;m.prototype._bindTemplate(W);vL2(m,W,e,t);return m};
lHD=function(W,e,t,b){var m=t.forwardHostProp;if(m&&e.hasHostProps){var q=W.localName=="template",Q=e.templatizeTemplateClass;if(!Q){if(q){var X=t.mutableData?DZR:SRQ;Q=function(){return X.apply(this,arguments)||this};
_.Z(Q,X);Q=e.templatizeTemplateClass=Q}else{var I=W.constructor;Q=function(){return I.apply(this,arguments)||this};
_.Z(Q,I);Q=e.templatizeTemplateClass=Q}var u=e.hostProps,c;for(c in u)Q.prototype._addPropertyEffect("_host_"+c,Q.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:BkL(m)}),Q.prototype._createNotifyingProperty("_host_"+c);sc&&b&&oLR(e,t,b)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(q)aHG(W,Q),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,Q.prototype);e=e.hostProps;for(var v in e)v="_host_"+v,v in W&&(e=W[v],delete W[v],W.__data[v]=
e)}}};
BkL=function(W){return function(e,t,b){W.call(e.__templatizeOwner,t.substring(6),b[t])}};
vL2=function(W,e,t,b){var m=t.hostProps||{},q;for(q in b.instanceProps){delete m[q];var Q=b.notifyInstanceProp;Q&&W.prototype._addPropertyEffect(q,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ZvD(Q)})}if(b.forwardHostProp&&e.__dataHost)for(var X in m)t.hasHostProps||(t.hasHostProps=!0),W.prototype._addPropertyEffect(X,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:$Zc()})};
ZvD=function(W){return function(e,t,b){W.call(e.__templatizeOwner,e,t,b[t])}};
$Zc=function(){return function(W,e,t){W.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}};
Mn=function(W,e,t){if(hA&&!uZS(W))throw Error("Jd");t=t||{};if(W.__templatizeOwner)throw Error("Kd");W.__templatizeOwner=e;var b=(e?e.constructor:Oc)._parseTemplate(W),m=b.templatizeInstanceClass;m||(m=G_G(W,b,t),b.templatizeInstanceClass=m);var q=uZS(W);lHD(W,b,t,q);t=function(){return m.apply(this,arguments)||this};
_.Z(t,m);t.prototype._methodHost=q;t.prototype.__dataHost=W;t.prototype.__templatizeOwner=e;t.prototype.__hostProps=b.hostProps;return t};
oLR=function(W,e,t){t=t.constructor._properties;W=W.propertyEffects;e=e.instanceProps;for(var b in W)if(!(t[b]||e&&e[b]))for(var m=W[b],q=0;q<m.length;q++){var Q=m[q].info.part;if(!Q.signature||!Q.signature.static){console.warn("Property '"+b+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
k_z=function(W,e){for(var t;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=W)e=t.__dataHost;else return t;else e=(0,_.Gk)(e).parentNode;return null};
HT=function(W){return W.localName==="slot"};
pLK=function(){for(var W=K1.prototype,e="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),t={},b=0;b<e.length;t={method$jscomp$30:void 0},b++)t.method$jscomp$30=e[b],W[t.method$jscomp$30]=function(m){return function(){return this.node[m.method$jscomp$30].apply(this.node,arguments)}}(t)};
y3G=function(W,e){for(var t={},b=0;b<e.length;t={name$jscomp$381:void 0},b++)t.name$jscomp$381=e[b],Object.defineProperty(W,t.name$jscomp$381,{get:function(m){return function(){return this.node[m.name$jscomp$381]}}(t),
configurable:!0})};
jwK=function(){for(var W=K1.prototype,e=["textContent","innerHTML","className"],t={},b=0;b<e.length;t={name$jscomp$382:void 0},b++)t.name$jscomp$382=e[b],Object.defineProperty(W,t.name$jscomp$382,{get:function(m){return function(){return this.node[m.name$jscomp$382]}}(t),
set:function(m){return function(q){this.node[m.name$jscomp$382]=q}}(t),
configurable:!0})};
C0v=function(){PT=document.documentElement.getAttribute("dir");PT=document.documentElement.getAttribute("dir");for(var W=0;W<VH.length;W++){var e=VH[W];e.__autoDirOptOut||e.setAttribute("dir",PT)}};
TkL=function(){YS=!0;requestAnimationFrame(function(){YS=!1;nLz(fHS);setTimeout(function(){for(var W=0,e=zk.length;W<e;W++)gLZ(zk.shift())})})};
nLz=function(W){for(;W.length;)gLZ(W.shift())};
gLZ=function(W){var e=W[0],t=W[1];W=W[2];try{t.apply(e,W)}catch(b){setTimeout(function(){throw b;})}};
_.J3z=function(W,e,t){YS||TkL();fHS.push([W,e,t])};
_.Uc=function(W,e,t){YS||TkL();zk.push([W,e,t])};
MSc=function(W,e){e=e===void 0?!1:e;if(!xZK||!OvK||!xZK.handlesDynamicScoping)return null;var t=OvK.ScopingShim;if(!t)return null;var b=t.scopeForNode(W),m=(0,_.Gk)(W).getRootNode(),q=function(Q){if((0,_.Gk)(Q).getRootNode()===m){var X=Array.from(xZK.nativeMethods.querySelectorAll.call(Q,"*"));X.push(Q);for(Q=0;Q<X.length;Q++){var I=X[Q];if((0,_.Gk)(I).getRootNode()===m){var u=t.currentScopeForNode(I);u!==b&&(u!==""&&t.unscopeNode(I,u),t.scopeNode(I,b))}}}};
q(W);return e?(e=new MutationObserver(function(Q){for(var X=0;X<Q.length;X++)for(var I=Q[X],u=0;u<I.addedNodes.length;u++){var c=I.addedNodes[u];c.nodeType===Node.ELEMENT_NODE&&q(c)}}),e.observe(W,{childList:!0,
subtree:!0}),e):null};
sws=function(){document.body.removeAttribute("unresolved")};
VSD=function(W){var e=W=W.replace(hlz,"").replace(Hvg,""),t=new KFG;t.start=0;t.end=e.length;for(var b=t,m=0,q=e.length;m<q;m++)if(e[m]==="{"){b.rules||(b.rules=[]);var Q=b,X=Q.rules[Q.rules.length-1]||null;b=new KFG;b.start=m+1;b.parent=Q;b.previous=X;Q.rules.push(b)}else e[m]==="}"&&(b.end=m+1,b=b.parent||t);return P0Q(t,W)};
P0Q=function(W,e){var t=e.substring(W.start,W.end-1);W.parsedCssText=W.cssText=t.trim();W.parent&&(t=e.substring(W.previous?W.previous.end:W.parent.start,W.start-1),t=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t),t=t.replace(ivg," "),t=t.substring(t.lastIndexOf(";")+1),t=W.parsedSelector=W.selector=t.trim(),W.atRule=t.indexOf("@")===0,W.atRule?t.indexOf("@media")===0?W.type=4:t.match(YRL)&&(W.type=7,W.keyframesName=W.selector.split(ivg).pop()):t.indexOf("--")===
0?W.type=1E3:W.type=1);if(t=W.rules)for(var b=0,m=t.length,q=void 0;b<m&&(q=t[b]);b++)P0Q(q,e);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e})};
zlG=function(W,e,t){t=t===void 0?"":t;var b="";if(W.cssText||W.rules){var m=W.rules;if(m&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(m))for(var q=0,Q=m.length,X=void 0;q<Q&&(X=m[q]);q++)b=zlG(X,e,b);else e?e=W.cssText:(e=W.cssText,e=e.replace(UZR,"").replace(LFs,""),e=e.replace(ELD,"").replace(A3K,"")),(b=e.trim())&&(b="  "+b+"\n")}b&&(W.selector&&(t+=W.selector+" {\n"),t+=b,W.selector&&(t+="}\n\n"));return t};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
dZg=function(W){if(W=Nk2[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
WzS=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
tjG=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,eHD.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
mwG=function(W){if(!W)return"";typeof W==="string"&&(W=VSD(W));return zlG(W,bn9)};
riS=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=VSD(W.textContent));return W.__cssRules||null};
RHz=function(W,e,t,b){if(W){var m=!1,q=W.type;if(b&&q===4){var Q=W.selector.match(qlD);Q&&(window.matchMedia(Q[1]).matches||(m=!0))}q===1?e(W):t&&q===7?t(W):q===1E3&&(m=!0);if((W=W.rules)&&!m)for(m=0,q=W.length,Q=void 0;m<q&&(Q=W[m]);m++)RHz(Q,e,t,b)}};
Q4G=function(W,e){var t=W.indexOf("var(");if(t===-1)return e(W,"","","");a:{var b=0;var m=t+3;for(var q=W.length;m<q;m++)if(W[m]==="(")b++;else if(W[m]===")"&&--b===0)break a;m=-1}b=W.substring(t+4,m);t=W.substring(0,t);W=Q4G(W.substring(m+1),e);q=b.indexOf(",");if(q===-1)return e(t,b.trim(),"",W);m=b.substring(0,q).trim();b=b.substring(q+1).trim();return e(t,m,b,W)};
FzG=function(W){if(L1!==void 0)return L1;if(W.__cssBuild===void 0){var e=W.getAttribute("css-build");if(e)W.__cssBuild=e;else{a:{e=W.localName==="template"?W.content.firstChild:W.firstChild;if(e instanceof Comment&&(e=e.textContent.trim().split(":"),e[0]==="css-build")){e=e[1];break a}e=""}if(e!==""){var t=W.localName==="template"?W.content.firstChild:W.firstChild;t.parentNode.removeChild(t)}W.__cssBuild=e}}return W.__cssBuild||""};
InR=function(W,e,t,b){for(var m=e._noAccessors,q=Object.getOwnPropertyNames(e),Q=0;Q<q.length;Q++){var X=q[Q];if(!(X in b))if(m)W[X]=e[X];else{var I=Object.getOwnPropertyDescriptor(e,X);I&&(I.configurable=!0,Object.defineProperty(W,X,I))}}for(var u in XNz)e[u]&&(t[u]=t[u]||[],t[u].push(e[u]))};
ans=function(W,e,t){e=e||[];for(var b=W.length-1;b>=0;b--){var m=W[b];m?Array.isArray(m)?ans(m,e):e.indexOf(m)<0&&(!t||t.indexOf(m)<0)&&e.unshift(m):console.warn("behavior is null, check for missing or 404 import")}return e};
wN9=function(W,e){for(var t in e){var b=W[t],m=e[t];W[t]=!("value"in m)&&b&&"value"in b?Object.assign({value:b.value},m):m}};
vB9=function(W,e,t){var b={},m=function(){return e.apply(this,arguments)||this};
_.Z(m,e);m._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Q)for(var I=0,u;I<Q.length;I++)u=Q[I],u.properties&&this.createProperties(u.properties),u.observers&&this.createObservers(u.observers,u.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else e._finalizeClass.call(this)};
m.prototype.created=function(){e.prototype.created.call(this);var I=b.created;if(I)for(var u=0;u<I.length;u++)I[u].call(this)};
m.prototype._registered=function(){var I=m.prototype;if(!I.hasOwnProperty("__hasRegisterFinished")){I.__hasRegisterFinished=!0;e.prototype._registered.call(this);JA&&X(I);I=Object.getPrototypeOf(this);var u=b.beforeRegister;if(u)for(var c=0;c<u.length;c++)u[c].call(I);if(u=b.registered)for(c=0;c<u.length;c++)u[c].call(I)}};
m.prototype._applyListeners=function(){e.prototype._applyListeners.call(this);var I=b.listeners;if(I)for(var u=0;u<I.length;u++){var c=I[u];if(c)for(var v in c)this._addMethodEventListenerToNode(this,v,c[v])}};
m.prototype._ensureAttributes=function(){var I=b.hostAttributes;if(I)for(var u=I.length-1;u>=0;u--){var c=I[u],v;for(v in c)this._ensureAttribute(v,c[v])}e.prototype._ensureAttributes.call(this)};
m.prototype.ready=function(){e.prototype.ready.call(this);var I=b.ready;if(I)for(var u=0;u<I.length;u++)I[u].call(this)};
m.prototype.attached=function(){e.prototype.attached.call(this);var I=b.attached;if(I)for(var u=0;u<I.length;u++)I[u].call(this)};
m.prototype.detached=function(){e.prototype.detached.call(this);var I=b.detached;if(I)for(var u=0;u<I.length;u++)I[u].call(this)};
m.prototype.attributeChanged=function(I,u,c){e.prototype.attributeChanged.call(this);var v=b.attributeChanged;if(v)for(var D=0;D<v.length;D++)v[D].call(this,I,u,c)};
_.Ec.Object.defineProperties(m,{properties:{configurable:!0,enumerable:!0,get:function(){var I={};if(Q)for(var u=0;u<Q.length;u++)wN9(I,Q[u].properties);wN9(I,W.properties);return I}},
observers:{configurable:!0,enumerable:!0,get:function(){var I=[];if(Q)for(var u=0,c;u<Q.length;u++)c=Q[u],c.observers&&(I=I.concat(c.observers));W.observers&&(I=I.concat(W.observers));return I}}});
if(t){Array.isArray(t)||(t=[t]);var q=e.prototype.behaviors;var Q=ans(t,null,q);m.prototype.behaviors=q?q.concat(t):Q}var X=function(I){if(Q)for(var u=Q,c=0;c<u.length;c++)InR(I,u[c],b,uqQ);InR(I,W,b,ciG)};
JA||X(m.prototype);m.generatedFrom=W;return m};
B0K=function(W){var e=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};e.fastInit===void 0&&(e.fastInit=!0);return function(t){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==_.AA)throw Error("Od");var b=t.prototype;b.is=e.is;$AQ(b,"created",function(){this.hostElement=this;this.polymerController=this});
GLQ(b,t,e.fastInit);e.notifyObserversOnUndefined&&(b._overrideLegacyUndefined=!0);if(DwG)for(var m=_.R(Object.getOwnPropertyNames(b)),q=m.next();!q.done;q=m.next()){q=q.value;var Q=Object.getOwnPropertyDescriptor(b,q);Q.enumerable===!1&&(Q.enumerable=!0,Object.defineProperty(b,q,Q))}if("template"in t)var X=function(){return t.template};
else e.template!==void 0&&(X=e.template);if(X!==void 0){var I;Object.defineProperty(b,"_template",{get:function(){I===void 0&&(I=X());return I},
set:function(u){I=u},
configurable:!0,enumerable:!0})}Polymer(b);t[Slc]=b}};
oBG=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(e){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(e.prototype).constructor!==Nn)throw Error("Pd");GLQ(e.prototype,e,W.fastInit)}};
GLQ=function(W,e,t){t=t===void 0?!1:t;lnQ(e);t?$AQ(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||Zns(e,this)}):$AQ(W,"ready",function(){for(var b={},m=_.R(k2L(this.behaviors)),q=m.next();!q.done;q=m.next())q=q.value,q.properties&&Object.assign(b,$wK(this,q.properties));
Object.assign(b,$wK(this,this.properties));Zns(e,this);m=_.R(Object.keys(b));for(q=m.next();!q.done;q=m.next())q=q.value,this[q]=b[q]})};
Zns=function(W,e){if(DwG){W=new W;for(var t=_.R(Object.getOwnPropertyNames(W)),b=t.next();!b.done;b=t.next())b=b.value,e[b]=W[b];for(t=e;t&&t!==Object.prototype;t=Object.getPrototypeOf(t)){b=_.R(Object.getOwnPropertyNames(t));for(var m=b.next();!m.done;m=b.next())m=m.value,W.hasOwnProperty(m)||Object.defineProperty(W,m,kLR(e,m))}}else W.apply(e)};
kLR=function(W,e){return{get:function(){var t=W[e];return t instanceof Function?t.bind(W):t},
set:function(t){W[e]=t}}};
$wK=function(W,e){if(!e)return{};for(var t={},b=_.R(Object.keys(e)),m=b.next();!m.done;m=b.next())if(m=m.value,!e[m].readOnly){var q=W[m];q!==void 0&&(t[m]=q)}return t};
lnQ=function(W){var e=new W;W=W.prototype.properties||{};for(var t=_.R(Object.keys(W)),b=t.next();!b.done;b=t.next())if(b=b.value,e.hasOwnProperty(b)){var m=W[b];typeof m==="function"&&(W[b]=m={type:m});e[b]!=null&&m.type===Object&&(m.type=pNQ(e[b].constructor))}};
pNQ=function(W){for(var e=_.R(yiQ),t=e.next();!t.done;t=e.next())if(t=t.value,W===t)return t;return Object};
j4Z=function(W){return function(e,t){e.behaviors=e.behaviors||[];e.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",e,t).prototype:void 0));Object.defineProperty(e,t,{get:function(){return this},
enumerable:!0,configurable:!0})}};
CCc=function(W){W=W===void 0?{}:W;return function(e,t){e.properties=e.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=pNQ(Reflect.getMetadata("design:type",e,t)):W.type=String);var b=W,m=e.properties[t];e.properties[t]=m?Object.assign({},m,b):b}};
nBR=function(W){return function(e,t){e.listeners=e.listeners||{};e.listeners[W]=t}};
fnK=function(){var W=_.$N.apply(0,arguments);if(W.length===0)throw Error("Qd");return function(e,t){e.observers=e.observers||[];e.observers.push(t+"("+W.join(",")+")")}};
gBG=function(){var W=_.$N.apply(0,arguments);return function(e,t,b){var m=Object.getOwnPropertyDescriptor(e,t).get,q="__compute__"+t;Object.defineProperty(e,q,{value:m,enumerable:!0});e.properties=e.properties||{};m=e.properties[t];m||(m={},e.properties[t]=m);m.computed=q+"("+W.join(",")+")";b.get=void 0}};
_.ds=function(W,e,t){_.ka.call(this);this.JSC$9268_id_=null;this.usingListeners_=!1;this.JSC$9268_listener_=W;this.handler_=t;this.JSC$9268_win_=e||window;this.callback_=(0,_.p3)(this.JSC$9270_doAction_,this)};
WF=function(W){this.range_=W};
eV=function(W){this.range_=W};
m$=function(W,e,t){_.ka.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.tj(50);this.JSC$9347_eventHandler_=new _.bk(this);this.scrollDelta_=new _.jH;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=T0G(W);this.containerIsActuallyContent_&&(W=_.uN(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=e||0;if(e){if(e=this.containerBounds_.clone(),W=this.margin_){var b=
Math.min(W,e.height*.25);e.top+=b;e.height-=2*b;W=Math.min(W,e.width*.25);e.left+=W;e.width-=2*W}}else e=this.containerBounds_;this.scrollBounds_=e;t||this.JSC$9347_eventHandler_.listen(_.n8(this.containerNode_),"mousemove",this.JSC$9349_onMouseMove);this.JSC$9347_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9349_onTick_)};
_.r3=function(W){this.mechanism=W};
qg=function(W,e){this.JSC$9445_key_=W;this.JSC$9445_value_=e};
xw9=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in JiZ&&(W=JiZ[W]);var e="";W>65535&&(W-=65536,e+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return e+=String.fromCharCode(W)};
OnQ=function(W,e){return W<e?1:-1};
s4Q=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?xw9(parseInt(W.substr(3),16)):xw9(parseInt(W.substr(2),10)):MjZ[W.slice(1,-1)]}};
KzR=function(W){return W.slice(1,W.length-1).trim().replace(hH2,function(e){return HnG[e]||" "})};
RB=function(W){return W===32||W===9};
Q5=function(W,e){return e<W.length?W.charCodeAt(e):-1};
PC9=function(W){for(;W;){if(W._lastLineBlank)return!0;var e=W.type;if(e==="list"||e==="item")W=W._lastChild;else break}return!1};
Fr=function(W){if(VjQ.test(W)){var e=1,t=0,b=0;for(W[t]=="|"&&t++;t<W.length;){switch(W[t]){case "|":b=1;break;case " ":break;case "\t":break;default:b&&(b=0,e++)}t++}return inL.test(W)?-e:e}return 0};
YlL=function(W){return W=="table"||W=="row"||W=="cell"};
zHz=function(){return new Xr("document",[[1,1],[0,0]])};
UwS=function(){};
IB=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
dwQ=function(W,e){var t="";if(W)if(W=W.toLowerCase(),W===" "||Lzs.test(W))t="space";else if(EBR.test(W))t="esc";else if(W.length==1){if(!e||AiG.test(W))t=W}else t=N02.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return t};
bYG=function(W,e){var t=W.hasModifiers;if(e.key)t=dwQ(e.key,t);else if(e.detail&&e.detail.key)t=dwQ(e.detail.key,t);else{t=e.keyIdentifier;var b="";t&&(t in WcG?b=WcG[t]:ezL.test(t)?(t=parseInt(t.replace("U+","0x"),16),b=String.fromCharCode(t).toLowerCase()):b=t.toLowerCase());(t=b)||(t=e.keyCode,b="",Number(t)&&(t>=65&&t<=90?b=String.fromCharCode(32+t):t>=112&&t<=123?b="f"+(t-112+1):t>=48&&t<=57?b=String(t-48):t>=96&&t<=105?b=String(t-96):b=tug[t]),t=b);t=t||""}return t===W.key&&(!W.hasModifiers||
!!e.shiftKey===!!W.shiftKey&&!!e.ctrlKey===!!W.ctrlKey&&!!e.altKey===!!W.altKey&&!!e.metaKey===!!W.metaKey)};
rsL=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(e,t){var b=t.split(":");t=b[0];b=b[1];t in m7R?(e[m7R[t]]=!0,e.hasModifiers=!0):(e.key=t,e.event=b||"keydown");return e},{combo:W.split(":").shift()})};
qqZ=function(W){return W.trim().split(" ").map(function(e){return rsL(e)})};
RzL=function(W,e){if(W&&W.fn){var t=W.fn;W.fn=function(){try{t.apply(this,arguments)}catch(b){if(b instanceof aB)console.warn("Argument '"+b.arg+"'"+(e?" for method '"+e+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw b;}}}return W};
QP2=function(){var W=_.$N.apply(0,arguments);return W.length===0?function(e){return e}:W.length===1?W[0]:W.reduce(function(e,t){return function(){return e(t.apply(null,_.kP(_.$N.apply(0,arguments))))}})};
FcS=function(){var W=_.$N.apply(0,arguments);return function(e){return function(t,b){t=e(t,b);var m=function(){throw Error("Ae");},q={getState:t.getState,
dispatch:function(Q){return m.apply(null,[Q].concat(_.kP(_.$N.apply(1,arguments))))}};
b=W.map(function(Q){return Q(q)});
m=QP2.apply(null,_.kP(b))(t.dispatch);return Object.assign({},t,{dispatch:m})}}};
aIZ=function(W){Object.keys(W).forEach(function(e){var t=W[e];if(typeof t(void 0,{type:XbD})==="undefined")throw Error("Be`"+e);if(typeof t(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+IIS()})==="undefined")throw Error("Ce`"+e+"`"+XbD);})};
w3=function(W){for(var e=Object.keys(W),t={},b=0;b<e.length;b++){var m=e[b];typeof W[m]==="function"&&(t[m]=W[m])}var q=Object.keys(t);try{aIZ(t)}catch(X){var Q=X}return function(X,I){X=X===void 0?{}:X;if(Q)throw Q;for(var u=!1,c={},v=0;v<q.length;v++){var D=q[v],B=X[D],k=(0,t[D])(B,I);if(typeof k==="undefined")throw X=I&&I.type,Error("De`"+(X?'"'+String(X)+'"':"(unknown type)")+"`"+D);c[D]=k;u=u||k!==B}return(u=u||q.length!==Object.keys(X).length)?c:X}};
wb2=function(W,e,t){function b(){if(c)throw Error("Ee");return X}
function m(B){if(typeof B!=="function")throw Error("Fe`"+typeof B);if(c)throw Error("Ge");var k=!0;u===I&&(u=I.slice());u.push(B);return function(){if(k){if(c)throw Error("He");k=!1;u===I&&(u=I.slice());var n=u.indexOf(B);u.splice(n,1);I=null}}}
function q(B){if(typeof B!=="object"||B===null)var k=!1;else{for(k=B;Object.getPrototypeOf(k)!==null;)k=Object.getPrototypeOf(k);k=Object.getPrototypeOf(B)===k}if(!k)throw Error("Ie`"+typeof B);if(typeof B.type==="undefined")throw Error("Je");if(c)throw Error("Ke");try{c=!0,X=Q(X,B)}finally{c=!1}k=I=u;for(var n=0;n<k.length;n++)(0,k[n])();return B}
if(typeof e==="function"&&typeof t==="function"||typeof t==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof e==="function"&&typeof t==="undefined"&&(t=e,e=void 0);if(typeof t!=="undefined"){if(typeof t!=="function")throw Error("Me`"+typeof t);return t(wb2)(W,e)}if(typeof W!=="function")throw Error("Ne`"+typeof W);var Q=W,X=e,I=[],u=I,c=!1;q({type:XbD});var v={},D=(v.dispatch=q,v.subscribe=m,v.getState=b,v.replaceReducer=function(B){if(typeof B!=="function")throw Error("Oe`"+
typeof B);Q=B;q({type:uiK});return D},v[csG]=function(){var B={};
return B.subscribe=function(k){function n(){k.next&&k.next(b())}
if(typeof k!=="object"||k===null)throw new TypeError("Pe`"+typeof k);n();return{unsubscribe:m(n)}},B[csG]=function(){return this},B},v);
return D};
v2R=function(W){function e(){m&&(m=!1,W());q&&b()}
function t(){requestAnimationFrame(e)}
function b(){var X=Date.now();if(m){if(X-Q<2)return;q=!0}else m=!0,q=!1,setTimeout(t,20);Q=X}
var m=!1,q=!1,Q=0;return b};
uk=function(W){return typeof W==="number"?W:parseFloat(W)||0};
G9L=function(W){return _.$N.apply(1,arguments).reduce(function(e,t){return e+uk(W["border-"+t+"-width"])},0)};
_.p=function(W,e){e=nF(CF(e));W.innerHTML=e};
B2K=function(W){var e=D7s;e||(e=Sqc(),e=D7s=_.kJ.transpose(e));e=e[W];return typeof e==="string"?e:_.cF(W)};
o2K=function(W){W=String(W).toLowerCase();var e=Sqc()[W];return typeof e==="string"?e:_.vF(W)};
lIS=function(W){W=W.toLowerCase();W=Sqc()[W];return typeof W==="string"?W:null};
Sqc=function(){if(!ZYR){for(var W=Object.assign({},$7s),e=_.R(k9z),t=e.next();!t.done;t=e.next())t=t.value,W[t.toLowerCase()]=t;ZYR=W}return ZYR};
jPR=function(W,e){var t=window.customElements;return t&&t.get(W)||pbc[W]===!0?2:e.name==="HTMLUnknownElement"?1:e.name==="HTMLElement"&&ysv.test(W)?3:0};
fIQ=function(W,e){switch(e){case "innerHTML":return CIZ(W)===1?2:null;case "textContent":return W=CIZ(W),W===1||W===6?1:null;default:var t,b;return(b=(t=n2L[W.localName])==null?void 0:t[e])!=null?b:null}};
CIZ=function(W){var e=W.localName,t=jPR(e,W.constructor);switch(t){case 0:case 1:return g2K(e,W);case 3:case 2:return 1;default:_.Qw(t,"got an unknown element classification")}};
g2K=function(W,e){var t=Object.hasOwnProperty.call(T2G,W)?T2G[W]:null;return t!==null?t:Object.hasOwnProperty.call(JsK,W)&&e instanceof SVGElement?JsK[W]:null};
x7Q=function(W,e){return e};
MuR=function(W){return(W=W.split(OYK,2))?{url:W[0],metadata:W[1]}:null};
hzK=function(W){var e=String(W.url).replace(sP9,encodeURIComponent);if(W=W.metadata){sP9.lastIndex=0;if(sP9.test(W))return null;e+=" "+W}return e};
VuS=function(W){function e(u){var c=u.localName;if(!u.getAttribute("is")&&jPR(c,u.constructor)===2){var v;return(v=I)!=null?v:I=document.createElement("polyresinuncustomized")}(u=X[c])||(u=X[c]=document.createElement(c));return u}
var t=W.reportHandler||void 0,b=W.safeTypesBridge||HYv,m=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.R(W);for(var q=W.next();!q.done;q=W.next())m=new RegExp(m.source+"|^"+_.KcD(q.value))}t&&t(!1,"initResin",null);var Q=PIR(m,b,t),X={},I=null;return function(u,c,v){var D=u.nodeType;if(D!==Node.ELEMENT_NODE){if(D===Node.TEXT_NODE){c=u.parentElement;v=!c;if(c&&c.nodeType===Node.ELEMENT_NODE){D=c.localName;var B=jPR(D,c.constructor);switch(B){case 0:case 1:c=g2K(D,c);v=c===1||c===6;break;case 3:case 2:v=
!0;break;default:_.Qw(B,"got an unknown element classification")}}if(v)return function(M){return""+b(M,"STRING",M)}}return function(M){if(!M&&M!==document.all)return M;
t&&t(!0,"Failed to sanitize "+(u.parentElement&&u.parentElement.nodeName)+" #text node to value "+M,u.parentElement);return G4}}var k=u.localName;
D=e(u);var n=null;switch(v){case "attribute":if(o2K(c)in D)break;return function(M){return M};
case "property":if(c in D){n=fIQ(D,c);break}if((B=lIS(c))&&B in D)break;return function(M){return M};
default:_.Qw(v,"got an unknown resin type, expected either 'property' or 'attribute'")}var f=v==="attribute"?c.toLowerCase():B2K(c);n||(n=a3L(k,f,function(M){var K=u.getAttribute(M);return!K||/[\[\{]/.test(M)?null:K}));
return function(M){var K=DZ,U=null;if(!M&&M!==document.all)return M;if(n!=null){var V=Q[n],L=V.safeType;U=V.safeReplacement;L&&(K=b(M,L,DZ));K===DZ&&(V.filterString?(K=String(b(M,"STRING",M)),K=V.filterString(k,f,K)):V.filterRaw&&(K=V.filterRaw(k,f,M,u)),K===U&&(K=DZ))}K===DZ&&(K=U||G4,t&&t(!0,"Failed to sanitize attribute of <"+k+">: <"+k+" "+f+'="'+M+'">',u));return K}}};
PIR=function(W,e,t){return[,{filterRaw:function(b,m,q){return q},
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:iYZ,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:iYZ,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:G4,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:YqK,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(b,m,q){q=
String(q).toLowerCase();return c7G(b,m,q)?q:G4},
safeReplacement:G4,safeType:void 0},,{filterRaw:void 0,filterString:function(b,m,q){return W.test(q)?q:G4},
safeReplacement:G4,safeType:"CONSTANT"},{filterRaw:function(b,m,q,Q){if(typeof q==="string")var X=(X=q.match(zzz))?X.map(MuR).filter(Boolean):[];else if(Array.isArray(q))X=q;else return iYZ;var I=X;X=[];var u=[],c={};if(Array.isArray(I))for(var v=0,D=I.length;v<D;++v){var B=I[v],k=B&&B.url;if(k){var n=e(k,"URL",c);if(n){var f=n!==c;(f?X:u).push({url:f?n:k,metadata:B.metadata})}}}else u.push(I);I=u.length?JSON.stringify(u):null;u=DZ;if(X.length){if(!Array.isArray(X))throw Error();u=X.map(hzK).filter(Boolean).join(" , ")||
DZ}I&&t&&t(!0,"Failed to sanitize attribute value of <"+b+">: <"+b+" "+m+'="'+q+'">: '+I,Q);return u===DZ?iYZ:u},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
U72=function(W){var e=VuS(W);return function(t,b,m,q){return q||q===document.all?e(t,b,m)(q):q}};
SV=function(W,e){function t(){function m(X,I,u){for(I=Reflect.getMetadata("parameters",X)||[];I.length<=u;)I.push(null);I[u]=I[u]||[];I[u].push(Q);Reflect.defineMetadata(I,X);return X}
var q=_.$N.apply(0,arguments);if(this instanceof t)return b.apply(this,q),this;var Q=new (Function.prototype.bind.apply(t,[null].concat(_.kP(q))));m.annotation=Q;return m}
var b=LcQ(e);t.prototype.toString=function(){return"@"+W};
return t.annotationCls=t};
LcQ=function(W){return function(){var e=_.$N.apply(0,arguments),t=this;W.forEach(function(b,m){m=e[m];if(Array.isArray(b))t[b[0]]=m&&m!==void 0?m:b[1];else for(var q in b)t[q]=m&&m[q]!==void 0?m[q]:b[q]})}};
E2G=function(W){return W!==void 0&&W!==null};
BF=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var e=W.indexOf("\n");return e===-1?W:W.substring(0,e)};
AsG=function(W){W.__forward_ref__=AsG;W.toString=function(){return BF(this())};
return W};
oB=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===AsG?W():W};
N22=function(W){return W?W.map(function(e){return new (Function.prototype.bind.apply(e.type.annotationCls,[null].concat(_.kP(e.args?e.args:[]))))}):[]};
d7v=function(W){for(var e=[],t=0;t<W.length;++t){if(e.indexOf(W[t])>-1){e.push(W[t]);break}e.push(W[t])}return e};
W5g=function(W){return W.length>1?" ("+d7v(W.slice().reverse()).map(function(e){return BF(e.token)}).join(" -> ")+")":""};
tQz=function(W,e,t,b){if(b){var m=Error("We``"+(b instanceof Error?b.message:b));m.ngOriginalError=b}else m=Error();m.addKey=eSK;m.keys=[e];m.injectors=[W];m.constructResolvingMessage=t;m.message=m.constructResolvingMessage();m.ngOriginalError=b;return m};
eSK=function(W,e){this.injectors.push(W);this.keys.push(e);this.message=this.constructResolvingMessage()};
bdK=function(W,e){return tQz(W,e,function(){return"No provider for "+BF(this.keys[0].token)+"!"+W5g(this.keys)})};
mWK=function(W,e){return tQz(W,e,function(){return"Cannot instantiate cyclic dependency!"+W5g(this.keys)})};
rtG=function(W,e,t){return tQz(W,t,function(){var b=BF(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+b+"!"+W5g(this.keys)+"."},e)};
q8R=function(W,e){for(var t=[],b=0,m=e.length;b<m;b++){var q=e[b];q&&q.length!=0?t.push(q.map(BF).join(" ")):t.push("?")}return Error("$e`"+BF(W)+"`"+t.join(", ")+"`"+BF(W))};
w9K=function(W){var e=void 0,t=void 0;if(W&&W.useClass!==void 0){e=W.useClass;var b=oB(W.useClass);var m=RSR.factory(b);b=QtS(b)}else W&&W.useExisting!==void 0?(m=function(q){return q},b=[F5z(lk.get(oB(W.useExisting)))]):W&&W.useFactory!==void 0?(m=W.useFactory,b=X9G(W.useFactory,W.deps)):(t=W.useValue,m=function(){return W.useValue},b=IuR);
return new auG(m,b,e,t)};
ctZ=function(W){return new uL9(lk.get(oB(W.provide)),[w9K(W)],W.multi)};
GXG=function(W){W=vV9(W,[]).map(ctZ);for(var e=new Map,t=0;t<W.length;t++){var b=W[t],m=e.get(b.key.id);if(m){if(b.multiProvider!==m.multiProvider)throw Error("bf`"+m+"`"+b);if(b.multiProvider)for(var q=0;q<b.resolvedFactories.length;q++)m.resolvedFactories.push(b.resolvedFactories[q]);else e.set(b.key.id,b)}else m=void 0,b.multiProvider?m=new uL9(b.key,b.resolvedFactories.slice(),b.multiProvider):m=b,e.set(b.key.id,m)}return Array.from(e.values())};
vV9=function(W,e){W.forEach(function(t){if(t instanceof DWS)e.push({provide:t,useClass:t});else if(t&&typeof t=="object"&&t.provide!==void 0)e.push(t);else if(t instanceof Array)vV9(t,e);else throw Error("Ze`"+t);});
return e};
X9G=function(W,e){if(e){var t=e.map(function(b){return[b]});
return e.map(function(b){return S8s(W,b,t)})}return QtS(W)};
QtS=function(W){var e=RSR.parameters(W);if(!e)return[];if(e.some(function(t){return t==null}))throw q8R(W,e);
return e.map(function(t){return S8s(W,t,e)})};
S8s=function(W,e,t){var b=null,m=!1;if(!Array.isArray(e))return e instanceof BjG?oV9(e.token,m,null):oV9(e,m,null);for(var q=null,Q=0;Q<e.length;++Q){var X=e[Q];if(X instanceof DWS)b=X;else if(X instanceof BjG)b=X.token;else if(X instanceof lug)m=!0;else if(X instanceof ZdG||X instanceof $Wg)q=X}b=oB(b);if(b!=null)return oV9(b,m,q);throw q8R(W,t);};
oV9=function(W,e,t){return new kXZ(lk.get(oB(W)),e,t)};
p9v=function(W,e){for(var t=Array(W.providers.length),b=0;b<W.providers.length;++b){var m=b;if(b<0||b>=W.providers.length)throw Error("af`"+b);t[m]=e(W.providers[b])}return t};
ytD=function(W){return typeof W==="function"&&RSR.parameters(W).every(function(e){return!!e})};
nVG=function(W){var e=jts;CDG.get(W)||CDG.set(W,new e);return CDG.get(W)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,e){var t,b;if(W.contains(e))return!0;W=_.ZZ(W).querySelectorAll("content,slot");for(t=0;t<W.length;++t){var m=_.ZZ(W[t]).getDistributedNodes();for(b=0;b<m.length;++b)if(m[b].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m[b],e))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],fu9=W.pageX,gVD=W.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 W=0,e=$4.length;W<e;W++)document.addEventListener($4[W],_._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 W=0,e=$4.length;W<e;W++)document.removeEventListener($4[W],_._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(W){var e=_.ZZ(W).rootTarget;W.type!=="touchmove"&&TjR!==e&&(TjR=e,JtK=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.ZZ(W).path));if(!JtK.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(JtK,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var e=[],t=W.indexOf(xWs),b=0;b<=t;b++)if(W[b].nodeType===Node.ELEMENT_NODE){var m=W[b],q=m.style;q.overflow!=="scroll"&&q.overflow!=="auto"&&(q=window.getComputedStyle(m));q.overflow!=="scroll"&&q.overflow!=="auto"||e.push(m)}return e};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,e,t){if(e||t)for(var b=Math.abs(t)>=Math.abs(e),m=0;m<W.length;m++){var q=W[m];if(b?t<0?q.scrollTop>0:q.scrollTop<q.scrollHeight-q.clientHeight:e<0?q.scrollLeft>0:q.scrollLeft<q.scrollWidth-q.clientWidth)return q}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var e={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(e.deltaX=-W.wheelDeltaX,e.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(e.deltaX=0,e.deltaY=-W.wheelDelta):"axis"in W?(e.deltaX=W.axis===1?W.detail:0,e.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],e.deltaX=fu9-W.pageX,e.deltaY=gVD-W.pageY));return e};
Odg=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
stv=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.ZZ(this.waveContainer).appendChild(this.wave);MQL(this)};
k4=function(W,e){for(var t in W)if(t.toLowerCase()===e.toLowerCase())return W[t]};
hSg=function(W,e){for(var t in W)if(t.toLowerCase()===e.toLowerCase()){delete W[t];break}};
K5G=function(W){W=_.kJ.clone(W);for(var e=0;e<Hdv.length;++e){var t=Hdv[e],b=k4(W,t);b&&(W["X-Goog-Upload-Header-"+t]=b,hSg(W,t))}return W};
PDs=function(W){W=_.kJ.clone(W);hSg(W,"X-Goog-Upload-Status")};
idQ=function(W){return VQZ.some(function(e){return e.test(W)})};
L52=function(W,e){var t;var b=(t=W.formContent)==null?void 0:t.locale;t=b==null?void 0:b.split("-")[0];b=b&&Y89.includes(b)?b:t&&Y89.includes(t)?t:void 0;b=(b!=null?b:"en").replaceAll("-","_").toLowerCase();var m;W=((m=W.initializationData)==null?0:m.useNightlyRelease)?"nightly":"live";var q;return(e==null?0:(q=e.getEnableAlohaBinarySplit)==null?0:q.call(e))?_.bN(zS9,W):_.bN(UWD,W,b)};
NjQ=function(W,e,t,b){if(EVS&&Atc===e)return EVS;Atc=e;var m=L52(W,b);return EVS=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(q,Q){var X=_.DA("SCRIPT");_.H7(X,m);X.onload=function(){e.feedbackV2GlobalObject?q(e.feedbackV2GlobalObject):Q(Error("ef"))};
X.onerror=function(){Q(Error("ff`"+m.toString()))};
t.body.appendChild(X)})};
e1R=function(W,e,t,b){if(dWc&&W6Q===e)return dWc;W6Q=e;var m=L52(W,b);return dWc=e.feedbackV2GlobalObject?Promise.resolve(e.feedbackV2GlobalObject):new Promise(function(q,Q){var X=_.DA("SCRIPT");_.H7(X,m);X.onload=function(){e.feedbackV2GlobalObject?q(e.feedbackV2GlobalObject):Q(Error("ef"))};
X.onerror=function(){Q(Error("ff`"+m.toString()))};
t.body.appendChild(X)})};
tFv=function(W,e,t,b,m){m=m===void 0?!0:m;var q,Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:return q=Date.now(),_.a(c,NjQ(W,t,b,e),2);case 2:Q=c.yieldResult;if(!(m||((I=W.initializationData)==null?0:I.useNightlyRelease)||((u=W.initializationData)==null?0:u.isLocalServer))){X=Q.initializeFeedbackClient(W,q,e);c.jumpTo(3);break}return _.a(c,Q.initializeFeedbackClientAsync(W,q,e),4);case 4:X=c.yieldResult;case 3:return X.initiateAloha(),c.return(X)}})};
bVs=function(W,e,t,b){var m,q,Q;return _.F(function(X){if(X.nextAddress==1)return m=Date.now(),_.a(X,e1R(W,t,b.document,e),2);if(X.nextAddress!=3)return q=X.yieldResult,_.a(X,q.initializeFeedbackClientAsync(W,m,e,b),3);Q=X.yieldResult;Q.initiateAloha();return X.return(Q)})};
m3L=function(W,e,t){var b=!0;b=b===void 0?!0:b;var m,q,Q,X,I,u,c,v,D,B;return _.F(function(k){m=t||_.tz;if((q=e)==null?0:(X=(Q=q).getEnableAlohaBinarySplit)==null?0:X.call(Q)){I=m;if(I.isFormOpened)throw u=Error("gf"),u.name="DuplicateFormError",u;I.isFormOpened=!0;W.callbacks=W.callbacks||{};c=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(n){I.isFormOpened=!1;c(n)};
try{return k.return(bVs(W,e,I,m))}catch(n){throw I.isFormOpened=!1,n;}}else{v=m;if(v.isFormOpened)throw D=Error("gf"),D.name="DuplicateFormError",D;v.isFormOpened=!0;W.callbacks=W.callbacks||{};B=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(n){v.isFormOpened=!1;B(n)};
try{return k.return(tFv(W,e,v,m.document,b))}catch(n){throw v.isFormOpened=!1,n;}}_.u8(k)})};
F6D=function(W,e){return _.F(function(t){return t.return(new Promise(function(b){var m=rnL(e!=null?e:"")+"/aloha_form_properties?productId="+W;qX2(m,function(q){q=q.target;var Q=null;try{var X=JSON,I=X.stringify;if(q.JSC$7842_xhr_){var u=q.JSC$7842_xhr_.responseText;u.indexOf(")]}'\n")==0&&(u=u.substring(5));var c=(0,_.pc)(u)}else c=void 0;Q=tKc(R1Z,I.call(X,c))}catch(v){I=new R1Z,c=QrD(),c=_.y5(c,13,!1),c=_.y5(c,14,!0),c=_.y5(c,15,!0),c=_.y5(c,20,!1),Q=_.bF(I,1,c)}b(Q)},"GET","",{},2E3,!0)}))})};
rnL=function(W){return idQ(W)?W:"https://www.google.com/tools/feedback"};
wqv=function(W){W=W.match(new RegExp(Xq9,"gi"))||[];W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;a:{var t=_.R(IYz);for(var b=t.next();!b.done;b=t.next())if(b.value.test(e)){t=!1;break a}t=!0}if(!t)a:{t=_.R(aYv);for(b=t.next();!b.done;b=t.next())if(b.value.test(e)){t=!0;break a}t=!1}if(t)return!0}return!1};
up9=function(W){switch(W){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"}};
vr2=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var e=Array(W),t=new Uint8Array(W);window.crypto.getRandomValues(t);for(var b=0;b<e.length;b++)e[b]=t[b];return e}catch(q){}e=Array(W);for(t=0;t<W;t++){b=Date.now();for(var m=0;m<b%23;m++)e[t]=Math.random();e[t]=Math.floor(Math.random()*256)}if(cn9)for(t=1,b=0;b<cn9.length;b++)e[t%W]^=e[(t-1)%W]/4^cn9.charCodeAt(b),t++;return e};
jV=function(W){W=vr2(W);for(var e=[],t=0;t<W.length;t++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[t]&63));return e.join("")};
D3g=function(W){W&&_.nJ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:GDS,clientScreenNonce:W})};
SXL=function(W){return _.Ot("client-screen-nonce-store",{})[W===void 0?0:W]};
BuK=function(W,e){e=e===void 0?0:e;var t=_.Ot("client-screen-nonce-store");t||(t={},_.xq("client-screen-nonce-store",t));t[e]=W};
orG=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
lYD=function(W){return _.Ot(orG(W===void 0?0:W))};
_.nc=function(W){return(W=lYD(W===void 0?0:W))?new _.Cc({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ZVz=function(){var W=_.Ot("csn-to-ctt-auth-info");W||(W={},_.xq("csn-to-ctt-auth-info",W));return W};
$3v=function(){return Object.values(_.Ot("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.fc=function(W){W=SXL(W===void 0?0:W);if(!W&&!_.MD("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
pqQ=function(W){for(var e=_.R(Object.values(kDs)),t=e.next();!t.done;t=e.next())if(_.fc(t.value)===W)return!0;return!1};
ynG=function(W,e,t){var b=ZVz();(t=_.fc(t))&&delete b[t];e&&(b[W]=e)};
g3=function(W){return ZVz()[W]};
_.T4=function(W,e,t,b){t=t===void 0?0:t;if(W!==SXL(t)||e!==_.Ot(orG(t)))if(ynG(W,b,t),BuK(W,t),_.xq(orG(t),e),e=function(){setTimeout(function(){D3g(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(e)}catch(m){e()}else e()};
jr9=function(W,e){e=e===void 0?"":e;var t=[],b;for(b in W)if(W.hasOwnProperty(b)){var m=e!==""?e+"."+b:b;typeof W[b]==="object"?t.push.apply(t,_.kP(jr9(W[b],m))):t.push([m,W[b]])}t.sort();return t};
_.x4=function(W){var e=_.$N.apply(1,arguments);if(!Jj(W)||e.some(function(b){return!Jj(b)}))throw Error("hf");
e=_.R(e);for(var t=e.next();!t.done;t=e.next())Cj9(W,t.value)};
Cj9=function(W,e){for(var t in e)if(Jj(e[t])){if(t in W&&!Jj(W[t]))throw Error("jf");t in W||(W[t]={});Cj9(W[t],e[t])}else if(nrR(e[t])){if(t in W&&!nrR(W[t]))throw Error("kf");t in W||(W[t]=[]);fYD(W[t],e[t])}else W[t]=e[t];return W};
fYD=function(W,e){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,Jj(t)?W.push(Cj9({},t)):nrR(t)?W.push(fYD([],t)):W.push(t);return W};
Jj=function(W){return typeof W==="object"&&!Array.isArray(W)};
nrR=function(W){return typeof W==="object"&&Array.isArray(W)};
Tug=function(W){for(var e=_.R(Object.entries(grR)),t=e.next();!t.done;t=e.next())if(t=_.R(t.value),t.next(),t=t.next().value,t==="SLI_STATUS_"+W)return t;return"SLI_STATUS_UNKNOWN"};
_.OT=function(W,e,t,b){return Jn2(W,e,function(){return new _.x3S(W,e,t,b)})};
_.OVv=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
MFv=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Mg=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
sr9=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
h1v=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
HVv=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
VF2=function(W){W&&(W.dataset?W.dataset[K6D()]="true":_.P7([_.eH(PjG)],W,"data-loaded","true".toString()))};
iV9=function(W){return W?W.dataset?W.dataset[K6D()]:W.getAttribute("data-loaded"):null};
K6D=function(){return YXc.loaded||(YXc.loaded="loaded".replace(/\-([a-z])/g,function(W,e){return e.toUpperCase()}))};
_.sT=function(W,e,t){z1Q(W,e,t===void 0?null:t)};
_.L6c=function(W,e){W&&e&&(W=""+_.bh(e),(W=U3Q[W])&&_.A8G(W))};
z1Q=function(W,e,t){t=t===void 0?null:t;var b=_.Erz(W),m=document.getElementById(b),q=m&&iV9(m),Q=m&&!q;q?e&&e():(e&&(q=_.Rz(b,e),e=""+_.bh(e),U3Q[e]=q),Q||(m=AnK(W,b,function(){iV9(m)||(VF2(m),_.ND2(b),_.Qm(function(){_.WZc(b)},0))},t)))};
AnK=function(W,e,t,b){b=b===void 0?null:b;var m=_.DA("SCRIPT");m.id=e;m.onload=function(){t&&setTimeout(t,0)};
m.onreadystatechange=function(){switch(m.readyState){case "loaded":case "complete":m.onload()}};
b&&m.setAttribute("nonce",b);_.H7(m,_.jh(W));W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(m,W.firstChild);return m};
_.Erz=function(W){var e=document.createElement("a");yE(e,W);return"js-"+hj(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
NuR=function(W){var e=_.Ot("INNERTUBE_HOST_OVERRIDE");e&&(W=String(e)+String(_.Kc(W)));return W};
d3K=function(W){var e={};_.S("json_condensed_response")&&(e.prettyPrint="false");return W=oSD(W,e)};
_.PF=function(W){return ND(W)?"same-origin":"include"};
_.V5=function(W){return ND(W)?"same-origin":"cors"};
ik=function(W,e,t){t=t===void 0?{}:t;W={method:e===void 0?"POST":e,mode:_.V5(W),credentials:_.PF(W)};e={};for(var b=_.R(Object.keys(t)),m=b.next();!m.done;m=b.next())m=m.value,t[m]&&(e[m]=t[m]);Object.keys(e).length>0&&(W.headers=e);return W};
_.Y4=function(W,e){e=e===void 0?{}:e;return"service:"+W+"/"+Object.keys(e).sort().map(function(t){return t+":"+e[t]}).join("/")};
WDR=function(W){var e,t,b,m;W=(e=_.l(W,_.z4))==null?void 0:(t=e.watchEndpointSupportedOnesieConfig)==null?void 0:(b=t.html5PlaybackOnesieConfig)==null?void 0:(m=b.commonConfig)==null?void 0:m.url;if(!W)return[];e=new _.UT(W);return e.JSC$8077_domain_?["https://"+e.JSC$8077_domain_+"/generate_204"]:[]};
_.bHz=function(){return e6s()||k49()||toZ&&g8("version/")?!0:_.Ot("EOM_VISITOR_DATA")?!1:!0};
mRG=function(W){var e=W.docid||W.video_id||W.videoId||W.id;if(e)return e;e=W.raw_player_response;e||(W=W.player_response)&&(e=JSON.parse(W));return e&&e.videoDetails&&e.videoDetails.videoId||null};
rFQ=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Lc=function(W){return!isNaN(Number(W))&&!_.QK(W)};
_.Aj=function(W,e,t,b){b=b===void 0?!0:b;var m=_.Ot("VALID_SESSION_TEMPDATA_DOMAINS",[]),q=_.Et(window.location.href);q&&m.push(q);q=_.Et(W);if(_.PZ(m,q)||!q&&_.m2(W,"/"))if(m=document.createElement("a"),yE(m,W),W=m.href)if(W=_.Kc(W),W=_.ET(W))b&&!e.csn&&(e.itct||e.ved)&&(e=Object.assign({csn:_.fc()},e)),t?(t=parseInt(t,10),isFinite(t)&&t>0&&qxD(W,e,t)):qxD(W,e)};
Q8v=function(W){var e=_.Ot("VALID_SESSION_TEMPDATA_DOMAINS",[]),t=_.Et(window.location.href);t&&e.push(t);t=_.Et(W);if(!(_.PZ(e,t)||!t&&_.m2(W,"/")))return null;W=_.Kc(W);(W=_.ET(W))?(W=R6v(W),W=(W=_.vi.get(W,void 0)||null)?_.iV(W):{}):W=null;return W};
qxD=function(W,e,t){W=R6v(W);e=e?_.w8(e):"";t=t||5;_.bHz()&&_.GJ(W,e,t)};
R6v=function(W){for(var e=_.R(FDS),t=e.next();!t.done;t=e.next())W=_.W6(W,t.value);return"ST-"+hj(W).toString(36)};
Xh2=function(W,e){W.commandMetadata&&_.l(W.commandMetadata,_.ez)&&_.l(W.commandMetadata,_.ez).url&&(W=_.Yq(_.l(W.commandMetadata,_.ez).url).adurl)&&_.Z1K(W)&&_.Aj(_.Kc(W),{encoded_ad_playback_context:e})};
_.I6Z=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return W instanceof Promise?W:Promise.resolve()};
_.bc=function(W){var e;_.sXL(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ty()==W&&(e=document):e=W;if(e&&(W=_.sXL(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))){W.call(e)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ty=function(){var W=W===void 0?!1:W;var e=_.sXL(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null};
_.m1=function(W,e){e=e===void 0?!0:e;W.addEventListener("wheel",a6L);W.overscrollConfig={cooldown:e}};
_.ry=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",a6L)};
a6L=function(W){var e=W.deltaY,t=W.target,b=null;if(window.Polymer&&window.Polymer.Element){if(t=W.path||W.composedPath&&W.composedPath()){t=_.R(t);for(var m=t.next();!m.done&&(m=m.value,!whG(m,e));m=t.next())if(m.overscrollConfig){b=m;break}}}else for(;t&&!whG(t,e);){if(t.overscrollConfig){b=t;break}t=t.parentElement}b&&(e=b.overscrollConfig,e.cooldown?(b=W.deltaY,t=e.lastDeltaY||0,e.lastDeltaY=b,m=e.lastStopped||0,t&&m&&t>0==b>0?Math.abs(t)>=Math.abs(b)?(b=m+1200,t=!1):(b=m+600,t=!0):(b=Date.now()+
600,t=!0),b>Date.now()&&(W.preventDefault(),t&&(e.lastStopped=Date.now()))):W.preventDefault())};
whG=function(W,e){return e<0&&W.scrollTop>0||e>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.q2=function(W,e,t,b){b||(b={bubbles:!0,cancelable:!1,composed:!0});t!==null&&t!==void 0&&(b.detail=t);var m=new CustomEvent(e,b);_.S("untrack_fire_custom_event_killswitch")?W.dispatchEvent(m):ab(function(){return void W.dispatchEvent(m)});
return m};
_.RT=function(W,e,t,b){e=new uHc(e,!(b===void 0||!b),t);_.q2(W,"yt-action",e);return e.returnValue};
_.Qx=function(W,e,t){return _.RT(W,e,t,!0)};
_.F5=function(W,e,t){return _.RT(W,e,t)[0]};
_.IT=function(W,e,t,b){e&&e.length&&e.forEach(function(m){var q=O4R(m);q&&(_.S("handle_service_request_actions")&&m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.sendPost?_.X5(t?t:W,[m]):_.Qx(W,q,[m,t,b]))})};
_.X5=function(W,e){var t=[W];e&&t.push.apply(t,e);e=_.RT(W,"yt-service-request",t);return e.length>0&&(e=e[0],_.q2(W,"yt-service-request-sent",e),e&&e.ajaxPromise)?(e.ajaxPromise.then(function(b){_.q2(W,"yt-service-request-completed",b)},function(b){_.q2(W,"yt-service-request-error",{error:b,
params:t})},W),e.ajaxPromise):_.aT()};
_.uc=function(W,e){if(_.S("handle_service_request_actions"))_.IT(e,W,e);else{W=_.R(W);for(var t=W.next();!t.done;t=W.next()){t=t.value;var b=void 0;((b=_.l(t,_.wy))==null?0:b.commands)?_.uc(_.l(t,_.wy).commands,e):(b=void 0,((b=_.l(t,_.c6))==null?0:b.actions)?_.uc(_.l(t,_.c6).actions,e):(b=void 0,((b=_.l(t.commandMetadata,_.ez))==null?0:b.sendPost)?_.X5(e,[t]):_.IT(e,[t],e)))}}};
_.vZc=function(W,e,t){e=e===void 0?{}:e;typeof e==="function"&&(e={callback:e});t||e._c&&e._c.jsl&&e._c.jsl.h||_.kJ.extend(e,{_c:{jsl:{h:_.Ot("GAPI_HINT_PARAMS")}}});(e.gapiHintOverride||_.Ot("GAPI_HINT_OVERRIDE"))&&(t=_.Yq(document.location.href).gapi_jsh)&&_.kJ.extend(e,{_c:{jsl:{h:t}}});cFZ(W,e)};
_.Gv=function(W,e,t){e=e===void 0?{}:e;W=(W=W in v6?v6[W]:t)||"";t={};for(var b in e){t={key$jscomp$789:t.key$jscomp$789};t.key$jscomp$789=b;var m=function(q){return function(){return String(e[q.key$jscomp$789])}}(t);
W=W.replace(new RegExp("\\$\\{"+t.key$jscomp$789+"\\}","gi"),m);W=W.replace(new RegExp("\\$"+t.key$jscomp$789,"gi"),m)}return W};
_.D8=function(W,e){return GRR(W in v6?v6[W]:{},e)};
GRR=function(W,e){var t=_.Ot("I18N_PLURAL_RULES");t||(t=function(b){return b==1?"one":"other"});
return(W=W["case"+e]||W[t(e)])?W.replace("#",e.toString()):e+""};
BUG=function(W){var e=DRZ(W),t=document.getElementById(e),b=t&&iV9(t);b||t&&!b||(t=Sxs(W,e,function(){if(!iV9(t)){VF2(t);_.ND2(e);var m=_.Sz(_.WZc,e);_.Qm(m,0)}}))};
Sxs=function(W,e,t){var b=document.createElement("link");b.id=e;b.onload=function(){t&&setTimeout(t,0)};
W=_.jh(W);_.VE(b,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(b);return b};
DRZ=function(W){var e=_.DA("A");yE(e,uF(W));return"css-"+hj(e.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.l6R=function(W){var e=oZD();W!==e&&(e=_.B6(),!_.S("web_autonav_allow_off_by_default")&&W||_.oT(0,141,!0),_.oT(0,140,!W),e.save())};
oZD=function(){var W=_.B6();return _.S("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.Ot("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
ZHS=function(W,e){var t,b;W=((t=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(b=t.videoAuthorizationToken)==null?void 0:b.credentialTransferTokens)||[];for(t=0;t<W.length;++t)if(W[t].scope===e)return W[t].token||void 0};
$Rz=function(W){for(var e=0,t=0;t<W.length;t++)e=e*31+W.charCodeAt(t),t<W.length-1&&(e%=0x800000000000);return e%1E5};
_.lc=function(W){return _.HO("ytcsi."+(W||"")+"data_")||kR2(W)};
_.phQ=function(W){W=_.lc(W);W.metadata||(W.metadata={});return W.metadata};
_.yFZ=function(W){W=_.lc(W);W.tick||(W.tick={});return W.tick};
_.Z8=function(W){W=_.lc(W);if(W.gel){var e=W.gel;e.gelInfos||(e.gelInfos={});e.gelTicks||(e.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.j89=function(W){W=_.Z8(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
CzZ=function(W){var e=_.lc(W).nonce;e||(e=jV(16),_.lc(W).nonce=e);return e};
kR2=function(W){var e={tick:{},info:{}};_.Nz("ytcsi."+(W||"")+"data_",e);return e};
nZD=function(){var W=_.HO("ytcsi.debug");W||(W=[],_.Nz("ytcsi.debug",W),_.Nz("ytcsi.reference",{}));return W};
_.$h=function(W){W=W||"";var e=f6D();if(e[W])return e[W];var t=nZD(),b={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};t.push(b);return e[W]=b};
gZG=function(W){W=W||"";var e=f6D();e[W]&&delete e[W];var t=nZD(),b={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};t.push(b);e[W]=b};
f6D=function(){var W=_.HO("ytcsi.reference");if(W)return W;nZD();return _.HO("ytcsi.reference")};
_.JFZ=function(W){return TUG[W]||"LATENCY_ACTION_UNKNOWN"};
s8G=function(W,e,t){t=t===void 0?{}:t;var b=!1;_.MD("ytLoggingEventsDefaultDisabled",!1)&&(b=!0);b=b?null:CJ;t=t===void 0?{}:t;var m=Math.round(t.timestamp||(0,_.eJ)());_.Zt(e,1,m<Number.MAX_SAFE_INTEGER?m:0);m=new xR2;if(t.lact)_.Zt(m,1,isFinite(t.lact)?t.lact:-1);else if(t.timestamp)_.Zt(m,1,-1);else{var q=_.be();_.Zt(m,1,isFinite(q)?q:-1)}if(t.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")){q=t.sequenceGroup;var Q=XgD(q),X=new OHL;_.Zt(X,2,Q);_.Ga(X,1,q);_.bF(m,3,X);t.endOfSequence&&delete Moc[t.sequenceGroup]}_.bF(e,
33,m);(t.sendIsolatedPayload?vtR:GFR)(W,{endpoint:"log_event",payload:e,cttAuthInfo:t.cttAuthInfo,dangerousLogToVisitorSession:t.dangerousLogToVisitorSession},b)};
_.pe=function(){return(_.S("csi_use_time_origin")||_.S("csi_use_time_origin_tvhtml5"))&&_.kh.timeOrigin?Math.floor(_.kh.timeOrigin):_.kh.timing.navigationStart};
_.h6v=function(W,e){_.yx("_start",W,e)};
_.jz=function(W,e){if(!_.S("web_csi_action_sampling_enabled")||!_.lc(e).actionDisabled){var t=_.$h(e||"");_.x4(t.info,W);W.loadType&&(t=W.loadType,_.phQ(e).loadType=t);_.x4(_.j89(e),W);t=CzZ(e);e=_.lc(e).cttAuthInfo;HHS().info(W,t,e)}};
KDg=function(){var W,e,t,b;return((b=_.ee().resolve(_.Wi(pJ))==null?void 0:(W=Fuc())==null?void 0:(e=W.loggingHotConfig)==null?void 0:(t=e.csiConfig)==null?void 0:t.debugTicks)!=null?b:[]).map(function(m){return Object.values(m)[0]})};
_.yx=function(W,e,t){if(!_.S("web_csi_action_sampling_enabled")||!_.lc(t).actionDisabled){var b=CzZ(t),m;if(m=_.S("web_csi_debug_sample_enabled")&&b){(_.ee().resolve(_.Wi(pJ))==null?0:Fuc())&&!Pz2&&(Pz2=!0,_.yx("gcfl",(0,_.eJ)(),t));var q,Q,X;m=(_.ee().resolve(_.Wi(pJ))==null?void 0:(q=Fuc())==null?void 0:(Q=q.loggingHotConfig)==null?void 0:(X=Q.csiConfig)==null?void 0:X.debugSampleWeight)||0;if(q=m!==0)b:{q=KDg();if(q.length>0)for(Q=0;Q<q.length;Q++)if(W===q[Q]){q=!0;break b}q=!1}q?(m=$Rz(b)%m!==
0,_.lc(t).debugTicksExcludedLogged||(q={},q.debugTicksExcluded=m,_.jz(q,t)),_.lc(t).debugTicksExcludedLogged=!0):m=!1}if(!m){W[0]!=="_"&&Vo2(W,t,e);m=_.$h(t||"");m.tick[W]=e||(0,_.eJ)();if(m.callback&&m.callback[W])for(m=_.R(m.callback[W]),q=m.next();!q.done;q=m.next())q=q.value,q();m=_.Z8(t);m.gelTicks&&(m.gelTicks[W]=!0);q=_.yFZ(t);m=e||(0,_.eJ)();_.S("log_repeated_ytcsi_ticks")?W in q||(q[W]=m):q[W]=m;q=_.lc(t).cttAuthInfo;W==="_start"?HHS().baseline(b,e,q):HHS().tick(W,b,e,q);_.iHz(t);return m}}};
Vo2=function(W,e,t){if(_.kh.mark)if(W.startsWith("mark_")||(W="mark_"+W),e&&(W+=" ("+e+")"),t===void 0||_.S("web_csi_disable_alt_time_performance_mark"))_.kh.mark(W);else{t=_.S("csi_use_performance_navigation_timing")?t-_.kh.timeOrigin:t-(_.kh.timeOrigin||_.kh.timing.navigationStart);try{_.kh.mark(W,{startTime:t})}catch(b){}}};
YxG=function(){var W,e=(W=_.kh.getEntriesByType)==null?void 0:W.call(_.kh,"mark");e&&e.forEach(function(t){if(t.name.startsWith("mark_")){var b;(b=_.kh.clearMarks)==null||b.call(_.kh,t.name)}})};
_.z6L=function(){switch(Mfs()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.URZ=function(W){var e={},t=function(q,Q,X){Q=Q.match("_rid")?Q.split("_rid")[0]:Q;typeof X==="number"&&(X=JSON.stringify(X));q.requestIds?q.requestIds.push({endpoint:Q,id:X}):q.requestIds=[{endpoint:Q,id:X}]};
W=_.R(Object.entries(W));for(var b=W.next();!b.done;b=W.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;switch(b){case "GetBrowse_rid":t(e,b,m);break;case "GetGuide_rid":t(e,b,m);break;case "GetHome_rid":t(e,b,m);break;case "GetPlayer_rid":t(e,b,m);break;case "GetSearch_rid":t(e,b,m);break;case "GetSettings_rid":t(e,b,m);break;case "GetTrending_rid":t(e,b,m);break;case "GetWatchNext_rid":t(e,b,m);break;case "yt_red":e.isRedSubscriber=!!m;break;case "yt_ad":e.isMonetized=!!m}}return e};
EZK=function(W,e,t,b,m,q){if(!_.S("web_csi_action_sampling_enabled")||!_.lc(q).actionDisabled){var Q=_.Z8(q);if(Q.gelSpans)Q.gelSpans[W]=!0;else{var X={};Q.gelSpans=(X[W]=!0,X)}LDZ++;W={spanName:W,spanLengthUsec:String(Math.round(e*1E3)),spanNonce:LDZ};b&&(W.spanInfo=b);m&&(W.parentSpanNonce=m);t&&(W.spanStartTimeUsec=String(Math.round(t*1E3)));_.$h(q||"").span[String(W.spanName)]=W;t=_.Z8(q);t.gelSpans||(t.gelSpans={});_.x4(t.gelSpans,W);t=CzZ(q);q=_.lc(q).cttAuthInfo;HHS().span(W,t,q);return W.spanNonce}};
_.AFZ=function(W){var e=_.Ce("aft",W);if(e)return e;e=_.Ot((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var t=e.length,b=0;b<t;b++){var m=_.Ce(e[b],W);if(m)return m}return NaN};
_.NUG=function(W,e){_.Nz("ytglobal.timing"+(e||"")+"ready_",W)};
_.Ce=function(W,e){if(W=_.yFZ(e)[W])return typeof W==="number"?W:W[W.length-1]};
_.iHz=function(W){var e=_.Ce("_start",W),t=_.AFZ(W),b=!dRK;e&&t&&b&&(IN2(Wm2,new eIQ(Math.round(t-e),W)),dRK=!0)};
bMG=function(W){kR2(W);tLv();YxG();W||(_.Ot("TIMING_ACTION")&&_.xq("PREVIOUS_ACTION",_.Ot("TIMING_ACTION")),_.xq("TIMING_ACTION",""))};
_.m_z=function(W){W=W===void 0?{}:W;_.hJ(function(){ne();gZG();bMG();_.NUG(!1);W.cttAuthInfo&&(_.lc().cttAuthInfo=W.cttAuthInfo);_.xq("TIMING_AFT_KEYS",[]);W.isHot?_.fe({loadType:"hot"}):_.fe({loadType:"warm"});_.xq("TIMING_ACTION","");delete _.Ot("TIMING_INFO",{}).yt_lt;_.hJ(_.h6v)(W.startTime,void 0)})()};
_.gy=function(W,e,t,b){e=e===void 0?{}:e;_.hJ(function(){var m=t?t:W;rqZ(m);var q=e.sampleRate;if(!_.S("web_csi_action_sampling_enabled")||q===void 0||q<=1)q=!1;else{var Q=CzZ(m);q=$Rz(Q)%q!==0}q&&(_.lc(m).actionDisabled=!0);_.$h(m||"").info.actionType=W;e.cttAuthInfo&&(_.lc(m).cttAuthInfo=e.cttAuthInfo);_.xq(m+"TIMING_ACTION",W);_.hJ(_.h6v)(e.startTime,m);q={actionType:b||_.JFZ(W)};e.logPreviousAction&&(q.previousAction=_.JFZ(_.Ot("TIMING_ACTION")));(Q=_.fc())&&Q!=="UNDEFINED_CSN"&&(q.clientScreenNonce=
Q);_.fe(q,m);_.NUG(!0,m)})()};
rqZ=function(W){_.hJ(function(){ne(W);gZG(W);bMG(W)})()};
q5g=function(){_.hJ(function(){var W=[],e;for(e in _.HO("ytcsi.".slice(0,-1)))e.endsWith("data_")&&W.push(e.slice(0,-5));W=_.R(W);for(e=W.next();!e.done;e=W.next())rqZ(e.value);ne()})()};
_.Q3g=function(W){return _.hJ(function(){return _.RIc("_start",W)})()};
_.fe=function(W,e,t){_.hJ(_.jz)(W,e,t===void 0?!1:t)};
_.Tv=function(W,e,t){return _.hJ(_.yx)(W,e,t)};
_.RIc=function(W,e){return _.hJ(function(){var t=_.yFZ(e);return W in t})()};
X_2=function(W){if(!_.S("universal_csi_network_ticks"))return"";W=_.I_(W)||"";for(var e=Object.keys(Fm2),t=0;t<e.length;t++){var b=e[t];if(W.includes(b))return b}return""};
a5G=function(W){if(!_.S("universal_csi_network_ticks"))return function(){};
var e=Fm2[W];return e?(_.Jy(e),function(){var t=_.S("universal_csi_network_ticks")?(t=I59[W])?_.Jy(t):!1:!1;return t}):function(){}};
_.Jy=function(W,e,t){return _.hJ(function(){if(_.RIc(W,t))return!1;_.Tv(W,e,t);return!0})()};
_.xh=function(W,e,t){_.hJ(function(){if(!_.Q3g(t)||_.RIc(W,t))return!1;_.Tv(W,e,t);return!0})()};
_.O6=function(W){return _.hJ(_.Ce)(W,void 0)};
ne=function(W){_.Q3g(W)&&_.Tv("aa",void 0,W)};
_.GMQ=function(W,e,t,b,m,q,Q,X,I){var u=w_c();X=new _.Cc({veType:e,youtubeData:q,jspbYoutubeData:X});q=M2({},u);m&&(q.cttAuthInfo=m);m={csn:u,pageVe:X.getAsJson()};_.S("expectation_logging")&&I&&I.screenCreatedLoggingExpectations&&(m.screenCreatedLoggingExpectations=I.screenCreatedLoggingExpectations);t&&t.visualElement?(m.implicitGesture={parentCsn:t.clientScreenNonce,gesturedVe:t.visualElement.getAsJson()},Q&&(m.implicitGesture.gestureType=Q)):t&&_.JC(new _.o_("newScreen() parent element does not have a VE - rootVe",
e));b&&(m.cloneCsn=b);W?jI("screenCreated",m,W,q):_.nJ("screenCreated",m,q);IN2(Df2,new uRG(u));s6.clear();cqv.clear();vc2.clear();return u};
hy=function(W,e,t,b,m){D_L(W,e,t,[b],m===void 0?!1:m)};
D_L=function(W,e,t,b,m){m=m===void 0?!1:m;for(var q=M2({cttAuthInfo:g3(e)||void 0},e),Q=_.R(b),X=Q.next();!X.done;X=Q.next()){X=X.value;var I=X.getAsJson();(_.kJ.isEmpty(I)||!I.trackingParams&&!I.veType)&&_.JC(Error("uf"));if(_.S("no_client_ve_attach_unless_shown")){var u=S59(X,e);if(I.veType&&!cqv.has(u)&&!vc2.has(u)&&!m){if(!_.S("il_attach_cache_limit")||s6.size<1E3){s6.set(u,[W,e,t,X]);return}_.S("il_attach_cache_limit")&&s6.size>1E3&&_.JC(new _.o_("IL Attach cache exceeded limit"))}X=S59(t,e);
s6.has(X)?BLZ(t,e):vc2.set(X,!0)}}b=b.filter(function(c){c.csn!==e?(c.csn=e,c=!0):c=!1;return c});
t={csn:e,parentVe:t.getAsJson(),childVes:_.yO(b,function(c){return c.getAsJson()})};
e==="UNDEFINED_CSN"?H6("visualElementAttached",q,t):W?jI("visualElementAttached",t,W,q):_.nJ("visualElementAttached",t,q)};
l5G=function(W,e,t,b,m){ocG(W,e,t,m)};
ocG=function(W,e,t,b){ZMK(t,e);var m=M2({cttAuthInfo:g3(e)||void 0},e);t={csn:e,ve:t.getAsJson(),eventType:1};b&&(t.clientData=b);e==="UNDEFINED_CSN"?H6("visualElementShown",m,t):W?jI("visualElementShown",t,W,m):_.nJ("visualElementShown",t,m)};
$_c=function(W,e,t,b){ZMK(t,e);var m=M2({cttAuthInfo:g3(e)||void 0},e);t={csn:e,ve:t.getAsJson(),eventType:4};b&&(t.clientData=b);e==="UNDEFINED_CSN"?H6("visualElementShown",m,t):W?jI("visualElementShown",t,W,m):_.nJ("visualElementShown",t,m)};
kMc=function(W,e,t,b,m){var q=(b=b===void 0?!1:b)?16:8;b=M2({cttAuthInfo:g3(e)||void 0,endOfSequence:b},e);t={csn:e,ve:t.getAsJson(),eventType:q};m&&(t.clientData=m);e==="UNDEFINED_CSN"?H6("visualElementHidden",b,t):W?jI("visualElementHidden",t,W,b):_.nJ("visualElementHidden",t,b)};
yqg=function(W,e,t,b,m){p_G(W,e,t,void 0,b,m)};
p_G=function(W,e,t,b,m){ZMK(t,e);b=b||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var q=M2({cttAuthInfo:g3(e)||void 0},e);t={csn:e,ve:t.getAsJson(),gestureType:b};m&&(t.clientData=m);e==="UNDEFINED_CSN"?H6("visualElementGestured",q,t):W?jI("visualElementGestured",t,W,q):_.nJ("visualElementGestured",t,q)};
j3G=function(W,e,t,b){var m=M2({cttAuthInfo:g3(e)||void 0},e);t={csn:e,ve:t.getAsJson(),clientData:b};e==="UNDEFINED_CSN"?H6("visualElementStateChanged",m,t):W?jI("visualElementStateChanged",t,W,m):_.nJ("visualElementStateChanged",t,m)};
C9v=function(){var W=vr2(16);for(var e=[],t=0;t<W.length;t++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[t]&63));return e.join("")};
H6=function(W,e,t){ncK.push({payloadName:W,payload:t,jspbPayload:void 0,options:e});f5v||(f5v=BOG())};
Gqc=function(W){if(ncK){for(var e=_.R(ncK),t=e.next();!t.done;t=e.next())t=t.value,t.payload&&(t.payload.csn=W.csn,_.nJ(t.payloadName,t.payload,t.options));ncK.length=0}f5v=0};
S59=function(W,e){return""+W.getAsJson().veType+W.getAsJson().veCounter+e};
ZMK=function(W,e){if(_.S("no_client_ve_attach_unless_shown")){var t=S59(W,e);cqv.set(t,!0);BLZ(W,e)}};
BLZ=function(W,e){W=S59(W,e);s6.has(W)&&(e=s6.get(W)||[],hy(e[0],e[1],e[2],e[3],!0),s6.delete(W))};
M2=function(W,e){_.S("log_sequence_info_on_gel_web")&&(W.sequenceGroup=e);return W};
_.Ke=function(W,e,t){_.hJ(hy)(void 0,W,e,t)};
_.P6=function(W,e,t){_.hJ(D_L)(void 0,W,e,t)};
_.Vx=function(W,e){_.hJ(l5G)(void 0,W,e,void 0,void 0,void 0)};
_.ic=function(W,e,t){_.hJ(function(){_.VZ(e,function(b){$_c(void 0,W,b,t)})})()};
_.Yh=function(W,e,t,b){_.hJ(function(){_.VZ(e,function(m){kMc(void 0,W,m,t,b)})})()};
_.zv=function(W,e,t){_.hJ(yqg)(void 0,W,e,t,void 0)};
_.U6=function(W,e,t,b){_.hJ(p_G)(void 0,W,e,t,b,void 0)};
_.Le=function(W,e,t){_.hJ(j3G)(void 0,W,e,t,void 0)};
gcQ=function(W,e){E6.set(W,e)};
TLL=function(W){return N2?N2.enabledSpans?!!N2.enabledSpans[W]:!0:!1};
JqZ=function(W){if(!N2)throw Error("xf");N2.processors.push(W)};
x_R=function(W,e){if(W){e=e===void 0?1:e;if(W&&(W.endTime=performance.now(),e&&(W.status=e),e=N2)){e=_.R(e.processors);for(var t=e.next();!t.done;t=e.next()){var b=void 0,m=void 0;(m=(b=t.value).onSpanEnd)==null||m.call(b,W)}}if(e=N2){if(W!==e.activeSpan)throw Error("yf");var q;e.activeSpan=(q=e.activeSpan)==null?void 0:q.parent}}};
OMK=function(W,e,t){var b;if((b=N2)&&TLL(W)){var m=b.nextSpanId++,q=b.activeSpan;W={id:m,parent:q,name:W,attributes:e,traceId:q?q.traceId:m,sessionId:b.sessionId,startTime:performance.now(),status:0};if(b.activeSpan){var Q;(Q=b.activeSpan).children||(Q.children=[]);b.activeSpan.children.push(W)}b=_.R(b.processors);for(Q=b.next();!Q.done;Q=b.next())m=e=void 0,(m=(e=Q.value).onSpanStart)==null||m.call(e,W);b=W}else b=void 0;W=N2;b=b&&W?W.activeSpan=b:void 0;if(!b)return t();try{var X=t(b);x_R(b);return X}catch(I){throw x_R(b,
2),I;}};
MLS=function(W,e){var t=Object.keys(W);W=new _.o_("[Command Handler] "+e,{filteredCommandNames:t,originalCommand:W});_.gQ(W)};
s3Q=function(W,e){MLS(W,e+" was called but not set")};
hIv=function(W){return function(){return new W}};
dy=function(W){return function(){return _.ee().resolve(W)}};
HMQ=function(W,e){var t=_.l(W,_.hC);if(t&&(t=e[t.signal]))return t();W=_.R(Object.keys(W));for(t=W.next();!t.done;t=W.next())if(t=t.value,e[t]&&(t=e[t]))return t()};
Wm=function(W,e,t,b){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:e,rootVe:t,webPageType:b===void 0?"WEB_PAGE_TYPE_BROWSE":b}}}};
Kmg=function(W,e,t){var b=e=e===void 0?0:e;t=t===void 0?0:t;var m=t-b;return _.ew(W,"PPSV",void 0,void 0,(m>600?0:m<60||t<=0||b/t>.9)?0:e)};
_.ew=function(W,e,t,b,m){var q="/watch?v="+W;W={videoId:W};e&&(W.playlistId=e,q+="&list="+e);b&&(q+="&pp="+b);m&&(W.startTimeSeconds=m,q+="&t="+m+"s");e={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:q,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};t&&(e.clickTrackingParams=t);b&&(_.l(e,_.z4).playerParams=b);return e};
P9G=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
VLc=function(W){if(W){var e;if(W){var t=(e=_.l(W.commandMetadata,_.ez))==null?void 0:e.url;e=!(!t||t==="/service_ajax")}else e=!1;if(e)return W;var b;if(W=(b=_.l(W,_.wy))==null?void 0:b.commands)for(b=_.R(W),W=b.next();!W.done;W=b.next())if(W=VLc(W.value))return W}};
_.tm=function(W){return{runs:[{text:W}]}};
iMv=function(W,e){return W&&e?{runs:[{text:W,navigationEndpoint:e}]}:void 0};
bX=function(W){return W?_.tm(W):void 0};
_.ml=function(W){return W?{simpleText:W}:void 0};
_.rO=function(W){var e=W.type;W=W.payload;e={type:e};W!==void 0&&(e.payload=W);return e};
Y5Z=function(W,e,t){for(var b=Object.assign({},W),m=_.R(Object.keys(e)),q=m.next();!q.done;q=m.next()){q=q.value;var Q=W[q],X=e[q];if(X===void 0)delete b[q];else if(Q===void 0)b[q]=X;else if(Array.isArray(X)&&Array.isArray(Q))b[q]=t?[].concat(_.kP(Q),_.kP(X)):X;else if(!Array.isArray(X)&&_.tk(X)&&!Array.isArray(Q)&&_.tk(Q))b[q]=Y5Z(Q,X,t);else if(typeof X===typeof Q)b[q]=X;else return e=new _.o_("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:q,originalValue:Q,updateValue:X}),
_.gQ(e),W}return b};
Lmc=function(W){if(!W.length)return"";try{if(zIs)return zIs.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(Q){}for(var e=0,t=[],b=W.length;e<b;){for(var m=0;m<1024&&e<b;){var q=W[e++];if(q<128)U_v[m++]=q;else{if(q<224)q=(q&31)<<6|W[e++]&63;else if(q<240)q=(q&15)<<12|(W[e++]&63)<<6|W[e++]&63;else{if(m+1===1024){--e;break}q=(q&7)<<18|(W[e++]&63)<<12|(W[e++]&63)<<6|W[e++]&63;q-=65536;U_v[m++]=55296|q>>10;q=56320|q&1023}U_v[m++]=q}}q=String.fromCharCode.apply(String,
U_v);m<1024&&(q=q.substring(0,m));t.push(q)}return t.join("")};
Aqg=function(W,e){var t;if((t=Ecc)==null?0:t.encodeInto)return e=Ecc.encodeInto(W,e),e.read<W.length?W.length*4:e.written;for(var b=t=0;b<W.length;b++){var m=W.charCodeAt(b);m<128?e[t++]=m:(m<2048?e[t++]=m>>6|192:((m&64512)===55296&&b+1<W.length&&(W.charCodeAt(b+1)&64512)===56320?(m=65536+((m&1023)<<10)+(W.charCodeAt(++b)&1023),e[t++]=m>>18|240,e[t++]=m>>12&63|128):e[t++]=m>>12|224,e[t++]=m>>6&63|128),e[t++]=m&63|128)}return t};
NLQ=function(W,e){W=new Uint8Array(W);e&&W.set(e);return W};
_.R1=function(W){W=new d_c(new WKL([_.Xb(decodeURIComponent(W))]));if(eDS(W,2)){var e=qf(W);var t=W.pos;var b=W.arrayView;t=t===void 0?0:t;var m=e===void 0?-1:e;t=t===void 0?0:t;m=m===void 0?-1:m;if(b.totalLength&&m){m<0&&(m=b.totalLength-t);b.focus(t);if(!(t-b.arrayPos+m<=b.arrays[b.arrayIdx].length)){var q=b.arrayIdx,Q=b.arrayPos;b.focus(t+m-1);Q=new Uint8Array(b.arrayPos+b.arrays[b.arrayIdx].length-Q);for(var X=0,I=q;I<=b.arrayIdx;I++)Q.set(b.arrays[I],X),X+=b.arrays[I].length;b.arrays.splice(q,
b.arrayIdx-q+1,Q);b.arrayIdx=0;b.arrayPos=0;b.focus(t)}q=b.arrays[b.arrayIdx];b=new DataView(q.buffer,q.byteOffset+t-b.arrayPos,m)}else b=new DataView(new ArrayBuffer(0));b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength);W.pos+=e;e=b}else e=void 0;e=e?Lmc(e):void 0;W=eDS(W,4)?qf(W):void 0;b=tAR[W];if(typeof b==="undefined")throw W=new _.o_("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.gQ(W),W;return{entityTypeFieldNumber:W,entityType:b,entityId:e}};
_.X4=function(W,e,t){t=t===void 0?0:t;var b=new bsQ;if(Ecc)W=Ecc.encode(W);else{var m=new Uint8Array(Math.ceil(W.length*1.2)),q=Aqg(W,m);m.length<q&&(m=new Uint8Array(q),q=Aqg(W,m));m.length>q&&(m=m.subarray(0,q));W=m}W!==void 0&&(QJ(b,18),m=W.length,QJ(b,m),F4(b,m),b.buf.set(W,b.pos),b.pos+=m);W=mGZ[e];if(typeof W==="undefined")throw t=new _.o_("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),_.gQ(t),t;W!==void 0&&(QJ(b,32),QJ(b,W));QJ(b,40);QJ(b,1);e=new Uint8Array(b.buf.buffer,
b.buf.byteOffset,b.pos);return encodeURIComponent(_.eK(e,t))};
rBG=function(W){W=W.key||W.id;if(!W)throw Error("zf");return W};
RDK=function(W,e){W=W===void 0?{}:W;return qUv(W,e)};
QZD=function(W,e,t,b){if(b===void 0)return b=Object.assign({},W[e]||{}),t=(delete b[t],b),b={},Object.assign({},W,(b[e]=t,b));var m={},q={};return Object.assign({},W,(q[e]=Object.assign({},W[e],(m[t]=b,m)),q))};
FKR=function(W,e,t,b,m){var q=W[e];if(q==null||!q[t])return W;b=Y5Z(q[t],b,m==="REPEATED_FIELDS_MERGE_OPTION_APPEND");m={};q={};return Object.assign({},W,(q[e]=Object.assign({},W[e],(m[t]=b,m)),q))};
_.I1=function(W,e,t){return W[e]?W[e][t]||null:null};
Icz=function(){if(XQv)return XQv();var W={};XQv=WH("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(e,t){t(1)&&K_(HH(e,"EntityStore",{keyPath:"key"}),"entityType","entityType");t(2)&&(e=HH(e,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),K_(e,"byParentEntityKey","parentEntityKey"),K_(e,"byChildEntityKey","childEntityKey"))},
version:3});return XQv()};
acR=function(W){return _.iG(Icz(),W)};
a1=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
uID=function(W){return _.iG(wQG(),W)};
cBs=function(W){return new wO("WRONG_DATA_TYPE",{encoderVersion:W})};
vFc=function(W){return W instanceof Error?new wO("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new wO("UNKNOWN_ENCODE_ERROR")};
Ghs=function(W){return W instanceof Error?new wO("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new wO("UNKNOWN_DECODE_ERROR")};
DG2=function(W,e){W=W instanceof wO?W:e(W);_.gQ(W);throw W;};
SUR=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var e=new Uint8Array(16);e.set(W);return e};
oFZ=function(W){var e=BJQ[W];if(e)return e;_.JC(new _.o_("Entity model not found.",{entityType:W}))};
_.uX=function(){lcG||(lcG=ZsG());return lcG};
ZsG=function(){var W,e,t;return _.F(function(b){if(b.nextAddress==1)return _.Qh(b,2),_.a(b,_.d8(),4);if(b.nextAddress!=2){W=b.yieldResult;if(!W||!_.Bi()||typeof _.tz.BroadcastChannel==="undefined")return b.return();e=new $Gg;return b.return(new cm(W,e))}t=_.w9(b);t instanceof Error&&_.gQ(t);return b.return()})};
_.vm=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1){t=W.mutations;if(!t||t.length<=0)return b.return();e&&e.dispatch(_.rO({type:"ENTITY_LOADED",payload:t}));return _.a(b,kh2(t),2)}t.length=0;_.u8(b)})};
kh2=function(W){var e;return _.F(function(t){return t.nextAddress==1?_.a(t,_.uX(),2):(e=t.yieldResult)?_.a(t,_.Gq(e,"readwrite",function(b){for(var m={},q=_.R(W),Q=q.next(),X={};!Q.done;X={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Q=q.next())X.mutation$jscomp$4=Q.value,X.mutation$jscomp$4.entityKey&&pQK(X.mutation$jscomp$4)&&(X.mutationEntityType$jscomp$3=(0,_.kJ.getAnyKey)(X.mutation$jscomp$4.payload),Q=void 0,X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Q=function(I){return function(){return _.yBK(b,
I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Q=function(I){return function(){return jZK(b,I.mutation$jscomp$4.entityKey)}}(X)),X.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Q=function(I){return function(){return CSK(b,I.mutation$jscomp$4.entityKey,I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(X)),Q&&(m[X.mutation$jscomp$4.entityKey]=
m[X.mutation$jscomp$4.entityKey]?m[X.mutation$jscomp$4.entityKey].then(Q):Q()));
return Oi.all(Object.values(m))}),0):t.return()})};
pQK=function(W){var e;W=(e=W.options)==null?void 0:e.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
gFg=function(W,e){var t,b;_.F(function(m){if(m.nextAddress==1)return _.a(m,_.uX(),2);if(m.nextAddress!=3)return(t=m.yieldResult)?_.a(m,_.Gq(t,"readonly",function(q){var Q={},X=Object.keys(e).map(function(I){var u=e[I]?[].concat(_.kP(e[I])):[];return nF2(q,I,u,Q)});
return Oi.all(X).then(function(){return Q})}),3):m.return();
b=m.yieldResult;Object.keys(b).length>0&&W.dispatch(fcQ(b));_.u8(m)})};
nF2=function(W,e,t,b){return DN(W,e,t).then(function(m){b[e]=TJS(t,m)})};
TJS=function(W,e){if(e.length!==W.length)throw Error("Cf");return e.reduce(function(t,b,m){t[W[m]]=b;return t},{})};
Osz=function(W){var e=W.filter(function(m){var q;return(m==null?void 0:(q=m.transferEntity)==null?void 0:q.transferState)==="TRANSFER_STATE_COMPLETE"}).length,t=W.filter(function(m){var q;
return(m==null?void 0:(q=m.transferEntity)==null?void 0:q.transferState)==="TRANSFER_STATE_FAILED"}).length,b=W.filter(function(m){var q;
return(m==null?void 0:(q=m.transferEntity)==null?void 0:q.transferState)&&JBQ.includes(m.transferEntity.transferState)});
if(!(e||b!=null&&b.length))return 0;e=_.xGK(b)+e;W=W.length-t;return W===0?0:Math.round(e*100/W)/100};
_.xGK=function(W){var e=[];e=e.concat.apply(e,_.kP(W.filter(function(q){return q.streamEntity}).map(function(q){var Q=Object.assign({},q.streamEntity),X,I=(X=q.transferEntity)==null?void 0:X.transferState;
Q.streamsProgress=Q.streamsProgress||[];Q.streamsProgress=Q.streamsProgress.map(function(u){var c=Object.assign({},u);c.numBytesDownloaded=I==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded;return c});
return Q}).map(function(q){return q.streamsProgress})));
var t=W=0;e=_.R(e);for(var b=e.next();!b.done;b=e.next()){var m=b.value;b=Number(m.numBytesDownloaded);m=Number(m.numTotalBytes);t+=isNaN(b)?0:b;W+=isNaN(m)?0:m}return W===0?0:Math.round(t*100/W)/100};
MAc=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var e=(0,_.eJ)()/1E3;return Number(W.expirationTimestamp)>=e};
Sw=function(W){return W&&W.expirationTimestamp&&W.action?MAc(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Bm=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
sZv=function(W){var e=new bsQ;if(W!==void 0){var t=Math.ceil(Math.log2(W.length*4+2)/7);t=t===void 0?2:t;QJ(e,10);e.submessagePosStack.push(e.pos);e.submessagePosStack.push(t);e.pos+=t;F4(e,W.length*1.2);t=Aqg(W,e.buf.subarray(e.pos));e.pos+t>e.buf.length&&(F4(e,t),t=Aqg(W,e.buf.subarray(e.pos)));e.pos+=t;W=e.submessagePosStack.pop();t=e.submessagePosStack.pop();for(var b=e.pos-t-W;W--;){var m=W?128:0;e.view.setUint8(t++,b&127|m);b>>=7}}e=new Uint8Array(e.buf.buffer,e.buf.byteOffset,e.pos);return(new TextDecoder("utf-8")).decode(e)};
_.o1=function(W){var e=0;W=_.R(W);for(var t=W.next(),b={};!t.done;b={transferState$jscomp$3:void 0},t=W.next()){var m=t.value,q=void 0;t=(q=m.streamEntity)!=null?q:{};q=void 0;b.transferState$jscomp$3=(q=m.transferEntity)==null?void 0:q.transferState;q=m=void 0;((m=t)==null?0:(q=m.streamsProgress)==null?0:q.length)&&t.streamsProgress.forEach(function(Q){return function(X){X=Number(Q.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?X.numTotalBytes:X.numBytesDownloaded);isFinite(X)&&(e+=X)}}(b))}return e};
hDg=function(W){return W.some(function(e){var t;if(!(e==null?0:(t=e.transferEntity)==null?0:t.transferState)){var b;return!(e==null?0:(b=e.policyEntity)==null?0:b.action)||e.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return JBQ.includes(e.transferEntity.transferState)})};
HsD=function(W,e){if(!e)return!1;if(_.S("of_pb_en_po_ks"))return!0;var t;W=(t=_.I1(W,"offlineVideoPolicy",_.X4(e,"offlineVideoPolicy")))!=null?t:void 0;return!!W&&Sw(W)};
_.S4R=function(W){var e=["TRANSFER_STATE_COMPLETE"];e=e===void 0?KKQ:e;return W.filter(function(t){var b,m;return e.includes((m=(b=t.transferEntity)==null?void 0:b.transferState)!=null?m:"TRANSFER_STATE_UNKNOWN")})};
Bf9=function(W,e){if(e){var t,b=(t=_.I1(W,"playbackData",_.X4(e,"playbackData")))!=null?t:null,m;t=(m=_.I1(W,"transfer",_.X4(e,"transfer")))!=null?m:null;var q;m=(q=_.I1(W,"offlineVideoStreams",_.X4(e,"offlineVideoStreams")))!=null?q:null;var Q;W=(Q=_.I1(W,"offlineVideoPolicy",_.X4(e,"offlineVideoPolicy")))!=null?Q:null;if(b||t||m||W)return{playbackDataEntity:b,transferEntity:t,streamEntity:m,policyEntity:W}}};
_.lX=function(W){var e=W.playbackData;if(!e)return[];var t=[];e=_.R(Object.keys(e));for(var b=e.next();!b.done;b=e.next()){var m=b.value;if(!oGL(W,_.R1(m).entityId)&&(b=Bf9(W,_.R1(m).entityId))){var q=void 0,Q=void 0;m=(Q=Number((q=_.I1(W,"playbackData",m))==null?void 0:q.streamDownloadTimestampSeconds))!=null?Q:(0,_.eJ)();t.push({entity:b,streamDownloadTimestamp:m})}}return t.sort(function(X,I){var u=X.streamDownloadTimestamp,c=I.streamDownloadTimestamp;return c===u?X.entity.streamEntity&&!I.entity.streamEntity?
1:-1:c-u}).map(function(X){return X.entity})};
lJ9=function(W){return _.S4R(_.lX(W))};
_.ZxK=function(W){return _.lX(W).filter(function(e){var t;if(((t=e.policyEntity)==null?0:t.action)&&e.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var b;if((b=e.transferEntity)==null?0:b.transferState){var m;return JBQ.includes((m=e.transferEntity)==null?void 0:m.transferState)}return!0})};
oGL=function(W,e){var t;return((t=_.I1(W,"downloadStatusEntity",_.X4(e,"downloadStatusEntity")))==null?void 0:t.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
$Uc=function(W){var e;if(W==null?0:(e=W.playbackDataEntity)==null?0:e.key)return _.R1(W.playbackDataEntity.key).entityId;var t;if(W==null?0:(t=W.transferEntity)==null?0:t.key)return _.R1(W.transferEntity.key).entityId;var b;if(W==null?0:(b=W.streamEntity)==null?0:b.key)return _.R1(W.streamEntity.key).entityId;var m;if(W==null?0:(m=W.policyEntity)==null?0:m.key)return _.R1(W.policyEntity.key).entityId};
pMv=function(W){var e=new Set,t;W=(t=W.mainDownloadsListEntity)==null?void 0:t[k0K];var b;if(!(W==null?0:(b=W.downloads)==null?0:b.length))return e;var m;W==null||(m=W.downloads)==null||m.forEach(function(q){(q==null?0:q.videoItem)&&e.add(q.videoItem)});
return e};
ZN=function(W,e){if(e){var t=_.I1(W,"mainVideoEntity",_.X4(e,"mainVideoEntity")),b=_.I1(W,"downloadStatusEntity",_.X4(e,"downloadStatusEntity")),m=_.I1(W,"ytMainChannelEntity",_.X4(e,"ytMainChannelEntity")),q={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=Bf9(W,e);b=(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.S("woffle_render_failed_download_state_ks")&&(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&b&&(W=q);if(W&&t&&
m)return Object.assign({},{videoEntity:t,channelEntity:m},W)}};
jUG=function(W,e){return yXc(W,e)==="TRANSFER_STATE_COMPLETE"&&HsD(W,e)};
C$L=function(W,e){if(!e)return!1;var t;W=(t=_.I1(W,"playbackData",_.X4(e,"playbackData")))!=null?t:void 0;return!!W&&!!W.playerResponseJson};
yXc=function(W,e){if(!e)return"TRANSFER_STATE_UNKNOWN";var t=_.I1(W,"transfer",_.X4(e,"transfer"));if(t){var b;return(b=t.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}t=_.I1(W,"offlineOrchestrationActionWrapperEntity",_.X4(e,"offlineOrchestrationActionWrapperEntity"));W=_.I1(W,"mainVideoEntity",_.X4(e,"mainVideoEntity"));return t||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
nG2=function(W,e){if(!e)return"TRANSFER_STATE_UNKNOWN";if(W=_.I1(W,"transfer",_.X4(e,"transfer"))){var t;return(t=W.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
fJG=function(W,e){return e&&(W=_.I1(W,"videoPlaybackPositionEntity",_.X4(e,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
TfR=function(W,e){return gGG(W).some(function(t){var b;return(t==null?void 0:(b=t.mainPlaylistEntity)==null?void 0:b.playlistId)===e})};
xUK=function(W,e,t){var b=JX2(W,e);if(!b.length)return[];e=[];b=_.R(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var q=ZN(W,m);t&&yXc(W,m)!=="TRANSFER_STATE_COMPLETE"||q&&e.push(q)}return e};
JX2=function(W,e){if(!e)return[];var t=_.X4(e,"mainPlaylistEntity"),b;e=(b=W.mainPlaylistEntity)==null?void 0:b[t];b=[];if(e==null||!e.videos)return b;e=_.R(e.videos);for(t=e.next();!t.done;t=e.next()){t=t.value;var m=void 0,q=void 0,Q=void 0,X=(m=W)==null?void 0:(q=m.mainPlaylistVideoEntity)==null?void 0:(Q=q[t])==null?void 0:Q.video;X&&(t=_.R1(X).entityId)&&b.push(t)}return b};
OxS=function(W,e){if(e){var t=_.I1(W,"mainPlaylistEntity",_.X4(e,"mainPlaylistEntity")),b=_.I1(W,"mainPlaylistDownloadStateEntity",_.X4(e,"mainPlaylistDownloadStateEntity"));W=_.I1(W,"ytMainChannelEntity",_.X4(e,"ytMainChannelEntity"));if(b&&t)return Object.assign({},{mainPlaylistEntity:t,mainPlaylistDownloadStateEntity:b},!!W&&{channelEntity:W})}};
gGG=function(W){return M3v(W).sort(function(e,t){return t.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedPlaylistEntities})};
M3v=function(W){var e=W.mainPlaylistDownloadStateEntity,t=[];if(!e)return t;for(var b=_.R(Object.keys(e)),m=b.next();!m.done;m=b.next()){var q=m.value;m=OxS(W,_.R1(q).entityId);var Q=void 0;q=Number((Q=e[q])==null?void 0:Q.addedTimestampMillis);Q=isNaN(q)?(0,_.eJ)():q;m!==void 0&&t.push({downloadedPlaylistEntities:m,addedTimestampMillis:Q})}return t};
sU2=function(W){var e,t=(e=W.mainPlaylistVideoEntity)!=null?e:{};return new Set(gGG(W).reduce(function(b,m){b=b===void 0?[]:b;var q,Q;m==null||(q=m.mainPlaylistEntity)==null||(Q=q.videos)==null||Q.forEach(function(X){var I;(X=(I=t[X])==null?void 0:I.video)&&b.push(X)});
return b},[]))};
h99=function(W){return"downloadedMusicPlaylistEntities"in W};
HxG=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
KWG=function(W){return"videoEntity"in W&&"channelEntity"in W};
P$R=function(W){var e=W.musicPlaylistDownloadMetadataEntity,t=[];if(!e)return t;for(var b=_.R(Object.keys(e)),m=b.next();!m.done;m=b.next()){m=m.value;a:{var q=W,Q=_.R1(m).entityId;if(Q){var X=_.I1(q,"musicPlaylist",_.X4(Q,"musicPlaylist"));q=_.I1(q,"musicPlaylistDownloadMetadataEntity",_.X4(Q,"musicPlaylistDownloadMetadataEntity"));if(X&&q){X={musicPlaylistEntity:X,musicPlaylistDownloadStateEntity:q};break a}}X=void 0}q=void 0;m=Number((q=e[m])==null?void 0:q.addedTimestampMillis);m=isNaN(m)?(0,_.eJ)():
m;X!==void 0&&t.push({downloadedMusicPlaylistEntities:X,addedTimestampMillis:m})}return t};
V3K=function(W){var e=new Set;W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,"musicPlaylistEntity"in t&&"musicPlaylistDownloadStateEntity"in t){t=_.R(t.musicPlaylistEntity.tracks);for(var b=t.next();!b.done;b=t.next())e.add(b.value)}return e};
ixG=function(W,e){if(e){var t=_.I1(W,"musicTrack",_.X4(e,"musicTrack")),b=_.I1(W,"musicArtist",_.X4(e,"musicArtist"))||{};if((W=Bf9(W,e))&&t&&b)return Object.assign({},{musicTrackEntity:t,musicArtistEntity:b},W)}};
Y4R=function(W){var e=W.musicTrackDownloadMetadataEntity,t=[];if(!e)return[];e=_.R(Object.keys(e));for(var b=e.next();!b.done;b=e.next()){var m=b.value;b=ixG(W,_.R1(m).entityId);var q=void 0;m=Number((q=_.I1(W,"musicTrackDownloadMetadataEntity",m))==null?void 0:q.addedTimestampMillis);q=isNaN(m)?(0,_.eJ)():m;b!==void 0&&t.push({downloadedMusicEntities:b,addedTimestampMillis:q})}return t};
LW9=function(W,e){if(!e)return[];if(Object.values(z9D).includes(e))return UUS(W,e);e=_.X4(e,"musicPlaylist");var t;W=(t=W.musicPlaylist)==null?void 0:t[e];t=[];if(W==null||!W.tracks)return t;W=_.R(W.tracks);for(e=W.next();!e.done;e=W.next())(e=_.R1(e.value).entityId)&&t.push(e);return t};
UUS=function(W,e){var t=new Set,b=P$R(W).map(function(q){return q.downloadedMusicPlaylistEntities});
b=V3K(b);b=_.R(b);for(var m=b.next();!m.done;m=b.next())(m=_.R1(m.value).entityId)&&t.add(m);return EGR(W).downloadedMusicEntities.filter(function(q){var Q;if((Q=q.musicTrackEntity)!=null&&Q.videoId){q=q.musicTrackEntity;if(Q=e==="PPOM"?!0:!t.has(q.videoId))b:switch(q=q.musicVideoType,e){case "PPSE":Q=q==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Q=q!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}q=Q}else q=!1;return q}).map(function(q){var Q;
return(Q=q.musicTrackEntity)==null?void 0:Q.videoId})};
EGR=function(W){var e=Y4R(W).sort(function(t,b){return b.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return"downloadedMusicEntities"in t?t.downloadedMusicEntities:h99(t)?t.downloadedMusicPlaylistEntities:{}});
W=P$R(W).sort(function(t,b){return b.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return"downloadedMusicEntities"in t?t.downloadedMusicEntities:h99(t)?t.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:e,downloadedMusicPlaylistEntities:W}};
Nfz=function(W,e){e=_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?LW9(W,e):JX2(W,e);if(!e.length)return"TRANSFER_STATE_UNKNOWN";e=e.map(function(t){return nG2(W,t)});
return AXv(e)};
AXv=function(W){var e=new Set(W);if(e.has("TRANSFER_STATE_FAILED")&&e.size===1)return"TRANSFER_STATE_FAILED";e.delete("TRANSFER_STATE_FAILED");if(e.has("TRANSFER_STATE_UNKNOWN")&&e.size===1)return"TRANSFER_STATE_PRE_TRANSFER";e.delete("TRANSFER_STATE_UNKNOWN");if(e.has("TRANSFER_STATE_PRE_TRANSFER")&&e.size===1||e.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=e.has("TRANSFER_STATE_TRANSFERRING");e=e.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||e?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
$g=function(W){var e=W.mainVideoDownloadStateEntity,t=[];if(!e)return[];e=_.R(Object.keys(e));for(var b=e.next();!b.done;b=e.next()){var m=b.value;if(!oGL(W,_.R1(m).entityId)){b=ZN(W,_.R1(m).entityId);var q=void 0,Q=void 0;m=(Q=Number((q=_.I1(W,"mainVideoDownloadStateEntity",m))==null?void 0:q.addedTimestampMillis))!=null?Q:(0,_.eJ)();b!==void 0&&t.push({downloadedVideoEntities:b,addedTimestampMillis:m})}}return t};
dUG=function(W){return $g(W).sort(function(e,t){return t.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return e.downloadedVideoEntities})};
_.ekQ=function(W){var e=sU2(W),t=_.kg(W),b=pMv(W),m=$g(W).filter(function(Q){var X,I;if((Q==null?void 0:(X=Q.downloadedVideoEntities)==null?void 0:(I=X.transferEntity)==null?void 0:I.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var u,c;Q=Q==null?void 0:(u=Q.downloadedVideoEntities)==null?void 0:(c=u.videoEntity)==null?void 0:c.key;return _.S("kevlar_use_library_entity")?Q&&(b.has(Q)||t[Q]):Q&&!e.has(Q)}),q=M3v(W).filter(function(Q){return Nfz(W,Q.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.kP(m),_.kP(q)).sort(function(Q,X){return X.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return WOc(Q)})};
tOZ=function(W,e){if(e&&HsD(W,e)){var t,b,m=(b=(t=_.I1(W,"playbackData",_.X4(e,"playbackData")))!=null?t:void 0)==null?void 0:b.playerResponseJson;if(m){try{var q=JSON.parse(m);var Q=_.I1(W,"transfer",_.X4(e,"transfer")),X=fJG(W,e);X&&(q=Object.assign({},q,{playerConfig:Object.assign({},q.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+X*1E3}}})}));q.cotn=Q==null?void 0:Q.cotn}catch(I){}return q}}};
_.mdL=function(W){var e,t,b;W=(b=(t=((e=W.downloadsPageViewConfigurationEntity)!=null?e:{})[_.pG])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?b:{};var m;return(m=_.l(W,bfv))!=null?m:{}};
_.kg=function(W){var e,t,b;W=(b=(t=((e=W.mainDownloadsListEntity)!=null?e:{})[_.rrZ])==null?void 0:t.downloads)!=null?b:[];e={};t=_.R(W);for(b=t.next();!b.done;b=t.next())W=void 0,e[(W=b.value.videoItem)!=null?W:""]=!0;return e};
qWG=function(W){var e=_.kg(W);if(Object.keys(e).length===0)return!1;var t=W.mainVideoEntity;if(!t)return!0;t=_.R(Object.keys(t));for(var b=t.next();!b.done;b=t.next()){b=b.value;var m=_.R1(b).entityId;if(e[b]&&!oGL(W,m))return!1}return!0};
_.yJ=function(W){var e=_.kg(W);return $g(W).sort(function(t,b){return t.addedTimestampMillis-b.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities}).filter(function(t){var b;
return(t=t==null?void 0:(b=t.videoEntity)==null?void 0:b.key)&&!!e[t]})};
WOc=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
RkZ=function(W){var e=_.kg(W),t=sU2(W),b=$g(W).filter(function(m){var q,Q;return(m=m==null?void 0:(q=m.downloadedVideoEntities)==null?void 0:(Q=q.videoEntity)==null?void 0:Q.key)&&!e[m]&&!t.has(m)});
W=M3v(W);return[].concat(_.kP(b),_.kP(W)).sort(function(m,q){return q.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return WOc(m)})};
_.jw=function(W){if(!_.S("kevlar_use_library_entity"))return RkZ(W);var e=$g(W).filter(function(b){var m,q;if(m=b=b==null?void 0:(m=b.downloadedVideoEntities)==null?void 0:(q=m.videoEntity)==null?void 0:q.key){var Q,X,I;m=((X=(Q=W.mainDownloadsListEntity)==null?void 0:Q[k0K])==null?0:(I=X.downloads)==null?0:I.length)?pMv(W).has(b):!1}return m}),t=M3v(W);
return[].concat(_.kP(e),_.kP(t)).sort(function(b,m){return m.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return WOc(b)})};
Q79=function(W){var e=_.kg(W),t=sU2(W);return dUG(W).filter(function(b){var m;return(b=b==null?void 0:(m=b.videoEntity)==null?void 0:m.key)&&!e[b]&&!t.has(b)})};
FOQ=function(W){if(!_.S("kevlar_use_library_entity"))return Q79(W);var e=_.kg(W),t=pMv(W);return dUG(W).filter(function(b){var m;return(b=b==null?void 0:(m=b.videoEntity)==null?void 0:m.key)&&!e[b]&&t.has(b)})};
XzD=function(W,e){e=_.X4(e,"settingEntity");var t,b,m;return!!((m=(b=((t=W.settingEntity)!=null?t:{})[e])==null?void 0:b.settingOptionValue)!=null?m:{}).boolValue};
_.CG=function(W){var e=_.yJ(W);if(hDg(e))return 0;var t=[];e=_.R(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;var m=void 0,q=void 0;if((m=b)==null?0:(q=m.videoEntity)==null?0:q.key)m=_.R1(b.videoEntity.key).entityId,b=W,m=_.X4(m,"mainVideoDownloadStateEntity"),b=_.I1(b,"mainVideoDownloadStateEntity",m),(b=Number(b==null?void 0:b.addedTimestampMillis))&&t.push(b)}return Math.max.apply(Math,_.kP(t))};
_.nG=function(W){return W.ui.richGridMiniMode};
_.fG=function(W){return W.ui.richGridItemsPerRow};
_.Ih2=function(W){return W.ui.richGridSlimItemsPerRow};
_.ah9=function(W){return W.ui.guideIsExpanded};
_.gO=function(W){return W.ui.miniplayerIsActive};
_.wzG=function(W){return W.ui.singleOptionSurveyIsActive};
_.Tq=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.uQD=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.crD=function(W){return W.ui.inlinePreviewIsActive};
_.viG=function(W){return W.ui.inlinePreviewIsEnabled};
_.Grg=function(W){return W.ui.miniplayerPlaybackState};
Jm=function(W){return W.ui.isOnline};
_.Dd2=function(W){return W.ui.frostedGlassMode};
_.xg=function(W,e){return yXc(W.entities,e)};
_.Ob=function(W,e){return Nfz(W.entities,e)};
SWD=function(W,e){var t;if(e){var b;W=(b=_.I1(W.entities,"offlineVideoPolicy",_.X4(e,"offlineVideoPolicy")))==null?void 0:b.action}else W=void 0;return(t=W)!=null?t:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
BvQ=function(W,e){var t;e?(W=_.I1(W.entities,"offlineVideoPolicy",_.X4(e,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(t=W)!=null?t:0};
_.oiv=function(W){return _.lX(W.entities).length};
lhG=function(W,e){return ZN(W.entities,e)};
ZfL=function(W,e){return OxS(W.entities,e)};
Mf=function(W,e){return(W=ZN(W.entities,e))?_.xGK([W]):0};
_.$d9=function(W,e){var t=_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(t){var b=W.entities;var m=LW9(b,e);if(m.length){var q=[];m=_.R(m);for(var Q=m.next();!Q.done;Q=m.next())(Q=ixG(b,Q.value))&&q.push(Q);b=q}else b=[]}else b=xUK(W.entities,e);var X;if(t){var I=W.entities;e?(e=_.X4(e,"musicPlaylist"),I=(X=I.musicPlaylist)==null?void 0:X[e],X=I!=null&&I.tracks?I.tracks.length:0):X=0}else X=W.entities,e?(e=_.X4(e,"mainPlaylistEntity"),X=(I=X.mainPlaylistEntity)==null?void 0:I[e],X=X!=null&&X.videos?
X.videos.length:0):X=0;return b.length!==X?0:b?Osz(b):0};
_.krZ=function(W){return W.download.isLeaderTab};
_.pzD=function(W,e,t){if(!e&&t){var b=W.entities;if(t){var m=sZv(t),q,Q;e=(Q=(q=_.I1(b,"offlineabilityEntity",_.X4(m,"offlineabilityEntity")))==null?void 0:q.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else q=W.entities,e?(Q=sZv(e),e=(m=(b=_.I1(q,"offlineabilityEntity",_.X4(Q,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?m:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):e="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return e};
yrD=function(W,e){W=W.entities;if(e){e=sZv(e);var t,b;e=(b=(t=_.I1(W,"offlineabilityEntity",_.X4(e,"offlineabilityEntity")))==null?void 0:t.addToOfflineButtonState)!=null?b:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else e="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return e};
_.j7K=function(W){var e=W.entities;W=Jm(W);var t=XzD(e,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.S("kevlar_modern_downloads_page")&&t)var b=!1;else{var m,q;e=(q=(m=((b=e.downloadsPageViewConfigurationEntity)!=null?b:{})[_.pG])==null?void 0:m.smartDownloadsOptInBannerVisibility)!=null?q:{};b=W?!!e.visibleWithConnection:!!e.visibleWithoutConnection}return b};
_.CyZ=function(W){return XzD(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.niQ=function(W){return qWG(W.entities)};
fhZ=function(W){return _.yJ(W.entities).every(function(e){var t;return(e==null?void 0:(t=e.transferEntity)==null?void 0:t.transferState)&&!JBQ.includes(e.transferEntity.transferState)})};
_.giQ=function(W,e){return oGL(W.entities,e)};
Tvv=function(W,e){if(e){var t,b;W=(b=(t=_.I1(W.entities,"downloadStatusEntity",_.X4(e,"downloadStatusEntity")))==null?void 0:t.downloadState)!=null?b:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
sb=function(W,e){return fJG(W.entities,e)};
MOs=function(W){W=_.JrL(W);var e=W.hours===void 0?0:W.hours,t=W.minutes===void 0?0:W.minutes,b=W.seconds===void 0?0:W.seconds,m=e>0;W=[];m&&(e=_.xdD(e),W.push(e));e=m;e=e===void 0?!1:e;t=(["af","be","lt"].includes(_.hm)||e)&&t<10?OfQ().format(t):(new Intl.NumberFormat("en-u-nu-latn")).format(t);W.push(t);t=OfQ().format(b);W.push(t);t=":";"da fi id si sr sr-Latn".split(" ").includes(_.hm)&&(t=".");return W.join(t)};
_.JrL=function(W){var e=W.hours||0,t=W.minutes||0,b=W.seconds||0;e=b+t*60+e*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(e<=0)return{hours:0,minutes:0,seconds:0};W=e;e=Math.floor(W/3600);W%=3600;t=Math.floor(W/60);b=Math.floor(W%60);return{hours:e,minutes:t,seconds:b}};
_.xdD=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var e=["fr"],t="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(_.hm)?W.replace(",","\u00a0"):e.includes(_.hm)?W.replace(",","\u202f"):t.includes(_.hm)?W.replace(",","."):W};
OfQ=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
s7G=function(W){try{return(new _.Hm(5)).format(W)}catch(e){}};
KG=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
hk9=function(W){if(W=s7G(W))return{thumbnailOverlaySidePanelRenderer:{text:_.tm(W),icon:{iconType:"PLAYLISTS"}}}};
Hfv=function(){var W=_.Gv("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.tm(W),icon:{iconType:"PLAY_ALL"}}}};
KOZ=function(W){W=_.Pm(W,2);return _.hm!=="ru"&&_.hm!=="es_419"&&_.hm!=="es-419"&&_.hm!=="es"&&_.hm!=="es_US"&&_.hm!=="es-US"&&_.hm!=="fr"&&_.hm!=="pl"&&_.hm!=="it"&&_.hm!=="nl"&&_.hm!=="uk"&&_.hm!=="fr_CA"&&_.hm!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
VOG=function(W){return function(e){var t=W(),b=_.Pm(e,t.dateFormat);e=_.Pm(e,t.timeFormat);var m=PyR.DATETIMEFORMATS[t.joinerStyle];m=m.replace(/'(?!')/g,"");m=m.replace("{0}",e);m=m.replace("{1}",b);return t.capitalize(m)}};
ifR=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
YWR=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.Pm=function(W,e){if(typeof W.getTime==="function")W={date:W};else if(ifR(W))W={date:YWR(W)};else if(typeof ifR(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:YWR(W.timestamp),timeZone:VJ(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("Df`"+JSON.stringify(W));var t=W;W=t.date;t=t.timeZone;e=zkG(e).format(W,t);_.hm==="zh-TW"&&(W=t?Number(zkG("H").format(W,t)):W.getHours(),e=W<5?e.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?e.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
e.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?e.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?e.replace("\u4e0b\u5348","\u4e0b\u5348"):e.replace("\u4e0b\u5348","\u665a\u4e0a"));return e};
zkG=function(W){if(UdR.has(W))return UdR.get(W);var e=LOG(W);e=EiZ(e);ArS!==!0&&(ArS=!0);Nvg=!0;Nvg=!1;e=new iX(e,PyR);UdR.set(W,e);return e};
LOG=function(W){return(new iX(W,PyR)).patternParts_.map(function(e){return e.type===0?"'"+e.text+"'":e.text}).join("")};
EiZ=function(W){return _.hm==="en"||_.hm==="es_US"||_.hm==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(e,t,b){return"H".repeat(t.length)+b})};
qjD=function(W,e){dd2||(_.Yg=_.Wwg,dd2=new eYs);var t=dd2;a:if(W=t8D(W),e=t8D(e||new Date),W>e)t=W.getTime()-e.getTime()>6048E5?_.Pm(W,1):b5Q(W);else{for(var b=0;mrK(W,12*(b+1))<e;)++b;if(b>0)t=t.format(-b,0);else{for(b=0;mrK(W,b+1)<e;)++b;if(b>0)t=t.format(-b,2);else{W=e.getTime()-W.getTime();e=_.R(r2v);for(b=e.next();!b.done;b=e.next()){b=b.value;var m=b.unit,q=Math.floor(W/b.unitDuration);if(q>=(b.threshold===void 0?1:b.threshold)){t=t.format(-q,m);break a}}t=t.format(-0,7)}}}return t};
t8D=function(W){if(typeof W.getTime==="function")return W;if(ifR(W))return YWR(W);throw Error("Ef`"+JSON.stringify(W));};
mrK=function(W,e){for(var t=0,b;;++t)if(b=new Date(W.getFullYear(),W.getMonth()+e,W.getDate()-t,W.getHours(),W.getMinutes(),W.getSeconds()),b.getMonth()===(W.getMonth()+e)%12)return b};
_.zq=function(W){return{runs:[{text:W}]}};
_.Ub=function(W){if(W&&W.simpleText)return W.simpleText;var e="";if(W&&W.runs)for(var t=0;t<W.runs.length;t++)W.runs[t].text&&(e+=W.runs[t].text);return e};
Q02=function(W,e,t,b){return W.videoEntity&&!W.policyEntity&&t!=="DOWNLOAD_STATE_FAILED"?[KG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Sw(W.policyEntity)&&e!=="TRANSFER_STATE_FAILED"&&e!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?e==="TRANSFER_STATE_PAUSED_BY_USER"?[KG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Bm(e)?[KG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?RYL(W.videoEntity.lengthSeconds,b):[]:
[KG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
RYL=function(W,e){var t=[{thumbnailOverlayTimeStatusRenderer:{text:_.tm(MOs({seconds:W})),style:"DEFAULT"}}];e&&(W=e<=0||W<=0?0:e>=W?100:Math.ceil(e*100/W),W>0&&t.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return t};
FwG=function(W,e,t,b,m){if(e==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.Bm(e)||e==="TRANSFER_STATE_PRE_TRANSFER")var q=[KG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Q,X;if(e==="TRANSFER_STATE_COMPLETE"&&((Q=W.mainPlaylistEntity)==null?0:(X=Q.videos)==null?0:X.length)){if(_.S("web_modern_collections_v2")){var I;var u=(q=W.mainPlaylistEntity)==null?void 0:(I=q.videos)==null?void 0:I.length;q=(q=s7G(u))?{thumbnailOverlayBottomPanelRenderer:{text:_.tm(q),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var c;q=hk9((u=W.mainPlaylistEntity)==null?void 0:(c=u.videos)==null?void 0:c.length)}var v;q=[Hfv(),Object.assign({},(v=q)!=null?v:{})]}else q=[]}v=q;a:if(e==="TRANSFER_STATE_PRE_TRANSFER")t=bX(_.Gv("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE")t=bX(_.Gv("WAITING_TO_DOWNLOAD"));else if(_.Bm(e))t=Math.floor(t*100).toString(),t=bX(_.Gv("DOWNLOADING_PERCENT",{percent:t},"Downloading... "+t+"%"));else{if(b&&(_.S("playlist_is_offline_selector_killswitch")&&
(m=_.ee().resolve(_.Yn).isNetworkAvailable()),m)){t=iMv(_.Gv("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),P9G(b));break a}t=void 0}e=e==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Gv("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},v.length?{thumbnailOverlays:v}:{},t?{viewPlaylistText:t}:{viewPlaylistText:_.zq("")},e.length?{badges:e}:{})};
X2G=function(W,e,t,b,m,q){if(e==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(b==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Q=Q02(W,e,b);if(W.videoEntity&&!W.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"){var X=_.Gv("WAITING_TO_DOWNLOAD");if(X)return{shortViewCountText:_.zq(X),publishedTimeText:void 0,thumbnailOverlays:Q}}if(!Sw(W.policyEntity)){q=W.policyEntity&&!MAc(W.policyEntity)?_.Gv("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Gv("TRANSFER_FAILED",{},"Download failed");var I;if((I=W.policyEntity)==null?0:I.shortMessageForDisabledAction)q=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:bX(q),publishedTimeText:void 0,thumbnailOverlays:Q}}if(e==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.zq(_.Gv("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Q};if(e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.zq(_.Gv("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Q};if(e==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(I=_.Gv("WAITING_TO_DOWNLOAD"),b==="DOWNLOAD_STATE_PAUSED"&&(I=_.Gv("DOWNLOAD_PAUSED",{},"Download paused")),I))return{shortViewCountText:_.zq(I),publishedTimeText:void 0,thumbnailOverlays:Q};if(_.Bm(e))return W=Math.floor(t*100).toString(),{shortViewCountText:_.zq(_.Gv("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:Q};e=void 0;W.videoEntity.publishedTimestampMillis&&
(e=new Date,m&&(e=new Date(m)),e=bX(qjD(new Date(Number(W.videoEntity.publishedTimestampMillis)),e)));m=[];_.S("kevlar_woffle_badge_killswitch")||(m=[{metadataBadgeRenderer:{label:_.Gv("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var u;W=bX((u=W.videoEntity.localizedStrings)==null?void 0:u.viewCount);return Object.assign({},q?{shortViewCountText:void 0}:{shortViewCountText:W},q?{}:{publishedTimeText:e},{badges:m,thumbnailOverlays:Q})};
aB2=function(W,e){W=W===void 0?IBs:W;switch(e.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:e.payload.playlistId,inviteLinkURL:e.payload.inviteLinkUrl};default:return W}};
uWG=function(W,e){W=W===void 0?w29:W;switch(e.type){case "SET_CURRENT_FORM_ID":return e=e.payload.formId,W.currentFormId===e?W:{currentFormId:e,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var t=e.payload;e=t.groupId;t=t.command;if(W.currentFormId){var b=Object.assign({},W.commandsMap);b[e]=t;W=Object.assign({},W,{commandsMap:b})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
v0g=function(W,e){W=W===void 0?c2G:W;switch(e.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:e.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:e.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:e.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:e.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:e.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:e.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:e.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:e.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:e.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:e.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:e.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:e.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:e.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:e.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:e.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:e.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:e.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:e.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:e.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:e.payload});default:return W}};
DrZ=function(W,e){W=W===void 0?G3R:W;switch(e.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:e.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:e.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
j0v=function(){return w3(Object.assign({},{continuation:SjG,entities:RDK,download:BSg,reportChannelAbuse:o0z,share:lBG,talkToRecs:Z5R,ui:v0g,voiceSearch:DrZ,watch:$rc,ypc:k3G,shorts:p2K,radioButtonGroup:uWG,collabInviteLink:aB2},y2S))};
fBG=function(){return _.S("web_player_entities_middleware")?new LG(j0v(),[C6G,n0v]):new LG(j0v(),[C6G])};
_.Eb=function(){g0D||(g0D=fBG());return g0D};
TSL=function(W,e,t){if(W.length)return{titleText:_.tm(e!=null?e:_.Gv("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(b){var m=b.videoEntity;b={videoId:m.videoId,title:bX(m.title),shortBylineText:bX(b.channelEntity.title),thumbnail:m.thumbnail};var q=m.videoId?sb(_.Eb().getState(),m.videoId):0;m.videoId&&t?b.navigationEndpoint=_.ew(m.videoId,t,void 0,void 0,q):m.videoId&&(b.navigationEndpoint=Kmg(m.videoId,q,m.lengthSeconds));m.lengthSeconds&&(b.thumbnailOverlays=RYL(m.lengthSeconds,q));return{playlistPanelVideoRenderer:b}}),
totalVideos:W.length}};
J2L=function(W){return(W=(0,_.kJ.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
xrQ=function(){return{}};
O5Q=function(W,e){return new _.c3(function(t,b){W.then(function(m){if(m){if(m=e(m))return t(m);b()}},b)})};
M8L=function(W){var e,t,b,m=(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.autoplay)==null?void 0:b.autoplay,q,Q,X;e=(q=W.contents)==null?void 0:(Q=q.twoColumnWatchNextResults)==null?void 0:(X=Q.playlist)==null?void 0:X.playlist;return m&&e&&e.playlistId?{rawResponse:W,autoplayRenderer:m,playlistPanelRenderer:e,playlistId:e.playlistId}:null};
hYZ=function(W){var e=e===void 0?"UNKNOWN_INTERFACE":e;if(W.length===1)return W[0];var t=s0G[e];if(t){t=new RegExp(t);for(var b=_.R(W),m=b.next();!m.done;m=b.next())if(m=m.value,t.exec(m))return m}var q=[];Object.entries(s0G).forEach(function(Q){var X=_.R(Q);Q=X.next().value;X=X.next().value;e!==Q&&q.push(X)});
t=new RegExp(q.join("|"));W.sort(function(Q,X){return Q.length-X.length});
b=_.R(W);for(m=b.next();!m.done;m=b.next())if(m=m.value,!t.exec(m))return m;return W[0]};
_.Am=function(W){return"/youtubei/v1/"+hYZ(W)};
_.Nf=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.dO=function(W){return _.Nf(_.zq(W))};
H5v=function(W,e){var t={mode:"NORMAL"};W&&(t.autoplayVideo=W.navigationEndpoint,t.nextButtonVideo=W.navigationEndpoint);e&&(t.previousButtonVideo=e.navigationEndpoint);return t};
V82=function(W,e,t){if(!t||!t.sets)return{sets:[H5v(W,e)]};var b=t.sets.find(function(Q){return Q.mode==="NORMAL"}),m=(0,_.kJ.unsafeClone)(t);
if(!b)return m.sets.push(H5v(W,e)),m;if(!W)return t;b=_.kJ.getValueByKeys.apply(null,[b].concat(_.kP(KwL)));var q=_.kJ.getValueByKeys.apply(null,[W].concat(_.kP(P62)));if(b===q)return t;m.sets=m.sets.filter(function(Q){return Q.mode!=="NORMAL"});
m.sets.push(H5v(W,e));return m};
i5D=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
YjZ=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
zYz=function(W,e){if(e.contents&&!(W>=e.contents.length)&&(W=e.contents.slice(W).find(i5D)))return W.playlistPanelVideoRenderer};
UrL=function(W,e){if(e.contents)return(e=e.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId===W}))?e.playlistPanelVideoRenderer:void 0};
LwZ=function(W,e){return e.contents?e.contents.findIndex(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId===W}):-1};
E0D=function(W,e){return e.contents?e.contents.findIndex(function(t){return!!t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
A2G=function(W,e){W.contents&&e!==-1&&W.contents.splice(e,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.NSc=function(W){var e=[];if(!W||!W.contents)return e;W=_.R(W.contents);for(var t=W.next();!t.done;t=W.next())t=t.value,t.playlistPanelVideoRenderer&&t.playlistPanelVideoRenderer.videoId&&e.push(t.playlistPanelVideoRenderer.videoId);return e};
_.drc=function(W){if(W&&W.contents)return(W=W.contents.find(function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
WyK=function(W,e,t,b,m,q,Q){m=m===void 0?!1:m;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;if(W.contents&&W.contents.length!==0){b&&(W.contents=W.contents.filter(b));b=W.contents.length;for(var X=0;X<b;X++){var I=W.contents[X].playlistPanelVideoRenderer;I&&(X===e?(q&&delete I.menu,I.indexText=_.zq("\u25b6")):m||W.isInfinite||I.indexText===void 0?delete I.indexText:I.indexText=_.zq((X+1+t).toString()))}W.currentIndex=e+t;Q&&(delete W.videoCountText,W.totalVideos=b)}};
_.Ww=function(W){W=ed2(W);if(W){var e=W.length;var t=-54%e;t<0&&(t=e+t);W=W.slice(e-t)+W.slice(0,e-t)}else W="";t="";for(e=0;e<W.length&&W[e]!==t1G;e++)t+=W[e];return t};
_.bTL=function(W,e){var t=document.body;e=e===void 0?function(X){return X}:e;
var b,m=null;W=_.R(W);for(b=W.next();!b.done;b=W.next()){var q=b.value;b=void 0;var Q=(b=q[2])!=null?b:"div";b=document.createElement(Q);m||(m=b);Q=q[0];q=q[1];Q&&(b.id=e(Q));if(q)for(q=_.R(q),Q=q.next();!Q.done;Q=q.next())b.classList.add(e(Q.value));t.appendChild(b);t=b}return[m,t]};
mQ2=function(W,e){for(var t="",b=0;b<e;b++)t+=W.charAt(Math.floor(Math.random()*W.length));return t};
ef=function(W){return mQ2("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
t8=function(W){return mQ2("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
bm=function(W){return mQ2("0123456789",W)};
mV=function(){var W=performance.now(),e=new Date;var t="2."+e.getFullYear()+String(e.getMonth()+1).padStart(2,"0")+String(e.getDate()).padStart(2,"0");for(var b,m=Math.floor(Math.random()*11)+15,q=[],Q=0;Q<m;Q++)q.push(Math.floor(Math.random()*26476865)+24547720);b=q.join(",");var X=ef(10),I=ef(100),u=ef(102),c=ef(106),v=ef(108),D=ef(11),B=ef(1140),k=ef(123),n=ef(14),f=ef(16),M=ef(1900),K=ef(23),U=ef(26),V=ef(34),L=ef(397),E=ef(44),RR=ef(5),uv=ef(72),GS=ef(74),k9=ef(75),CQ=ef(88),fQ=ef(91),iv="rr4---sn-5hnekn7k rr3---sn-q4fl6nsl rr4---sn-q4fl6nzy rr4---sn-hgn7rn7y rr1---sn-t0a7lnee rr2---sn-q4fl6nz7 rr1---sn-q4flrne7 rr2---sn-q4fl6nde rr3---sn-aigl6nl7 rr4---sn-aigl6ned rr1---sn-4g5lznes rr3---sn-hgn7yn7e rr2---sn-t0a7ln7d rr1---sn-4g5e6nze rr1---sn-q4flrnl7 rr4---sn-ntqe6n7r rr5---sn-q4fzen7r rr1---sn-q4fl6n6r rr4---sn-5hne6n6e rr5---sn-5hne6n6l".split(" ");
var hz=iv[Math.floor(Math.random()*iv.length)];var ES=(new Date("2010-01-01")).getTime();var Wu=(new Date(ES+Math.random()*((new Date).getTime()-ES))).toISOString().split("T")[0];for(var pr,ay=[],PU=0;PU<4;PU++)ay.push(Math.floor(Math.random()*100));pr=ay.join(".");var cu=Number(bm(5)),LQ=Number(bm(6)),sB=Number(bm(7)),z1=Number(bm(9)),FD=bm(1),DD=bm(10),nr=bm(16),UB=bm(19),ZD=bm(2),US=bm(20),Ha=bm(21),zZ=bm(3),qo=bm(4),sS=bm(5),ST=bm(6),SP=bm(7),y8=bm(8),I$=bm(9);var Rm=mQ2("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var q9=[t8(5),t8(5),t8(5)].join("%2C"),Ba=[bm(3),bm(5),bm(5)].join("%2C"),HF=t8(0),HU=t8(1),kl=t8(10),WR=t8(108),mf=t8(11),Ch=t8(12),KP=t8(13),Pi=t8(14),Sh=t8(15),XY=t8(16),oM=t8(17),Zg=t8(18),x9=t8(19),KQ=t8(2),cU=t8(20),rE=t8(22),CO=t8(23),a$=t8(24),GZ=t8(266),uh=t8(3),Bu=t8(30),un=t8(34),Ry=t8(35),Gy=t8(36),JE=t8(4),Je=t8(40),oG=t8(43),Vm=t8(47),eN=t8(5),VK=t8(6),R$=t8(7),hS=t8(75),dE=t8(8),dR=t8(80),LF=t8(9),cR="https://www."+t8(12)+".com",jj={},Cn={},xI={},U92={},Oy={},tI={},bb={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:b}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:t},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+t8(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:t},{key:"client.name",value:"WEB"},{key:"client.fexp",value:b}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Ha+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+t8(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Je,ypcGetOfflineUpsellEndpoint:{params:dR}},trackingParams:Ry+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&cnr="+ZD+"&ratebypass=yes&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&c=WEB&txp="+SP+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:LQ,width:640,height:360,lastModified:nr,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SP,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Ba+"&mn="+
q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&cnr="+ZD+"&ratebypass=yes&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&c=WEB&txp="+SP+"&n="+f+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+WR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:LQ,width:1280,
height:720,lastModified:nr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SP,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+q9+"&ms="+
q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:sB,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:sB,approxDurationMs:SP},{itag:248,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+q9+"&ms="+q9+"&mv="+
HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:sB,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:sB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:399,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:sB,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:sB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:136,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:sB,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:LQ,approxDurationMs:SP},{itag:247,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+
q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:sB,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:398,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+I$+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:sB,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:I$,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:135,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:LQ,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:LQ,approxDurationMs:SP},{itag:244,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+
q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+WR+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:LQ,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:397,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:LQ,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:134,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:LQ,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:LQ,highReplication:!0,approxDurationMs:SP},{itag:243,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:LQ,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:396,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:LQ,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:133,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:LQ,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:LQ,approxDurationMs:SP},{itag:242,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+
q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:LQ,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:395,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:LQ,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:LQ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:160,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:LQ,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,approxDurationMs:SP},{itag:278,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+Ba+"&mn="+
q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:LQ,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:394,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&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="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=video%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:cu,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:SP},{itag:140,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=audio%2Fmp4&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:LQ,
initRange:{start:"0",end:"631"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:LQ,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SP,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+
ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=audio%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+SP+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:cu,initRange:{start:"0",end:"265"},indexRange:{start:zZ,
end:qo},lastModified:nr,contentLength:SP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:cu,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SP,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=audio%2Fwebm&ns="+
a$+"&gir="+uh+"&clen="+SP+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:cu,initRange:{start:"0",end:"265"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:SP,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:cu,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:SP,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+hz+".googlevideo.com/videoplayback?expire="+DD+"&ei="+K+"&ip="+pr+"&id=o-AF"+oG+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Ba+"&mn="+q9+"&ms="+q9+"&mv="+HU+"&mvi="+FD+"&pl="+ZD+"&initcwndbps="+SP+"&siu="+FD+"&spc="+E+"&vprv="+FD+"&svpuc="+FD+"&mime=audio%2Fwebm&ns="+a$+"&gir="+uh+"&clen="+y8+"&dur="+y8+"&lmt="+nr+"&mt="+DD+"&fvip=3&keepalive="+uh+"&c=WEB&txp="+
SP+"&n="+XY+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:LQ,initRange:{start:"0",end:"265"},indexRange:{start:zZ,end:qo},lastModified:nr,contentLength:y8,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:LQ,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:SP,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="+I$+"&docid="+D+"&ei="+K+"&feature="+X+"&fexp="+HF+"&ns="+KQ+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+HU+"&el="+kl+"&len="+qo+"&of="+rE+
"&uga="+ZD+"&vm="+GZ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+I$+"&docid="+D+"&ei="+K+"&feature="+X+"&fexp="+HF+"&ns="+KQ+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+HU+"&el="+kl+"&len="+qo+"&of="+rE+"&uga="+ZD+"&vm="+GZ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+I$+"&docid="+D+"&ei="+K+"&feature="+X+"&fexp="+HF+"&ns="+KQ+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
HU+"&el="+kl+"&len="+qo+"&of="+rE+"&uga="+ZD+"&vm="+GZ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+K+"&m="+CQ+"&oid="+rE+"&plid="+f+"&pltype="+R$+"&ptchn="+rE+"&ptk="+n+"&video_id="+D},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+I$+"&docid="+D+"&ei="+K+"&event="+Pi+"&feature="+X+"&fexp="+HF+"&ns="+KQ+"&plid="+f+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+HU},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+D+"&ei="+K+"&feature="+
X+"&len="+qo+"&ns="+KQ+"&plid="+f+"&ver="+FD,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+D+"&caps="+uh+"&opi="+I$+"&xoaf="+FD+"&hl="+KQ+"&ip="+pr+"&ipbits="+FD+"&expire="+DD+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+pr+"&key="+uh+"&lang="+RR,name:{simpleText:KP},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+D+"&caps="+uh+"&opi="+I$+"&xoaf="+FD+"&hl="+KQ+"&ip="+pr+"&ipbits="+FD+"&expire="+DD+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+pr+"&key="+uh+"&kind="+uh+"&lang="+KQ,name:{simpleText:JE},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:mf,title:VK,lengthSeconds:"1155",keywords:[R$,Sh,Sh,JE],
channelId:a$,isOwnerViewing:!1,shortDescription:LF,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+un,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+un,width:196,height:110},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
D+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:SP,author:KP,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:SP,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+rE+"/featured_channel.jpg?v="+dE,width:40,height:40}]},trackingParams:Ry+"=",navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"/channel/"+a$,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:a$}},channelName:KP,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:dE}]},subscribed:!1,enabled:!0,type:"FREE",channelId:a$,showPreferences:!1,subscribedButtonText:{runs:[{text:eN}]},unsubscribedButtonText:{runs:[{text:R$}]},trackingParams:Ry+"=",unsubscribeButtonText:{runs:[{text:oM}]},serviceEndpoints:[{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[a$],params:dE}},{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Je,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ry+"=",dialogMessages:[{runs:[{text:Sh},{text:KP},{text:KP}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dE}]},serviceEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[a$],params:dE}},accessibility:{label:kl},trackingParams:Ry+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ch}]},accessibility:{label:LF},trackingParams:Ry+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:XY}},unsubscribeAccessibility:{accessibilityData:{label:Pi}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:y8},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[a$],params:dE}},unsubscribeCommand:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[a$],params:dE}},addToWatchLaterCommand:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:mf,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:mf}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+D+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Gy+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
D+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+mf,width:1280,height:720},title:{simpleText:Ch},description:{simpleText:Ch},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+x9,externalChannelId:a$,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:SP,category:"Travel & Events",publishDate:Wu,ownerChannelName:KP,uploadDate:Wu}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:mf},trackingParams:Ry+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Je,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Ry+"="}}],headerText:{simpleText:oM},icon:{infoCardIconRenderer:{trackingParams:Ry+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Ry+"="}},trackingParams:Ry+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Ry+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+mf+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Rm,interpreterSafeUrl:(jj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Bu+".js",jj),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:R$},{text:Ch,bold:!0}]},endpoint:{clickTrackingParams:Je,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:Ry+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:mf}]},actionButton:{buttonRenderer:{text:{runs:[{text:VK}]},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+D,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
D,target:"TARGET_NEW_WINDOW"}},trackingParams:Ry+"="}},trackingParams:Ry+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+uv+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+uv+"=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:SP,endMs:SP,title:{accessibility:{accessibilityData:{label:KP}},simpleText:mf},metadata:{simpleText:XY},callToAction:{simpleText:Sh},dismiss:{simpleText:LF},endpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"/channel/"+a$,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:a$}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:cU}]},subscribed:!1,enabled:!0,type:"FREE",channelId:a$,showPreferences:!1,
subscribedButtonText:{runs:[{text:JE}]},unsubscribedButtonText:{runs:[{text:KP}]},trackingParams:Ry+"=",unsubscribeButtonText:{runs:[{text:VK}]},serviceEndpoints:[{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[a$],params:dE}},{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Je,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ry+
"=",dialogMessages:[{runs:[{text:x9},{text:oM},{text:oM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oM}]},serviceEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[a$],params:dE}},accessibility:{label:Sh},trackingParams:Ry+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:x9}]},
accessibility:{label:x9},trackingParams:Ry+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:VK}},unsubscribeAccessibility:{accessibilityData:{label:Sh}}}},trackingParams:Ry+"=",isSubscribe:!0,id:US}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+un,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+Gy+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+D+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:SP,endMs:SP,title:{accessibility:{accessibilityData:{label:x9}},simpleText:VK},metadata:{simpleText:x9},endpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
mf,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:mf,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+hz+".googlevideo.com/videoplayback?source=youtube&oeis="+FD+"&c=WEB&oad="+qo+"&ovd="+qo+"&oaad="+sS+"&oavd="+sS+"&ocs="+zZ+"&oewis="+FD+"&oputc="+FD+"&ofpcc="+FD+"&siu="+FD+"&msp="+FD+"&odepv="+FD+
"&id=o-AF"+oG+"&ip="+pr+"&initcwndbps="+SP+"&mt="+DD+"&oweuc="+HF}}}}},trackingParams:Ry+"=",id:US,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:eN}},simpleText:mf},style:"DEFAULT"}}]}}],startMs:SP,trackingParams:Ry+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:FD,offsetEndMilliseconds:sS},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";ord="+DD+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+zZ+";dc_sk="+FD+";dc_ctype="+ZD+";dc_ref=http://www.youtube.com/video/"+mf+";dc_pubid="+FD+";dc_btype=23?gclid="+fQ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+FD+"&ns="+FD+"&event="+FD+"&device="+FD+"&content_v="+D+"&el="+kl+"&ei="+K+"&devicever="+t+"&bti="+SP+"&format="+ST+"&break_type="+FD+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+FD+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+pr+"&slot_pos="+FD+"&slot_len="+FD+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Ba+"&ad_len="+sS+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
mf+"&aqi="+K+"&ad_rmp="+FD+"&sli="+FD}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+
";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+SP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&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"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&ctype="+zZ+"&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"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_engaged_view&ctype="+zZ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+UB+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&dc_pubid="+FD+"&dc_exteid="+US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+FD},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&avm="+FD+"&dc_pubid="+FD+"&dc_exteid="+
US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&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="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
u+"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+FD},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&dc_pubid="+FD+"&dc_exteid="+US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Je,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+
zZ+"&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/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ry+"="},trackingParams:Ry+
"=",templatedCountdown:{templatedAdText:{text:LF,isTemplated:!0,trackingParams:Ry+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:LF,isTemplated:!1,trackingParams:Ry+"="},trackingParams:Ry+"="}},trackingParams:Ry+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ry+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:oM},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Sh,isTemplated:!1,trackingParams:Ry+"="},trackingParams:Ry+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:XY,isTemplated:!0,trackingParams:Ry+"="}},trackingParams:Ry+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Je,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Cn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+KQ+"&origin=www.youtube.com&ata_theme="+JE,Cn),trackingParams:Ry+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Ry+"="}},hoverText:{runs:[{text:LF}]},trackingParams:Ry+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Vm+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ry+"="},headline:{text:VK,isTemplated:!1,trackingParams:Ry+"="},description:{text:Sh,
trackingParams:Ry+"="},actionButton:{buttonRenderer:{text:{simpleText:eN},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"="}},startMs:FD,trackingParams:Ry+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:x9},elementId:JE}},elementId:cU,trackingParams:Ry+"=",legacyInfoCardVastExtension:Sh,sodarExtensionData:{siub:LF,bgub:oM,scs:mf,bgp:Sh},externalVideoId:mf,adLayoutLoggingData:{serializedAdServingDataEntry:oM},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Vm+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ry+"="},
headline:{text:Ch,isTemplated:!1,trackingParams:Ry+"="},description:{text:kl,isTemplated:!1,trackingParams:Ry+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:cU},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+
US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+
FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ry+"="}},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+
I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ry+"="},abandonCommands:{commands:[{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&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="+FD+";dc_exteid="+US+";met="+FD+";ecn"+
FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Je,commandExecutorCommand:{commands:[{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:LF,isTemplated:!1,trackingParams:Ry+
"="},trackingParams:Ry+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:x9},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+SP+";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="+I$+";dc_trk_cid="+I$+";ord="+DD+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+zZ+";dc_sk="+FD+";dc_ctype="+ZD+";dc_ref=http://www.youtube.com/video/"+mf+";dc_pubid="+FD+";dc_btype=23?gclid="+fQ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+FD+"&ns="+FD+"&event="+FD+"&device="+FD+"&content_v="+D+"&el="+kl+"&ei="+K+"&devicever="+t+"&bti="+SP+"&format="+ST+"&break_type="+FD+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+FD+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+pr+"&slot_pos="+FD+"&slot_len="+FD+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Ba+"&ad_len="+sS+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+mf+"&aqi="+K+"&ad_rmp="+FD+"&sli="+FD}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+
U+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+SP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&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"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&ctype="+zZ+"&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"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_engaged_view&ctype="+zZ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+
VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&dc_pubid="+FD+"&dc_exteid="+US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+
"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+FD},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&avm="+FD+"&dc_pubid="+FD+"&dc_exteid="+US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&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="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+u+"&sig="+CO+"&ad_cpn=[AD_CPN]&id="+VK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+FD},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+VK+"&dc_pubid="+FD+"&dc_exteid="+US+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ST+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+
zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&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/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ry+"="},trackingParams:Ry+"=",templatedCountdown:{templatedAdText:{text:JE,isTemplated:!0,trackingParams:Ry+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:R$,isTemplated:!1,trackingParams:Ry+"="},trackingParams:Ry+"="}},
trackingParams:Ry+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ry+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:KP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Pi,isTemplated:!1,trackingParams:Ry+"="},trackingParams:Ry+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:eN,
isTemplated:!0,trackingParams:Ry+"="}},trackingParams:Ry+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Je,openPopupAction:{popup:{aboutThisAdRenderer:{url:(xI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+KQ+"&origin=www.youtube.com&ata_theme="+JE,xI),trackingParams:Ry+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Ry+"="}},hoverText:{runs:[{text:R$}]},trackingParams:Ry+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ry+"="},headline:{text:Pi,isTemplated:!1,trackingParams:Ry+"="},description:{text:Sh,trackingParams:Ry+"="},actionButton:{buttonRenderer:{text:{simpleText:Ch},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"="}},startMs:FD,trackingParams:Ry+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:kl},elementId:JE}},elementId:XY,trackingParams:Ry+"=",legacyInfoCardVastExtension:kl,sodarExtensionData:{siub:JE,bgub:cU,scs:eN,bgp:dE},externalVideoId:mf,adLayoutLoggingData:{serializedAdServingDataEntry:oM},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GS+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ry+"="},headline:{text:kl,
isTemplated:!1,trackingParams:Ry+"="},description:{text:Ch,isTemplated:!1,trackingParams:Ry+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:mf},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ry+"="}},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+
FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ry+"="},abandonCommands:{commands:[{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&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="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+ZD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Je,commandExecutorCommand:{commands:[{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:x9,isTemplated:!1,trackingParams:Ry+"="},trackingParams:Ry+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:mf},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FD+";dc_exteid="+US+";met="+FD+";ecn"+FD+"="+FD+";etm1="+FD+";eid1="+
SP+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:cU}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ch}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:sS,offsetEndMilliseconds:ST},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ZD+"&token=ALHj"+L+"&index="+FD+"&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="+t+"&m_pos_ms="+sS}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Sh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:ST,offsetEndMilliseconds:ST},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+zZ+"&token=ALHj"+L+"&index="+FD+"&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="+
t+"&m_pos_ms="+ST}},adSlotLoggingData:{serializedSlotAdServingDataEntry:VK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ST,offsetEndMilliseconds:ST},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+zZ+"&token=ALHj"+L+"&index="+FD+"&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="+
t+"&m_pos_ms="+ST}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ST,offsetEndMilliseconds:ST},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+zZ+"&token=ALHj"+L+"&index="+FD+"&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="+
t+"&m_pos_ms="+ST}},adSlotLoggingData:{serializedSlotAdServingDataEntry:VK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ST,offsetEndMilliseconds:ZD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+zZ+"&token=ALHj"+L+"&index="+FD+"&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="+
t+"&m_pos_ms="+ST}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Pi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:ZD,offsetEndMilliseconds:ZD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ZD+"&token=ALHj"+L+"&index="+FD+"&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="+
t+"&m_pos_ms="+ZD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Pi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:LF,isTemplated:!1,trackingParams:Ry+"="},description:{text:oM,isTemplated:!1,trackingParams:Ry+"="},actionButton:{buttonRenderer:{text:{simpleText:Zg},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Vm+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Ry+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+k9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ry+"="},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+
";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Je,openPopupAction:{popup:{aboutThisAdRenderer:{url:(U92.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+KQ+"&origin=www.youtube.com&ata_theme="+JE,U92),trackingParams:Ry+"="}},popupType:"DIALOG"}},trackingParams:Ry+"="}},hoverText:{runs:[{text:kl}]},trackingParams:Ry+"="}},adVideoId:mf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Zg},associatedCompositePlayerBytesLayoutId:XY}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:kl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Zg,isTemplated:!1,trackingParams:Ry+"="},description:{text:Zg,isTemplated:!1,trackingParams:Ry+"="},actionButton:{buttonRenderer:{text:{simpleText:kl},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+GS+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ry+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hS+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ry+"="},navigationEndpoint:{clickTrackingParams:Je,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+
FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Je,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Oy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+KQ+"&origin=www.youtube.com&ata_theme="+JE,Oy),trackingParams:Ry+"="}},popupType:"DIALOG"}},trackingParams:Ry+"="}},
hoverText:{runs:[{text:R$}]},trackingParams:Ry+"="}},adVideoId:mf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+mf+"&cid="+U+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:dE},associatedCompositePlayerBytesLayoutId:XY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:dE,
isTemplated:!1,trackingParams:Ry+"="},description:{text:VK,isTemplated:!1,trackingParams:Ry+"="},actionButton:{buttonRenderer:{text:{simpleText:eN},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+
ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ry+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Vm+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ry+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+k9+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ry+
"="},navigationEndpoint:{clickTrackingParams:Je,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+I$+";dc_trk_cid="+I$+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FD+";ord="+I$+";dc_rui="+FD+";dc_exteid="+US+";dc_av="+FD+";dc_sk="+FD+";dc_ctype="+ZD+";dc_pubid="+FD+";dc_btype=3?gclid="+fQ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+k+"AxAA&ase=2&num="+FD+"&cid="+U+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+cR+"&label=video_click_to_advertiser_site&ctype="+zZ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ry+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Je,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+M+"&hl="+KQ+"&origin=www.youtube.com&ata_theme="+JE,tI),trackingParams:Ry+"="}},popupType:"DIALOG"}},trackingParams:Ry+
"="}},hoverText:{runs:[{text:eN}]},trackingParams:Ry+"="}},adVideoId:mf,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+k+"AxAA&sigh="+D+"&cid="+U+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:x9},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:XY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:JE}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Bu,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Bu,command:{innertubeCommand:{clickTrackingParams:Je,ypcGetOfflineUpsellEndpoint:{params:dR}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Ry+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:DD,nanos:z1}}}},yv2=JSON.stringify(bb),mq=performance.now()-W;return{objectRepresentation:bb,jsonRepresentation:yv2,generationTime:mq}};
rhc=function(W,e){if(W===e)return!0;if(!W||!e||typeof W!==typeof e)return!1;if(W instanceof Array&&e instanceof Array){if(W.length!==e.length)return!1;for(var t=0;t<W.length;t++)if(!rhc(W[t],e[t]))return!1;return!0}if(typeof W==="object"&&typeof e==="object"&&W&&e){for(t in W)if(!(t in e&&rhc(W[t],e[t])))return!1;for(var b in e)if(!(b in W))return!1;return!0}return!1};
_.qu=function(){if(!rD){rD=new uQ(new quK);var W=_.mn("client_streamz_web_flush_count",-1);W!==-1&&(rD.invocationLimit=W)}return rD};
RX=function(W,e,t,b){if(W===e)return!0;if(Array.isArray(W)&&Array.isArray(e)){if(W.length!==e.length)return!1;for(var m=0;m<W.length;m++)if(!RX(W[m],e[m],t,b))return!1;return!0}if(W instanceof Set||e instanceof Set){if(W instanceof Set&&e instanceof Set){if(W.size!==e.size)return!1;b=_.R(W.values());for(m=b.next();!m.done;m=b.next())if(!e.has(m.value))return!1;return!0}return!1}if(W instanceof Function){if(b)return!0;W.name===""&&_.gQ(Error("If"),"ERROR");return!1}if(W instanceof Date&&e instanceof
Date)return W.getTime()===e.getTime();if(W instanceof Object&&e instanceof Object){if(RdS(W)&&RdS(e))try{return W.equals(e)}catch(Q){_.gQ(Error("Jf`"+Q),"ERROR")}m=Object.getOwnPropertyNames(W).filter(function(Q){return t?W[Q]!==void 0:!0});
var q=Object.getOwnPropertyNames(e).filter(function(Q){return t?e[Q]!==void 0:!0});
if(m.length!==q.length)return!1;m=_.R(m);for(q=m.next();!q.done;q=m.next())if(q=q.value,!RX(W[q],e[q],t,b))return!1;return!0}return!1};
RdS=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
_.X1s=function(){return _.F(function(W){if(W.nextAddress==1)return Qes!==2?W.jumpTo(2):_.a(W,FyD(),3);W.nextAddress!=2&&(Qes=W.yieldResult);return W.return(Qes)})};
_.w12=function(){return _.F(function(W){if(W.nextAddress==1)return _.S("ab_pl_man")?IUL!==2?W.jumpTo(2):_.a(W,aUc(),3):W.return(1);W.nextAddress!=2&&(IUL=W.yieldResult);return W.return(IUL)})};
v62=function(){return _.F(function(W){if(W.nextAddress==1)return _.S("ab_fk_sk_cl")?u_Q!==2?W.jumpTo(2):_.a(W,chz(),3):W.return(1);W.nextAddress!=2&&(u_Q=W.yieldResult);return W.return(u_Q)})};
_.Suv=function(){return _.F(function(W){if(W.nextAddress==1)return _.S("ab_det_apb_b")?GIR!==2?W.jumpTo(2):_.a(W,DQc(),3):W.return(1);W.nextAddress!=2&&(GIR=W.yieldResult);return W.return(GIR)})};
lUG=function(){var W;return _.F(function(e){if(e.nextAddress==1)return _.a(e,Promise.all([_.X1s(),_.Suv(),_.w12(),v62()]),2);if(e.nextAddress!=3)return Bts()?e.return(!0):_.a(e,_.o6L(),3);W=e.yieldResult;return e.return(W===0)})};
Bts=function(){var W=!1,e=function(t,b){ZTG.increment(b,t);t===0&&(W=!0)};
e(_.$Qv(),"j.s_");e(Qes,"f.i_");e(GIR,"a.b_");e(IUL,"p.m_");e(u_Q,"i.f_");kIQ===2&&(kIQ=_.p1s(yhz));e(kIQ,"e.h_");_.S("ks_det_gpbl")||e(_.jev(),"p.i_");_.S("ks_get_o_pp")||e(_.CTL(),"g.o_");_.S("ab_deg_unex_thr")||e(_.n6D(),"a.o_");e(fUS,"s.t_");_.S("ab_det_sc_inj_enf")&&e(_.g6G(),"s.i_");e(Ttz,"d.p_");e(_.JhG(_.QI),"o.p_");e(_.xQL()===0?0:_.OTS(),"o.a_");return _.S("debug_sk_em_precheck")?!0:W};
seg=function(){var W=[].concat(_.kP(M1S));try{var e=mV();W.push({jsonRepresentation:e.jsonRepresentation,objectRepresentation:e.objectRepresentation})}catch(t){W=[].concat(_.kP(M1S))}return W};
hdg=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(e){return 0}};
_.CTL=function(){if(hdg()===0)return 0;var W=mV(),e=W.objectRepresentation,t=(0,_.kJ.unsafeClone)(e),b=[];if(e&&typeof e==="object")for(var m in e)b.push(m);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!rhc(b,Object.getOwnPropertyNames(e)))return 0}catch(q){return 0}return rhc(t,e)?1:0};
_.JhG=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var e=Object.getOwnPropertyNames(Object.prototype),t=0;t<W.length;t++)for(var b=_.Ww(W[t]),m=_.R(e),q=m.next();!q.done;q=m.next())if(b===q.value)return 0;return 1};
HTZ=function(W){var e=_.Ww(W[1]);if(W[0]===null)return e;W=W[0];for(var t={},b=0;b<W.length;b++){var m=_.Ww(W[b]);if(b===0)t[m]=e;else{var q={};q[m]=t;t=q}}return t};
_.xQL=function(){for(var W=_.Fu,e=0;e<W.length;e++){var t=HTZ(W[e]),b=[];b.push(t);if(b.length===0)return 0}return 1};
_.OTS=function(){for(var W=_.Fu,e={},t=0;t<W.length;e={lpJ:void 0},t++){var b=[HTZ(W[t])];e.lpJ=[];b.forEach(function(m){return function(q){m.lpJ[m.lpJ.length]=q}}(e));
if(e.lpJ.length===0)return 0}return 1};
_.$Qv=function(){for(var W=_.R(seg()),e=W.next();!e.done;e=W.next()){var t=e.value;e=t.jsonRepresentation;t=t.objectRepresentation;try{var b=JSON.parse(e);if(!RX(b,t,!1,!1))return 0}catch(m){return 0}}return 1};
_.g6G=function(){try{var W=_.qz("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var e=document.querySelectorAll("script"),t=_.R(e),b=t.next();!b.done;b=t.next())for(var m=b.value,q=_.R(W),Q=q.next();!Q.done;Q=q.next()){var X=Q.value;e=void 0;if((e=m.textContent)==null?0:e.includes(X))return 0}}catch(I){return 4}return 1};
_.o6L=function(){var W,e,t,b,m,q,Q;return _.F(function(X){switch(X.nextAddress){case 1:_.Qh(X,2),W=_.R(M1S),e=W.next();case 4:if(e.done)return X.return(1);b=t=e.value;m=b.jsonRepresentation;q=b.objectRepresentation;return _.a(X,(new Response(m,{status:200})).json(),7);case 7:Q=X.yieldResult;if(!RX(Q,q,!1,!1))return X.return(0);e=W.next();X.jumpTo(4);break;case 2:return _.w9(X),X.return(4)}})};
_.n6D=function(){try{btoa("abc")}catch(W){return 0}return 1};
FyD=function(){var W,e,t,b,m,q,Q,X,I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:_.Qh(v,2),W=_.R(seg()),e=W.next();case 4:if(e.done)return v.return(1);b=t=e.value;m=b.jsonRepresentation;q=b.objectRepresentation;Q=btoa(m);X="data:application/json;base64,"+Q;I=new Request(X);Object.defineProperty(I,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(I,"method",{get:function(){return"POST"}});
Object.defineProperty(I,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(I,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(I,"body",{get:function(){return new ReadableStream}});
return _.a(v,fetch(I),7);case 7:return u=v.yieldResult,_.a(v,u.json(),8);case 8:c=v.yieldResult;if(!RX(c,q,!1,!1))return v.return(0);e=W.next();v.jumpTo(4);break;case 2:return _.w9(v),v.return(4)}})};
_.p1s=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var e=function(m){return _.Ww(m)},t=2,b=0;b<W.length&&(t=_.KyG(_.bTL(W[b],e)),t!==0);b++);
return t};
_.KyG=function(W){var e=_.R(W);W=e.next().value;e=e.next().value;try{var t=document.createElement("div");document.body.appendChild(t);var b=getComputedStyle(t).display;document.body.removeChild(t);if(b==="none")return 4;var m=getComputedStyle(e).display==="none"?0:1;document.body.removeChild(W);return m}catch(q){return 4}};
chz=function(){var W,e,t;return _.F(function(b){W=new _.Xu;e=document.createElement("button");e.classList.add("ytp-ad-skip-button");e.style.opacity="0";e.style.height="0px";e.style.width="0px";e.style.padding="0px";e.style.border="none";t=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.onclick=function(){W.resolve(0);t()};
document.body.appendChild(e);setTimeout(function(){t();W.resolve(1)},50);
return b.return(W.promise)})};
aUc=function(){var W,e,t,b,m,q,Q;return _.F(function(X){W=new _.Xu;e=document.createElement("ytd-player");try{document.body.prepend(e)}catch(I){return X.return(4)}t=function(){e.parentElement&&e.parentElement.removeChild(e)};
e.getElementsByTagName("div").length>0?b=e.getElementsByTagName("div")[0]:(b=document.createElement("div"),e.appendChild(b));m=document.createElement("div");b.appendChild(m);q=document.createElement("video");Q=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"});q.src=_.v7(_.Z1(Q));q.ontimeupdate=function(){t();W.resolve(0)};
m.appendChild(q);q.classList.add("html5-main-video");setTimeout(function(){m.classList.add("ad-interrupting")},200);
setTimeout(function(){t();W.resolve(1)},5E3);
return X.return(W.promise)})};
PTv=function(W,e){var t,b;return _.F(function(m){switch(m.nextAddress){case 1:t=[],b=0;case 2:if(!(b<3)){m.jumpTo(4);break}return _.a(m,fetch(W,{cache:"no-store",method:e}).then(function(q){t.push(q.status)}).catch(function(){t.push(-1)}),3);
case 3:b++;m.jumpTo(2);break;case 4:return m.return(t)}})};
V1G=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
iTv=function(W,e,t){t=t===void 0?"GET":t;var b,m,q,Q,X,I,u,c,v,D;return _.F(function(B){if(B.nextAddress==1)return _.a(B,Promise.all([PTv(W,t),PTv(e,t)]),2);b=B.yieldResult;m=_.R(b);q=m.next().value;Q=m.next().value;X=q;I=Q;if(Math.min.apply(Math,_.kP(I))!==Math.max.apply(Math,_.kP(I))||Math.min.apply(Math,_.kP(X))!==Math.max.apply(Math,_.kP(X)))return B.return(2);if(Math.min.apply(Math,_.kP(I))===Math.min.apply(Math,_.kP(X)))return B.return(1);c=(u=performance.getEntriesByName(W))==null?void 0:u[0];
D=(v=performance.getEntriesByName(e))==null?void 0:v[0];return c&&D?V1G(D)?B.return(1):V1G(c)?B.return(0):B.return(1):B.return(2)})};
DQc=function(){var W;return _.F(function(e){var t=[];var b;var m,q,Q;(m=b=(m=mV().objectRepresentation.streamingData)==null?void 0:(q=m.formats)==null?void 0:(Q=q[0])==null?void 0:Q.url)&&m&&!b.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(m=m.replace("initcwndbps","ctier=L&initcwndbps"),m=m.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),b={testUrl:m,baseUrl:b,method:"GET"}):b=void 0;b&&t.push(b);_.S("ab_net_tp_e")&&t.push({testUrl:_.tz.location.origin+"/ad_companion",baseUrl:_.tz.location.origin+
"/generate_204",method:"OPTIONS"});if(_.S("ad_net_pb_ab")){var X;b:{b=/api\/stats\/ads/;var I,u,c,v;m=(X=mV().objectRepresentation.adPlacements)==null?void 0:(I=X[0])==null?void 0:(u=I.adPlacementRenderer)==null?void 0:(c=u.renderer)==null?void 0:(v=c.linearAdSequenceRenderer)==null?void 0:v.linearAds;if(m!=null&&m.length&&(X=_.l(m[0],YuD))&&(X=X.pings,X!=null&&X.impressionPings))for(I=[].concat(_.kP(X.impressionPings)),X.progressPings&&(I=[].concat(_.kP(I),_.kP(X.progressPings))),X=_.R(I),I=X.next();!I.done;I=
X.next())if(I=I.value,I.baseUrl&&b.test(I.baseUrl)){X=I.baseUrl.replace("https://www.youtube.com","");break b}X=void 0}X&&t.push({testUrl:_.tz.location.origin+X,baseUrl:_.tz.location.origin+"/feed/download",method:"GET"})}if(_.S("ad_net_pb_pbp")){var D;b:{X=/api\/stats\/qoe/;if(I=mV().objectRepresentation.playbackTracking){u=[];u.push(I==null?void 0:(D=I.videostatsPlaybackUrl)==null?void 0:D.baseUrl);var B;u.push(I==null?void 0:(B=I.videostatsDelayplayUrl)==null?void 0:B.baseUrl);var k;u.push(I==
null?void 0:(k=I.videostatsWatchtimeUrl)==null?void 0:k.baseUrl);var n;u.push(I==null?void 0:(n=I.ptrackingUrl)==null?void 0:n.baseUrl);var f;u.push(I==null?void 0:(f=I.qoeUrl)==null?void 0:f.baseUrl);var M;u.push(I==null?void 0:(M=I.atrUrl)==null?void 0:M.baseUrl);D=_.R(u);for(B=D.next();!B.done;B=D.next())if((B=B.value)&&X.test(B)){D=B.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}D=void 0}D&&t.push({testUrl:_.tz.location.origin+D,baseUrl:_.tz.location.origin+
"/feed/download",method:"GET"})}t=t.length!==0?t[Math.floor(Math.random()*t.length)]:void 0;return(W=t)?e.return(iTv(W.testUrl,W.baseUrl,W.method)):e.return(4)})};
_.jev=function(){if(_.tz.vQf===void 0||_.tz.vQf===null||typeof _.tz.vQf!=="function")return 2;try{return _.tz.vQf()===!0?0:1}catch(W){return 0}};
zdG=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Qw(W,"unknown result type")}};
_.UQs=function(W,e){var t=Number(_.Ot("CATSTAT",0));if(e.nbm===void 0)return t;e=e.nbm;W=zdG(W);return t&~(3<<e)|W<<e};
Lyz=function(W){var e,t;if((W=(e=W.auxiliaryUi)==null?void 0:(t=e.messageRenderers)==null?void 0:t.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
AhK=function(){for(var W=_.R(Object.values(_.E6z)),e=W.next();!e.done;e=W.next())e=e.value,e.isAsync&&e.nbm&&_.xq("CATSTAT",_.UQs(2,e))};
_.um=function(W,e){W=_.IX("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(e===void 0?0:e)?_.Ntc(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.aX(_.wD(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
WIc=function(){if(!dQZ){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(v){_.st(v)}};
var e=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{e.apply(this,arguments)}catch(v){_.st(v)}};
var t=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{t.apply(this,arguments)}catch(v){_.st(v)}};
var b=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{b.apply(this,arguments)}catch(v){_.st(v)}};
var m=Polymer.Base._listen,q=new WeakMap;Polymer.Base._listen=function(v,D,B){var k=function(){try{B.apply(this,arguments)}catch(n){_.st(n)}};
q.set(B,k);m.call(this,v,D,k)};
var Q=Polymer.Base._unlisten;Polymer.Base._unlisten=function(v,D,B){Q.call(this,v,D,q.get(B))}}if(Polymer.Async){var X=Polymer.Async,I=X._atEndOfMicrotask;
X._atEndOfMicrotask=function(){try{I.apply(X,arguments)}catch(v){_.st(v)}}}if(Polymer.RenderStatus){var u=Polymer.RenderStatus,c=u.afterNextRender;
u.afterNextRender=function(v,D,B){c.call(u,v,function(){try{D.apply(this,arguments)}catch(k){_.st(k)}},B)}}dQZ=!0}};
_.Gi=function(W){var e=W?_.I_(W):"";if(e){if(e.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(e.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(e.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(e.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(e.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(e.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";e=e.toLowerCase();if(e==="/")return"home";if(e==="/channel_memberships")return"channel-memberships-shopfront";if(e.indexOf("/feed/trending")===0)return"trending";if(e.indexOf("/feed/explore")===0)return"explore";if(e.indexOf("/live")===0)return"live";if(e.indexOf("/results")===0)return"search";if(e.indexOf("/sports")===0)return"sports";if(e.indexOf("/fashion")===0||e.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(e))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(e))return _.S("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(e.indexOf("/channel/")===0||e.indexOf("/user/")===0||e.indexOf("/gaming")===0||e.indexOf("/post/")===0)return"channel";if(e8L(W))return"show";if(e==="/playlist"||e.indexOf("/playlist/")===0||e==="/view_play_list"||e.indexOf("/view_play_list/")===0||e.indexOf("/show/")===0)return"playlist";if(e==="/feed/history"||e.indexOf("/feed/history/")===0)return"history";if(e===
"/new")return"labs";if(e==="/feed/subscriptions")return"subscriptions";if(e.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(e==="/history_controls")return"standalone";if(e.indexOf("/account")===0||e==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(e.indexOf("/paid_memberships")===0||e.indexOf("/refund")===0||e.indexOf("/purchases")===0||e.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(e.indexOf("/product")===0)return"yts-products";if(e.indexOf("/premium")===
0||e.indexOf("/musicpremium")===0)return e.indexOf("/premium/offers")===0||e.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(e==="/cart/checkout"||e==="/cart")return"ypc-checkout";if(e.indexOf("/feed/downloads")===0||e.indexOf("/redeem")===0||e.indexOf("/reporthistory")===0)return"browse";if(e.indexOf("/hashtag")===0)return"hashtag-landing-page";if(e.indexOf("/handle")===0)return"handle";if(e.indexOf("/source")===0)return"audio-pivot";if(e.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(e.indexOf("/playables")===0)return"playables";if(e.indexOf("/create/live/join")===0)return"open-in-app";if(e.indexOf("/shorts")===0)return"shorts";if(e.indexOf("/feed/channels")===0)return"subscriptions-channels";(e=W?_.I_(W):"")&&e.indexOf("/watch")===0&&_.S("web_watch_enable_learning_journey")?(W=_.Yq(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning_journey_watch"}};
_.Da=function(W){var e,t;(W=(t=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:t.url)&&(e=_.Gi(W));return e};
e8L=function(W){var e=W?_.I_(W):"";if(!e)return!1;e=e.toLowerCase();return e.indexOf("/show/")===0||e.indexOf("/playlist")===0&&(W=_.Yq(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
oX=function(W){var e="unknown",t;var b=((t=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:t.webPageType)||"";b?(t=b.toLowerCase(),t.startsWith("web_page_type_")&&(t=t.slice(14))):t=b;t&&t$S[t.toUpperCase()]?e=t$S[t.toUpperCase()]:_.l(W,_.Sf)||_.l(W,b7s)?e="browse":_.l(W,_.Bw)?e="search":_.l(W,_.z4)&&(e="watch");e==="watch"&&_.Da(W||null)==="learning_journey_watch"&&(e="learning_journey_watch");e==="unknown"&&_.JC(Error("Lf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,
commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||[])})));return e};
_.lm=function(W){if(!_.mMz||W)_.mMz=_.uN();return _.mMz};
_.rHz=function(W){return!!_.l(W,_.z4)||!!_.l(W,_.Za)&&_.S("kevlar_enable_shorts_prefetch")};
_.qPs=function(W,e){W=_.l(W,_.z4)||_.l(W,_.Za);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(e?"-an1":"")+(W.params?"-pr"+W.params:"")};
$Q=function(W){return function(){return new W}};
kQ=function(W){var e=_.ee();return function(){return e.resolve(W)}};
QjZ=function(W){var e=_.mn("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;if(!_.l(W,_.Za))return e&&_.JC(Error("Of")),!1;var t;return _.S("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.l(W,_.Za))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:R8R(W)?!0:(e&&_.JC(Error("Pf")),!1)};
R8R=function(W){var e=(_.l(W,_.z4)||_.l(W,_.Za)).videoId;if(!e||!FIg.test(e))return!1;var t;return(W=(t=_.l(W.commandMetadata,_.ez))==null?void 0:t.url)&&(W.includes(e)||W.startsWith("/clip"))?!0:!1};
_.IzS=function(){var W=_.B6();return W.getFlag(192)?W.getFlag(190):!(_.S("web_watch_cinematics_disabled_by_default")||_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&X4Z())};
_.pB=function(W,e,t){var b={};b.currentUrl=e;b.vis=W.vis!==void 0?W.vis:0;b.splay=!1;e=_.B6();b.autoCaptionsDefaultOn=e.getFlag(66);e.getFlag(141)?e.getFlag(140)?b.autonavState="STATE_OFF":b.autonavState="STATE_ON":b.autonavState="STATE_NONE";b.html5Preference="HTML5_PREF_WANTS";isNaN(_.Ot("STS"))||(b.signatureTimestamp=_.Ot("STS"));W.autonav&&(b.autoplay=!0,b.autonav=!0);W.mutedAutoplay&&(b.autoplay=!0,b.mutedAutoplay=!0);W.inlinePlayback&&(b.autoplay=!0,b.autonav=!1,b.isInlineUnmutedPlayback=!!W.inlineUnmuted);
b.referer=t;b.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.S("enable_unknown_lact_fix_on_html5")&&b.lactMilliseconds==="-1"&&_.JC(new _.o_("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};e.getFlag(194)&&(W.hasShownAmbientMode=!0);e.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.IzS()&&(W.watchAmbientModeEnabled=!0);b.watchAmbientModeContext=W;return b};
azR=function(W){var e={},t=W.pbis||0;t&&(e.playbackBeginsInSeconds=t);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(e.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return e};
_.jf=function(W){W=W===void 0?!1:W;var e=_.B6(),t="USER_INTERFACE_THEME_LIGHT";e.getFlag(165)?t="USER_INTERFACE_THEME_DARK":e.getFlag(174)?t="USER_INTERFACE_THEME_LIGHT":_.yI()&&(t="USER_INTERFACE_THEME_DARK");return W?t:w4G()||t};
_.uNS=function(){return!_.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.yI=function(){return _.uNS()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.CB=function(){var W=_.B6();return _.uNS()&&!W.getFlag(165)&&!W.getFlag(174)};
w4G=function(){var W=W===void 0?window.location.href:W;if(_.S("kevlar_disable_theme_param"))return null;var e=_.I_(W);if(_.cHK(e))return"USER_INTERFACE_THEME_DARK";try{var t=_.Yq(W).theme;return vyc.get(t)||null}catch(b){}return null};
_.cHK=function(W){return _.S("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.SPc=function(W,e,t,b,m){e=e===void 0?!1:e;t=t===void 0?!1:t;var q=_.Ot("INNERTUBE_CONTEXT");if(!q)return _.gQ(Error("Sf")),{};q=(0,_.kJ.unsafeClone)(q);_.S("web_no_tracking_params_in_shell_killswitch")||delete q.clickTracking;q.client||(q.client={});var Q=q.client;Q.clientName==="MWEB"&&Q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Q.clientFormFactor=_.Ot("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Q.screenWidthPoints=window.innerWidth;Q.screenHeightPoints=window.innerHeight;Q.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Q.screenDensityFloat=window.devicePixelRatio||1;Q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Q.userInterfaceTheme=_.jf();if(!e){var X=_.wFZ();X&&(Q.connectionType=X);_.S("web_log_effective_connection_type")&&(X=cjv())&&(q.client.effectiveConnectionType=X)}var I;if(_.S("web_log_memory_total_kbytes")&&((I=_.tz.navigator)==null?0:I.deviceMemory)){var u;I=(u=_.tz.navigator)==null?void 0:u.deviceMemory;q.client.memoryTotalKbytes=""+I*1E6}e&&b&&!_.S("web_it_context_set_original_url_ks")&&
(Q.originalUrl=Ge9(_.tz.location.href,b).toString());_.S("web_gcf_hashes_innertube")&&(X=p6c())&&(u=X.coldConfigData,I=X.coldHashData,X=X.hotHashData,q.client.configInfo=q.client.configInfo||{},u&&(q.client.configInfo.coldConfigData=u),I&&(q.client.configInfo.coldHashData=I),X&&(q.client.configInfo.hotHashData=X));u=_.Yq(_.tz.location.href);!_.S("web_populate_internal_geo_killswitch")&&u.internalcountrycode&&(Q.internalGeo=u.internalcountrycode);!_.S("web_populate_client_screen_killswitch")&&m&&(Q.clientScreen=
m);Q.clientName==="MWEB"||Q.clientName==="WEB"?(Q.mainAppWebInfo||(Q.mainAppWebInfo={}),Q.mainAppWebInfo.graftUrl=b||_.tz.location.href,_.S("kevlar_woffle")&&_.nB.instance&&(b=_.nB.instance,Q.mainAppWebInfo.pwaInstallabilityStatus=!b.appInstalledEventFired&&b.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Q.mainAppWebInfo.webDisplayMode=D2Z(),Q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Q.clientName==="TVHTML5"&&
(!_.S("web_lr_app_quality_killswitch")&&(b=_.Ot("LIVING_ROOM_APP_QUALITY"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{appQuality:b})),b=_.Ot("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{certificationScope:b}));!_.S("web_populate_time_zone_itc_killswitch")&&(b=IZS())&&(Q.timeZone=b);(b=foz())?Q.experimentsToken=b:delete Q.experimentsToken;Q=gSL();b=_.DMG();b=(0,_.kJ.getValues)(b.tokenJars);q.request=Object.assign({},q.request,{internalExperimentFlags:Q,consistencyTokenJars:b});
!_.S("web_prequest_context_killswitch")&&(Q=_.Ot("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(q.request.externalPrequestContext=Q);b=_.B6();Q=b.getFlag(58);b=b.get("gsml","");q.user=Object.assign({},q.user);Q&&(q.user.enableSafetyMode=Q);b&&(q.user.lockedSafetyMode=!0);_.S("warm_op_csn_cleanup")?t&&(e=_.fc())&&(q.clientScreenNonce=e):!e&&(e=_.fc())&&(q.clientScreenNonce=e);W&&(q.clickTracking={clickTrackingParams:W});if(W=_.HO("yt.mdx.remote.remoteClient_"))q.remoteClient=W;_.fB.getInstance().setLocationOnInnerTubeContext(q);
try{var c=PUz(),v=c.bid;delete c.bid;q.adSignalsInfo={params:[],bid:v};for(var D=_.R(Object.entries(c)),B=D.next();!B.done;B=D.next()){var k=_.R(B.value),n=k.next().value,f=k.next().value;c=n;v=f;W=void 0;(W=q.adSignalsInfo.params)==null||W.push({key:c,value:""+v})}var M,K;if(((M=q.client)==null?void 0:M.clientName)==="TVHTML5"||((K=q.client)==null?void 0:K.clientName)==="TVHTML5_UNPLUGGED"){var U=_.Ot("INNERTUBE_CONTEXT");U.adSignalsInfo&&(q.adSignalsInfo.advertisingId=U.adSignalsInfo.advertisingId,
q.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",q.adSignalsInfo.limitAdTracking=U.adSignalsInfo.limitAdTracking)}}catch(V){_.gQ(V)}return q};
_.BqG=function(W){var e=new gD(_.Ot("ONE_PICK_URL",""));e.urlParamMap_.set("hostId",W);(W=_.Ot("GAPI_LOCALE"))&&e.urlParamMap_.set("hl",W);(W=_.Ot("SESSION_INDEX"))&&e.urlParamMap_.set("authuser",W);(W=_.Ot("DELEGATED_SESSION_ID"))&&e.urlParamMap_.set("groupId",W);return e};
lzS=function(){var W=_.ee(),e=W.resolve(_.Ti);W=W.resolve(_.J8);return new oyD(e,W)};
$MS=function(W){if(window.IntersectionObserver)return new Z7G(W,400);throw new TypeError("Zf");};
p4z=function(){var W=Hammer.TouchAction,e=W.prototype.preventDefaults;W.prototype.preventDefaults=function(t){var b=this.actions.indexOf("pan-down")>-1;if(!b)return e.call(this,t);if(!kev){var m=t.srcEvent;t=t.direction;var q;if((q=this.manager)==null?0:q.session.prevented)m.preventDefault();else if(b&&t&Hammer.DIRECTION_DOWN)return this.preventSrc(m)}}};
yHG=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.CwG=function(){return jjv?Promise.resolve(jjv):new Promise(function(W,e){var t=self.indexedDB.open("swpushnotificationsdb");t.onerror=e;t.onsuccess=function(){var b=t.result;if(b.objectStoreNames.contains("swpushnotificationsstore"))jjv=b,W(jjv);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.CwG()};
t.onupgradeneeded=nyL})};
nyL=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
gyg=function(W){var e=fzR(),t;return _.F(function(b){switch(b.nextAddress){case 1:return _.Qh(b,2),_.a(b,W.match(e,{cacheName:"yt-appshell-assets"}),4);case 4:t=b.yieldResult;_.Hi(b,3);break;case 2:_.w9(b);case 3:return b.return(t)}})};
fzR=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?TqZ.registration.scope:JHG;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
xMG=function(W){W.map(function(e){return e.source}).join("|")};
_.O7g=function(W){return _.F(function(e){return e.return(gyg(W))})};
M$Z=function(){var W=window.caches,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,_.O7g(W),2);e=t.yieldResult;return t.return(!!e)})};
i7R=function(){_.F(function(W){if(W.nextAddress==1){if(sj2)return W.jumpTo(0);sj2=!0;if(_.S("enable_system_health_primes_monitoring"))return _.Fe(h8c,3E4),H7K(),W.return();if(!(Math.random()<_.mn("web_system_health_fraction")))return W.jumpTo(0);KIg={heightPixels:screen.height,widthPixels:screen.width};xQ&&!isNaN(xQ.jsHeapSizeLimit)&&(KIg.memoryTotalKbytes=String(Math.round(xQ.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(KIg.devicePixelRatio=window.devicePixelRatio);return _.a(W,Pwv(),4)}_.Fe(h8c,
3E4);return _.a(W,V$K(),0)})};
Pwv=function(){return _.F(function(W){if(W.nextAddress==1)return Or.intersectionObserverPresent="IntersectionObserver"in window,Or.serviceWorkerPresent="serviceWorker"in navigator,Or.webSharePresent="share"in navigator,Or.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Or.cacheStoragePresent="caches"in window,Or.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Or.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Or.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Mu&&Mu.webkitTemporaryStorage&&"queryUsageAndQuota"in Mu.webkitTemporaryStorage,Or.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.a(W,YTG(),2);Or.indexedDbPresent=W.yieldResult;Or.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Or.broadcastChannelPresent="BroadcastChannel"in window;Or.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Or.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Or.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.u8(W)})};
h8c=function(){var W=9E4+Math.random()*2E3;_.be()>W||(_.S("enable_system_health_primes_monitoring")?H7K():V$K())};
V$K=function(){var W;return _.F(function(e){if(e.nextAddress==1)return _.a(e,YPc(),2);W=e.yieldResult;_.nJ("systemHealthCaptured",W);_.u8(e)})};
H7K=function(){var W={metric:{}},e=z89();e.networkEvents.length&&(W.metric.networkEvents=UML(e));_.nJ("systemHealthCaptured",W)};
YPc=function(){var W,e,t,b,m,q,Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:W={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};e=window.screen;_.S("enable_is_extended_monitoring")&&e&&"isExtended"in e&&(W.isExtended=!!e.isExtended);t={metric:{staticContext:KIg,dynamicContext:W,webMetric:LIR,webApiSupport:Or}};
if(b=_.fc())t.csn=b;xQ&&(t.metric.webMetric.currentHeapKbytes=Math.round(xQ.usedJSHeapSize/1E3));window.matchMedia&&(t.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,t.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,t.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Mu&&typeof Mu.getBattery==="function")){c.jumpTo(2);break}return _.a(c,Mu.getBattery(),3);case 3:if(m=
c.yieldResult)t.metric.dynamicContext.chargingStatus=m.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(t.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Or.storageEstimatePresent)return _.a(c,navigator.storage.estimate(),8);if(!Or.webkitTemporaryStoragePresent){c.jumpTo(5);break}return _.a(c,Ey9(),7);case 7:q=c.yieldResult;c.jumpTo(5);break;case 8:q=c.yieldResult;case 5:return t.metric.dynamicContext.deviceStorageQuotaMbytes=((Q=q)==null?0:Q.quota)?String(Math.round(q.quota/
1048576/10)*10):"-1",t.metric.dynamicContext.deviceStorageUsageMbytes=((X=q)==null?0:X.usage)?String(Math.round(q.usage/1048576/10)*10):"-1",I=t.metric.dynamicContext,_.a(c,M$Z(),9);case 9:return I.hasAppShell=c.yieldResult,u=z89(),u.networkEvents.length&&(t.metric.networkEvents=UML(u)),c.return(t)}})};
Ey9=function(){return new Promise(function(W){var e;Or.webkitTemporaryStoragePresent&&(e=Mu.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?Mu.webkitTemporaryStorage.queryUsageAndQuota(function(t,b){W({usage:t,quota:b})}):W(void 0)})};
_.sr=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return AH2(W[0],W[1],W[2])};
_.h8=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var e=_.NqR(W,function(t){return t==(t&255)});
W[3]=(W[3]/255).toFixed(3);if(!e)throw Error("$f`"+W.join(","));return"rgba("+W.join(",")+")"};
_.dMQ=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.WtG=function(W){W=W.map(function(e){e/=255;return e<=.03928?e/12.92:Math.pow((e+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
Hw=function(W,e){W=_.dMQ(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+e+")"};
_.egg=function(){try{return!!self.localStorage}catch(W){return!1}};
rNv=function(){if(t_D())_.JC(Error("ag"));else{var W=document.createElement("iframe");W.style.display="none";var e=e===void 0?window.location.href:e;var t=_.J7(_.Ot("PERSIST_IDENTITY_IFRAME_URL"));e=t?t:(new URL(e)).host.indexOf("studio")===0?_.bN(buK,"persist_identity"):_.bN(m$2,"persist_identity");_.DSs(W,1,e);W.id="persist_identity";var b;(b=document.body)==null||b.appendChild(W)}};
t_D=function(){var W=qpR;W||(W=document.querySelector("#persist_identity"));return W};
RgG=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(e){W=!0}return(_.Ot("INNERTUBE_CLIENT_NAME")==="WEB"||_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
QEL=function(W,e){if(!RgG())return!1;e||(e=_.Ot("LOGIN_INFO"));return e?(W.session_logininfo=e,!0):!1};
XlL=function(W,e){W=W===void 0?!1:W;if((e===void 0||!e)&&FtD!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.MD("LOG_STICKINESS",!1)){e=_.fc();var t=_.nc(),b={identityStickinessData:{initialState:FtD}};e&&t&&_.Le(e,t,b)}if(e=t_D())if(t=e.src?(new URL(e.src)).origin:"*",W){var m;(m=e.contentWindow)==null||m.postMessage({action:"clear"},t)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var q;(q=e.contentWindow)==null||q.postMessage({loginInfo:W},t)}};
_.KB=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.xq("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),XlL(!0,W)}catch(e){}};
IS9=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.KB():W.startsWith("https://accounts.google.com/ServiceLogin")?_.KB():W.startsWith("https://myaccount.google.com")&&_.Ya(W).getPath().endsWith("/youtubeoptions")&&_.KB())};
Pw=function(W,e){IS9(W);if(_.MD("LOGGED_IN",!0)&&RgG()){var t=Q8v(W);t==null&&(t={});QEL(t,e)&&_.Aj(W,t)}};
aSc=function(){function W(e){for(e=e.target;e&&e.nodeName!=="A";)if(e=e.parentNode,!(e&&e instanceof HTMLElement))return;if(e&&!e.hasAttribute("download")&&e.getAttribute("rel")!=="external"&&e.href)return e.href}
document.addEventListener("mousedown",function(e){e.button!==0&&(e=W(e))&&Pw(e)});
document.addEventListener("click",function(e){(e=W(e))&&Pw(e)})};
cNS=function(){var W=new wlc;try{if(_.MD("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(X){W.increment(5,!1);return}if(_.Ot("LOGIN_INFO")){var e=uys?uys:window.location;_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&rNv();var t=Q8v(e.href);t==null&&(t={});var b=t.session_logininfo,m=Number(window.sessionStorage.getItem("stickiness_reload")),q=b===_.Ot("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
m>=2||q)m>=2?W.increment(2,q):q?W.increment(7,q):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,q),FtD="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Ot("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Ot("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,q),window.sessionStorage.removeItem("stickiness_reload");
else if(m<2){window.sessionStorage.setItem("stickiness_reload",String(m+1));var Q=e.href;Q=_.W6(Q,"sttick");Pw(Q,window.sessionStorage.getItem("session_logininfo"));Q=_.zn(Q,{sttick:m});W.increment(m,q);_.YN(e,Q)}}else W.increment(6,!1)}else _.KB(!1)}catch(X){}};
_.VI=function(W,e,t,b,m){e=e===void 0?{}:e;t=t===void 0?"":t;b=b===void 0?window:b;W=_.Ut(W,e);Pw(W);t=_.lF(W+t,m);_.YN(b.location,t)};
_.vO9=function(W,e,t,b,m){m=m===void 0?!1:m;t&&_.Aj(W,t);t=_.lF(W);var q=_.v7(t);W!=q&&_.Kt(Error("bg`"+W));W=q;e=e||hj(W).toString(36);try{if(m)return m=W,m=oQ9(m),Pw(m),_.Ty(window,m,e,"attributionsrc")}catch(Q){_.st(Q)}Pw(W);return _.Ty(window,t,e,b)};
GxQ=function(W){if(W.urlEndpoint){if(W=_.Yq(W.urlEndpoint.url),W.adurl)return dM(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
D$G=function(W){if(!W||!W.reportingPings)return null;var e={};W.reportingPings.forEach(function(t){t.pingType in e?e[t.pingType].push(t.url):e[t.pingType]=[t.url]});
return{adpings:ScQ(e)}};
_.im=function(){return{isShellLoad:_.MD("IS_SHELL_LOAD",!1)}};
BWK=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(SpK)})};
SpK=function(W){W&&_.oOv(lSz,W.scope)};
_.oOv=function(W,e){e={scope:e||_.r8("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Xh(W),e)};
YQ=function(W,e,t,b){if(e&&e.serializedYpcCujLoggingParams){if(t){var m={};m.transactionErrorType=t;b&&(m.errorMessage=b);e.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:m}}}t={};t.ypcCujContext=e;W=_.IX("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,t);_.aX(_.wD(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ZuQ=function(W,e,t,b){var m={};m.serializedTransactionFlowLoggingParams=e;t&&(m.errorType=t);b&&(m.errorMessage=b);_.nJ(W,m);_.fJ()};
_.$$9=function(W){W&&_.ZuQ("transactionFlowStarted",W)};
_.kxD=function(W){W&&_.ZuQ("transactionFlowCancelled",W)};
_.zi=function(W,e,t){e&&_.ZuQ("transactionFlowFailed",e,W,t)};
pls=function(W){var e=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");e&&(e.inert=W)};
_.Ur=function(){this.megabloxUrl_=null};
_.LB=function(W){try{var e=yNG==null?void 0:yNG.composedPath(W)}catch(t){e=W.composedPath?W.composedPath():[]}return e&&e.length>0?e:W.composedPath?W.composedPath():[]};
_.Er=function(W){return _.LB(W)[0]};
_.A8=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var e=W.indexOf("style-scope");return e>-1&&e+1<W.length?W[e+1]:null};
Nu=function(W){if(!(W instanceof HTMLElement))return null;var e=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return e?e:_.A8(W)};
jEQ=function(W,e){return W.replace(/[^a-z]*[^\s]+/g,function(t){return t+".style-scope."+e})};
CZD=function(W,e){return e?W.split(",").map(function(t){return jEQ(t.trim(),e)}).join(", "):W};
_.dD=function(W){var e,t,b,m;return(m=(b=(t=(e=W.root)!=null?e:W.shadowRoot)!=null?t:W.__shady_native_shadowRoot)!=null?b:W.__shady_shadowRoot)!=null?m:W};
WG=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
nOc=function(W){var e,t,b;return(b=(t=(e=W.parentElement)!=null?e:W.__shady_native_parentElement)!=null?t:W.__shady_parentElement)!=null?b:null};
fSg=function(W){var e,t,b;return(b=(t=(e=W.parentNode)!=null?e:W.__shady_native_parentNode)!=null?t:W.__shady_parentNode)!=null?b:null};
gOR=function(W){var e,t,b;return(b=(t=(e=W.__shady_parentNode)!=null?e:W.__shady_native_parentNode)!=null?t:W.parentNode)!=null?b:null};
TW9=function(W){var e,t;return(t=(e=fSg(W))!=null?e:W.host)!=null?t:null};
JNv=function(W){var e,t,b;return(b=(t=(e=W.nextSibling)!=null?e:W.__shady_native_nextSibling)!=null?t:W.__shady_nextSibling)!=null?b:null};
x$Z=function(W){var e,t,b;return(b=(t=(e=W.previousSibling)!=null?e:W.__shady_native_previousSibling)!=null?t:W.__shady_previousSibling)!=null?b:null};
OuG=function(W){var e,t,b;return(b=(t=(e=W.nextElementSibling)!=null?e:W.__shady_native_nextElementSibling)!=null?t:W.__shady_nextElementSibling)!=null?b:null};
M_L=function(W){var e,t,b;return(b=(t=(e=W.previousElementSibling)!=null?e:W.__shady_native_previousElementSibling)!=null?t:W.__shady_previousElementSibling)!=null?b:null};
sEZ=function(W){var e,t,b;return new Set([].concat(_.kP((e=W.children)!=null?e:[]),_.kP((t=W.__shady_native_children)!=null?t:[]),_.kP((b=W.__shady_children)!=null?b:[])))};
hg2=function(W){var e,t,b;return new Set([].concat(_.kP((e=W.childNodes)!=null?e:[]),_.kP((t=W.__shady_native_childNodes)!=null?t:[]),_.kP((b=W.__shady_childNodes)!=null?b:[])))};
HuS=function(W){if(!W)return null;var e=_.A8(W);if(!e){var t;return(t=Node.prototype.getRootNode)==null?void 0:t.call(W)}e=e.toUpperCase();for(W=nOc(W);W&&W.tagName!==e;)W=nOc(W);return W?_.dD(W):null};
Ktv=function(W){for(;W&&!(W instanceof HTMLElement);)W=TW9(W);return W};
PZD=function(W){var e=Ktv(W);return W===e?_.A8(W):e?Nu(e):null};
V_9=function(W){return(W=Ktv(W))?Nu(W):null};
iuS=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var e,t;if(((t=(e=W.textContent)==null?void 0:e.trim())!=null?t:"")==="")return!1}return!0};
eB=function(W,e,t){var b=e(W);for(t=t===void 0?V_9(W):t;b&&(PZD(b)!==t||!iuS(b));)W=b,b=e(W);return b};
YpL=function(W,e,t){if(!e)return null;W=V_9(W);return PZD(e)===W&&iuS(e)?e:eB(e,t,W)};
zg9=function(W){return eB(W,gOR,_.A8(W))};
U$G=function(W){return eB(W,OuG)};
LtL=function(W){return eB(W,JNv)};
EOD=function(W){return eB(W,M_L)};
ANR=function(W){return eB(W,x$Z)};
NWD=function(W){return YpL(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,JNv)};
d$2=function(W){var e,t,b;var m=(b=(t=(e=W.firstElementChild)!=null?e:W.__shady_native_firstElementChild)!=null?t:W.__shady_firstElementChild)!=null?b:null;return YpL(W,m,OuG)};
WjZ=function(W){var e,t,b;var m=(b=(t=(e=W.lastChild)!=null?e:W.__shady_native_lastChild)!=null?t:W.__shady_lastChild)!=null?b:null;return YpL(W,m,x$Z)};
e7S=function(W){var e,t,b;var m=(b=(t=(e=W.lastElementChild)!=null?e:W.__shady_native_lastElementChild)!=null?t:W.__shady_lastElementChild)!=null?b:null;return YpL(W,m,M_L)};
ttL=function(W){var e=V_9(W);return Array.from(hg2(W)).filter(function(t){return PZD(t)===e})};
b2z=function(W){var e=Nu(W);return Array.from(sEZ(W)).filter(function(t){return _.A8(t)===e})};
_.tc=function(W,e,t){if(W instanceof HTMLElement&&_.A8(W)===t){var b=Array.from(W.classList).indexOf("style-scope");if(b===-1)W.classList.add("style-scope"),W.classList.add(e);else if(!(b+1>=W.classList.length)){b=W.classList[b+1];var m,q;W==null||(m=W.classList)==null||(q=m.replace)==null||q.call(m,b,e)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(m=_.R(sEZ(W)),q=m.next();!q.done;q=m.next())_.tc(q.value,e,t);return W};
bl=function(W,e){if(W instanceof HTMLElement&&_.A8(W)===e){var t=Array.from(W.classList).indexOf("style-scope");t===-1||t+1>=W.classList.length||W.classList.remove("style-scope",W.classList[t+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){t=_.R(W.children);for(var b=t.next();!b.done;b=t.next())bl(b.value,e)}return W};
_.mvK=function(W,e){return WG(W).prototype.appendChild.call(W,e)};
rx9=function(W,e){if(W===e)return!0;W=hg2(W);return Array.from(W).some(function(t){return rx9(t,e)})};
_.rz=function(W,e){if(W instanceof mZ)return W;(e==null?0:e.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new mZ(W)};
R7G=function(){var W=mZ.prototype,e=[].concat(_.kP(qyK?[]:["getRootNode"]),["setAttribute","removeAttribute"]);e=_.R(e);for(var t=e.next(),b={};!t.done;b={method$jscomp$48:void 0},t=e.next())b.method$jscomp$48=t.value,W[b.method$jscomp$48]=function(m){return function(){return this.host[m.method$jscomp$48].apply(this.host,arguments)}}(b)};
FjK=function(){var W=mZ.prototype,e=[].concat(_.kP(qyK?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.kP(QLz?[]:["querySelector","querySelectorAll"]));e=_.R(e);for(var t=e.next(),b={};!t.done;b={method$jscomp$49:void 0},t=e.next())b.method$jscomp$49=t.value,W[b.method$jscomp$49]=function(m){return function(){return this.root[m.method$jscomp$49].apply(this.root,arguments)}}(b)};
a4K=function(){var W=mZ.prototype,e=[].concat(_.kP(XC2?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.kP(I42?[]:["parentNode"]));e=_.R(e);for(var t=e.next(),b={};!t.done;b={prop$jscomp$62:void 0},t=e.next())b.prop$jscomp$62=t.value,Object.defineProperty(W,b.prop$jscomp$62,{get:function(m){return function(){return this.host[m.prop$jscomp$62]}}(b),
configurable:!0})};
cxc=function(){var W=mZ.prototype,e=["activeElement"].concat(_.kP(XC2?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.kP(wCz?[]:["children"]),_.kP(uaG?[]:["lastChild"]));e=_.R(e);for(var t=e.next(),b={};!t.done;b={prop$jscomp$63:void 0},t=e.next())b.prop$jscomp$63=t.value,Object.defineProperty(W,b.prop$jscomp$63,{get:function(m){return function(){return this.root[m.prop$jscomp$63]}}(b),
configurable:!0})};
vIS=function(){for(var W=mZ.prototype,e=_.R(["innerHTML","textContent"]),t=e.next(),b={};!t.done;b={prop$jscomp$64:void 0},t=e.next())b.prop$jscomp$64=t.value,Object.defineProperty(W,b.prop$jscomp$64,{get:function(m){return function(){return this.root[m.prop$jscomp$64]}}(b),
set:function(m){return function(q){this.root[m.prop$jscomp$64]=q}}(b),
configurable:!0})};
GC9=function(W){var e=mZ.prototype;W=_.R(Object.entries(W));for(var t=W.next(),b={};!t.done;b={fn$jscomp$361:void 0},t=W.next()){var m=_.R(t.value);t=m.next().value;m=m.next().value;b.fn$jscomp$361=m;e[t]=function(q){return function(){return q.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.kP(arguments)))}}(b)}};
SyG=function(){for(var W=mZ.prototype,e=_.R(Object.entries(Dvz)),t=e.next(),b={};!t.done;b={fn$jscomp$362:void 0},t=e.next()){var m=_.R(t.value);t=m.next().value;m=m.next().value;b.fn$jscomp$362=m;Object.defineProperty(W,t,{get:function(q){return function(){return q.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.kP(arguments)))}}(b),
configurable:!0})}};
_.qN=function(W){return W instanceof BFQ||W instanceof Document?W:new BFQ(W)};
oIv=function(){for(var W=BFQ.prototype,e=_.R("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),t=e.next(),b={};!t.done;b={method$jscomp$50:void 0},t=e.next())b.method$jscomp$50=t.value,W[b.method$jscomp$50]=function(m){return function(){return HTMLElement.prototype[m.method$jscomp$50].call.apply(HTMLElement.prototype[m.method$jscomp$50],[this.node].concat(_.kP(arguments)))}}(b)};
l4K=function(){for(var W=BFQ.prototype,e=_.R("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),t=e.next(),b={};!t.done;b={prop$jscomp$65:void 0},t=e.next())b.prop$jscomp$65=t.value,Object.defineProperty(W,b.prop$jscomp$65,{get:function(m){return function(){var q;return(q=this.node["__shady_native_"+m.prop$jscomp$65])!=null?q:this.node[m.prop$jscomp$65]}}(b),
configurable:!0})};
_.RH=function(W,e,t){t===void 0&&(t=!W.classList.contains(e));t?W.classList.add(e):W.classList.remove(e)};
_.QQ=function(W,e,t){t===void 0&&(t=!W.hasAttribute(e));if(e==="class")throw Error("fg");t?_.qN(W).setAttribute(e,""):_.qN(W).removeAttribute(e)};
Z2L=function(W){return(W.localName!=="slot"?[]:(0,_.FB)(W).assignedNodes({flatten:!0})).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
_.$vg=function(W){return(W=_.rz(W).querySelector("slot"))&&W.localName==="slot"?Z2L(W):[]};
_.XB=function(W,e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,e)};
IH=function(W,e){var t=e.bind(W);return function(b){t(b,b.detail)}};
_.aH=function(W,e){var t=kCv.get(W);t||(t=new WeakMap,kCv.set(W,t));if(t.has(e))return t.get(e);if(_.S("web_fi_listen_disable_bound_fn_helper")){var b=e.bind(W);W=function(m){b(m,m==null?void 0:m.detail)}}else W=IH(W,e);
t.set(e,W);return W};
jLK=function(W,e){pCS(W);W.created[yxD].push(e)};
pCS=function(W){if(!W.created||!W.created[yxD]){var e=W.created,t=e?[e]:[];W.created=function(){for(var b=_.R(t),m=b.next();!m.done;m=b.next())m.value.apply(this)};
W.created[yxD]=t}};
CRz=function(W){return function(){var e=_.$N.apply(0,arguments);return function(t,b,m){W.apply(null,_.kP(e))(t,b,m)}}};
nIG=function(){return function(){var W=_.$N.apply(0,arguments);return function(e,t,b){j4Z.apply(null,_.kP(W))(e,t,b)}}};
_.y=function(W){return nIG()(W)};
_.T=function(){return CRz(gBG).apply(null,_.kP(_.$N.apply(0,arguments)))};
_.wz=function(W){return _.S("pbcm_fi_listen_decorators")?f49(W):CRz(nBR)(W)};
f49=function(W){return function(e,t){jLK(e,function(){var b=this[t],m=_.S("web_fi_listen_disable_bound_fn_helper")?function(q){b(q,q.detail)}.bind(this):IH(this,b);
gI9.has(W)?C1(this.hostElement,W,m):this.hostElement.addEventListener(W,m)})}};
_.ul=function(){return CRz(fnK).apply(null,_.kP(_.$N.apply(0,arguments)))};
_.J=function(W){W=W===void 0?{}:W;return CRz(CCc)(W)};
_.cG=function(W){if(W.hostElement&&W!==W.hostElement){var e=_.ZZ(W.hostElement);e=W.renderIdom?e:e.shadowRoot}e||(W=W.root,e=W instanceof Node?_.ZZ(W):null);return e};
_.vG=function(W){return TFG?JxS(W):function(e,t){Object.defineProperty(e,t,{get:function(){var b;return(b=_.cG(this))==null?void 0:b.querySelector(W)},
enumerable:!0,configurable:!0})}};
JxS=function(W){return function(e,t){Object.defineProperty(e,t,{get:function(){var b,m=(b=_.rz(this.hostElement))==null?void 0:b.querySelector(W);if(m)return m;var q;return(q=_.cG(this))==null?void 0:q.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.GF=function(W){return TFG?xvG(W):function(e,t){Object.defineProperty(e,t,{get:function(){var b;return(b=_.cG(this))==null?void 0:b.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
xvG=function(W){return function(e,t){Object.defineProperty(e,t,{get:function(){var b,m=(b=_.rz(this.hostElement))==null?void 0:b.querySelectorAll(W);if(m==null?0:m.length)return m;var q;return(q=_.cG(this))==null?void 0:q.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
O2Q=function(W){return function(e){if(![_.AA,_.O].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("gg");B0K(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(e)}};
_.SB=function(){var W=W===void 0?{}:W;return function(e){if(![Nn,_.D0].includes(Object.getPrototypeOf(e.prototype).constructor))throw Error("hg");oBG(Object.assign({},W,{disableInheritanceCheck:!0}))(e)}};
sLS=function(W,e){Mtg[W]!=null||(Mtg[W]=new Set);Mtg[W].add(e)};
_.BG=function(){var W=_.ul.apply(null,_.kP(_.$N.apply(0,arguments)));return function(e,t){sLS(e.is,t);W(e,t)}};
Z0=function(W,e,t){if(oH(W)&&!h79.has(e)){e=e.replace(/^JSC\$[\d]+_/,"");e=e.replace(/\.\d+(\.|$)/g,function(q,Q){return".#"+Q});
ll[W]!=null||(ll[W]={});var b,m;(b=ll[W])[m=e]!=null||(b[m]=new Set);ll[W][e].has(t)||(ll[W][e].add(t),_.nJ("polymerPropertyAccessEvent",{componentName:W,propertyName:e,accessType:t}))}};
H2G=function(){return _.S("polymer_property_access_logging_debug")||_.S("polymer_enable_property_access_logging")};
oH=function(W){if(_.S("polymer_property_access_logging_debug"))return!0;if(!_.S("polymer_enable_property_access_logging"))return!1;Kjs||(Kjs=Date.now());return(hj(W)+Kjs)%100<_.mn("polymer_property_access_logging_percent")};
PRS=function(W,e){return oH(e)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(t,b,m){if(t.hostElement.loggingStatus.bypassProxyController)return t[b];t.hostElement.loggingStatus.isExternalGet=!0;var q=t[b];t.hostElement.loggingStatus.isExternalGet=!1;if(q instanceof Function)return function(){var Q=_.$N.apply(0,arguments);try{return t.hostElement.loggingStatus.currentExternalCall=b,Z0(e,b,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),q.apply(this===m?t:this,Q)}finally{t.hostElement.loggingStatus.currentExternalCall=
void 0}};
Z0(e,b,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return q},
set:function(t,b,m){if(t.hostElement.loggingStatus.bypassProxyController)return t[b]=m,!0;t.hostElement.loggingStatus.isRendererStamper?Z0(e,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):t.hostElement.loggingStatus.isDeclarativeExternal||Z0(e,b,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{t.hostElement.loggingStatus.currentExternalSet=b,t[b]=m}finally{t.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
Vts=function(W,e){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==e&&Z0(W.tagName.toLowerCase(),e,"PROPERTY_ACCESS_GET_INTERNAL")};
$t=function(W,e,t){W&&(t||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==e)&&Z0(W.tagName.toLowerCase(),e,"PROPERTY_ACCESS_SET_INTERNAL")};
i2D=function(){return{_definePropertyAccessor:function(W,e){var t=this,b=t.hostElement.loggingStatus;b&&(b.isDefiningPropertyAccessor=!0);var m=t[W];m!==void 0&&(t.__data?t._setPendingProperty(W,m):(t.__dataProto!=null||(t.__dataProto={}),t.__dataProto[W]=m));b&&(b.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){Vts(t.hostElement,W);return this.__data[W]},
set:function(q){e||this._setPendingProperty(W,q,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(e,t,b){$t(this.hostElement,e);return W.apply(this,[e,t,b])}}}};
Yys=function(W){H2G()&&_.y(kt.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
z7G=function(W,e){if(e.resolvedFactories.length!==W.resolvedFactories.length)return!0;e=_.R(e.resolvedFactories.entries());for(var t=e.next();!t.done;t=e.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;if(b.providerClass){if(b.providerClass!==W.resolvedFactories[t].providerClass)return!0}else if(b.providerValue){if(b.providerValue!==W.resolvedFactories[t].providerValue)return!0}else if(b.factory!==W.resolvedFactories[t].factory)return!0}return!1};
Uv9=function(W,e){W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,t.constructor===Array)Uv9(t,e);else{var b=e;b.has(t)||(t.inject&&b.add(t),t.behaviors&&Uv9(t.behaviors,b))}};
pD=function(W,e){var t=W[e];W[e]=function(){var b=_.$N.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(t)return t.apply(this,b)}};
NFG=function(){_.yQ.Class=function(t,b){t=LjG(t,b);pD(t.prototype,"created");return t};
pD(jB.prototype,"_initializeProperties");pD(_.CD.prototype,"_initializeProperties");if(EIL)pD(AxG,"created");else{var W=function(){pD(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var e=customElements.define;customElements.define=function(t,b,m){e.call(customElements,t,b,m);t==="tp-yt-iron-list"&&(W(),customElements.define=e)}}}};
W4G=function(W,e){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(dvs.InjectBehavior);W.prototype.provide=e};
_.gz=function(W){return function(e){if(!W.disableElementRegistration){W.noInjection||W4G(e,W.providers);var t=e.prototype;t.__templateHelpers||j4Z(nD.prototype)(t,"__templateHelpers");t=W.is;eUG||(eUG=Date.now());(hj(t)+eUG)%100<_.mn("polymer_log_prop_change_observer_percent")&&j4Z(fD.prototype)(e.prototype,"__propertyObserverObserver");e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(_.tUD.YtHostElementBehavior);Yys(e);O2Q({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(e)}}};
_.h=function(W){return _.gz({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
raG=function(W,e){if(bzQ){W=new W;for(var t=_.R(Object.getOwnPropertyNames(W)),b=t.next();!b.done;b=t.next())b=b.value,e[b]=W[b];for(t=e;t&&t!==Object.prototype;t=Object.getPrototypeOf(t)){b=_.R(Object.getOwnPropertyNames(t));for(var m=b.next();!m.done;m=b.next())m=m.value,W.hasOwnProperty(m)||Object.defineProperty(W,m,mXS(e,m))}}else W.apply(e)};
mXS=function(W,e){return{get:function(){var t=W[e];return t instanceof Function?t.bind(W):t},
set:function(t){W[e]=t}}};
RUz=function(W,e){for(var t=W._noAccessors,b=_.R(Object.getOwnPropertyNames(W)),m=b.next();!m.done;m=b.next())if(m=m.value,!qvR.has(m))if(t)e[m]=W[m];else{var q=Object.getOwnPropertyDescriptor(W,m);q&&(q.configurable=!0,Object.defineProperty(e,m,q))}};
QVD=function(W,e,t){return function(b){if(t){var m=t();b.model=m}if(W[e])W[e](b,b.detail)}};
TF=function(W){var e=[];if(typeof W==="string")W.length>0&&e.push.apply(e,_.kP(W.split(".")));else{W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,typeof t==="string"?e.push.apply(e,_.kP(t.split("."))):e.push(t)}return e};
F4S=function(W,e){if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){for(var t=0;t<e.length;t++){if(!W)return;W=W[e[t]]}return W}};
XAc=function(W,e){if(W.length>e.length)return!1;for(var t=0;t<W.length;t++)if(W[t]!==e[t])return!1;return!0};
a7Q=function(W,e,t){if(e.type==="compute"){var b=e.getter.bind(t);var m=e.args}else b=function(){return t[e.method.methodName].apply(t,_.kP(_.$N.apply(0,arguments)))},m=e.method.args;
I79(W,e.propertyKey,b,m,e.value)};
uVG=function(W,e){if(e.readOnly){var t=Object.getOwnPropertyDescriptor(W.model,e.propertyKey);Object.defineProperty(W.model,e.propertyKey,{get:t.get,set:function(){}});
W.model[wAs(e.propertyKey)]=t.set}};
caQ=function(W,e,t){if(t){var b=e.propertyKey,m=e.selector;e=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.kP(e.selectorArgs.map(function(q){return{type:"path",path:q}})));
I79(W,b,function(q){var Q=_.$N.apply(1,arguments);return m.apply(null,[t.getState()].concat(_.kP(Q)))},e)}};
GPc=function(W,e,t){var b=_.cF(e.propertyKey)+"-changed";voK(W,function(m){var q={value:m.value,queueProperty:!0};m.path.split(".").length>1&&(q.path=m.path);t.dispatchEvent(new CustomEvent(b,{detail:q}))},[{type:"wildcard",
path:e.propertyKey}])};
DX9=function(W,e,t){voK(W,function(){t[e.method.methodName].apply(t,_.kP(_.$N.apply(0,arguments)))},e.method.args)};
wAs=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
SvZ=function(){var W,e=gP(function(t){W=t},!1);
return[W,e]};
$Xg=function(W){W=W.trim().replace(BrD,",").replace(oov,"$1");var e=W[0];e==="-"&&(e=W[1]);if(e>="0"&&e<="9")return{type:"literal",value:Number(W)};if(e==="'"||e==='"')return{type:"literal",value:W.slice(1,-1)};if(e=W.match(l7G)){e=e[1];var t=Zzs[e];if(t)return{type:t,path:W.slice(0,-(e.length+1))}}return{type:"path",path:W}};
jVg=function(W){var e=W.match(kPG);if(e)return W={methodName:e[1],args:pAQ},e[2].trim()&&(e=e[2].replace(yaK,"&comma;").split(","),W.args=e.map($Xg)),W};
C4L=function(W,e,t,b){b=b===void 0?!1:b;e=_.cF(e);var m=Do;m&&(t=m(t,e,"attribute",W));Jc(W,t,e,b)};
Jc=function(W,e,t,b){e=noG(e,b===void 0?!1:b);e===void 0?W.removeAttribute(t):W.setAttribute(t,e)};
noG=function(W,e){switch(typeof W){case "object":case "function":if(W instanceof Date)return W.toString();if(W){if((e===void 0?0:e)&&!_.S("polymer_reflect_objects_as_boolean_killswitch"))return W?"":void 0;e=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(e)return W;try{return JSON.stringify(W)}catch(t){_.JC(Error("Dg`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
f7v=function(W){if(W===void 0)throw Error("Eg");return W};
Ozz=function(W,e,t,b){var m=goD(b);if(m.length){b=t;var q="property";TrL.test(t)?q="attribute":t[t.length-1]==="$"&&(t=t.slice(0,-1),q="attribute");var Q=Jaz(m);Q&&q==="attribute"&&(t==="class"&&W.hasAttribute("class")&&(Q+=" "+W.getAttribute(t)),Jc(W,Q,t));q==="attribute"&&b==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&b==="value"&&W.setAttribute("value","");W.removeAttribute(b);q==="property"&&(t=_.vF(t));e=f7v(e);xXR(e,q,t,m);return!0}return t.slice(0,3)===
"on-"?(W.removeAttribute(t),(q=e).events!=null||(q.events=[]),e.events.push({name:t.slice(3),value:b}),!0):t==="id"?(e.id=b,!0):!1};
goD=function(W){for(var e=[],t=0,b;(b=MUs.exec(W))!==null;){b.index>t&&e.push({type:"literal",value:W.slice(t,b.index)});var m=b[1][0];t=!!b[2];b=b[3].trim();if(m==="{")throw Error("Fg");(m=jVg(b))?e.push({type:"method",negate:t,signature:m}):e.push({type:"path",negate:t,path:b});t=MUs.lastIndex}t&&t<W.length&&(W=W.substring(t))&&e.push({type:"literal",value:W});return e};
Jaz=function(W){for(var e="",t=0;t<W.length;t++){var b=W[t];b.type==="literal"&&(e+=b.value)}return e};
xXR=function(W,e,t,b){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:e,target:t,parts:b})};
P4c=function(W,e,t){var b=!1;if(W.localName==="template"){b=t;var m=e.stripWhitespace;m=sVZ(W,m===void 0?!1:m);var q=W.content.ownerDocument.createDocumentFragment();m.content=q;q.appendChild(W.content);b&&(b.templateInfo=m);b=!0}else W.localName==="slot"&&(e.hasInsertionPoint=!0);if(W.firstChild&&(m=t,W.localName!=="script"&&W.localName!=="style")){q=0;for(var Q=W.firstChild;Q;){var X=Q;if(X.localName==="template"){var I=X.getAttribute("is");if((Q=I==="dom-if")||I==="dom-repeat"){X.removeAttribute("is");
I=X.ownerDocument.createElement("ps-"+I);X.parentNode.replaceChild(I,X);I.appendChild(X);var u=Array.from(X.attributes);u=_.R(u);for(var c=u.next();!c.done;c=u.next())c=c.value,Q?hUs.has(c.name)&&Jc(I,c.value,c.name):Hzz.has(c.name)?Jc(I,c.value,c.name):K4z.has(c.name),X.removeAttribute(c.name);Q=I}else Q=X}if(Q.nodeType===Node.TEXT_NODE){X=void 0;I=W;for(u=Q;((X=u.nextSibling)==null?void 0:X.nodeType)===Node.TEXT_NODE;)c=void 0,(c=u).textContent!=null||(c.textContent=""),u.nextSibling.textContent&&
(u.textContent+=u.nextSibling.textContent),I.removeChild(u.nextSibling);if(e.stripWhitespace&&Q.textContent&&!Q.textContent.trim()){W.removeChild(Q);Q=Q.nextSibling;continue}}P4c(Q,e,{parentIndex:q,parentInfo:m});Q.parentNode&&q++;Q=Q.nextSibling}}var v;if((v=W.hasAttributes)==null?0:v.call(W)){v=t=f7v(t);m=!1;q=Array.from(W.attributes);q=_.R(q);for(X=q.next();!X.done;X=q.next())X=X.value,m=Ozz(W,v,X.name,X.value)||m;b=m||b}W.nodeType===Node.TEXT_NODE&&(v=goD(W.textContent),v.length&&(W.textContent=
Jaz(v)||" ",t=f7v(t),xXR(t,"text","textContent",v),b=!0));t&&b&&(t.infoIndex=e.nodeInfoList.push(t)-1)};
sVZ=function(W,e){e={nodeInfoList:[],stripWhitespace:(e===void 0?!1:e)||W.hasAttribute("strip-whitespace")};P4c(W.content,e);return e};
VU2=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
YvQ=function(W,e,t){e.signalCache!=null||(e.signalCache={});var b=e.signalCache[t];if(!b){var m=t.split(".");b=!iz2(W,m[0]);if(m.length>1&&b){var q=W.getPathMutationSignal(m);b=function(){var Q=M5(W.owner,function(){return W.getWithPath([m[0]])}),X,I=(X=q())==null?void 0:X.value;
return{rootWasDefined:Q!==void 0,value:I}}}else b=function(){var Q=W.getWithPath(m);
return{rootWasDefined:Q!==void 0,value:Q}};
e.signalCache[t]=b}return b()};
UXZ=function(W,e,t,b,m){e=e.parts.map(function(Q,X){if(Q.type==="literal"){t.partWasDefined!=null||(t.partWasDefined=[]);var I;(I=t.partWasDefined)[X]||(I[X]=Q.value!==void 0);return Q.value}var u;if(Q.type==="method"){var c,v=(c=(u=t.partWasDefined)==null?void 0:u[X])!=null?c:!1;v||(v=Q.signature.args.every(function(k){return k.type==="literal"}));
var D=!1,B=!0;u=Q.signature.args.map(function(k){if(k.type==="literal")return k.value;if(k.type!=="path")throw Error("Gg`"+k.type);var n=YvQ(W,t,k.path);k=n.value;n=n.rootWasDefined;D||(D=n);B&&(B=n);return k});
v||(v=m===1?B:D);t.partWasDefined!=null||(t.partWasDefined={});t.partWasDefined[X]=v;if(!v)return;u=(X=YvQ(W,t,Q.signature.methodName).value)&&typeof X==="function"?X.apply(b,u):void 0}else c=YvQ(W,t,Q.path),u=c.value,t.partWasDefined!=null||(t.partWasDefined={}),(v=t.partWasDefined)[X]||(v[X]=u!==void 0||c.rootWasDefined);Q.negate&&(u=!u);return u});
if(e.length===1){var q;return((q=t.partWasDefined)==null?0:q[0])?e[0]:zUD}return e.join("")};
L4Z=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
Eos=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
Aa9=function(W){return"polymerController"in W};
NrD=function(W,e){e=""+TF(e)[0];if(L4Z(W))return W.canNotifyPath(e);if(Aa9(W)&&L4Z(W.polymerController))return W.polymerController.canNotifyPath(e);if(Eos(W)){var t;return!((t=W.properties)==null||!t[e])}if(Aa9(W)&&Eos(W.polymerController)){var b;return!((b=W.polymerController.properties)==null||!b[e])}return!1};
dXc=function(W,e,t){L4Z(W)||Eos(W)?W.notifyPath(e,t):Aa9(W)&&(L4Z(W.polymerController)||Eos(W.polymerController))&&W.polymerController.notifyPath(e,t)};
e$v=function(W,e,t){if(t!==zUD){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||e.localName!=="input"&&e.localName!=="textarea")||(t=t===void 0?"":t);var b,m=(b=W3Z.Polymer)==null?void 0:b.sanitizeDOMValue;m&&(t=m(t,W.target,W.kind,e));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")e=(0,_.FB)(e);Jc(e,t,W)}else if(W=W.target,t!==e[W]||typeof t==="object")e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0,Z0(e.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
e[W]=t,e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)}};
t2D=function(W,e,t,b){var m=e.parts[0];if(e.parts.length!==1||m.type!=="path"||!NrD(t,e.target))return!1;var q=_.R(m.path.split(".")),Q=q.next().value,X=AE(q);if(iz2(W,Q))return!1;b.signalCache!=null||(b.signalCache={});q=b.signalCache[m.path];var I;q=(I=q)==null?void 0:I().value;if((q==null?void 0:q.path)!==void 0){b=TF(q.path);var u=TF(m.path);b=[e.target].concat(_.kP(b.slice(u.length-1)));dXc(t,b,m.negate?!q.value:q.value);return!0}var c=xt(W,Q);var v=c.getChangeRecordSignal(X),D=!1;q=function(){if(!D){var k=
M5(W.owner,function(){return c.getWithPath([])});
D||(D=k!==void 0)}return{value:v(),rootWasDefined:D}};
b.signalCache[m.path]=q;b.partWasDefined!=null||(b.partWasDefined={});q=q();(u=b.partWasDefined)[0]||(u[0]=q.rootWasDefined);var B=M5(W.owner,function(){return c.getWithPath(X)});
b.partWasDefined[0]&&M5(W.owner,function(){return void e$v(e,t,m.negate?!B:B)});
return!0};
byZ=function(W,e,t,b,m,q){if(!t2D(W,e,t,b)){var Q=UXZ(W,e,b,m,q);M5(W.owner,function(){return void e$v(e,t,Q)})}};
mig=function(W,e,t,b,m,q){t=_.R(t);for(var Q=t.next(),X={};!Q.done;X={infoIndex:void 0},Q=t.next()){Q=Q.value;var I=Q.bindings;X.infoIndex=Q.infoIndex;Q=Q.parentInfo;if(I){I=_.R(I);for(var u=I.next(),c={};!u.done;c={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},u=I.next()){c.b$jscomp$252=u.value;if(X.infoIndex===void 0)throw Error("Hg");c.bindingCtx$jscomp$4={};W.effect(function(v,D){return function(){m&&!m()||byZ(W,v.b$jscomp$252,e[D.infoIndex],v.bindingCtx$jscomp$4,b,q)}}(c,X))}}Q&&mig(W,e,[Q],
b,m,q)}};
rMg=function(W,e){W=(e.parentInfo?rMg(W,e.parentInfo):W).firstChild;for(var t=0;W;W=W.nextSibling)if(e.parentIndex===t++)return W;throw Error("Ig");};
R$R=function(W,e,t,b){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(b==null?0:b.hasInsertionPoint);for(var m=Array(e.length),q={},Q=0;Q<e.length;Q++){var X=e[Q],I=rMg(W,X);m[Q]=I;X.id&&(q[X.id]=I);if(X.templateInfo){var u=I.parentElement;u&&(u.templateInfo=X.templateInfo,u.parentSignalProxy=t,u.eventListenerHost=b.eventListenerHost,u.stampingEnabled=b.enabledSignal)}u=void 0;if((u=X.events)==null?0:u.length)for(u=0;u<X.events.length;u++){var c=X.events[u];qes(b.eventListenerHost,I,c.name,
c.value,b.getModel)}}mig(t,m,e,b.thisCtx,b.enabledSignal,b.methodInvocationRequirement);return{root:W,nodes:m,nodesById:q}};
F3S=function(W,e){W=W();var t;(t=QCs.ShadyCSS)==null||t.prepareTemplate(W,e);e=sVZ(W);return{template:W,nodeInfoList:e.nodeInfoList,hasInsertionPoint:e.hasInsertionPoint}};
aq9=function(){XBL=!1;for(var W=Oz.length,e=0;e<W;e++){var t=Oz[e];if(t)try{t()}catch(b){Promise.resolve().then(function(){throw b;})}}Oz.splice(0,W);
IqK+=W};
ves=function(W){XBL||(XBL=!0,wBv.textContent=(uKz++).toString());Oz.push(W);return cMg++};
_.hc=function(W,e,t){MN++;W=e?new GpS(MN,W,e,t):new Div(MN,W);sz.set(MN,W);return MN};
Seg=function(W){(W=sz.get(W))&&W.cancel()};
oeQ=function(W,e){W=Bcg.get(W);return W?(e=W.get(e))?e:null:null};
_.HG=function(W,e,t,b){var m=oeQ(W,e);if(!m){m=new lqQ;var q=Bcg.get(W);q||(q=new Map,Bcg.set(W,q));q.set(e,m)}W=t.bind(W);m.run(W,b,void 0)};
_.Zy2=function(W,e){var t;(t=oeQ(W,e))==null||t.cancel()};
$iv=function(W){var e;(e=oeQ(W,"doRender"))==null||e.flush()};
KD=function(W){var e;return(e=W.hostElement)!=null?e:W};
kps=function(W){var e=W.indexOf(".");return e===-1?W:W.slice(0,e)};
pBv=function(W,e,t,b,m,q){q=(m=(b=q?kps(e):e)?e:null)?W.get(m):W.__data[e];m&&q===void 0&&(q=t[e]);_.q2(W.hostElement,rFQ(b)+"-changed",{value:q,queueProperty:!0,path:m!=null?m:void 0},{bubbles:!1,composed:!1})};
yM2=function(W,e){W.__isReflecting=!0;C4L(W.hostElement,e,W.__data[e]);W.__isReflecting=!1};
jCD=function(W){if(W._onIronRequestResizeNotifications){var e=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(t){_.Er(t)!==W.hostElement&&e(t)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(t){W.toggles?Jc(W.hostElement,t?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.hc(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=KD(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(t){var b=KD(t);return _.ZZ(b).observeNodes(function(m){W._updateItems();W._updateSelected();_.q2(b,"iron-items-changed",m,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.PG._updateItems&&(W._updateItems=function(){var t=_.ZZ(W.hostElement).queryDistributedElements(W.selectable||"*");t=Array.prototype.filter.call(t,W._bindFilterItem);W._setItems(t)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(t){_.RH(W.hostElement,"keyboard-focus",t)});
W.ensureRipple&&(W.ensureRipple=function(t){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var b=W._rippleContainer||W.hostElement;b&&_.rz(b).appendChild(W._ripple)}var m;if(t&&((m=W._ripple)==null?0:m.uiDownAction)){b=_.rz(W._rippleContainer||W.hostElement);var q;m=(q=t.composedPath())==null?void 0:q[0];b.contains(m)&&W._ripple.uiDownAction(t)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(t){t?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
COK=function(W,e,t){t=_.R(t);for(var b=t.next();!b.done;b=t.next())raG(b.value.constructor,W);raG(e.constructor,W)};
fqL=function(W,e){W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,t.type==="signal"){var b=t.propertyKey;if(e.hasOwnProperty(b)&&e[b]!=null&&t.attributeType===Object){a:{b=e[b].constructor;for(var m=_.R(ne2),q=m.next();!q.done;q=m.next())if(q=q.value,b===q){b=q;break a}b=Object}t.attributeType=b}}};
geD=function(){};
Tcz=function(W){var e;return(e=W.hostElement)!=null?e:W};
JM9=function(){throw Error("Mg");};
xic=function(W,e){W.constructor.prototype.useSignals=!0;var t=new W.constructor;COK(t,W,e.behaviors);fqL(e.reactiveSchemas,t);t={};for(var b=_.R(e.reactiveSchemas),m=b.next();!m.done;m=b.next())m=m.value,m.type==="signal"&&(t[m.propertyKey]=m.attributeType);var q={copyPropertiesToProto:JM9,didRegister:!1,typesForSignals:t},Q=["disable-upgrade"].concat(_.kP(e.observedAttributes)),X=function(I){VQ.call(this,W,e,q,I)};
_.Z(X,VQ);_.Ec.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q}}});
q.copyPropertiesToProto=function(){for(var I=0;I<e.behaviors.length;I++)RUz(e.behaviors[I],X.prototype);RUz(W,X.prototype)};
e.legacyOptimizations||q.copyPropertiesToProto();X.prototype.is=W.is;return X};
OyZ=function(W,e){if(Object.getPrototypeOf(e.prototype).constructor!==_.O)throw Error("Ng");e.prototype.is=W.is;return xic(e.prototype,W)};
M22=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
sCD=function(W){for(var e=W.reactiveSchemas.filter(M22),t=new Map,b=new Map,m=new Map,q=_.R(e),Q=q.next();!Q.done;Q=q.next())Q=Q.value,t.set(Q.propertyKey,Q),b.set(Q.propertyKey,[]),m.set(Q.propertyKey,0);q=0;e=_.R(e);for(Q=e.next();!Q.done;Q=e.next()){Q=Q.value;for(var X=_.R(Q.type==="computeWithMethod"?Q.method.args:Q.args),I=X.next();!I.done;I=X.next())I=I.value,I.type!=="literal"&&(I=I.path.split(".")[0],b.has(I)&&(b.get(I).push(Q.propertyKey),m.set(Q.propertyKey,m.get(Q.propertyKey)+1),q++))}Q=
[].concat(_.kP(b.keys())).filter(function(u){return m.get(u)===0});
for(e=[];Q.length;)for(X=Q.shift(),e.push(t.get(X)),X=_.R(b.get(X)),I=X.next();!I.done;I=X.next())I=I.value,m.set(I,m.get(I)-1),q--,m.get(I)===0&&Q.push(I);t=W.reactiveSchemas.filter(function(u){return!M22(u)});
W.reactiveSchemas=[].concat(_.kP(t),_.kP(e))};
h$2=function(W,e){if(e.properties)for(var t=_.R(Object.entries(e.properties)),b=t.next();!b.done;b=t.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;W.properties[b]=typeof m==="function"?{type:m}:m}e.observers&&W.observers.push.apply(W.observers,_.kP(e.observers));e.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.kP(e.disabledPolySiReactions))};
HyG=function(W,e){for(var t=e.length-1;t>=0;t--){var b=e[t];Array.isArray(b)?HyG(W,b):W.indexOf(b)<0&&W.unshift(b)}};
K3G=function(W,e){W.reactiveSchemas=W.reactiveSchemas.filter(function(t){return t.type==="observe"&&e.includes(t.method.methodName)||M22(t)&&e.includes(t.propertyKey)?!1:!0})};
V2v=function(W,e){var t=e.prototype,b,m,q={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[dvs.InjectBehavior,nD.prototype],disableElementRegistration:W.disableElementRegistration,provide:(b=W.providers)!=null?b:[],reactivityMode:W.reactivityMode,signalProperties:(m=t.signalProperties)!=null?m:[]};"template"in e?q.templateGetter=function(){return e.template}:W.getTemplate&&(q.templateGetter=W.getTemplate);
t.behaviors&&HyG(q.behaviors,t.behaviors);POQ(q,e);return q};
POQ=function(W,e){for(var t=e.prototype,b={properties:{},observers:[],disabledPolySiReactions:[]},m=_.R(W.behaviors),q=m.next();!q.done;q=m.next())h$2(b,q.value);h$2(b,t);if(W.signalProperties)for(t=_.R(W.signalProperties),m=t.next();!m.done;m=t.next())delete b.properties[m.value];t=_.R(Object.entries(b.properties));for(m=t.next();!m.done;m=t.next()){q=_.R(m.value);m=q.next().value;q=q.next().value;var Q=void 0;if((Q=W.signalProperties)==null||!Q.includes(m)){Q=void 0;var X=W,I=q.type;if(!I)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{I=Reflect.getMetadata("design:type",e,m);for(var u=_.R(iys),c=u.next();!c.done;c=u.next())if(c=c.value,I===c){I=c;break a}I=Object}else I=String;q.computed||q.selector||(X.reactiveSchemas.push({type:"signal",propertyKey:m,value:q.value,attributeType:I,readOnly:q.readOnly}),X.observedAttributes.push(_.cF(m)));q.reflectToAttribute&&X.reactiveSchemas.push({type:"reflect",propertyKey:m});if(q.computed){I=jVg(q.computed);if(!I)throw Error("Og");X.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:m,method:I,value:q.value})}q.observer&&X.reactiveSchemas.push({type:"observe",method:{methodName:q.observer,args:[{type:"path",path:m}]}});q.notify&&X.reactiveSchemas.push({type:"notify",propertyKey:m});q.selector&&X.reactiveSchemas.push({type:"redux",propertyKey:m,selector:q.selector,selectorArgs:(Q=q.selectorArgs)!=null?Q:[]})}}Yez&&sCD(W);e=_.R(b.observers);for(m=e.next();!m.done;m=e.next())t=W,m=m.value,(q=jVg(m))?t.reactiveSchemas.push({type:"observe",method:q}):console.log('Warning: unable to parse observe declaration: "'+
m+'"');K3G(W,b.disabledPolySiReactions)};
z$2=function(W,e){for(var t=0;t<e.length;t++){var b=e[t],m=void 0;(m=b).showHideApi!=null||(m.showHideApi={});m=void 0;!!W!==!((m=b.showHideApi)==null||!m.hideTemplateChildren)&&(b.nodeType===Node.TEXT_NODE?W?(b.showHideApi.polymerTextContent=b.textContent,b.textContent=""):(m=void 0,b.textContent=(m=b.showHideApi.polymerTextContent)!=null?m:null):b instanceof Element&&b.localName==="slot"?W?(b.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.FB)((0,_.FB)(b).parentNode).replaceChild(b.showHideApi.polymerReplaced,
b)):(m=b.showHideApi.polymerReplaced)&&(0,_.FB)((0,_.FB)(m).parentNode).replaceChild(b,m):b instanceof HTMLElement&&b.style&&(W?(b.showHideApi.polymerDisplay=b.style.display,b.style.display="none"):b.style.display=b.showHideApi.polymerDisplay));b.showHideApi.hideTemplateChildren=W;b.showHideChildren&&b.showHideChildren(W)}};
L3v=function(){if(!UiL){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);UiL=!0}};
il=function(){return _.S("disable_hidden_dom_if_using_stamper")||_.S("creator_disable_hidden_dom_if_using_stamper")};
Eez=function(W,e){var t=_.Yt().getState();return e?W.apply(null,[t].concat(_.kP(e))):W(t)};
diG=function(){if(AMv)return AMv;var W=_.R(_.up(0,void 0,"Nl6eIe")),e=W.next().value;W.next();var t=W.next().value;_.Yt().subscribe(function(){Ncc(t)});
return AMv=e};
Ncc=function(W){_.S("delay_redux_signal_update_killswitch")?W(function(e){return e+1}):WaL||(WaL=!0,Promise.resolve().then(function(){W(function(e){return e+1});
WaL=!1}))};
_.Yt=function(){return eu9.getAppStore()};
zF=function(W,e){return eu9.getSelectFn()(W,e)};
_.Uz=function(W){eu9.getDispatchFn()(W)};
trR=function(W,e){var t={},b;for(b in W)t[b]=e(W[b],b);return t};
_.LD=function(W,e){return function(){var t;return(t=_.TQ(W))!=null?t:e}};
_.Ez=function(W,e){var t=Object.assign({},W),b;for(b in e)e.hasOwnProperty(b)&&(t[b]=_.LD(W[b],e[b]));return t};
bL2=function(W,e,t){W instanceof Element&&(t.debugName||(t.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.S("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=trR(e,function(b){return function(){return b()}}))))};
mEL=function(W){var e;if(!(e=Ac.traceAllComponents)){var t;e=(t=N2)==null?void 0:t.activeSpan;e=(e==null?void 0:e.name)!=="ytComponent"}return e?OMK("ytComponent",{},W):W()};
_.NN=function(W,e){var t=function(b){return mEL(function(m){var q=rUv={};var Q;if(((Q=t)==null?0:Q.idomCompat)&&b.renderedFromIdom){var X;Q=typeof t.idomCompat==="object"?(X=t)==null?void 0:X.idomCompat.callbacks:{};Q=_.R(q3Z(b,Q,t.debugName));X=Q.next().value;Q.next();Q=Q.next().value;var I=RuQ(W,X);q.privateValue=I;rUv=void 0;bL2(I,X,t);q={debugName:t.debugName};m&&q&&Object.assign(m.attributes,q);m=NTQ(I);m=Array.isArray(m)?m[0]:m;m[aA]||(m[aA]={});m[aA].updateSignalsFromIdomProps=Q;QuK(X,I);return I}Q=
trR(b,Fac);X=RuQ(W,Q);q.privateValue=X;rUv=void 0;bL2(X,Q,t);q={debugName:t.debugName};m&&q&&Object.assign(m.attributes,q);QuK(Q,X);return X})};
t.debugName=e===void 0?"":e;return t};
RuQ=function(W,e){W=W(e);return vO(W)};
XVg=function(W,e){W[e]||(W=new _.o_("IDOM interop setter undefined. Key:",e),_.gQ(W))};
Fac=function(W,e){return e==="children"||e==="ref"||typeof W==="function"||W===void 0?W:function(){return _.TQ(W)}};
q3Z=function(W,e,t){var b={},m={},q={},Q={},X;for(X in W){Q={key$jscomp$894:Q.key$jscomp$894};Q.key$jscomp$894=X;var I=W[Q.key$jscomp$894];if(Q.key$jscomp$894==="children"||Q.key$jscomp$894==="ref")b[Q.key$jscomp$894]=I;else if(typeof I==="function")Q.key$jscomp$894 in e||I.length>0?(q[Q.key$jscomp$894]=I,b[Q.key$jscomp$894]=function(c){return function(){return q[c.key$jscomp$894].apply(q,_.kP(_.$N.apply(0,arguments)))}}(Q)):b[Q.key$jscomp$894]=I;
else if(!(W[Q.key$jscomp$894]===void 0&&Q.key$jscomp$894 in e)){var u=_.R(_.up(W[Q.key$jscomp$894],{debugName:"__cwis:"+t+":"+Q.key$jscomp$894},"WAasgc"));I=u.next().value;u=u.next().value;b[Q.key$jscomp$894]=I;m[Q.key$jscomp$894]=u}}return[b,m,function(c){var v={},D;for(D in c)v={key$jscomp$895:v.key$jscomp$895,val$jscomp$117:void 0},v.key$jscomp$895=D,v.val$jscomp$117=c[v.key$jscomp$895],v.key$jscomp$895!=="children"&&v.key$jscomp$895!=="ref"&&(typeof v.val$jscomp$117==="function"?v.key$jscomp$895 in
e?q[v.key$jscomp$895]=v.val$jscomp$117:v.val$jscomp$117.length>0&&(q[v.key$jscomp$895]=v.val$jscomp$117,_.JC(new _.o_("Callback detected that was not set in the idomCompat callbacks map. Key:",v.key$jscomp$895))):v.key$jscomp$895 in e&&v.val$jscomp$117===void 0||(XVg(m,v.key$jscomp$895),Bf(function(B){return function(){m[B.key$jscomp$895](B.val$jscomp$117)}}(v))))}]};
wVZ=function(W,e,t){var b=vB9(W.prototype,IGL,W.prototype.behaviors);b.prototype.is=e;b.prototype.localName=e;t&&aGg(b,t);return function(m){m&&(b.prototype.hostElement=m);var q=new b;q.root=q;q.hostElement=m;return q}};
aGg=function(W,e){var t;Object.defineProperty(W.prototype,"_template",{get:function(){t===void 0&&(t=e());return t},
set:function(b){t=b},
configurable:!0,enumerable:!0})};
DEv=function(W,e,t,b){function m(){if(!B){for(var k=new Set,n=_.R(c),f=n.next();!f.done;f=n.next()){f=f.value;for(var M=_.R(Object.getOwnPropertyNames(f)),K=M.next();!K.done;K=M.next()){K=K.value;var U=void 0,V=(U=Object.getOwnPropertyDescriptor(f,K))==null?void 0:U.value;V&&V instanceof Function&&!dz(K)&&(!X[K]||_.S("polymer_forward_method_killswitch"))&&k.add(K)}}n=_.R(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(f=n.next();!f.done;f=n.next())M=_.R(f.value),f=M.next().value,
M=M.next().value,M.value instanceof Function&&!dz(f)&&k.add(f);B=k}return B}
uSQ(W,e,b==null?void 0:b.providers);GLQ(W.prototype,W,!0);var q=wVZ(W,e,t),Q,X=(Q=W.prototype.properties)!=null?Q:{},I,u,c=(u=(I=W.prototype.behaviors)==null?void 0:I.flat(Infinity))!=null?u:[];t=_.R(c);for(Q=t.next();!Q.done;Q=t.next())X=Object.assign({},Q.value.properties,X);var v=[].concat(_.kP(cUS),_.kP(Object.keys(X).map(function(k){return _.cF(k)}))),D=!1,B;
return{ctor:function(k,n){var f=q(k),M,K;k=[].concat(_.kP((M=b==null?void 0:b.allowedProps)!=null?M:[]),_.kP((K=b==null?void 0:b.allowedPropsFromBehaviors)!=null?K:[]));f.allowedProps=k.length>0?k:void 0;M={};K=_.R(v);for(k=K.next();!k.done;k=K.next())k=k.value,M[k]=_.vF(k);f.__dataAttributes=M;var U=f.ready.bind(f);f.ready=function(){n.beforeReady();U();if(oH(e)&&!D){var V=f.__templateInfo;if(V==null?0:V.hostProps){V=_.R(Object.keys(V.hostProps));for(var L=V.next();!L.done;L=V.next())Z0(e,L.value,
"PROPERTY_ACCESS_GET_INTERNAL")}D=!0}};
f._overrideLegacyUndefined=!0;return f},
props:X,observedAttributes:v,getInitialMethods:m,getPropsToForwardBeforeRegister:function(){for(var k=[],n=new Set,f=_.R(Object.keys(X)),M=f.next();!M.done;M=f.next())M=M.value,k.push([M,X[M].readOnly]),n.add(M);f=m();M=_.R(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var K=M.next();!K.done;K=M.next())K=K.value,!vWg(K)||f.has(K)||n.has(K)||(k.push([K,!1]),n.add(K));n=_.R(G7G);for(f=n.next();!f.done;f=n.next())k.push([f.value,!0]);return k},
getPropsToForwardBeforeReady:function(k){for(var n=[],f=_.R(Object.entries(k)),M=f.next();!M.done;M=f.next()){var K=_.R(M.value);M=K.next().value;K=K.next().value;if(vWg(M)&&!(K instanceof Function)&&(n.push([M,!1]),oH(e))){var U=K=void 0;(U=(K=k)._createPropertyAccessor)==null||U.call(K,M)}}return n},
shouldForwardProp:vWg,shouldLog:oH}};
uSQ=function(W,e,t){W4G(W,t);W.prototype.behaviors.unshift(S3g);if(H2G()){if(oH(e)){var b;(b=W.prototype).behaviors!=null||(b.behaviors=[]);W.prototype.behaviors.unshift(i2D())}Yys(W)}_.y(nD.prototype)(W.prototype,"__templateHelpers")};
dz=function(W){return BXQ.has(W)||W.startsWith("__compute__")};
vWg=function(W){return!dz(W)&&!W.startsWith("_")&&!W.endsWith("_")};
k7G=function(W,e){function t(){var D=I();D=_.R(D);for(var B=D.next();!B.done;B=D.next()){var k=_.R(B.value);B=k.next().value;k=k.next().value;oW9(v.prototype,B,k)}b=!0}
var b=!1,m=W.ctor,q=W.getInitialMethods,Q=W.observedAttributes,X=W.getPropsToForwardBeforeReady,I=W.getPropsToForwardBeforeRegister,u=W.shouldForwardProp,c=W.shouldLog,v=function(){var D=HTMLElement.call(this)||this;D.didForwardDynamicProps=!1;D.loggingStatus={};b||t();D.inst=m(D,{beforeReady:function(){D.didForwardDynamicProps||(D.forwardDynamicProps(),D.didForwardDynamicProps=!0)}});
D.controllerProxy=PRS(D.inst,e);D.forwardMethods();return D};
_.Z(v,HTMLElement);v.prototype.forwardMethods=function(){for(var D=this,B=_.R(this.inst.getExtraMethodsToForward()),k=B.next(),n={};!k.done;n={method$jscomp$60:void 0},k=B.next()){var f=_.R(k.value);k=f.next().value;f=f.next().value;n.method$jscomp$60=f;this[k]=function(M){return function(){return M.method$jscomp$60.call.apply(M.method$jscomp$60,[D.inst].concat(_.kP(_.$N.apply(0,arguments))))}}(n)}B=_.R(q());
for(n=B.next();!n.done;n=B.next())n=n.value,u(n)&&lGL(this,n),c(e)&&!dz(n)&&ZLG(this.inst,n)};
v.prototype.forwardDynamicProps=function(){var D=X(this.inst);D=_.R(D);for(var B=D.next();!B.done;B=D.next()){var k=_.R(B.value);B=k.next().value;k=k.next().value;oW9(this,B,k);c(e)&&!dz(B)&&$EQ(this.inst,B)}};
v.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
v.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
v.prototype.attributeChangedCallback=function(D,B,k){this.inst.attributeChangedCallbackWrapper(D,B,k)};
_.Ec.Object.defineProperties(v.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return e}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Ec.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q}}});
customElements.define(e,v)};
oW9=function(W,e,t){W.hasOwnProperty(e)||Object.defineProperty(W,e,{get:function(){var b,m=((b=W.is)!=null?b:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Z0(m,e,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,b=this.polymerController[e],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,b},
set:function(b){if(!t){var m,q=((m=W.is)!=null?m:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Z0(q,e,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=e,this.loggingStatus.bypassProxyController=!0,this.polymerController[e]!==b&&(m={},this.polymerController.setProperties((m[e]=b,m)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
lGL=function(W,e,t){var b=W.polymerController;W[e]=function(){var m=_.$N.apply(0,arguments);W.loggingStatus.currentExternalCall=e;W.loggingStatus.bypassProxyController=!0;var q,Q=((q=W.is)!=null?q:W.tagName).toLowerCase();Z0(Q,e,"PROPERTY_ACCESS_CALL_EXTERNAL");var X;q=(X=t!=null?t:b[e])==null?void 0:X.call.apply(X,[b].concat(_.kP(m)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return q}};
ZLG=function(W,e){var t=W.hostElement,b=W[e];W[e]=function(){var m=_.$N.apply(0,arguments);if(t.loggingStatus.currentExternalCall!==e){var q,Q=((q=t.is)!=null?q:t.tagName).toLowerCase();Z0(Q,e,"PROPERTY_ACCESS_CALL_INTERNAL")}return b==null?void 0:b.apply(W,m)}};
$EQ=function(W,e){var t=Object.getOwnPropertyDescriptor(W,e);t&&!t.get&&Object.defineProperty(W,e,{get:function(){Vts(W.hostElement,e);return t.value},
set:function(b){$t(W.hostElement,e);t.value=b}})};
pVc=function(W){return _.S("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
ju2=function(W,e){var t=yUS(W);W instanceof Element&&t.unshift(W);W=_.R(t.filter(pVc));for(var b=W.next();!b.done;b=W.next()){var m=void 0;b=_.R((m=b.value.__instances)!=null?m:[]);for(m=b.next();!m.done;m=b.next())if(m=m.value,m.root){m=Array.from(m.root.children);m=_.R(m);for(var q=m.next();!q.done;q=m.next())t.push.apply(t,_.kP(ju2(q.value,e)))}}return t.filter(function(Q){return Q.usePatchedLifecycles&&Q.lifecycleIsConnected===e})};
yUS=function(W){var e=null;W instanceof Element?e=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(e=DocumentFragment.prototype.querySelectorAll);return e?Array.from(e.call(W,"*")):[]};
Wg=function(W){ab(function(){for(var e=_.R(ju2(W,!1)),t=e.next();!t.done;t=e.next()){t=t.value;t.lifecycleIsConnected=!0;try{var b=void 0,m=void 0,q=void 0,Q=void 0;(b=(Q=t.polymerController)!=null?Q:t)==null||(q=(m=b).connectedCallback)==null||q.call(m)}catch(X){_.gQ(X)}}})};
eg=function(W){ab(function(){for(var e=_.R(ju2(W,!0)),t=e.next();!t.done;t=e.next()){t=t.value;t.lifecycleIsConnected=!1;try{var b=void 0,m=void 0,q=void 0,Q=void 0;(b=(Q=t.polymerController)!=null?Q:t)==null||(q=(m=b).disconnectedCallback)==null||q.call(m)}catch(X){_.gQ(X)}}})};
xEL=function(){if(!CB2){CB2=!0;var W=[Node];t_&&W.push(t_.Wrapper);var e=Node.prototype.insertBefore,t=Node.prototype.removeChild;W=_.R(W);for(var b=W.next(),m={};!b.done;m={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},b=W.next())b=b.value,m.nativeInsertBefore=b.prototype.insertBefore,b.prototype.insertBefore=function(Q){return function(X,I){if(X instanceof DocumentFragment){var u=Array.from(X.children);X=Q.nativeInsertBefore.call(this,X,I);
if(this.isConnected&&Q.nativeInsertBefore===e)for(I=_.R(u),u=I.next();!u.done;u=I.next())Wg(u.value);return X}u=X instanceof Element&&X.isConnected;I=Q.nativeInsertBefore.call(this,X,I);u&&eg(X);this.isConnected&&Wg(X);return I}}(m),m.nativeAppendChild=b.prototype.appendChild,b.prototype.appendChild=function(Q){return function(X){if(X instanceof DocumentFragment){var I=Array.from(X.children);
X=Q.nativeAppendChild.call(this,X);if(this.isConnected){I=_.R(I);for(var u=I.next();!u.done;u=I.next())Wg(u.value)}return X}I=X instanceof Element&&X.isConnected;u=Q.nativeAppendChild.call(this,X);I&&eg(X);this.isConnected&&Wg(X);return u}}(m),m.nativeRemoveChild=b.prototype.removeChild,b.prototype.removeChild=function(Q){return function(X){var I=X instanceof Element&&X.isConnected,u=Q.nativeRemoveChild.call(this,X);
I&&t===Q.nativeRemoveChild&&eg(X);return u}}(m),m.nativeReplaceChild=b.prototype.replaceChild,b.prototype.replaceChild=function(Q){return function(X,I){if(X instanceof DocumentFragment){var u=Array.from(X.children);
X=Q.nativeReplaceChild.call(this,X,I);if(this.isConnected)for(eg(I),I=_.R(u),u=I.next();!u.done;u=I.next())Wg(u.value);return X}u=X instanceof Element&&X.isConnected;var c=this.isConnected,v=Q.nativeReplaceChild.call(this,X,I);c&&eg(I);u&&eg(X);c&&Wg(X);return v}}(m);
W=[Element];t_&&W.push(t_.Wrapper);W=_.R(W);b=W.next();for(m={};!b.done;m={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},b=W.next())b=b.value,b.prototype.before=nW9(b.prototype.before),b.prototype.after=nW9(b.prototype.after),m.nativeReplaceWith=b.prototype.replaceWith,b.prototype.replaceWith=function(Q){return function(){var X=_.$N.apply(0,arguments),I=_.R(fG2(X)),u=I.next().value,
c=I.next().value;I=this.isConnected;Q.nativeReplaceWith.apply(this,X);X=_.R(c);for(c=X.next();!c.done;c=X.next())eg(c.value);if(I)for(eg(this),u=_.R(u),I=u.next();!I.done;I=u.next())I=I.value,I instanceof Element&&Wg(I)}}(m),m.nativeRemove=b.prototype.remove,b.prototype.remove=function(Q){return function(){var X=this.isConnected;
Q.nativeRemove.call(this);X&&eg(this)}}(m),m.nativeInsertAdjacentElement=b.prototype.insertAdjacentElement,b.prototype.insertAdjacentElement=function(Q){return function(X,I){var u=I.isConnected;
X=Q.nativeInsertAdjacentElement.call(this,X,I);u&&eg(I);X.isConnected&&Wg(X);return X}}(m),m.nativeSetAttribute=b.prototype.setAttribute,b.prototype.setAttribute=function(Q){return function(X,I){var u=gWQ(this);
if(!u.usePatchedLifecycles)return Q.nativeSetAttribute.call(this,X,I);var c=this.getAttribute(X);Q.nativeSetAttribute.call(this,X,I);I=this.getAttribute(X);TXc(u,X,c,I)}}(m),m.nativeRemoveAttribute=b.prototype.removeAttribute,b.prototype.removeAttribute=function(Q){return function(X){var I=gWQ(this);
if(!I.usePatchedLifecycles)return Q.nativeRemoveAttribute.call(this,X);var u=this.getAttribute(X);Q.nativeRemoveAttribute.call(this,X);u!==null&&TXc(I,X,u,null)}}(m),m.nativeToggleAttribute=b.prototype.toggleAttribute,b.prototype.toggleAttribute=function(Q){return function(X,I){var u=gWQ(this);
if(!this.usePatchedLifecycles)return Q.nativeToggleAttribute.call(this,X,I);var c=this.getAttribute(X),v=c!==null;I=Q.nativeToggleAttribute.call(this,X,I);I!==v&&TXc(u,X,c,I?"":null);return I}}(m);
W=[Document,DocumentFragment,Element,ShadowRoot];t_&&W.push(t_.Wrapper);W=_.R(W);for(m=W.next();!m.done;m=W.next())m=m.value,m.prototype.prepend=nW9(m.prototype.prepend),m.prototype.append=nW9(m.prototype.append);(t_==null?void 0:t_.noPatch)===!0&&JUc();document.readyState==="complete"?Wg(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Wg(document.body)});
var q=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");q&&q.get&&q.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:q.enumerable,configurable:!0,get:q.get,set:function(Q){Q||eg(this);q.set.call(this,Q);return Q}})}};
nW9=function(W){return function(){var e=_.$N.apply(0,arguments),t=_.R(fG2(e)),b=t.next().value;t=t.next().value;W.apply(this,e);e=_.R(t);for(t=e.next();!t.done;t=e.next())eg(t.value);if(this.isConnected)for(b=_.R(b),e=b.next();!e.done;e=b.next())e=e.value,e instanceof Element&&Wg(e)}};
JUc=function(){for(var W=_.R(OLQ),e=W.next();!e.done;e=W.next()){e=e.value.prototype;for(var t=_.R(Mrs),b=t.next();!b.done;b=t.next()){b=b.value;var m=Object.getOwnPropertyDescriptor(e,b);m&&Object.defineProperty(e,"__shady_native_"+b,m)}}};
TXc=function(W,e,t,b){var m,q;if((m=W.polymerController)==null?0:(q=m.observedAttributes)==null?0:q.includes(e))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,e,t,b);else{var Q;(Q=W.attributeChangedCallback)==null||Q.call(W,e,t,b)}};
fG2=function(W){var e=[],t=[];W=_.R(W);for(var b=W.next();!b.done;b=W.next())b=b.value,b instanceof Element&&b.isConnected&&t.push(b),b instanceof DocumentFragment?e.push.apply(e,_.kP(Array.from(b.children))):e.push(b);return[e,t]};
gWQ=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
suR=function(W,e){var t=e?["children"].concat(_.kP(e)):["children"];e=[];t=_.R(t);for(var b=t.next();!b.done;b=t.next()){var m=b.value;if(W.hasOwnProperty(m)){b=W[m];b=typeof b==="function"?b():b;b=vO(Array.isArray(b)?b:[b]).flat();if(m!=="children"){m=rFQ(m);for(var q=_.R(b),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q instanceof Element&&Q.setAttribute("slot",m)}e.push(b)}}e.length===0?W=[]:(W=vO(_.w("div",null,e)),W=Array.from(W.childNodes));return W};
HLL=function(W,e,t){var b={};_.JO(function(){var m={},q;for(q in e)if(e.hasOwnProperty(q)){var Q=void 0,X=void 0;if(!(((Q=t.slotProps)==null?0:Q.includes(q))||q==="children"||((X=t.callbackProps)==null?0:X.includes(q))||q==="ref")&&(Q=_.TQ(e[q]),b[q]!==Q)){b[q]=Q;X=void 0;var I=(X=W.hostElement)!=null?X:W;huL.has(q)&&(I[q]=Q);m[q]=Q}}Bf(function(){if(W.setProperties)W.setProperties(m);else for(var u=_.R(Object.entries(m)),c=u.next();!c.done;c=u.next()){var v=_.R(c.value);c=v.next().value;v=v.next().value;
W[c]=v}})})};
PB2=function(W,e,t,b){var m=suR(t,b.slotProps),q=(0,_.FB)(W);m=_.R(m);for(var Q=m.next();!Q.done;Q=m.next())q.appendChild(Q.value);HLL(e,t,b);b=_.R(b.callbackProps||[]);m=b.next();for(q={};!m.done;q={kebabEventName:void 0,eventListener:void 0},m=b.next())Q=m=m.value,String(m).substring(0,2)==="on"&&t[Q]?(q.kebabEventName=rFQ(String(m).substring(2)),q.eventListener=t[Q],W.addEventListener(q.kebabEventName,q.eventListener),_.fh(function(c){return function(){W.removeEventListener(c.kebabEventName,c.eventListener)}}(q))):
e[Q]=t[Q];
if(t.ref){t=_.R(Ka9(t.ref));var X=t.next().value,I=t.next().value,u=e.attached.bind(e);e.attached=function(){X(W);u()};
_.fh(function(){I()})}};
Ka9=function(W){if(typeof W==="function"){var e;return[function(t){e=W(t)},
function(){var t;(t=e)==null||t()}]}if(!W.onRender||!W.onUnmount)throw Error("Sg");
return[W.onRender,W.onUnmount]};
zuv=function(W,e,t,b,m){b=b===void 0?{}:b;var q=Vr2,Q=!1;q?(Q=!0,Vr2=void 0):(iLv=e,q=document.createElement(e),iLv=void 0);var X=q;X.usePatchedLifecycles=!0;X.lifecycleIsConnected=!1;q.loggingStatus={};var I=Y3R(W,e,q,b,m);_.fh(function(){X.lifecycleIsConnected&&(X.lifecycleIsConnected=!1,I.disconnectedCallback())});
Q||PB2(q,I,t,b);return q};
Y3R=function(W,e,t,b,m){m=m===void 0?DEv:m;UEL[e]!=null||(UEL[e]=m(W,e,b==null?void 0:b.getTemplate,b));var q=UEL[e],Q=q.ctor;m=q.getInitialMethods;var X=q.getPropsToForwardBeforeReady;W=q.getPropsToForwardBeforeRegister;b=q.shouldForwardProp;var I=q.observedAttributes,u=q.shouldLog,c=Q(t,{beforeReady:function(){var v=c;v._takeAttributes?v._takeAttributes():v.setPropertiesFromInitialAttributeValues&&v.setPropertiesFromInitialAttributeValues();v=_.R(X(t.polymerController));for(var D=v.next();!D.done;D=
v.next()){var B=_.R(D.value);D=B.next().value;B=B.next().value;oW9(t,D,B);u(e)&&!dz(D)&&$EQ(t.polymerController,D)}t.polymerController=PRS(c,e)}});
t.polymerController=c;t.polymerController.observedAttributes=I;q=_.R(c.getExtraMethodsToForward());for(Q=q.next();!Q.done;Q=q.next())I=_.R(Q.value),Q=I.next().value,I=I.next().value,lGL(t,Q,I);m=_.R(m());for(q=m.next();!q.done;q=m.next())q=q.value,b(q)&&lGL(t,q),u(e)&&!dz(q)&&ZLG(c,q);W=_.R(W());for(b=W.next();!b.done;b=W.next())m=_.R(b.value),b=m.next().value,m=m.next().value,oW9(t,b,m);return c};
EWZ=function(W,e){return bL===e?(W.isInert=!0,bL="",!0):Lav===e?(W.isInert=!0,Lav="",!0):!1};
AU9=function(W){var e=mu;mu=W;return e};
dE9=function(W){if(rA.has(W))Lav=W;else if(qk.has(W)&&mu&&NXD(mu)===W){var e;(e=mu)._numRenders!=null||(e._numRenders=0);mu._numRenders++;if(mu._numRenders>1)throw Error("Tg");return mu}};
WoD=function(W){rA.has(NXD(W))?Lav=NXD(W):qk.has(NXD(W))&&mu!==W&&(W._isInert=!0)};
NXD=function(W){var e;return(e=W==null?void 0:W.tagName.toLowerCase())!=null?e:""};
eAZ=function(W,e){if(W.componentType===kK)throw Error("Ug");qk.add(e);var t=function(){var b=HTMLElement.call(this)||this;b.is=e;if(iLv===e)return b.isInert=!0,b;b.createElement();return b};
_.Z(t,HTMLElement);t.prototype.createElement=function(){if(!this.isInert){Vr2=this;var b=_.R(_.SZL(function(){return _.w(W,null)})).next().value;
Vr2=void 0;VU2(this);return b}};
customElements.define(e,t)};
bAR=function(W,e,t,b,m){W.prototype.is=e;(b==null?0:b.useSink)?tsc(W,e,t,b,m):(t=DEv(W,e,t,b),k7G(t,e));return W};
tsc=function(W,e,t,b,m){xEL();var q=_.NN(function(Q){return zuv(W,e,Q,Object.assign({},b,{getTemplate:t}),m)},"a");
eAZ(q,e);return q};
rbs=function(W){return!mKc.has(W)};
QSv=function(W,e,t,b){function m(){if(!v){for(var D=new Set(q2R),B=_.R(q.behaviors),k=B.next();!k.done;k=B.next()){k=k.value;for(var n=_.R(Object.getOwnPropertyNames(k)),f=n.next();!f.done;f=n.next()){f=f.value;var M=void 0,K=(M=Object.getOwnPropertyDescriptor(k,f))==null?void 0:M.value;K&&K instanceof Function&&(!u[f]||_.S("polymer_forward_method_killswitch"))&&D.add(f)}}B=_.R(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(k=B.next();!k.done;k=B.next())n=_.R(k.value),k=n.next().value,
n=n.next().value,n.value instanceof Function&&D.add(k);v=D}return v}
var q=V2v({is:e,disableElementRegistration:!1,getTemplate:t,providers:b==null?void 0:b.providers,reactivityMode:b==null?void 0:b.reactivityMode},W);if((b==null?0:b.allowedProps)||(b==null?0:b.allowedPropsFromBehaviors)){var Q,X;q.allowedProps=[].concat(_.kP((Q=b.allowedProps)!=null?Q:[]),_.kP((X=b.allowedPropsFromBehaviors)!=null?X:[]))}var I=OyZ(q,W);e=I.observedAttributes;var u={};t=_.R(q.reactiveSchemas);for(b=t.next();!b.done;b=t.next())if(b=b.value,b.type==="signal")u[b.propertyKey]={readOnly:b.readOnly},
b.readOnly&&(u[wAs(b.propertyKey)]={readOnly:!0});else if(b.type==="compute"||b.type==="computeWithMethod"||b.type==="redux")u[b.propertyKey]={readOnly:!0};var c=q.reactiveSchemas.length,v;return{ctor:function(D,B){D=new I(D);D.beforeReady=B.beforeReady;return D},
props:u,observedAttributes:e,getInitialMethods:m,getPropsToForwardBeforeRegister:function(){for(var D=[],B=new Set,k=_.R(RA2),n=k.next();!n.done;n=k.next())n=n.value,D.push([n,n!=="observers"&&n!=="properties"]),B.add(n);k=_.R(Object.keys(u));for(n=k.next();!n.done;n=k.next())n=n.value,D.push([n,u[n].readOnly]),B.add(n);k=m();n=_.R(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var f=n.next();!f.done;f=n.next())f=f.value,!rbs(f)||k.has(f)||B.has(f)||(D.push([f,!1]),B.add(f));D.push(["allowedProps",
!0]);return D},
getPropsToForwardBeforeReady:function(D){var B=[];D=_.R(Object.keys(D));for(var k=D.next();!k.done;k=D.next()){k=k.value;var n=m();rbs(k)&&!n.has(k)&&B.push([k,!1])}D=_.R(q.reactiveSchemas.slice(c));for(k=D.next();!k.done;k=D.next())k=k.value,k.type!=="compute"&&k.type!=="computeWithMethod"&&k.type!=="redux"&&k.type!=="signal"||B.push([k.propertyKey,k.type==="signal"?k.readOnly:!0]);return B},
shouldForwardProp:rbs,shouldLog:oH}};
_.H=function(W,e,t,b){var m,q,Q=(q=(m=b)==null?void 0:m.mode)!=null?q:0;b!=null||(b={});var X;(X=b).reactivityMode!=null||(X.reactivityMode=0);Q===1&&_.qz("creator_poly_si_disable_list").includes(e)&&(Q=2);return Q===1?bAR(W,e,t,Object.assign({},b,{useSink:!0}),QSv):bAR(W,e,t,Object.assign({},b,{useSink:Q===2}))};
_.Ro=function(){return function(W,e,t,b){var m,q,Q=(q=(m=b)==null?void 0:m.mode)!=null?q:2;b!=null||(b={});var X;(X=b).reactivityMode!=null||(X.reactivityMode=0);if(Q===0)throw Error("Vg`"+Q);return tsc(W,e,t,b,Q===1?QSv:void 0)}};
_.Qe=function(W){return _.S("creator_poly_si_killswitch")?!1:_.S("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.S(W+"_holdback_enabled")&&_.S("kevlar_polysi_holdback")?!1:_.S(W)};
F1=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
Fov=function(W){if(!W)return"";W=_.R(W);for(var e=W.next();!e.done;e=W.next())if((e=e.value)&&e.liveChatAuthorBadgeRenderer&&(e=F1(e.liveChatAuthorBadgeRenderer))&&e!=="verified")return e;return""};
Xvc=function(W,e){if(!W)return null;var t;return((t=W.find(function(b){return b&&b.liveChatAuthorBadgeRenderer?F1(b.liveChatAuthorBadgeRenderer)===e:!1}))==null?void 0:t.liveChatAuthorBadgeRenderer)||null};
_.vRL=function(W){var e=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=IyL(W);e=IyL(e);var t=ayZ(W.hex);e=ayZ(e.hex);var b=e[0]/255;var m=e[1]/255,q=e[2]/255,Q=Math.max(b,m,q),X=Math.min(b,m,q),I=0,u=0,c=.5*(Q+X);Q!=X&&(Q==b?I=60*(m-q)/(Q-X):Q==m?I=60*(q-b)/(Q-X)+120:Q==q&&(I=60*(b-m)/(Q-X)+240),u=0<c&&c<=.5?(Q-X)/(2*c):(Q-X)/(2-2*c));b=[Math.round(I+360)%360,u,c];t=wvD(t,e);for(W=ukD(W.hex);t<4.5;){W=b[2]>=.5?W.darker((4.5-t)/2):W.brighter((4.5-t)/2);t=W.toString();
m=cbZ(t);if(!m.length)throw Error("Sd`"+t);t=m;t=wvD(t,e)}return W.hex()};
wvD=function(W,e){W=_.WtG(W);e=_.WtG(e);return(Math.max(W,e)+.05)/(Math.min(W,e)+.05)};
_.X1=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.GYg=function(W){for(var e=0,t=0;t<W.length;t++)e=W.charCodeAt(t)+((e<<5)-e);W="#";for(t=0;t<3;t++)W+=("00"+(e>>t*8&255).toString(16)).slice(-2);return W};
DKK=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
$K9=function(W,e){var t=(e=e===void 0?!1:e)?S2S:BgG,b=e?oRQ:ly9;W.getIconNames().forEach(function(m){m=e?m:m.substring(m.indexOf(":")+1);W.name==="yt-icons"?ZAD.add(m):m.includes("-filled")?t.add(m):b.add(m)})};
Io=function(W,e,t,b){t=t===void 0?!1:t;b=b===void 0?!1:b;var m,q,Q;return _.F(function(X){if(X.nextAddress==1)return _.a(X,kYK,2);if(b)return X.return(ZAD.has(W));m=t?S2S:BgG;q=t?oRQ:ly9;return e?(Q=W.includes("-filled")?W:W.concat("-filled"),X.return(m.has(Q))):X.return(q.has(W))})};
_.jSZ=function(W){if(pvs(W))return W;var e=W=W.toLowerCase();(W=ybL.get(W))&&(e=W);return e};
_.ao=function(W){if(pvs(W))return W.toString();var e=C7c.get(W);if(e)return e;e=W.toLowerCase();var t="yt-icons",b=e.replace(/_/g,"-");switch(W){case "MY_CHANNEL":e="account_circle";break;case "ADD_TO_LIBRARY":e="add";break;case "ALERT_WARN_RED":e="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":e="person_music";break;case "BLOCK_USER":e="block";break;case "CAPTIONS":e="closed_caption";break;case "CLOSED_CAPTION":t="av";e="closed-caption";break;case "COLLECTION":t="maps";e="layers";break;case "CONTACT":t=
"icons";e="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":t="ytcp-icons";e=b.split("creator-studio-")[1];break;case "DISMISSAL":e="close";break;case "DO_NOT_DISTURB":e="block";break;case "DOGFOOD":t="icons";e="pets";break;case "DRAFT":e="paper_corner_folded";break;
case "EMPTY_LIKE":e="like_outline";break;case "EXIT_APP":e="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":e=b;break;case "GAMES":t="ytg";e="my-games";break;case "GO_TO_PAGE":e="arrow-forward";break;case "GROUP":t="social";break;case "HIDE":e="not_interested";break;case "INPUT_COMPONENT":t="icons";e="settings-input-component";break;case "KIDS_BLOCK":e="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":t="ytg";e="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":t=
"ytg";e="membership-post-purchase";break;case "MULTIVIEW":e="screen_multi_view";break;case "MY_LOCATION":t="maps";e=b;break;case "NOTIFICATIONS_INBOX":e="NOTIFICATIONS";break;case "NEXT":e="chevron_right";break;case "OFFLINE":e="power-settings-new";break;case "PAUSE":t="miniplayer";break;case "PAYMENT":t="icons";break;case "PHONE_DOWNLOAD":e="phone_download";break;case "PREMIUM_STANDALONE":t="yt-logos";e="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":t="yt-logos";e="premium_standalone_cairo";
break;case "QUESTION_ANSWER":e="question_answer";break;case "REDEEM":t="icons";e="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":e="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":e="library_add";break;case "SCHOOL":t="yt-sys-icons";e="creator_academy";break;case "SETTINGS_LIGHT":e="settings_applications";break;case "SETTINGS_MATERIAL":e="settings";break;case "SEARCH_HISTORY":e="watch_history";break;case "SHOPPING_BAG":e="bag";break;case "SOCIAL":case "PEOPLE":t=
"yt-icons";e="people";break;case "STAFF_PICK":t="ytg";e="spotlight";break;case "START_DVR":e="add";break;case "STOP_DVR":t="av";e="stop";break;case "TAB_LIKED":e="like";break;case "TAB_INBOX":e="mail";break;case "TERMS_OF_SERVICE":t="icons";e="description";break;case "TRENDING":e="fire";break;case "UNBLOCK_USER":e="remove";break;case "UNPLUGGED_DARK_THEME":t="image";e="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":e="live";break;case "UNPLUGGED_SPORTS":t="ytu";e="visibility-off";break;
case "VIDEOS":t="av";e="play-circle-filled";break;case "YOUTUBE":t="yt-logos";e="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":t="yt-logos-ext";e="yt-logo-red-updated";break;case "YOUTUBE_LOGO":t="yt-logos-ext";e="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":t="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":t="shorts";e=b;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":t="yt-sys-icons";e="youtube_improve_tv";break;case "OUTLINE_BAG":t=
"yt-sys-icons";e="bag";break;case "QUEUE_PLAY_LAST":t="yt-sys-icons";e="list_queue_last";break;case "SLASH_CIRCLE_LEFT":e="slash_circle_left";break;case "SPEED_1_POINT_2X":e="1_point_2x";break;case "SPEED_1_POINT_5X":e="1_point_5x";break;case "SPEED_1_POINT_8X":e="1_point_8x";break;case "SPEED_POINT_2X":e="point_2x";break;case "SPEED_POINT_5X":e="point_5x";break;case "SPEED_POINT_8X":e="point_8x";break;case "SPEED_1X":e="1x";break;case "SPEED_2X":e="2x";break;case "TAB_BOOKMARK":e="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":t="yt-sys-icons";e="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":t="yt-sys-icons";e="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":t="yt-sys-icons",e="tic_tac_toe"}e=t+":"+e;C7c.set(W,e);return e};
pvs=function(W){var e;_.S("kevlar_use_wil_icons")?e=!!_.ee().resolve(_.wA).resolveIcon({iconName:W.toString()}):e=!1;return e};
_.cg=function(W,e,t,b){t=t===void 0?{}:t;b=b===void 0?!1:b;t===null&&(t={});var m=_.qz("kevlar_command_handler_command_banlist");m=_.R(m);for(var q=m.next();!q.done;q=m.next())if(q=W?W.hasOwnProperty(q.value):void 0,q)return!1;m=_.l(W.commandMetadata,_.ez);return b&&m!=null&&m.url?!1:!e.disableCommandHandlerOverride&&_.uL.instance?(b=_.uL.instance,t.form||(t.form={element:e}),t.form.element||(t.form.element=e),!t.clickedVisualElement&&e.visualElement&&(t.clickedVisualElement=e.visualElement),b.resolveCommand(W,
t),!0):!1};
nRQ=function(W,e){W=vg(W);for(var t=_.R(W.visibilityMonitorKeys||[]),b=t.next();!b.done;b=t.next())e.unobserveByKey(b.value);W.visibilityMonitorKeys=void 0};
Jbv=function(W,e){if(_.fc()){if(_.S("kevlar_vimio_use_shared_monitor"))fyG(W,e.data);else if(!fyG(W,e.data))return;var t=e.data,b=gRS(t);if(_.S("enable_client_ve_spec_logging"))nRQ(W,e.observer);else{var m=vg(W);m.trackedParams&&m.trackedParams!==b&&nRQ(W,e.observer)}m=vg(W);!t||m.data&&m.data===t||(m.data=t);Tgz(W,e);m.trackedParams=b}};
Tgz=function(W,e){var t=e.observer;if(!t&&_.S("web_skip_missing_vimio_observer")){var b,m;_.JC(new _.o_("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(b=e.data)==null?void 0:b.trackingParams,(m=e.data)==null?void 0:m.loggingDirectives))}else{var q=e.layer,Q=e.visibilityCallback||function(){},X=e.prescanCallback,I=vg(W);
b=[];e.showOption&&b.push(t.observe(W,function(){e.skipLogging&&e.skipLogging()||_.Gf().reportShown(I,void 0,q);Q(!0)},e.showOption));
e.hideOption&&b.push(t.observe(W,function(){_.Gf().reportHidden(I,void 0,q);Q(!1)},e.hideOption));
e.prescanOption&&X&&b.push(t.observe(W,function(){X()},e.prescanOption));
I.visibilityMonitorKeys=b}};
fyG=function(W,e){W=vg(W);if(W.visualElement&&!e)return!0;if(!e)return!1;var t=!1;if(_.S("enable_client_ve_spec_logging")){var b,m;t=!!((b=e.loggingDirectives)==null?0:(m=b.clientVeSpec)==null?0:m.uiType)}b=gRS(e);if(!b&&!t)return!1;_.S("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=b);if(W.trackedParams&&W.trackedParams===b)return!1;var q;if(_.S("enable_client_ve_spec_logging")&&((q=W.visualElement)==null?0:q.isClientVe())){var Q;q=(Q=W.visualElement)==
null?void 0:Q.getAsJspb();var X,I,u,c;if(_.bQ(q,2)===((X=e.loggingDirectives)==null?void 0:(I=X.clientVeSpec)==null?void 0:I.uiType)&&_.bQ(q,3,-1)===((u=e.loggingDirectives)==null?void 0:(c=u.clientVeSpec)==null?void 0:c.elementIndex))return!1}if(_.S("enable_client_ve_spec_logging")){var v,D;!W.visualElement&&((v=e.loggingDirectives)==null?0:(D=v.clientVeSpec)==null?0:D.uiType)&&(X=e.loggingDirectives.clientVeSpec,e=X.uiType,Q=X.elementIndex,X=X.clientYoutubeData,W.visualElement=_.Dj(_.Sg(),{veType:e,
elementIndex:Q,clientYouTubeData:X}))}return!0};
gRS=function(W){if(W==null?0:W.rendererContext){var e=_.l(W.rendererContext,_.Bg);if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
vg=function(W){var e;return(e=W.polymerController)!=null?e:W};
sSL=function(W){_.Gf();if(_.hJ(oo().JSC$10518_elementShouldLogGesture).bind(oo())(W,4)){xKg(W);var e=OAK(W);MsR.set(W,e)}};
xKg=function(W){MsR.has(W)&&(MsR.get(W).cancel("untrack hover element"),MsR.delete(W))};
OAK=function(W){var e,t=[],b=!1,m=new _.c3(function(q,Q){lL(W,"mouseenter",_.hJ(function(){var X,I,u;return _.F(function(c){if(c.nextAddress==1)return e=(0,_.eJ)(),X=hAs(W),t.push(X),I=HAQ(W,function(){b=!0;Q(Error("Wg"))}),_.a(c,X,2);
if(c.nextAddress!=3)return I&&Zj(I),u=KoG(W),t.push(u),_.a(c,u,3);q();_.u8(c)})}))});
m.then(function(){var q=(0,_.eJ)()-e;q=Math.round(q);if(!(500>q||6E5<=q)){var Q=W.getScreenLayer?W.getScreenLayer():void 0;Q=_.fc(Q)||"";var X=P7L(_.Gf(),W);_.U6(Q,W.visualElement?W.visualElement:_.$5(X),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:q}})}sSL(W)},function(){k5&&(k5(),k5=null);
b&&(xKg(W),sSL(W))});
return m};
hAs=function(W){var e;return(new _.c3(function(t,b){k5=function(){b(Error("Xg"))};
e=_.Tm.debounce(_.hJ(function(){Zj(m);t()}),1,100);
var m=_.p4(W,"mousemove",e)})).thenCatch(function(){var t=_.Tm.cancelDebouncedJobMap.get(e);
t&&_.Tm.cancelJob(t)})};
KoG=function(W){var e;return(new _.c3(function(t,b){k5=function(){b(Error("Yg"))};
e=lL(W,"mouseleave",_.hJ(function(){t()}))})).thenCatch(function(){Zj(e)})};
HAQ=function(W,e){return lL(W,"mouseleave",_.hJ(e))};
iAL=function(W){VsR&&_.ye.cancel(VsR);VsR=_.ye.run(function(){_.q2(W,"yt-visibility-refresh");VsR=0})};
Y22=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
UKv=function(W){if(!W)return!1;if(_.l(W,_.zA9))return!0;var e;if(W=(e=_.l(W,_.wy))==null?void 0:e.commands)for(e=_.R(W),W=e.next();!W.done;W=e.next())if(_.l(W.value,_.zA9))return!0;return!1};
Lo2=function(W){var e=!0;e=e===void 0?!0:e;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.S("experimental_templating_behavior_nopatch_killswitch")){var t=W._propertiesChanged;W._propertiesChanged=function(b,m,q){e?W.debounceRender():W.doRender();t&&t.call(W,b,m,q)}}};
ER2=function(W,e){if(W.useSignals||W.experimentalPropertiesChanged)if(_.S("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var t=new Set,b=[W].concat(_.kP(W.behaviors));b=_.R(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;for(var q in m.properties)t.has(q)||(W._addPropertyEffect(q,"function",e),t.add(q))}};
Ab2=function(){var W=Polymer.Element,e=W._prepareTemplate;W._prepareTemplate=function(){e.call(this);var t=this.prototype;if(t.experimentalTemplatingInUse&&t.experimentalTemplatingInUse()&&t.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.gQ(Error("Zg"));else{t=this.template.content.childNodes;for(var b=t.length-1;b>=0;b--){var m=t[b];m.nodeName!=="STYLE"&&m.nodeName!=="LINK"&&m.nodeName!=="SCRIPT"&&m.nodeName!=="#comment"&&m.remove()}}}};
NgL=function(W){var e=!0;e=e===void 0?!0:e;Ab2();var t=W.ready;W.ready=function(){this._template=null;t.call(this)};
ER2(W,e?W.debounceRender:W.doRender)};
WH2=function(W,e,t){if(t===null||t===void 0)return t;var b=a3L(W.tagName.toLowerCase(),e,function(){throw Error("Sb");});
if(b===null)return t;b=dKS[b];var m;if((m=b.isUnwrappable)==null?0:m.call(b,t)){if(b.unwrap)return b.unwrap(t);throw Error("bh");}return b.filterString?b.filterString(W.tagName,e,String(t)):t};
eJD=function(W,e,t){var b=e[e.length-1]!=="$",m=WH2(W,e,t);if(b)if(typeof m==="function"&&e.startsWith("reactiveon")&&e===e.toLowerCase()){var q=Wf;l39(W,e.slice(8),function(Q){M5(q,function(){m(Q)})})}else W[e]=m;
else t=m==null?null:String(m),onG(W,e.slice(0,-1),t)};
C4=function(W){taR.length===0&&requestAnimationFrame(function(){setTimeout(function(){var e=taR.slice();taR.length=0;e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;try{t()}catch(b){_.jg(b)}}})});
taR.push(W)};
bjG=function(W){if(W){var e=W.component;if(e){var t;e==null||(t=e.events)==null||t.publish("DISCONNECTED");var b;e==null||(b=e.onDisconnected)==null||b.call(e)}var m,q;(m=W.__spec)==null||(q=m.didUnmount)==null||q.call(m);for(e=0;e<W.childNodes.length;e++)bjG(W.childNodes[e])}};
f4=function(W,e,t){var b=e&&e.key,m=E0;m[0]=W;m[1]=b;m[2]=void 0;for(var q in e)e.hasOwnProperty(q)&&(W=e[q],b=AO,b.push(q),b.push(W));e=E0;a:{if(q=E0[2])for(W=0;W<q.length;W+=2)if(q[W]==="nonce"){q=q[W+1];break a}q=""}q=xIZ(e[0],e[1],q);W=Kh(q);b=e[2];if(!W.staticsApplied&&(W.staticsApplied=!0,b&&b.length))if((m=W._attrsArr)&&m.length){for(m=0;m<b.length;m+=2)n4[b[m]]=m+1;m=W._attrsArr||(W._attrsArr=BTQ(0));for(var Q=0,X=0;X<m.length;X+=2){var I=m[X],u=m[X+1],c=n4[I];c?b[c]===u&&delete n4[I]:(m[Q]=
I,m[Q+1]=u,Q+=2)}hO(m,Q);for(var v in n4)y7z(q,v,b[n4[v]],Nq),delete n4[v]}else for(v=0;v<b.length;v+=2)y7z(q,b[v],b[v+1],Nq);Pav(q,W,Nq);hO(e,0);t&&t(Pf);O_G()};
meG=function(W){var e=W.toString().toLowerCase();return function(t,b){f4(e,t,b)}};
_.gA=function(W,e,t){t===void 0?delete W[e.name]:W[e.name]=t};
_.Tf=function(W){var e={androidIncludeFontPadding:!1},t=0,b=[],m=[],q=[];if(W.simpleText)return e.content=W.simpleText,e;if(W.runs===void 0)return e.content="",e;W=_.R(W.runs);for(var Q=W.next();!Q.done;Q=W.next()){Q=Q.value;var X=Q.text,I=void 0,u=(I=X)==null?void 0:I.length;if(X&&u){b.push(X);if(Q.bold||Q.italics||Q.strikethrough||Q.underline||Q.textColor!=null&&Q.textColor!==0||Q.deemphasize){X=m;I=X.push;var c={startIndex:t,length:u};Q.bold&&(c.weightLabel="FONT_WEIGHT_MEDIUM");Q.italics&&(c.italic=
!0);Q.strikethrough&&(c.strikethrough="LINE_STYLE_SINGLE");Q.underline&&(c.underline="LINE_STYLE_SINGLE");Q.textColor!=null&&Q.textColor!==0?document.documentElement.hasAttribute("dark")?c.fontColor=Q.darkModeTextColor||Q.textColor:c.fontColor=Q.textColor:Q.deemphasize&&(document.documentElement.hasAttribute("dark")?c.fontColor=parseInt("ff"+r1G("#aaa").substring(1),16):c.fontColor=parseInt("ff"+r1G("#606060").substring(1),16));I.call(X,c)}Q.navigationEndpoint&&(X=q,I=X.push,c={startIndex:t,length:u,
onTap:{innertubeCommand:Q.navigationEndpoint}},Q.loggingDirectives&&_.gA(c,qsG,Q.loggingDirectives),I.call(X,c));t+=u}}e.content=b.join("");e.styleRuns=m.length?m:void 0;e.commandRuns=q.length?q:void 0;return e};
QJL=function(W){if(W==null||!W.runs)return!0;W=_.R(W.runs);for(var e=W.next();!e.done;e=W.next())if(e=e.value,e.bracket||e.errorUnderline||e.deemphasize||_.l(e,J_)||_.l(e,RJR))return!1;return!0};
FHL=function(W,e){return function(t){var b=e.unit;if(b!==t)throw Error("eh`"+W+"`"+b+"`"+t);return e}};
x5=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var e="%";break;default:e="px"}W=W.value;e==="%"&&(W*=100);return""+W+e};
XWK=function(W){try{return W()}catch(e){_.JC(e)}};
_.Mk=function(W){var e=_.l(W,_.OD);if(e)return e;if((e=_.l(W,IpR))&&e.commands)return apv(e.commands);if((e=_.l(W,wWK))&&e.commands)return apv(e.commands);if((W=_.l(W,unG))&&W.identifier&&W.command&&(c1R||(c1R=[]),!c1R.includes(W.identifier)))return c1R.push(W.identifier),_.l(W.command,_.OD)};
apv=function(W){if(W.length!==0){var e=[];W=_.R(W);for(var t=W.next();!t.done;t=W.next())(t=_.Mk(t.value))&&e.push(t);return{commandExecutorCommand:{commands:e}}}};
_.h_=function(W){var e=W.defaultTarget,t=W.elementConfig,b=W.elementsCommand,m=W.skipOnClick,q=W.forceNewState,Q=W.additionalCommandArgs,X=W.innertubeCommand||_.Mk(b);if(X){W={};var I=vuc(X);b=I.navigatingCommand;I=I.href;b&&I?(W.href$=I,GND(W,b,I,e),_.S("web_atagconfig_pointerdown")&&DeS(W,b),q&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.l(X,SsZ)&&(W["aria-haspopup$"]=!0);m||(W.onclick=function(u){if(BZD(u)){var c=Object.assign({},{form:{element:u.target,event:u}},
Q);u.preventDefault();_.sD(X,c)}});
return Object.assign({},t,W)}};
ou9=function(W){if(W.length){if(W.length===1)return W[0];var e={};_.gA(e,_.wy,{commands:W});return e}};
Hg=function(W){return W&&W.href$!=="javascript:void(0);"};
vuc=function(W){var e,t=((e=_.l(W,_.wy))==null?void 0:e.commands)||[W];W=_.R(t);for(e=W.next();!e.done;e=W.next()){e=e.value;var b=void 0,m=void 0;t=(m=_.l((b=e)==null?void 0:b.commandMetadata,_.ez))==null?void 0:m.url;_.S("web_remove_web_navigation_endpoint_data")||(b=void 0,t=t||((b=_.l(e,lp9))==null?void 0:b.url));if(t&&t!=="/service_ajax"){if(b=S5(t,ZjD))return W=_.v7(b),{navigatingCommand:e,href:W};_.JC(new _.o_("AttributedString URL could not be sanitized",t))}}return{}};
BZD=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
GND=function(W,e,t,b){t=!ND(t);var m,q,Q;if((m=_.l(e,_.Sf))!=null&&m.nofollow||(q=_.l(e,_.z4))!=null&&q.nofollow||(Q=_.l(e,_.KJ))!=null&&Q.nofollow||t)W.rel$="nofollow";var X;e=((X=_.l(e,_.KJ))==null?void 0:X.target)==="TARGET_NEW_WINDOW"?"_blank":b===void 0?"":b;W.target$=e};
DeS=function(W,e){e.clickTrackingParams&&(W.params={itct:e.clickTrackingParams});W.onpointerdown=function(t){$eG(t)};
W._data=e};
kNK=function(W){(W.loggingUrls||[]).forEach(function(e){ia(e.baseUrl,e.attributionSrcMode)})};
pWc=function(W){W.currentTarget._data&&kNK(W.currentTarget._data)};
$eG=function(W){var e=W.currentTarget;W=XWK(function(){return e.href});
var t=e.params;W&&_.Aj(W,t||{},8,!0)};
y1D=function(W,e){if(e=_.l(e,_.KJ))(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"&&(W.target="_blank"),e.nofollow&&(W.rel="nofollow")};
jJZ=function(W){W=_.l(W==null?void 0:W.commandMetadata,_.ez);return(W==null?0:W.url)?W.url:null};
_.K4=function(W,e){(W=_.Mk(W))&&_.sD(W,e)};
_.sD=function(W,e){CU9(function(t){e?t.resolveCommand(W,e):t.resolveCommand(W)})};
guR=function(W,e){var t=["yt-core-attributed-string__link"];e!=null&&e.noLinkColor||((e==null?0:e.isOverlay)?t.push("yt-core-attributed-string__link--overlay-call-to-action-color"):t.push("yt-core-attributed-string__link--call-to-action-color"),(e==null?0:e.linkInheritColor)&&t.push("yt-core-attributed-string--link-inherit-color"));t={className:t.join(" "),tabindex$:"0"};var b=W.onTap||W.onLongPress;if(!b)return t;var m=Cfg(W);m&&(t["aria-label$"]=m);e=_.h_({elementsCommand:b,elementConfig:t,skipOnClick:!(e==
null||!e.skipOnClick),forceNewState:!0});W.onLongPress&&(b=new nug(function(){var q=_.Mk(W.onLongPress);q&&_.ee().resolve(_.tQ).resolveCommand(q)}),e&&fpz(b,e));
return e||t};
Cfg=function(W){var e,t;return(e=W.onTapOptions)==null?void 0:(t=e.accessibilityInfo)==null?void 0:t.accessibilityLabel};
TZK=function(W){var e=W;W<=16777215&&(e+=parseInt("ff000000",16));return _.h8(e)};
J1Z=function(W){var e=W.isDarkTheme;var t=W.extension;W=W.runColor;var b=void 0;if(t=t==null?void 0:t.colorMap){e=e?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";t=_.R(t);for(var m=t.next();!m.done;m=t.next())if(m=m.value,e===m.key){b=m.value;break}}b==null&&W&&(b=W);if(b)return TZK(b)};
Pg=function(W){var e=W.config;var t=W.image;var b=W.imageConfig;var m=W.imageWrapperConfig;var q=W.run;var Q=W.tag;var X=W.textLength;var I=W.startIndex===void 0?0:W.startIndex;W=W.length;I===void 0&&(I=0);q={run:q,startIndex:I,endIndex:W!==void 0?I+W:X,tag:Q};t&&(q.image=t);b&&(q.imageConfig=b);m&&(q.imageWrapperConfig=m);e&&(q.config=e);return q};
Ojz=function(W,e){var t=[];t.push("yt-core-attributed-string");(e==null?0:e.className)&&t.push(e==null?void 0:e.className);(e==null?0:e.ellipsisTruncate)?t.push("yt-core-attributed-string--ellipsis-truncate"):(e==null?0:e.noWrap)?t.push("yt-core-attributed-string--white-space-no-wrap"):(e==null?0:e.noPreWrap)||t.push("yt-core-attributed-string--white-space-pre-wrap");(e==null?0:e.linkInheritColor)&&t.push("yt-core-attributed-string--link-inherit-color");W.alignment&&t.push(xeG(W.alignment));W.lineBreakMode&&
t.push("yt-core-attributed-string--word-wrapping");return t.join(" ")};
MaL=function(W){if(W.weight)return W.weight;switch(W.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}};
sJD=function(W){switch(W){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"}};
xeG=function(W){switch(W){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"}};
Y5=function(W,e,t){var b=e;W.content&&t&&(t=W.content.indexOf("\n"),t!==-1&&(b=Math.min(e,t)));if(!W.content||W.content.length<=b)e=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){e=Ve(W.content,b);t=b;var m=W.attachmentRuns;if(m){var q=[];m=_.R(m);for(var Q=m.next();!Q.done;Q=m.next())Q=Object.assign({},Q.value),Q.startIndex===void 0||Q.startIndex>=t||(Q.length||(Q.length=0),Q.length+Q.startIndex>t&&(Q.length=t-Q.startIndex),q.push(Q));t=q}else t=void 0;
q=hJQ(b,W.commandRuns);m=b;var X=W.decorationRuns;if(X){Q=[];X=_.R(X);for(var I=X.next();!I.done;I=X.next()){I=I.value;var u=_.l(I.textDecorator,iL);if(u&&u.startIndex!==void 0&&!(u.startIndex>=m)){I=Object.assign({},I,{textDecorator:{highlightTextDecorator:Object.assign({},u)}});u=_.l(I.textDecorator,iL);if(!u.length||u.length+u.startIndex>m)u.length=m-u.startIndex;Q.push(I)}}m=Q}else m=void 0;Q=hJQ(b,W.styleRuns);if(X=W.paragraphStyleRuns)for(W=[],X=_.R(X),I=X.next();!I.done;I=X.next()){var c=I.value;
I=Object.assign({},c);if(!(I.startIndex===void 0||I.startIndex>=b)){if(!I.length||I.length+I.startIndex>b)I.length=b-I.startIndex;u=[];var v=void 0,D=void 0;if((v=c)==null?0:(D=v.listGroup)==null?0:D.listItems)for(c=_.R(c.listGroup.listItems),v=c.next();!v.done;v=c.next())if(v=Object.assign({},v.value),!(v.startIndex===void 0||v.startIndex>=b)){if(!v.length||v.length+v.startIndex>b)v.length=b-v.startIndex;u.push(v)}u.length>0&&(I.listGroup||(I.listGroup={}),I.listGroup=Object.assign({},I.listGroup,
{listItems:u}));W.push(I)}}else W=void 0;e={content:e,attachmentRuns:t,commandRuns:q,decorationRuns:m,styleRuns:Q,paragraphStyleRuns:W}}else e=Object.assign({},W,{content:Ve(W.content,b)});return e};
hJQ=function(W,e){if(e){var t=[];e=_.R(e);for(var b=e.next();!b.done;b=e.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=W)){if(!b.length||b.length+b.startIndex>W)b.length=W-b.startIndex;t.push(b)}return t}};
Ve=function(W,e){var t=e,b;if(b=t>0)b=W.charCodeAt(t-1),b=b>=55296&&b<=56319;b&&(t=W.charCodeAt(t),b=t>=56320&&t<=57343);b&&--e;return W.substring(0,e)};
Vav=function(W,e,t){t=t===void 0?Hjz:t;if(W){var b=_.ee().resolve(WT);b||_.S("mweb_no_observer_killswitch")?Jbv(W,{data:e,observer:b,visibilityCallback:t,hideOption:KH2,showOption:Pf9,layer:W.layer}):_.JC(new _.o_("Warning: monitorVisibility called with null observer",W.tagName,e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams))}else _.JC(new _.o_("Warning: monitorVisibility called with null element",e==null?void 0:e.loggingDirectives,e==null?void 0:e.trackingParams,e==null?void 0:
e.rendererContext))};
A1g=function(W,e){var t=[],b=W.content.length,m,q=(m=_.ee().resolve(_.Wi(_.zf)))==null?void 0:m();if(W.paragraphStyleRuns){m=_.R(W.paragraphStyleRuns);for(var Q=m.next();!Q.done;Q=m.next()){var X=t.push,I=X.apply;var u=void 0;Q=Q.value;if((u=Q.listGroup)!=null&&u.listItems){u=[];b:switch(Q.listGroup.listType){case "LIST_TYPE_BULLET":var c="ul";break b;default:c="span"}u.push(Pg({run:Q,textLength:b,tag:c,config:{className:"yt-core-attributed-string__list-group"},startIndex:Q.startIndex,length:Q.length}));
c=_.R(Q.listGroup.listItems);for(var v=c.next();!v.done;v=c.next()){v=v.value;b:switch(Q.listGroup.listType){case "LIST_TYPE_BULLET":var D="li";break b;default:D="span"}u.push(Pg({run:Q,textLength:b,tag:D,startIndex:v.startIndex,length:v.length}))}Q=u}else Q=[];I.call(X,t,_.kP(Q))}}if(W.styleRuns&&(e==null||!e.noStyleRuns))for(m=_.R(W.styleRuns),X=m.next();!X.done;X=m.next()){X=X.value;I=J1Z({extension:_.l(X.styleRunExtensions,ijR),isDarkTheme:q===void 0?!1:q,runColor:X.fontColor});u=[];I&&u.push("yt-core-attributed-string--link-inherit-color");
X.italic&&u.push("yt-core-attributed-string--italicized");X.underline&&X.strikethrough?u.push("yt-core-attributed-string--underline-strikethrough",sJD(X.underline)):X.underline?u.push("yt-core-attributed-string--underlined",sJD(X.underline)):X.strikethrough&&u.push("yt-core-attributed-string--strikethrough",sJD(X.strikethrough));if(X.baselineOffset){a:switch(X.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Q="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Q=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Q="yt-core-attributed-string--baseline-offset-unknown"}u.push(Q)}Q=u.join(" ");u=X;c={};if(u.weight||u.weightLabel)c.fontWeight=MaL(u).toString();I&&(c.color=I);t.push(Pg({run:X,textLength:b,tag:"span",config:{className:Q,style:c},startIndex:X.startIndex,length:X.length}))}if(W.decorationRuns)for(m=_.R(W.decorationRuns),X=m.next();!X.done;X=m.next())X=X.value,I={},X.textDecorator&&(c=X.textDecorator,Q=q===void 0?!1:q,v=[],u=
_.l(c,iL),c=_.l(c,Ysc),u?(c=v,v=c.concat,D=[],(Q=J1Z({extension:_.l(u.highlightTextDecoratorExtensions,zJS),isDarkTheme:Q,runColor:u.backgroundColor}))&&D.push("background-color: "+Q+";"),u.backgroundCornerRadius!==void 0&&D.push("border-radius: "+u.backgroundCornerRadius+"px;"),u.leftPadding!==void 0&&D.push("padding-left: "+u.leftPadding+"px;"),u.rightPadding!==void 0&&D.push("padding-right: "+u.rightPadding+"px;"),u.topPadding!==void 0&&D.push("padding-top: "+u.topPadding+"px;"),u.bottomPadding!==
void 0&&D.push("padding-bottom: "+u.bottomPadding+"px;"),v=v.call(c,D)):c&&(u=v,v=u.concat,Q=Q?"#2ba640":"#107516",Q=c.color?TZK(c.color):Q,Q=["padding: 2px;","border-top: solid "+Q+" 2px;","border-bottom: solid "+Q+" 2px;","background: linear-gradient(135deg, "+Q+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Q+" 3px, rgba(0, 0, 0, 0) 3px);"],v=v.call(u,Q)),Q=v.join(" "),I.style$=Q,Q=X.textDecorator,u=[],c=_.l(Q,Ysc),_.l(Q,iL)?u.push("yt-core-attributed-string--highlight-text-decorator"):
c&&u.push("yt-core-attributed-string--bracket-text-decorator"),Q=u.join(" "),I.className=Q,I.dir="auto"),Q=_.l(X.textDecorator,iL),u=_.l(X.textDecorator,Ysc),c=_.l(X.textDecorator,iL),v=_.l(X.textDecorator,Ysc),t.push(Pg({run:X,textLength:b,tag:"span",config:I,startIndex:(Q==null?void 0:Q.startIndex)||(u==null?void 0:u.startIndex)||0,length:(c==null?void 0:c.length)||(v==null?void 0:v.length)||0}));if(W.commandRuns&&(e==null||!e.noEndpoints))for(q=_.R(W.commandRuns),m=q.next();!m.done;m=q.next())m=
m.value,X=guR(m,e),t.push(Pg({run:m,textLength:b,tag:"a",config:X,startIndex:m.startIndex,length:m.length}));if(W.attachmentRuns)for(W=_.R(W.attachmentRuns),q=W.next();!q.done;q=W.next()){q=q.value;I=X=void 0;m={className:"yt-core-attributed-string--inline-block-mod"};if((I=q.element)==null?0:I.properties){I=(X=q.element)==null?void 0:X.properties;X=[];I=_.l(I,UeK);if(I==null?0:I.margin)I=I.margin,I.left&&X.push("margin-left: "+x5(I.left)+";"),I.right&&X.push("margin-right: "+x5(I.right)+";"),I.top&&
X.push("margin-top: "+x5(I.top)+";"),I.bottom&&X.push("margin-bottom: "+x5(I.bottom)+";");X=X.length!==0?X.join(" "):void 0;m.style$=X}Q=void 0;X={alt:"",preserveHeight:!0,preserveWidth:!0};I=["yt-core-attributed-string__image-element"];if(q.alignment){a:switch(q.alignment){case "ALIGNMENT_BASELINE":u="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":u="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:u=
"yt-core-attributed-string__image-element--image-alignment-bottom"}I.push(u)}if((Q=q.element)==null?0:Q.properties)Q=[],u=_.l(q.element.properties,UeK),(u==null?0:u.height)&&Q.push("height: "+x5(u.height)+";"),(u==null?0:u.width)&&Q.push("width: "+x5(u.width)+";"),Q=Q.length!==0?Q.join(" "):void 0,X.style$=Q,u=void 0,Q=((u=_.l(q.element.properties,LHG))==null?void 0:u.label)||"",X.alt=Q;X.className=I.join(" ");I=void 0;c=u=void 0;Q=((c=q.element)==null?0:c.type)?(u=_.l(q.element.type,EuQ))==null?
void 0:u.image:void 0;t.push(Pg({run:q,textLength:b,tag:"img",image:Q,imageConfig:X,imageWrapperConfig:m,startIndex:q.startIndex,length:(I=q.length)!=null?I:0}))}if(e==null?0:e.headerRuns)for(e=_.R(e.headerRuns),W=e.next();!W.done;W=e.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":q=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":q="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":q="yt-core-attributed-string--heading-3";break a}q=void 0}t.push(Pg({run:W,textLength:b,tag:"span",config:q?{className:q}:void 0,startIndex:W.startIndex,length:W.length}))}return t};
_.UD=function(W){return(W==null?void 0:W.content)!==void 0};
NZz=function(W){return _.UD(W)?W:_.Tf(W)};
dev=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
WXD=function(W,e){if(e==null?0:e.userInput)for(W=_.R(W),e=W.next();!e.done;e=W.next())if(e=e.value,e.tag!=="a"&&e.tag!=="li"){var t=void 0;(t=e).config||(t.config={});e.config.dir=e.tag==="ul"?_.ee().resolve(_.L4):"auto"}};
e2v=function(W){return function(e){var t=W.run;(t.onTap!==void 0||t.onLongPress!==void 0)&&_.l(t,qsG)&&Vav(e,{loggingDirectives:_.l(t,qsG)})}};
tMD=function(W){return function(e){for(var t in W)(Nq[t]||Nq[Hf["default"]])(e,t,W[t])}};
qo9=function(W,e){b$R(e);var t={data:null,start:0,end:W.length,parts:[]};e=_.R(e);for(var b=e.next();!b.done;b=e.next())b=b.value,mP9(t,b.startIndex,b.endIndex,b);rTK(W,t);return t};
mP9=function(W,e,t,b){for(var m=_.R(W.parts),q=m.next();!q.done;q=m.next()){q=q.value;if(typeof q==="string")throw Error("gh");if(q.start<=e&&t<=q.end){mP9(q,e,t,b);return}}W.parts.push({data:b,parts:[],start:e,end:t})};
rTK=function(W,e){for(var t=e.parts.length;t>=0;t--){var b=e.parts[t],m=e.parts[t-1],q=t===e.parts.length?e.end:b.start;m=t===0?e.start:m.end;q!==m&&e.parts.splice(t,0,W.slice(m,q));b&&rTK(W,b)}};
b$R=function(W){W.sort(function(e,t){if(e.startIndex<t.startIndex)return-1;if(t.startIndex<e.startIndex)return 1;e=e.endIndex-e.startIndex;t=t.endIndex-t.startIndex;return e>t?-1:t>e?1:0})};
_.R2L=function(W){var e=W.thumbnails;if(e){W={sources:[]};e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b={};b.url=t.url;b.width=t.width;b.height=t.height;W.sources.push(b)}return W}};
QNR=function(W,e,t,b){if(!e)return W.length>=1?W[W.length-1]:null;if(b)for(var m=_.R(W),q=m.next();!q.done;q=m.next()){q=q.value;var Q=void 0,X=(Q=q.url)==null?void 0:Q.indexOf(b);if(X!==void 0&&X>=0)return q}b=_.R(W);for(m=b.next();!m.done;m=b.next())if(m=m.value,m.width&&m.height&&(t&&m.width>=e||!t&&m.height>=e))return m;for(e=W.length-1;e>=0;e--)if(t&&W[e].width||!t&&W[e].height)return W[e];return W[0]};
_.FX9=function(W){var e;return(W=(e=W.sources)==null?void 0:e[0])?W.width/W.height:0};
_.X$9=function(W){if(W.sources){W=_.R(W.sources);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=void 0;if((t=e.clientResource)==null?0:t.imageName)return e}}};
Ims=function(W){var e;if((e=W.clientResource)!=null&&e.imageColor)return _.h8(W.clientResource.imageColor)};
_.w$S=function(W,e,t,b,m,q,Q){if(!e||e.length===0||e[0].clientResource)return null;if(t&&e[0].url)return e[0].url;b===void 0&&(b=!0);if(b){var X;W=amG*(m||(W==null?void 0:(X=W.getBoundingClientRect())==null?void 0:X.width)||0)}else{var I;W=amG*(q||(W==null?void 0:(I=W.getBoundingClientRect())==null?void 0:I.height)||0)}e=QNR(e,W,b,Q);return(e==null?0:e.url)?e.url:(e==null?0:e.imageData)?e.imageData:null};
uPG=function(W,e,t){t=t?[t]:[];W.opacity&&t.push("opacity: "+W.opacity+";");e&&W.placeholderColor?(W=_.h8(W.placeholderColor),t.push("background-color: "+W+";")):t.push("background-color: transparent;");return t.join(" ")};
cT9=function(W,e,t,b,m){var q=["yt-core-image"];e&&q.push(e);t||q.push("yt-core-image--fill-parent-height");b||q.push("yt-core-image--fill-parent-width");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":q.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":q.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":q.push("yt-core-image--content-mode-center");break;default:q.push("yt-core-image--content-mode-scale-to-fill")}W.flipForRtlLayout&&
q.push("yt-core-image--flip-rtl");switch(m){case "TOP_START":var Q;q.push(((Q=document.body)==null?void 0:Q.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return q.join(" ")};
GwG=function(W){var e;if(W==null?0:(e=W.clientResource)==null?0:e.imageName){var t;W=(t=W.clientResource)==null?void 0:t.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":t="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":t="yt-logos-ext:yt-logo-updated";break a}t=void 0}return t||vAK.get(W)||W}};
BbD=function(W){return _.S("mweb_wiz_skip_render")?DPg(W):So2(W)};
DPg=function(W){return function(e){var t=xIZ("wink-root");Lh();O_G();dkQ(t,_.w(W,e))}};
So2=function(W){var e=e===void 0?!1:e;return function(t){if(!e||!_.S("mweb_skip_keto_to_c3_if_no_data")||t.data!==void 0){var b=RA(!1);try{var m=t.children;_.S("mweb_render_outside_patch_killswitch")||Pf?m?AC(_.w(W,t,m)):AC(_.w(W,t)):_.JC(new _.o_("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{RA(b)}}}};
oAQ=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Z$z=function(W,e){W.onViewportEntered=e;lmG.observe(W)};
$PG=function(){var W={rootMargin:"10%",threshold:.01};_.S("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.S("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(e,t){e.filter(function(b){return b.intersectionRect.height>0}).forEach(function(b){b=b.target;
if(!_.S("mweb_enable_only_update_image_when_connected")||b.isConnected!==!1){var m;(m=b.onViewportEntered)==null||m.call(b);t.unobserve(b)}})},W)};
kwL=function(W,e,t,b,m){function q(){if(b){var X=b.loadedClass,I=b.notifyOnUnloaded;X&&_.ED(W,X);I&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Q(){var X=t(e,W);X&&W.getAttribute("src")!==X&&(_.S("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||X===W.src||(W.src=X),q())}
m=m===void 0?!0:m;W.removeAttribute("src");q();e&&(m?Z$z(W,Q):Q())};
p$G=function(W,e,t){if(!e)return!1;e=t(e,W);t=W.getAttribute("src");return e&&e===t&&W.complete};
yT9=function(W,e){for(var t in e)t==="className"?W.className=e[t]:(Nq[t]||Nq[Hf.default])(W,t,e[t])};
jNK=function(W,e,t,b){BbD(_.A_)({contentMode:e.contentMode,loadedClass:e.loadedClass,isPreloaded:e.isPreloaded,notifyOnLoaded:e.notifyOnLoaded,notifyOnUnloaded:e.notifyOnUnloaded,preferredThumbnail:e.preferredThumbnail,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,objectPosition:e.objectPosition,targetWidth:e.targetWidth,targetHeight:e.targetHeight,shouldShowPlaceholder:e.shouldShowPlaceholder,useWidth:e.useWidth,isToggled:e.isToggled,alt:e.alt,className:e.className,onerror:e.onerror,
onload:e.onload,style$:e.style$,color:e.color,width:e.width,height:e.height,"aria-hidden$":e["aria-hidden$"],draggable:e.draggable,"data-disabled$":e["data-disabled$"],data:W,callback:t,renderLazy:b===void 0?!0:b,hideOn404:!1})};
nAv=function(W,e,t){t=t===void 0?!1:t;var b=W.sources!==void 0?W:_.R2L(W);if(b){var m=e.onload;e.onload=function(I){var u=I.target;t&&u.naturalWidth===120||_.Nk(u,"yt-core-image--loaded");e.notifyOnLoaded&&u.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));m==null||m(I)};
e.targetWidth&&e.preserveWidth&&(e.width=e.targetWidth);e.targetHeight&&e.preserveHeight&&(e.height=e.targetHeight);var q=_.X$9(b),Q=q&&GwG(q);if(Q)return(W=Ims(q))&&(e.color=W),{type:"icon",iconName:Q,config:Object.assign({},e,e.alt?{}:{"aria-hidden$":"true"},{"aria-label$":e.alt,role:"img"})};if(W.sources===void 0){e.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||e.alt;e.style$=uPG(W,e.shouldShowPlaceholder,e.style$);var X;e.isPreloaded=!((X=_.l(W,
CHD))==null||!X.isPreloaded)}e.contentMode&&!b.contentMode&&(b.contentMode=e.contentMode);e.className=cT9(b,e.className,e.preserveHeight,e.preserveWidth,e.objectPosition);e.loadedClass="yt-core-image--loaded";return{type:"image",image:b,config:e}}};
_.dA=function(){var W=_.$N.apply(0,arguments);return _.Um(_.LJ,function(e){var t=W.map(function(b){return b(e)});
return function(){return void t.forEach(function(b){return void(b==null?void 0:b())})}})};
We=function(W,e){var t=e==null?void 0:e.initial;return _.SC(function(){_.TQ(!0);return t=W(t)},{equals:e==null?void 0:e.isEqual},"rSlKsc")};
fmv=function(W,e){if(W===e)return!0;if(W===void 0||e===void 0)return!1;var t,b,m,q,Q,X,I,u;return W.content===e.content&&((t=W.styleRuns)==null?void 0:t.length)===((b=e.styleRuns)==null?void 0:b.length)&&((m=W.commandRuns)==null?void 0:m.length)===((q=e.commandRuns)==null?void 0:q.length)&&((Q=W.attachmentRuns)==null?void 0:Q.length)===((X=e.attachmentRuns)==null?void 0:X.length)&&((I=W.decorationRuns)==null?void 0:I.length)===((u=e.decorationRuns)==null?void 0:u.length)};
JTv=function(W,e){if(W){var t=NZz(W);if(t!=null&&t.content)if(_.S("attr_string_reactive"))BbD(gAs)({text:W,config:e});else{var b=!(e==null||!e.ariaLabel)||!(t.commandRuns&&t.commandRuns.length!==0||t.paragraphStyleRuns&&t.paragraphStyleRuns.length!==0);W=b?e==null?void 0:e.ariaLabel:null;b=b?"text":null;f4("span",{className:Ojz(t,e),dir$:(e==null?0:e.userInput)?"auto":void 0,"aria-label$":W,role$:b},function(){if(t.styleRuns||t.commandRuns||t.attachmentRuns||t.decorationRuns){var m=A1g(t,e);WXD(m,
e);m=qo9(t.content,m);m=_.R(m.parts);for(var q=m.next();!q.done;q=m.next())Tbs(q.value)}else tJ(t.content)})}}};
Tbs=function(W){typeof W==="string"?tJ(W):dev(W.data)?f4("span",W.data.imageWrapperConfig,function(){jNK(W.data.image,W.data.imageConfig)}):f4(W.data.tag,W.data.config,function(e){e2v(W.data)(e);
e=_.R(W.parts);for(var t=e.next();!t.done;t=e.next())Tbs(t.value)})};
O$s=function(W){return W.parts.map(xP9)};
xP9=function(W){if(typeof W==="string")return W;W=dev(W.data)?_.w("span",{el:_.dA(tMD(W.data.imageWrapperConfig))},_.w(_.A_,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.w(W.data.tag,{el:_.dA(e2v(W.data),tMD(W.data.config))},W.parts.map(xP9));return vO(W)};
MMG=function(W,e){return W===e?!0:W===void 0||e===void 0?!1:W.noStyleRuns===e.noStyleRuns&&W.noLinkColor===e.noLinkColor&&W.noEndpoints===e.noEndpoints&&W.headerRuns===e.headerRuns&&W.isOverlay===e.isOverlay&&W.linkInheritColor===e.linkInheritColor&&W.userInput===e.userInput};
sNZ=function(W){return function(){var e,t,b,m,q,Q,X,I,u,c,v,D,B,k;return{ariaLabel:(e=W.ariaLabel)==null?void 0:e.call(W),className:(t=W.className)==null?void 0:t.call(W),ellipsisTruncate:(b=W.ellipsisTruncate)==null?void 0:b.call(W),isOverlay:(m=W.isOverlay)==null?void 0:m.call(W),linkInheritColor:(q=W.linkInheritColor)==null?void 0:q.call(W),noEndpoints:(Q=W.noEndpoints)==null?void 0:Q.call(W),noStyleRuns:(X=W.noStyleRuns)==null?void 0:X.call(W),noLinkColor:(I=W.noLinkColor)==null?void 0:I.call(W),
noPreWrap:(u=W.noPreWrap)==null?void 0:u.call(W),noWrap:(c=W.noWrap)==null?void 0:c.call(W),skipOnClick:(v=W.skipOnClick)==null?void 0:v.call(W),stopPropagation:(D=W.stopPropagation)==null?void 0:D.call(W),userInput:(B=W.userInput)==null?void 0:B.call(W),headerRuns:(k=W.headerRuns)==null?void 0:k.call(W)}}};
h22=function(W){return W.value===""||W.value==="true"?!0:W.value==="false"?!1:isNaN(Number(W.value))?W.value:Number(W.value)};
tp=function(W,e){W=new H$D(W,e);_.gQ(W);throw W;};
KXZ=function(W,e,t){var b=AU9(W);W._numRenders=0;try{var m=_.SZL(function(){return _.w(e,Object.assign({},t))})}catch(Q){var q=function(X){X.args||(X.args=[]);
X.args.push("Error in web component wrapper");X.args.push(W.tagName.toLowerCase());return X};
_.TT(Q instanceof Error?q(Q):new H$D("Wiz rendering error",W.tagName.toLowerCase()));throw Q;}finally{AU9(b)}return m};
_.mM=function(W,e,t){function b(c){var v={};c=_.R(c);for(var D=c.next();!D.done;D=c.next()){D=D.value;var B=void 0,k=void 0,n=void 0,f=_.vF((n=(k=(B=D).getAttribute)==null?void 0:k.call(B,"slot"))!=null?n:"children");if(B=v[f])B.push(D);else if(f in q||f==="children")v[f]=[D]}c=_.R(Object.keys(v));f=c.next();for(D={};!f.done;D={content$jscomp$56:void 0},f=c.next())f=f.value,f!=="children"&&(D.content$jscomp$56=v[f],v[f]=function(M){return function(){return M.content$jscomp$56}}(D));
return v}
t=t===void 0?{}:t;W.componentType!==kK||tp("Components must be marked reactive to be used from web component wrapper.",e);rA.has(e)&&tp("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",e);var m,q=(m=t.props)!=null?m:{};qk.add(e);var Q=PHK();m=function(){var c=Q.apply(this,arguments)||this;c.rawProps={};c.queuingRender=!1;c.dispose=function(){};
c.isWebComponentWrapper=!0;c.isReparenting=!1;c.hasRendered=!1;return c};
_.Z(m,Q);m.prototype.render=function(){this.hasRendered=!0;for(var c=_.R([].concat(_.kP(this.attributes))),v=c.next();!v.done;v=c.next())v=v.value,v.name!=="slot"&&this.removeAttribute(v.name);c=Object.assign({},this.componentProps,this.slotProps);v=_.R(KXZ(this,W,c));c=v.next().value;v=v.next().value;!(c[0]instanceof Element)||c.length>1?tp("Wrapped Wiz components must return a single root element.",e):(c=c[0].tagName.toLowerCase(),c!==e&&tp("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(c+" !== '"+e),e),this.dispose=v)};
m.prototype.setUpProps=function(){for(var c=this.rawProps,v=this.attributes,D=_.R(Object.keys(q)),B=D.next();!B.done;B=D.next()){B=B.value;var k=void 0;((k=this)==null?0:k[B])&&this[B]!==VMv&&c[B]===void 0&&(c[B]=this[B],(k=Object.getOwnPropertyDescriptor(this.constructor.prototype,B))&&Object.defineProperty(this,B,k))}D=_.R(v);for(B=D.next();!B.done;B=D.next()){k=B.value;B=_.vF(k.name);var n=B==="class"&&!v.getNamedItem("class-name");if(B in q||n)k=h22(k),B!=="class"||c.className?c[B]=k:c.className=
k}v={};for(var f in q)q[f]!==_.bt&&q[f]!==i$2&&(c[f]instanceof Function&&tp("Function props must be configured as STATIC, not SIGNAL.",e),B=_.R(_.up(c[f],void 0,"Ri8MSe")),D=B.next().value,B=B.next().value,v[f]=B,c[f]=D);c=_.R([c,v]);this.componentProps=c.next().value;this.setters=c.next().value;this.slotProps=b(this.childNodes)};
m.prototype.connectedCallback=function(){bL===e&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in q&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
m.prototype.disconnectedCallback=function(){if(!this._isInert){var c;a:{if(_.YoR)for(c=this;c;){if(_.z2c.has(c)){c=!0;break a}c=c.parentElement}c=!1}if(c)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){c=_.R([].concat(_.kP(this.attributes)));for(var v=c.next();!v.done;v=c.next())v=v.value,v.name!=="slot"&&this.removeAttribute(v.name)}this.innerText="";VU2(this)}}};
m.prototype._setPendingPropertyOrPath=function(){};
m.prototype.notifyPath=function(){};
_.Ec.Object.defineProperties(m.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var X=_.R(Object.keys(q)),I=X.next(),u={};!I.done;u={prop$jscomp$104:void 0},I=X.next())u.prop$jscomp$104=I.value,I=void 0,((I=t.legacyPolymer)==null?0:I.forwardHostProps)&&huL.has(u.prop$jscomp$104)||Object.defineProperty(m.prototype,u.prop$jscomp$104,{set:function(c){return function(v){var D=this;this._isInert||(this.setters?Bf(function(){var B,k;return void((k=(B=D.setters)[c.prop$jscomp$104])==null?void 0:k.call(B,v))}):(this.rawProps[c.prop$jscomp$104]=v,this.queuingRender&&c.prop$jscomp$104===
"data"&&v!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(u),
get:UPZ.has(u.prop$jscomp$104)?void 0:function(){return VMv}});
customElements.define(e,m)};
_.LXG=function(W,e){return(W=_.rd(W,e))?_.v7(_.lF(W)):null};
_.qA=function(W){if(W=_.rd(W,Number.MAX_VALUE,void 0,"width"))return _.lF(W)};
_.rd=function(W,e,t,b){b=b===void 0?"width":b;if(!W||!W.length)return null;if(_.S("kevlar_tuner_should_always_use_device_pixel_ratio")){var m=window.devicePixelRatio;_.S("kevlar_tuner_should_clamp_device_pixel_ratio")?m=Math.min(m,_.mn("kevlar_tuner_clamp_device_pixel_ratio")):_.S("kevlar_tuner_should_use_thumbnail_factor")&&(m=_.mn("kevlar_tuner_thumbnail_factor"));EAR=m}else EAR||(EAR=window.devicePixelRatio);m=EAR;_.S("kevlar_tuner_should_always_use_device_pixel_ratio")?e*=m:m>1&&(e*=m);if(_.S("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;m=W.length;if(_.S("kevlar_tuner_max_thumbnail_quality"))return W[m-1].url||null;if(t)for(var q=0;q<m;q++)if(W[q].url.indexOf(t)>=0)return W[q].url||null;for(t=0;t<m;t++)if(W[t][b]>=e)return W[t].url||null;for(e=m-1;e>0;e--)if(W[e][b])return W[e].url||null;return W[0].url||null};
dPv=function(){R5.size?setTimeout(function(){Qp(ATZ)},0):NbS=0};
ATZ=function(){var W=(0,_.eJ)(),e=null,t=!1;R5.forEach(function(m){m.loaded=!0;m.loadTime=W;m.pendingPaint=!1;var q=W8G.get(m);q&&q.resolve(W);e=m;t||!m.ftlEligible&&m.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(t=!0)});
var b;((b=e)==null?0:b.markDirty)&&e.markDirty();R5.clear();NbS=0;t&&eaG(W)};
tYz=function(W){R5.add(W);W.pendingPaint=!0;NbS||(NbS=_.F6(_.Tm,dPv))};
blZ=function(W){W.loaded=!1;W.loadTime=Infinity;var e=W8G.get(W);e&&(e.reject(Error("mh")),W8G.delete(W));W.pendingPaint&&(R5.delete(W),W.pendingPaint=!1)};
_.m6L=function(W){var e=W.indexOf(":");return e===-1?{originalName:W}:{originalName:W.substring(0,e),datasyncId:W.substring(e+1)}};
_.qFs=function(){return _.F(function(W){if(r6L!==void 0)return W.return(r6L);r6L=new Promise(function(e){var t;return _.F(function(b){switch(b.nextAddress){case 1:return _.Qh(b,2),_.a(b,_.X6.open("test-only"),4);case 4:return _.a(b,_.X6.delete("test-only"),5);case 5:_.Hi(b,3);break;case 2:if(t=_.w9(b),t instanceof Error&&t.name==="SecurityError")return e(!1),b.return();case 3:e("caches"in window),_.u8(b)}})});
return W.return(r6L)})};
F8G=function(){return _.F(function(W){if(W.nextAddress==1)return _.a(W,_.qFs(),2);if(!W.yieldResult)return W.return(void 0);Ra2||(Ra2=new Qxc);return W.return(Ra2)})};
XYD=function(W){var e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return _.a(q,F8G(),2);case 2:e=q.yieldResult;if(!e)throw Error("oh");return _.a(q,e.open("yt-player-local-img"),3);case 3:return t=q.yieldResult,_.a(q,t.match(W),4);case 4:b=q.yieldResult;if(!b)throw Error("ph");return _.a(q,b.blob(),5);case 5:return m=q.yieldResult,q.return(m)}})};
IsG=function(W,e){for(var t in W)if(W.hasOwnProperty(t)&&e[t])return t;return null};
asZ=function(W){return"stamp"+W.replace("-","_")+"_"};
wYZ=function(W){var e=W.match(/\[\[([\w\.]+)\]\]/);if(e&&e.length>1)return e[1];_.gQ(Error("rh`"+W));return null};
uMZ=function(W){return W===void 0?_.MD("REUSE_COMPONENTS",!1):W||!1};
Gbz=function(W,e,t){t&&(e.is?(c6Z.has(e)&&(W=c6Z.get(e),t=W.listener,delete e[W.property],t.type==="element"&&e.removeEventListener(t.eventName,t.handler),c6Z.delete(e)),vXK(e)):e.__proto__==HTMLElement.prototype&&(e=new _.o_("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(e&&e.nodeName)),_.JC(e)))};
D6v=function(W,e,t,b){var m=e.node?e.node:e;_.rz(t).parentNode===m&&(e.removeChild(t),Gbz(W,t,b));if(W=I5.get(t))I5.delete(t),_.Tm.cancelJob(W);t.hidden=!1};
SFg=function(W,e,t,b){if(e&&e.children&&(t=e.children[t]))if(_.MD("DEFERRED_DETACH"))for(;t&&!I5.has(t);){var m=W,q=e,Q=t,X=b;Q.hidden=!0;m=_.kM(_.Tm,D6v.bind(null,m,q,Q,X),0);I5.set(Q,m);t=t.nextElementSibling}else for(;(Q=e.lastElementChild)&&(e.removeChild(Q),Gbz(W,Q,b),Q!=t););};
B7S=function(W){var e=_.zT("__slot-el");_.nt(function(){for(var t=_.R(W.slotContent),b=t.next();!b.done;b=t.next())e.value.appendChild(b.value)});
return _.w("__slot-el",{el:e,skip:!0})};
_.a5=function(W,e,t){t=t===void 0?oXD:t;rA.add(e);var b;(b=t).propNames!=null||(b.propNames=[]);var m=new Set(t.propNames),q=PHK();b=function(){var u=q.call(this)||this;u.props={};u.isUpdating=!1;u.hasAttached=!1;u.isInert=!1;u.updateQueued=!1;u.initialClasses=[];EWZ(u,e);return u};
_.Z(b,q);b.prototype.forwardKebabCaseProp=function(u,c){u=_.vF(u);if(m.has(u)||u==="children")this.props[u]=c};
b.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var u=_.R(this.initialClasses),c=u.next();!c.done;c=u.next())(c=c.value)&&this.classList.add(c);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
b.prototype.handleSlottedContent=function(){for(var u=new Map,c=_.R(this.children),v=c.next();!v.done;v=c.next()){v=v.value;var D=void 0,B=(D=v.getAttribute("slot"))!=null?D:"children";(D=u.get(B))?D.push(v):u.set(B,[v]);if(!v.getAttribute("key")){var k=void 0,n=void 0;v.setAttribute("key",B+"_"+((n=(k=D)==null?void 0:k.length)!=null?n:0))}}u=_.R(u);for(c=u.next();!c.done;c=u.next())v=_.R(c.value),c=v.next().value,v=v.next().value,this.forwardKebabCaseProp(c,_.w(B7S,{slotContent:v}))};
b.prototype.connectedCallback=function(){var u=this;if(!EWZ(this,e)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var c=_.R(this.attributes),v=c.next();!v.done;v=c.next())v=v.value,this.forwardKebabCaseProp(v.name,h22(v));this.handleSlottedContent();t.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){u.afterFirstPatch()});
this.hasAttached=!0}};
b.prototype.attributeChangedCallback=function(u,c,v){this.isInert||this.isUpdating||this.isConnected||u!=="class"||this.initialClasses.push.apply(this.initialClasses,_.kP(v.split(" ")))};
b.prototype.disconnectedCallback=function(){MIv(this)};
b.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var u,c;dkQ(this,_.w(W,Object.assign({},this.props,{idomKey:(c=(u=this.__incrementalDOMData)==null?void 0:u.key)!=null?c:e})),!0)}catch(D){var v=D instanceof Error?D:new _.o_("Wiz rendering error");v.args||(v.args=[]);v.args.push("Error in deprecated web component wrapper");v.args.push(e.toLowerCase());_.gQ(v);throw D;}finally{this.updateQueued=this.isUpdating=!1}}};
b.prototype.enqueueUpdate=function(){var u=this;return _.F(function(c){if(t.synchronous)return u.update(),c.return();if(u.updateQueued)return c.return();u.updateQueued=!0;return c.return(Promise.resolve().then(function(){u.update()}))})};
b.prototype.notifyPath=function(){t.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Ec.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Q=_.R(t.propNames),X=Q.next(),I={};!X.done;I={prop$jscomp$106:void 0},X=Q.next())I.prop$jscomp$106=X.value,Object.defineProperty(b.prototype,I.prop$jscomp$106,{set:function(u){return function(c){this.isInert||c===this.props[u.prop$jscomp$106]||(this.props[u.prop$jscomp$106]=c,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(I)});
customElements.define(e,b)};
_.lsQ=function(W,e){return _.I1(W.entities,"markersEngagementPanelSyncEntity",e)};
Zlz=function(W,e){return _.I1(W.entities,"fantasyWinProbabilityEntity",e)};
$6D=function(W,e){return _.I1(W.entities,"fantasyTeamEntity",e)};
kbQ=function(W,e){return _.I1(W.entities,"fantasyPlayerEntity",e)};
pYZ=function(W,e){return _.I1(W.entities,"booleanEntity",e)};
y6Z=function(W,e){return _.I1(W.entities,"qrCodeEntity",e)};
jx2=function(W){return _.I1(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
CAS=function(){if(wd)return wd;if(window.lottie)return wd=Promise.resolve(window.lottie);var W=_.J7(_.Ot("LOTTIE_URL"));return W?wd=new Promise(function(e,t){var b=document.createElement("script");b.addEventListener("load",function(){e(lottie)});
b.addEventListener("error",function(m){var q="Lottie library failed to load.";m?m.message&&(q+=" Original description: "+m.message,_.xM(m,q)):m=Error(q);_.JC(m);t(m)});
b.setAttribute("async","");_.H7(b,W);document.head.appendChild(b)}):Promise.reject(Error("sh"))};
nXR=function(){return wd?wd:CAS()};
fsL=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.S("kevlar_use_wil_icons"))return W=(W=jx2(_.Eb().getState()))&&W.animationLightUrl&&W.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:W.animationLightUrl,pathDarkTheme:W.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,W?W:ut.get("LIKE")}};
gXG=function(W){var e=fsL(W);if(e)return e;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ut.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ut.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ut.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ut.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ut.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ut.get("NOTIFICATION_BELL")}};
J6G=function(W,e){if(!W||T7S)e=!1;else{if(W.closest){var t=!!fsL(e);t=_.Ot("ID_TOKEN")&&t?!!W.closest("segmented-like-dislike-button-view-model"):!1}else t=!1;if(!t)if(W.closest)if(t=!_.Ot("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),t||!W)t=!1;else{var b;t=((b=W.data)==null?void 0:b.targetId)==="notification-bell"&&e!=="EXPAND_MORE"}else t=!1;e=t}return e};
x6L=function(W){var e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.Qh(b,2),_.a(b,fetch(W),4);case 4:return e=b.yieldResult,_.a(b,e.json(),5);case 5:return b.return(b.yieldResult);case 2:t=_.w9(b),_.JC(t),_.u8(b)}})};
Olc=function(W,e){var t,b,m;return _.F(function(q){if(q.nextAddress==1)return(t=e?W.pathDarkTheme:W.path)?_.a(q,Promise.all([x6L(t),CAS()]),2):q.return();b=q.yieldResult;m=b[0];ce.set(t,m);_.u8(q)})};
_.ve=function(){for(var W=_.$N.apply(0,arguments),e=!0,t=_.R(W),b=t.next();!b.done;b=t.next())if(typeof b.value!=="string"){e=!1;break}return e?W.join(" ").trim()||void 0:function(){for(var m="",q=_.R(W),Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,typeof Q==="function"&&(Q=Q()),Q)if(typeof Q==="string")m+=" "+Q;else for(var X in Q)if(Q.hasOwnProperty(X)){var I=Q[X];typeof I==="function"&&(I=I());I&&(m+=" "+X)}m=m.trim()||void 0;return _.TQ(m)}};
_.G2=function(W){var e;var t=W.data;var b=W.className;var m=W.animationName;var q=W.animationRef;var Q=(e=W.elRefForInterop)||_.zT("lottie-component"),X;_.fh(function(){var c;return void((c=X)==null?void 0:c.destroy())});
var I;_.nh(function(){var c=_.TQ(m);if(c!==I){I=c;var v=Object.assign({},{animationName:c,animationRef:_.TQ(q)},_.TQ(t));try{_.ee().resolve(MYc)().then(function(k){var n;(n=X)==null||n.destroy();n=v.animationRef;var f=v.listeners;k=k.loadAnimation(Object.assign({},{container:Q.value},v.animationConfig));n&&(n.lottieEl=k);if(f)for(n=_.R(Object.entries(f)),f=n.next();!f.done;f=n.next()){var M=_.R(f.value);f=M.next().value;(M=M.next().value)&&k.addEventListener(f,M)}X=k})}catch(k){c=k;
var D="LottieComponent error.";c.message&&(D+=" Original description: "+c.message);_.xM(c,D);_.JC(c);var B;((B=v.listeners)==null?0:B.error)&&v.listeners.error(c)}}},"Cu2JNe");
var u=_.ve("ytLottieComponentHost",b);return _.w(Pec,{cond:function(){return!e},
then:function(){return _.w("lottie-component",{class:u,el:Q})}})};
haL=function(W,e,t,b){function m(Q,X){if(e.value===X&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("yt-spec-icon-shape");Q(W.value,b)}}
t=_.sxG(_.ee().resolve(_.wA),t);if(typeof t==="function")e.value=null,m(t,null);else{var q=new _.c3(t.then,t);e.value=q;q.then(function(Q){m(Q,q)})}};
K8L=function(W,e){var t=document.createElement("div"),b=_.yZ(t,function(){return _.w(_.G,{cond:W,then:function(m){return _.w(HlR,{data:m,options:e})}})});
return[t,b]};
_.DT=function(){for(var W=[],e=_.R(_.$N.apply(0,arguments)),t=e.next();!t.done;t=e.next())if(t=t.value)if(typeof t==="string")W.push(t);else{t=_.R(Object.entries(t));for(var b=t.next();!b.done;b=t.next()){var m=_.R(b.value);b=m.next().value;(m=m.next().value)&&W.push(b)}}return W.join(" ")};
YFG=function(W){var e=_.zT("animated-rolling-character"),t=gM(),b=Lc(W.character)||Lc(W.previousCharacter);tvz(function(){if(W.marginMultiplier){var m;(m=t.value)==null||m.cancel();b?(m=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(m-=PAc(W,m))):(m=W.rollUp?0:2,W.shouldAnimate||(m-=W.rollUp?-1:1));e.value.style.marginTop="-"+m*W.marginMultiplier+"px";W.shouldAnimate?t.value=VYv(e.value,W,m,b):e.value.style.display=W.character?"":"none"}});
return _.w("animated-rolling-character",{el:e,class:"animated-rolling-character-wiz"},d$(b,function(){for(var m=[],q=1;q<30;q++)m.push(_.w("div",null,q%10));return _.w(_.qD,null,_.w("div",null,"\u00a0"),m,_.w("div",null,"\u00a0"))},function(){return ilz(W.character)}))};
ilz=function(W){return _.w(_.qD,null,_.w("div",null,"\u00a0"),_.w(_.qD,null,d$(!W||_.QK(W),function(){return _.w("div",null,"\u00a0")},function(){return _.w("div",null,W)})),_.w("div",null,"\u00a0"))};
VYv=function(W,e,t,b){t=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(b?PAc(e,t):e.rollUp?-1:1)*e.marginMultiplier+"px)"}],zaz),document.timeline);e.character?(W.style.display="",t.onfinish=null):t.onfinish=function(){W.style.display="none"};
t.play();return t};
PAc=function(W,e){var t=Number(W.character)+10;if(W.previousCharacter)if(W.character){var b=Number(W.character),m=Number(W.previousCharacter);W=W.rollUp?m<b?t:t+10:m<b?t-10:t}else W=W.rollUp?30:0;else W=W.character==="0"?t:W.rollUp?t-10:t+10;return e-W};
_.SN=function(W,e){return function(t){var b={},m;for(m in t){var q=void 0,Q=void 0;((q=e)==null?0:(Q=q.callbacks)==null?0:Q[m])||(b[m]=t[m])}return _.w(DAg,null,function(){for(var X in b)t[X]=_.TQ(b[X]);t.disableReactiveLogging=!0;return _.w(W,Object.assign({},t))})}};
EXD=function(W,e,t,b,m,q,Q){t=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(q?U6R(e,t,b,m):b?-1:1)*Q+"px)"}],L89),document.timeline);e?(W.style.display="",t.onfinish=null):t.onfinish=function(){W.style.display="none"};
t.play();return t};
U6R=function(W,e,t,b){var m=Number(W)+10;e?W?(W=Number(W),e=Number(e),t=t?e<W?m:m+10:e<W?m-10:m):t=t?30:0:t=W==="0"?m:t?m-10:m+10;return b-t};
N72=function(W){var e=gM(),t=gM();Ct(function(){e.value=W.numberText;t.value=W.numberValue},[W.numberText]);
var b=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,m=IoS(function(){if(W.numberText){var Q=W.numberText;var X=W.forceRollUp||!t.value||!W.numberValue||t.value<W.numberValue;var I=!!W.shouldAnimate,u=e.value,c=[],v=0,D=0,B=(u?u.replace(/\D/g,"").length:0)-(Q?Q.replace(/\D/g,"").length:0);u=u?u.split(/(\d)/).filter(Boolean):[];for(Q=Q.split(/(\d)/).filter(Boolean);B<0;){var k=Q[D];c.push({character:k,rollUp:X,marginMultiplier:b,shouldAnimate:I});D++;Lc(k)&&B++}for(;v<B;)k=u[v],c.push({previousCharacter:k,
rollUp:X,marginMultiplier:b,shouldAnimate:I}),v++,Lc(k)||B++;for(;D<Q.length;)B=Q[D],k=u[v],Lc(B)===Lc(k)?(D++,v++):Lc(B)?(v++,B=void 0):Lc(k)&&(D++,k=void 0),c.push({character:B,previousCharacter:k,rollUp:X,marginMultiplier:b,shouldAnimate:I});X=c}else X=[];return X},[W.numberText]),q=W.numberText?["height: "+b+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.w("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:q,dir:"ltr","aria-hidden":"true"},m.map(function(Q){return _.w(A6K,Object.assign({},Q))}))};
WPR=function(W){var e;return(e=d6G[W])!=null?e:"EVENT_SPAN_TYPE_UNKNOWN"};
e0R=function(W){var e=W.nodeName;if(W.id)return e+="#"+W.id;if(W.classList)for(var t=_.R(W.classList),b=t.next();!b.done;b=t.next())e+="."+b.value;W.parentElement&&(e=e0R(W.parentElement)+" > "+e);return e};
tEv=function(W){return function(e){var t=WPR(e.type);return t==="EVENT_SPAN_TYPE_UNKNOWN"?W(e):OMK("event",{type:t,nodepath:e.target instanceof Element?e0R(e.target):void 0},function(){return W(e)})}};
_.Be=function(W){W&&TLL("event")&&(W=tEv(W));return Lug(function(e){var t,b=(t=W)==null?void 0:t(e);return typeof b==="boolean"?b:!0})};
lt=function(W){return function(){return W()?W():void 0}};
bS2=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
myc=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.ZT=function(W){var e=We(function(t){t=t?ab(t[0]):void 0;return _.up(W(t),void 0,"AwTxXe")},{isEqual:function(t,b){return ab(t[0])===ab(b[0])}});
return[function(){return e()[0]()},
function(t){return void e()[1](t)}]};
_.$D=function(W){return function(){var e="",t;for(t in W){for(var b=W[t];typeof b==="function";)b=b();b!==void 0&&b!==null&&(e+="; "+t+": "+b)}return e.length>0?_.TQ(e.slice(2)):_.TQ()}};
rLL=function(W){switch(W){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"}};
FPZ=function(W,e,t,b,m,q){var Q=qaG(W),X=Q.disabled,I=Q.iconPosition,u=Q.style,c=Q.focused,v=function(){return!!k()&&I()==="icon-only"},D=function(){return!!k()&&I()==="icon-only-40"},B=function(){return!!k()&&I()==="icon-with-label"},k=function(){return!!e||!(b==null||!b())};
return{type:function(){return u()==="call-to-action-inverse"?"text":u()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(c()||(q==null?void 0:q()))&&!X()},
hasIconLeading:function(){return!!k()&&I()==="leading"},
hasIconTrailing:function(){return!!k()&&I()==="trailing"},
hasIconLeadingTrailing:function(){return!!k()&&!!(t||m!=null&&m())&&I()==="leading-trailing"},
hasIconOnly:v,hasIconOnly40:D,hasIconWithLabel:B,iconButton:function(){return v()||D()||B()},
visiblyDisabled:function(){return(X()?"disabled":W().state)==="disabled"||X()},
overrideSmallSizeIcon:function(){return R0s(W(),k())},
iconToRender:e?e:function(){return _.w(_.kD,{icon:b,size:function(){return pa(W(),!0)},
active:function(){return W().toggled},
iconFilter:function(){return QkS(W())}})},
secondaryIconToRender:t?t:function(){return _.w(_.kD,{icon:m,size:function(){return pa(W(),!0)},
active:function(){return W().toggled},
iconFilter:function(){return QkS(W())}})}}};
qaG=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(e){var t,b;return(b=(t=W()).onTap)==null?void 0:b.call(t,e)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(e){var t,b;return(b=(t=W()).onToggle)==null?void 0:b.call(t,e)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
disableBackdropFilter:function(){return W().disableBackdropFilter},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
XJz=function(W){return W.style==="overlay-dark"?4:W.style==="overlay"?W.type==="filled"?4:3:W.type==="filled"||W.style==="call-to-action-inverse"||W.style==="mono-inverse"?2:1};
R0s=function(W,e){e=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&e;return!W.segmentedPosition&&e&&W.size==="S"};
IvD=function(){return!_.S("web_disable_backdrop_filter")};
pa=function(W,e){switch(W.size){case "XS":return 16;case "S":return R0s(W,e)?24:16;default:return 24}};
avZ=function(W){switch(W){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"}};
wJv=function(W){switch(W){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"}};
ufc=function(W){switch(W){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"}};
QkS=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
cLs=function(W){if(!W)return{};var e=W.color,t=W.backgroundColor;W=W.borderColor;var b="";e&&(b+="color: "+e+";");t&&(b+="background-color: "+t+";");W&&(b+="border-color: "+W+";");return{style:b}};
BYs=function(W,e,t){var b=W.buttonText,m=W.formattedButtonText,q=W.formattedButtonTextLegacy,Q=W.animatedTextProps,X=W.style,I=W.size,u=W.focused,c=W.disabled,v=W.onTap,D=W.alignByText,B=W.aTagConfig,k=W.customColors,n=W.segmentedPosition,f=W.toggled,M=W.toggleable,K=W.accessibilityLabel,U=W.onToggle,V=W.iconPosition,L=W.oneOffCustomTextWrap,E=W.disableTextEllipsis,RR=W.disableBackdropFilter,uv=W.tooltipText,GS=W.ariaHidden,k9=W.tabIndex,CQ=W.state,fQ=W.type;X==="call-to-action-inverse"&&(fQ="text");
X==="overlay-dark"&&fQ!=="filled"&&fQ!=="tonal"&&(fQ="tonal");var iv=!!e&&V==="leading",hz=!!e&&V==="trailing",ES=!!e&&!!t&&V==="leading-trailing",Wu=!!e&&V==="icon-only",pr=!!e&&V==="icon-only-40",ay=!!e&&V==="icon-with-label",PU=Wu||pr||ay;c&&(CQ="disabled");var cu=CQ==="disabled"||c;CQ=R0s(W,!!e);var LQ={},sB=(LQ["yt-spec-button-shape-next"]=!0,LQ[avZ(fQ)]=!0,LQ[wJv(X)]=!cu,LQ["yt-spec-button-shape-next--disabled"]=!!cu,LQ[ufc(I)]=!0,LQ["yt-spec-button-shape-next--focused"]=!!u&&!c,LQ["yt-spec-button-shape-next--icon-trailing"]=
hz,LQ["yt-spec-button-shape-next--icon-leading"]=iv,LQ["yt-spec-button-shape-next--icon-leading-trailing"]=ES,LQ["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=ES&&!(b||m),LQ["yt-spec-button-shape-next--icon-button"]=Wu||ay,LQ["yt-spec-button-shape-next--icon-only-default"]=pr,LQ["yt-spec-button-shape-next--align-by-text"]=!!D,LQ["yt-spec-button-shape-next--segmented-start"]=n==="start",LQ["yt-spec-button-shape-next--segmented-end"]=n==="end",LQ["yt-spec-button-shape-next--override-small-size-icon"]=
CQ,LQ["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!L,LQ["yt-spec-button-shape-next--disable-text-ellipsis"]=!!E,LQ["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!RR&&IvD(),LQ),z1=function(){if(Q)BbD(_.vkL)(Q);else if(q)q(V==="icon-with-label"||L?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(m){var US=V==="icon-with-label"||L;JTv(Object.assign({},m,US?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!US})}else b&&tJ(b)},FD=function(US){v==null||v(US);
M&&(U==null||U(US))},DD=B?GdZ:Dyz,nr=B?"aria-current$":"aria-pressed$",UB=function(){e&&(iv||ES||PU)&&function(){yp({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){e()})}();
(b||m||q||Q)&&!PU&&function(){yp({className:"yt-spec-button-shape-next__button-text-content"},function(){z1()})}();
hz&&function(){yp({className:"yt-spec-button-shape-next__icon"},function(){e()})}();
ES&&function(){yp({className:"yt-spec-button-shape-next__secondary-icon"},function(){t()})}();
c||BbD(_.jN)({model:{color:XJz(W)}})},ZD=function(){var US={};
DD(Object.assign({},(US.className=_.DT(sB),US.onclick=B?void 0:FD,US.disabled=c,US["aria-disabled$"]=cu,US.style=c&&B?"pointer-events:none":void 0,US[nr]=M?!!f:void 0,US["aria-label$"]=K,US.title$=uv!=null?uv:"",US["aria-hidden$"]=GS,US.tabindex$=k9,US),B,cLs(k)),function(){UB()})};
ay?(I={},X=(I["yt-spec-button-shape-with-label"]=!0,I["yt-spec-button-shape-with-label--is-overlay"]=X==="overlay"||X==="overlay-dark",I),Sac({className:_.DT(X)},function(){ZD();yp({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},z1)})):ZD()};
lvL=function(W,e){if(!Wf){var t;Fxg(function(){return t=vDg(W,e)});
return t}W.parent=ok9();return vDg(W,e)};
ok9=function(){var W=yJ2(Wf||void 0,weG);return pOs(W)?void 0:W};
Ca=function(W,e){_.sD(W,Object.assign({},e,{forceClickLogging:!0}))};
ZSS=function(W,e,t,b){var m=void 0;return function(q){var Q=_.Mk(t?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(Q){var X;m=(X=m)!=null?X:e==null?void 0:e.value;if(Q)if(_.S("web_button_vm_click_client_ve_killswitch"))Ca(Q,Object.assign({},{form:{element:m,event:q}},void 0));else{var I;X=Q==null?void 0:Q.clickTrackingParams;var u,c=W==null?void 0:(I=W.loggingDirectives)==null?void 0:(u=I.clientVeSpec)==null?void 0:u.uiType;I=c&&!X?_.na(c):void 0;Ca(Q,Object.assign({},{form:{element:m,event:q}},
{clickedVisualElement:I}))}}b&&b(q)}};
$y2=function(W){switch(W){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"}};
kdG=function(W){switch(W){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"}};
pJS=function(W){switch(W){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"}};
yLg=function(W){switch(W){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"}};
jkD=function(W,e){return _.I1(W.entities,"engagementToolbarStateEntityPayload",e)};
nkG=function(W){(W=_.$5(W))&&_.CrS(W)};
_.CrS=function(W){var e=_.fc();e&&_.Vx(e,W)};
fvz=function(W,e,t){_.RT(W,"yt-open-popup-action",[e,t||W])};
gkc=function(W,e){var t=_.Tn(W,"endpoint"),b=_.Tn(W,"action");return(t=b?b:t)&&e&&(t=e.navigationEndpointPopupMap[t])&&(W=_.HO(t,W),(t=_.Tn(W,"renderer"))&&e.supportedPopups.hasOwnProperty(t))?{openPopupAction:{popupType:e.popupTypeMap[t],popup:W}}:null};
TYz=function(W,e,t,b){if(b){var m;t=t==null?void 0:(m=t.data)==null?void 0:m.contents;(m=t instanceof Array&&t.length?t[0]:t)&&(t=_.Tn(m,"renderer"))&&b.supportedPopups.hasOwnProperty(t)&&(e.stopPropagation(),fvz(W,{openPopupAction:{popupType:b.popupTypeMap[t],popup:m}}))}};
OSL=function(W,e,t,b){b=b===void 0?!1:b;var m=JLL(e);if(m){m.href&&Pw(m.href);var q=e.button;q=q!==void 0?q===0&&!fa(e):!fa(e);m.data&&q&&xyR(W,m,e,t,b)}};
xyR=function(W,e,t,b,m){m=m===void 0?!1:m;var q=_.mn("pbj_navigate_limit",-1)===0;MEL(e);_.ee().resolve(_.Wi(H3));var Q=e.data;if(Object.keys(Q).length!==0)if(!_.S("unplugged_web_disable_actions_for_cec_endpoint")&&_.l(Q,_.wy))_.S("endpoint_behavior_command_executor_fix_killswitch")||(t.preventDefault(),t.stopPropagation()),_.IT(W,[Q],W);else if(b=gkc(Q,b))Q.loggingUrls&&Q.loggingUrls.forEach(function(I){I.baseUrl&&_.Vf(I.baseUrl)}),t.preventDefault(),t.stopPropagation(),fvz(W,b,e);
else{var X=skL(0,e.data,t);if(W=e.getForm)W=W(),X.tempData=X.tempData||{},X.tempData=Object.assign({},X.tempData,W);W=_.LB(t);if(b=W.find(function(I){return!!I.visualElement}))X.createScreenConfig=X.createScreenConfig||{},X.createScreenConfig.clickedVisualElement=b.visualElement;
if(!q)if(t.preventDefault(),t.stopPropagation(),_.l(Q,_.h0Z)&&!m&&_.uL.instance)_.uL.instance.resolveCommand(Q,X);else if(_.S("kevlar_command_handler_formatted_string")&&!m&&_.uL.instance&&HSR(Q))m=W.find(function(I){return!!I.is})||t.target,t={form:Object.assign({},X,{event:t,
element:m,originatingNode:e})},_.uL.instance.resolveCommand(Q,t);else{Q=_.LB(t);t=[];for(m=0;m<Q.length;m++)(q=Q[m].is)&&t.push(q);fjD({parents:t.join(","),text:e.innerText},function(){_.q2(e,"yt-navigate",X)})}}};
KPL=function(W){if(W=JLL(W))MEL(W),IS9(W.href)};
JLL=function(W){W=_.LB(W);for(var e,t=0;t<W.length;t++)if(e=W[t],e.tagName==="A"&&e.classList.contains("yt-simple-endpoint")){if(!e.data)break;return e}return null};
fa=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
Prz=function(W,e){var t={itct:e.clickTrackingParams};_.S("kevlar_client_side_screens")&&(!_.l(e,_.Za)||_.S("kevlar_exclude_endpoint_killswitch"))&&(t.endpoint=JSON.stringify(e));_.S("enable_unknown_lact_fix_on_html5")&&_.ee().resolve(_.Wi(_.gd))&&(t.lact=_.be());QEL(t);_.Aj(W,t)};
MEL=function(W){W.href&&Object.keys(W.data).length!==0&&Prz(W.href,W.data)};
HSR=function(W){for(var e=_.R(VE9),t=e.next();!t.done;t=e.next())if(W[t.value])return!1;return!0};
_.T2=function(W,e){if(e){var t={};iSz.forEach(function(b){b=YaG(e,b,"--yt-lightsource-");Object.assign(t,b)});
z0s.forEach(function(b){b=YaG(e,b,"--yt-basic-");Object.assign(t,b)});
_.XB(W,t)}};
YaG=function(W,e,t){var b={};b[t+_.cF(e)]=W&&W[e]?_.h8(W[e]):"";return b};
_.xD=function(W,e,t){Jp[W]||(Jp[W]={});Jp[W][e]=t};
_.OZ=function(W){Jp[W]||(Jp[W]={});return Jp[W]};
UyS=function(W){if(!W)return{};var e=W.foregroundTitleColor,t=W.backgroundColor;W=W.borderColor;var b="text";W?b="outline":t&&(b="filled");return{type:b,customColors:{color:e?_.h8(e):void 0,backgroundColor:t?_.h8(t):void 0,borderColor:W?_.h8(W):void 0}}};
dys=function(W){var e=W.renderer;var t=W.element;var b=W.commandController;var m=W.onTapCallback;var q=W.skipCommandHandling;var Q=W.overrides;var X=W.forceIcon;var I=W.forceModernIconButton;var u=W.forceDisabled;var c=W.isSubscribe===void 0?!1:W.isSubscribe;var v=W.isPressed===void 0?!1:W.isPressed;var D=W.useButtonSize===void 0?!1:W.useButtonSize;W=LPZ(e);c&&(W.style="mono",W.type="filled");X=!e.icon||!X&&e.text?e.icon?e.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:I?"icon-only":"icon-only-40";X==="icon-only-40"&&(W.type="text");var B;I=Object;c=I.assign;D=EkQ(e,D);v=!!e.isSelected||!_.S("web_propagate_is_pressed_killswitch")&&!!v;var k=e.isSelected!==void 0;u=u===void 0?e.isDisabled:u;var n=e.text?_.Tf(e.text):void 0;var f,M,K,U=((f=e.accessibilityData)==null?void 0:(M=f.accessibilityData)==null?void 0:M.label)||((K=e.accessibility)==null?void 0:K.label);f=U?U:_.Ub(e.text);t=ALR(e,t,b,m,q);b=NY9(e);b!=null&&b.length?(b=_.h_({innertubeCommand:ou9(b),
forceNewState:!0}),b=Hg(b)?b:void 0):b=void 0;return c.call(I,{},W,D,{iconPosition:X},Q,{focused:!1,toggled:v,toggleable:k,disabled:u,formattedButtonText:n,accessibilityLabel:f,onTap:t,aTagConfig:b},UyS((B=e.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:e.oneOffCustomTextWrap})};
ALR=function(W,e,t,b,m){return function(q){var Q=NY9(W);b(Q,q);if(!m){Q=_.R(Q);for(var X=Q.next();!X.done;X=Q.next())Ca(X.value,{form:{element:e,event:q},commandController:t})}}};
NY9=function(W){var e=[];W.command&&e.push(W.command);W.serviceEndpoint&&e.push(W.serviceEndpoint);W.navigationEndpoint&&e.push(W.navigationEndpoint);return e};
EkQ=function(W,e){if(e)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
LPZ=function(W){switch(W.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"}}};
_.MA=function(W){return _.SC(function(){diG()();return zF(W)},void 0,"Icv7j")};
sZ=function(W,e){return _.I1(W.entities,"likeStatusEntity",e)};
WNG=function(W,e){return _.I1(W.entities,"likeCountEntity",e)};
_.eBQ=function(W,e){return _.I1(W.entities,"stringEntity",e)};
t02=function(W,e){if(!W)return!1;var t,b=(t=_.l(W,_.c6))==null?void 0:t.signal;if(b&&e.signalEndpointMap)return!!e.signalEndpointMap[b];var m;if((t=(m=_.l(W,_.hp))==null?void 0:m.request)&&e.continuationEndpointMap)return!!e.continuationEndpointMap[t];for(var q in W)if(e.commandEndpointMap[q])return!0;return!1};
bNG=function(W,e){if(e.streamingEndpointMap)for(var t in W)if(e.streamingEndpointMap[t]&&(W=e.streamingEndpointMap[t]))return W()};
m4Z=function(W,e){var t,b=(t=_.l(W,_.c6))==null?void 0:t.signal;if(b&&e.signalEndpointMap&&(t=e.signalEndpointMap[b]))return t();var m;if((t=(m=_.l(W,_.hp))==null?void 0:m.request)&&e.continuationEndpointMap&&(m=e.continuationEndpointMap[t]))return m();for(var q in W)if(e.commandEndpointMap[q]&&(W=e.commandEndpointMap[q]))return W()};
rYG=function(W){var e={"Content-Type":"application/json"};_.Ot("EOM_VISITOR_DATA")?e["X-Goog-EOM-Visitor-Id"]=_.Ot("EOM_VISITOR_DATA"):_.Ot("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=_.Ot("VISITOR_DATA"));e["X-Youtube-Bootstrap-Logged-In"]=_.Ot("LOGGED_IN",!1);_.Ot("DEBUG_SETTINGS_METADATA")&&(e["X-Debug-Settings-Metadata"]=_.Ot("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(e["X-Youtube-Client-Name"]=W),(W=_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(e["X-Youtube-Client-Version"]=
W),(W=_.Ot("CHROME_CONNECTED_HEADER"))&&(e["X-Youtube-Chrome-Connected"]=W),(W=_.Ot("DOMAIN_ADMIN_STATE"))&&(e["X-Youtube-Domain-Admin-State"]=W),_.MD("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.Ot("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(e["X-YouTube-Lava-Device-Context"]=W));return e};
q1G=function(W,e){e.watchNextResponse||e.reelItemWatchResponse?e.watchNextResponse?W.content=e.watchNextResponse:W.content=e.reelItemWatchResponse:e.playerResponse?W.player=e.playerResponse:e.reelWatchSequenceResponse&&(W.reelSequence=e.reelWatchSequenceResponse)};
_.He=function(W){if(!W)return null;for(var e=[],t=0;t<W.textSegments.length;t++){var b=W.textSegments[t];b.text?e.push(b):b.emojiId&&e.push({emoji_id:b.emojiId})}return{text_segments:e}};
IEc=function(W,e,t,b,m,q,Q){q=q===void 0?[]:q;var X=new _.Ka;X.endpoint=t;if(!t)return _.TT(new _.o_("handle undefined endpoint",e.tagName)),X;var I=H4Q(t);I.length&&(_.IT(W,I,e,b),X.actions=I);t.loggingUrls&&t.loggingUrls.forEach(function(c){c.baseUrl&&ia(c.baseUrl,c.attributionSrcMode)});
I=!_.S("web_skip_impression_click_killswitch")&&b&&b.impression;if(t.clickTrackingParams&&!RBS(t)&&!QWc(e)&&!I&&(I=_.Sg(),!_.Pe(I,e))){var u=e.getScreenLayer&&e.getScreenLayer();u?I.clickCommand(t,null,u):I.clickCommand(t,null)}I=!1;for(u=0;u<q.length;u++)if((0,q[u])(e,t,b)){I=!0;break}!I&&FNv(t)&&(X.ajaxPromise=XES(W,e,t,b,m,Q));return X};
QWc=function(W){var e;return(W=(e=W.data)==null?void 0:e.navigationEndpoint)&&!!W.clickTrackingParams};
RBS=function(W){var e=_.l(W,_.c6);if(e&&(e=e.signal)&&aEL.indexOf(e)>=0)return!0;for(var t in W)if(wEc.indexOf(t)>=0)return!0;return!1};
FNv=function(W){var e;if(((e=_.l(W,_.c6))==null?void 0:e.signal)==="CLIENT_SIGNAL")return!1;for(var t in W)if(ulR.indexOf(t)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
lES=function(W,e,t,b,m,q,Q){var X=_.Vp.instance;if(X&&_.YD(X,b))var I=_.z2(X,b,m).then(function(c){return(c==null?0:c.data)?c:{data:c}});
else I=W.requestDataForServiceEndpoint(b,m),_.l(b,cYs)||_.l(b,v_g)||_.l(b,_.GsG)||_.l(b,D4z)||_.JC(new _.o_("No RequestBuilder for endpoint",b));var u=_.UZ();u.promise.thenCatch(function(){var c=_.Tn(b,"action")||_.Tn(b,"command")||_.Tn(b,"endpoint");c&&(c=b[c],c.hasOwnProperty("onFailureAction")?_.IT(e,[c.onFailureAction],t):c.hasOwnProperty("onFailureCommand")&&_.IT(e,c.onFailureCommand,t));I.cancel("Resolver promise rejected")});
I.then(function(c){if(c){var v=c.error;if(v){if(q&&q.onServerError)q.onServerError(b,c);u.reject(new _.o_("Response error",b,v))}else if(c=c.data)if(v=c.error){if(q&&q.onServerError)q.onServerError(b,c);u.reject(new _.o_("Returned error",b,v))}else{S1c(e,t,c,b);BVG(c);if(v=hm2(c))for(var D=_.R(v),B=D.next();!B.done;B=D.next()){B=B.value;var k=_.ee().resolve(_.Wi(o_D))||La;if(!_.Vp.instance||!k.some(function(f){return!!_.l(b,f)})||_.S("kevlar_response_processor_allowlist_killswitch")){var n=k=void 0;
((n=_.l((k=B)==null?void 0:k.commandMetadata,_.ez))==null?0:n.sendPost)?_.X5(e,[B]):_.IT(e,[B],t)}}(D=_.l(c==null?void 0:c.frameworkUpdates,EZ))&&Q&&Q(D);if(q&&q.onSuccess)q.onSuccess(b,c);u.resolve(new _.Ap(c,v))}}else u.reject(new _.o_("Invalid service endpoint provided",b))},function(c){u.reject(c)});
return u.promise};
BVG=function(W){var e;(W=(e=_.l(W==null?void 0:W.onResponseReceivedCommand,_.ZNG))==null?void 0:e.continuationItems)&&(W==null?void 0:W.length)===1&&_.l(W[0],$4s)&&_.Tv("so_r",void 0,"search_overview_answer")};
XES=function(W,e,t,b,m,q){var Q;return(Q=e.getNetworkManager&&e.getNetworkManager()?e.getNetworkManager():_.ee().resolve(_.Wi(_.Ti)))?lES(Q,W,e,t,b,m,q):_.jg("No network manager.")};
S1c=function(W,e,t,b){if(t=t.trackingParams||t.loggingDirectives&&t.loggingDirectives.trackingParams){var m;(_.l(b,kss)||_.l(b,pER)||_.l(b,yYg))&&b.clickTrackingParams?m=_.$5(b.clickTrackingParams):_.S("web_graft_to_parent_command")&&b.clickTrackingParams&&(m=_.$5(b.clickTrackingParams));var q;b=(q=e.getScreenLayer)==null?void 0:q.call(e);e=_.Sg().graftServerVe(t,m,b);_.Qx(W,"yt-store-grafted-ve-action",[e])}};
_.jW2=function(W){var e=new Image;return new _.c3(function(t,b){e.addEventListener("load",function(){t()});
e.addEventListener("error",function(){b()});
e.src=W})};
CPL=function(W){return!!W};
n_K=function(W){return!!W};
fE2=function(W,e,t){var b=W.rowIndex;b!==void 0&&_.Qx(W.hostElement,"yt-section-reactive-dismissal",[b,e,t])};
_.NA=function(W,e,t){W=_.R(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;if(b===e)break;for(var m=_.R(t),q=m.next();!q.done;q=m.next())if(q=q.value,b.tagName===q||!_.S("web_event_button_role_check_killswitch")&&b.role==="button"&&q==="BUTTON")return!0}return!1};
_.dd=function(W,e,t){W=_.R(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;if(b===e)break;for(var m=_.R(t),q=m.next();!q.done;q=m.next())if(b.id===q.value)return!0}return!1};
g_D=function(W){switch(W){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}};
TVD=function(W,e){if(!W&&!e)return"medium";W=Math.max(W||0,e||0);return W>=256?"large":W>=96?"medium":"small"};
JYS=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.tv=function(){var W=_.ee().resolve(_.Wi(_.WS));return W?(W=W.getCurrentPage())?_.eX(W):null:null};
_.bJ=function(){var W=_.tv();if(!W){var e=_.ee().resolve(_.Wi(_.WS)),t=e?typeof e:"no page manager";e=e?e.getCurrentPage():null;t=new _.o_("Player is missing when requested.",t,e?e.tagName:"no page");_.gQ(t)}return W};
_.eX=function(W){return W&&W.getPlayer?W.getPlayer():null};
x4K=function(W,e){W={args:{raw_player_response:W}};e&&(W.args=Object.assign({},W.args,e));return W};
ONG=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.M0g=function(W,e){var t={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(t.url+="&list="+W.playlistId);W.playerParams&&(t.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:t}};e&&(W.clickTrackingParams=e);return W};
hB2=function(){return sWS||!!_.HO("yt.player.Application")};
KNQ=function(){return HNZ||!!document.querySelector("link#player-css")};
V0G=function(){function W(){sWS=!0;PPg.resolve()}
var e,t;return _.F(function(b){PPg||(PPg=new _.Xu,hB2()?W():(e=document.createElement("script"),e.addEventListener("load",W),t=_.jh(_.Ot("PLAYER_JS_URL")),_.H7(e,t),document.head.appendChild(e)));return b.return(PPg.promise)})};
Y1G=function(){function W(){HNZ=!0;iNv.resolve()}
if(!iNv)if(iNv=new _.Xu,KNQ())W();else{var e=document.createElement("link");e.id="player-css";e.addEventListener("load",W);var t=_.jh(_.Ot("PLAYER_CSS_URL"));_.VE(e,t,"stylesheet");document.head.appendChild(e)}return iNv.promise};
zBQ=function(){return hB2()&&KNQ()?Promise.resolve([]):Promise.all([V0G(),Y1G()])};
U4v=function(W,e,t){var b={args:{}};W&&(b.args.raw_player_response=W);e&&(b.args.raw_watch_next_response=e);t&&(b.args=Object.assign({},b.args,t));return b};
NVg=function(W,e,t){var b=!1;b=b===void 0?!0:b;W=typeof W==="string"?_.mg(document,W):W;var m=LNR+"_"+_.bh(W),q=E_G[m];if(q&&b)return AYv(e,t)?q.api.loadVideoByPlayerVars(e.args||null):q.loadNewVideoConfig(e),q.api;q=new rN(W,m,e,t,void 0);E_G[m]=q;q.addOnDisposeCallback(function(){delete E_G[q.getId()]});
return q.api};
AYv=function(W,e){return e&&e.serializedExperimentFlags?e.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
d4D=function(){var W=new _.Xu;W.resolved=!1;var e=W.resolve;W.resolve=function(t){W.resolved=!0;e(t)};
return W};
eqg=function(W){var e={};WLG().install((e.document_disposed={callback:W},e))};
qV=function(W,e){if(!W&&Math.random()<=_.mn("kevlar_unified_player_logging_threshold")){W=Error("uh`"+(e?e:"Unspecified error"));if(_.S("kevlar_unified_player_throw_errors"))throw W;_.JC(W)}};
_.tkg=function(){var W=_.HO("ytDebugData.callbacks");W||(W={},_.Nz("ytDebugData.callbacks",W));return W};
mhL=function(W,e){var t=_.tkg();if(_.S("web_dd_iu")||bXQ.includes(W))t[W]=e};
rdG=function(){return _.F(function(W){return W.return({isLeader:_.krZ(_.Eb().getState()),c:_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
qOs=function(){var W;_.F(function(e){if(e.nextAddress==1)return mhL("APP_STATE",rdG),_.a(e,_.ee().resolve(_.Rv),2);W=e.yieldResult;mhL("PI",function(){return _.F(function(t){return t.return(W.getVideoStats())})});
_.u8(e)})};
Rq9=function(W){var e=_.ET(_.Kc(_.tz.location.href));W=_.ET(_.Kc(W));return _.S("kevlar_clear_non_displayable_url_params")?e==Qv(W):Qv(e)==Qv(W)};
Qv=function(W){var e=_.Q2z(W);W=W.slice(0);var t=["frags"];_.S("kevlar_hide_pp_url_param")&&t.push("pp");_.S("kevlar_hide_time_continue_url_param")&&t.push("time_continue");t=_.R(t);for(var b=t.next();!b.done;b=t.next())b=b.value,W=_.W6(_.ET(W),b);return _.ET(W)+(e?"#"+e:"")};
FX=function(W,e){e=Number(e)*1E3;var t=Math.round((0,_.eJ)()),b=t.toString();W={innertubeResponse:W,serverDateTimestampMs:b,lastModifiedTimestampMs:b,expireTimestampMs:(t+e).toString()};if(e=_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=e;return W};
X5D=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++FLG};
_.IWg=function(){var W=_.nc(),e=_.fc();e&&W&&_.Yh(e,[W],!0)};
w52=function(W){return W&&aWG.some(function(e){return W.includes(e)})};
SO9=function(W){var e=_.l(W,_.KJ);if(!e)return!1;var t=e.url,b=e.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!t)return _.gQ(Error("zh")),!1;if(e.target==="TARGET_NEW_WINDOW"){var m={};_.S("resolve_url_parent_tracking_params")&&(!_.Et(t)||AJ(window.location.href,t))&&(m={endpoint:W,itct:W.clickTrackingParams});QEL(m);W=null;try{if(b)return W=_.vO9(t,"_blank",m,void 0,b),uEL(_.ee().resolve(cdv),W,t),!0}catch(D){_.gQ(D)}_.Aj(t,m);e={target:"_blank",noopener:_.S("set_window_noopener_ks")&&
!e.allowOpener};W=window;b=c7(t)?t:_.lF(typeof t.href!="undefined"?t.href:String(t));m=self.crossOriginIsolated!==void 0;var q="strict-origin-when-cross-origin";window.Request&&(q=(new Request("/")).referrerPolicy);var Q=e.noreferrer;if(m&&Q&&q==="unsafe-url")throw Error("qe");q=Q&&!m;Q=e.target||t.target;var X=[],I=[],u=!1;for(v in e){var c=e[v];switch(v){case "width":case "height":case "top":case "left":X.push(v+"="+c);break;case "target":break;case "noopener":case "noreferrer":c?I.push(v):(u=!0,
I.push(v+"=false"));break;case "attributionsrc":X.push(v+(c?"="+c:""));break;default:X.push(v+"="+(c?1:0))}}var v=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);v=yK()&&v;vC2&&m&&X.length===0&&I.length>0&&!v&&!u?(I.length===2&&(I=["noreferrer"]),_.Ty(W,b,Q,I[0]),W=GA2()):(v=X.join(","),_.Jz()&&W.navigator&&W.navigator.standalone&&Q&&Q!="_self"?(v=_.DA("A"),yE(v,b),v.target=Q,q&&(v.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&v.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),
e.initMouseEvent("click",!0,!0,W,1),v.dispatchEvent(e),W=GA2()):q?(W=_.Ty(W,"",Q,v),e=_.v7(b),W&&(W.opener=null,e===""&&(e="javascript:''"),e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+XX(e)+'">',e=CF(e),(b=W.document)&&b.write&&(b.write(nF(e)),b.close()))):((W=_.Ty(W,b,Q,v))&&e.noopener&&(W.opener=null),W&&e.noreferrer&&(W.opener=null)));uEL(_.ee().resolve(cdv),W,t);return!0}e=_.I_(t);e=w52(e)||t==="https://studio.youtube.com/";b=!(!_.Et(t)||AJ(window.location.href,
t));v=t.indexOf("disable_polymer=1")>=0;if(b||v||e)Pw(t),ne(),_.VI(t,void 0,void 0,window.top,Dhv);else return _.JC(new _.o_("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.lWQ=function(W,e){e=e===void 0?0:e;if(!(_.l(W,BKR)||_.l(W,oC9)||_.l(W,_.KJ)&&_.l(W,_.KJ).url))return!1;var t,b=(t=_.l(W,_.KJ))==null?void 0:t.url;t=b?{externalLinkData:{url:b}}:null;return _.Sg().clickCommand(W,t,e)};
ZXD=function(W,e){return _.I1(W.entities,"subscriptionStateEntity",e)};
$hD=function(W,e){return _.I1(W.entities,"subscriptionNotificationStateEntity",e)};
kAG=function(W,e){return _.I1(W.entities,"upcomingEventReminderStateEntity",e)};
p5L=function(W,e){return _.I1(W.entities,"engagementToolbarSurfaceEntityPayload",e)};
ydS=function(W,e){return _.I1(W.entities,"triStateButtonStateEntityPayload",e)};
j2Z=function(W,e){return _.I1(W.entities,"commerceCartCheckoutButtonEntity",e)};
_.CsR=function(W,e){return _.I1(W.entities,"playlistLoopStateEntity",e)};
nCL=function(W,e){return _.I1(W.entities,"commandEntity",e)};
gCz=function(W,e,t,b,m){m=m===void 0?{}:m;return function(q){var Q,X;var I=((Q=W.loggingDirectives)==null?0:(X=Q.clientVeSpec)==null?0:X.uiType)?_.na(W.loggingDirectives.clientVeSpec.uiType):void 0;m.clickedVisualElement||(m.clickedVisualElement=I);I=fWc(W,e);t(I,q);I=_.R(I);for(Q=I.next();!Q.done;Q=I.next()){Q=Q.value;X=b;var u=q,c=m;c.form?c.form.event=u:c.form={element:X,event:u};Ca(Q,c)}}};
fWc=function(W,e){var t=[];e?(W.toggledCommand&&t.push(W.toggledCommand),W.toggledServiceEndpoint&&t.push(W.toggledServiceEndpoint)):(W.defaultCommand&&t.push(W.defaultCommand),W.defaultServiceEndpoint&&t.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&t.push(W.defaultNavigationEndpoint));return t};
TKL=function(W,e){var t=W.toggledStyle||W.style,b;switch((b=e?t:W.style)==null?void 0:b.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Iv=function(){return _.F(function(W){return W.nextAddress==1?_.a(W,_.ee().resolve(_.Rv),2):W.return(_.ee().resolve(JdS)())})};
_.av=function(){return _.ee().resolve(JdS)()};
_.wN=function(){return ft(function(){return{lottieEl:void 0}})};
xhS=function(W,e){return W.startsWith(e.uniqueId)};
OX9=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,_.Iv(),2);e=b.yieldResult;if((t=e)==null||!t.addEventListener)return uJ(),b.return();e.addEventListener("onCueRangeEnter",W);_.u8(b)})};
Mkc=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,_.Iv(),2);e=b.yieldResult;if((t=e)==null||!t.removeEventListener)return uJ(),b.return();e.removeEventListener("onCueRangeEnter",W);_.u8(b)})};
s2L=function(W){var e,t,b,m,q;_.F(function(Q){if(Q.nextAddress==1)return _.a(Q,_.Iv(),2);e=Q.yieldResult;if((t=e)==null||!t.addCueRange)return uJ(),Q.return();b=_.R(W.timings);for(m=b.next();!m.done;m=b.next())q=m.value,e.addCueRange(W.uniqueId+"-"+q,q/1E3,(q+100)/1E3);_.u8(Q)})};
hqD=function(W){var e,t,b,m,q;_.F(function(Q){if(Q.nextAddress==1)return _.a(Q,_.Iv(),2);e=Q.yieldResult;if((t=e)==null||!t.removeCueRange)return uJ(),Q.return();b=_.R(W.timings);for(m=b.next();!m.done;m=b.next())q=m.value,e.removeCueRange(W.uniqueId+"-"+q);_.u8(Q)})};
HX9=function(){var W,e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.Iv(),2);W=b.yieldResult;if((e=W)==null||!e.getPlayerState)return uJ(),b.return();t=W.getPlayerState();return b.return(t===2)})};
uJ=function(){_.JC(new _.o_("Smartimation player does not exist or is corrupted"))};
KLZ=function(){try{var W;return(W=window.CSS)!=null&&W.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(e){return _.JC(new _.o_("Smartimation CSS.supports threw an error")),!1}};
LL9=function(W,e,t,b,m){var q=W.playlistId?Psc:VkL;e=e();t=t();m=!!W.videoId&&m()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Bm(e))return iX2({data:W,actionType:q,disabled:m},t);if(W.videoId&&b())return YOv({data:W,actionType:q,disabled:m});switch(e){case "TRANSFER_STATE_UNKNOWN":return YOv({data:W,actionType:q,disabled:m});case "TRANSFER_STATE_FAILED":return W.videoId?zqL({data:W,actionType:q,disabled:m}):UhK({data:W,actionType:q,disabled:m});case "TRANSFER_STATE_COMPLETE":return UhK({data:W,
actionType:q,disabled:m});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return iX2({data:W,actionType:q,disabled:m},t);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?zqL({data:W,actionType:q,disabled:m}):YOv({data:W,actionType:q,disabled:m});default:return YOv({data:W,actionType:q,disabled:m})}};
ECv=function(W,e){var t=W.onTapCommand,b=_.Mk(t);if(W.videoId&&_.l(b,_.cS))return _.l(b,_.cS).action=e,t;W.playlistId&&_.l(b,_.vS)&&(_.l(b,_.vS).action=e);return t};
YOv=function(W){var e=W.data;var t=W.actionType;W=W.disabled;return{text:AdG,iconType:"OFFLINE_DOWNLOAD",onTap:ECv(e,t.ACTION_ADD),disabled:W}};
iX2=function(W,e){var t=W.data;var b=W.actionType;W=W.disabled;var m="OFFLINE_DOWNLOAD";e>=0&&e<=.1?m="OFFLINE_DOWNLOADING_ZERO":e>.1&&e<=.3?m="OFFLINE_DOWNLOADING_TWENTY":e>.3&&e<=.5?m="OFFLINE_DOWNLOADING_FORTY":e>.5&&e<=.7?m="OFFLINE_DOWNLOADING_SIXTY":e>.7&&e<1?m="OFFLINE_DOWNLOADING_EIGHTY":e===1&&(m="OFFLINE_PIN");return{text:NKv,iconType:m,onTap:ECv(t,b.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
UhK=function(W){var e=W.data;var t=W.actionType;W=W.disabled;return{text:dhZ,iconType:"OFFLINE_PIN",onTap:ECv(e,t.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
zqL=function(W){var e=W.data;var t=W.actionType;W=W.disabled;return{text:WRv,iconType:"OFFLINE_DOWNLOAD",onTap:ECv(e,t.ACTION_RETRY),disabled:W}};
mls=function(W){var e=ewQ;tDc.push(W);bwR||(e(function(){for(var t=_.R(tDc),b=t.next();!b.done;b=t.next())b=b.value,b();tDc.length=0;bwR=!1}),bwR=!0)};
ewQ=function(W){Promise.resolve().then(W)};
Gz=function(W){W=_.R(ITQ(W));var e=W.next().value,t=W.next().value,b=!1;_.nt(function(){return function(){b=!0}});
return[e,function(m){mls(function(){b&&!_.S("cow_prevent_state_setter_after_cleanup_killswitch")||t(m)})}]};
rW2=function(){var W=_.R(Gz(!1)),e=W.next().value,t=W.next().value;return function(){t(!e)}};
qAQ=function(W){return ft(function(){return{value:W}})};
Rws=function(W,e){var t=qAQ(W),b=qAQ(e);Ct(function(){t.value=W},[W]);
Ct(function(){b.value=e},e&&e.length>=1?e:[void 0]);
var m=ft(function(){return{value:void 0}});
if(W!==t.value||b.value!==e||m.value===void 0)m.value=zF(W,e);var q=rW2();_.nt(function(){function Q(){var I=zF(t.value,e);I!==m.value&&(m.value=I,q())}
var X=_.Yt().subscribe(Q);Q();return X});
return m.value};
_.D_=function(W,e){var t=diG();return _.SC(function(){t();return zF(W,[_.TQ(e)||""])},void 0,"HaeHEc")};
QYc=function(W){var e=_.D_(_.xg,function(){return W().videoId}),t=_.D_(_.Ob,function(){return W().playlistId});
return function(){return W().videoId?e:W().playlistId?t:_.R(_.up("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
FRs=function(W){var e=_.D_(Mf,function(){return W().videoId}),t=_.D_(_.$d9,function(){return W().playlistId});
return function(){return W().videoId?e:W().playlistId?t:_.R(_.up(0,void 0,"K4tgOc")).next().value}};
XDs=function(W){var e=_.D_(_.giQ,function(){return W().videoId});
return function(){return W().videoId?e:_.R(_.up(!1,void 0,"Oaxwcf")).next().value}};
ICD=function(W){var e=_.D_(yrD,function(){return W().videoId});
return function(){return W().videoId?e:_.R(_.up("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
aCK=function(){return{}};
wDs=function(){var W,e;return(e=(W=_.ee().resolve(_.Wi(_.zf)))==null?void 0:W())!=null?e:!1};
cWK=function(W,e){W=W===void 0?uvc:W;switch(e.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:e.payload});default:return W}};
GOS=function(W,e){W=W===void 0?vdS:W;switch(e.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:e.payload});default:return W}};
SAg=function(W,e){W=W===void 0?DlG:W;switch(e.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:e.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:e.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:e.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:e.payload});default:return W}};
odZ=function(W,e){W=W===void 0?BxG:W;switch(e.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:e.payload});default:return W}};
ZwS=function(W,e){W=W===void 0?lCG:W;switch(e.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:e.payload});case "SET_NAVIGATION_BUTTON":var t=e.payload.targetId,b=Object.assign({},W.navigationButtons);b[t]=e.payload.button;return Object.assign({},W,{navigationButtons:b});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:e.payload});case "SET_SECONDARY_HEADER":return t=e.payload.panelId,b=Object.assign({},W.secondaryHeader),b[t]=e.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:b});default:return W}};
yWc=function(){return w3(Object.assign({},{entities:RDK,voiceSearch:DrZ,engagementPanel:ZwS,bottomSheet:cWK,cinematicSetting:GOS,shorts:p2K,drawerLayout:odZ,createPlaylist:SAg,locationCollection:$lK,reportChannel:kOs,reportForm:pDK},y2S))};
jYg=function(W,e){_.Tm.addLowPriorityJob(function(){var t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return _.Qh(q,2),_.a(q,CAS(),4);case 4:return _.a(q,fetch(W),5);case 5:return t=q.yieldResult,_.a(q,t.json(),6);case 6:b=q.yieldResult;ce.set(W,b);requestAnimationFrame(function(){e(b)});
_.Hi(q,0);break;case 2:m=_.w9(q),_.JC(m),_.u8(q)}})})};
CWz=function(W){var e={animationConfig:{},listeners:{}},t=function(){W(!0)};
e.listeners.data_failed=t;e.listeners.error=t;e.listeners.data_ready=function(){W(!1)};
return e};
gdQ=function(W){var e=W.model;var t=W.subscribed;var b=W.isOverlay;var m=W.element;var q=W.commandController;var Q=W.notificationState;if(t){var X,I;var u=(e==null?void 0:(X=e.buttonStyle)==null?void 0:X.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:e==null?void 0:(I=e.unsubscribeButtonContent)==null?void 0:I.buttonText}else{var c;u=e==null?void 0:(c=e.subscribeButtonContent)==null?void 0:c.buttonText}a:{var v;switch(e==null?void 0:(v=e.buttonStyle)==
null?void 0:v.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":X="S";break a;default:X="M"}}a:if(b)b="overlay";else switch(e.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":b="overlay";break a;default:b="mono"}a:if(t)var D="tonal";else switch((D=e.buttonStyle)==
null?void 0:D.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":D="tonal";break a;default:D="filled"}return{style:b,type:D,state:e.disableSubscribeButton?"disabled":"active",size:X,focused:W.focused,toggled:t,accessibilityLabel:ndc(e,t,Q),buttonText:u,iconPosition:e.disableNotificationBell?"none":"leading-trailing",onTap:fCL(e,t,m,q),disableTextEllipsis:!!W.disableTextEllipsis}};
fCL=function(W,e,t,b){return function(m){if(e){var q;var Q=W.disableNotificationBell?_.Mk(W==null?void 0:(q=W.unsubscribeButtonContent)==null?void 0:q.onTapCommand):_.Mk(W==null?void 0:W.onShowSubscriptionOptions)}else{var X;Q=_.Mk(W==null?void 0:(X=W.subscribeButtonContent)==null?void 0:X.onTapCommand)}Q&&Ca(Q,{form:{element:t==null?void 0:t.value},commandController:b});m.stopPropagation()}};
ndc=function(W,e,t){if(e){if(W==null?0:W.disableNotificationBell){var b;return W==null?void 0:(b=W.unsubscribeButtonContent)==null?void 0:b.accessibilityText}switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var m;return W==null?void 0:(m=W.bellAccessibilityData)==null?void 0:m.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var q;return W==null?void 0:(q=W.bellAccessibilityData)==null?void 0:q.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Q;return W==null?void 0:(Q=
W.bellAccessibilityData)==null?void 0:Q.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var X;return W==null?void 0:(X=W.bellAccessibilityData)==null?void 0:X.disabledLabel;default:var I;return W==null?void 0:(I=W.unsubscribeButtonContent)==null?void 0:I.accessibilityText}}else{var u;return W==null?void 0:(u=W.subscribeButtonContent)==null?void 0:u.accessibilityText}};
TxQ=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
JWs=function(W,e,t){t.subscribed!==e&&((t=t.key)&&_.Uz(_.SX("subscriptionStateEntity",t,{key:t,subscribed:e})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:e})),e||_.RT(W,"yt-unsubscribe-action"))};
OwG=function(W){W=_.l(_.Mk(W),_.BS);var e,t,b,m;return(m=_.l(W==null?void 0:(e=W.panelLoadingStrategy)==null?void 0:(t=e.inlineContent)==null?void 0:(b=t.sheetViewModel)==null?void 0:b.content,xlc))==null?void 0:m.listItems};
MDK=function(W,e){if(W.onShowSubscriptionOptions&&e&&(W=OwG(W.onShowSubscriptionOptions),W!=null&&W.length)){var t=TxQ(e);W.forEach(function(b){b=_.l(b,_.ov);var m,q,Q,X,I=b==null?void 0:(m=b.leadingImage)==null?void 0:(q=m.sources)==null?void 0:(Q=q[0])==null?void 0:(X=Q.clientResource)==null?void 0:X.imageName;b&&I&&(b.isSelected=I===t)})}};
sYG=function(W,e,t,b){e&&t?W.style.width=t+"px":!e&&b&&(W.style.width=b+"px")};
hwL=function(W,e,t){var b;(b=W.lottieEl)==null||b.goToAndPlay(0);var m;(m=e.lottieEl)==null||m.goToAndPlay(0);_.lJ(_.Tm,function(){var q;(q=t.lottieEl)==null||q.goToAndPlay(0)},300)};
Z_=function(){return _.ee().resolve(_.Wi(HwS))||{}};
KRR=function(W){return typeof W==="function"};
_.$b=function(W){Object.keys(W);var e=function(t,b){var m=e.mapping||W;if(!t)return _.w(_.qD,null);if(Array.isArray(t)&&(t=PWg(m,e,t),Array.isArray(t))){if(!t.length)return _.w(_.qD,null);if(t.length>1){for(var q=!1,Q=!1,X=[],I={},u=0;u<t.length;I={data$jscomp$1855:void 0},u++)if(I.data$jscomp$1855=t[u],I.data$jscomp$1855){var c=VDc(I.data$jscomp$1855,m),v=c.mappingEntry;c=c.rendererName;v&&c&&(v&&(!KRR(v)&&iw2(v)&&(Q=!0),!KRR(v)&&v.asyncId||(q=!0)),X.push(YAg(I.data$jscomp$1855,v,c,e,b)))}return Q&&
!q?_.w(_.qD,null,zwc()):_.w(_.qD,null,X)}t=t[0]}if(!t)return _.w(_.qD,null);t=PWg(m,e,[t])[0];if(!t)return _.w(_.qD,null);q=VDc(t,m);m=q.mappingEntry;q=q.rendererName;return m&&q?_.w(_.qD,null,YAg(t,m,q,e,b)):_.w(_.qD,null)};
e.mapping=W;return e};
_.UlR=function(W){var e=void 0,t;for(t in W)if(W.hasOwnProperty(t)){e=t;break}return e};
PWg=function(W,e,t){var b,m=(b=Z_().preProcessOptions)==null?void 0:b.idomOptions;if(!m)return t;Z_();return m.preProcessPropsIdom(W,t,e.triggerRerender)};
VDc=function(W,e){return(W=_.UlR(W))?{mappingEntry:e[W],rendererName:W}:{mappingEntry:void 0,rendererName:void 0}};
YAg=function(W,e,t,b,m){if(!e)return _.w(_.qD,null);var q={};m&&m[t]&&(q=Object.assign({},m[t]));W[t]!==void 0&&(q.data=W[t]);if(KRR(e))return e.debugName||(e.debugName=t),_.w(e,q);e.asyncId&&(b.pendingIdsMap=b.pendingIdsMap||{},b.pendingIdsMap[t]=e.asyncId);return e.templateFn?e.templateFn(q):iw2(e)?zwc():_.w(_.qD,null)};
iw2=function(W){var e;return(e=W.showPlaceholder)!=null?e:Z_().defaultShowPlaceholder};
zwc=function(){var W=Z_().placeholder;return W()};
LR9=function(W){W=_.l(W,_.kb);return(W==null?void 0:W.iconName)&&!(W==null?0:W.title)};
Nxv=function(W,e,t){var b;return _.w(_.qD,null,W==null?void 0:(b=W.actions)==null?void 0:b.map(function(m){return _.w("div",{class:function(){var q={"yt-flexible-actions-view-model-wiz__action":!0};q["yt-flexible-actions-view-model-wiz__action--row-action"]=e;q["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(LR9(m))var Q=!0;else if(Q=_.l(m,_.pU),(Q==null?0:Q.isToggled)&&LR9(Q==null?void 0:Q.toggledButtonViewModel)||(Q==null||!Q.isToggled)&&LR9(Q==null?void 0:Q.defaultButtonViewModel))Q=
!0;else{var X;Q=((X=_.l(m,Edz))==null?0:X.playlistId)?!0:!1}q=(q["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Q,q["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=t,q);return _.DT(q)}},AWD([m],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!e}}))}))};
dlZ=function(W){var e=W.layout===1,t,b=((t=W.data)==null?void 0:t.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";t={};b=(t["yt-flexible-actions-view-model-wiz"]=!0,t["yt-flexible-actions-view-model-wiz--inline"]=!e,t["yt-flexible-actions-view-model-wiz--scrollable"]=b,t);var m,q;return _.w("yt-flexible-actions-view-model",{class:_.DT(W.className,b)},(m=W.data)==null?void 0:(q=m.actionsRows)==null?void 0:q.map(function(Q){if(e){var X;return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Nxv(Q,e,!((X=W.data)==null||!X.respectActionIntrinsicWidth)))}return Nxv(Q,e,!1)}))};
Wdz=function(W,e){e=e===void 0?{shouldPersist:!0}:e;return{useUpdatableData:function(t,b){var m=[],q=_.R(_.ZT(function(){var u=t();if(b!=null&&b.length&&m){var c=m.length>0;for(var v=!1,D=0;D<b.length;D++){var B=b[D]();c&&B!==m[D]&&(v=!0);m[D]=B}c=v}else c=!1;if(c)_.yv.remove(I());else if(c=_.yv.get(I()))return c;return u})),Q=q.next().value,X=q.next().value,I=_.SC(function(){return W(t())},void 0,"VFraLb");
_.nh(function(){if(I()!=null){jX.set(I(),[Q,X,!1]);var u=I();_.fh(function(){jX.delete(u)})}},"Fdafud");
return[Q,function(u){X(u);e.shouldPersist&&_.yv.set(I(),u)}]},
getData:function(t){var b;return(b=jX.get(W(t)))==null?void 0:b[0]()},
updateData:function(t,b){t=W(t);var m=jX.get(t);if(!m)return!1;var q=_.R(m);m=q.next().value;q=q.next().value;b=b(m());q(b);e.shouldPersist&&_.yv.set(t,b);return!0},
useUpdatableDataIdom:function(t,b){var m=W(t),q=_.yv.get(m),Q=_.R(Gz(q!=null?q:t)),X=Q.next().value,I=Q.next().value,u=gM(q!=null?q:t);Ct(function(){if(m!=null)return jX.set(m,[function(){return u.value},
function(c){I(c);u.value=c},
jX.has(m)]),_.Tm.addJob(function(){_.CU(_.Tm,function(){var c=jX.get(m);c&&(c[2]=!1)},0)},8),function(){var c;
((c=jX.get(m))==null?0:c[2])||jX.delete(m)}},[m]);
Ct(function(){X!==t&&(I(t),u.value=t)},b?[].concat(_.kP(b),[m]):[m]);
return[X,I]}}};
eRZ=function(W){var e=_.R(_.up(!0,void 0,"bKtO6d")),t=e.next().value;e.next();return function(){var b=vO(W.children());return _.w(_.G,{cond:t,then:function(){return b},
else:W.fallback})}()};
_.nU=function(W){var e=ty9(W),t=e.data,b=e.mapping,m=e.wrapper;e=e.pendingFallback;var q=function(){return bbZ(_.TQ(t))},Q=function(){var X=q(),I=[];
X=_.R(X);for(var u=X.next();!u.done;u=X.next()){var c=void 0;u=u.value;var v=void 0;for(c in u)if(!(!u).hasOwnProperty(c)){v=c;break}(c=v)&&I.push(c)}return I};
return W.data?_.w(eRZ,{fallback:e},function(){return _.w(_.lV,{each:Q},function(X,I){var u=m?function(v){return m(function(){return b[X](v,I)},c,I)}:function(v){return b[X](v,I)};
u.debugName||(u.debugName=String(X));if(!b[String(X)])return document.createComment("");var c=m1G(q,X,I);return _.w(u,{data:c})})}):_.w(_.qD,null)};
ty9=function(W){var e=W.targetId||r5v(W.children);if(!W.data||!e||_.S("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var t="stamper-"+q9g++,b=function(){var X;return(X=typeof W.targetId==="function"?W.targetId(t):W.targetId)!=null?X:t};
e=_.R(RRG(function(){var X=bbZ(W.data());X.targetId=b;return X})).next().value;
var m=Object.assign({},Z_().replaceableMapping,W.children);if(W.replacementWrapper){var q=m.notificationTextRenderer,Q=m.notificationMultiActionRenderer;q&&(m.notificationTextRenderer=function(X,I){return W.replacementWrapper(q({data:X.data},I))});
Q&&(m.notificationMultiActionRenderer=function(X,I){return W.replacementWrapper(Q({data:X.data},I))})}return Object.assign({},W,{data:e,
mapping:m,wrapper:function(X,I,u){return lvL({targetId:b,stamperIndex:u},X)}})};
m1G=function(W,e,t){var b;return _.SC(function(){var m=W()[t()];if(m)b=m[e];else return _.JC(new _.o_("Stamper failed to find "+String(e)+" at index "+t()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),b;return m[e]},void 0,"k97xP")};
r5v=function(W){W=_.R(Object.keys(W));for(var e=W.next();!e.done;e=W.next())if(e=e.value,Qs2.includes(e)||FdZ.includes(e)||Xjv.includes(e))return!0;return!1};
bbZ=function(W){return W?Array.isArray(W)?W:[W]:[]};
IlK=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
alv=function(W){var e=_.l(W.data.toggleButtonViewModel,_.pU),t,b=(t=W.data.dislikeEntityKey)!=null?t:"",m=Rws(sZ,[b]);e=Object.assign({},e,{isToggled:m?m.likeStatus==="DISLIKE":e.isToggled});return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.fU,{data:e,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(q){m&&q!==(m.likeStatus==="DISLIKE")&&m.key&&_.Uz(_.gN("likeStatusEntity",m.key,{likeStatus:q?"DISLIKE":"INDIFFERENT",hadUserInteraction:q}))}}))};
uO9=function(W){var e=_.S("web_supports_animations_api"),t=_.l(W.data.toggleButtonViewModel,_.pU),b,m,q,Q,X=_.R(Gz({numberText:(Q=(b=W.likeCountEntity)==null?void 0:(m=b.likeCountIfIndifferent)==null?void 0:m.content)!=null?Q:"",numberValue:Number((q=W.likeCountEntity)==null?void 0:q.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),I=X.next().value,u=X.next().value,c,v,D,B;b=_.R(Gz({numberText:(B=(c=W.likeCountEntity)==null?void 0:(v=c.likeCountIfLiked)==null?void 0:v.content)!=null?
B:"",numberValue:Number((D=W.likeCountEntity)==null?void 0:D.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));c=b.next().value;var k=b.next().value;v=_.R(Gz());var n=v.next().value,f=v.next().value,M;v=(M=W.data.likeStatusEntityKey)!=null?M:"";var K,U;M=(U=(K=W.likeCountEntity)==null?void 0:K.key)!=null?U:"";var V=Rws(sZ,[v]),L=Rws(WNG,[M]);K=IoS(function(){return(V==null?void 0:V.likeStatus)==="LIKE"},[V]);
Ct(function(){var E,RR=L&&((E=L.likeCountIfIndifferent)==null?void 0:E.content)!==I.numberText;if(!n&&RR){var uv,GS;u({numberText:(GS=L==null?void 0:(uv=L.likeCountIfIndifferent)==null?void 0:uv.content)!=null?GS:"",numberValue:Number(L==null?void 0:L.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var k9,CQ;k({numberText:(CQ=L==null?void 0:(k9=L.likeCountIfLiked)==null?void 0:k9.content)!=null?CQ:"",numberValue:Number(L==null?void 0:L.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[L]);
t=Object.assign({},t,{isToggled:K});e=e&&W.likeCountEntity;return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.fU,{data:t,buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:e?I:void 0,animatedTextPropsToggled:e?c:void 0,onToggle:function(E){wjc(E,V,n,f)},
style:function(){return W.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
wjc=function(W,e,t,b){t&&_.Tm.cancelJob(t);t=_.Tm.addLowPriorityJob(function(){b(void 0)},5E3);
b(t);e&&W!==(e.likeStatus==="LIKE")&&e.key&&_.Uz(_.SX("likeStatusEntity",e.key,{key:e.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
c5Z=function(W,e,t,b){t&&_.Tm.cancelJob(t);t=_.Tm.addLowPriorityJob(function(){b(void 0)},5E3);
b(t);e&&W!==(e.likeStatus==="LIKE")&&e.key&&_.Uz(_.SX("likeStatusEntity",e.key,{key:e.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
D1Q=function(W){var e,t=_.l((e=W.data)==null?void 0:e.likeButtonViewModel,_.Tz),b;e=_.l((b=W.data)==null?void 0:b.dislikeButtonViewModel,_.Jv);var m,q=(m=Rws(sZ,[(t==null?void 0:t.likeStatusEntityKey)||""]))!=null?m:t==null?void 0:t.likeStatusEntity;b=IoS(function(){var Q=W.data,X;Q=(Q==null?void 0:(X=Q.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(q==null?void 0:q.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},[W.data,
q]);return _.w("segmented-like-dislike-button-view-model",{class:_.DT(W.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.w(xb,{settings:b},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},t?_.w(vsK,{data:t,likeCountEntity:W.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,e?_.w(GBS,{data:e,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
S9S=function(W,e){var t=E6.get(W)||{layerNode:e};t.layerNode=e;gcQ(W,t);W.getScreenLayer=function(){return OQ(t.layerNode)}};
B19=function(W){var e;W=W.parentNode;for(var t;W&&((e=E6.get(W))==null||!e.isRenderer)&&!((t=W.polymerController)!=null?t:W).isRenderer_;)W=W.parentNode||W.host;if(e=W)return E6.get(e)};
osz=function(W){if(W){E6.delete(W);var e=_.ee().resolve(WT);nRQ(W,e)}};
ZbD=function(W,e,t){if(t===void 0?0:t){if(t=W.getAttribute("client-ve-type"),e.data&&!e.disableReactiveLogging||t)_.JO(function(){llG(W,_.TQ(e.data))}),_.fh(function(){return void osz(W)})}else typeof e.data!=="function"&&llG(W,e.data)};
llG=function(W,e){$1R++;kBD(W,e)&&_.Tm.addJob(function(){_.CU(_.Tm,function(){if(kBD(W,e)&&W.ownerDocument.documentElement===document.documentElement&&W){var t;if(W.getAttribute("layer")){var b=t=Number(W.getAttribute("layer")),m=E6.get(W);m?m.layerNode.layer=b:S9S(W,new pjZ(b));(b=B19(W))&&(m=E6.get(W))!=null&&(m.layerNode.parent=b.layerNode)}else if(t=E6.get(W))t=OQ(t.layerNode);else{t=OQ;b=new pjZ;if(m=B19(W))b.parent=m.layerNode;S9S(W,b);t=t(b)}t!=null||(t=0);b=W.getAttribute("client-ve-type");
m=Number(b);var q=!1;b=!1;var Q=E6.get(W),X;if((X=Q)&&!(X=Q[y5Q]!==e)&&(X=m)){var I;X=((I=E6.get(W))==null?void 0:I.clientVeType)===void 0}X&&(Q[y5Q]=e,q=b=Q.isRenderer=!0);E6.has(W)&&(E6.get(W).clientVeType=m);W.visualElement&&(b=!0);if(_.S("wiz_next_ld_fix_client_ve_spec")){var u;I=((u=_.l(e==null?void 0:e.rendererContext,_.Bg))==null?void 0:u.loggingDirectives)||(e==null?void 0:e.loggingDirectives)}else I=e==null?void 0:e.loggingDirectives;I&&I.clientVeSpec&&(u=jsZ(_.Gf(),W),u=_.CdK(_.Sg(),I,u||
void 0,t))&&(W.visualElement=u);!W.visualElement&&m&&q&&(W.veType=m,u=void 0,_.S("wiz_next_client_ve_parent_fix")&&(u=jsZ(_.Gf(),W)),u=_.Dj(_.Sg(),W,u,t),W.visualElement=u);b&&(u=_.ee().resolve(WT),Jbv(W,{data:e,observer:u,layer:t,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
kBD=function(W,e){return(e==null?0:e.trackingParams)||(e==null?0:e.loggingDirectives)||_.l(e==null?void 0:e.rendererContext,_.Bg)||W.getAttribute("client-ve-type")?!0:!1};
flK=function(W){return _.S("cow_logging_in_component_wrapper")?function(e){ZbD(e,W,!0)}:nsS};
nsS=function(){};
_.gs2=function(W,e){return _.I1(W.entities,"accountLinkStatusEntity",e)};
T1Z=function(W,e){return _.I1(W.entities,"hatsSurveyEntity",e)};
J5S=function(W,e){return _.I1(W.entities,"hatsSurveyStateEntity",e)};
x1G=function(W,e){return _.I1(W.entities,"quantityIncrementerEntity",e)};
Hb2=function(W){var e=W.data;var t=W.className===void 0?"":W.className;var b=W.setMinWidth;W=W.forceIconOnly;var m=_.zT("account-link-button-view-model",flK({data:e}));b=b?"ytwAccountLinkButtonViewModelHostMinWidth":"";var q=_.D_(_.gs2,function(){var v;return(v=_.TQ(e).accountLinkStatusEntityKey)!=null?v:""}),Q=_.D_(_.gs2,function(){var v;
return(v=_.TQ(e).accountLinkStatusSecondaryEntityKey)!=null?v:""}),X=function(){if(!_.S("web_account_link_secondary_killswitch")){var v,D;
return((v=q())==null?void 0:v.linked)||((D=Q())==null?void 0:D.linked)}var B;return(B=q())==null?void 0:B.linked};
_.nh(function(){var v=q();if(v){var D=Obg(new Myv,ssR(new hRK,!!v.linked));_.Iv().then(function(B){B&&(B.setAccountLinkState(_.eK(D.JSC$10122_serializeBinary(),4)),B.updateAccountLinkingConfig(!!v.linked))})}},"lLLHt");
var I=function(){return _.l(_.TQ(e).toggleButtonViewModel,_.pU)};
_.YM("yt-signal-action-show-account-link-dialog",function(){if(I()){var v=X()?I().toggledButtonViewModel:I().defaultButtonViewModel;v=_.l(v,_.kb);var D;if((D=q())==null?0:D.isWarning){D=_.l(_.TQ(e).warningButtonViewModel,_.kb);if(!D){_.Kt(Error("Ah"));return}v=D}var B;(D=_.Mk((B=v)==null?void 0:B.onTap))&&_.uc([D],m.value)}else _.Kt(Error("Bh"))});
var u=function(){var v=I();return Object.assign({},v,{isToggled:X()})},c=W?{iconPosition:"icon-only"}:{};
return _.w("account-link-button-view-model",{class:_.ve("ytwAccountLinkButtonViewModelHost",function(){return _.TQ(t)},b),
el:m,"button-renderer":!0},_.w("div",null,_.w(_.G,{cond:function(){var v;if((v=q())==null?0:v.isWarning)return(v=_.l(_.TQ(e).warningButtonViewModel,_.kb))||_.Kt(Error("Ah")),v},
then:function(v){return _.w(_.MV,{data:v,buttonOverrides:c})},
else:function(){return _.w(_.fU,{data:u,buttonShapeOverrides:c})}})))};
Kd9=function(W){switch(W){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 7;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 8;case "BADGE_STYLE_TYPE_FEATURED":return 4;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 18;default:return 0}};
PdZ=function(W){switch(W){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}};
VyG=function(W){switch(W){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--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Y92=function(W){var e=_.mn("web_generic_client_event_wait_period ",0);e||(e=3E5);var t=ibG.get(W);!_.S("enable_web_client_experiment_event_timeout_killswitch")&&t&&(0,_.eJ)()-t<e||(ibG.set(W,(0,_.eJ)()),_.nJ("genericClientExperimentEvent",{eventType:W}))};
zR9=function(W){switch(W){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""}};
U1s=function(W){if(!W)return"";var e,t=(e=_.ee().resolve(_.Wi(_.zf)))==null?void 0:e(),b;if(!t&&((b=W.vibrantColorPalette)==null?0:b.iconInactiveColor))return Hw(W.vibrantColorPalette.iconInactiveColor,"1");var m;return t&&((m=W.darkColorPalette)==null?0:m.iconInactiveColor)?Hw(W.darkColorPalette.iconInactiveColor,"1"):W.color?Hw(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.sQ=function(W,e){if(!W.includes("DATE_PLACEHOLDER"))return W;var t=new Date(0);t.setUTCSeconds(e);return W.replace("DATE_PLACEHOLDER",Ldv(t))};
_.hv=function(W){return W!=null&&W.watch?W.watch.isTheaterMode:!1};
_.HS=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.KU=function(W){W=_.EsZ(W);return _.S("web_watch_enable_single_column_grid_view")?W:!1};
_.EsZ=function(W){return W.watch.isWatchNarrowWidth};
A5v=function(W,e,t){return function(b){var m=W.command;m&&(Ca(m,{form:{element:t}}),e([m],b))}};
d19=function(W,e,t,b,m){return function(q){var Q=N1S(W,e);Q&&Ca(Q,{form:{element:t},commandController:b});m&&q.stopPropagation()}};
N1S=function(W,e){if(W.signInEndpoint&&!_.S("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(e){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
WAS=function(W,e){var t,b,m,q;e=e&&((t=W.unsubscribeAccessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)||((m=W.subscribeAccessibility)==null?void 0:(q=m.accessibilityData)==null?void 0:q.label);return W.longSubscriberCountText?[e,_.Ub(W.longSubscriberCountText)].filter(function(Q){return Q}).join(" "):e};
PS=function(W,e){return e||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
ehs=function(W,e){var t;switch((t=W.style)==null?void 0:t.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:PS(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:PS(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:PS(W,!0)};case "OVERLAY":return e?{style:"overlay",type:"tonal",state:PS(W)}:{style:"overlay",type:"filled",state:PS(W)};default:return e?{style:"mono",type:"tonal",state:PS(W)}:{style:"mono",type:"filled",state:PS(W)}}};
t72=function(W){switch(W){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
biG=function(W){switch(W){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
mTR=function(W,e){var t=W.map(function(b){return b.toString()});
return _.Be(function(b){if(t.includes(b.key)){e&&b.preventDefault();var m;(m=b.currentTarget)==null||m.click()}})};
_.rRz=function(){return mTR(["Enter"])};
_.qMc=function(){return mTR(["Enter"," "],!0)};
_.Vv=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var e=[],t=W.target;t;)e.push(t),t=t.parentNode;e.push(window);W.__composedPath=e}return W.__composedPath};
_.iJ=function(W,e,t){W=_.R(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;if(b===e)break;for(var m=_.R(t),q=m.next();!q.done;q=m.next())if(q=q.value,b.tagName===q||b.role==="button"&&q==="BUTTON")return!0}return!1};
QKv=function(W,e){var t,b=(t=e.observer)!=null?t:_.ee().resolve(WT);if(W){t=Rhc(W);var m=[];e.showOption&&m.push(b.observe(W,function(){e.visibilityCallback(!0)},e.showOption));
e.hideOption&&m.push(b.observe(W,function(){e.visibilityCallback(!1)},e.hideOption));
e.prescanOption&&e.prescanCallback&&m.push(b.observe(W,function(){e.prescanCallback()},e.prescanOption));
var q;t.visibilityMonitorKeys=((q=t.visibilityMonitorKeys)!=null?q:[]).concat(m)}};
Rhc=function(W){var e;return(e=W.polymerController)!=null?e:W};
_.zz=function(W){return!!_.Yb(W)};
_.IXg=function(W,e){var t=ok9();Ct(function(){var b=W.value;if(b)return FAL(b,e),XrR(b,e,void 0,void 0,void 0,t)},[e])};
_.UQ=function(W,e,t,b,m,q){var Q=ok9();_.nh(function(){var X=W.value;X&&(FAL(X,e(),q),X=XrR(X,e(),t,b,m,Q),_.fh(X))},"GXtnHd")};
FAL=function(W,e,t){var b=aXR(e),m=wr2(e);e=b&&umQ;var q=m&&cRS;(b||m)&&QKv(W,{visibilityCallback:function(Q){var X=_.ee().resolve(_.tQ);Q&&b?X.resolveCommand(b,{form:{element:t?W:void 0},disableClickTracking:!0}):!Q&&m&&X.resolveCommand(m,{form:{element:t?W:void 0},disableClickTracking:!0})},
showOption:e,hideOption:q})};
XrR=function(W,e,t,b,m,q){var Q=new Map;if(e=_.Yb(e)){var X;W=(b==null?void 0:(X=b.onTap)==null?void 0:X.value)||W;t=vHS(e,W,t==null?void 0:t.onTap,m,q);W.addEventListener("click",t);Q.set("click",t)}return function(){for(var I=_.R(Q),u=I.next();!u.done;u=I.next()){var c=_.R(u.value);u=c.next().value;c=c.next().value;W.removeEventListener(u,c)}}};
_.Yb=function(W){var e;return(W=(e=_.l(W,G8D))==null?void 0:e.onTap)&&_.Mk(W)};
aXR=function(W){var e;return(W=(e=_.l(W,G8D))==null?void 0:e.onVisible)&&_.Mk(W)};
wr2=function(W){var e;return(W=(e=_.l(W,G8D))==null?void 0:e.onHidden)&&_.Mk(W)};
vHS=function(W,e,t,b,m){var q=function(X){_.ee().resolve(_.tQ).resolveCommand(W,X)},Q=function(X){b&&_.iJ(_.Vv(X),e,b)||q(X.target?{form:{element:X.target,
sourceData:W,mutationContext:m}}:void 0)};
t&&(Q=function(X){t(X,q)});
return Q};
DT9=function(W){switch(W){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}};
SM2=function(W){var e=W.numAvatarsInCluster;switch(W.clusterSize){case "small":return e===2?22:18;case "40":return e===2?24:22;default:return e===2?24:20}};
BHD=function(W,e){return function(t){var b=Object.keys(e);_.nh(function(){if(W()){for(var m=_.R(b),q=m.next();!q.done;q=m.next())q=q.value,t.addEventListener(q,e[q]);_.fh(function(){for(var Q=_.R(b),X=Q.next();!X.done;X=Q.next())X=X.value,t.removeEventListener(X,e[X])})}},"bXZGfe")}};
oHZ=function(W){switch(SM2(W)){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""}};
lXG=function(W){switch(W){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""}};
Ziv=function(W){switch(SM2(W)){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""}};
$TS=function(W){switch(W){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""}};
k8s=function(W){switch(W){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}};
prG=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
yRg=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
CuL=function(W){return{size:jKg(W.data.avatarImageSize),onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName,clusterLayoutConfig:W.clusterLayoutConfig}};
jKg=function(W){switch(W){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"}};
nHv=function(W){switch(W){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}};
fX9=function(W){switch(W){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""}};
gHQ=function(W){var e=W.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",t,b=W.avatars&&W.avatars.length>0?(t=_.l(W.avatars[0],_.LU))==null?void 0:t.avatarImageSize:"AVATAR_SIZE_UNKNOWN";t=nHv(b)||0;if(e){var m,q=(m=W.avatarClusterSize)!=null?m:"AVATAR_SIZE_M";e=nHv(q);var Q,X,I=Math.min((X=(Q=W.avatars)==null?void 0:Q.length)!=null?X:0,4),u;return{avatars:((u=W.avatars)==null?void 0:u.slice(0,4))||[],avatarSizeInPx:t,avatarStackStyle:{width:e+"px",height:e+"px",position:"relative"},avatarStyle:function(v){var D=
SM2({clusterSize:jKg(q),numAvatarsInCluster:I,avatarIndex:v});var B=nHv(q);I===3&&v===2?(B=(B-D)/2,B=(_.Ot("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*B):B=void 0;return{position:"absolute",top:I===2&&v===1||I===3&&v===2||I===4&&v>=2?"0":void 0,bottom:I===2&&v===0||I>2&&v<2?"0":void 0,left:I===2&&v===1||I>2&&(v===1||v===3)?"0":void 0,right:I<=3&&v===0||I===4&&(v===0||v===2)?"0":void 0,transform:B?"translateX("+B+"px)":void 0,width:D+"px",height:D+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(v){return{clusterSize:jKg(W.avatarClusterSize),numAvatarsInCluster:I,avatarIndex:v}},
avatarButtonCustomClassName:void 0}}var c;return{avatars:((c=W.avatars)==null?void 0:c.slice())||[],avatarSizeInPx:t,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:fX9(b),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
THg=function(W,e,t){return function(){Ca(W,{form:{element:e},commandController:t})}};
JRg=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
xTG=function(W){switch(W){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"}};
Oiv=function(W){var e=W.data;W=W.hidden===void 0?!1:W.hidden;var t={};W={class:_.DT("yt-page-indicator-view-model",(t["yt-page-indicator-view-model__indicator--hidden"]=!e.indicatorCount,t)),hidden:W};if(e.indicatorCount){t=[];for(var b=0;b<e.indicatorCount;b++){var m={};m=_.DT("yt-page-indicator-view-model__indicator",(m["yt-page-indicator-view-model__indicator--selected"]=e.selectedIndex===b,m));t.push(_.w("div",{class:m}))}e=_.w(_.qD,null,t)}else e=_.w(_.qD,null);return _.w("yt-page-indicator-view-model",
W,e)};
sKz=function(W){W&&(M7Q(W)?delete W.inlinePlayerData:"inlinePlaybackEndpoint"in W&&delete W.inlinePlaybackEndpoint)};
hhS=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var e,t,b;return((e=W.title)==null?void 0:(t=e.accessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)||""}if("accessibility"in W){var m,q;return((m=W.accessibility)==null?void 0:(q=m.accessibilityData)==null?void 0:q.label)||""}return""};
M7Q=function(W){return"inlinePlayerData"in W};
EQ=function(W){return new HiL(W)};
_.KAs=function(W,e,t,b,m,q){var Q=function(u){u.preventDefault()},X=function(){var u=W.value;
if(u)return(u._data=e)?(u.addEventListener("touchstart",$eG,{passive:!0}),u.addEventListener("click",pWc),e.clickTrackingParams&&(u.params={itct:e.clickTrackingParams}),y1D(u,e),yE(u,jJZ(e)||"")):u.addEventListener("click",Q),function(){e?(u.removeEventListener("touchstart",$eG,{passive:!0}),u.removeEventListener("click",pWc)):u.removeEventListener("click",Q)}},I=function(){var u=W.value;
if(u){var c=_.h_({innertubeCommand:e,elementsCommand:t,forceNewState:b,stopPropagation:q});if(c)return u._data=c._data,c["aria-haspopup$"]&&u.setAttribute("aria-haspopup",c["aria-haspopup$"].toString()),c["force-new-state$"]&&u.setAttribute("force-new-state",c["force-new-state$"].toString()),c.href$&&yE(u,c.href$),c.rel$&&(u.rel=c.rel$),c.role$&&u.setAttribute("role",c.role$),c.target$&&(u.target=c.target$),u.params=c.params,c.onclick&&u.addEventListener("click",c.onclick),c.onpointerdown&&u.addEventListener("onpointerdown",
c.onpointerdown),function(){c.onclick&&u.removeEventListener("click",c.onclick);c.onpointerdown&&u.removeEventListener("onpointerdown",c.onpointerdown)}}};
Ct(m?I:X,[e,t])};
PuR=function(W){var e=W.children;var t=W.className;var b=W.dir;var m=W.style;var q=W.role;var Q=W.ariaSelected;var X=W.ariaLabel;var I=W.ariaHidden;var u=W.ariaLabelledby;var c=W.ariaDescribedby;var v=W.command;var D=W.elementsCommand;var B=W.forceNewState;var k=W.isPlaceholder;var n=W.tabIdentifier;var f=W.target;var M=W.tabIndex;var K=W.useATagConfig;var U=W.stopPropagation;W=_.zT("a");_.KAs(W,v,D,B,K,U);return _.w("a",{el:W,"on:click":_.Be(function(){return U===!1}),
class:t,style:m,dir:b,role:q?q:v?void 0:"group","aria-hidden":I?!0:void 0,"aria-label":X,"aria-labelledby":u,"aria-describedby":c,"aria-selected":Q,tabindex:M!==void 0?M:void 0,target:f,"tab-identifier":n,"force-new-state":B?!0:void 0,"is-placeholder":k?!0:void 0},e)};
V72=function(W){var e=W.data;W=_.Be(function(){var m=_.l(e.onTap,_.OD);m&&_.ee().resolve(_.tQ).resolveCommand(m);return!1});
var t={sources:[{url:e.thumbnailUrl,width:120,height:90}]},b=e.rating&&e.ratingA11yLabel&&e.reviewsCount&&e.reviewsCountA11yLabel;return _.w("place-data-view-model",null,e.placeName&&e.placeCategory?_.w("div",{class:"yt-spec-place-data-view-model-shape","on:click":W},_.w(_.A_,{data:t,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.w(PuR,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.l(e.onTap,_.OD),forceNewState:!0,useATagConfig:!0},
_.w("h3",{class:"yt-spec-place-data-view-model-shape__name",title:e.placeName},e.placeName)),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata"},b?_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.w("span",{class:"score",title:e.ratingA11yLabel},e.rating),_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.w(_.kD,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.w("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:e.reviewsCountA11yLabel},e.reviewsCount)):_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.w("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.w("span",{class:"category",title:e.placeCategory},e.placeCategory)))):null)};
iiv=function(W){return function(e){W&&(W.thumbnailElRef=e.thumbnailElRef,W.thumbnail=e.thumbnail,W.thumbnailOverlays=e.thumbnailOverlays,W.thumbnailSize=e.thumbnailSize)}};
YMv=function(W){var e;return(e=W.sharedUi)==null?void 0:e.animatedThumbnailEnabled};
zhz=function(W){var e;return(e=W.sharedUi)==null?void 0:e.inlinePreviewEnabled};
_.UTL=function(W){var e;return(e=W.sharedUi)==null?void 0:e.currentPageSubType};
LAZ=function(W){switch(W){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"}};
NHR=function(W){var e=_.R(_.up(!1,void 0,"RIOonf")),t=e.next().value,b=e.next().value;_.nt(function(){var m=W==null?void 0:W();if(m){var q=_.ee().resolve(_.Wi(EHD));if(q){var Q={triggeringElement:m,onDwellTriggeredFn:function(){b(!0)},
onDwellEndFn:function(){b(!1)}};
q.registerElement(Q);_.fh(function(){ARc(q,Q)})}}});
return t};
dTv=function(W,e,t){t?t(e):_.K4(e,W.target?{form:{element:W.target}}:void 0)};
_.Av=function(W,e,t,b){_.nh(function(){var m=W.value;if(m){var q=new Map,Q,X=(Q=e())==null?void 0:Q.onTap;X&&(Q=function(I){a:{var u=I.composedPath();u=_.R(u);for(var c=u.next();!c.done;c=u.next()){c=c.value;if(c===m)break;if(c.className.indexOf("HostIsClickableAdComponent")>=0||c.tagName==="A".toString()||c.tagName==="BUTTON".toString()){u=!0;break a}}u=!1}u||dTv(I,X,t)},(b==null?0:b())||_.S("enable_web_home_top_landscape_image_layout_level_click")?(m.addEventListener("tap",Q),q.set("tap",Q)):(m.addEventListener("click",
Q),q.set("click",Q)));
_.fh(function(){for(var I=_.R(q),u=I.next();!u.done;u=I.next()){var c=_.R(u.value);u=c.next().value;c=c.next().value;m.removeEventListener(u,c)}})}},"g9MHN")};
W0g=function(W,e){var t,b=(t=W.interaction)==null?void 0:t.onTap;if(W=_.h_({elementsCommand:b,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(m){BZD(m)&&(m.preventDefault(),b&&dTv(m,b,e))},Hg(W)?W:void 0};
eMG=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
t9D=function(W){switch(W){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"}};
bWZ=function(W){switch(W){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"}};
_.mFG=function(W){return _.S("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.mn("rich_grid_dynamic_offset_anchor_width",1300))/100*_.mn("rich_grid_dynamic_offset_offset_per_100",10)),_.mn("rich_grid_dynamic_offset_lower_bound",-60)):0};
r49=function(W,e){switch(e){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
q_9=function(W){var e=W.originalContainerWidth;var t=W.sizing;var b=W.standardUnit;if(W.isCompactList&&e<528)return 1;switch(t){case "STANDARD":return b;case "COMPACT":return b+1;case "EXTRA_COMPACT":return _.S("web_responsive_extra_compact_2x")?b*2:_.S("web_responsive_current")?b===1?2:b%2===0?b/2*3:b+2:b<4?b*2:Math.ceil(b*3/2);case "MINI":return b>1?b*2:3;default:return b}};
Q62=function(W){var e=W.containerWidth;var t=W.peek;var b=W.gutter;var m=W.numItems;W=W.ignoreMaxWidthLimit;e=t?Math.max((e-t-b*m)/m,0):Math.max((e-b*(m-1))/m,0);return W?e:Math.min(e,RMS)};
_.NV=function(W){var e=W.containerWidth;var t=W.hasPeek;var b=W.sizing;var m=W.marginSettings;var q=W.isCompactList;var Q=W.enableFullBleedForSingleCol;var X=W.standardUnitMinWidth;b=b||"STANDARD";t=!!t;W=e>=528?16:8;var I=t?e>=528?48:24:0;m=r49(e,m);var u=Math.max(e-m*2,0);X=_.S("kevlar_disable_min_width_override")?void 0:X;X=Math.min(Math.max(Math.floor((u-I+W)/((X!=null?X:F0c)+_.mFG(e)+W)),1),6);var c=(Q=!!Q&&X===1)||X===1&&b!=="STANDARD";t=t||c?u:Math.min(u,(RMS+W)*X-W);b=q_9({originalContainerWidth:e,
sizing:b,standardUnit:X,isCompactList:q});return{itemWidth:Q62({containerWidth:t,peek:I,gutter:W,numItems:b,ignoreMaxWidthLimit:c}),gutter:W,maxContainerWidth:t,numItems:b,margin:Q?0:m,contentMargin:r49(e,1),typographyBump:Q62({containerWidth:t,peek:I,gutter:W,numItems:X,ignoreMaxWidthLimit:c})>400&&!(q&&e<528),standardUnit:X}};
XpD=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Ik9=function(W){if(W){var e;if((e=W.responsiveContainerConfiguration)==null?0:e.responsiveSize)return XpD(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
akG=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
vjL=function(W,e,t,b,m,q,Q,X){a:switch(W){case 4:q=!!(q&&q<100);break a;default:q=!1}a:switch(W){case 3:case 4:var I=b==="LOCKUP_CONTENT_TYPE_CHANNEL"||b==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:I=!1}a:switch(W){case 5:var u=!0;break a;case 4:u=!1;break a;default:u=!1}a:if(W===4&&b==="LOCKUP_CONTENT_TYPE_SOURCE")var c=1;else switch(W){case 3:c=1;break a;default:c=0}return{isOverlay:u,isCard:wpg(b,Q),sizing:e!=null?e:"STANDARD",typographyBump:t!=null?t:!1,isTiny:q,isCentered:I,isCollection:uF9(b),
arrangement:c,addMarginForFullbleed:W===1&&b!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:c4G(b,m,X),disableRounding:W===5||wpg(b,Q)||W===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:uF9(b)?2:0,useLegacyTypography:!(X==null||!X.useLegacyTypography),useRichGridLegacyTypography:!(X==null||!X.useRichGridLegacyTypography)&&!_.S("web_enable_typography_bump")}};
uF9=function(W){switch(W){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}};
wpg=function(W,e){if(e&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
c4G=function(W,e,t){if(e&&(t==null||!t.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
G5D=function(W){switch(W){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"}};
DFv=function(W){switch(W){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
S_Z=function(W){switch(W){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}};
_.dN=function(W){if(W){var e;return((e=_.ee().resolve(_.Wi(_.zf)))==null?0:e())?W.darkThemeImage:W.image}};
lk9=function(W,e,t,b,m,q){if(m&&q&&e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:m,height:q};if(!t)return{};m=t.size;t=t.allowFullWidth;if(e==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&t)return{fullWidth:!0};if(m===void 0)return{};switch(W){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:m,height:m};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:m,height:1/BhD*m};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:m*
ojL,height:m};default:return(b==null?0:b.height)&&(b==null?0:b.width)?b.width/b.height>1?{maxWidth:m*ojL}:{maxWidth:m}:{maxWidth:m}}};
ZW2=function(W){var e;return W&&((e=_.dN(W.themedImage))!=null?e:W.image)};
$F9=function(W){var e;return W==null?void 0:(e=W.sources)==null?void 0:e[0]};
pp2=function(W,e){var t,b;return!!((W==null?0:(t=W.byline)==null?0:t.hideAvatar)&&((b=_.l(e,k5Z))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
y49=function(W,e){var t,b;return!!((W==null?0:(t=W.byline)==null?0:t.addPadding)&&((b=_.l(e,k5Z))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
j6v=function(W,e,t,b){var m={},q=(m["yt-content-metadata-view-model-wiz__delimiter"]=!0,m["yt-content-metadata-view-model-wiz__delimiter--standalone"]=b,m);return d$(e-1>t,function(){return _.w("span",{class:_.DT(q),"aria-hidden":!0},W)})};
njg=function(W,e){return _.w(_.WL,{text:W.text,linkInheritColor:!0,className:C2g(e),userInput:!0})};
gjg=function(W){var e=W.metadataPart;var t=W.isOverlay;var b=W.useMediumText;var m=W.hideAvatar;var q=1;e.maxLines!==void 0&&(q=e.maxLines);return _.w(_.qD,null,d$(e.avatarStack,function(){return fkL(e.avatarStack,{avatarStackViewModel:{isOverlay:t,useMediumText:b,hideAvatar:m}})}),d$(e.text,function(){var Q=q;
return _.w(_.qD,null,e.tooltip?_.w("span",{title:e.tooltip,role:"tooltip"},njg(e,Q)):njg(e,Q))}))};
C2g=function(W){switch(W){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"}};
Thz=function(W){var e=W.metadataRow;var t=W.isInline;var b=W.delimiter;var m=W.isOverlay;var q=W.useMediumText;var Q=W.extensions;var X=pp2(Q==null?void 0:Q.lockupMetadata,e);W=y49(Q==null?void 0:Q.lockupMetadata,e);Q=!(!((Q==null?0:Q.lockupMetadata)&&e.badges)||e.metadataParts);var I={};W=(I["yt-content-metadata-view-model-wiz__metadata-row"]=!0,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=t,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
W,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=Q,I);var u,c;return _.w("div",{class:_.DT(W)},(u=e.badges)==null?void 0:u.map(function(v){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},fkL(v))}),(c=e.metadataParts)==null?void 0:c.map(function(v,D){return _.w(_.qD,null,gjg({metadataPart:v,
isOverlay:m,useMediumText:q,hideAvatar:X}),j6v(b,e.metadataParts.length,D,!1))}),d$(e.isSpacerRow&&!t,function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
J4G=function(W){var e=W.className;var t=W.data;var b=W.layout===void 0?0:W.layout;var m=W.isOverlay===void 0?!1:W.isOverlay;var q=W.useMediumText;var Q=W.extensions;W=_.zT("yt-content-metadata-view-model");var X=b===0;b={};b=(b["yt-content-metadata-view-model-wiz"]=!0,b["yt-content-metadata-view-model-wiz--inline"]=X,b["yt-content-metadata-view-model-wiz--tappable"]=_.zz(t.rendererContext),b["yt-content-metadata-view-model-wiz--medium-text"]=q,b);_.IXg(W,t.rendererContext);return _.w("yt-content-metadata-view-model",
{class:_.DT(e,b),el:W},d$(t.metadataRows,function(){return t.metadataRows.map(function(I,u){return _.w(_.qD,null,Thz({metadataRow:I,isInline:X,delimiter:t.delimiter,isOverlay:m,useMediumText:q,extensions:Q}),d$(X&&!I.isSpacerRow,function(){return j6v(t.delimiter,t.metadataRows.length,u,!0)}))})}))};
xFv=function(W){switch(W){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"}};
OWQ=function(W){switch(W.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"}}};
M9S=function(W){var e=_.UTL(_.Yt().getState())||"";return W?W+e:""};
s69=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
HWQ=function(W){var e=_.R(_.up(void 0,void 0,"BIquNb")),t=e.next().value,b=e.next().value,m=_.R(_.up(void 0,void 0,"eR0GH"));e=m.next().value;var q=m.next().value;m=_.R(_.up(void 0,void 0,"UmkP0"));var Q=m.next().value,X=m.next().value;return{touchFeedbackEvents:{pointerUpEvent:t,pointerDownEvent:e,pointerLeaveEvent:Q},touchFeedbackOnPointerUp:_.Be(function(I){if(hMs(_.Vv(I)))return!1;b(I);q(void 0);X(void 0);return!0}),
touchFeedbackOnPointerDown:_.Be(function(I){W==null||W(I);if(hMs(_.Vv(I)))return!1;q(I);b(void 0);X(void 0);return!0}),
touchFeedbackOnPointerLeave:_.Be(function(I){hMs(_.Vv(I))||(X(I),q(void 0),b(void 0))})}};
hMs=function(W){var e=["BUTTON".toString()];W=_.R(W);for(var t=W.next();!t.done;t=W.next()){t=t.value;for(var b=_.R(e),m=b.next();!m.done;m=b.next())if(t.tagName===m.value)return!0}return!1};
K0G=function(W){switch(W){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"}};
P2Q=function(W){return W.scrollHeight-W.offsetHeight>1};
V9z=function(W,e){var t;return Y5(W,((t=W.content)==null?void 0:t.length)||0,!e)};
iW2=function(W,e){e=V9z(W,e);var t,b;return(((t=W.content)==null?void 0:t.length)||0)>(((b=e.content)==null?void 0:b.length)||0)};
UFD=function(W,e,t,b,m,q){if(!e||Y_G){var Q;return Y5(W,((Q=W.content)==null?void 0:Q.length)||0,!0)}e=b.value;if(!t.value||!e||!W.content)return W;t=0;b=W.content.length;Q=0;zM9||(zM9=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var X=zM9;for(m=m*q*X;t<=b;)q=Math.floor(t+(b-t)/2),X=Y5(W,q)||W,e.firstChild&&(e.firstChild.textContent=X.content),e.scrollHeight>m?b=q-1:(Q=q,t=q+1);return Y5(W,Q)};
L0z=function(W,e){var t,b;return(((t=W.content)==null?void 0:t.length)||0)>(((b=e.content)==null?void 0:b.length)||0)};
EjZ=function(W){var e=W.isTruncated;var t=W.isAbsoluteButton;var b=W.lineHeight;var m=W.contentRef.value,q=W.placeholderTruncationTextRef.value,Q=W.truncationTextRef.value;W=W.appDirection==="rtl";if(m&&q){var X=q.offsetLeft;W&&(X=m.offsetWidth-q.offsetWidth-q.offsetLeft);if(e){e=q.offsetWidth;q=m.offsetWidth;var I=t?q-e-70:X-70;b="linear-gradient(\n      to top, transparent 0%,\n      transparent "+b+"rem,\n      #000 "+b+"rem,\n      #000 100%), linear-gradient(\n      to "+((W?"left":"right")+
",\n      #000 0px,\n      #000 "+I+"px,\n      transparent "+(t?q-e:I+70)+"px)");m.style.setProperty("-webkit-mask-image",b);m.style.setProperty("mask-image",b)}else m.style.setProperty("-webkit-mask-image",""),m.style.setProperty("mask-image","");t?W?(Q.style.setProperty("left","0"),Q.style.setProperty("right","unset")):(Q.style.setProperty("left",""),Q.style.setProperty("right","0")):W?(Q.style.setProperty("left","unset"),Q.style.setProperty("right",X+"px")):(Q.style.setProperty("left",X+"px"),
Q.style.setProperty("right","unset"))}};
A4v=function(W,e,t,b,m,q,Q){var X=_.zT("truncated-text-content"),I=_.zT("truncated-text-content"),u=_.zT("button"),c=_.zT("button"),v=_.zT("button"),D=_.ee().resolve(_.L4),B=_.R(Gz(V9z(W,m))),k=B.next().value,n=B.next().value;B=_.R(Gz(_.S("enable_truncated_text_max_lines")?L0z(W,k):iW2(W,m)));var f=B.next().value,M=B.next().value,K=gM(null);Ct(function(){function U(){if(X.value&&u.value&&v.value)if(_.S("enable_truncated_text_max_lines")){var E=UFD(W,m,X,I,e,t);n(E);b||requestAnimationFrame(function(){if(X.value&&
u.value&&v.value){var RR=P2Q(X.value)||L0z(W,E);M(RR);EjZ({isTruncated:RR,isAbsoluteButton:P2Q(X.value),lineHeight:t,contentRef:X,placeholderTruncationTextRef:u,truncationTextRef:v,appDirection:D})}})}else n(V9z(W,m)),requestAnimationFrame(function(){if(X.value&&u.value&&v.value)if(P2Q(X.value))M(!0),b||EjZ({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:t,contentRef:X,placeholderTruncationTextRef:u,truncationTextRef:v,appDirection:D});else{var RR=iW2(W,m);M(RR);b||EjZ({isTruncated:RR,isAbsoluteButton:!1,lineHeight:t,contentRef:X,placeholderTruncationTextRef:u,truncationTextRef:v,appDirection:D})}})}
var V,L;(V=K.value)==null||(L=V.stop)==null||L.call(V);V=new _.eS(U,17);U();K.value=V},[W.content,
e,t,D,b,q,Q,m]);_.nt(function(){var U=function(){zM9=void 0;var L,E;(L=K.value)==null||(E=L.fire)==null||E.call(L)};
if(window.ResizeObserver){var V=new ResizeObserver(U);V.observe(X.value);return function(){var L,E;(L=K.value)==null||(E=L.stop)==null||E.call(L);V.disconnect()}}window.addEventListener("resize",U);
return function(){var L,E;(L=K.value)==null||(E=L.stop)==null||E.call(L);window.removeEventListener("resize",U)}});
return{isTruncated:f,displayText:k,contentRef:X,hiddenRef:I,placeholderTruncationTextRef:u,hiddenTruncationTextRef:c,truncationTextRef:v}};
Nhg=function(W){return _.w("button",{"aria-disabled":!0,disabled:!0,class:W.className,el:W.elRef,style:"line-height: "+W.lineHeight+"rem;"},_.w(_.WL,{text:W.text}))};
dFK=function(W){var e=W.text;var t=W.alwaysShowTruncationText;var b=W.truncationText;var m=W.onExpandClick;var q=W.maxLines===void 0?2:W.maxLines;var Q=W.disableTextMask===void 0?!1:W.disableTextMask;var X=W.textStyle===void 0?"default":W.textStyle;var I=W.accessibilityLabel===void 0?"":W.accessibilityLabel;var u=W.textSize===void 0?"small":W.textSize;var c=_.Be(function(){return void(m==null?void 0:m())});
a:switch(u){case "medium":var v=2;break a;case "large":v=2.2;break a;default:v=1.8}var D=A4v(e,q,v,Q,W.alwaysTruncateAtMaxLines===void 0?!1:W.alwaysTruncateAtMaxLines,u,X),B=D.isTruncated;W=D.displayText;e=D.contentRef;var k=D.hiddenRef,n=D.placeholderTruncationTextRef,f=D.hiddenTruncationTextRef;D=D.truncationTextRef;var M={};t=_.DT((M["truncated-text-wiz__absolute-button"]=!Q,M["truncated-text-wiz__bottom-button"]=Q,M["truncated-text-wiz--hidden"]=!(t||B),M));Q={};X=_.DT((Q["truncated-text-wiz"]=
!0,Q["truncated-text-wiz--overlay"]=X==="overlay",Q["truncated-text-wiz--medium-text"]=u==="medium",Q["truncated-text-wiz--large-text"]=u==="large",Q["truncated-text-wiz--primary-text"]=X==="primary-text",Q));u={};u=_.DT((u["truncated-text-wiz__truncated-text-content"]=!0,u["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,u));return _.w("truncated-text",{class:X,"on:click":c,style:"line-height: "+v+"rem;"},_.w("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:e,style:"max-height: "+q*v+"rem;"},_.w(_.WL,{text:W}),_.w(Nhg,{text:b,lineHeight:v,elRef:n,className:"truncated-text-wiz__inline-button"})),_.w("truncated-text-content",{class:u,el:k,style:"max-height: "+q*v+"rem;","aria-hidden":"true"},_.w(_.WL,{text:W}),_.w(Nhg,{text:b,lineHeight:v,elRef:f,className:"truncated-text-wiz__inline-button"})),_.w("button",{"aria-label":I,class:t,el:D,style:"line-height: "+v+"rem;"},_.w(_.WL,{text:b})))};
W9Z=function(W){return{content:W!=null?W:""}};
b99=function(W){var e=W.data;var t;W={class:W.className};a:switch(e.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var b="yt-video-attribute-view-model--vertical";break a;default:b="yt-video-attribute-view-model--horizontal"}a:switch(e.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var m="yt-video-attribute-view-model--image-small";break a;default:m="yt-video-attribute-view-model--image-large"}a:switch(e.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var q="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":q="yt-video-attribute-view-model--image-avatar";break a;default:q=""}a:switch(e.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Q="yt-video-attribute-view-model--metadata-header";break a;default:Q=""}a:switch(e.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var X="yt-video-attribute-view-model--container-card";break a;default:X=""}var I=_.Mk(e.onTap)||_.Yb(e.rendererContext)?"yt-video-attribute-view-model--clickable":"";
b=["yt-video-attribute-view-model",b,m,q,Q,X,I].join(" ");if(e.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var u="";else m=e.lightColorPalette,q=e.darkColorPalette,Q=((u=_.ee().resolve(_.Wi(_.zf)))==null?0:u())&&q?q:m,u=(u=Q==null?void 0:Q.section2Color)?_.h8(u):"";return _.w("yt-video-attribute-view-model",W,_.w("div",{class:b,style:_.$D({"background-color":u})},_.w(PuR,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(t=_.Mk(e.onTap))!=
null?t:_.Yb(e.rendererContext),role:"group",ariaLabel:e.title,forceNewState:!0},e.heroText||e.image?_.w(et9,{data:e}):null,_.w(t6R,{data:e,sizeSmall:e.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
mCs=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(e){e.preventDefault();e.stopPropagation();if(W.overflowMenuOnTap){var t=_.h_({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(e)}}}};
et9=function(W){W=W.data;var e,t=((e=_.ee().resolve(_.Wi(_.zf)))==null?0:e())&&W.darkThemeImage?W.darkThemeImage:W.image;e=mCs(W);return _.w("div",{class:"yt-video-attribute-view-model__hero-section"},t?_.w(_.A_,{data:t,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):W.heroText?_.w("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.w("span",{class:"yt-video-attribute-view-model__hero-text"},W.heroText)):null,W.overflowMenuOnTap?
_.w("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.w(t3,{data:e,iconName:"MORE_VERT"})):null)};
t6R=function(W){var e=W.data;W=W.sizeSmall;var t=e.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",b=_.Mk(e.onTap)||_.Yb(e.rendererContext);b=_.h_({innertubeCommand:b});b=Hg(b);var m={};W={class:_.DT("yt-video-attribute-view-model__metadata",(m["yt-video-attribute-view-model--small-font"]=W,m)),role:b?"link":"group"};b=_.w("h1",{class:"yt-video-attribute-view-model__title"},e.title);t=e.subtitle?_.w("h4",{class:"yt-video-attribute-view-model__subtitle"},t?_.w(dFK,{text:W9Z(e.subtitle),truncationText:W9Z(e.subtitleTruncationText),
maxLines:2}):_.w("span",null,e.subtitle)):null;if(e.secondarySubtitle){m=e.secondarySubtitle;if(m!=null&&m.attachmentRuns){for(var q=[],Q=_.R(m.attachmentRuns),X=Q.next();!X.done;X=Q.next())X=X.value,X.element&&q.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}}}})}));m=Object.assign({},m,{attachmentRuns:q})}m=_.w("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.w(_.WL,{text:m}))}else m=null;return _.w("div",W,b,t,m,e.buttonViewModel?rl9(e.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.b0=function(W,e,t,b,m){b=b===void 0?{}:b;if(!m||Math.random()<5E-4){e=e||null;t=t||null;W=W instanceof Error?W:new _.o_(W);if(W.args)for(var q=_.R(W.args),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q instanceof Object&&(b=Object.assign({},Q,b));b.category="H5 Ads Control Flow";e&&(b.slot=e?"slot:  "+e.slotType:"");t&&(b.layout=t?"layout:  "+t.layoutType:"",b.layoutId=t.layoutId);m&&(b.known_error_aggressively_sampled=!0);W.args=[b];_.JC(W)}};
_.q7S=function(W,e){_.RT(W,"yt-open-popup-action",[_.Nf(e),W])};
_.mF=function(W,e){_.q7S(W,_.zq(e))};
Qgs=function(W){if(!W)return"";if(RtD[W])return RtD[W];rk||(rk=_.DA("A"));rk.href!==W&&yE(rk,W);var e=rk.pathname;RtD[W]=e.startsWith("/")?e:"/"+e;return RtD[W]};
F9G=function(){var W=Qgs(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var e;return(qZ==null?void 0:(e=qZ.response)==null?void 0:e.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.w0S=function(){var W=qZ==null?void 0:qZ.response,e=W==null?void 0:W.endpoint;if(!e)return(W==null?void 0:W.page)==="watch"?"watch":F9G();var t;W=(t=_.l(e==null?void 0:e.commandMetadata,_.ez))==null?void 0:t.webPageType;t=!1;if(W&&!X0Q.includes(W))switch(W){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var b;return((b=_.l(e==null?void 0:e.commandMetadata,_.ez))==null?0:b.url)&&Qgs(_.l(e.commandMetadata,_.ez).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var m;return(e=(m=_.l(e,_.Sf))==null?void 0:m.browseId)?IFL[e]||"browse":"browse";default:t=!0}if(_.l(e,_.Rw)||_.l(e,aFS))return"sponsorship";m=Qgs(window.location.href);if(m.startsWith("/experiments"))return"experiments";if(m.startsWith("/create_channel"))return"create_channel";
if(_.l(e,_.KJ)&&m.startsWith("/shorts"))return"shorts";if(_.l(e,_.KJ)&&m.startsWith("/watch"))return"watch";t&&(e=new _.o_("Unsupported mWeb page type",{pathname:m,webPageType:W}),_.gQ(e));return"browse"};
Qg=function(W,e,t,b){return W&&e?W!==t||e!==b?(_.b0(Error("Hh"),void 0,void 0,{"stored-slot":W,"stored-layout":e,"latest-slot":t,"latest-layout":b}),!1):!0:!1};
ujv=function(W,e,t){return W({targetId:e},function(b){return t.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},b,{header:t.continuationItems?t.continuationItems[0]:void 0}):Object.assign({},b,{contents:t.continuationItems?t.continuationItems:[]})})};
clK=function(W,e,t,b){if(e=e.trackingParams){var m,q=(m=t.getScreenLayer)==null?void 0:m.call(t);t=_.fc(q);m=_.nc(q);if(t&&m){var Q=_.$5(e);_.S("combine_ve_grafts")?W.graftServerVe(e,m,q):_.Ke(t,m,Q);b==null||b(Q)}}};
Goc=function(W){var e;return((e=v3z.get(W))==null?void 0:e.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
BiG=function(W,e){var t={type:e.slotType,controlFlowManagerLayer:DCD.get(e.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e.slotEntryTrigger&&(t.entryTriggerType=e.slotEntryTrigger.triggerType);e.slotPhysicalPosition!==1&&(t.slotPhysicalPosition=e.slotPhysicalPosition);if(W){t.debugData={slotId:e.slotId};if(W=e.slotEntryTrigger)t.debugData.slotEntryTriggerData=S7K(W);W=e.slotFulfillmentTriggers;t.debugData.fulfillmentTriggerData=[];W=_.R(W);for(var b=W.next();!b.done;b=W.next())t.debugData.fulfillmentTriggerData.push(S7K(b.value));
e=e.slotExpirationTriggers;t.debugData.expirationTriggerData=[];e=_.R(e);for(W=e.next();!W.done;W=e.next())t.debugData.expirationTriggerData.push(S7K(W.value))}return t};
S7K=function(W,e){var t={type:W.triggerType};e!=null&&(t.category=e);W.triggeringSlotId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(t.triggerSourceData||(t.triggerSourceData={}),t.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return t};
o3S=function(W,e,t,b){e={opportunityType:e};W&&(b||t)&&(b=_.yO(b||[],function(m){return BiG(W,m)}),e.debugData=Object.assign({},t&&t.length>0?{associatedSlotId:t}:{},b.length>0?{slots:b}:{}));
return e};
lFK=function(W){return FZ(W.opportunityAdapterMap).concat(FZ(W.triggerAdapterMap)).concat(FZ(W.fulfillmentAdapterFactoryMap)).concat(FZ(W.slotAdapterFactoryMap)).concat(FZ(W.layoutRenderingAdapterFactoryMap))};
FZ=function(W){var e=[];W=_.R(W.values());for(var t=W.next();!t.done;t=W.next())t=t.value,t.isAdsControlFlowEventListener&&e.push(t);return e};
u0=function(W){var e=W.slotId,t=W.slotType,b=W.slotPhysicalPosition;return e===void 0?new wk("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):t===void 0?new wk("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):b===void 0?new wk("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:e,slotType:t,slotPhysicalPosition:b,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Z92}};
$Cz=function(W){var e=W.layoutId,t=W.layoutType;return e===void 0?new cL("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):t===void 0?new cL("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:e,layoutType:t,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Z92,interactionLoggingAdsClientData:{}}};
koG=function(W){if((W=W.value)&&W.querySelector("img")){var e=W.querySelector("img");e.addEventListener("error",function(){XYD(e.src).then(function(t){(t=_.Z1(t).toString())?e.src=t:e.removeAttribute("src")}).catch(function(){e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
G_=function(W,e){if(e&&(p0S(e.viewableCommand)||p0S(e.endOfSessionCommand))){W=W.value;var t=ylz(e==null?void 0:e.viewableCommand);e=ylz(e==null?void 0:e.endOfSessionCommand);if(!vL){var b=_.mn("custom_active_view_tos_timeout_ms");vL=b>0&&b!==36E5?new jgD(CEc(),b):new jgD(CEc())}n39(vL,W);fFs(vL,W,t,e)}};
DH=function(W){vL&&n39(vL,W.value)};
CEc=function(){var W=_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
p0S=function(W){W=_.Mk(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
ylz=function(W){if(!W)return[];var e=[],t,b;((b=(t=_.Mk(W))==null?void 0:t.loggingUrls)!=null?b:[]).forEach(function(m){m.baseUrl&&e.push(m.baseUrl)});
return e};
g3G=function(W){return W.shorts.isDesktopSmallWidth};
_.Ti9=function(W){return W.shorts.isWatchWhileMode};
_.SS=function(W){return W.shorts.isFullscreen};
_.BL=function(W){return W.shorts.isShortsPipActive};
xCv=function(W){var e,t;if(W=(e=_.l(W.reelsAdCardButtoned,JlR))==null?void 0:(t=e.animatedRenderingConfig)==null?void 0:t.easeOutSeconds)return W+"s"};
M6G=function(W,e,t){return _.F(function(b){return b.return(new Promise(function(m){var q=new Image;q.onload=function(){m(new O9K(W,e,t,q.naturalWidth,q.naturalHeight))};
q.src=t.toString()}))})};
sgL=function(W,e){return Math.round(W/1E-5)===Math.round(e/1E-5)};
htz=function(W,e){return Math.round(W/1E-5)===Math.round(e/1E-5)};
H9R=function(W,e){return W.year===e.year&&W.month===e.month&&W.day===e.day};
K9G=function(W,e){return W.year!==e.year?W.year<e.year:W.month!==e.month?W.month<e.month:W.day<e.day};
V6G=function(W){return W.day===PEQ(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1}};
i9v=function(){var W=new Date,e={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:e,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:V6G(e)}};
Y7s=function(W){return(new iX(2)).format(new Date(W.year,W.month,W.day))};
ztv=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
UCQ=function(W,e){W=(W+(Number(e.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;e=ztv(new Date(W));return{date:e,secondsSinceMidnight:Math.floor((W-(new Date(e.year,e.month,e.day)).getTime())/1E3)}};
L9v=function(W,e){e=e.months.findIndex(function(t){return t.year===W.year&&t.month===W.month});
return e>=0?e:void 0};
E3Q=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(e){return!1}return E3Q(W.parentNode)};
ow=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
AlZ=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
Ni2=function(W,e,t){if(!W)return null;var b=ow(W);if(b&&t)return e=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(b&&!t)return document.createTextNode("");if(AlZ(W))return t=W.alt,W=W.dataset.emojiId,!W&&e&&(e=_.l0(e,t))&&e.isCustomEmoji&&(W=e.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(t);b=W.cloneNode(!1);for(var m=0;m<W.childNodes.length;++m){var q=Ni2(W.childNodes[m],e,t);q&&b.appendChild(q)}return b};
ZH=function(W){return W?ow(W)?W:ZH(W.lastChild):null};
dCR=function(W){return W?ow(W)?W:dCR(W.firstChild):null};
WhZ=function(W){if(!W)return null;for(var e=W.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=ZH(e))?W=e:W=(W=W.parentNode)?ZH(W.previousElementSibling):null;return W};
eWL=function(W){if(!W)return null;for(var e=W.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=dCR(e))?e:eWL(W.parentNode)};
tRS=function(W){var e=_.$L(),t=e.JSC$9301_getStartNode();if(!E3Q(t.parentNode))return null;e=e.JSC$9301_getStartOffset();if(t.nodeType===Node.TEXT_NODE){var b=_.JD(t,ow);if(b){if(W&&e===0||!W&&e===t.length)return b}else{if(W&&e===t.length)return!t||t.nodeName==="BR"||t.nextElementSibling&&_.kL(t.nextElementSibling,"display")==="block"?null:dCR(t.nextElementSibling);if(!W&&e===0)return t?ZH(t.previousElementSibling):null}}if(t.nodeType===Node.ELEMENT_NODE)if(W){if(0<=e&&e<t.childNodes.length)return dCR(t.childNodes[e])}else if(0<
e&&e<=t.childNodes.length)return ZH(t.childNodes[e-1]);return null};
bqG=function(W,e,t){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(t){var b=WhZ(W);if(b&&!/^\s+\S/.test(W.wholeText.substr(0,e)))return b}else if((b=eWL(W))&&!/\S\s+/.test(W.wholeText.substr(e,W.wholeText.length)))return b;return W.nodeType===Node.ELEMENT_NODE?t?WhZ(W.childNodes[e]):eWL(W.childNodes[e]):bqG(W.parentNode,e,t)};
mOQ=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var e="";for(W=W.firstChild;W;W=W.nextSibling)e+=mOQ(W);return e;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
pv=function(W,e){return W.year===e.year&&W.month===e.month&&W.day===e.day};
yg=function(W,e){return W.year!==e.year?W.year<e.year:W.month!==e.month?W.month<e.month:W.day<e.day};
rwR=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
qNZ=function(W){var e=KOZ;e=e===void 0?KOZ:e;e(new Date(W.year,W.month,W.day))};
jS=function(W){return rwR(new Date(Number(W.seconds)*1E3))};
RWG=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
Q9S=function(W){return W.start!==void 0&&W.end!==void 0};
Fhs=function(W){return Q9S(W)?W.start:W};
XtG=function(W){return Q9S(W)?W.end:void 0};
aOg=function(W,e){for(var t=[],b=new Date(W.start.year,W.start.month);b.getFullYear()<W.end.year||b.getFullYear()===W.end.year&&b.getMonth()<=W.end.month;){var m=t,q=m.push,Q=b.getFullYear(),X=b.getMonth(),I=W,u=e,c=void 0,v=[],D=Object.freeze({extraCssClass:"invisible"}),B=new Date(Q,X),k=rwR(B);B=B.getDay();for(var n=rwR(new Date);k.month===X;){B!==IOL&&c||(c=Array.from({length:7}).fill(D),v.push(c));var f={date:{year:Q,month:X,day:k.day},extraCssClass:"",debugClass:""};f.extraCssClass=u(f.date,
k,n,I).trim();c[(B-IOL+7)%7]=f;k=k.day===PEQ(k.year,k.month)?k.month===11?{year:k.year+1,month:0,day:1}:{year:k.year,month:k.month+1,day:1}:{year:k.year,month:k.month,day:k.day+1};B=(B+1)%7}q.call(m,{weeks:v,monthLabel:Cv.SHORTMONTHS[X]+" "+Q,year:Q,month:X,monthLabelExtraCssClass:v[0][2]===D?"shift-down-label":""});b.setMonth(b.getMonth()+1)}return t};
wtS=function(W,e){e=e.months.findIndex(function(t){return t.year===W.year&&t.month===W.month});
return e>=0?e:void 0};
cwZ=function(W,e){a:{var t=t===void 0?[2,3]:t;t=_.R(t);for(var b=t.next();!b.done;b=t.next()){var m=new Date;if((new uJG(b.value)).parse(e,m,{validate:!0})){m.setHours(0,0,0,0);e=m;break a}}e=null}if(!e)return{isValid:!1,value:void 0};e=rwR(e);t=W.end;return yg(e,W.start)||yg(t,e)?{isValid:!1,value:void 0}:{isValid:!0,value:e}};
BmK=function(W){var e=vTZ;e=e===void 0?GUg:e;var t=W.columnsToShow||[],b=DOs(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,e);return t.map(function(m,q){var Q=W.columns[m];if(Q===void 0)throw Error("Nh");var X=b?b[q]:"";var I=W.getCustomTooltip?W.getCustomTooltip(m,Q.headerTooltipParagraphs):Q.headerTooltipParagraphs;var u=SNv(W,m);return{type:m,index:q,style:X,classes:u,headerName:Q.headerName||"",headerIcon:Q.headerIcon,headerTooltipParagraphs:I||[],headerTooltipHelpContext:Q.headerTooltipHelpContext,
sortOrders:Q.sortOrders||[],selectionState:Q.isSelectionCheckbox?W.selectionState:void 0}})};
SNv=function(W,e){var t=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],b=W.columns[e];if(b===void 0)return"";var m=t.includes("DEFAULTS")&&b.cssClass?[b.cssClass]:[];if(t.includes("SORTING")){b.sortOrders&&b.sortOrders.length&&m.push("sortable");if(W.sorting&&W.sorting.columnType===e)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var q="column-sorted";break a;default:q=""}else q="";q&&m.push(q)}t.includes("FLOATING")&&(e=W.columnsToShow.indexOf(e),W.leftFloatingColumns&&e<W.leftFloatingColumns&&
m.push("floating-column"),W.leftFloatingColumns&&e===W.leftFloatingColumns-1&&m.push("last-floating-column"));t.includes("RIGHT_ALIGN")&&b.rightAlignHeader&&m.push("right-align");return m.filter(function(Q){return Q}).join(" ")};
DOs=function(W,e,t,b){t=t===void 0?0:t;b=b===void 0?GUg:b;if(W){var m=[],q=0;oTK(W,e,b).forEach(function(Q,X){var I="min-width:"+Q.minWidth+"px;padding-left:"+Q.paddingLeft+"px;padding-right:"+Q.paddingRight+"px;flex:"+Q.flexGrow+" 0 "+Q.minWidth+"px;";Q.maxWidth!==Infinity&&(I=[I,"max-width:"+Q.maxWidth+"px;"].join(""));q>0&&X<t&&(I=[I,"left:"+q+"px;"].join(""));m.push(I);q+=Q.minWidth+Q.paddingLeft+Q.paddingRight});
return m}};
oTK=function(W,e,t){t=t===void 0?GUg:t;return e.map(function(b,m){b=W&&W[b]||{};var q=m===0?t.paddingLeftFirstColumn:t.padding;b.paddingLeft!==void 0&&(q=b.paddingLeft);m=m===e.length-1?t.paddingRightLastColumn:t.padding;b.paddingRight!==void 0&&(m=b.paddingRight);return{paddingLeft:q,paddingRight:m,minWidth:b.minWidth!==void 0?b.minWidth:t.minWidth,maxWidth:b.maxWidth!==void 0?b.maxWidth:t.maxWidth,flexGrow:b.flexGrow!==void 0?b.flexGrow:t.flexGrow}})};
lOc=function(W){var e=W.reduce(function(b,m){var q=m.columnId,Q={};m.headerText&&(Q.headerName=_.Ub(m.headerText));m.rightAlignHeader&&(Q.rightAlignHeader=m.rightAlignHeader);var X;if((X=m.headerIcon)==null?0:X.iconType)Q.headerIcon=_.ao(m.headerIcon.iconType);b[q]=Q;return b},{}),t=W.filter(function(b){return!b.hideColumn}).map(function(b){return b.columnId});
W=W.filter(function(b){return!!b.dimensions}).reduce(function(b,m){b[m.columnId]=m.dimensions;
return b},{});
return{columns:e,columnsToShow:t,columnDimensions:W}};
_.Zq2=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(e){return e.text}).join(""):"":""};
j9R=function(W){var e=W.data;var t=W.onTap;var b=W.isSelected;var m=W.onFocusIn;if(!e)return{};W=$OZ(e);b===void 0&&(b=e==null?void 0:e.isSelected);var q;return{text:kUz(e,W),startIcon:(q=e.icon)==null?void 0:q.iconType,state:b?0:2,type:0,onTap:pt9(e,t),accessibilityLabel:yw2(e,W),onFocusIn:function(){return m==null?void 0:m()}}};
kUz=function(W,e){if(!e)return W.text?_.Zq2(W.text):void 0};
pt9=function(W,e){return function(t){e==null||e(t,W)}};
$OZ=function(W){W=W.style&&W.style.styleType;return!Y_G&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
yw2=function(W,e){if(e){var t,b,m;return(m=(t=W.accessibilityData)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?m:kUz(W,!1)}};
nv=function(W){return{signalAction:{signal:W}}};
fO9=function(){return _.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?CiS:_.nTL};
gTR=function(W,e){W=W===void 0?"SOFT_RELOAD_PAGE":W;e=e===void 0?49504:e;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.tm(_.Gv("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:e}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
TmG=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tm(_.Gv("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:fO9()}};
Jws=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:fO9()}};
xOz=function(W,e){var t=_.tm(_.Gv("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),b=_.tm(_.Gv("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),m={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tm(_.Gv("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};m.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[nv("SOFT_RELOAD_PAGE")]}};return{title:t,bodyText:b,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:m},
style:{value:e!=null?e:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
MRQ=function(W){W=W===void 0?{}:W;return{title:_.tm(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.tm(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tm(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Oqv]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.HqD=function(W,e,t,b,m,q,Q,X){b=b===void 0?!1:b;m=m===void 0?!1:m;q=q===void 0?0:q;Q=Q===void 0?-Infinity:Q;X=X===void 0?!1:X;var I=[],u=_.tm(_.Gv("SMART_DOWNLOADS",void 0,"Smart downloads"));Q=_.tm(s9R(q,Q,W.length));q=void 0;b?W.length>0?q=hWS(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.S("kevlar_manual_downloads_above"),u,Q):X?q={alertBannerViewModel:{heading:{content:t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText},body:{content:t.localizedPromptMessage===
void 0?"":t.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Gv("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Gv("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:_.rrZ}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:m&&(q={backgroundPromoRenderer:{bodyText:_.tm(_.Gv("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):m&&(q={alertBannerViewModel:{heading:{content:t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText},
body:{content:t.localizedOptInMessage===void 0?"":t.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Gv("TURN_ON",void 0,"Turn on"),accessibilityText:_.Gv("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}}}}}});t=_.tm(_.Gv("YOUR_DOWNLOADS",void 0,"Your downloads"));m=void 0;e.length>0?(m=void 0,_.S("kevlar_display_downloads_numbers")&&(m=_.tm(_.D8("VIDEO_COUNT",e.length))),m=hWS(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,t,m)):b||W.length||(m={backgroundPromoRenderer:{bodyText:_.tm(_.Gv("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}}}});q&&!_.S("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});m&&I.push({richSectionRenderer:{content:m,loggingDirectives:{clientVeSpec:{uiType:51721}}}});q&&_.S("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:q,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(e.length>0||b&&W.length>0)&&I.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tm(_.Gv("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:I}};
_.Pig=function(W){return Kh9(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.VRK=function(W){return Kh9(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Kh9=function(W,e){var t=[];W=hWS(W,e,!0);t.push({richSectionRenderer:{content:W}});return{contents:t}};
hWS=function(W,e,t,b,m){t=t===void 0?!1:t;var q="RESPONSIVE_SIZE_STANDARD";_.S("kevlar_modern_downloads_compact")?q="RESPONSIVE_SIZE_COMPACT":_.S("kevlar_modern_downloads_extra_compact")&&(q="RESPONSIVE_SIZE_EXTRA_COMPACT");W={isExpanded:t,contents:fv(W),entitySelectorType:e,responsiveContainerConfiguration:{responsiveSize:q}};b&&(W.title=b);m&&(W.subtitle=m);t||(_.S("kevlar_smart_downloads_show_more_button")?(W.showMoreButton={buttonRenderer:{accessibility:{label:_.Gv("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.tm(_.Gv("SHOW_MORE",void 0,"Show more"))}},W.showLessButton={buttonRenderer:{accessibility:{label:_.Gv("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.tm(_.Gv("SHOW_LESS",void 0,"Show less"))}}):(W.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Gv("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}}}},W.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Gv("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}}}},W.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Gv("VIEW_ALL",void 0,"View all"),accessibilityText:_.Gv("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:Wm("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:W}};
fv=function(W){var e=[];W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,KWG(t)){var b=e,m=b.push;var q=void 0;if(t==null?0:(q=t.videoEntity)==null?0:q.videoId){q=sb(_.Eb().getState(),t.videoEntity.videoId);var Q=_.Eb().getState();var X=_.X4(t.videoEntity.videoId,"mainVideoEntity");Q=!!_.kg(Q.entities)[X];Q={videoId:t.videoEntity.videoId,title:bX(t.videoEntity.title),shortBylineText:bX(t.channelEntity.title),thumbnail:t.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Q&&_.S("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Kmg(t.videoEntity.videoId,q,t.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Gv("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};t.videoEntity.lengthSeconds&&(Q.thumbnailOverlays=RYL(t.videoEntity.lengthSeconds,q));Q.isWatched=q>0;_.S("kevlar_modern_downloads_page")&&(Q.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:t.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Gv("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Q.badges=void 0);t=Q}else t={};m.call(b,{richItemRenderer:{content:{videoRenderer:t},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(HxG(t)){b=e;m=b.push;var I=X=q=void 0,u=void 0,c=void 0,v=void 0,D=void 0,B=void 0,k=void 0,n=void 0,f=void 0,M=void 0;Q=t.mainPlaylistEntity.playlistId;var K=t==null?void 0:(M=t.mainPlaylistEntity)==null?void 0:(f=M.thumbnailStyleData)==null?void 0:(n=f[0])==null?void 0:(k=n.value)==null?void 0:(B=k.collageThumbnail)==
null?void 0:B.coverThumbnail;if(Q&&K){B=P9G(Q);!_.S("enable_offline_playlist_page")&&(t==null?0:(D=t.mainPlaylistEntity)==null?0:D.videos)&&(D=t==null?void 0:(v=t.mainPlaylistEntity)==null?void 0:(c=v.videos)==null?void 0:c[0],c=_.R1(D).entityId,c=JSON.parse(c).videoId,c!==void 0&&(v=sb(_.Eb().getState(),c),B=_.ew(c,Q,void 0,void 0,v)));c=[];if(t==null?0:(u=t.mainPlaylistEntity)==null?0:(I=u.videos)==null?0:I.length)c=[Hfv(),Object.assign({},(X=hk9(t==null?void 0:t.mainPlaylistEntity.videos.length))!=
null?X:{})];t={playlistId:Q,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:K}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:c,title:bX(t.mainPlaylistEntity.title),shortBylineText:bX(t==null?void 0:(q=t.channelEntity)==null?void 0:q.title),badges:[{metadataBadgeRenderer:{label:_.Gv("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.S("kevlar_modern_downloads_page")&&(t.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:iqQ,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Gv("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},t.badges=void 0)}else t=void 0;m.call(b,{richItemRenderer:{content:{playlistRenderer:t},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return e};
s9R=function(W,e,t){W=W?YNZ(W):"";e!==void 0&&isFinite(e)?e===0?e=_.Gv("UPDATING",void 0,"Updating..."):(e=qjD(new Date(e),new Date),e=_.Gv("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var b="";W&&e&&(b=" \u2022 ");if(t&&_.S("kevlar_display_downloads_numbers")){t=_.D8("VIDEO_COUNT",t);if(W||e)b=" \u2022 ";return t+b+W+b+e}return W+b+e};
zWg=function(W){return gGG(W.entities).length};
_.UOz=function(W,e){var t=XpD(W.responsiveSize),b;W=!((b=W.responsiveMap)==null||!b.some(function(m){return m.containerSize==="CONTAINER_SIZE_NARROW"&&m.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:e,sizing:t,enableFullBleedForSingleCol:!1,isCompactList:t==="COMPACT"&&W}};
LhQ=function(W,e){return _.I1(W.entities,"votingEntity",e)};
ETK=function(W){if(W){var e;return((e=_.ee().resolve(_.Wi(_.zf)))==null?0:e())?W.darkTheme:W.lightTheme}};
AwG=function(W,e){if(W.simpleText)return Object.assign({},W,{simpleText:Ve(W.simpleText,e)});if(!W.runs)return W;for(var t=Object.assign({},W,{runs:[]}),b=0,m=_.R(W.runs),q=m.next();!q.done;q=m.next())if(q=q.value,q.text)if(b+q.text.length<=e)t.runs.push(q),b+=q.text.length;else return t.runs.push(Object.assign({},q,{text:Ve(q.text,e-b)})),t;return W};
NmQ=function(W,e){return _.I1(W.entities,"chipBarStateEntity",e)};
dOK=function(W,e){return _.I1(W.entities,"chipEntity",e)};
enz=function(W,e,t,b){return function(){var m=Wqv.has(W.displayType)&&W.selected,q=m&&W.deselectCommand?W.deselectCommand:W.tapCommand;!q||m&&b||_.K4(q,{form:{element:e==null?void 0:e.value}});t==null||t()}};
txK=function(W){switch(W){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""}};
bpc=function(W,e){return{triggeringElement:W,onDwellTriggeredFn:function(){var t={triggeringElement:W,loadVideoPreviewEventData:e},b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:t}))},
onDwellEndFn:function(){var t=document.querySelector(".video-preview");t&&t.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
mHg=function(W,e){var t=_.ee().resolve(_.Wi(EHD)),b=function(){var m=e();return t&&m?bpc(W.value,m):null};
_.nh(function(){var m=b();t&&m&&Promise.resolve().then(function(){t.registerElement(m)});
_.fh(function(){t&&m&&Promise.resolve().then(function(){ARc(t,m)})})},"csPUge")};
qIL=function(W){var e=W.dataset.resizeObserverId;if(e)return e;e=""+rIg++;return W.dataset.resizeObserverId=e};
Rnz=function(W,e){var t=qIL(W);gk.has(t)||gk.set(t,new Set);gk.get(t).add(e);T_.has(t)&&e(Object.assign({},{target:W},T_.get(t)))};
Qd2=function(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=qIL(e.target),b=Object.assign({},{target:e.target},T_.get(t));if(b!=null&&b.contentRect?b.contentRect.width!==e.contentRect.width||b.contentRect.height!==e.contentRect.height:1)for(T_.set(t,{borderBoxSize:e.borderBoxSize,contentBoxSize:e.contentBoxSize,contentRect:e.contentRect,devicePixelContentBoxSize:e.devicePixelContentBoxSize}),t=_.R(gk.get(t)||[]),b=t.next();!b.done;b=t.next())b=b.value,b(e)}};
XPz=function(){return J3?J3:J3=new Fqc(Qd2)};
IiS=function(W,e){var t=qIL(W);gk.has(t)&&(gk.get(t).delete(e),gk.get(t).size===0&&(gk.delete(t),T_.delete(t),J3.unobserve(W),delete W.dataset.resizeObserverId));gk.size===0&&J3&&(J3.disconnect(),J3=void 0)};
wPg=function(W,e){var t=_.ee().resolve(WT);return aic.map(function(b){return t.observe(W,e,b)})};
u7Q=function(W){var e=_.ee().resolve(WT);W.forEach(function(t){e.unobserveByKey(t)})};
_.GKQ=function(W,e){var t=Object.assign({},cIK,e);e=_.R(JQg());var b=e.next().value,m=e.next().value,q=function(Q){var X=Q.contentRect.height;if((Q=Q.contentRect.width)||X||t.canHaveZeroSize)b.width()===Q&&b.height()===X||m(b,{height:X,width:Q})};
_.nt(function(){var Q=W instanceof HTMLElement?W:W.value,X=vpK(q,t.throttleMs),I=[];t.useVisibilityObserver&&(I=wPg(Q,function(u,c){requestAnimationFrame(function(){c==="visible"?(Rnz(Q,X),XPz().observe(Q)):IiS(Q,X)})}));
I.length||(Rnz(Q,X),XPz().observe(Q));_.fh(function(){I.length&&(u7Q(I),I.length=0);IiS(Q,X)})});
return b};
SIZ=function(W){var e=W.data;var t=W.callback;var b=W.enableSingleChipSelection;var m=W.disableChipsScrollAnimation;var q=_.Um("div"),Q=gM(!1),X=gM(0);W={};W=_.R(Gz(e.autoselectedChipIndex!=null?(W[e.autoselectedChipIndex]=!0,W):{}));var I=W.next().value,u=W.next().value,c=function(){var uv=q.value;return uv==null||uv.scrollLeft-1<=0},v=function(){var uv=q.value;
return uv==null?!1:uv.scrollLeft+1>=(uv==null?NaN:uv.scrollWidth)-(uv==null?NaN:uv.clientWidth)};
W=_.R(Gz(c()));var D=W.next().value,B=W.next().value;W=_.R(Gz(v()));var k=W.next().value,n=W.next().value;W=e.isHorizontallyScrollable;var f=function(uv){q.value!=null&&(_.Ot("HTML_DIR")==="rtl"&&(uv=-uv),q.value.scrollBy({left:uv,behavior:m?"instant":"smooth"}))},M=function(){f(-320)},K=function(){f(320)},U=_.Be(function(uv){Q.value=!0;
X.value=uv.clientX}),V=_.Be(function(uv){if(Q.value){uv=uv.clientX;
var GS=uv-X.value;X.value=uv;var k9;(k9=q.value)==null||k9.scrollBy({left:-GS})}}),L=_.Be(function(){var uv=c(),GS=v();
uv!==D&&B(uv);GS!==k&&n(GS)});
dQ("pointerup",function(){Q.value&&(Q.value=!1)});
var E={},RR={};return _.w("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},d$(e.title,function(){return _.w("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.w("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},e.title),DHQ(e.overflowButton))}),_.w("div",{class:"ytChipsShelfViewModelChipsShelfContent"},d$(e.previousButton!=null,function(){var uv={};
return _.w("div",{class:_.DT("ytChipsShelfViewModelLeftArrowContainer",(uv.ytChipsShelfViewModelLeftArrowContainerIsHidden=D,uv))},DHQ(e.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:M}}))}),_.w("div",{el:q,
"on:pointerdown":U,"on:pointermove":V,"on:scroll":L,class:_.DT("ytChipsShelfViewModelChipsScrollContainer",(E.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!W,E))},_.w("div",{class:_.DT("ytChipsShelfViewModelChipsContainer",(RR.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!W,RR.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!W&&!1,RR))},(e.contents||[]).map(function(uv,GS){return _.w("div",{class:"ytChipsShelfViewModelChipWrapper"},DHQ(uv,
{chipViewModel:{callback:function(k9,CQ){if(b){var fQ={};u((fQ[GS]=CQ,fQ))}else fQ={},u(Object.assign({},I,(fQ[GS]=CQ,fQ)));t==null||t(k9,CQ,GS)},
disableDeselection:b,selected:!!I[GS]}}))}))),d$(e.nextButton!=null,function(){var uv={};
return _.w("div",{class:_.DT("ytChipsShelfViewModelRightArrowContainer",(uv.ytChipsShelfViewModelRightArrowContainerIsHidden=k,uv))},DHQ(e.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:K}}))})))};
opG=function(W,e,t,b,m){W=e?W.switchOffCommand:W.switchOnCommand;if(b&&m)BoQ(W,t,m);else{var q,Q;(q=_.h_({elementsCommand:W}))==null||(Q=q.onclick)==null||Q.call(q,t)}};
BoQ=function(W,e,t){W=_.h_({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){t(!1)},
onServerError:function(){t(!1)}}}});
if(W==null?0:W.onclick)W.onclick(e),t(!0)};
ZpQ=function(W){if(W)return _.l(W,liZ)};
jdv=function(W,e,t){if(e)return[$HQ];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[xL];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return t?[xL]:[kKv,xL];case "TRANSFER_STATE_PAUSED_BY_USER":return[pPK,xL];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[yIG,xL];default:return[$HQ]}};
CbQ=function(W,e,t,b){return jdv(W,e,b).map(function(m){var q=m.text,Q=m.iconType,X=m.videoAction;m=m.playlistAction;q=q?{content:q}:void 0;Q=Q&&{sources:[{clientResource:{imageName:Q}}]};var I=(0,_.kJ.unsafeClone)(t);if(I){var u=_.l(I,_.cS),c=_.l(I,_.vS);u&&X?u.action=X:c&&m&&(c.action=m)}return{title:q,leadingImage:Q,rendererContext:I&&{commandContext:{onTap:{innertubeCommand:I}}}}})};
np9=function(W){W=_.Yb(W.rendererContext);var e;return(e=_.l(W,_.vS))==null?void 0:e.playlistId};
fiv=function(W){var e;return(e=W.listItems)==null?void 0:e.some(function(t){var b;return _.zz((b=_.l(t,_.ov))==null?void 0:b.rendererContext)})};
Toz=function(W){var e;return(e=W.listItems)==null?void 0:e.some(function(t){t=_.l(t,_.ov);return!!_.l(t==null?void 0:t.leadingAccessory,gpL)})};
Ops=function(W){var e=W.element;var t=W.veType;var b=W.storedVisualElement===void 0?null:W.storedVisualElement;var m=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var q=_.fc();q!==JIS&&(xHc.clear(),JIS=q);if(e.visualElement&&xHc.has(e.visualElement))return null;if(b&&xHc.has(b))return e.visualElement=b,null;t=_.Dj(_.Sg(),{veType:t,elementIndex:m,clientYouTubeData:W});if(!t)return null;e.visualElement=t;xHc.add(t);return t};
_.OR=function(W,e,t,b){t=t===void 0?null:t;b=b===void 0?Hjz:b;var m=m===void 0?null:m;C4(function(){if(e){t instanceof Function&&(t=t());var q=Ops({element:e,veType:W,storedVisualElement:t,clientYouTubeData:void 0});q&&(Vav(e,m),b(q))}})};
MZ=function(W){var e=_.ee().resolve(_.Wi(_.zf));return e!=null&&e()?W.darkThemeColorPalette:W.lightThemeColorPalette};
h3=function(W){return{primaryTextColor:sR(W,0),secondaryTextColor:sR(W,1),optionColor:sR(W,2),backgroundColor:sR(W,3),videoBackgroundColor:sR(W,4)}};
sR=function(W,e){if(W){switch(e){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.sr(W)}};
Mx2=function(W){return W?_.h8(W):""};
sdz=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
hnG=function(W,e){var t;return"linear-gradient(to bottom, "+((t=e==null?void 0:e.map(function(b){var m=W?b.darkThemeColor:b.lightThemeColor;return m?_.h8(m)+" "+((b==null?void 0:b.startLocation)||0)*100+"%":"transparent"}))==null?void 0:t.join(", "))+")"};
Hpz=function(W,e,t,b,m){if(!((b==null?0:b.height)&&(b==null?0:b.width)))return{size:0};var q=b.width;b=b.height;if(m)return e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&q>b?{size:312/ojL}:e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(t!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||e!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&e!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&e!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(e==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||b===q)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b>q)switch(W){case 1:case 3:return{size:240*BhD};default:return{size:360*BhD}}switch(W){case 1:case 2:return{size:1/ojL*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.KqG=function(W){if(!("matchMedia"in window))return _.Kt(Error("Oh")),function(){return!1};
var e=window.matchMedia(W);W=_.R(_.up(e.matches,void 0,"jLJc8e"));var t=W.next().value,b=W.next().value,m=function(q){b(q.matches)};
e.addEventListener?(e.addEventListener("change",m),_.fh(function(){e.removeEventListener("change",m)})):e.addListener&&(e.addListener(m),_.fh(function(){e.removeListener(m)}));
return t};
PbG=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
VxS=function(){if(!("matchMedia"in window))return _.Kt(Error("Oh")),function(){return 0};
var W=ft(function(){return window.matchMedia("(max-width: 527.9px)")}),e=ft(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),t=ft(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),b=ft(function(){return window.matchMedia("(min-width: 1024px)")}),m=_.R(_.up(W.matches,void 0,"og9kEc")),q=m.next().value,Q=m.next().value;
m=_.R(_.up(e.matches,void 0,"ybDWCb"));var X=m.next().value,I=m.next().value;m=_.R(_.up(t.matches,void 0,"o0Gfh"));var u=m.next().value,c=m.next().value;m=_.R(_.up(b.matches,void 0,"yqUUgd"));var v=m.next().value,D=m.next().value,B=ft(function(){return function(M){Q(M.matches)}}),k=ft(function(){return function(M){I(M.matches)}}),n=ft(function(){return function(M){c(M.matches)}}),f=ft(function(){return function(M){D(M.matches)}});
_.nt(function(){W.addEventListener?(W.addEventListener("change",B),e.addEventListener("change",k),t.addEventListener("change",n),b.addEventListener("change",f)):W.addListener&&(W.addListener(B),e.addListener(k),t.addListener(n),b.addListener(f));_.fh(function(){W.removeEventListener?(W.removeEventListener("change",B),e.removeEventListener("change",k),t.removeEventListener("change",n),b.removeEventListener("change",f)):W.removeListener&&(W.removeListener(B),e.removeListener(k),t.removeListener(n),
b.removeListener(f))})});
return function(){return q()?1:X()?2:u()?3:v()?4:0}};
ipG=function(W){var e=0;W=_.R([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var t=W.next();!t.done;t=W.next())t.value&&e++;return e};
YIg=function(W){return W===1||W===2?1:0};
UHc=function(W){var e,t=((e=_.ee().resolve(_.Wi(_.zf)))==null?0:e())&&W.data.darkThemeImage?W.data.darkThemeImage:W.data.image;e=_.w("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.w("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},t?_.w(_.A_,{data:t,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),znQ(W.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));t=_.w(_.WL,{text:W.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var b=W.data;if(b.bodyText){var m=[];b=_.R(b.bodyText);for(var q=b.next();!q.done;q=b.next())m.push(_.w(_.WL,{text:q.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else m=_.w(_.qD,null);return _.w("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},e,t,m,znQ(W.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.w(_.WL,{text:W.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.w(_.WL,{text:W.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Epc=function(W){W=(new LqR).parse(W);return(new IB).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(e){var t=e.split(":").map(Number),b=0,m=0;if(t.length===3)t=_.R(t),b=t.next().value,m=t.next().value,t=t.next().value;else if(t.length===2)t=_.R(t),m=t.next().value,t=t.next().value;else if(t.length===1)t=_.R(t).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(b*3600+m*60+t)+'" role="button">'+e+"</span>"})};
AIc=function(W){W=_.R(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var e=W.next(),t={};!e.done;t={clickHandler$jscomp$4:void 0},e=W.next()){e=e.value;t.clickHandler$jscomp$4=function(m){m=Number(m.target.getAttribute("data-time"));if(isNaN(m))throw Error("Qh");var q;(q=_.av())==null||q.seekTo(m,!0)};
var b=function(m){return function(q){q.key!=="Enter"&&q.key!=="Space"||(0,m.clickHandler$jscomp$4)(q)}}(t);
e.setAttribute("tabindex","0");e.removeEventListener("click",t.clickHandler$jscomp$4);e.removeEventListener("keydown",b);e.addEventListener("click",t.clickHandler$jscomp$4);e.addEventListener("keydown",b)}};
NoR=function(){return _.w("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.w(HL,{percentWidth:100}),_.w(HL,{animationDelay:200}),_.w(HL,{animationDelay:400}),_.w(HL,{animationDelay:600}),_.w(HL,{animationDelay:800,percentWidth:60}),_.w("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.w(HL,{percentWidth:100}),_.w(HL,{animationDelay:200}),_.w(HL,{animationDelay:400}),_.w(HL,{animationDelay:600,percentWidth:50}))};
HL=function(W){return _.w("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.w("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
dHK=function(){var W=_.R(_.up(function(){return""},void 0,"v2wS5e")),e=W.next().value;
return[function(){return e()()},
W.next().value]};
eVG=function(W){W=W===void 0?{}:W;return{title:_.tm(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.tm(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tm(_.Gv("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:_.tm(_.Gv("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:[WSR]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
tlg=function(W,e){var t=e=e===void 0?{}:e;e=t.offlineTitleText===void 0?"":t.offlineTitleText;var b=t.offlineDescriptionText===void 0?"":t.offlineDescriptionText,m=t.formattedSupplementalText,q=t.actionButtonText===void 0?"":t.actionButtonText,Q=t.titleText===void 0?"":t.titleText;t=t.descriptionText===void 0?"":t.descriptionText;var X={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.tm(q),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}}};W||(Q=e,t=b,X={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.tm(q),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.tm(Q),subtitle:_.tm(t),supplementalText:m,primaryButton:{buttonRenderer:X},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[WSR]},
loggingDirectives:{clientVeSpec:{uiType:266212}}}};
b0v=function(W,e){W=W?YNZ(W):"";e!==void 0&&isFinite(e)?e===0?e=_.Gv("UPDATING",void 0,"Updating..."):(e=qjD(new Date(e),new Date),e=_.Gv("UPDATED_TIME",{relative_time:e},"Updated "+e)):e="";var t="";W&&e&&(t=" \u2022 ");return _.tm(W+t+e)};
qh2=function(W,e,t,b,m,q){e=e===void 0?0:e;var Q=mmG[e],X=Q.title,I=Q.iconType,u=Q.topButtonRenderer,c=Q.sectionClientVE;Q=Q.videoClientVE;var v;if(e!==1||W.length){t=[];W=_.R(W);for(b=W.next();!b.done;b=W.next()){var D=b.value;if(KWG(D))t.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:D.videoEntity.videoId,title:bX(D.videoEntity.title),shortBylineText:bX(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Gv("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Q}}}}}});else if(HxG(D)){b=t;var B=b.push;var k=void 0,n=void 0,f=void 0,M=void 0,K=void 0,U=void 0,V=void 0,L=void 0,E=D.mainPlaylistEntity.playlistId,RR=D==null?void 0:(L=D.mainPlaylistEntity)==null?void 0:(V=L.thumbnailStyleData)==null?void 0:(U=V[0])==null?void 0:(K=U.value)==null?void 0:(M=K.collageThumbnail)==null?void 0:M.coverThumbnail;M=P9G(E);if(!_.S("enable_offline_playlist_page")&&
(D==null?0:(f=D.mainPlaylistEntity)==null?0:f.videos)){b:{f=D==null?void 0:(n=D.mainPlaylistEntity)==null?void 0:n.videos;n=_.Eb().getState().entities;if(f!=null&&f.length&&n)for(f=_.R(f),K=f.next();!K.done;K=f.next())if(K=_.R1(K.value).entityId,(K=JSON.parse(K).videoId)&&nG2(n,K)==="TRANSFER_STATE_COMPLETE"){n=K;break b}n=""}n!==void 0&&(M=sb(_.Eb().getState(),n),M=_.ew(n,E,void 0,void 0,M))}n=iMv(_.Gv("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),P9G(E));D=E&&RR&&n?{playlistId:E,navigationEndpoint:M,
viewPlaylistText:n,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:RR}},title:bX(D.mainPlaylistEntity.title),shortBylineText:bX(D==null?void 0:(k=D.channelEntity)==null?void 0:k.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:roG,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:E,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Gv("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Q}}}:
void 0;B.call(b,{gridPlaylistRenderer:D})}}Q={gridRenderer:{items:t}};e===1&&(v=b0v(m,q))}else if(b){var uv=_.tm((B=t==null?void 0:t.localizedPromptMessage)!=null?B:"");Q={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tm(_.Gv("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.rrZ}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tm(_.Gv("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};v=b0v(m,q)}else uv=_.tm(_.Gv("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Q={};return{contents:[{shelfRenderer:{title:X,titleAnnotation:v,icon:{iconType:I},subtitle:uv,content:Q,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:u}]}}}}],loggingDirectives:{clientVeSpec:{uiType:c}}}};
RV2=function(W,e,t,b,m,q,Q,X,I,u,c){t=t===void 0?{}:t;b=b===void 0?{}:b;m=m===void 0?!1:m;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;X=X===void 0?!1:X;I=I===void 0?!1:I;u=u===void 0?0:u;c=c===void 0?-Infinity:c;if(!(e.length||W.length||m||X))return q?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:MRQ(t)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.tm(_.Gv("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var v=[];W.length&&v.push(qh2(W,0));X?v.push({contents:[{statementBannerRenderer:tlg(I,b)}]}):m?v.push(qh2(e,1,t,Q,u,c)):q&&v.push({contents:[{statementBannerRenderer:eVG(t)}]});(m&&e.length||W.length)&&v.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tm(_.Gv("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return v.map(function(D){return{itemSectionRenderer:D}})};
Kv=function(W,e){if(typeof W!=="object")return null;W=_.R(Object.entries(W));for(var t=W.next();!t.done;t=W.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;if(t===e)return t;if(b=Kv(b,e))return t+"."+b}return null};
PL=function(W){var e=W.content;return(W=W.styleRuns)&&e?{runs:W.map(function(t){var b={text:e.slice(t.startIndex,t.startIndex+t.length)};t.fontColor&&(b.textColor=t.fontColor);return b})}:{simpleText:e}};
Xd9=function(W,e,t,b){var m=QcS;b&&(W.quantity=b);if(!W.quantity||!W.maxQuantity)return{};b=W.minusButton;var q=W.plusButton,Q,X,I,u;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(c){m(W,c)},
minusLabel:(Q=_.l(b,FS9))==null?void 0:Q.label,minimumReachedLabel:(X=_.l(b,FS9))==null?void 0:X.limitReachedLabel,plusLabel:(I=_.l(q,FS9))==null?void 0:I.label,maximumReachedLabel:(u=_.l(q,FS9))==null?void 0:u.limitReachedLabel,disabled:e,onRemoveCommand:t}};
QcS=function(W,e){var t=W.quantityIncrementerEntityKey;if(t){var b={};b.quantity=e;_.Uz(_.gN("quantityIncrementerEntity",t,b));W.onChangeCommand&&_.K4(W.onChangeCommand)}};
wdg=function(W,e){(W=I99(W))&&(e?a9G.push({command:W,sourceData:{},commandContext:void 0}):_.ee().resolve(_.tQ).resolveCommand(W))};
I99=function(W){return _.l(W,_.OD)};
ugc=function(){var W=window.performance.timeOrigin+window.performance.now(),e=(new _.Vg).setSeconds(W/1E9);return _.kE(e,2,_.ZM(W%1E9),0)};
i0=function(W,e){var t=_.l(_.l(W,_.OD),coZ);t&&(e&&(t.serializedAdditionalMetadata=_.eK(e)),wdg(W,!0))};
vfQ=function(W){switch(W){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"}};
GWS=function(){return!!_.Ot("ID_TOKEN")};
BCg=function(W){return W instanceof Error&&W.cause instanceof DmR&&W.cause.rpcErrorCode!==void 0?!ShG.includes(W.cause.rpcErrorCode):!0};
l9s=function(){return _.Ut(of2,{authuser:""+(_.Ot("SESSION_INDEX")||0)})};
YL=function(W,e,t,b){t=t===void 0?"MINI_APP_SDK_API_UNSPECIFIED":t;b=b===void 0?"":b;var m=new _.o_;t={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:b,sdkApi:t};W instanceof Error&&(m.message=W.message,m.name=W.name,W.cause instanceof DmR&&W.cause.rpcErrorCode!==void 0&&(t.rpcErrorCode=W.cause.rpcErrorCode));var q;(q=e.onError)==null||q.call(e,{loggingError:m,metadata:t})};
$mg=function(W,e,t,b){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new z_(e,t,b);default:return new Z0L(e,t,b)}};
kWg=function(W){switch(W){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"}};
pdL=function(W){switch(W){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"}};
yoQ=function(W){switch(W){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"}};
jcz=function(){return Math.floor(Math.random()*4)+1};
C1Z=function(W,e,t,b){W=_.R(Object.entries(W));for(var m=W.next(),q={};!m.done;q={message$jscomp$958:void 0},m=W.next()){var Q=_.R(m.value);m=Q.next().value;Q=Q.next().value;q.message$jscomp$958=Q;e.push(setTimeout(function(X){return function(){b(!1);t(X.message$jscomp$958.text)}}(q),q.message$jscomp$958.delayMs));
Number(m)>0&&e.push(setTimeout(function(){b(!0)},q.message$jscomp$958.delayMs-400))}};
nfv=function(W,e){var t=t===void 0?Hjz:t;_.S("mweb_fix_monitor_visibility_after_render")?W&&C4(function(){Vav(W,e,t)}):C4(function(){Vav(W,e,t)})};
gfZ=function(W){var e=W.data;var t=W.uniqueId;W=W.overrides;var b,m=((b=e.timedAnimationData)==null?void 0:b.animationTiming)||[];return _.w("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.w(xb,{settings:{uniqueId:t,timings:m,experimentEnabled:m.length>0,enabled:m.length>0}},f9z(e.buttonRenderer,{buttonRenderer:{buttonOverrides:W}})))};
O0z=function(W){TCG||(TCG=Jog(new _.Hm(1,void 0,void 0,xm9),0));var e=TCG.format(Math.floor(W));e=_.hm==="be"||_.hm==="bg"||_.hm==="es"||_.hm==="et"||_.hm==="hu"||_.hm==="ka"||_.hm==="lv"||_.hm==="pl"||_.hm==="pt-PT"||_.hm==="sq"?e.replace(new RegExp("^(\\d)"+xm9.GROUP_SEP.replace(".","\\.")+"(\\d+("+xm9.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):e;return W>=1E3&&W<=9999&&e[1]==="."&&(_.hm==="sl"||_.hm==="it")?e.replace(".",""):e};
MlD=function(W,e){f4("ytd-button-renderer",{data:W,className:e?e.className:"",overrides:e==null?void 0:e.buttonOverrides},Lh)};
H0z=function(W,e,t,b){if(W)return b=b||W.likeStatus,e?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:t},defaultText:b==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:b==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:scK(W,"LIKE"),defaultServiceEndpoint:hVR(W,"LIKE"),toggledServiceEndpoint:hVR(W,"INDIFFERENT"),defaultTooltip:_.Ub(W.likeCountTooltipText),toggledTooltip:_.Ub(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:t},defaultText:b==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:b==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:scK(W,"DISLIKE"),defaultServiceEndpoint:hVR(W,"DISLIKE"),toggledServiceEndpoint:hVR(W,"INDIFFERENT"),defaultTooltip:_.Ub(W.dislikeCountTooltipText),
toggledTooltip:_.Ub(W.dislikeCountTooltipText)}};
scK=function(W,e){if(e==="LIKE")return W.likeCommand;if(e==="DISLIKE")return W.dislikeNavigationEndpoint};
hVR=function(W,e){var t;return(t=W.serviceEndpoints)==null?void 0:t.find(function(b){var m;return((m=_.l(b,_.UR))==null?void 0:m.status)===e})};
_.VlG=function(W,e,t){return window.spf&&!_.S("web_disable_spfjs_client")?KSg(W,e,t):P1v(W,e)};
KSg=function(W,e,t){var b=null,m=(new _.c3(function(q,Q){var X={};if(e){X.method=e.method;var I=e.postParams||{};Ycg(W,e)&&(I[_.Ot("XSRF_FIELD_NAME")]=_.Ot("XSRF_TOKEN"));X.postData=_.w8(I);e.type&&(X.type=e.type);I=e.headers}X.headers=hr9(W,I);_.S("debug_forward_web_query_parameters")&&(W=_.VvQ(W,window.location.search));X.experimental_headers=X.headers;X.onError=function(u){u.err&&u.xhr&&(u.err.params={url:u.xhr.responseURL,response:u.xhr.responseText.substr(0,64)});Q(u.err)};
X.onPartDone=function(u){t&&t.call(null,u.part)};
X.onDone=function(u){var c=i0S(u.response,"xsrf_token");AJ(window.location.href,W)&&c&&_.xq("XSRF_TOKEN",c);if(c=i0S(u.response,"service_worker_killswitch"))_.xq("SERVICE_WORKER_KILLSWITCH",c),BWK();q(u.response)};
b=spf.request(W,X)})).then(Yhs);
m.thenCatch(function(q){var Q=q instanceof _.Lv,X=q&&q.hasOwnProperty("params")&&q.params.response?q.params.response:"";q instanceof Error&&(X?Q?n5K(q):X===')]}\'\n{"reload":"now"}'?n5K(q):(zVs(q,W,X),Umv(q,X)?_.JC(q):_.gQ(q)):n5K(q));b&&b.abort()});
return m};
Yhs=function(W){if(W.type==="multipart"){var e=W.timing;W=W.parts.reduce(function(t,b){Object.assign(t,b);return t},{});
W.timing=W.timing||{};Object.assign(W.timing,e);W.type="reduced"}return W};
P1v=function(W,e){e=e===void 0?{}:e;var t=null,b=new _.c3(function(m,q){e.onFinish=function(Q){if(Q.readyState===XMLHttpRequest.DONE)if(Q.status===200){if(Q.responseType!=="json"){var X=Q.response;X.substring(0,5)===")]}'\n"&&(X=X.substring(5));try{var I=JSON.parse(X)}catch(u){I=u}}else I=Q.response;I instanceof Error?q(I):(X=i0S(I,"xsrf_token"),AJ(window.location.href,W)&&X&&_.xq("XSRF_TOKEN",X),Q=Q.responseURL,window.performance&&window.performance.getEntriesByName?(X=window.performance.getEntriesByName(Q).pop())?
Q={responseStart:(0,_.eJ)()-(X.responseEnd-X.responseStart)}:(Math.random()<.01&&(X=Error("bi"),X.params=Q,_.JC(X)),Q={responseStart:-1}):Q={responseStart:0},I.timing=I.timing||{},Object.assign(I.timing,Q),m(I))}else q(Error("ai`"+Q.status))};
(t=_.a_(W,e))||q(Error("ai`"+t.status))});
b.thenCatch(function(m){m instanceof Error&&(zVs(m,W),Umv(m)&&(m.level="WARNING"))});
_.S("cancel_pending_navs")&&b.thenCatch(function(){t.abort()});
return b};
i0S=function(W,e){var t=W[e],b=W.parts;W.type==="multipart"&&b&&(t=(W=b.find(function(m){return e in m}))&&W[e]);
return t};
zVs=function(W,e,t){var b=W.message||"";e={original:b,url:e};if(t)if(b=b.match(/position:?\s*(\d+)/)){b=b&&Number(b[1])?Number(b[1]):0;var m=Math.max(b-25,0);e.position=b;e.response=t.substring(m,b+25)}else e.response=t.substring(0,50);_.xM(W,e);try{W.message="JSON parse error"}catch(q){}};
Umv=function(W,e){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&e)for(var t=e.length,b=!1,m=0;m<t;m++)if(b&&e[m]==="\\")m++;else if(e[m]==='"')b=!b;else if(e[m]==="<"&&!b){W=!0;break}return W};
LSg=function(){return document.documentElement.hasAttribute("dark")};
_.EfL=function(W,e){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.st(Error("ci`"+W));else{var t=_.ee().resolve(_.Wi(_.WS));if(t&&(t=t.getCurrentPage())&&t.getServiceTrackingParams&&(t=t.getServiceTrackingParams()))for(var b=0,m;m=t[b++];)if(m.service===W){if(W=m.params)for(t=0;b=W[t++];)e[b.key]=b.value;break}}};
_.AoQ=function(W){var e=_.tv();e&&(e=e.getPlayer())&&(e.pauseVideo(),W.playback_id=e.getVideoData().cpn,W.eid=e.getVideoData().eventId,Object.assign(W,e.getFeedbackProductData()))};
NCQ=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Ot("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.Ot("SESSION_INDEX")&&(W.authuser=String(_.Ot("SESSION_INDEX")));_.S("enable_pageid_for_feedback")&&_.Ot("DELEGATED_SESSION_ID")&&(W.pageId=String(_.Ot("DELEGATED_SESSION_ID")));return W};
_.ER=function(W){_.S("enable_ypc_spinners")&&_.RT(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.A3=function(W){_.S("enable_ypc_spinners")&&_.RT(W,"yt-close-popup-action",["yt-loading-renderer"])};
dmD=function(W){return new Promise(function(e,t){_.sD({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(b,m){m||t("ChallengeService did not return a response.");var q;e({challengeCompleted:(q=m.verified)!=null?q:!1})},
onServerError:function(b,m){t(m)}}})})};
Ws2=function(W,e,t,b){e({recaptchaResponse:b}).then(function(m){m.challengeCompleted?_.DK()?(t(3),_.ee().resolve(_.tQ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):t(2):t(4)},function(){t(4)})};
e3G=function(W,e,t){_.sT("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Ot("HL"),function(){var b;(b=window.grecaptcha)==null||b.ready(function(){var m=window.grecaptcha;m?(t(m.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Ws2.bind(null,W,dmD,e)})),e(1)):e(4)})})};
tnG=function(W,e){return function(){switch(e()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.NZ=function(){if(!bZL){var W=document.querySelector("#player.skeleton");W&&(_.BX(W),bZL=!0)}};
_.rgG=function(){return mbc=Bts()};
QOv=function(){return _.F(function(W){return qkG!==void 0?W.return():_.a(W,R3S(),0)})};
R3S=function(){return _.F(function(W){if(W.nextAddress==1)return _.a(W,lUG(),2);mbc=W.yieldResult;qkG=_.Tm.addLowPriorityJob(R3S,5E3);_.u8(W)})};
u9G=function(W){var e=e===void 0?FsD:e;var t,b,m=(t=W.responseContext)==null?void 0:(b=t.mainAppWebResponseContext)==null?void 0:b.trackingParam;if(!m){e.increment("MISSING");var q,Q,X,I,u,c;_.JC(new _.o_("282054944_a",{vXg:!!((q=W.responseContext)==null?0:(Q=q.mainAppWebResponseContext)==null?0:Q.loggedOut),o3q:((X=W.responseContext)==null?void 0:X.mainAppWebResponseContext)===void 0,yQk:W.responseContext===void 0,fIn:(I=W.playabilityStatus)==null?void 0:I.contextParams,hAb:(((u=W.streamingData)==
null?void 0:u.formats)||[]).length>0,t3k:(((c=W.streamingData)==null?void 0:c.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}t="";try{t=XyG(m)}catch(B){return e.increment("C_ERROR"),_.gQ(B),2}try{var v=_.IP9(t);var D=aPz(v)}catch(B){return e.increment("P_ERROR"),_.gQ(B),2}D=_.eh(D,wyD,1,_.tE());m=[];D=_.R(D);for(v=D.next();!v.done;v=D.next())b=v.value,v=b.getPath(),t=(0,_.kJ.getValueByKeys)(W,v.split(".")),t=String(t===void 0||t===null?"":t),b=b.getValue()||"",q=/[+\-\/_]/g,
t.replace(q,"")!==b.replace(q,"")&&(e.increment("MISMATCH"),_.S("ab_mis_log_err")&&(t=new _.o_("282054944_p",{pID:v,g:String(t),e:String(b)}),_.gQ(t)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(v)||(v.match(/enforcementMessageViewModel/i)?m.push(3):m.push(2)));if(m.length>0)return Math.max.apply(Math,_.kP(m));e.increment("SUCCESS");return 1};
GcR=function(W){var e=new dk;if(W.interpreterJavascript){var t=_.lNv(W.interpreterJavascript);t=sV(t).toString();var b=new cgD;_.Ga(b,6,t);_.bF(e,1,b,Mo)}else W.interpreterUrl&&(t=_.J7(W.interpreterUrl),t=_.Xh(t).toString(),b=new _.v8Z,_.Ga(b,4,t),_.bF(e,2,b,Mo));W.interpreterHash&&_.WN(e,3,W.interpreterHash,Mo);W.program&&_.WN(e,4,W.program,Mo);W.globalName&&_.WN(e,5,W.globalName,Mo);W.clientExperimentsStateBlob&&_.WN(e,7,W.clientExperimentsStateBlob,Mo);return e};
ej=function(W){var e={};W=_.R(W.split("&"));for(var t=W.next();!t.done;t=W.next())t=t.value.split("="),t.length===2&&(e[t[0]]=t[1]);return e};
DbK=function(W){return Number(W.t)||7200};
yE9=function(){if(_.S("bg_st_hr"))return"havuokmhhs-0";var W,e=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)};
SkQ=function(){return new Promise(function(W){var e=window.top;e.ntpevasrs!==void 0?W(new ti(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(t){W(new ti(t))}))})};
Be2=function(W){var e=W.uR3.bind(W);_.Nz("yt.aba.att",e);W=W.oTK.bind(W);_.Nz("yt.aba.att2",W)};
lPR=function(W){switch(_.I_(W.input)){case _.Am(o8v):var e={};return e.encryptedVideoId=W.innerTubeRequest.externalVideoId,e}return{}};
$bZ=function(W){switch(_.I_(W.input)){case _.Am(o8v):if(_.S("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Am(bC):if(_.S("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Am(ZZG):var e,t;if(_.S("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((t=_.l((e=W.config)==null?void 0:e.command,
kss))==null?0:t.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.pyQ=function(W){var e;if(W.playlistVideoRenderer&&((e=W.playlistVideoRenderer)==null?0:e.engagementBar))return kcD(W.playlistVideoRenderer.engagementBar);if(_.l(W,mz)){var t;if(W=(t=_.l(W,mz))==null?void 0:t.engagementBar)return kcD(W)}return""};
kcD=function(W){if(!W)return"";W=_.l(W,_.ygL);if(W==null||!W.actions)return"";W=_.R(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.l(W.value,_.jOz);var e=void 0;if((e=W)==null||!e.itemId)break;return W.itemId}return""};
_.Coz=function(W){var e;if(W.playlistVideoRenderer&&((e=W.playlistVideoRenderer)==null?0:e.videoId))return W.playlistVideoRenderer.videoId;if(_.l(W,mz)){var t,b;if(W=(t=_.l(W,mz))==null?void 0:(b=t.playlistItemData)==null?void 0:b.videoId)return W}return""};
_.n89=function(W){var e;if(W.playlistVideoRenderer&&((e=W.playlistVideoRenderer)==null?0:e.voteCount))return W.playlistVideoRenderer.voteCount;if(_.l(W,mz)){var t,b;if(W=(t=_.l(W,mz))==null?void 0:(b=t.playlistItemData)==null?void 0:b.voteCount)return W}return 0};
_.r0=function(W,e){return _.I1(W.entities,"flowStateEntity",e)};
g8G=function(W,e,t,b){var m=void 0;W=_.R(W[e.iconName]||[]);for(var q=W.next();!q.done;q=W.next()){q=q.value;var Q=e.iconSize;var X=e.iconStyle;Q=!Q||Q===q[2];var I=fPc[q[0]];b&&b!==q[1]||!Q||X&&X!==I?X=!1:m?(X=fPc[q[0]],X=!!e.iconStyle||X==="youtube_outline",Q=m.version<=q[1],X=(!!e.iconSize||q[2]===24)&&X&&Q):X=!0;X&&(m={name:e.iconName,style:fPc[q[0]],size:q[2],version:q[1],allowMirroring:!!q[3],url:t(e.iconName,q)})}return m};
TeS=function(W,e,t,b){return W+(""+fPc[t[0]]+((b===void 0?0:b)?"_experimental":"")+"/"+e+"/v"+t[1]+"/")+(t[2]+"px.svg")};
qw=function(W){return _.S("web_bookmark_playlist_save_icon")?"bookmark":W};
JgL=function(W,e){return TeS("https://fonts.gstatic.com/s/i/",W,e)};
xbK=function(W,e){return TeS("https://fonts.gstatic.com/s/i/",W,e,!0)};
OZK=function(W,e){return TeS("https://www.gstatic.com/youtube/img/icons/web/",W,e)};
sOc=function(W){var e=W.enabled;var t=W.itemPlaybackModel;var b=W.thumbnailElRef;var m=W.containerElRef;var q=W.options;var Q;_.nh(function(){var X=m==null?void 0:m.value;var I,u=(I=b())==null?void 0:I.value;I=t();var c=q();if(e&&I&&X&&u&&(c==null?0:c.thumbnail)){var v={data:I,hostElement:X},D,B,k=_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover")?[].concat(_.kP((D=c.thumbnailOverlays)!=null?D:[]),_.kP((B=I.overlays)!=null?B:[])):c.thumbnailOverlays||[],n,f;X={mediaRenderer:v,
lockupElement:X,thumbnailElement:u,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Mk((n=I.inlinePlayerData)==null?void 0:n.onVisible),navigationEndpoint:_.Mk((f=I.inlinePlayerData)==null?void 0:f.onSelect),thumbnail:c.thumbnail,thumbnailOverlays:k,accessibilityText:c.accessibilityText||""},thumbnailSize:c.thumbnailSize,enableRounding:c.enableRounding}}}else X=void 0;if(n=X){var M;(M=Q)==null||R4(M);Q=EQ(n);var K,U;((K=t())==null?0:(U=K.inlinePlayerData)==null?0:U.forceImpAutoplay)&&
MnD(Q)}},"B33dEc");
_.fh(function(){var X;(X=Q)==null||R4(X)})};
h3K=function(W){W=atob(W);for(var e=[],t=0;t<W.length;t++)e.push(W.charCodeAt(t));return new Blob([new Uint8Array(e)],{type:"image/png"})};
KsS=function(W,e,t,b){b=b===void 0?"INSERTION_POSITION_UNSPECIFIED":b;return W({targetId:e},function(m){var q,Q=(q=m.contents)!=null?q:[];q=t!=null?t:[];var X=HZD(Q);switch(b){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},m,{contents:[].concat(_.kP(Q.slice(0,X)),_.kP(q),_.kP(Q.slice(X+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},m,{contents:[].concat(_.kP(q),_.kP(Q))});case "INSERTION_POSITION_LAST":return Object.assign({},m,{contents:[].concat(_.kP(Q),_.kP(q))});
default:return m}})};
Vns=function(W,e,t,b,m){m=m===void 0?"RELATIVE_INSERTION_POSITION_AFTER":m;return W({targetId:e},function(q){var Q,X=(Q=q.contents)!=null?Q:[];Q=PoD(X,t);if(Q<0)return q;Q=m==="RELATIVE_INSERTION_POSITION_BEFORE"?Q:Q+1;return Object.assign({},q,{contents:[].concat(_.kP(X.slice(0,Q)),_.kP(b),_.kP(X.slice(Q)))})})};
HZD=function(W){var e=W.findIndex(function(t){return _.l(t,_.Q$)});
return e>=0?e:W.length};
PoD=function(W,e){return W.findIndex(function(t){a:{t=_.R(Object.values(t));for(var b=t.next();!b.done;b=t.next())if((b=b.value)&&b.targetId){t=b.targetId;break a}t=""}return t===e})};
Yk2=function(W,e,t){return W({targetId:e},function(b){var m,q=(m=b.contents)!=null?m:[];return Object.assign({},b,{contents:iZv(q,t)})})};
iZv=function(W,e){return W.filter(function(t){var b=e.includes;a:{t=_.R(Object.values(t));for(var m=t.next();!m.done;m=t.next())if((m=m.value)&&m.targetId){t=m.targetId;break a}t=""}return!b.call(e,t||"")})};
_.z3Q=function(W,e){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:e,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.LsD=function(W){var e,t=(e=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?e:[];return t=Ub2(t,W)};
E8S=function(W){return W.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Ub2=function(W,e){e=E8S(e);if(e==null||!e.length)return W;var t=e.filter(function(Q){return Q});
e=W.filter(function(Q){return Q.languageCode.startsWith("en")});
t=_.R(t);for(var b=t.next();!b.done;b=t.next())if(b=b.value,e.length){var m=e[0],q=Object.assign({},m);m.languageCode!==b.languageCode&&(q.displayName=m.languageName+" >> "+b.languageName,q.translationLanguage=b,W.push(q))}return W};
AgR=function(W,e,t){W=_.LsD(W);if(W.length)return t?W.find(function(b){if(typeof(b==null?void 0:b.translationLanguage)==="object"){var m;return((m=b.translationLanguage)==null?void 0:m.languageCode)===e}return!1}):W==null?void 0:W.find(function(b){return b.languageCode===e})};
Ne9=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
db2=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
WvG=function(W){var e=db2(W);if(e==null?0:e.length)return e;W.loadModule("captions");return db2(W)};
eCG=function(W){var e=W.getOption("captions","track");if(e)return e;W.loadModule("captions");return W.getOption("captions","track")};
bgs=function(W){var e=WvG(W);if(e!=null&&e.length){var t=eCG(W),b;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Gv("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(t==null?0:t.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.kP(e.map(function(m){return{listItemViewModel:{title:{content:m.displayName},
isSelected:m.displayName===(t==null?void 0:t.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:m.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Gv("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!t.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!t.translationLanguage&&{selectionText:{content:(t==null?void 0:(b=t.translationLanguage)==null?void 0:b.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ti2(W)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
ti2=function(W){var e=E8S(W);if(e==null||!e.length)throw Error("Ai");var t=eCG(W);W=e.filter(function(b){return!b.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.kP(W.map(function(b){var m;return{listItemViewModel:{title:{content:b.languageName},isSelected:b.languageName===(t==null?void 0:(m=t.translationLanguage)==null?void 0:m.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:b.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
RCG=function(W){return new Promise(function(e,t){if(W===void 0)_.gQ(Error("Ei"),"ERROR"),t(Error("Ei"));else{t=new _.mxK;var b=_.rVL();t=t.init();var m=_.qKL(_.Ot("YPC_MB_URL"),!0);Promise.all([t,m]).then(function(){var q=payments.business.integration.ClientTokenFactory.createClientToken(W,b);e(q)})}})};
Xcc=function(W,e,t,b,m,q,Q){var X=_.UZ();t=t.replace(/-/g,"+").replace(/_/g,"/");var I=_.B6().get("hl"),u=_.Fq(_.Ur),c=e==null?void 0:e.element;c&&_.ER(c);QFL(e,!0);_.Fvv(u,t,X.resolve,function(){c&&_.A3(c)},function(v){c&&_.A3(c);
X.reject(v)},I,b?function(v){b&&_.z2(W,b,{backend_analytics:v})}:void 0,X.resolve,m,q,Q);
return X.promise};
QFL=function(W,e){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=e)};
IfG=function(){var W=_.Gv("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.tm(W),actionButton:{buttonRenderer:Jws()}}},popupType:"TOAST"}};
afQ=function(){var W=_.Gv("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.tm(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
wcR=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
Xq=function(W,e,t,b){var m;return _.F(function(q){if(q.nextAddress==1)return _.Qh(q,2),_.a(q,W,4);if(q.nextAddress!=2)return(m=_.lX(e.getState().entities).length>0)?q.return({title:_.tm(_.Gv("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.tm(_.Gv("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:TmG()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
q.return(xOz(t,b));_.w9(q);return q.return(xOz(t,b))})};
uoZ=function(W,e){return e?e==="PPSV"||TfR(W,e):!1};
cVG=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
a4=function(W){var e;return _.F(function(t){return t.nextAddress==1?_.a(t,v$D(W,"service:topbar:fallback"),2):(e=t.yieldResult)&&_.I4(e)?t.return(cVG(_.I4(e))):t.return()})};
GGv=function(W){var e;return _.F(function(t){return t.nextAddress==1?_.a(t,v$D(W,"service:downloads_settings:fallback"),2):(e=t.yieldResult)&&_.I4(e)?t.return(e):t.return()})};
v$D=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return W?_.a(b,W.get(e),2):b.return();t=b.yieldResult;return!t||!_.I4(t)||!isNaN(Number(t.data.expireTimestampMs))&&t.isExpired()?b.return():b.return(t)})};
Dx2=function(W){var e=_.ee().resolve(w0).getState().entities;return W.playlistId?uoZ(e,W.playlistId):!1};
SKR=function(W,e){var t;if(e==null?0:(t=e.requestTemplate)==null?0:t.panelId)W.panelId=e.requestTemplate.panelId;var b;if(e==null?0:(b=e.requestTemplate)==null?0:b.params)W.params=e.requestTemplate.params};
o$G=function(){if(BIK)return BIK();var W=!_.S("idb_response_store_auth_killswitch"),e={};BIK=WH("yt-it-response-store",{objectStores:(e.ResponseStore={addedAtVersion:1},e),shared:!W,upgrade:function(t,b){b(1)&&(t=HH(t,"ResponseStore",{keyPath:["key","clientName"]}),K_(t,"byExpiration","expireTimestampMs"),K_(t,"byInterface","clientName"))},
version:1});return BIK()};
lf9=function(W){return _.iG(o$G(),W)};
$xD=function(W,e){var t;return _.F(function(b){return b.nextAddress==1?_.a(b,_.d8(),2):(t=b.yieldResult)?b.return(new Zgc(W,e,t)):b.return()})};
kGD=function(W){var e=Object.keys(W)[0];if(e)return W.screenExit&&(e=e+";"+W.screenExit.screen),e};
pcG=function(W){var e=new Map;W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,t!=null&&(e.has(t.taskType)||e.set(t.taskType,[]),e.get(t.taskType).push(t));return e};
yVQ=function(W){return!isNaN(W)&&W>0};
jFc=function(W){W=[].concat(_.kP(W)).sort(function(t,b){return t-b});
var e=Math.floor(W.length/2);return W.length%2?W[e]:(W[e-1]+W[e])/2};
ffG=function(W,e){W=W===void 0?c_Z:W;e=e===void 0?{}:e;_.Nz("yt.logging.errors.log",_.gQ);wgc();C3G(BAG(),e);window.onerror=W;n$c=u1G;window.addEventListener("unhandledrejection",function(t){if(t.reason instanceof Error){var b=t.reason;_.xM(b,{source:"unhandledrejection"});b.name==="AbortError"&&(b.level="WARNING")}u1G(t.reason);t.preventDefault()})};
_.g$2=function(W){return W.a11y.ephemeralAction||null};
_.TID=function(W){var e,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv,GS,k9,CQ,fQ,iv,hz,ES,Wu,pr,ay,PU,cu,LQ,sB,z1,FD;return _.F(function(DD){if(DD.nextAddress==1)return _.a(DD,_.Gq(W,{mode:"readonly",enableRetries:!0},function(nr){return DN(nr,"playbackData").then(function(UB){var ZD=UB.map(function(qo){return qo.transfer}).filter(function(qo){return!!qo}),US=UB.map(function(qo){return qo.offlineVideoPolicy}).filter(function(qo){return!!qo}),Ha=UB.filter(function(qo){return!!qo.key}).map(function(qo){return _.X4(_.R1(qo.key).entityId,
"downloadStatusEntity")});
ZD=DN(nr,"transfer",ZD);US=DN(nr,"offlineVideoPolicy",US);Ha=DN(nr,"downloadStatusEntity",Ha);var zZ=ZD.then(function(qo){qo=qo.reduce(function(sS,ST){(ST==null?0:ST.offlineVideoStreams)&&sS.push.apply(sS,_.kP(ST.offlineVideoStreams));return sS},[]).filter(function(sS){return!!sS});
return DN(nr,"offlineVideoStreams",qo)});
return Oi.all([ZD,US,zZ,Ha]).then(function(qo){var sS=_.R(qo);qo=sS.next().value;var ST=sS.next().value;var SP=sS.next().value;sS=sS.next().value;return[UB,qo,ST,SP,sS]})})}),2);
if(DD.nextAddress!=3)return e=DD.yieldResult,_.a(DD,_.Gq(W,{mode:"readonly",enableRetries:!0},function(nr){return DN(nr,"mainDownloadsListEntity").then(function(UB){var ZD,US;return(US=(ZD=UB[0])==null?void 0:ZD.downloads)!=null?US:[]})}),3);
t=DD.yieldResult;b=_.R(e);m=b.next().value;q=b.next().value;Q=b.next().value;X=b.next().value;I=b.next().value;u=m;c=q;v=Q;D=X;B=I;k={};n={};f={};M={};K={};U=[];V=_.R(c);for(L=V.next();!L.done;L=V.next())(E=L.value)&&(k[E.key]=E);RR=_.R(v);for(uv=RR.next();!uv.done;uv=RR.next())(GS=uv.value)&&(n[GS.key]=GS);k9=_.R(B);for(CQ=k9.next();!CQ.done;CQ=k9.next())(fQ=CQ.value)&&(f[fQ.key]=fQ);iv=_.R(D);for(hz=iv.next();!hz.done;hz=iv.next())(ES=hz.value)&&(M[ES.key]=ES);Wu=_.R(t);for(pr=Wu.next();!pr.done;pr=
Wu.next())ay=pr.value,PU=void 0,K[(PU=ay.videoItem)!=null?PU:""]=!0,ay.videoItem&&(LQ=cu=void 0,sB=(LQ=(cu=_.R1(ay.videoItem))==null?void 0:cu.entityId)!=null?LQ:"",U.push({externalVideoId:sB}));z1=u.filter(function(nr){if(!nr||!nr.key||!nr.offlineVideoPolicy)return!1;nr=_.R1(nr.key).entityId;nr=_.X4(nr,"downloadStatusEntity");var UB;return!(nr&&((UB=f[nr])==null?void 0:UB.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
FD=z1.map(function(nr){var UB=k[nr.transfer],ZD=[];if(UB==null?0:UB.offlineVideoStreams)for(var US=_.R(UB.offlineVideoStreams),Ha=US.next();!Ha.done;Ha=US.next())(Ha=M[Ha.value])&&ZD.push(Ha);US=n[nr.offlineVideoPolicy];Ha=K;var zZ=nr==null?void 0:nr.playerResponseTimestamp,qo=_.R1(US.key).entityId;nr=_.X4(qo,"mainVideoEntity");if(US.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var sS="OFFLINE_VIDEO_STATE_DISABLED";US.expirationTimestamp&&Number(US.expirationTimestamp)<Date.now()/1E3&&(sS="OFFLINE_VIDEO_STATE_EXPIRED")}else if(US.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")sS="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(UB==null?void 0:UB.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":sS="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":sS="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":sS="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":sS="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":sS="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":sS="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:sS="OFFLINE_VIDEO_STATE_UNKNOWN"}if(sS==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(UB==null?void 0:UB.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":sS="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":sS="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":sS=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}qo={id:qo,videoState:sS};if(UB==null?0:UB.cotn)qo.cotn=UB.cotn;if(UB==null?0:UB.maximumDownloadQuality)qo.selectedVideoQuality=UB==null?void 0:UB.maximumDownloadQuality;if(UB==null?0:UB.lastProgressTimeMs)qo.lastProgressTimeMs=UB.lastProgressTimeMs;zZ&&(qo.playerResponseSavedTimeMs=String(Number(zZ)*1E3));UB=String;zZ=0;ZD=_.R(ZD);for(sS=ZD.next();!sS.done;sS=ZD.next())if(sS=sS.value,sS.streamsProgress){sS=_.R(sS.streamsProgress);for(var ST=sS.next();!ST.done;ST=
sS.next()){var SP=void 0;zZ+=Number((SP=ST.value.numBytesDownloaded)!=null?SP:0)}}qo.downloadedBytes=UB(zZ);qo.selectedOfflineMode=Ha[nr]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";US.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(qo.offlinePlaybackDisabledReason=US.offlinePlaybackDisabledReason);return qo});
return DD.return({offlineVideos:FD,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:U}}})})};
JVL=function(){var W;return _.F(function(e){return e.nextAddress==1?_.a(e,_.uX(),2):(W=e.yieldResult)?e.return(_.TID(W)):e.return({state:"PES Unavailable"})})};
Mis=function(){var W,e,t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,_.uX(),2);if(m.nextAddress!=3)return(W=m.yieldResult)?_.a(m,xxK(W),3):m.return({state:"PES Unavailable"});e=m.yieldResult;t={};b=e.reduce(function(q,Q){q[Q.key]=Q;return q},t);
return m.return(Og9(b))})};
Og9=function(W){for(var e={},t=[],b=_.R(Object.keys(W)),m=b.next();!m.done;m=b.next()){var q=m.value;m=W[q];var Q=void 0;if(((Q=m)==null?void 0:Q.entityType)==="mainVideoEntity"){delete W[q];var X=m.data;m={};if(X){var I=void 0;Q=(I=X.videoId)!=null?I:"vid-"+q;q=W;m.video=X;delete m.video.formattedDescription;delete m.video.thumbnail;X.owner&&(I=q[X.owner],I==null?0:I.data)&&(delete q[I.key],m.video.owner=I.data,delete m.video.owner.avatar);if(X=X.downloadState)if(I=q[X],I==null?0:I.data)if(delete q[X],
X=I.data.playbackData)if(I=q[X],I!=null&&I.data){delete q[X];X=I.data;delete X.playerResponseJson;m.playbackData=X;if(X.transfer&&(I=q[X.transfer],I==null?0:I.data)){delete q[I.key];var u=I.data;m.transfer=u;I=[];u=_.R(u.offlineVideoStreams||[]);for(var c=u.next();!c.done;c=u.next())if(c=q[c.value])delete q[c.key],I.push(c.data);I&&(m.streams=I)}(X=X.offlineVideoPolicy)&&(X=q[X])&&X.data&&(delete q[X.key],m.offlineVideoPolicy=X.data)}e[Q]=m}}else m&&m.entityType==="offlineOrchestrationActionWrapperEntity"&&
m.data&&(delete W[m.key],Q=m.data,q=void 0,t.push({id:Q.rootActionId,type:((q=Q.actionProto)==null?void 0:q.actionType)||"",entity:m}))}e.wrapperEntities=t;Object.keys(W).length>0&&(e.unknownKeys=W);return e};
sFc=function(){var W,e,t,b,m,q,Q,X,I;return _.F(function(u){if(u.nextAddress==1)return W=!!(new _.sH("")).expiringStorage_,b=!!((e=_.tz.crypto)==null?0:(t=e.subtle)==null?0:t.importKey),m=!!_.tz.BroadcastChannel,q=!!_.tz.navigator.locks,_.a(u,YTG(),2);Q=u.yieldResult;X=W&&b&&m&&q&&Q;I={isSupported:X};if(X)return u.return(I);I.missingBrowserFeatures=[];Q||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
b||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");m||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");q||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return u.return(I)})};
hCv=function(){var W;return!((W=uC?uC:null)==null||!W.window)};
_.Kvv=function(W){if(_.nQ()&&_.Igg("Chromium")>=120){var e=_.HgZ().mediaSession;try{e.setActionHandler("enterpictureinpicture",function(){W()})}catch(t){}}};
P3g=function(W){for(var e=[],t=_.R(document.styleSheets),b=t.next(),m={};!b.done;m={node$jscomp$732:void 0},b=t.next())m.node$jscomp$732=b.value.ownerNode,m.node$jscomp$732&&(m.node$jscomp$732 instanceof HTMLStyleElement||m.node$jscomp$732 instanceof HTMLLinkElement)&&e.push(new Promise(function(q){return function(Q){var X=q.node$jscomp$732.cloneNode(!0);X.onload=function(){Q()};
X.onerror=function(){_.JC(Error("gj"));Q()};
W.document.head.appendChild(X)}}(m)));
return Promise.all(e)};
dxs=function(W){var e=[_.eH(ViS),_.eH(igQ),_.eH(YKK)];zCL(window.document.documentElement,W.document.documentElement,[_.eH(UxK),_.eH(Lvc),_.eH(E$c),_.eH(AVS),_.eH(NIK)]);zCL(window.document.body,W.document.body,e)};
zCL=function(W,e,t){W=_.R(W.attributes);for(var b=W.next();!b.done;b=W.next())if(b=b.value)try{_.P7(t,e,b.name,b.value)}catch(m){}};
e4L=function(W,e){W=new _.cN(W.document.documentElement);W.start(WiZ,e);return W};
tpS=function(W){var e=W.document.documentElement;e.addEventListener("click",function(t){OSL(e,t)});
e.addEventListener("touchstart",function(t){KPL(t)});
e.addEventListener("mousedown",function(t){KPL(t)})};
mJS=function(W,e,t,b){b=b===void 0?!1:b;e=new bRL(e||W,t||W);return{x:W.x+((b===void 0?0:b)?e.lengthX*-1:e.lengthX)*.2,y:W.y+((b===void 0?0:b)?e.lengthY*-1:e.lengthY)*.2}};
r$v=function(W){if(!W)return!1;var e=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",t,b,m,q=(m=(t=W.errorScreen)==null?void 0:t.playerLegacyDesktopYpcTrailerRenderer)!=null?m:(b=W.errorScreen)==null?void 0:b.ypcTrailerRenderer;return!!e||!!q};
_.qnz=function(W,e){if(!W)return!1;var t,b=(t=W.errorScreen)==null?void 0:t.playerLegacyDesktopYpcOfferRenderer,m;e=!!(e==null?0:(m=e.playerOverlayRenderer)==null?0:m.gatedActionsOverlayRenderer);return!!r$v(W)||!!b||!!e};
FiK=function(W){return R4s(W,0,"gclid",W.search(Qi9))>=0||R4s(W,0,"gad_source",W.search(Qi9))>=0};
axK=function(W){var e=[],t=0;return{clear:function(){t=e.length=0},
push:function(b){e[t]=b;t=(t+1)%W},
iterate:function(){return function m(){var q,Q,X,I;return _.X89(m,function(u){switch(u.nextAddress){case 1:_.IG(u,2),q=e.length,Q=0;case 4:if(!(Q<q)){u.jumpTo(2);break}X=t+Q;I=_.Ix9;return _.a(u,e[X%q],7);case 7:I(u.yieldResult);Q++;u.jumpTo(4);break;case 2:_.FY(u),_.aG(u,0)}})}()}}};
us2=function(){var W=w8R,e=Ac.bufferSize;W||(W=[]);W=W.map(WPR);var t=new Set(W),b=axK(e);return{flush:function(){var m=Array.from(b.iterate());b.clear();m=m.map(function(q){return{name:q.name,timestamp:q.startTime,attributes:q.attributes}});
return JSON.stringify(m)},
onSpanStart:function(m){m.name==="event"&&t.has(m.attributes.type)||b.push(m)}}};
c$Q=function(){var W=us2(),e=W.flush;JqZ({onSpanStart:W.onSpanStart});kfL.subscribe("handleError",function(t){try{t.params.breadcrumbs=e()}catch(b){_.gQ(b,"WARNING")}})};
v7G=function(W,e,t){var b=W.endTime;if(b==null)throw Error("ij");t=_.hJ(EZK)(W.name,b-W.startTime,W.startTime,{webTracing:W.attributes},t,e);if(W.children)for(W=_.R(W.children),b=W.next();!b.done;b=W.next())v7G(b.value,e,t)};
DJL=function(){for(var W={},e=_.R(Ac.enabledSpansArray),t=e.next();!t.done;t=e.next())W[t.value]=!0;if(Ac.exportToCsi||Ac.exportBreadcrumbs)W={enabledSpans:W},N2={sessionId:W.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:W.enabledSpans};Ac.exportBreadcrumbs&&c$Q();Ac.exportToCsi&&JqZ(GHQ)};
SnK=function(W){return new Promise(function(e){window.setTimeout(e,W)})};
Bas=function(W){var e={bicf:function(q){W.skI=q},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(q){W.chW.push(q)}},t=window.top;
t.ntpevasrs=e;if(t.ntpqfbel!==void 0)for(var b=_.R(t.ntpqfbel),m=b.next();!m.done;m=b.next())m=m.value,m(e);t.ntpqfbel=void 0};
o7D=function(W){return _.F(function(e){if(e.nextAddress==1)return _.Qh(e,2),_.a(e,W.ttW(),4);if(e.nextAddress!=2)return _.Hi(e,0);_.w9(e);_.u8(e)})};
lxK=function(W){var e,t;(e=W.ytcsi)==null||(t=e.tick)==null||t.call(e,"pot_ist")};
ZRv=function(W){if(W instanceof Error){var e=_.HO("yt.logging.errors.log");e&&e(W,"WARNING")}};
$Jz=function(W){try{var e=JSON.parse(W);if(e.bgChallenge)return e}catch(t){}};
p8L=function(){var W=window,e={networkStatusManagerPromise:_.ee().resolve(new jQS(_.Yn)),initialChallengeSli:_.S("wpo_att_sli")?new _.x3S("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var t=W.ytAtR,b;e==null||(b=e.initialChallengeSli)==null||_.vN(b);if(t){if(t=$Jz(t)){var m;e==null||(m=e.initialChallengeSli)==null||_.GL(m,"SUCCESS");kHG(t,e)}W.ytAtR=void 0}else W.ytAtRC=function(q){if(q=$Jz(q)){var Q;e==null||(Q=e.initialChallengeSli)==null||
_.GL(Q,"SUCCESS");kHG(q,e);W.ytAtRC=void 0}}};
C5G=function(){if(y$K)return y$K;try{var W=_.DA("IFRAME");_.fF(W,_.bN(jiG));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return y$K=W}catch(e){W=new _.o_("Failed to create sandbox iframe"),_.gQ(W)}};
n72=function(W){var e,t;return(t=W==null?void 0:(e=W.contentWindow)==null?void 0:e.fetch)!=null?t:window.fetch};
fxD=function(W){var e,t;return(t=W==null?void 0:(e=W.contentWindow)==null?void 0:e.JSON.parse)!=null?t:JSON.parse};
g7v=function(W){var e,t;return(t=W==null?void 0:(e=W.contentWindow)==null?void 0:e.Request)!=null?t:window.Request};
xJS=function(){if(Mfs()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Mfs()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Tav=null);W&&J$G(W)};
J$G=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(ORG===W)return;ORG=W}var e=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.be()>e)&&Mfs()==="visible"){e=-1;Tav&&(e=Math.round((0,_.eJ)()-Tav));var t=String;var b=_.HO("_fact",window);b=b==null||b==-1?-1:Math.max(Date.now()-b,0);_.nJ("foregroundHeartbeat",{firstActivityMs:t(b),clientDocumentNonce:GDS,index:String(MpR),lastEventDeltaMs:String(e),trigger:W});
_.Nz("_fact",-1,window);MpR++;Tav=(0,_.eJ)()}};
_.siG=function(){try{return!!self.sessionStorage}catch(W){return!1}};
h4K=function(){var W=navigator;return new Promise(function(e,t){var b;(b=W.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(m,q){e({usage:m,quota:q})},function(m){t(m)}):t(Error("qj"))})};
HRG=function(W,e){var t={errorSeverity:e.errorSeverity.toString(),wizFeatureFlags:Object.entries(e.featureFlags).join("\n")};ajc(e,t);e=e.errorSeverity;e===3?_.gQ(W,"ERROR",void 0,void 0,void 0,t):e===2&&_.gQ(W,"WARNING",void 0,void 0,void 0,t);_.S("cow_if_errors_in_popup")&&e===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)};
KiK=function(W,e,t){W.componentType!==kK&&t instanceof HTMLElement&&e&&!_.S("cow_logging_in_component_wrapper")&&ZbD(t,e,!0)};
UJs=function(){if(!P5v){P5v=!0;var W=Object.assign({},{enableLazyTsx:_.S("mweb_enable_wiz_lazy_tsx")||_.S("kevlar_enable_wiz_lazy_tsx")||_.S("creator_enable_wiz_lazy_tsx")||VpR,flushRenderEffectsDuringRender:!0},{handleError:HRG,enableComponentStacksInErrorMessages:!1});Object.assign(_.mJ,W);nML=iRZ;Ync();xqz=dE9;gMv=WoD;_.S("ytwiz_enable_debug_component_props")&&(W=document.body.firstElementChild,window.ng||W.__ngContext__||(W.__ngContext__={},W.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
z4L))}};
Ync=function(){_.S("cow_logging_in_component_wrapper")?(QuK=function(W,e){e instanceof HTMLElement&&ZbD(e,W,!0)},Smc=function(){}):(QuK=function(){},Smc=KiK)};
LiG=function(W,e,t){e=e===void 0?{}:e;var b,m=(b=_.l(W.commandMetadata,_.ez))==null?void 0:b.url;b=e.form||{};!t||b.element||b.skipDefaultElement||(e.form=e.form||{},e.form.element=t);if(m&&m!=="/service_ajax")return{type:0,command:W,form:e.form};if(_.S("kevlar_service_command_check")){if(_.YD(_.ee().resolve(_.J8),W))return Object.assign({},{type:1,command:W},e)}else{var q;if((q=_.l(W.commandMetadata,_.ez))==null?0:q.apiUrl)return Object.assign({},{type:1,command:W},e)}return{type:2,command:W,form:e.form}};
E7R=function(W){if(W.form){var e=W.form,t=Object.assign({},e);e=e.element;t=(delete t.element,t);if(e)return[_.X5(e,[W.command,t,W.commandController])]}return[]};
A$s=function(W){if(W.form){var e=W.form,t=Object.assign({},e);e=e.element;t=(delete t.element,t);e&&_.IT(e,[W.command],e,t)}};
dJG=function(W,e,t){var b=new NaS(W,e),m=new Dn(W,e,t);W={"/youtubei/v1/browse":new Sj(W,e,t),"/youtubei/v1/player":b,"/youtubei/v1/navigation/resolve_url":new BN,"/youtubei/v1/next":m,"/youtubei/v1/guide":new o4(t),"/youtubei/v1/search":new lC(W,e,t),"/youtubei/v1/reel/reel_item_watch":new Zn(W,e,t),"/youtubei/v1/get_watch":new $B(b,m)};W["/youtubei/v1/account/account_menu"]=new kB;W["/youtubei/v1/notification/get_notification_menu"]=new pn;return W};
nn=function(){var W=_.ee().resolve(y$);return Promise.resolve(WQg(W,_.tz.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
evQ=function(W){return W&&(W=_.fn(_.Q2z(W)))?(new URLSearchParams(W)).get("service"):null};
Ji=function(W,e){_.F6(_.g0(),function(){_.Tv("adl")});
_.ee().resolve(tWL)(e);W=W.root;W.loadData&&W.loadData(e);(e==null?0:e.response)?_.GL(sr9(),"SUCCESS"):_.JC(new _.o_("Lifecycle: No response in data",_.MD("IS_SHELL_LOAD"),e?e.page:"NO_PAGE",e?e.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((e==null?void 0:e.page)||"",e.endpoint);var t,b;((b=_.l(e==null?void 0:(t=e.endpoint)==null?void 0:t.commandMetadata,_.ez))==null?0:b.webPageType)&&_.Eb().dispatch(_.TL(_.l(e.endpoint.commandMetadata,_.ez).webPageType))};
bIG=function(){var W,e;return _.F(function(t){switch(t.nextAddress){case 1:W=window;if(!W.getDataPromise){t.jumpTo(2);break}_.Qh(t,3);return _.a(t,W.getDataPromise(),5);case 5:return t.return(t.yieldResult);case 3:return _.w9(t),_.a(t,nn(),6);case 6:return t.return(t.yieldResult);case 2:if(W.getInitialData)return e=W.getInitialData(),W.getInitialData=void 0,t.return(e);throw Error("sj`"+_.tz.location.href);}})};
r92=function(){_.xq("CSI_SERVICE_NAME","youtube");_.fe({loadType:"cold"});_.S("kevlar_log_lcp")&&m0c(function(W){_.Tv("lcp",W.value)})};
qgL=function(){var W=_.VV(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.xq("ADD_SCRAPER_ATTRIBUTES",!0)};
ILs=function(W){var e=W.root;W=[RvZ,QnD,_.xB];_.S("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.Ol,FQS);XnR(function(t,b){return LiG(t,b,e)},function(t){if(!t.command)return[];
var b;((b=t.form)==null?0:b.element)?t.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},t.form,{endpoint:t.command})})):e.handleNavigate(t);return[]},W);
_.ee().addProvider({provide:_.tQ,useValue:_.uL.instance})};
wn9=function(){var W={},e={},t;for(t in aL2){var b=_.R(_.up(aL2[t],void 0,"NBH2te"));W[t]=b.next().value;e[t]=b.next().value}return[W,function(m){for(var q in m){var Q=void 0;(Q=e[q])==null||Q(m[q])}}]};
_.vYK=function(W,e){var t=_.kJ.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),b=_.kJ.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null,m=null,q=null;if(b)m=_.kJ.getValueByKeys(b,"titleText"),q=_.kJ.unsafeClone(_.kJ.getValueByKeys(b,"longBylineText")),t="",q&&(t=_.Ub(q)),q=_.zq(t);else if(t){t=_.R(t);for(var Q=t.next();!Q.done;Q=t.next())Q=Q.value,Q.videoPrimaryInfoRenderer&&(m=_.kJ.getValueByKeys.apply(_.kJ,[Q].concat(_.kP(ut9)))),
Q.videoSecondaryInfoRenderer&&(q=_.kJ.getValueByKeys.apply(_.kJ,[Q].concat(_.kP(c9c))))}else _.Kt(Error("xj"));var X;W.currentVideoEndpoint?X=W.currentVideoEndpoint:_.Kt(Error("yj"));var I;e&&(I=_.kJ.getValueByKeys(e,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:m,miniplayerSubtitle:q,watchEndpoint:X,playlistData:b};I&&(W.miniplayerRenderer=I);return W};
G$K=function(W){if(W)return _.Tf(W)};
_.D0G=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
Sg9=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.Mw(W.draggedTime/W.videoDuration,0,1):_.Mw((W.playedTime||0)/W.videoDuration,0,1):0};
BpQ=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.Mw(W.draggedTime/W.videoDuration,0,1):_.Mw((W.playedTime||0)/W.videoDuration,0,1):0};
lLD=function(W){var e,t,b;return _.l(W==null?void 0:(e=W.markersMap)==null?void 0:(t=e.find(function(m){return m.key==="HEATSEEKER"}))==null?void 0:(b=t.value)==null?void 0:b.heatmap,oYc)};
ZIZ=function(W){var e,t;return(t=(e=lLD(W))==null?void 0:e.heatMarkersDecorations)!=null?t:[]};
$0S=function(W){if(_.S("mweb_supported_chapters_killswitch"))return!0;var e;return!!(W==null?0:(e=W.markersMap)==null?0:e.find(function(t){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(t.key)}))};
_.k$S=function(W){var e=Object,t=e.assign,b;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(b=W==null?void 0:W.getPlayerState())!=null?b:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return t.call(e,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
pnv=function(W){return function(e){var t=W(),b,m=(b=t.playerApi)==null?void 0:b.getPlayerState();e&&e!==t.playerState&&(e===1||e===2)&&t.setState({playerState:m})}};
jnG=function(W){return function(e){var t=W(),b=t.playerApi;b&&(e==null?void 0:e.type)==="newdata"&&(y9Q&&(clearTimeout(y9Q),y9Q=void 0),_.S("web_shorts_use_progress_state_for_gapless")?(e=b==null?void 0:b.getProgressState(e==null?void 0:e.playertype),e=e.seekableEnd-e.seekableStart):e=b==null?void 0:b.getDuration(e==null?void 0:e.playertype),t.setState({playedTime:0,videoDuration:e}))}};
Cxc=function(W){return function(e){var t=W(),b=t.playerApi;if(b){var m=b.getPresentingPlayerType();_.S("web_shorts_use_progress_state_for_gapless")?(b=b.getProgressState(m),b=b.seekableEnd-b.seekableStart):b=b.getDuration(m);t.setState({playedTime:e,videoDuration:b})}}};
fLc=function(W){_.OR(112394,W,function(){return nYR},function(e){nYR=e})};
J9S=function(W,e){if(!W)return[];var t,b,m;W=((t=W.markersMap)==null?void 0:(b=t.find(function(q){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(q.key)}))==null?void 0:(m=b.value)==null?void 0:m.chapters)||[];
!gYZ(W)||(e==null?0:e.ignoreStub)||(W=[TpS()].concat(_.kP(W)));return W};
TpS=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
gYZ=function(W){if(W.length===0)return!1;var e;return((e=_.l(W[0],sl))==null?void 0:e.timeRangeStartMillis)!==0};
hi=function(W){return W?W.timeRangeStartMillis||0:0};
OIK=function(W,e){if(W.isDragging&&e)return W=x0R(W,e),W===-1?TpS():J9S(e)[W]};
x0R=function(W,e){return W.isDragging&&e?J9S(e,{ignoreStub:!0}).findIndex(function(t,b,m){t=MWL(W);return snR(t,m,b).scrubberHovering}):-1};
MWL=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
snR=function(W,e,t){var b=hi(_.l(e[t],sl));e=hi(_.l(e[t+1],sl))||W.videoDuration;t=W.isDragging;var m;if(m=W.isDragging)m=W.draggedTime,m=m!==null&&m>=b&&m<e;var q=W.playedTime;return q!==null&&q>=b&&q<e?{videoPosition:"active",isScrubbing:t,scrubberHovering:m}:W.playedTime<b?{videoPosition:"pending",isScrubbing:t,scrubberHovering:m}:{videoPosition:"seen",isScrubbing:t,scrubberHovering:m}};
hvG=function(W,e){return W.videoPosition==="seen"||(e===void 0?0:e)>0};
HI2=function(W,e,t){e=W/e.storyboardInterval;var b=J9S(t);if(!b.length)return-e*72;t=0;b=_.R(b);for(var m=b.next();!m.done;m=b.next())if(hi(_.l(m.value,sl))/1E3<W)t++;else break;return-(e*72)-t*56};
KQ9=function(W){return W?W.width/W.columns:0};
Px2=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
VWv=function(W,e){W=W.draggedTime*1E3;return W>=e.visibleTimeRangeStartMillis&&W<=e.visibleTimeRangeEndMillis};
_.iIQ=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var e=Math.abs(Math.floor(W)),t=Math.floor(e/86400),b=Math.floor(e%86400/3600),m=Math.floor(e%3600/60);e=Math.floor(e%60);var q="";t>0&&(q+=t+":",b<10&&(q+="0"));if(t>0||b>0)q+=b+":",m<10&&(q+="0");q+=m+":";e<10&&(q+="0");q+=e;return W>=0?q:"-"+q};
YgK=function(W,e){return function(){var t=Px2(W());var b=e();var m=W().playerApi;if(m&&m.getNumberOfStoryboardLevels()!==0){var q=m.getStoryboardFrameIndex(t,1);q!==-1?b=m.getStoryboardFrame(q,1):(t=m.getStoryboardFrameIndex(t,0),m=m.getStoryboardFrame(t,0),b&&m&&(m.height*=3,m.width*=3),b=m)}else b=null;if(!b)return null;e()&&(b.width=90*b.columns,b.height=160*b.rows);return b}};
_.HN=function(W){if(!W||W.getVideoData)return W};
zv9=function(){var W;return{playerApi:(W=_.av())!=null?W:void 0}};
U0Z=function(W){var e;_.F(function(t){if(t.nextAddress==1)return _.a(t,_.Iv(),2);if(e=t.yieldResult)e.unMute(!0),e.setVolume(W,!0);_.u8(t)})};
LQ9=function(W,e){W&&(W.value=""+e,W.style.setProperty("--gradient-percent",e+"%"))};
EYg=function(W){var e;return(e=W==null?void 0:W.value)!=null?e:0};
A92=function(){var W;_.F(function(e){if(e.nextAddress==1)return _.a(e,_.Iv(),2);W=e.yieldResult;if(!W)return e.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.u8(e)})};
NpK=function(W){var e=_.ee().resolve(_.Kn).getPlayerElement();e&&W&&(W===1?e.pause():e.play())};
d0S=function(W){_.Qx(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Wpv=function(W){_.Qx(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
t4c=function(W){return _.yZ(W.document.body,function(){return _.w(eEs,null)})};
bEg=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(e){return e.type}).includes("reload"):!1};
Iwv=function(){PN(PN(PN(PN(PN(PN(PN(_.ee().resolve(_.V$),_.mjQ),_.rus),_.q$9),_.REz),_.QlL),_.FpD),_.XoS)};
aw2=function(W,e){e=e===void 0?!1:e;var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return e||!_.S("kevlar_shorts_seedless_retry_initial_load")||(t=window,b=!(!t.getDataPromise&&!t.getInitialData),b)?_.a(Q,bIG(),2):(setTimeout(aw2.bind(window,W,!0),1E3),Q.return());if(Q.nextAddress!=3)return m=Q.yieldResult,_.a(Q,woG(m),3);q=Q.yieldResult;Ji(W,q);_.u8(Q)})};
woG=function(W){var e;if((e=W.response)==null||!e.replacementEndpoint)return _.aT(W);e=_.ee().resolve(y$);W=W.response;_.l(W.replacementEndpoint,_.Za)&&W.sequenceContinuation&&(_.l(W.replacementEndpoint,_.Za).sequenceParams=W.sequenceContinuation);return iC(e,W.replacementEndpoint,{},_.tz.location.href,"shorts",function(){},function(){return!1})};
uGS=function(W){var e=_.Eb(),t,b=_.l((t=W.response)==null?void 0:t.frameworkUpdates,EZ),m;t=_.l((m=W.playerResponse)==null?void 0:m.frameworkUpdates,EZ);var q;W=_.l((q=W.reelWatchSequenceResponse)==null?void 0:q.frameworkUpdates,EZ);b&&_.vm(b,e);t&&_.vm(t,e);W&&_.vm(W,e)};
cuv=function(W){var e;_.S("enable_redirect_linking_for_desktop_web_client")&&((e=window.location.hash)==null?0:e.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
Dj9=function(W){var e=_.ee(),t=e.resolve(y$);e=e.resolve(_.v12);W.endpoint&&(t=Gts(t,W.endpoint),t.content&&W.response&&_.YB(e,W.response,t.content),t.player&&W.playerResponse&&_.YB(e,W.playerResponse,t.player),t.reelSequence&&W.reelWatchSequenceResponse&&_.YB(e,W.reelWatchSequenceResponse,t.reelSequence))};
zL=function(W,e){uGS(e);var t;(e==null?0:e.url)&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&(cuv(e),(t=evQ(e.url))&&_.RT(W.root,"yt-initialize-third-party",[t,e]));Dj9(e);t=_.ee();var b=t.resolve(S$D);e.playerResponse&&t.resolve(B4G).handleResponse(e.playerResponse);if(e.playerResponse){t=void 0;if(_.S("ab_v_vid_sig")&&e.endpoint){var m,q=(m=_.l(e.endpoint,_.z4))!=null?m:_.l(e.endpoint,_.Za);q&&(t=q.videoId)}o1K(b,e.playerResponse,t)}e.playerResponse&&Lyz(e.playerResponse)&&
_.S("web_enable_ab_rsp_cl")?QOv().then(function(){lwZ(b,e.playerResponse);Ji(W,e)}):Ji(W,e)};
$jZ=function(W){if(W=W.root.data){var e=_.ee().resolve(ZEg);W.endpoint&&(W.response&&e.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&e.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&e.handleResponse(W.reelWatchSequenceResponse))}};
ktG=function(W){var e,t,b,m,q,Q;return _.F(function(X){switch(X.nextAddress){case 1:e=window;if(!e.getDataPromise){X.jumpTo(2);break}_.Qh(X,3);return _.a(X,e.getDataPromise(),5);case 5:t=X.yieldResult;zL(W,t);_.Hi(X,4);break;case 3:return _.w9(X),_.a(X,nn(),6);case 6:b=X.yieldResult,Ji(W,b);case 4:return X.return();case 2:if(!_.S("sw_nav_preload_pbj")){X.jumpTo(7);break}e.fetchInitialData=function(){var I;return _.F(function(u){if(u.nextAddress==1)return _.a(u,nn(),2);I=u.yieldResult;Ji(W,I);_.u8(u)})};
if(e.getInitialData){e.loadInitialData=function(I){zL(W,I)};
m=e.getInitialData();e.getInitialData=void 0;zL(W,m);X.jumpTo(8);break}e.fetchInitialData=void 0;return _.a(X,nn(),9);case 9:q=X.yieldResult,Ji(W,q);case 8:return X.return();case 7:e.getInitialData?(Q=e.getInitialData(),e.getInitialData=void 0,zL(W,Q)):e.loadInitialData=function(I){zL(W,I)},_.u8(X)}})};
pos=function(W){var e=0;return function(){return e<W.length?{done:!1,value:W[e++]}:{done:!0}}};
yuz=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,e,t){if(W==Array.prototype||W==Object.prototype)return W;W[e]=t.value;return W};
jlQ=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<W.length;++e){var t=W[e];if(t&&t.Math==Math)return t}throw Error("a");};
_.Ec=jlQ(this);Ul=function(W,e){if(e)a:{var t=_.Ec;W=W.split(".");for(var b=0;b<W.length-1;b++){var m=W[b];if(!(m in t))break a;t=t[m]}W=W[W.length-1];b=t[W];e=e(b);e!=b&&e!=null&&yuz(t,W,{configurable:!0,writable:!0,value:e})}};
Ul("Symbol",function(W){if(W)return W;var e=function(q,Q){this.$jscomp$symbol$id_=q;yuz(this,"description",{configurable:!0,writable:!0,value:Q})};
e.prototype.toString=function(){return this.$jscomp$symbol$id_};
var t="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",b=0,m=function(q){if(this instanceof m)throw new TypeError("b");return new e(t+(q||"")+"_"+b++,q)};
return m});
Ul("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var b=_.Ec[e[t]];typeof b==="function"&&typeof b.prototype[W]!="function"&&yuz(b.prototype,W,{configurable:!0,writable:!0,value:function(){return CMv(pos(this))}})}return W});
Ul("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var CMv=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},n1Z=typeof Object.create=="function"?Object.create:function(W){var e=function(){};
e.prototype=W;return new e},fwK=function(){function W(){function t(){}
new t;Reflect.construct(t,[],function(){});
return new t instanceof t}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var e=Reflect.construct;return function(t,b,m){t=e(t,b);m&&Reflect.setPrototypeOf(t,m.prototype);return t}}return function(t,b,m){m===void 0&&(m=t);
m=n1Z(m.prototype||Object.prototype);return Function.prototype.apply.call(t,m,b)||m}}(),g1g;
if(typeof Object.setPrototypeOf=="function")g1g=Object.setPrototypeOf;else{var T49;a:{var Juv={a:!0},xjK={};try{xjK.__proto__=Juv;T49=xjK.a;break a}catch(W){}T49=!1}g1g=T49?function(W,e){W.__proto__=e;if(W.__proto__!==e)throw new TypeError("e`"+W);return W}:null}Ln=g1g;
_.Z=function(W,e){W.prototype=n1Z(e.prototype);W.prototype.constructor=W;if(Ln)Ln(W,e);else for(var t in e)if(t!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(e,t);b&&Object.defineProperty(W,t,b)}else W[t]=e[t];W.superClass_=e.prototype};
_.R=function(W){var e=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(e)return e.call(W);if(typeof W.length=="number")return{next:pos(W)};throw Error("f`"+String(W));};
AE=function(W){for(var e,t=[];!(e=W.next()).done;)t.push(e.value);return t};
_.kP=function(W){return W instanceof Array?W:AE(_.R(W))};
_.Nw=function(W){return Ai(W,W)};
Ai=function(W,e){W.raw=e;Object.freeze&&(Object.freeze(W),Object.freeze(e));return W};
d0=function(W,e){return Object.prototype.hasOwnProperty.call(W,e)};
OEG=typeof Object.assign=="function"?Object.assign:function(W,e){for(var t=1;t<arguments.length;t++){var b=arguments[t];if(b)for(var m in b)d0(b,m)&&(W[m]=b[m])}return W};
Ul("Object.assign",function(W){return W||OEG});
var M42=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},sl9=function(W){if(W.isRunning_)throw new TypeError("h");
W.isRunning_=!0};
M42.prototype.JSC$6785_next_=function(W){this.yieldResult=W};
var hE2=function(W,e){W.abruptCompletion_={exception:e,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
M42.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
_.a=function(W,e,t){W.nextAddress=t;return{value:e}};
M42.prototype.jumpTo=function(W){this.nextAddress=W};
_.u8=function(W){W.nextAddress=0};
_.Qh=function(W,e,t){W.catchAddress_=e;t!=void 0&&(W.finallyAddress_=t)};
_.IG=function(W,e){W.catchAddress_=0;W.finallyAddress_=e||0};
_.Hi=function(W,e,t){W.nextAddress=e;W.catchAddress_=t||0};
_.w9=function(W,e){W.catchAddress_=e||0;e=W.abruptCompletion_.exception;W.abruptCompletion_=null;return e};
_.FY=function(W,e,t,b){b?W.finallyContexts_[b]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=e||0;W.finallyAddress_=t||0};
_.aG=function(W,e,t){t=W.finallyContexts_.splice(t||0)[0];(t=W.abruptCompletion_=W.abruptCompletion_||t)?t.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:t.jumpTo!=void 0&&W.finallyAddress_<t.jumpTo?(W.nextAddress=t.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=e};
HEK=function(W){this.JSC$6790_context_=new M42;this.program_=W};
PMK=function(W,e){sl9(W.JSC$6790_context_);var t=W.JSC$6790_context_.yieldAllIterator_;if(t)return Kpz(W,"return"in t?t["return"]:function(b){return{value:b,done:!0}},e,W.JSC$6790_context_.return);
W.JSC$6790_context_.return(e);return Wb(W)};
Kpz=function(W,e,t,b){try{var m=e.call(W.JSC$6790_context_.yieldAllIterator_,t);if(!(m instanceof Object))throw new TypeError("g`"+m);if(!m.done)return W.JSC$6790_context_.isRunning_=!1,m;var q=m.value}catch(Q){return W.JSC$6790_context_.yieldAllIterator_=null,hE2(W.JSC$6790_context_,Q),Wb(W)}W.JSC$6790_context_.yieldAllIterator_=null;b.call(W.JSC$6790_context_,q);return Wb(W)};
Wb=function(W){for(;W.JSC$6790_context_.nextAddress;)try{var e=W.program_(W.JSC$6790_context_);if(e)return W.JSC$6790_context_.isRunning_=!1,{value:e.value,done:!1}}catch(t){W.JSC$6790_context_.yieldResult=void 0,hE2(W.JSC$6790_context_,t)}W.JSC$6790_context_.isRunning_=!1;if(W.JSC$6790_context_.abruptCompletion_){e=W.JSC$6790_context_.abruptCompletion_;W.JSC$6790_context_.abruptCompletion_=null;if(e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}};
V4s=function(W){this.next=function(e){sl9(W.JSC$6790_context_);W.JSC$6790_context_.yieldAllIterator_?e=Kpz(W,W.JSC$6790_context_.yieldAllIterator_.next,e,W.JSC$6790_context_.JSC$6785_next_):(W.JSC$6790_context_.JSC$6785_next_(e),e=Wb(W));return e};
this.throw=function(e){sl9(W.JSC$6790_context_);W.JSC$6790_context_.yieldAllIterator_?e=Kpz(W,W.JSC$6790_context_.yieldAllIterator_["throw"],e,W.JSC$6790_context_.JSC$6785_next_):(hE2(W.JSC$6790_context_,e),e=Wb(W));return e};
this.return=function(e){return PMK(W,e)};
this[Symbol.iterator]=function(){return this}};
_.X89=function(W,e){e=new V4s(new HEK(e));Ln&&W.prototype&&Ln(e,W.prototype);return e};
iER=function(W){function e(b){return W.next(b)}
function t(b){return W.throw(b)}
return new Promise(function(b,m){function q(Q){Q.done?b(Q.value):Promise.resolve(Q.value).then(e,t).then(q,m)}
q(W.next())})};
_.F=function(W){return iER(new V4s(new HEK(W)))};
VKG=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(e){return Promise.resolve(W.next(e))};
this["throw"]=function(e){return new Promise(function(t,b){var m=W["throw"];m!==void 0?t(m.call(W,e)):(t=W["return"],t!==void 0&&t.call(W),b(new TypeError("i")))})};
W["return"]!==void 0&&(this["return"]=function(e){return Promise.resolve(W["return"](e))})};
_.$N=function(){for(var W=Number(this),e=[],t=W;t<arguments.length;t++)e[t-W]=arguments[t];return e};
_.Ix9=function(W){return W};
Ul("globalThis",function(W){return W||_.Ec});
Ul("Reflect",function(W){return W?W:{}});
Ul("Reflect.construct",function(){return fwK});
Ul("Reflect.setPrototypeOf",function(W){return W?W:Ln?function(e,t){try{return Ln(e,t),!0}catch(b){return!1}}:null});
Ul("Promise",function(W){function e(){this.batch_=null}
function t(Q){return Q instanceof m?Q:new m(function(X){X(Q)})}
if(W&&(typeof _.Ec.PromiseRejectionEvent!=="undefined"||!_.Ec.Promise||_.Ec.Promise.toString().indexOf("[native code]")===-1))return W;e.prototype.asyncExecute=function(Q){if(this.batch_==null){this.batch_=[];var X=this;this.asyncExecuteFunction(function(){X.executeBatch_()})}this.batch_.push(Q)};
var b=_.Ec.setTimeout;e.prototype.asyncExecuteFunction=function(Q){b(Q,0)};
e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Q=this.batch_;this.batch_=[];for(var X=0;X<Q.length;++X){var I=Q[X];Q[X]=null;try{I()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};
e.prototype.asyncThrow_=function(Q){this.asyncExecuteFunction(function(){throw Q;})};
var m=function(Q){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var X=this.createResolveAndReject_();try{Q(X.resolve,X.reject)}catch(I){X.reject(I)}};
m.prototype.createResolveAndReject_=function(){function Q(u){return function(c){I||(I=!0,u.call(X,c))}}
var X=this,I=!1;return{resolve:Q(this.resolveTo_),reject:Q(this.JSC$6806_reject_)}};
m.prototype.resolveTo_=function(Q){if(Q===this)this.JSC$6806_reject_(new TypeError("j"));else if(Q instanceof m)this.settleSameAsPromise_(Q);else{a:switch(typeof Q){case "object":var X=Q!=null;break a;case "function":X=!0;break a;default:X=!1}X?this.resolveToNonPromiseObj_(Q):this.fulfill_(Q)}};
m.prototype.resolveToNonPromiseObj_=function(Q){var X=void 0;try{X=Q.then}catch(I){this.JSC$6806_reject_(I);return}typeof X=="function"?this.settleSameAsThenable_(X,Q):this.fulfill_(Q)};
m.prototype.JSC$6806_reject_=function(Q){this.settle_(2,Q)};
m.prototype.fulfill_=function(Q){this.settle_(1,Q)};
m.prototype.settle_=function(Q,X){if(this.state_!=0)throw Error("k`"+Q+"`"+X+"`"+this.state_);this.state_=Q;this.result_=X;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
m.prototype.scheduleUnhandledRejectionCheck_=function(){var Q=this;b(function(){if(Q.notifyUnhandledRejection_()){var X=_.Ec.console;typeof X!=="undefined"&&X.error(Q.result_)}},1)};
m.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Q=_.Ec.CustomEvent,X=_.Ec.Event,I=_.Ec.dispatchEvent;if(typeof I==="undefined")return!0;typeof Q==="function"?Q=new Q("unhandledrejection",{cancelable:!0}):typeof X==="function"?Q=new X("unhandledrejection",{cancelable:!0}):(Q=_.Ec.document.createEvent("CustomEvent"),Q.initCustomEvent("unhandledrejection",!1,!0,Q));Q.promise=this;Q.reason=this.result_;return I(Q)};
m.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Q=0;Q<this.onSettledCallbacks_.length;++Q)q.asyncExecute(this.onSettledCallbacks_[Q]);this.onSettledCallbacks_=null}};
var q=new e;m.prototype.settleSameAsPromise_=function(Q){var X=this.createResolveAndReject_();Q.callWhenSettled_(X.resolve,X.reject)};
m.prototype.settleSameAsThenable_=function(Q,X){var I=this.createResolveAndReject_();try{Q.call(X,I.resolve,I.reject)}catch(u){I.reject(u)}};
m.prototype.then=function(Q,X){function I(D,B){return typeof D=="function"?function(k){try{u(D(k))}catch(n){c(n)}}:B}
var u,c,v=new m(function(D,B){u=D;c=B});
this.callWhenSettled_(I(Q,u),I(X,c));return v};
m.prototype.catch=function(Q){return this.then(void 0,Q)};
m.prototype.callWhenSettled_=function(Q,X){function I(){switch(u.state_){case 1:Q(u.result_);break;case 2:X(u.result_);break;default:throw Error("l`"+u.state_);}}
var u=this;this.onSettledCallbacks_==null?q.asyncExecute(I):this.onSettledCallbacks_.push(I);this.isRejectionHandled_=!0};
m.resolve=t;m.reject=function(Q){return new m(function(X,I){I(Q)})};
m.race=function(Q){return new m(function(X,I){for(var u=_.R(Q),c=u.next();!c.done;c=u.next())t(c.value).callWhenSettled_(X,I)})};
m.all=function(Q){var X=_.R(Q),I=X.next();return I.done?t([]):new m(function(u,c){function v(k){return function(n){D[k]=n;B--;B==0&&u(D)}}
var D=[],B=0;do D.push(void 0),B++,t(I.value).callWhenSettled_(v(D.length-1),c),I=X.next();while(!I.done)})};
return m});
var eu=function(W,e,t){if(W==null)throw new TypeError("m`"+t);if(e instanceof RegExp)throw new TypeError("n`"+t);return W+""};
Ul("String.prototype.startsWith",function(W){return W?W:function(e,t){var b=eu(this,e,"startsWith"),m=b.length,q=e.length;t=Math.max(0,Math.min(t|0,b.length));for(var Q=0;Q<q&&t<m;)if(b[t++]!=e[Q++])return!1;return Q>=q}});
Ul("Object.setPrototypeOf",function(W){return W||Ln});
Ul("Symbol.dispose",function(W){return W?W:Symbol("o")});
Ul("SuppressedError",function(W){function e(t,b,m){if(!(this instanceof e))return new e(t,b,m);m=Error(m);"stack"in m&&(this.stack=m.stack);this.message=m.message;this.error=t;this.suppressed=b}
if(W)return W;_.Z(e,Error);e.prototype.name="SuppressedError";return e});
var Y$R=function(W,e,t){W instanceof String&&(W=String(W));for(var b=W.length,m=0;m<b;m++){var q=W[m];if(e.call(t,q,m,W))return{i:m,v:q}}return{i:-1,v:void 0}};
Ul("Array.prototype.find",function(W){return W?W:function(e,t){return Y$R(this,e,t).v}});
Ul("WeakMap",function(W){function e(){}
function t(I){var u=typeof I;return u==="object"&&I!==null||u==="function"}
function b(I){if(!d0(I,q)){var u=new e;yuz(I,q,{value:u})}}
function m(I){var u=Object[I];u&&(Object[I]=function(c){if(c instanceof e)return c;Object.isExtensible(c)&&b(c);return u(c)})}
if(function(){if(!W||!Object.seal)return!1;try{var I=Object.seal({}),u=Object.seal({}),c=new W([[I,2],[u,3]]);if(c.get(I)!=2||c.get(u)!=3)return!1;c.delete(I);c.set(u,4);return!c.has(I)&&c.get(u)==4}catch(v){return!1}}())return W;
var q="$jscomp_hidden_"+Math.random();m("freeze");m("preventExtensions");m("seal");var Q=0,X=function(I){this.JSC$6813_id_=(Q+=Math.random()+1).toString();if(I){I=_.R(I);for(var u;!(u=I.next()).done;)u=u.value,this.set(u[0],u[1])}};
X.prototype.set=function(I,u){if(!t(I))throw Error("p");b(I);if(!d0(I,q))throw Error("q`"+I);I[q][this.JSC$6813_id_]=u;return this};
X.prototype.get=function(I){return t(I)&&d0(I,q)?I[q][this.JSC$6813_id_]:void 0};
X.prototype.has=function(I){return t(I)&&d0(I,q)&&d0(I[q],this.JSC$6813_id_)};
X.prototype.delete=function(I){return t(I)&&d0(I,q)&&d0(I[q],this.JSC$6813_id_)?delete I[q][this.JSC$6813_id_]:!1};
return X});
Ul("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var X=Object.seal({x:4}),I=new W(_.R([[X,"s"]]));if(I.get(X)!="s"||I.size!=1||I.get({x:4})||I.set({x:4},"t")!=I||I.size!=2)return!1;var u=I.entries(),c=u.next();if(c.done||c.value[0]!=X||c.value[1]!="s")return!1;c=u.next();return c.done||c.value[0].x!=4||c.value[1]!="t"||!u.next().done?!1:!0}catch(v){return!1}}())return W;
var e=new WeakMap,t=function(X){this[0]={};this[1]=q();this.size=0;if(X){X=_.R(X);for(var I;!(I=X.next()).done;)I=I.value,this.set(I[0],I[1])}};
t.prototype.set=function(X,I){X=X===0?0:X;var u=b(this,X);u.list||(u.list=this[0][u.id]=[]);u.entry?u.entry.value=I:(u.entry={next:this[1],previous:this[1].previous,head:this[1],key:X,value:I},u.list.push(u.entry),this[1].previous.next=u.entry,this[1].previous=u.entry,this.size++);return this};
t.prototype.delete=function(X){X=b(this,X);return X.entry&&X.list?(X.list.splice(X.index,1),X.list.length||delete this[0][X.id],X.entry.previous.next=X.entry.next,X.entry.next.previous=X.entry.previous,X.entry.head=null,this.size--,!0):!1};
t.prototype.clear=function(){this[0]={};this[1]=this[1].previous=q();this.size=0};
t.prototype.has=function(X){return!!b(this,X).entry};
t.prototype.get=function(X){return(X=b(this,X).entry)&&X.value};
t.prototype.entries=function(){return m(this,function(X){return[X.key,X.value]})};
t.prototype.keys=function(){return m(this,function(X){return X.key})};
t.prototype.values=function(){return m(this,function(X){return X.value})};
t.prototype.forEach=function(X,I){for(var u=this.entries(),c;!(c=u.next()).done;)c=c.value,X.call(I,c[1],c[0],this)};
t.prototype[Symbol.iterator]=t.prototype.entries;var b=function(X,I){var u=I&&typeof I;u=="object"||u=="function"?e.has(I)?u=e.get(I):(u=""+ ++Q,e.set(I,u)):u="p_"+I;var c=X[0][u];if(c&&d0(X[0],u))for(X=0;X<c.length;X++){var v=c[X];if(I!==I&&v.key!==v.key||I===v.key)return{id:u,list:c,index:X,entry:v}}return{id:u,list:c,index:-1,entry:void 0}},m=function(X,I){var u=X[1];
return CMv(function(){if(u){for(;u.head!=X[1];)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:I(u)};u=null}return{done:!0,value:void 0}})},q=function(){var X={};
return X.previous=X.next=X.head=X},Q=0;
return t});
Ul("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var t=Object.seal({x:4}),b=new W(_.R([t]));if(!b.has(t)||b.size!=1||b.add(t)!=b||b.size!=1||b.add({x:4})!=b||b.size!=2)return!1;var m=b.entries(),q=m.next();if(q.done||q.value[0]!=t||q.value[1]!=t)return!1;q=m.next();return q.done||q.value[0]==t||q.value[0].x!=4||q.value[1]!=q.value[0]?!1:m.next().done}catch(Q){return!1}}())return W;
var e=function(t){this.JSC$6827_map_=new Map;if(t){t=_.R(t);for(var b;!(b=t.next()).done;)this.add(b.value)}this.size=this.JSC$6827_map_.size};
e.prototype.add=function(t){t=t===0?0:t;this.JSC$6827_map_.set(t,t);this.size=this.JSC$6827_map_.size;return this};
e.prototype.delete=function(t){t=this.JSC$6827_map_.delete(t);this.size=this.JSC$6827_map_.size;return t};
e.prototype.clear=function(){this.JSC$6827_map_.clear();this.size=0};
e.prototype.has=function(t){return this.JSC$6827_map_.has(t)};
e.prototype.entries=function(){return this.JSC$6827_map_.entries()};
e.prototype.values=function(){return this.JSC$6827_map_.values()};
e.prototype.keys=e.prototype.values;e.prototype[Symbol.iterator]=e.prototype.values;e.prototype.forEach=function(t,b){var m=this;this.JSC$6827_map_.forEach(function(q){return t.call(b,q,q,m)})};
return e});
Ul("Math.log2",function(W){return W?W:function(e){return Math.log(e)/Math.LN2}});
Ul("Object.values",function(W){return W?W:function(e){var t=[],b;for(b in e)d0(e,b)&&t.push(e[b]);return t}});
Ul("Object.is",function(W){return W?W:function(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}});
Ul("Array.prototype.includes",function(W){return W?W:function(e,t){var b=this;b instanceof String&&(b=String(b));var m=b.length;t=t||0;for(t<0&&(t=Math.max(t+m,0));t<m;t++){var q=b[t];if(q===e||Object.is(q,e))return!0}return!1}});
Ul("String.prototype.includes",function(W){return W?W:function(e,t){return eu(this,e,"includes").indexOf(e,t||0)!==-1}});
Ul("Array.from",function(W){return W?W:function(e,t,b){t=t!=null?t:function(X){return X};
var m=[],q=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(typeof q=="function"){e=q.call(e);for(var Q=0;!(q=e.next()).done;)m.push(t.call(b,q.value,Q++))}else for(q=e.length,Q=0;Q<q;Q++)m.push(t.call(b,e[Q],Q));return m}});
Ul("Object.entries",function(W){return W?W:function(e){var t=[],b;for(b in e)d0(e,b)&&t.push([b,e[b]]);return t}});
Ul("Number.isFinite",function(W){return W?W:function(e){return typeof e!=="number"?!1:!isNaN(e)&&e!==Infinity&&e!==-Infinity}});
Ul("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Ul("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Ul("Number.isInteger",function(W){return W?W:function(e){return Number.isFinite(e)?e===Math.floor(e):!1}});
Ul("Number.isSafeInteger",function(W){return W?W:function(e){return Number.isInteger(e)&&Math.abs(e)<=Number.MAX_SAFE_INTEGER}});
Ul("String.prototype.endsWith",function(W){return W?W:function(e,t){var b=eu(this,e,"endsWith");t===void 0&&(t=b.length);t=Math.max(0,Math.min(t|0,b.length));for(var m=e.length;m>0&&t>0;)if(b[--t]!=e[--m])return!1;return m<=0}});
var zES=function(W,e){W instanceof String&&(W+="");var t=0,b=!1,m={next:function(){if(!b&&t<W.length){var q=t++;return{value:e(q,W[q]),done:!1}}b=!0;return{done:!0,value:void 0}}};
m[Symbol.iterator]=function(){return m};
return m};
Ul("Array.prototype.entries",function(W){return W?W:function(){return zES(this,function(e,t){return[e,t]})}});
Ul("Math.trunc",function(W){return W?W:function(e){e=Number(e);if(isNaN(e)||e===Infinity||e===-Infinity||e===0)return e;var t=Math.floor(Math.abs(e));return e<0?-t:t}});
Ul("Number.isNaN",function(W){return W?W:function(e){return typeof e==="number"&&isNaN(e)}});
Ul("Array.prototype.keys",function(W){return W?W:function(){return zES(this,function(e){return e})}});
Ul("Array.prototype.values",function(W){return W?W:function(){return zES(this,function(e,t){return t})}});
Ul("Array.prototype.fill",function(W){return W?W:function(e,t,b){var m=this.length||0;t<0&&(t=Math.max(0,m+t));if(b==null||b>m)b=m;b=Number(b);b<0&&(b=Math.max(0,m+b));for(t=Number(t||0);t<b;t++)this[t]=e;return this}});
var ts=function(W){return W?W:Array.prototype.fill};
Ul("Int8Array.prototype.fill",ts);Ul("Uint8Array.prototype.fill",ts);Ul("Uint8ClampedArray.prototype.fill",ts);Ul("Int16Array.prototype.fill",ts);Ul("Uint16Array.prototype.fill",ts);Ul("Int32Array.prototype.fill",ts);Ul("Uint32Array.prototype.fill",ts);Ul("Float32Array.prototype.fill",ts);Ul("Float64Array.prototype.fill",ts);
Ul("Object.fromEntries",function(W){return W?W:function(e){var t={};if(!(Symbol.iterator in e))throw new TypeError("r`"+e);e=e[Symbol.iterator].call(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;if(Object(b)!==b)throw new TypeError("s");t[b[0]]=b[1]}return t}});
Ul("String.prototype.replaceAll",function(W){return W?W:function(e,t){if(e instanceof RegExp&&!e.global)throw new TypeError("t");return e instanceof RegExp?this.replace(e,t):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),t)}});
Ul("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
Ul("String.prototype.repeat",function(W){return W?W:function(e){var t=eu(this,null,"repeat");if(e<0||e>1342177279)throw new RangeError("u");e|=0;for(var b="";e;)if(e&1&&(b+=t),e>>>=1)t+=t;return b}});
Ul("Array.prototype.findIndex",function(W){return W?W:function(e,t){return Y$R(this,e,t).i}});
Ul("Array.prototype.flatMap",function(W){return W?W:function(e,t){var b=[];Array.prototype.forEach.call(this,function(m,q){m=e.call(t,m,q,this);Array.isArray(m)?b.push.apply(b,m):b.push(m)});
return b}});
Ul("String.prototype.codePointAt",function(W){return W?W:function(e){var t=eu(this,null,"codePointAt"),b=t.length;e=Number(e)||0;if(e>=0&&e<b){e|=0;var m=t.charCodeAt(e);if(m<55296||m>56319||e+1===b)return m;e=t.charCodeAt(e+1);return e<56320||e>57343?m:(m-55296)*1024+e+9216}}});
Ul("String.fromCodePoint",function(W){return W?W:function(e){for(var t="",b=0;b<arguments.length;b++){var m=Number(arguments[b]);if(m<0||m>1114111||m!==Math.floor(m))throw new RangeError("v`"+m);m<=65535?t+=String.fromCharCode(m):(m-=65536,t+=String.fromCharCode(m>>>10&1023|55296),t+=String.fromCharCode(m&1023|56320))}return t}});
Ul("String.prototype.padStart",function(W){return W?W:function(e,t){var b=eu(this,null,"padStart");e-=b.length;t=t!==void 0?String(t):" ";return(e>0&&t?t.repeat(Math.ceil(e/t.length)).substring(0,e):"")+b}});
Ul("Promise.prototype.finally",function(W){return W?W:function(e){return this.then(function(t){return Promise.resolve(e()).then(function(){return t})},function(t){return Promise.resolve(e()).then(function(){throw t;
})})}});
Ul("Math.imul",function(W){return W?W:function(e,t){e=Number(e);t=Number(t);var b=e&65535,m=t&65535;return b*m+((e>>>16&65535)*m+b*(t>>>16&65535)<<16>>>0)|0}});
Ul("Object.hasOwn",function(W){return W?W:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});
Ul("Math.sign",function(W){return W?W:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}});
Ul("Array.prototype.flat",function(W){return W?W:function(e){e=e===void 0?1:e;var t=[];Array.prototype.forEach.call(this,function(b){Array.isArray(b)&&e>0?(b=Array.prototype.flat.call(b,e-1),t.push.apply(t,b)):t.push(b)});
return t}});
Ul("String.raw",function(W){return W?W:function(e,t){if(e==null)throw new TypeError("w");for(var b=e.raw,m=b.length,q="",Q=0;Q<m;++Q)q+=b[Q],Q+1<m&&Q+1<arguments.length&&(q+=String(arguments[Q+1]));return q}});
Ul("Reflect.ownKeys",function(W){return W?W:function(e){var t=[],b=Object.getOwnPropertyNames(e);e=Object.getOwnPropertySymbols(e);for(var m=0;m<b.length;m++)(b[m].substring(0,14)=="jscomp_symbol_"?e:t).push(b[m]);return t.concat(e)}});
Ul("Object.getOwnPropertyDescriptors",function(W){return W?W:function(e){for(var t={},b=Reflect.ownKeys(e),m=0;m<b.length;m++)t[b[m]]=Object.getOwnPropertyDescriptor(e,b[m]);return t}});
Ul("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var t=Object.seal({}),b=Object.seal({}),m=new W([t]);if(!m.has(t)||m.has(b))return!1;m.delete(t);m.add(b);return!m.has(t)&&m.has(b)}catch(q){return!1}}())return W;
var e=function(t){this.JSC$6834_map_=new WeakMap;if(t){t=_.R(t);for(var b;!(b=t.next()).done;)this.add(b.value)}};
e.prototype.add=function(t){this.JSC$6834_map_.set(t,!0);return this};
e.prototype.has=function(t){return this.JSC$6834_map_.has(t)};
e.prototype.delete=function(t){return this.JSC$6834_map_.delete(t)};
return e});
Ul("Promise.allSettled",function(W){function e(b){return{status:"fulfilled",value:b}}
function t(b){return{status:"rejected",reason:b}}
return W?W:function(b){var m=this;b=Array.from(b,function(q){return m.resolve(q).then(e,t)});
return m.all(b)}});
Ul("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var UjL,bI,mc,r2,LpK,E1K,Au2,N4D,Yl,djG;UjL=UjL||{};_.tz=this||self;_.Nz=function(W,e,t){W=W.split(".");t=t||_.tz;for(var b;W.length&&(b=W.shift());)W.length||e===void 0?t[b]&&t[b]!==Object.prototype[b]?t=t[b]:t=t[b]={}:t[b]=e};
bI=function(W){var e=_.HO("WIZ_global_data.oxN3nb");W=e&&e[W];return W!=null?W:!1};
mc=_.tz._F_toggles_default_kevlar_base||[];r2=function(){};
r2.get=function(){return null};
_.HO=function(W,e){W=W.split(".");e=e||_.tz;for(var t=0;t<W.length;t++)if(e=e[W[t]],e==null)return null;return e};
_.q7=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.ug=function(W){var e=typeof W;return e!="object"?e:W?Array.isArray(W)?"array":e:"null"};
_.Ns=function(W){var e=_.ug(W);return e=="array"||e=="object"&&typeof W.length=="number"};
_.tk=function(W){var e=typeof W;return e=="object"&&W!=null||e=="function"};
_.bh=function(W){return Object.prototype.hasOwnProperty.call(W,LpK)&&W[LpK]||(W[LpK]=++E1K)};
LpK="closure_uid_"+(Math.random()*1E9>>>0);E1K=0;Au2=function(W,e,t){return W.call.apply(W.bind,arguments)};
N4D=function(W,e,t){if(!W)throw Error();if(arguments.length>2){var b=Array.prototype.slice.call(arguments,2);return function(){var m=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(m,b);return W.apply(e,m)}}return function(){return W.apply(e,arguments)}};
_.p3=function(W,e,t){_.p3=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Au2:N4D;return _.p3.apply(null,arguments)};
_.Sz=function(W,e){var t=Array.prototype.slice.call(arguments,1);return function(){var b=t.slice();b.push.apply(b,arguments);return W.apply(this,b)}};
_.RP=function(){return Date.now()};
Yl=function(W){return W};
_.QP=function(W,e){function t(){}
t.prototype=e.prototype;W.superClass_=e.prototype;W.prototype=new t;W.prototype.constructor=W;W.base=function(b,m,q){for(var Q=Array(arguments.length-2),X=2;X<arguments.length;X++)Q[X-2]=arguments[X];return e.prototype[m].apply(b,Q)}};
djG=function(W){return W};var WBK,e5R;_.P=function(W,e,t,b){var m=arguments.length,q=m<3?e:b===null?b=Object.getOwnPropertyDescriptor(e,t):b,Q;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")q=Reflect.decorate(W,e,t,b);else for(var X=W.length-1;X>=0;X--)if(Q=W[X])q=(m<3?Q(q):m>3?Q(e,t,q):Q(e,t))||q;m>3&&q&&Object.defineProperty(e,t,q)};
_.Y=function(W,e){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,e)};
WBK=function(W,e){if(e!==null&&e!==void 0){if(typeof e!=="object"&&typeof e!=="function")throw new TypeError("x");if(t===void 0){if(!Symbol.dispose)throw new TypeError("z");var t=e[Symbol.dispose]}if(typeof t!=="function")throw new TypeError("A");W.stack.push({value:e,dispose:t,async:!1})}return e};
e5R=function(W){function e(q){W.error=W.hasError?new SuppressedError(q,W.error,"An error was suppressed during disposal."):q;W.hasError=!0}
function t(){for(;b=W.stack.pop();)try{if(!b.async&&m===1)return m=0,W.stack.push(b),Promise.resolve().then(t);if(b.dispose){var q=b.dispose.call(b.value);if(b.async)return m|=2,Promise.resolve(q).then(t,function(Q){e(Q);return t()})}else m|=1}catch(Q){e(Q)}if(m===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var b,m=0;t()};_.QP(_.WZ,Error);_.WZ.prototype.name="CustomError";var tqQ;var boD=void 0,m8Q,rPD=typeof TextDecoder!=="undefined",bQs,tGQ=typeof String.prototype.isWellFormed==="function",ecK=typeof TextEncoder!=="undefined";var qf2;_.$a=function(W){for(var e=[],t=0,b=0;b<W.length;b++){var m=W.charCodeAt(b);m<128?e[t++]=m:(m<2048?e[t++]=m>>6|192:((m&64512)==55296&&b+1<W.length&&(W.charCodeAt(b+1)&64512)==56320?(m=65536+((m&1023)<<10)+(W.charCodeAt(++b)&1023),e[t++]=m>>18|240,e[t++]=m>>12&63|128):e[t++]=m>>12|224,e[t++]=m>>6&63|128),e[t++]=m&63|128)}return e};
qf2=function(W){for(var e=[],t=0,b=0;t<W.length;){var m=W[t++];if(m<128)e[b++]=String.fromCharCode(m);else if(m>191&&m<224){var q=W[t++];e[b++]=String.fromCharCode((m&31)<<6|q&63)}else if(m>239&&m<365){q=W[t++];var Q=W[t++],X=W[t++];m=((m&7)<<18|(q&63)<<12|(Q&63)<<6|X&63)-65536;e[b++]=String.fromCharCode(55296+(m>>10));e[b++]=String.fromCharCode(56320+(m&1023))}else q=W[t++],Q=W[t++],e[b++]=String.fromCharCode((m&15)<<12|(q&63)<<6|Q&63)}return e.join("")};var aR=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},R5K=/&/g,QI2=/</g,FBG=/>/g,XIZ=/"/g,IeL=/'/g,aeD=/\x00/g,wIg=/[\x00&<>"']/;var Fi=!!(mc[0]>>14&1),u2Z=!!(mc[0]>>15&1),cPS=!!(mc[0]&8),vxv=!!(mc[0]&2),Gjg=!!(mc[0]&4),D89=!!(mc[0]&16);var Dg=Fi?u2Z:bI(610401301),SfK=Fi?cPS:bI(772657768),BwR=Fi?vxv:bI(513659523),oxD=Fi?Gjg:bI(568333945),vC2=Fi?D89:bI(1331761403);var SG,le2=_.tz.navigator;SG=le2?le2.userAgentData||null:null;var UH;_.HZ=function(W,e){return Array.prototype.indexOf.call(W,e,void 0)};
_.VZ=function(W,e,t){Array.prototype.forEach.call(W,e,t)};
_.Xi=function(W,e,t){return Array.prototype.filter.call(W,e,t)};
_.yO=function(W,e,t){return Array.prototype.map.call(W,e,t)};
UH=function(W,e,t){return Array.prototype.some.call(W,e,t)};
_.NqR=function(W,e,t){return Array.prototype.every.call(W,e,t)};var IP=function(W){IP[" "](W);return W};
IP[" "]=function(){};
var f8=function(W,e){try{return IP(W[e]),!0}catch(t){}return!1},oqg=function(W,e,t,b){b=b?b(e):e;
return Object.prototype.hasOwnProperty.call(W,b)?W[b]:W[b]=t(e)};var ZoD,Ei,$8v,kjc,yPK,jIK,toZ,CYz,nxs,feS,Y_G,Tws,JPc,sIc,h5K,Ho2;_.HgZ=function(){return _.tz.navigator||null};
ZoD=pQ();_.aP=qLL();Ei=lv("Edge");$8v=Ei||_.aP;_.w2=lv("Gecko")&&!(_.IR(_.vZ(),"WebKit")&&!lv("Edge"))&&!(lv("Trident")||lv("MSIE"))&&!lv("Edge");_.uI=_.IR(_.vZ(),"WebKit")&&!lv("Edge");kjc=_.uI&&lv("Mobile");_.pI9=_.uDv();yPK=_.czv();jIK=(TS()?SG.platform==="Linux":lv("Linux"))||_.v99();toZ=_.ag9();CYz=wZR();nxs=lv("iPad");feS=lv("iPod");_.gxQ=_.Jz();Y_G=_.IR(_.vZ(),"KaiOS");Tws=function(){var W=_.tz.document;return W?W.documentMode:void 0};
a:{var x8K="",OoR=function(){var W=_.vZ();if(_.w2)return/rv:([^\);]+)(\)|;)/.exec(W);if(Ei)return/Edge\/([\d\.]+)/.exec(W);if(_.aP)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.uI)return/WebKit\/(\S+)/.exec(W);if(ZoD)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
OoR&&(x8K=OoR?OoR[1]:"");if(_.aP){var Mqc=Tws();if(Mqc!=null&&Mqc>parseFloat(x8K)){JPc=String(Mqc);break a}}JPc=x8K}sIc=JPc;h5K={};_.cb=function(W){return oqg(h5K,W,function(){return _.cZ(sIc,W)>=0})};
if(_.tz.document&&_.aP){var KBc=Tws();Ho2=KBc?KBc:parseInt(sIc,10)||void 0}else Ho2=void 0;_.PYG=Ho2;var ZcG,$gR,Vqc;_.vb=yK();ZcG=wZR()||lv("iPod");$gR=lv("iPad");Vqc=_.QRc();_.G9=_.nQ();_.JQ=_.gG()&&!_.Jz();var ioc,DI,zOL,ed2,z59,Yfz;ioc={};DI=null;zOL=_.w2||_.uI||typeof _.tz.btoa=="function";_.eK=function(W,e){e===void 0&&(e=0);Yfz();e=ioc[e];for(var t=Array(Math.floor(W.length/3)),b=e[64]||"",m=0,q=0;m<W.length-2;m+=3){var Q=W[m],X=W[m+1],I=W[m+2],u=e[Q>>2];Q=e[(Q&3)<<4|X>>4];X=e[(X&15)<<2|I>>6];I=e[I&63];t[q++]=u+Q+X+I}u=0;I=b;switch(W.length-m){case 2:u=W[m+1],I=e[(u&15)<<2]||b;case 1:W=W[m],t[q]=e[W>>2]+e[(W&3)<<4|u>>4]+I+b}return t.join("")};
ed2=function(W){var e="";z59(W,function(t){e+=String.fromCharCode(t)});
return e};
_.IP9=function(W){var e=[];z59(W,function(t){e.push(t)});
return e};
_.Xb=function(W){var e=W.length,t=e*3/4;t%3?t=Math.floor(t):_.XD("=.",W[e-1])&&(t=_.XD("=.",W[e-2])?t-2:t-1);var b=new Uint8Array(t),m=0;z59(W,function(q){b[m++]=q});
return m!==t?b.subarray(0,m):b};
z59=function(W,e){function t(I){for(;b<W.length;){var u=W.charAt(b++),c=DI[u];if(c!=null)return c;if(!_.QK(u))throw Error("E`"+u);}return I}
Yfz();for(var b=0;;){var m=t(-1),q=t(0),Q=t(64),X=t(64);if(X===64&&m===-1)break;e(m<<2|q>>4);Q!=64&&(e(q<<4&240|Q>>2),X!=64&&e(Q<<6&192|X))}};
Yfz=function(){if(!DI){DI={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],t=0;t<5;t++){var b=W.concat(e[t].split(""));ioc[t]=b;for(var m=0;m<b.length;m++){var q=b[m];DI[q]===void 0&&(DI[q]=m)}}}};var xsD=typeof Uint8Array!=="undefined",pZL=!_.aP&&typeof btoa==="function",yzS=/[-_.]/g,$sR={"-":"+",_:"/",".":"="},TZ={};var gB,LBG;gB=function(W,e){if(e!==TZ)throw Error("G");this.JSC$6865_value_=W;if(W!=null&&W.length===0)throw Error("F");};
_.Jk=function(){return U8Z||(U8Z=new gB(null,TZ))};
LBG=function(W){return new Uint8Array(fO(W)||0)};
gB.prototype.isEmpty=function(){return this.JSC$6865_value_==null};
gB.prototype.sizeBytes=function(){var W=fO(this);return W?W.length:0};
var fO=function(W){if(TZ!==TZ)throw Error("G");var e=W.JSC$6865_value_;e=e==null||xsD&&e!=null&&e instanceof Uint8Array?e:typeof e==="string"?jRZ(e):null;return e==null?e:W.JSC$6865_value_=e},U8Z;var n9L=void 0;var BU=typeof Symbol==="function"&&typeof Symbol()==="symbol",Exz=vU("jas",void 0,!0),Vw=vU(void 0,"0di"),yS=vU(void 0,"1oa"),LC=vU(void 0,Symbol()),nv9=vU(void 0,"0ub"),gvL=vU(void 0,"0ubs"),x9K=vU(void 0,"0ubsb"),zNS=vU(void 0,"0actk"),KC=vU("m_m","messagePrototypeMarker",!0),HrK=vU(void 0,"vps"),ykG=vU();var g9z,fgZ,SK,AP9;g9z={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};fgZ=Object.defineProperties;_.oy=BU?Exz:"internalArrayState";AP9=[];$v(AP9,7);SK=Object.freeze(AP9);var Pu={},Cr={},NwK=function(W,e,t){this.iterable=W;this.mapper=e;this.thisArg=t};
NwK.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
NwK.prototype[Symbol.iterator]=function(){return this};
var d8z=Object.freeze({}),Mo={};_.WrD=Kr(function(W){return W!==null&&W!==void 0});var HQL=Kr(function(W){return typeof W==="number"}),hcS=Kr(function(W){return typeof W==="string"}),K2G=Kr(function(W){return typeof W==="boolean"}),eXZ=Kr(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),LJc=Kr(function(W){return typeof W==="function"}),rP=Kr(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var ih=typeof _.tz.BigInt==="function"&&typeof _.tz.BigInt(0)==="bigint";var xl=Kr(function(W){return ih?W>=tcz&&W<=bkz:W[0]==="-"?Pvc(W,mpK):Pvc(W,r09)}),mpK=Number.MIN_SAFE_INTEGER.toString(),tcz=ih?BigInt(Number.MIN_SAFE_INTEGER):void 0,r09=Number.MAX_SAFE_INTEGER.toString(),bkz=ih?BigInt(Number.MAX_SAFE_INTEGER):void 0;var qY2=typeof Uint8Array.prototype.slice==="function",Lr=0,Ak=0,LO;var CC,gE,vu,T1,E9S;CC=typeof BigInt==="function"?BigInt.asIntN:void 0;_.JS=typeof BigInt==="function"?BigInt.asUintN:void 0;gE=Number.isSafeInteger;vu=Number.isFinite;T1=Math.trunc;E9S=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var KeR={};var kZK={},RXG=function(){try{var W=function(){return fwK(Map,[],this.constructor)};
_.Z(W,Map);IP(new W);return!1}catch(e){return!0}}(),Su=function(){this.JSC$6885_map_=new Map};
_.r=Su.prototype;_.r.get=function(W){return this.JSC$6885_map_.get(W)};
_.r.set=function(W,e){this.JSC$6885_map_.set(W,e);this.size=this.JSC$6885_map_.size;return this};
_.r.delete=function(W){W=this.JSC$6885_map_.delete(W);this.size=this.JSC$6885_map_.size;return W};
_.r.clear=function(){this.JSC$6885_map_.clear();this.size=this.JSC$6885_map_.size};
_.r.has=function(W){return this.JSC$6885_map_.has(W)};
_.r.entries=function(){return this.JSC$6885_map_.entries()};
_.r.keys=function(){return this.JSC$6885_map_.keys()};
_.r.values=function(){return this.JSC$6885_map_.values()};
_.r.forEach=function(W,e){return this.JSC$6885_map_.forEach(W,e)};
Su.prototype[Symbol.iterator]=function(){return this.entries()};
var te=function(){if(RXG)return Object.setPrototypeOf(Su.prototype,Map.prototype),Object.defineProperties(Su.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Su;var W=function(){return fwK(Map,[],this.constructor)};
_.Z(W,Map);return W}(),ig=function(W,e,t,b){t=t===void 0?BBQ:t;
b=b===void 0?BBQ:b;var m=te.call(this)||this;m.arrayState=W[_.oy]|0;m.valueCtor=e;m.keyToApi=t;m.valueToApi=m.valueCtor?lDv:b;for(var q=0;q<W.length;q++){var Q=W[q],X=t(Q[0],!1,!0),I=Q[1];e?I===void 0&&(I=null):I=b(Q[1],!1,!0,void 0,void 0,m.arrayState);te.prototype.set.call(m,X,I)}return m};
_.Z(ig,te);var Qav=function(W){if(W.arrayState&2)throw Error("K");};
_.r=ig.prototype;_.r.clear=function(){Qav(this);te.prototype.clear.call(this)};
_.r.delete=function(W){Qav(this);return te.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.r.entries=function(){if(this.valueCtor){var W=te.prototype.keys.call(this);W=new NwK(W,Zr2,this)}else W=te.prototype.entries.call(this);return W};
_.r.values=function(){if(this.valueCtor){var W=te.prototype.keys.call(this);W=new NwK(W,ig.prototype.get,this)}else W=te.prototype.values.call(this);return W};
_.r.forEach=function(W,e){this.valueCtor?te.prototype.forEach.call(this,function(t,b,m){W.call(e,m.get(b),b,m)}):te.prototype.forEach.call(this,W,e)};
_.r.set=function(W,e){Qav(this);W=this.keyToApi(W,!0,!1);return W==null?this:e==null?(te.prototype.delete.call(this,W),this):te.prototype.set.call(this,W,this.valueToApi(e,!0,!0,this.valueCtor,!1,this.arrayState))};
_.r.has=function(W){return te.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.r.get=function(W){W=this.keyToApi(W,!1,!1);var e=te.prototype.get.call(this,W);if(e!==void 0){var t=this.valueCtor;return t?(t=this.valueToApi(e,!1,!0,t,this.callToMutableOnAccess,this.arrayState),t!==e&&te.prototype.set.call(this,W,t),t):e}};
ig.prototype[Symbol.iterator]=function(){return this.entries()};
ig.prototype.toJSON=void 0;var $oQ;var xo2=function(){},AS=function(W,e){for(var t in W)!isNaN(t)&&e(W,+t,W[t])},Orv=function(W){var e=new xo2;
AS(W,function(t,b,m){e[b]=mU(m)});
e.reviveUnknownFields=W.reviveUnknownFields;return e},jyS={reviveIntoImmutable:!0};var JkR;var PhK,VPG;var Frc,ZQ,v3,oz,XkS,yP,SI,Id9,adg,fY,wkQ,g2,x2,Oq;Frc=_.Yv(0);_.Bb={};_.oP=function(W,e,t,b,m){e=ZQ(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e,t,m);if(e!==null||b&&W.noLegacyNull!==Cr)return e};
ZQ=function(W,e,t,b){if(e===-1)return null;var m=e+(t?0:-1),q=W.length-1;if(!(q<1+(t?0:-1))){if(m>=q){var Q=W[q];if(Q!=null&&typeof Q==="object"&&Q.constructor===Object){t=Q[e];var X=!0}else if(m===q)t=Q;else return}else t=W[m];if(b&&t!=null){b=b(t);if(b==null)return b;if(!Object.is(b,t))return X?Q[e]=b:W[m]=b,b}return t}};
_.qI=function(W,e,t,b){wl(W);var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;GV(m,m[_.oy]|0,e,t,b);return W};
_.lI=function(W,e,t){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jK(W,W[_.oy]|0,e,t)!==void 0};
_.ZI=function(W,e,t,b){var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jK(m,m[_.oy]|0,e,oz(W,b,t))!==void 0};
_.tE=function(W){return W===d8z?2:4};
_.$2=function(W,e){W=_.oP(W,e,void 0,void 0,WUZ);return W==null?_.Jk():W};
v3=function(W,e,t,b){wl(W);var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=m[_.oy]|0;if(b==null){var Q=tTL(m);if(bCs(Q,m,q,t)===e)Q.set(t,0);else return W}else q=m9v(m,q,t,e);GV(m,q,e,b);return W};
_.k2=function(W,e,t,b){var m=W[_.oy]|0,q=hk(m);m=m9v(W,m,t,e,q);GV(W,m,e,b,q)};
oz=function(W,e,t){return _.pY(W,e)===t?t:-1};
_.pY=function(W,e){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bCs(tTL(W),W,void 0,e,void 0)};
XkS=function(W,e,t){var b=W[_.oy]|0,m=hk(b),q=ZQ(W,t,m);if(q!=null&&q[KC]===Pu){if(!fr(q))return Ip(q),q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Q=q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(q)&&(Q=q);if(Q){var X=Q[_.oy]|0;X&2&&(Q=QS(Q,X))}Q=Rp(Q,e,!0);Q!==q&&GV(W,b,t,Q,m);return Q};
_.mx=function(W,e,t,b){var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=m[_.oy]|0;e=jK(m,q,e,t,b);if(e==null)return e;q=m[_.oy]|0;if(!fr(W,q)){var Q=ovQ(e);Q!==e&&(Ip(W)&&(m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=m[_.oy]|0),e=Q,q=GV(m,q,t,e,b),vR(m,q))}return e};
_.eh=function(W,e,t,b){var m=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rSD(W,m,m[_.oy]|0,e,t,b,!1,!0)};
_.bF=function(W,e,t,b){t=qBz(t);_.qI(W,e,t,b);t&&!fr(t)&&vR(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
_.mT=function(W,e,t,b){b=qBz(b);v3(W,e,t,b);b&&!fr(b)&&vR(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
yP=function(W,e,t){wl(W);var b=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=b[_.oy]|0;if(t==null)return GV(b,m,e),W;for(var q=t===SK?7:t[_.oy]|0,Q=q,X=ln(q),I=X||Object.isFrozen(t),u=!0,c=!0,v=0;v<t.length;v++){var D=t[v];X||(D=fr(D),u&&(u=!D),c&&(c=D))}X||(q=u?13:5,q=c?q&-4097:q|4096);I&&q===Q||(t=mU(t),Q=0,q=BR(q,m));q!==Q&&$v(t,q);m=GV(b,m,e,t);2&q||!(4096&q||16&q)||vR(b,m);return W};
SI=function(W,e,t,b){Q$9(W,e,t,b);return W};
Id9=function(W,e,t){Q$9(W,e,ju,void 0,t,1,!0);return W};
_.CY=function(W,e,t){W=_.oP(W,e,void 0,t);e=typeof W;W=W==null?W:e==="bigint"?_.Yv((0,_.JS)(64,W)):_.DM(W)?e==="string"?_.IDD(W):_.Fev(W):void 0;return W};
_.nY=function(W,e){var t=t===void 0?!1:t;var b;return(b=_.L2c(_.oP(W,e)))!=null?b:t};
_.bQ=function(W,e,t){t=t===void 0?0:t;var b;return(b=_.$l(_.oP(W,e)))!=null?b:t};
adg=function(W,e){var t=t===void 0?0:t;W=_.pC(_.oP(W,e));return W!=null?W:t};
fY=function(W,e,t){t=t===void 0?Frc:t;var b;return(b=_.ubz(_.oP(W,e)))!=null?b:t};
wkQ=function(W){var e=e===void 0?Frc:e;var t;return(t=_.CY(W,23))!=null?t:e};
g2=function(W,e){var t=t===void 0?0:t;var b;return(b=_.oP(W,e,void 0,void 0,_.XC))!=null?b:t};
_.T9=function(W,e,t,b){t=t===void 0?"":t;var m;return(m=_.Hu(_.oP(W,e,b)))!=null?m:t};
_.Js=function(W,e){var t=t===void 0?0:t;var b;return(b=_.lg(_.oP(W,e)))!=null?b:t};
x2=function(W,e){var t=t===void 0?"0":t;W=wUc(_.oP(W,e),!0);return W!=null?W:t};
Oq=function(W,e,t){return _.T9(W,oz(W,t,e))};
_.M7=function(W,e,t,b){return _.mx(W,e,oz(W,b,t),void 0)};
_.Gg=function(W,e){return _.Hu(_.oP(W,e,void 0,_.Bb))};
_.Rh=function(W,e,t){return _.qI(W,e,Us2(t))};
_.y5=function(W,e,t){return _.kE(W,e,Us2(t),!1)};
_.sq=function(W,e,t){return _.qI(W,e,_.ZM(t))};
_.Zt=function(W,e,t){return _.qI(W,e,fC(t))};
_.Ga=function(W,e,t){return _.qI(W,e,M9(t))};
_.WN=function(W,e,t,b){return _.kE(W,e,M9(t),"",b)};
_.rT=function(W,e,t){return _.qI(W,e,t==null?t:_.o$(t))};
_.hs=function(W,e,t){return _.kE(W,e,t==null?t:_.o$(t),0)};var nO=function(W,e,t){this.buffer=W;if(t&&!e)throw Error();this.JSC$6897_isImmutable=e};var u$G=function(W,e,t,b){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6900_start_=0;this.init(W,e,t,b)},Hb,vUg,GlQ,SYL,ySD,c0S;
_.r=u$G.prototype;_.r.init=function(W,e,t,b){var m=b===void 0?{}:b;b=m.aliasBytesFields===void 0?!1:m.aliasBytesFields;m=m.treatNewDataAsImmutable===void 0?!1:m.treatNewDataAsImmutable;this.aliasBytesFields=b;this.treatNewDataAsImmutable=m;W&&(W=FUK(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$6897_isImmutable,this.JSC$6900_start_=e||0,this.end_=t!==void 0?this.JSC$6900_start_+t:this.bytes_.length,this.cursor_=this.JSC$6900_start_)};
_.r.free=function(){this.clear();c0S.length<100&&c0S.push(this)};
_.r.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6900_start_=0;this.aliasBytesFields=!1};
_.r.reset=function(){this.cursor_=this.JSC$6900_start_};
_.r.atEnd=function(){return this.cursor_==this.end_};
_.KY=function(W,e){var t=0,b=0,m=0,q=W.bytes_,Q=W.cursor_;do{var X=q[Q++];t|=(X&127)<<m;m+=7}while(m<32&&X&128);m>32&&(b|=(X&127)>>4);for(m=3;m<32&&X&128;m+=7)X=q[Q++],b|=(X&127)<<m;Hb(W,Q);if(X<128)return e(t>>>0,b>>>0);throw Error("X");};
Hb=function(W,e){W.cursor_=e;if(e>W.end_)throw Error("Y`"+e+"`"+W.end_);};
_.Pb=function(W){var e=W.bytes_,t=W.cursor_,b=e[t++],m=b&127;if(b&128&&(b=e[t++],m|=(b&127)<<7,b&128&&(b=e[t++],m|=(b&127)<<14,b&128&&(b=e[t++],m|=(b&127)<<21,b&128&&(b=e[t++],m|=b<<28,b&128&&e[t++]&128&&e[t++]&128&&e[t++]&128&&e[t++]&128&&e[t++]&128)))))throw Error("X");Hb(W,t);return m};
_.VP=function(W){var e=W.bytes_,t=W.cursor_,b=e[t],m=e[t+1],q=e[t+2];e=e[t+3];Hb(W,W.cursor_+4);return(b<<0|m<<8|q<<16|e<<24)>>>0};
vUg=function(W){var e=_.VP(W);W=_.VP(W);return YLK(e,W)};
GlQ=function(W){var e=_.VP(W),t=_.VP(W);W=(t>>31)*2+1;var b=t>>>20&2047;e=4294967296*(t&1048575)+e;return b==2047?e?NaN:W*Infinity:b==0?W*4.9E-324*e:W*Math.pow(2,b-1075)*(e+4503599627370496)};
_.DpS=function(W){for(var e=0,t=W.cursor_,b=t+10,m=W.bytes_;t<b;){var q=m[t++];e|=q;if((q&128)===0)return Hb(W,t),!!(e&127)}throw Error("X");};
SYL=function(W,e){if(e<0)throw Error("Z`"+e);var t=W.cursor_,b=t+e;if(b>W.end_)throw Error("Y`"+(W.end_-t)+"`"+e);W.cursor_=b;return t};
ySD=function(W,e){if(e==0)return _.Jk();var t=SYL(W,e);W.aliasBytesFields&&W.bytesAreImmutable_?t=W.bytes_.subarray(t,t+e):(W=W.bytes_,e=t+e,t=t===e?new Uint8Array(0):qY2?W.slice(t,e):new Uint8Array(W.subarray(t,e)));return t.length==0?_.Jk():new gB(t,TZ)};
c0S=[];var oUK=function(W,e,t,b){if(c0S.length){var m=c0S.pop();m.init(W,e,t,b);W=m}else W=new u$G(W,e,t,b);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Bn9(this,b)},Bn9=function(W,e){e=e===void 0?{}:e;
W.discardUnknownFields=e.discardUnknownFields===void 0?!1:e.discardUnknownFields},nlg=function(W,e,t,b){if(ldS.length){var m=ldS.pop();
Bn9(m,b);m.decoder_.init(W,e,t,b);return m}return new oUK(W,e,t,b)},k1z,sw,ZkS,ldS;
oUK.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ldS.length<100&&ldS.push(this)};
oUK.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
k1z=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var e=_.Pb(W.decoder_)>>>0,t=e>>>3;e&=7;if(!(e>=0&&e<=5))throw Error("T`"+e+"`"+W.fieldCursor_);if(t<1)throw Error("U`"+t+"`"+W.fieldCursor_);W.nextField_=t;W.nextWireType_=e;return!0};
sw=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?sw(W):_.DpS(W.decoder_);break;case 1:W=W.decoder_;Hb(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)sw(W);else{var e=_.Pb(W.decoder_)>>>0;W=W.decoder_;Hb(W,W.cursor_+e)}break;case 5:W=W.decoder_;Hb(W,W.cursor_+4);break;case 3:e=W.nextField_;do{if(!k1z(W))throw Error("V");if(W.nextWireType_==4){if(W.nextField_!=e)throw Error("W");break}sw(W)}while(1);break;default:throw Error("T`"+W.nextWireType_+"`"+W.fieldCursor_);}};
ZkS=function(W,e,t){var b=W.decoder_.end_,m=_.Pb(W.decoder_)>>>0,q=W.decoder_.cursor_+m,Q=q-b;Q<=0&&(W.decoder_.end_=q,t(e,W,void 0,void 0,void 0),Q=q-W.decoder_.cursor_);if(Q)throw Error("S`"+m+"`"+(m-Q));W.decoder_.cursor_=q;W.decoder_.end_=b};
_.$pv=function(W){var e=_.Pb(W.decoder_)>>>0;W=W.decoder_;var t=SYL(W,e);W=W.bytes_;if(rPD){var b=W,m;(m=m8Q)||(m=m8Q=new TextDecoder("utf-8",{fatal:!0}));e=t+e;b=t===0&&e===b.length?b:b.subarray(t,e);try{var q=m.decode(b)}catch(u){if(boD===void 0){try{m.decode(new Uint8Array([128]))}catch(c){}try{m.decode(new Uint8Array([97])),boD=!0}catch(c){boD=!1}}!boD&&(m8Q=void 0);throw u;}}else{q=t;e=q+e;t=[];for(var Q=null,X,I;q<e;)X=W[q++],X<128?t.push(X):X<224?q>=e?eG():(I=W[q++],X<194||(I&192)!==128?(q--,
eG()):t.push((X&31)<<6|I&63)):X<240?q>=e-1?eG():(I=W[q++],(I&192)!==128||X===224&&I<160||X===237&&I>=160||((m=W[q++])&192)!==128?(q--,eG()):t.push((X&15)<<12|(I&63)<<6|m&63)):X<=244?q>=e-2?eG():(I=W[q++],(I&192)!==128||(X<<28)+(I-144)>>30!==0||((m=W[q++])&192)!==128||((b=W[q++])&192)!==128?(q--,eG()):(X=(X&7)<<18|(I&63)<<12|(m&63)<<6|b&63,X-=65536,t.push((X>>10&1023)+55296,(X&1023)+56320))):eG(),t.length>=8192&&(Q=W2L(Q,t),t.length=0);q=W2L(Q,t)}return q};
_.klS=function(W){var e=_.Pb(W.decoder_)>>>0;return ySD(W.decoder_,e)};
_.pkD=function(W,e,t){var b=_.Pb(W.decoder_)>>>0;for(b=W.decoder_.cursor_+b;W.decoder_.cursor_<b;)t.push(e(W.decoder_))};
ldS=[];var y0D=function(W,e){this.JSC$6907_lo=W>>>0;this.JSC$6907_hi=e>>>0},CqD=function(W){if(!W)return jag||(jag=new y0D(0,0));
if(!/^\d+$/.test(W))return null;bg(W);return new y0D(Lr,Ak)},jag,KUR=function(W,e){this.JSC$6909_lo=W>>>0;
this.JSC$6909_hi=e>>>0},hQv=function(W){if(!W)return nUL||(nUL=new KUR(0,0));
if(!/^-?\d+$/.test(W))return null;bg(W);return new KUR(Lr,Ak)},nUL;var fdS=function(){this.JSC$6911_buffer_=[]},HC9,gUG;
fdS.prototype.length=function(){return this.JSC$6911_buffer_.length};
fdS.prototype.end=function(){var W=this.JSC$6911_buffer_;this.JSC$6911_buffer_=[];return W};
HC9=function(W,e,t){for(;t>0||e>127;)W.JSC$6911_buffer_.push(e&127|128),e=(e>>>7|t<<25)>>>0,t>>>=7;W.JSC$6911_buffer_.push(e)};
gUG=function(W,e){for(;e>127;)W.JSC$6911_buffer_.push(e&127|128),e>>>=7;W.JSC$6911_buffer_.push(e)};
_.Pgv=function(W,e){if(e>=0)gUG(W,e);else{for(var t=0;t<9;t++)W.JSC$6911_buffer_.push(e&127|128),e>>=7;W.JSC$6911_buffer_.push(1)}};
_.Ew=function(W,e){W.JSC$6911_buffer_.push(e>>>0&255);W.JSC$6911_buffer_.push(e>>>8&255);W.JSC$6911_buffer_.push(e>>>16&255);W.JSC$6911_buffer_.push(e>>>24&255)};var Tns,PR,iCG,LUG;Tns=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new fdS};
PR=function(W,e){e.length!==0&&(W.blocks_.push(e),W.totalLength_+=e.length)};
_.wuv=function(W,e){_.Uw(W,e,2);e=W.encoder_.end();PR(W,e);e.push(W.totalLength_);return e};
_.uC2=function(W,e){var t=e.pop();for(t=W.totalLength_+W.encoder_.length()-t;t>127;)e.push(t&127|128),t>>>=7,W.totalLength_++;e.push(t);W.totalLength_++};
_.Uw=function(W,e,t){gUG(W.encoder_,e*8+t)};
iCG=function(W,e,t){if(t!=null){switch(typeof t){case "string":CqD(t)}_.Uw(W,e,1);switch(typeof t){case "number":W=W.encoder_;VGD(t);_.Ew(W,Lr);_.Ew(W,Ak);break;case "bigint":t=BigInt.asUintN(64,t);t=new y0D(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)));W=W.encoder_;e=t.JSC$6907_hi;_.Ew(W,t.JSC$6907_lo);_.Ew(W,e);break;default:t=CqD(t),W=W.encoder_,e=t.JSC$6907_hi,_.Ew(W,t.JSC$6907_lo),_.Ew(W,e)}}};
LUG=function(W,e,t){_.Uw(W,e,2);gUG(W.encoder_,t.length);PR(W,W.encoder_.end());PR(W,t)};var XuK,OkG,McR,HkR,KrS;XuK=gl();_.J0R=gl();_.xpL=gl();OkG=gl();McR=gl();_.saz=gl();_.iI=gl();_.hXL=gl();HkR=gl();KrS=gl();_.PqD=gl();_.Vcg=gl();_.Ow=function(W,e,t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,e,t)};
_.Ow.prototype.toJSON=function(){return bn(this)};
_.Ow.prototype.serialize=function(W){return JSON.stringify(bn(this,W))};
var tKc=function(W,e){if(e==null||e=="")return new W;e=JSON.parse(e);if(!Array.isArray(e))throw Error("$");return new W(JzR(e))};
_.Ow.prototype.getExtension=function(W){fDL(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);Chg(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.tE(),W.JSC$6922_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$6922_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.tE(),W.JSC$6922_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$6922_hasMessageId)};
_.Ow.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=W[_.oy]|0;return Xd(this,W,e)?Fd(this,W,!0):new this.constructor(QS(W,e,!1))};
_.Ow.prototype[KC]=Pu;_.Ow.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var TV=function(W,e,t){this.$$binaryReaderFn=W;this.$$binaryWriterFn=e;W=Yl(XuK);this.$$isMsg=!!W&&t===W||!1},D9L=IM9(function(W,e,t,b,m){if(W.nextWireType_!==2)return!1;
ZkS(W,XkS(e,b,t),m);return!0},cS9),SB9=IM9(function(W,e,t,b,m){if(W.nextWireType_!==2)return!1;
ZkS(W,XkS(e,b,t),m);return!0},cS9),HR=Symbol(),MS=Symbol(),$9K=Symbol(),glD=Symbol(),j$v=Symbol(),vlG,G12;var Wf2,ikZ,YYG,zXD,UpZ,Lrg,EU2,A0K,Nnz,dpK,WCg,tZc,bmD,rfv,qGG;Wf2=function(W,e){var t=new Tns;TE9(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,xE(HR,he,KO,e));PR(t,t.encoder_.end());W=new Uint8Array(t.totalLength_);e=t.blocks_;for(var b=e.length,m=0,q=0;q<b;q++){var Q=e[q];W.set(Q,m);m+=Q.length}t.blocks_=[W];return W};
ikZ=_.VS(function(W,e,t){if(W.nextWireType_!==1)return!1;_.YE(e,t,GlQ(W.decoder_));return!0},s$9,KrS);
YYG=_.VS(function(W,e,t,b){if(W.nextWireType_!==1)return!1;_.k2(e,t,b,GlQ(W.decoder_));return!0},s$9,KrS);
zXD=_.VS(function(W,e,t,b){if(W.nextWireType_!==5)return!1;var m=_.VP(W.decoder_);W=(m>>31)*2+1;var q=m>>>23&255;m&=8388607;_.k2(e,t,b,q==255?m?NaN:W*Infinity:q==0?W*1.401298464324817E-45*m:W*Math.pow(2,q-150)*(m+8388608));return!0},function(W,e,t){e=_.XC(e);
e!=null&&(_.Uw(W,t,5),W=W.encoder_,t=LO||(LO=new DataView(new ArrayBuffer(8))),t.setFloat32(0,+e,!0),Ak=0,Lr=t.getUint32(0,!0),_.Ew(W,Lr))},HkR);
_.Y2=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;_.YE(e,t,_.KY(W.decoder_,eT));return!0},_.Ae,_.iI);
UpZ=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;W=_.KY(W.decoder_,eT);_.YE(e,t,W===0?void 0:W);return!0},_.Ae,_.iI);
Lrg=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.KY(W.decoder_,eT));return!0},_.Ae,_.iI);
_.z9=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;_.YE(e,t,_.Pb(W.decoder_));return!0},VTR,OkG);
EU2=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;W=_.Pb(W.decoder_);_.YE(e,t,W===0?void 0:W);return!0},VTR,OkG);
A0K=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.Pb(W.decoder_));return!0},VTR,OkG);
Nnz=_.VS(function(W,e,t){if(W.nextWireType_!==1)return!1;_.YE(e,t,vUg(W.decoder_));return!0},_.YBs,_.hXL);
dpK=_.MTv(function(W,e,t){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;e=_.pO(e,e[_.oy]|0,t);W.nextWireType_==2?_.pkD(W,vUg,e):e.push(vUg(W.decoder_));return!0},function(W,e,t){e=_.OCc(vvz,e,!1);
if(e!=null)for(var b=0;b<e.length;b++)iCG(W,t,e[b])},_.hXL);
_.Uq=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;_.YE(e,t,_.DpS(W.decoder_));return!0},_.zQ2,_.J0R);
WCg=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.DpS(W.decoder_));return!0},_.zQ2,_.J0R);
_.LY=_.VS(function(W,e,t){if(W.nextWireType_!==2)return!1;_.YE(e,t,_.$pv(W));return!0},_.Elz,_.xpL);
_.ejL=_.VS(function(W,e,t,b){if(W.nextWireType_!==2)return!1;_.k2(e,t,b,_.$pv(W));return!0},_.Elz,_.xpL);
tZc=_.MTv(function(W,e,t){if(W.nextWireType_!==2)return!1;W=_.$pv(W);_.pO(e,e[_.oy]|0,t).push(W);return!0},function(W,e,t){e=_.OCc(_.Hu,e,!0);
if(e!=null)for(var b=0;b<e.length;b++){var m=W,q=t,Q=e[b];Q!=null&&LUG(m,q,msZ(Q))}},_.xpL);
bmD=void 0;bmD=bmD===void 0?XuK:bmD;_.Eq=new TV(function(W,e,t,b,m){if(W.nextWireType_!==2)return!1;b=Rp(void 0,b,!0);_.pO(e,e[_.oy]|0,t).push(b);ZkS(W,b,m);return!0},function(W,e,t,b,m){if(Array.isArray(e))for(var q=0;q<e.length;q++)ASv(W,e[q],t,b,m)},bmD);
_.As=IM9(function(W,e,t,b,m,q){if(W.nextWireType_!==2)return!1;var Q=e[_.oy]|0;m9v(e,Q,q,t,hk(Q));e=XkS(e,b,t);ZkS(W,e,m);return!0},ASv);
_.maG=_.VS(function(W,e,t){if(W.nextWireType_!==2)return!1;_.YE(e,t,_.klS(W));return!0},_.NEG,_.PqD);
rfv=_.VS(function(W,e,t,b){if(W.nextWireType_!==2)return!1;_.k2(e,t,b,_.klS(W));return!0},_.NEG,_.PqD);
qGG=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.Pb(W.decoder_)>>>0);return!0},function(W,e,t){e=_.pC(e);
e!=null&&e!=null&&(_.Uw(W,t,0),gUG(W.encoder_,e))},McR);
_.N7=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;_.YE(e,t,_.Pb(W.decoder_));return!0},_.d9Q,_.Vcg);var FCs=function(){var W=RjG,e=Qqc;this.fieldIndex=175237375;this.ctor=e;this.isRepeated=0;this.getExtensionFn=_.mx;this.defaultValue=void 0;this.JSC$6922_hasMessageId=W.messageId!=null?Mo:void 0};
FCs.prototype.register=function(){IP(this)};var Xss=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Xss,_.Ow);var I$L=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(I$L,_.Ow);var re2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(re2,_.Ow);var a$s=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(a$s,_.Ow);var wsz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(wsz,_.Ow);var ucR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ucR,_.Ow);var cfR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(cfR,_.Ow);cfR.prototype.getData=function(){return _.$2(this,2)};var vmz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(vmz,_.Ow);var GuZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(GuZ,_.Ow);GuZ.prototype.getStyle=function(){return _.mx(this,Xss,1)};var tK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(tK,_.Ow);tK.prototype.getPayloadCase=function(){return _.pY(this,rR)};
tK.prototype.getStyle=function(){return _.M7(this,GuZ,6,rR)};
var DaG=function(){var W=new tK,e=new wsz;return _.mT(W,7,rR,e)},SGg=function(){var W=new tK,e=new ucR;
return _.mT(W,8,rR,e)},rR=[1,
2,3,4,5,6,7,8];var B_R=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(B_R,_.Ow);var omc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(omc,_.Ow);var l$G=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(l$G,_.Ow);var ZmD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ZmD,_.Ow);var $aG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z($aG,_.Ow);var kuv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(kuv,_.Ow);var psG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(psG,_.Ow);var yfQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(yfQ,_.Ow);yfQ.prototype.getData=function(){return _.$2(this,2)};var jqZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(jqZ,_.Ow);var mSs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(mSs,_.Ow);mSs.prototype.getPayloadCase=function(){return _.pY(this,d2)};
var d2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var W9=function(W,e){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=e===void 0?2:e};
_.Z(W9,Error);var CKG=Promise;var nmD=function(W){this.channelPromise=W};
nmD.prototype.send=function(W,e,t){this.channelPromise.then(function(b){b.send(W,e,t)})};var f$G=function(W,e){this.data=W;this.channel=e};
f$G.prototype.reply=function(W,e,t){this.channel.send(W,e,t)};var gm9=function(W){this.JSC$6988_port_=W};
gm9.prototype.send=function(W,e,t){t=t===void 0?[]:t;var b=new MessageChannel;T_R(b.port1,e);this.JSC$6988_port_.postMessage(W,[b.port2].concat(t))};
var JfS=function(W,e){T_R(W,e);return new gm9(W)},T_R=function(W,e){e&&(W.onmessage=function(t){e(new f$G(t.data,JfS(t.ports[0])))})};var xaz=function(W){this.verifier_=W},Om9=function(W){var e=Object.create(null);
(typeof W==="string"?[W]:W).forEach(function(t){if(t==="null")throw Error("ba");e[t]=!0});
return function(t){return e[t]===!0}};_.MZg=function(){if(!_.tz.addEventListener||!Object.defineProperty)return!1;var W=!1,e=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var t=function(){};
_.tz.addEventListener("test",t,e);_.tz.removeEventListener("test",t,e)}catch(b){}return W}();var sqG;_.eQ=function(W){var e=W.destination;var t=W.iframe;var b=W.origin;var m=W.channelName===void 0?"ZNWN1d":W.channelName;var q=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return sqG({destination:e,getSource:function(){return t.contentWindow},
originVerifier:b instanceof xaz?b:typeof b==="function"?new xaz(b):new xaz(Om9(b)),channelName:m,onMessage:q,onEstablished:W})};
sqG=function(W){var e=W.destination;var t=W.getSource;var b=W.originVerifier;var m=W.token===void 0?void 0:W.token;var q=W.channelName;var Q=W.onMessage===void 0?void 0:W.onMessage;var X=W.onEstablished===void 0?void 0:W.onEstablished;return new nmD(new CKG(function(I,u){var c=function(v){v.source&&v.source===t()&&b.verifier_(v.origin)&&(v.data.n||v.data)===q&&(e.removeEventListener("message",c,!1),m&&v.data.t!==m?u(Error("ca`"+q+"`"+m+"`"+v.data.t)):(I(JfS(v.ports[0],Q)),X&&X(v)))};
e.addEventListener("message",c,!1)}))};var hjQ=function(W){try{W()}catch(e){bv(e)}};var KCg=function(W){var e=this;var t=W.getMessageType;var b=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var m=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=t;this.onUnregisteredMessage_=b;this.onBeforeRegisteredMessage_=m;this.onAfterRegisteredMessage_=W;this.onMessage=function(q){return Hm2(e,q)}};
KCg.prototype.register=function(W,e){this.registry_.set(W,e);return this};
var Hm2=function(W,e){var t=W.getMessageType_(e.data),b=W.registry_.get(t);b?(hjQ(function(){return W.onBeforeRegisteredMessage_(e,t)}),hjQ(function(){return b(e)}),hjQ(function(){return W.onAfterRegisteredMessage_(e,t)})):hjQ(function(){return W.onUnregisteredMessage_(e,t)})};var PK9=function(W){this.JSC$7005_channel_=W},imG,YG9;
PK9.prototype.send=function(W,e,t){this.JSC$7005_channel_.send(bn(W),e,t)};
_.VZz=function(W,e){return function(t){var b=new W(t.data);return e(new f$G(b,t.channel))}};
imG=function(W){return function(e){return W(new f$G(e.data,new PK9(e.channel)))}};
YG9=function(W,e){return imG(_.VZz(W,e))};var zjg=function(W,e,t,b){this.registry=W;this.delegate=e;this.receiveMessageConstructor=t;this.createInitMessage=b;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},bOR=function(W){var e=new KCg({getMessageType:W.getPayloadCase});
return new zjg(e,new PK9(_.eQ({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:YG9(W.receiveMessageConstructor,e.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},UaD=function(W,e){W.createInitMessage=e};
zjg.prototype.send=function(W){if(!this.initialised)throw new W9("Attempted to send a message before initialisation.");this.delegate.send(W)};
var LCL=function(W,e){return _.F(function(t){if(!W.initialised)throw new W9("Attempted to send a message before initialisation.");return t.return(new Promise(function(b){W.delegate.send(e,YG9(W.receiveMessageConstructor,b))}))})};
zjg.prototype.init=function(){var W=this;return _.F(function(e){if(W.initialised)throw new W9("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var t=W.delegate,b=t.send,m=W.createInitMessage;var q=new I$L;var Q=[].concat(_.kP(W.features));q=_.$E(q,1,Q,_.o$);b.call(t,m.call(W,q))}W.initialised=!0;_.u8(e)})};
var tt=function(W,e){if(W.initialised)throw new W9('Attempted to set up API "'+e+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(e);return W.registry};
_.Ec.Object.defineProperties(zjg.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Emv=function(W){this.channel=W;this.registered=!1};
Emv.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new W9("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var e=new tK;var t=new a$s;t=_.Rh(t,1,W);e=_.mT(e,2,rR,t);this.channel.send(e)}else this.register();this.JSC$7019_audioEnabled=W};
Emv.prototype.register=function(){tt(this.channel,1);this.registered=!0};
Emv.prototype.isAudioEnabled=function(){return this.JSC$7019_audioEnabled};var Af2=function(W){this.channel=W};
_.r=Af2.prototype;_.r.onFirstFrameReady=function(W){tt(this.channel,2).register(11,function(e){e=_.M7(e.data,B_R,11,d2);if(!e)throw new W9("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.T9(e,1))})};
_.r.onReady=function(W){tt(this.channel,2).register(4,function(e){e=_.M7(e.data,l$G,4,d2);if(!e)throw new W9("Unexpectedly nonexistent GameReadyEvent");W(_.T9(e,1))})};
_.r.onLevelComplete=function(W){tt(this.channel,2).register(5,function(e){e=_.M7(e.data,ZmD,5,d2);if(!e)throw new W9("Unexpectedly nonexistent LevelCompleteEvent");W(_.T9(e,1),_.bQ(e,2))})};
_.r.onGameOver=function(W){tt(this.channel,2).register(6,function(e){e=_.M7(e.data,omc,6,d2);if(!e)throw new W9("Unexpectedly nonexistent GameOverEvent");W(_.T9(e,1))})};
_.r.pause=function(){var W=this;if(!this.channel.isInitialised)return tt(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new W9("Using unregistered Game Feature: pause.");var e=DaG();return new Promise(function(t){return _.F(function(b){if(b.nextAddress==1)return _.a(b,LCL(W.channel,e),2);t();_.u8(b)})})};
_.r.resume=function(){var W=this;if(!this.channel.isInitialised)return tt(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new W9("Using unregistered Game Feature: resume.");var e=SGg();return new Promise(function(t){return _.F(function(b){if(b.nextAddress==1)return _.a(b,LCL(W.channel,e),2);t();_.u8(b)})})};var N_D=function(W){this.channel=W};
N_D.prototype.onReady=function(W){tt(this.channel,5).register(8,function(e){if(!_.M7(e.data,$aG,8,d2))throw new W9("Unexpectedly nonexistent PageReadyEvent");W()})};var daQ=function(W){this.channel=W};
daQ.prototype.onChange=function(W){tt(this.channel,3).register(7,function(e){e=_.M7(e.data,kuv,7,d2);if(!e)throw new W9("Unexpectedly nonexistent ScoreEvent");W(_.T9(e,1),_.bQ(e,2))})};var Wbc={load:function(){throw new W9("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new W9("Storage used, but storage.onSave() listener not set!");}},eGv=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},tbZ=function(W){tt(W.channel,4).register(2,Wbc.load).register(3,Wbc.save);
W.initialSetupDone=!0};
eGv.prototype.onLoad=function(W){this.initialSetupDone||tbZ(this);this.loadRegistered||(this.loadRegistered=!0,tt(this.channel,4).register(2,function(e){var t,b,m;return _.F(function(q){if(q.nextAddress==1){t=_.M7(e.data,psG,2,d2);if(!t)throw new W9("Unexpectedly nonexistent StorageLoad");b=_.T9(t,1);return _.a(q,W(b),2)}m=q.yieldResult;var Q=e.reply,X=new tK;var I=new cfR;I=_.Ga(I,1,b);I=_.qI(I,2,_.xv(m,!1));X=_.mT(X,3,rR,I);Q.call(e,X);_.u8(q)})}))};
eGv.prototype.onSave=function(W){this.initialSetupDone||tbZ(this);this.saveRegistered||(this.saveRegistered=!0,tt(this.channel,4).register(3,function(e){var t,b,m;return _.F(function(q){if(q.nextAddress==1){t=_.M7(e.data,yfQ,3,d2);if(!t)throw new W9("Unexpectedly nonexistent StorageSave");b=_.T9(t,1);m=LBG(t.getData());return _.a(q,W(b,m),2)}var Q=e.reply,X=new tK;var I=new vmz;I=_.Ga(I,1,b);X=_.mT(X,4,rR,I);Q.call(e,X);_.u8(q)})}))};var b6Z=function(W){this.channel=W};
b6Z.prototype.update=function(W){if(!this.channel.features.has(6))throw new W9("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var e=new tK,t=new GuZ;W=_.bF(t,1,W);e=_.mT(e,6,rR,W);this.channel.send(e)};
b6Z.prototype.register=function(){tt(this.channel,6)};var mBS=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
mBS.prototype.onUserActivity=function(W,e){this.userActivityLoggingIntervalMs=e;tt(this.channel,7).register(9,function(t){if(!_.M7(t.data,jqZ,9,d2))throw new W9("Unexpectedly nonexistent ClickEvent");W()})};var rZD=function(W){var e=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new N_D(this.channel);this.game=new Af2(this.channel);this.audio=new Emv(this.channel);this.score=new daQ(this.channel);this.storage=new eGv(this.channel);this.style=new b6Z(this.channel);this.userActivity=new mBS(this.channel);UaD(this.channel,function(t){var b=new re2;t=_.bF(b,1,t);t=_.sq(t,3,e.userActivity.userActivityLoggingIntervalMs);b=e.audio.isAudioEnabled();b!==void 0&&_.Rh(t,2,b);b=new tK;
return _.mT(b,5,rR,t)})};var qCG=function(){this.timedFunctionContext=0};
qCG.prototype.timeExecution=function(W,e){var t=this;return function(){var b=_.$N.apply(0,arguments);t.timedFunctionContext=W;return e.apply(null,_.kP(b))}};var RGG=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},FU=function(W,e,t){var b=Qfg(W,t);
W.priorityTasks[t].push(e);b&&W.priorityTasks[t].length===1&&W.flush()},Qfg=function(W,e){return Object.keys(W.priorityTasks).map(function(t){return Number(t)}).filter(function(t){return!isNaN(t)&&t>e}).every(function(t){return W.priorityTasks[t].length===0})};
RGG.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)FbS(this,3),FbS(this,2),FbS(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(e){return void e.splice(0,e.length)}),W;
}finally{this.isFlushing=!1}}};
var FbS=function(W,e){for(;Qfg(W,e)&&W.priorityTasks[e].length>0;)W.priorityTasks[e][0](),W.priorityTasks[e].shift()};
_.Ec.Object.defineProperties(RGG.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var IQg={};var XxQ=globalThis.trustedTypes,Ryz=XxQ,FfR;var QE=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
QE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var IrS,arv,wxZ,uAQ,cZ2,vzv,G69,DBs;IrS=_.Nw([""]);arv=Ai(["\x00"],["\\0"]);wxZ=Ai(["\n"],["\\n"]);uAQ=Ai(["\x00"],["\\u0000"]);cZ2=_.Nw([""]);vzv=Ai(["\x00"],["\\0"]);G69=Ai(["\n"],["\\n"]);DBs=Ai(["\x00"],["\\u0000"]);_.SCG=am(function(W){return W(IrS)})||am(function(W){return W(arv)})||am(function(W){return W(wxZ)})||am(function(W){return W(uAQ)});
_.B52=_.Im(cZ2)&&_.Im(vzv)&&_.Im(G69)&&_.Im(DBs);var om;_.wR=function(W,e){this.privateDoNotAccessOrElseWrappedUrl=e};
_.wR.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ozc=uF("about:blank");om=uF("about:invalid#zClosurez");var aQ2=function(W){this.isValid=W},lr9=new aQ2(function(W){return/^[^:]*([/?#]|$)/.test(W)}),Z6K=D1("data"),$Bz=D1("http"),k6L=D1("https"),pxs=D1("ftp"),yZD=D1("mailto"),jfL=D1("intent"),C_g=D1("vnd.youtube"),wRc=[Z6K,
$Bz,k6L,yZD,pxs,lr9],udZ=qt(function(){return typeof URL==="function"}),nzS=["data:",
"http:","https:","mailto:","ftp:"],vED=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var j5=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
j5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var DDZ=qt(function(){return new j5(XxQ?XxQ.emptyHTML:"")});var frR={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"},gR=function(W,e){var t=Error.call(this,W+" cannot be used with intent "+frR[e]);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.type=W;this.intent=e;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.Z(gR,Error);_.OV=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.OV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Blg=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
Blg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var oEz="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var SD2=function(W){var e=_.HO("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:e,stack:"Not available"};var t=!1;try{var b=W.lineNumber||W.line||"Not available"}catch(Q){b="Not available",t=!0}try{var m=W.fileName||W.filename||W.sourceURL||_.tz.$googDebugFname||e}catch(Q){m="Not available",t=!0}e=gzc(W);if(!(!t&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){t=W.message;
if(t==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)t=W.constructor.name;else if(t=W.constructor,bD[t])t=bD[t];else{t=String(t);if(!bD[t]){var q=/function\s+([^\(]+)/m.exec(t);bD[t]=q?q[1]:"[Anonymous]"}t=bD[t]}t='Unknown Error of type "'+t+'"'}else t="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(t+=": "+W.toString())}return{message:t,name:W.name||"UnknownError",lineNumber:b,fileName:m,stack:e||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:e}},gzc=function(W,e){e||(e={});
e[T5K(W)]=!0;var t=W.stack||"",b=W.cause;b&&!e[T5K(b)]&&(t+="\nCaused by: ",b.stack&&b.stack.indexOf(b.toString())==0||(t+=typeof b==="string"?b:b.message+"\n"),t+=gzc(b,e));W=W.errors;if(Array.isArray(W)){b=1;var m;for(m=0;m<W.length&&!(b>4);m++)e[T5K(W[m])]||(t+="\nInner error "+b++ +": ",W[m].stack&&W[m].stack.indexOf(W[m].toString())==0||(t+=typeof W[m]==="string"?W[m]:W[m].message+"\n"),t+=gzc(W[m],e));m<W.length&&(t+="\n... "+(W.length-m)+" more inner errors")}return t},T5K=function(W){var e=
"";
typeof W.toString==="function"&&(e=""+W);return e+W.stack},bD={};var JZG,dM,XX,O6v,MbG,xBD,iQ,hj,hGL;JZG=function(W,e){for(var t=W.split("%s"),b="",m=Array.prototype.slice.call(arguments,1);m.length&&t.length>1;)b+=t.shift()+m.shift();return b+t.join("%s")};
_.PO=function(W){return encodeURIComponent(String(W))};
dM=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
XX=function(W){wIg.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(R5K,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(QI2,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(FBG,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(XIZ,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(IeL,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(aeD,"&#0;")));return W};
O6v=function(W){var e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var t=_.tz.document.createElement("div");return W.replace(xBD,function(b,m){var q=e[b];if(q)return q;m.charAt(0)=="#"&&(m=Number("0"+m.slice(1)),isNaN(m)||(q=String.fromCharCode(m)));q||(_.KF(t,CF(b+" ")),q=t.firstChild.nodeValue.slice(0,-1));return e[b]=q})};
MbG=function(W){return W.replace(/&([^;]+);/g,function(e,t){switch(t){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return t.charAt(0)!="#"||(t=Number("0"+t.slice(1)),isNaN(t))?e:String.fromCharCode(t)}})};
xBD=/&([^;\s<&]+);?/g;_.KcD=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.sf9=String.prototype.repeat?function(W,e){return W.repeat(e)}:function(W,e){return Array(e+1).join(W)};
_.m5=function(W,e){if(!Number.isFinite(W))return String(W);W=String(W);var t=W.indexOf(".");t===-1&&(t=W.length);var b=W[0]==="-"?"-":"";b&&(W=W.substring(1));return b+(0,_.sf9)("0",Math.max(0,e-t))+W};
iQ=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.RP()).toString(36)};
hj=function(W){for(var e=0,t=0;t<W.length;++t)e=31*e+W.charCodeAt(t)>>>0;return e};
_.vF=function(W){return String(W).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})};
_.cF=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
hGL=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,t,b){return t+b.toUpperCase()})};var H6Q=function(){this.names=new Map};
H6Q.prototype.getName=function(W){var e=this.names.get(W);if(e)return e;var t;e=(t=W.description)!=null?t:iQ();this.names.set(W,e);return e};var KbL=function(W){var e=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(t,b){return b+1+") "+t.toString()}).join("\n  "):"");
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.Z(KbL,Error);var EV=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.r=EV.prototype;
_.r.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var e=_.R(W),t=e.next();!t.done;t=e.next())t.value.remove(this);else W==null||W.remove(this);e=this.initialTeardown;if(UV(e))try{e()}catch(q){var b=q instanceof KbL?q.errors:[q]}var m=this._teardowns;if(m)for(this._teardowns=null,e=_.R(m),t=e.next();!t.done;t=e.next()){t=t.value;try{UV(t)?t():t.unsubscribe()}catch(q){t=void 0,b=(t=b)!=null?t:[],q instanceof KbL?b=[].concat(_.kP(b),_.kP(q.errors)):
b.push(q)}}if(b)throw new KbL(b);}};
_.r.add=function(W){if(W&&W!==this)if(this.closed)UV(W)?W():W.unsubscribe();else{if(W instanceof EV){if(W.closed||W._hasParent(this))return;W._addParent(this)}var e;(this._teardowns=(e=this._teardowns)!=null?e:[]).push(W)}};
_.r._hasParent=function(W){var e=this._parentage;return e===W||Array.isArray(e)&&e.includes(W)};
_.r._addParent=function(W){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(W),e):e?[e,W]:W};
_.r._removeParent=function(W){var e=this._parentage;e===W?this._parentage=null:Array.isArray(e)&&zy(e,W)};
_.r.remove=function(W){var e=this._teardowns;e&&zy(e,W);W instanceof EV&&W._removeParent(this)};
var P_z=new EV;P_z.closed=!0;EV.JSC$7115_EMPTY=P_z;var kVD=function(){setTimeout.apply(null,_.kP(_.$N.apply(0,arguments)))};var rj=function(W){EV.call(this);this.JSC$7120_isStopped=!1;this.destination=W instanceof rj?W:new qW(!W||UV(W)?{next:W!=null?W:void 0}:W);$SR(W)&&W.add(this)};
_.Z(rj,EV);rj.JSC$7115_EMPTY=EV.JSC$7115_EMPTY;rj.create=function(W,e,t){return new Rt(W,e,t)};
_.r=rj.prototype;_.r.next=function(W){this.JSC$7120_isStopped||this._next(W)};
_.r.error=function(W){this.JSC$7120_isStopped||(this.JSC$7120_isStopped=!0,this._error(W))};
_.r.complete=function(){this.JSC$7120_isStopped||(this.JSC$7120_isStopped=!0,this._complete())};
_.r.unsubscribe=function(){this.closed||(this.JSC$7120_isStopped=!0,EV.prototype.unsubscribe.call(this))};
_.r._next=function(W){this.destination.next(W)};
_.r._error=function(W){this.destination.error(W);this.unsubscribe()};
_.r._complete=function(){this.destination.complete();this.unsubscribe()};
var qW=function(W){this.partialObserver=W};
qW.prototype.next=function(W){var e=this.partialObserver;if(e.next)try{e.next(W)}catch(t){Nt(t)}};
qW.prototype.error=function(W){var e=this.partialObserver;if(e.error)try{e.error(W)}catch(t){Nt(t)}else Nt(W)};
qW.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(e){Nt(e)}};
var Rt=function(W,e,t){rj.call(this);var b;UV(W)||!W?b={next:W!=null?W:void 0,error:e!=null?e:void 0,complete:t!=null?t:void 0}:b=W;this.destination=new qW(b)};
_.Z(Rt,rj);Rt.JSC$7115_EMPTY=rj.JSC$7115_EMPTY;Rt.create=rj.create;var mk=typeof Symbol==="function"&&Symbol.observable||"@@observable";var tG=function(W){W&&(this._subscribe=W)};
_.r=tG.prototype;_.r.lift=function(W){var e=new tG;e.source=this;e.operator=W;return e};
_.r.subscribe=function(W,e,t){W=W&&W instanceof rj||W&&UV(W.next)&&UV(W.error)&&UV(W.complete)&&$SR(W)?W:new Rt(W,e,t);e=this.operator;t=this.source;W.add(e?e.call(W,t):t?this._subscribe(W):this._trySubscribe(W));return W};
_.r._trySubscribe=function(W){try{return this._subscribe(W)}catch(e){W.error(e)}};
_.r.forEach=function(W,e){var t=this;e=yez(e);return new e(function(b,m){var q=t.subscribe(function(Q){try{W(Q)}catch(X){m(X),q==null||q.unsubscribe()}},m,b)})};
_.r._subscribe=function(W){var e;return(e=this.source)==null?void 0:e.subscribe(W)};
tG.prototype[mk]=function(){return this};
tG.prototype.pipe=function(){var W=_.$N.apply(0,arguments);return W.length?pRQ(W)(this):this};
tG.create=function(W){return new tG(W)};var VbD=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.Z(VbD,Error);var qL=function(){this.observers=[];this.hasError=this.JSC$7136_isStopped=this.closed=!1;this.thrownError=null};
_.Z(qL,tG);_.r=qL.prototype;_.r.lift=function(W){var e=new QT(this,this);e.operator=W;return e};
_.r._throwIfClosed=function(){if(this.closed)throw new VbD;};
_.r.next=function(W){this._throwIfClosed();if(!this.JSC$7136_isStopped){var e=this.observers.slice();e=_.R(e);for(var t=e.next();!t.done;t=e.next())t.value.next(W)}};
_.r.error=function(W){this._throwIfClosed();if(!this.JSC$7136_isStopped){this.hasError=this.JSC$7136_isStopped=!0;this.thrownError=W;for(var e=this.observers;e.length;)e.shift().error(W)}};
_.r.complete=function(){this._throwIfClosed();if(!this.JSC$7136_isStopped){this.JSC$7136_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.r.unsubscribe=function(){this.JSC$7136_isStopped=this.closed=!0;this.observers=null};
_.r._trySubscribe=function(W){this._throwIfClosed();return tG.prototype._trySubscribe.call(this,W)};
_.r._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.r._innerSubscribe=function(W){var e=this,t=this.JSC$7136_isStopped,b=this.observers;return this.hasError||t?EV.JSC$7115_EMPTY:(b.push(W),new EV(function(){return zy(e.observers,W)}))};
_.r._checkFinalizedStatuses=function(W){var e=this.thrownError,t=this.JSC$7136_isStopped;this.hasError?W.error(e):t&&W.complete()};
qL.create=function(W,e){return new QT(W,e)};
var QT=function(W,e){qL.call(this);this.destination=W;this.source=e};
_.Z(QT,qL);QT.create=qL.create;QT.prototype.next=function(W){var e,t;(e=this.destination)==null||(t=e.next)==null||t.call(e,W)};
QT.prototype.error=function(W){var e,t;(e=this.destination)==null||(t=e.error)==null||t.call(e,W)};
QT.prototype.complete=function(){var W,e;(W=this.destination)==null||(e=W.complete)==null||e.call(W)};
QT.prototype._subscribe=function(W){var e,t;return(t=(e=this.source)==null?void 0:e.subscribe(W))!=null?t:EV.JSC$7115_EMPTY};var sE=function(W){qL.call(this);this._value=W};
_.Z(sE,qL);sE.create=qL.create;sE.prototype._subscribe=function(W){var e=qL.prototype._subscribe.call(this,W);!e.closed&&W.next(this._value);return e};
sE.prototype.getValue=function(){var W=this.thrownError,e=this._value;if(this.hasError)throw W;this._throwIfClosed();return e};
sE.prototype.next=function(W){qL.prototype.next.call(this,this._value=W)};
_.Ec.Object.defineProperties(sE.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var fP=new tG(function(W){return W.complete()});var b8=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var xSG=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var i6D={now:function(){return(i6D.delegate||Date).now()},
delegate:void 0};var Ud=function(W,e,t){W=W===void 0?Infinity:W;e=e===void 0?Infinity:e;t=t===void 0?i6D:t;qL.call(this);this.bufferSize=W;this.windowTime=e;this.timestampProvider=t;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=e===Infinity;this.bufferSize=Math.max(1,W);this.windowTime=Math.max(1,e)};
_.Z(Ud,qL);Ud.create=qL.create;Ud.prototype.next=function(W){var e=this.buffer,t=this.infiniteTimeWindow,b=this.timestampProvider,m=this.windowTime;this.JSC$7136_isStopped||(e.push(W),!t&&e.push(b.now()+m));YCL(this);qL.prototype.next.call(this,W)};
Ud.prototype._subscribe=function(W){this._throwIfClosed();YCL(this);for(var e=this._innerSubscribe(W),t=this.infiniteTimeWindow,b=this.buffer.slice(),m=0;m<b.length&&!W.closed;m+=t?1:2)W.next(b[m]);this._checkFinalizedStatuses(W);return e};
var YCL=function(W){var e=W.bufferSize,t=W.timestampProvider,b=W.buffer;W=W.infiniteTimeWindow;var m=(W?1:2)*e;e<Infinity&&m<b.length&&b.splice(0,b.length-m);if(!W){e=t.now();t=0;for(W=1;W<b.length&&b[W]<=e;W+=2)t=W;t&&b.splice(0,t+1)}};var UBS=function(W,e){e=e===void 0?zGZ:e;this.schedulerActionCtor=W;this.now=e};
UBS.prototype.schedule=function(W,e,t){e=e===void 0?0:e;return(new this.schedulerActionCtor(this,W)).schedule(t,e)};
var zGZ=i6D.now;var p79=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.Z(p79,Error);var l8=function(W,e,t,b,m){rj.call(this,W);this.onUnsubscribe=m;e&&(this._next=function(q){try{e(q)}catch(Q){this.destination.error(Q)}});
t&&(this._error=function(q){try{t(q)}catch(Q){this.destination.error(Q)}this.unsubscribe()});
b&&(this._complete=function(){try{b()}catch(q){this.destination.error(q)}this.unsubscribe()})};
_.Z(l8,rj);l8.JSC$7115_EMPTY=rj.JSC$7115_EMPTY;l8.create=rj.create;l8.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);rj.prototype.unsubscribe.call(this)};var YP=function(W,e){this.source=W;this.subjectFactory=e;this._subject=null;this._refCount=0;this._connection=null};
_.Z(YP,tG);YP.create=tG.create;YP.prototype._subscribe=function(W){return LbL(this).subscribe(W)};
var LbL=function(W){var e=W._subject;if(!e||e.JSC$7136_isStopped)W._subject=W.subjectFactory();return W._subject};
YP.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
YP.prototype.connect=function(){var W=this,e=this._connection;if(!e){e=this._connection=new EV;var t=LbL(this);e.add(this.source.subscribe(new l8(t,void 0,function(b){W._teardown();t.error(b)},function(){W._teardown();
t.complete()},function(){return W._teardown()})));
e.closed&&(this._connection=null,e=EV.JSC$7115_EMPTY)}return e};var USD=Array.isArray;var EEZ=Array.isArray,Ezz=Object,AeQ=Ezz.getPrototypeOf,NlD=Ezz.prototype,dSQ=Ezz.keys;var yh=function(W,e,t){rj.call(this,W);this._next=e;this.shouldComplete=t};
_.Z(yh,rj);yh.JSC$7115_EMPTY=rj.JSC$7115_EMPTY;yh.create=rj.create;yh.prototype._complete=function(){this.shouldComplete()?rj.prototype._complete.call(this):this.unsubscribe()};var ROg=["addListener","removeListener"],qVZ=["addEventListener","removeEventListener"],FTQ=["on","off"];var FL=function(){EV.call(this)};
_.Z(FL,EV);FL.JSC$7115_EMPTY=EV.JSC$7115_EMPTY;FL.prototype.schedule=function(){return this};var AZZ=function(W,e){return setInterval.apply(null,[W,e].concat(_.kP(_.$N.apply(2,arguments))))};var XL=function(W,e){EV.call(this);this.scheduler=W;this.work=e;this.pending=!1};
_.Z(XL,FL);XL.JSC$7115_EMPTY=FL.JSC$7115_EMPTY;XL.prototype.schedule=function(W,e){e=e===void 0?0:e;if(this.closed)return this;this.state=W;W=this.id;var t=this.scheduler;W!=null&&(this.id=N5R(this,W,e));this.pending=!0;this.delay=e;this.id=this.id||this.requestAsyncId(t,this.id,e);return this};
XL.prototype.requestAsyncId=function(W,e,t){t=t===void 0?0:t;return AZZ(W.flush.bind(W,this),t)};
var N5R=function(W,e,t){t=t===void 0?0:t;if(t!=null&&W.delay===t&&W.pending===!1)return e;clearInterval(e)};
XL.prototype.execute=function(W,e){if(this.closed)return Error("ma");this.pending=!1;if(W=this._execute(W,e))return W;this.pending===!1&&this.id!=null&&(this.id=N5R(this,this.id,null))};
XL.prototype._execute=function(W){var e=!1;try{this.work(W)}catch(b){e=!0;var t=!!b&&b||Error(b)}if(e)return this.unsubscribe(),t};
XL.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,e=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;zy(e,this);W!=null&&(this.id=N5R(this,W,null));this.delay=null;FL.prototype.unsubscribe.call(this)}};var dBD=function(W,e){e=e===void 0?zGZ:e;UBS.call(this,W,e);this.actions=[];this.active=!1;this.scheduled=void 0};
_.Z(dBD,UBS);dBD.prototype.flush=function(W){var e=this.actions;if(this.active)e.push(W);else{var t;this.active=!0;do if(t=W.execute(W.state,W.delay))break;while(W=e.shift());this.active=!1;if(t){for(;W=e.shift();)W.unsubscribe();throw t;}}};var lN=new tG(AK);var X72=Array.isArray;var It=function(W,e){XL.call(this,W,e);this.scheduler=W;this.work=e};
_.Z(It,XL);It.JSC$7115_EMPTY=XL.JSC$7115_EMPTY;It.prototype.schedule=function(W,e){e=e===void 0?0:e;if(e>0)return XL.prototype.schedule.call(this,W,e);this.delay=e;this.state=W;this.scheduler.flush(this);return this};
It.prototype.execute=function(W,e){return e>0||this.closed?XL.prototype.execute.call(this,W,e):this._execute(W,e)};
It.prototype.requestAsyncId=function(W,e,t){t=t===void 0?0:t;return t!=null&&t>0||t==null&&this.delay>0?XL.prototype.requestAsyncId.call(this,W,e,t):W.flush(this)};var W2S=function(){dBD.apply(this,arguments)};
_.Z(W2S,dBD);var Yws=new W2S(It);var ec8=function(){this.performanceMonitor=new qCG;this.queue=new RGG;this.internalSymbol=Symbol();this.debugNames=new H6Q};
ec8.prototype.getOnBackgrounded=function(){return lN};
_.Ec.Object.defineProperties(ec8.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var at=function(W,e){e=Error.call(this,e?W+": "+e:String(W));this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=W;this.__proto__=at.prototype;this.name=String(W)};
_.Z(at,Error);var ZR=function(W){at.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=ZR.prototype};
_.Z(ZR,at);var $J=function(){at.call(this,1003);this.__proto__=$J.prototype};
_.Z($J,at);var wj=function(){at.call(this,1009);this.__proto__=wj.prototype};
_.Z(wj,at);var tGr=function(){at.call(this,1011);this.__proto__=tGr.prototype};
_.Z(tGr,at);var bQo=function(){at.call(this,1007);this.__proto__=$J.prototype};
_.Z(bQo,at);var DR=function(W){at.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=DR.prototype};
_.Z(DR,at);var MdK=function(W){at.call(this,1010,W);this.__proto__=SH.prototype};
_.Z(MdK,at);var SH=function(W){at.call(this,1005,W);this.__proto__=SH.prototype};
_.Z(SH,at);var msU=function(W){var e=_.$N.apply(1,arguments),t=this;this.orderedFactories=[];this.orderedFactories.push(W);e.forEach(function(b){t.orderedFactories.push(b)})};
msU.prototype.isSupported=function(W){return this.orderedFactories.some(function(e){return e.isSupported(W)})};
msU.prototype.makeBeacon=function(W,e){for(var t=0;t<this.orderedFactories.length;t++)if(this.orderedFactories[t].isSupported(e))return this.orderedFactories[t].makeBeacon(W,e);throw new wj;};var lRR=Symbol("na"),rzS=Symbol("oa"),xP=function(W,e){this.value=W;this.timeline=e},JG=function(W,e){if(e.timeline!==W.timeline)throw new bQo;
return W.value-e.value};
_.r=xP.prototype;_.r.equals=function(W){return JG(this,W)===0};
_.r.maximum=function(W){if(W.timeline!==this.timeline)throw new bQo;return this.value>=W.value?this:W};
_.r.round=function(){return new xP(Math.round(this.value),this.timeline)};
_.r.add=function(W){return new xP(this.value+W,this.timeline)};
_.r.toString=function(){return String(this.value)};var uD=function(W,e){this.context=W;this.JSC$7242_pinger=e};
uD.prototype.isSupported=function(W){return this.JSC$7242_pinger.isSupported(W)};
uD.prototype.makeBeacon=function(W,e){if(!this.isSupported(e))throw new wj;return new c9(this.context,this.JSC$7242_pinger,e!=null?e:void 0,W)};
var c9=function(W,e,t,b){var m=this;this.JSC$7248_pinger=e;this.properties=t;this.url=b;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var q;this.method=(q=t==null?void 0:t.beaconMethod)!=null?q:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){m.sendNow()})};
c9.prototype.deactivate=function(){this.internalIsPending=!1};
c9.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7248_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var W,e;this.JSC$7248_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(e=this.body)!=null?e:"",this.url)}else this.JSC$7248_pinger.ping(this.url);this.internalIsPending=!1}catch(t){}else this.internalIsPending=!1};
c9.prototype.setHeader=function(W){this.customHeaders.set(W,void 0)};
_.Ec.Object.defineProperties(c9.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Rck=function(){for(var W=_.R(_.$N.apply(0,arguments)),e=W.next();!e.done;e=W.next())if(e=e.value,e.available()){this.timeProvider=e;return}this.timeProvider=new qLS};
_.r=Rck.prototype;_.r.available=function(){return this.timeProvider.available()};
_.r.now=function(){return this.timeProvider.now()};
_.r.setTimeout=function(W,e){return this.timeProvider.setTimeout(W,e)};
_.r.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.r.interval=function(W,e){var t=this.intervalObservable(W).subscribe(e);return function(){return void t.unsubscribe()}};
_.r.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.Ec.Object.defineProperties(Rck.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var qLS=function(){this.timeline=Symbol()};
_.r=qLS.prototype;_.r.available=function(){return!1};
_.r.now=function(){return new xP(0,this.timeline)};
_.r.setTimeout=function(){return 0};
_.r.clearTimeout=function(){};
_.r.interval=function(){return function(){}};
_.r.intervalObservable=function(){return lN};var v9=function(W,e){this.intrinsicFunctionNamespace=W;this.performanceMonitor=e};
_.r=v9.prototype;_.r.setTimeout=function(W,e){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),e)};
_.r.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.r.interval=function(W,e){var t=this.intervalObservable(W).subscribe(e);return function(){return void t.unsubscribe()}};
_.r.intervalObservable=function(W){var e=this;return new tG(function(t){var b=0,m=e.intrinsicFunctionNamespace.setInterval(function(){t.next(b++)},W);
return function(){e.intrinsicFunctionNamespace.clearInterval(m)}})};
_.r.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var QRN=function(W,e){v9.call(this,W,e);this.timeline=rzS};
_.Z(QRN,v9);QRN.prototype.now=function(){return new xP(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
QRN.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&v9.prototype.available.call(this)};var F2U=function(W,e){v9.call(this,W,e);this.timeline=lRR};
_.Z(F2U,v9);F2U.prototype.now=function(){return new xP(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
F2U.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&v9.prototype.available.call(this)};var IgD=function(W){this.context=W;if(XZh===void 0)a:{var e,t,b=(e=W.global)==null?void 0:(t=e.document)==null?void 0:t.createElement("meta");if(b)try{b.httpEquiv="origin-trial";b.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(b);XZh=b;break a}catch(m){}XZh=void 0}},
XZh;
IgD.prototype.isSupported=function(W){return BRs(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!GX(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
IgD.prototype.makeBeacon=function(W,e){if(!this.isSupported(e))throw new wj;return new Du(this.context,W,e)};
var Du=function(W,e,t){this.context=W;this.properties=t;this.JSC$7275_urlWithoutToken=e;var b;this.beaconMethod=(b=t==null?void 0:t.beaconMethod)!=null?b:"GET";W=BRs(this.context);if(W===void 0)throw Error();this.fetchLater=W;agv(this,wZy(this))},agv=function(W,e){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(e,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},wZy=function(W){W=W.JSC$7275_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
Du.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Du.prototype.sendNow=function(){};
Du.prototype.setHeader=function(){};
_.Ec.Object.defineProperties(Du.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7275_urlWithoutToken},
set:function(W){this.JSC$7275_urlWithoutToken=W;W=wZy(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);agv(this,W)}},
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 uDh=function(W){this.context=W};
uDh.prototype.isSupported=function(){return!GX(this.context)&&!!this.context.global.fetch};
uDh.prototype.ping=function(){var W=this;return g9.apply(null,_.kP(_.$N.apply(0,arguments).map(function(e){return RG(W.context.global.fetch(e,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe($P(function(t){return t.status===200}))}))).pipe(yKR(function(e){return e}),CFZ())};
uDh.prototype.pingWithHeadersAndBody=function(W,e,t){for(var b=_.$N.apply(3,arguments),m=this,q=new Headers,Q=_.R(e.entries()),X=Q.next();!X.done;X=Q.next()){var I=_.R(X.value);X=I.next().value;I=I.next().value;q.set(X,I)}var u,c=(u=W.keepAlive)!=null?u:!1;g9.apply(null,_.kP(b.map(function(v){return RG(m.context.global.fetch(v,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},c?{keepalive:!0}:{},{mode:"no-cors",headers:q,body:t}))).pipe($P(function(D){return D.status===200}))}))).pipe(yKR(function(v){return v}),
CFZ())};var czh,vpK;_.SQ=function(){};
_.sL=function(W){return W};
czh=function(W){var e=e||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,e))}};
_.B9=function(W){var e=!1,t;return function(){e||(t=W(),e=!0);return t}};
_.ot=function(W,e){var t=0;return function(b){_.tz.clearTimeout(t);var m=arguments;t=_.tz.setTimeout(function(){W.apply(void 0,m)},e)}};
vpK=function(W,e){var t=0,b=!1,m=[],q=function(){t=0;b&&(b=!1,Q())},Q=function(){t=_.tz.setTimeout(q,e);
var X=m;m=[];W.apply(void 0,X)};
return function(X){m=arguments;t?b=!0:Q()}};var GSS=function(){return Dg&&SG?SG.mobile:!v9v()&&(lv("iPod")||lv("iPhone")||lv("Android")||lv("IEMobile"))},v9v=function(){return Dg&&SG?!SG.mobile&&(lv("iPad")||lv("Android")||lv("Silk")):lv("iPad")||lv("Android")&&!lv("Mobile")||lv("Silk")};var Ds8;_.kJ={};Ds8="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.kJ.add=function(W,e,t){if(W!==null&&e in W)throw Error("qa`"+e);W[e]=t};
_.kJ.clear=function(W){for(var e in W)delete W[e]};
_.kJ.clone=function(W){var e={},t;for(t in W)e[t]=W[t];return e};
_.kJ.contains=function(W,e){return gNG(W,e)};
_.kJ.containsKey=function(W,e){return W!==null&&e in W};
_.kJ.containsValue=gNG;_.kJ.create=xtc;_.kJ.createImmutableView=function(W){var e=W;Object.isFrozen&&!Object.isFrozen(W)&&(e=Object.create(W),Object.freeze(e));return e};
_.kJ.createSet=OFR;_.kJ.equals=function(W,e){for(var t in W)if(!(t in e)||W[t]!==e[t])return!1;for(var b in e)if(!(b in W))return!1;return!0};
_.kJ.every=function(W,e,t){for(var b in W)if(!e.call(t,W[b],b,W))return!1;return!0};
_.kJ.extend=function(W,e){for(var t,b,m=1;m<arguments.length;m++){b=arguments[m];for(t in b)W[t]=b[t];for(var q=0;q<Ds8.length;q++)t=Ds8[q],Object.prototype.hasOwnProperty.call(b,t)&&(W[t]=b[t])}};
_.kJ.filter=function(W,e,t){var b={},m;for(m in W)e.call(t,W[m],m,W)&&(b[m]=W[m]);return b};
_.kJ.findKey=TRQ;_.kJ.findValue=function(W,e,t){return(e=TRQ(W,e,t))&&W[e]};
_.kJ.forEach=function(W,e,t){for(var b in W)e.call(t,W[b],b,W)};
_.kJ.get=function(W,e,t){return W!==null&&e in W?W[e]:t};
_.kJ.getAllPropertyNames=function(W,e,t){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return f12(W);for(var b={};W&&(W!==Object.prototype||e)&&(W!==Function.prototype||t);){for(var m=Object.getOwnPropertyNames(W),q=0;q<m.length;q++)b[m[q]]=!0;W=Object.getPrototypeOf(W)}return f12(b)};
_.kJ.getAnyKey=function(W){for(var e in W)return e};
_.kJ.getAnyValue=function(W){for(var e in W)return W[e]};
_.kJ.getCount=function(W){var e=0,t;for(t in W)e++;return e};
_.kJ.getKeys=f12;_.kJ.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.kJ.getValueByKeys=function(W,e){var t=_.Ns(e),b=t?e:arguments;for(t=t?0:1;t<b.length;t++){if(W==null)return;W=W[b[t]]}return W};
_.kJ.getValues=function(W){var e=[],t=0,b;for(b in W)e[t++]=W[b];return e};
_.kJ.isEmpty=function(W){for(var e in W)return!1;return!0};
_.kJ.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.kJ.map=function(W,e,t){var b={},m;for(m in W)b[m]=e.call(t,W[m],m,W);return b};
_.kJ.remove=function(W,e){var t;(t=e in W)&&delete W[e];return t};
_.kJ.set=function(W,e,t){W[e]=t};
_.kJ.setIfUndefined=function(W,e,t){return e in W?W[e]:W[e]=t};
_.kJ.setWithReturnValueIfNotSet=function(W,e,t){if(e in W)return W[e];t=t();return W[e]=t};
_.kJ.some=function(W,e,t){for(var b in W)if(e.call(t,W[b],b,W))return!0;return!1};
_.kJ.transpose=function(W){var e={},t;for(t in W)e[W[t]]=t;return e};
_.kJ.unsafeClone=JKK;var lD=function(W,e,t,b,m){this.allowedElements=W;this.elementPolicies=e;this.allowedGlobalAttributes=t;this.globalAttributePolicies=b;this.globallyAllowedAttributePrefixes=m},SL8=function(W,e,t){t=W.elementPolicies.get(t);
return(t==null?0:t.has(e))?t.get(e):W.allowedGlobalAttributes.has(e)?{policyAction:1}:(t=W.globalAttributePolicies.get(e))?t:W.globallyAllowedAttributePrefixes&&[].concat(_.kP(W.globallyAllowedAttributePrefixes)).some(function(b){return e.indexOf(b)===0})?{policyAction:1}:{policyAction:0}};var BGN="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(" "),
o98=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["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}]])]],lgZ="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(" "),
ZQr=[["dir",{policyAction:3,conditions:qt(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:qt(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:qt(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:qt(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],$sy=new lD(new Set(BGN),new Map(o98),new Set(lgZ),new Map(ZQr)),kS8=new lD(new Set(BGN.concat(["BUTTON",
"INPUT"])),new Map(o98),new Set(qt(function(){return lgZ.concat(["class","id","name"])})),new Map(qt(function(){return ZQr.concat([["style",
{policyAction:1}]])})));var pZS,yzZ,Cvh;pZS=function(W,e,t,b){this.JSC$7335_sanitizerTable=W;this.styleElementSanitizer=e;this.styleAttributeSanitizer=t;this.JSC$7335_resourceUrlPolicy=b;this.changes=[]};
_.jRU=function(W,e){var t=document.implementation.createHTMLDocument("");W=yzZ(W,e,t);t=t.body;t.appendChild(W);t=(new XMLSerializer).serializeToString(t);t=t.slice(t.indexOf(">")+1,t.lastIndexOf("</"));return CF(t)};
yzZ=function(W,e,t){e=smv(e,t);e=document.createTreeWalker(e,5,function(X){if(X.nodeType===3)X=1;else if(HFZ(X))if(X=hOQ(X),X===null)X=2;else{var I=W.JSC$7335_sanitizerTable;X=X!=="FORM"&&(I.allowedElements.has(X)||I.elementPolicies.has(X))?1:2}else X=2;return X});
for(var b=e.nextNode(),m=t.createDocumentFragment(),q=m;b!==null;){var Q=void 0;if(b.nodeType===3)W.styleElementSanitizer&&q.nodeName==="STYLE"?(b=W.styleElementSanitizer(b.data),Q=W.createTextNode(b)):Q=W.createTextNode(b.data);else if(HFZ(b))Q=Cvh(W,b,t);else throw Error("da");q.appendChild(Q);if(b=e.firstChild())q=Q;else for(;!(b=e.nextSibling())&&(b=e.parentNode());)q=q.parentNode}return m};
pZS.prototype.createTextNode=function(W){return document.createTextNode(W)};
Cvh=function(W,e,t){var b,m=hOQ(e);t=t.createElement(m);e=e.attributes;for(var q=_.R(e),Q=q.next();!Q.done;Q=q.next()){var X=Q.value;Q=X.name;X=X.value;var I=SL8(W.JSC$7335_sanitizerTable,Q,m);a:{if(b=I.conditions){b=_.R(b);for(var u=b.next();!u.done;u=b.next()){var c=_.R(u.value);u=c.next().value;c=c.next().value;var v=void 0;if((u=(v=e.getNamedItem(u))==null?void 0:v.value)&&!c.has(u)){b=!1;break a}}}b=!0}if(b)switch(I.policyAction){case 1:tD(t,Q,X);break;case 2:I=_.ceS(X);X=I!==void 0&&nzS.indexOf(I.toLowerCase())!==
-1?X:"about:invalid#zClosurez";tD(t,Q,X);break;case 3:tD(t,Q,X.toLowerCase());break;case 4:W.styleAttributeSanitizer?(X=W.styleAttributeSanitizer(X),tD(t,Q,X)):tD(t,Q,X);break;case 5:W.JSC$7335_resourceUrlPolicy?(I={type:2,attributeName:Q,elementName:m},X=M5s(X),(X=W.JSC$7335_resourceUrlPolicy(X,I))&&tD(t,Q,X.toString())):tD(t,Q,X);break;case 6:if(W.JSC$7335_resourceUrlPolicy){I={type:2,attributeName:Q,elementName:m};b=[];X=_.R(X.split(","));for(u=X.next();!u.done;u=X.next())c=_.R(u.value.trim().split(/\s+/,
2)),u=c.next().value,c=c.next().value,b.push({url:u,descriptor:c});X={parts:[]};b=_.R(b);for(u=b.next();!u.done;u=b.next())u=u.value,c=M5s(u.url),(c=W.JSC$7335_resourceUrlPolicy(c,I))&&X.parts.push({url:c.toString(),descriptor:u.descriptor});tD(t,Q,KTs(X))}else tD(t,Q,X)}}return t};
_.n9S=qt(function(){return new pZS($sy)});
_.fgU=qt(function(){return new pZS(kS8)});var g9k=function(){this.calledBuild=!1;this.JSC$7347_sanitizerTable=$sy},TGb=function(){g9k.apply(this,arguments)};
_.Z(TGb,g9k);TGb.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new pZS(this.JSC$7347_sanitizerTable,void 0,void 0,this.JSC$7347_resourceUrlPolicy)};var Jzy=/[^#]*/;var UE=function(W){try{return!!W&&W.location.href!=null&&f8(W,"foo")}catch(e){return!1}},OQy=function(W){var e=xsb;
if(e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&W(e[t],t,e)},MGe=function(){var W=[];
OQy(function(e){W.push(e)});
return W},xsb={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"},sRP=_.B9(function(){return MGe()}),HQS=function(){var W=hcZ("IFRAME"),
e={};
_.VZ(sRP(),function(t){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(t)&&(e[t]=!0)});
return e},hcZ=function(W,e){e=e===void 0?document:e;
return e.createElement(String(W).toLowerCase())};var Zu;_.Mw=function(W,e,t){return Math.min(Math.max(W,e),t)};
Zu=function(W,e,t){return W+t*(e-W)};_.jH=function(W,e){this.x=W!==void 0?W:0;this.y=e!==void 0?e:0};
_.r=_.jH.prototype;_.r.clone=function(){return new _.jH(this.x,this.y)};
_.r.equals=function(W){return W instanceof _.jH&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.r.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.r.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.r.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.r.translate=function(W,e){W instanceof _.jH?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof e==="number"&&(this.y+=e));return this};
_.r.scale=function(W,e){this.x*=W;this.y*=typeof e==="number"?e:W;return this};_.aD=function(W,e){this.width=W;this.height=e};
_.r=_.aD.prototype;_.r.clone=function(){return new _.aD(this.width,this.height)};
_.r.area=function(){return this.width*this.height};
_.r.aspectRatio=function(){return this.width/this.height};
_.r.isEmpty=function(){return!this.area()};
_.r.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.r.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.r.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.r.scale=function(W,e){this.width*=W;this.height*=typeof e==="number"?e:W;return this};var Om=function(W,e){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===ljD&&e||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=K2P};
Om.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var PvN=function(W){return W instanceof Om&&W.constructor===Om&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===K2P?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},K2P={},ljD={};
new Om(ljD,"");var vK,oh,kV,VGb,zcN,YL8,C8,L2N,Aze,E9Z,Cd,NGS,rk8,moy,brN,qSS,RNZ,QyP,Feh,HBL,XUe,aDP,wUN,IDb,$V;vK=function(W){return W?new $V(_.n8(W)):tqQ||(tqQ=new $V)};
_.mg=function(W,e){return typeof e==="string"?W.getElementById(e):e};
oh=function(W,e){return(e||document).getElementsByTagName(String(W))};
_.iQv=function(W){return VGb("yt-formatted-string","paper-input-input",W)};
kV=function(W,e,t,b){W=b||W;return(e=e&&e!="*"?String(e).toUpperCase():"")||t?W.querySelectorAll(e+(t?"."+t:"")):W.getElementsByTagName("*")};
VGb=function(W,e,t){var b=document,m=W&&W!="*"?String(W).toUpperCase():"";return m||e?(t||b).querySelector(m+(e?"."+e:"")):kV(b,W,e,t)[0]||null};
zcN=function(W,e){_.kJ.forEach(e,function(t,b){b=="style"?W.style.cssText=t:b=="class"?W.className=t:b=="for"?W.htmlFor=t:YL8.hasOwnProperty(b)?W.setAttribute(YL8[b],t):_.m2(b,"aria-")||_.m2(b,"data-")?W.setAttribute(b,t):W[b]=t})};
YL8={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"};_.uN=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.aD(W.clientWidth,W.clientHeight)};
_.Use=function(W){var e=_.pd(W);W=W.defaultView;return new _.jH(W.pageXOffset||e.scrollLeft,W.pageYOffset||e.scrollTop)};
_.pd=function(W){return W.scrollingElement?W.scrollingElement:_.uI||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
C8=function(W){return W?W.defaultView:window};
_.yT=function(W,e,t){return L2N(document,arguments)};
L2N=function(W,e){var t=e[1],b=E9Z(W,String(e[0]));t&&(typeof t==="string"?b.className=t:Array.isArray(t)?b.className=t.join(" "):zcN(b,t));e.length>2&&Aze(W,b,e,2);return b};
Aze=function(W,e,t,b){function m(X){X&&e.appendChild(typeof X==="string"?W.createTextNode(X):X)}
for(;b<t.length;b++){var q=t[b];if(!_.Ns(q)||_.tk(q)&&q.nodeType>0)m(q);else{a:{if(q&&typeof q.length=="number"){if(_.tk(q)){var Q=typeof q.item=="function"||typeof q.item=="string";break a}if(typeof q==="function"){Q=typeof q.item=="function";break a}}Q=!1}_.VZ(Q?_.EL(q):q,m)}}};
_.DA=function(W){return E9Z(document,W)};
E9Z=function(W,e){e=String(e);W.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return W.createElement(e)};
_.jQ=function(){return document.createTextNode("\n")};
Cd=function(W){if(W.nodeType!=1)return!1;switch(W.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};
NGS=function(W,e){Aze(_.n8(W),W,arguments,1)};
_.nd=function(W){for(var e;e=W.firstChild;)W.removeChild(e)};
_.fd=function(W,e){e.parentNode&&e.parentNode.insertBefore(W,e)};
_.gj=function(W,e){e.parentNode&&e.parentNode.insertBefore(W,e.nextSibling)};
_.BX=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.ds8=function(W,e){var t=e.parentNode;t&&t.replaceChild(W,e)};
_.WeD=function(W){var e,t=W.parentNode;if(t&&t.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;e=W.firstChild;)t.insertBefore(e,W);_.BX(W)}};
_.TX=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(e){return e.nodeType==1})};
_.tPP=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.eNr(W.nextSibling,!0)};
_.eNr=function(W,e){for(;W&&W.nodeType!=1;)W=e?W.nextSibling:W.previousSibling;return W};
_.A7=function(W){return _.tk(W)&&W.nodeType==1};
_.PX=function(W,e){if(!W||!e)return!1;if(W.contains&&e.nodeType==1)return W==e||W.contains(e);if(typeof W.compareDocumentPosition!="undefined")return W==e||!!(W.compareDocumentPosition(e)&16);for(;e&&W!=e;)e=e.parentNode;return e==W};
rk8=function(W,e){if(W==e)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(e)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var t=W.nodeType==1,b=e.nodeType==1;if(t&&b)return W.sourceIndex-e.sourceIndex;var m=W.parentNode,q=e.parentNode;return m==q?brN(W,e):!t&&_.PX(m,e)?-1*moy(W,e):!b&&_.PX(q,W)?moy(e,W):(t?W.sourceIndex:m.sourceIndex)-(b?e.sourceIndex:q.sourceIndex)}b=_.n8(W);t=b.createRange();t.selectNode(W);t.collapse(!0);W=b.createRange();W.selectNode(e);
W.collapse(!0);return t.compareBoundaryPoints(_.tz.Range.START_TO_END,W)};
moy=function(W,e){var t=W.parentNode;if(t==e)return-1;for(;e.parentNode!=t;)e=e.parentNode;return brN(e,W)};
brN=function(W,e){for(;e=e.previousSibling;)if(e==W)return-1;return 1};
qSS=function(W){var e,t=arguments.length;if(!t)return null;if(t==1)return arguments[0];var b=[],m=Infinity;for(e=0;e<t;e++){for(var q=[],Q=arguments[e];Q;)q.unshift(Q),Q=Q.parentNode;b.push(q);m=Math.min(m,q.length)}q=null;for(e=0;e<m;e++){Q=b[0][e];for(var X=1;X<t;X++)if(Q!=b[X][e])return q;q=Q}return q};
_.n8=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
RNZ=function(W){return W.contentDocument||W.contentWindow.document};
_.Jt=function(W,e){if("textContent"in W)W.textContent=e;else if(W.nodeType==3)W.data=String(e);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(e)}else _.nd(W),W.appendChild(_.n8(W).createTextNode(String(e)))};
QyP={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Feh={IMG:" ",BR:"\n"};HBL=function(W){var e;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?e=!W.disabled&&(!W.hasAttribute("tabindex")||XUe(W)):e=W.hasAttribute("tabindex")&&XUe(W);return e};
XUe=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
aDP=function(W){var e=[];IDb(W,e,!0);W=e.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
wUN=function(W){var e=[];IDb(W,e,!1);return e.join("")};
IDb=function(W,e,t){if(!(W.nodeName in QyP))if(W.nodeType==3)t?e.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(W.nodeValue);else if(W.nodeName in Feh)e.push(Feh[W.nodeName]);else for(W=W.firstChild;W;)IDb(W,e,t),W=W.nextSibling};
_.ubk=function(W,e,t){if(!e&&!t)return null;var b=e?String(e).toUpperCase():null;return _.JD(W,function(m){return(!b||m.nodeName==b)&&(!t||typeof m.className==="string"&&_.PZ(m.className.split(/\s+/),t))},!0)};
_.JD=function(W,e,t){W&&!t&&(W=W.parentNode);for(t=0;W;){if(e(W))return W;W=W.parentNode;t++}return null};
$V=function(W){this.JSC$7372_document_=W||_.tz.document||document};
_.r=$V.prototype;_.r.getElement=function(W){return _.mg(this.JSC$7372_document_,W)};
_.r.$=$V.prototype.getElement;_.r.getElementsByTagName=function(W,e){return(e||this.JSC$7372_document_).getElementsByTagName(String(W))};
_.r.getElementsByTagNameAndClass=function(W,e,t){return kV(this.JSC$7372_document_,W,e,t)};
_.r.$$=$V.prototype.getElementsByTagNameAndClass;_.r.setProperties=zcN;_.r.JSC$7374_createDom=function(W,e,t){return L2N(this.JSC$7372_document_,arguments)};
_.r.createElement=function(W){return E9Z(this.JSC$7372_document_,W)};
_.r.createTextNode=function(W){return this.JSC$7372_document_.createTextNode(String(W))};
_.r.getWindow=function(){return this.JSC$7372_document_.defaultView};
var cK=function(W){return _.Use(W.JSC$7372_document_)};
_.r=$V.prototype;_.r.appendChild=function(W,e){W.appendChild(e)};
_.r.append=NGS;_.r.canHaveChildren=Cd;_.r.removeNode=_.BX;_.r.getChildren=_.TX;_.r.contains=_.PX;_.r=r6.prototype;_.r.getWidth=function(){return this.right-this.left};
_.r.getHeight=function(){return this.bottom-this.top};
_.r.clone=function(){return new r6(this.top,this.right,this.bottom,this.left)};
_.r.contains=function(W){return this&&W?W instanceof r6?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.r.expand=function(W,e,t,b){_.tk(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(e),this.bottom+=Number(t),this.left-=Number(b));return this};
_.r.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};
_.r.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};
_.r.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};
_.r.translate=function(W,e){W instanceof _.jH?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof e==="number"&&(this.top+=e,this.bottom+=e));return this};
_.r.scale=function(W,e){e=typeof e==="number"?e:W;this.left*=W;this.right*=W;this.top*=e;this.bottom*=e;return this};var xV=function(W,e,t,b){this.left=W;this.top=e;this.width=t;this.height=b};
_.r=xV.prototype;_.r.clone=function(){return new xV(this.left,this.top,this.width,this.height)};
_.r.boundingRect=function(W){var e=Math.max(this.left+this.width,W.left+W.width),t=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=e-this.left;this.height=t-this.top};
_.r.contains=function(W){return W instanceof _.jH?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.r.distance=function(W){var e=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(e*e+W*W)};
_.r.getSize=function(){return new _.aD(this.width,this.height)};
_.r.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};
_.r.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};
_.r.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};
_.r.translate=function(W,e){W instanceof _.jH?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof e==="number"&&(this.top+=e));return this};
_.r.scale=function(W,e){e=typeof e==="number"?e:W;this.left*=W;this.width*=W;this.top*=e;this.height*=e;return this};var vvk,s8,IRg,MW,BBr,SSb,ovr,T0G,lDh,$or;_.O8=function(W,e,t){if(typeof e==="string")(e=_.ck8(W,e))&&(W.style[e]=t);else for(var b in e){t=W;var m=e[b],q=_.ck8(t,b);q&&(t.style[q]=m)}};
vvk={};_.ck8=function(W,e){var t=vvk[e];if(!t){var b=_.vF(e);t=b;W.style[b]===void 0&&(b=(_.uI?"Webkit":_.w2?"Moz":null)+hGL(b),W.style[b]!==void 0&&(t=b));vvk[e]=t}return t};
_.kL=function(W,e){var t=_.n8(W);return t.defaultView&&t.defaultView.getComputedStyle&&(W=t.defaultView.getComputedStyle(W,null))?W[e]||W.getPropertyValue(e)||"":""};
_.K3=function(W,e){return _.kL(W,e)||(W.currentStyle?W.currentStyle[e]:null)||W.style&&W.style[e]};
_.GZh=function(W){return _.K3(W,"position")};
s8=function(W,e,t){if(e instanceof _.jH){var b=e.x;e=e.y}else b=e,e=t;W.style.left=MW(b,!1);W.style.top=MW(e,!1)};
IRg=function(W){try{return W.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bottom:0}}};
_.g6=function(W){var e=_.n8(W),t=new _.jH(0,0);if(W==(e?_.n8(e):document).documentElement)return t;W=IRg(W);e=cK(vK(e));t.x=W.left+e.x;t.y=W.top+e.y;return t};
_.Dov=function(W,e,t){if(e instanceof _.aD)t=e.height,e=e.width;else if(t==void 0)throw Error("ta");W.style.width=MW(e,!0);W.style.height=MW(t,!0)};
MW=function(W,e){typeof W=="number"&&(W=(e?Math.round(W):W)+"px");return W};
BBr=function(W){return SSb(W)};
SSb=function(W){var e=ovr;if(_.K3(W,"display")!="none")return e(W);var t=W.style,b=t.display,m=t.visibility,q=t.position;t.visibility="hidden";t.position="absolute";t.display="inline";W=e(W);t.display=b;t.position=q;t.visibility=m;return W};
ovr=function(W){var e=W.offsetWidth,t=W.offsetHeight,b=_.uI&&!e&&!t;return(e===void 0||b)&&W.getBoundingClientRect?(W=IRg(W),new _.aD(W.right-W.left,W.bottom-W.top)):new _.aD(e,t)};
T0G=function(W){var e=_.g6(W);W=SSb(W);return new xV(e.x,e.y,W.width,W.height)};
lDh=function(W,e){W=W.style;"opacity"in W?W.opacity=e:"MozOpacity"in W?W.MozOpacity=e:"filter"in W&&(W.filter=e===""?"":"alpha(opacity="+Number(e)*100+")")};
_.L3=function(W,e){W.style.display=e?"":"none"};
_.Zre=function(W){return"rtl"==_.K3(W,"direction")};
$or=function(W){var e=_.kL(W,"marginLeft"),t=_.kL(W,"marginRight"),b=_.kL(W,"marginTop");W=_.kL(W,"marginBottom");return new r6(parseFloat(b),parseFloat(t),parseFloat(W),parseFloat(e))};
_.kZ8=function(W){var e=_.kL(W,"borderLeftWidth"),t=_.kL(W,"borderRightWidth"),b=_.kL(W,"borderTopWidth");W=_.kL(W,"borderBottomWidth");return new r6(parseFloat(b),parseFloat(t),parseFloat(W),parseFloat(e))};var ht=function(W){this.context=W};
ht.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!GX(this.context)};
ht.prototype.ping=function(){var W=this;return GE(_.$N.apply(0,arguments).map(function(e){try{var t=W.context.global,b=!1;b=b===void 0?!1:b;t.google_image_requests||(t.google_image_requests=[]);var m=hcZ("IMG",t.document);b&&(m.attributionSrc="");m.src=e;t.google_image_requests.push(m);return!0}catch(q){return!1}}).every(function(e){return e}))};
ht.prototype.pingWithHeadersAndBody=function(W,e,t){this.ping.apply(this,_.kP(_.$N.apply(3,arguments)))};var pU8=function(W){this.context=W};
pU8.prototype.isSupported=function(W){return ykB&&!GX(this.context)&&V5D(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
pU8.prototype.makeBeacon=function(W,e){if(!this.isSupported(e))throw new wj;return new H9(this.context,W)};
var ykB=!1,H9=function(W,e){this.context=W;this.JSC$7393_urlWithoutToken=e;W=V5D(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(jyZ(this),{})},jyZ=function(W){W=W.JSC$7393_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
H9.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
H9.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
H9.prototype.setHeader=function(){};
_.Ec.Object.defineProperties(H9.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7393_urlWithoutToken},
set:function(W){this.JSC$7393_urlWithoutToken=W;this.wrappedBeacon.setURL(jyZ(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new wj;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var ChD=function(W){this.context=W};
ChD.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var e;return!GX(this.context)&&((e=this.context.global.navigator)==null?void 0:e.sendBeacon)!==void 0};
ChD.prototype.ping=function(){var W=this;return GE(_.$N.apply(0,arguments).map(function(e){var t;return(t=W.context.global.navigator)==null?void 0:t.sendBeacon(e)}).every(function(e){return e}))};
ChD.prototype.pingWithHeadersAndBody=function(W,e,t){this.ping.apply(this,_.kP(_.$N.apply(3,arguments)))};var XU=function(W){this.value=W},iN=function(W,e){return GE(W.value).pipe(QO(e))},EE=new XU(!1),B$v=new XU(!0);var xJ=function(W){this.value=W;this.releasedSubject=new qL};
xJ.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Ec.Object.defineProperties(xJ.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7406_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var bP2=["FRAME","IMG","IFRAME"],AKG=/^[01](px)?$/,tdK=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},eeR=function(){var W=new tdK;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var nvv=function(W,e){var t=Xa2(W);if(t)if(t.onCreativeLoad)t.onCreativeLoad(e);else{var b=e?[e]:[],m=function(q){for(var Q=0;Q<b.length;++Q)try{b[Q](1,q)}catch(X){}b={push:function(X){X(1,q)}}};
t.onCreativeLoad=function(q){b.push(q)};
t.setAttribute("data-creative-load-listener","");t.addEventListener("creativeLoad",function(q){m(q.detail)});
_.tz.addEventListener("message",function(q){FkK(t,m,q)})}};var Kd=function(W,e){var t=this;this.global=W;this.parentContext=e;this.JSC$7417_onVisibilityChange=this.document?g9(GE(!0),nP(this.document,"visibilitychange")).pipe(Od(this.parentContext.performanceMonitor,748),$P(function(){return t.getVisibilityState()}),Vh()):GE("visible");
this.document?nP(this.document,"DOMContentLoaded").pipe(Od(this.parentContext.performanceMonitor,739),Pa(1)):GE(LTS("DOMContentLoaded"))},SJZ=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
Kd.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Kd.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
Kd.prototype.querySelectorAll=function(W){return this.document?_.EL(this.document.querySelectorAll(W)):[]};
Kd.prototype.elementFromPoint=function(W,e){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,e);return W===null?null:new xJ(W)};
var QhL=function(W,e,t){t=t===void 0?!1:t;if(e.ref===void 0||!W.document)return GE(e).pipe(Od(W.parentContext.performanceMonitor,749));var b=new Ud(1),m=function(){b.next(e)};
t||nvv(e.ref,m);mYL(e.ref,m);return b.pipe(Od(W.parentContext.performanceMonitor,749),Pa(1))};
_.Ec.Object.defineProperties(Kd.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return f8(this.global,"document")?this.global.document||null:null}}});var IVL=_.Nw(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),aVc=_.Nw(["./reach_worklet.js"]),wa2=_.Nw(["./reach_worklet.js"]),fDS=_.Nw(["./reach_worklet.html"]),gvS=_.Nw(["./reach_worklet.js"]),TBh=_.Nw(["./reach_worklet.js"]);_.bN(fDS);_.bN(gvS);_.bN(TBh);var hD={left:0,top:0,width:0,height:0};var Jky,xoe,Orh,MPS,AJ,hNr,Hr8,Key,R4s,Qi9,irP,YSZ;Jky=function(W,e,t,b,m,q,Q){var X="";W&&(X+=W+":");t&&(X+="//",e&&(X+=e+"@"),X+=t,b&&(X+=":"+b));m&&(X+=m);q&&(X+="?"+q);Q&&(X+="#"+Q);return X};
xoe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Lt=function(W){return W.match(xoe)};
_.fn=function(W,e){return W?e?decodeURI(W):decodeURIComponent(W):W};
Orh=function(W){W=_.Lt(W)[1]||null;!W&&_.tz.self&&_.tz.self.location&&(W=_.tz.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.Et=function(W){return _.fn(_.Lt(W)[3]||null,!0)};
_.I_=function(W){return _.fn(_.Lt(W)[5]||null,!0)};
_.Q2z=function(W){var e=W.indexOf("#");return e<0?null:W.slice(e+1)};
MPS=function(W){W=_.Lt(W);return Jky(W[1],W[2],W[3],W[4])};
_.syB=function(W){W=_.Lt(W);return Jky(W[1],null,W[3],W[4])};
_.Kc=function(W){W=_.Lt(W);return Jky(null,null,null,null,W[5],W[6],W[7])};
_.ET=function(W){var e=W.indexOf("#");return e<0?W:W.slice(0,e)};
AJ=function(W,e){W=_.Lt(W);e=_.Lt(e);return W[3]==e[3]&&W[1]==e[1]&&W[4]==e[4]};
hNr=function(W,e){if(W){W=W.split("&");for(var t=0;t<W.length;t++){var b=W[t].indexOf("="),m=null;if(b>=0){var q=W[t].substring(0,b);m=W[t].substring(b+1)}else q=W[t];e(q,m?dM(m):"")}}};
Hr8=function(W){var e=W.indexOf("#");e<0&&(e=W.length);var t=W.indexOf("?");if(t<0||t>e){t=e;var b=""}else b=W.substring(t+1,e);return[W.slice(0,t),b,W.slice(e)]};
Key=function(W,e){return e?W?W+"&"+e:e:W};
_.Ph8=function(W,e){if(!e)return W;W=Hr8(W);W[1]=Key(W[1],e);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.VPP=function(W,e,t){if(Array.isArray(e))for(var b=0;b<e.length;b++)_.VPP(W,String(e[b]),t);else e!=null&&t.push(W+(e===""?"":"="+_.PO(e)))};
_.w8=function(W){var e=[],t;for(t in W)_.VPP(t,W[t],e);return e.join("&")};
_.Ut=function(W,e){e=_.w8(e);return _.Ph8(W,e)};
_.P9=function(W,e,t){t=t!=null?"="+_.PO(t):"";return _.Ph8(W,e+t)};
R4s=function(W,e,t,b){for(var m=t.length;(e=W.indexOf(t,e))>=0&&e<b;){var q=W.charCodeAt(e-1);if(q==38||q==63)if(q=W.charCodeAt(e+m),!q||q==61||q==38||q==35)return e;e+=m+1}return-1};
Qi9=/#|$/;_.VV=function(W,e){var t=W.search(Qi9),b=R4s(W,0,e,t);if(b<0)return null;var m=W.indexOf("&",b);if(m<0||m>t)m=t;b+=e.length+1;return dM(W.slice(b,m!==-1?m:0))};
irP=/[?&]($|#)/;_.W6=function(W,e){for(var t=W.search(Qi9),b=0,m,q=[];(m=R4s(W,b,e,t))>=0;)q.push(W.substring(b,m)),b=Math.min(W.indexOf("&",m)+1||t,t);q.push(W.slice(b));return q.join("").replace(irP,"$1")};
_.Mq=function(W,e,t){return _.P9(_.W6(W,e),e,t)};
YSZ=function(W){var e=Hr8(window.location.href),t=e[1],b=[];t&&t.split("&").forEach(function(m){var q=m.indexOf("=");q=q>=0?m.slice(0,q):m;W.hasOwnProperty(q)||b.push(m)});
e[1]=Key(b.join("&"),_.w8(W));return e[0]+(e[1]?"?"+e[1]:"")+e[2]};var T9L=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(T9L,_.Ow);T9L.prototype.getVersion=function(){return _.T9(this,2)};var gPv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gPv,_.Ow);var pac=function(W,e){return _.Ga(W,2,e)},fVc=function(W,e){return _.Ga(W,3,e)};
gPv.prototype.getModel=function(){return _.T9(this,4)};
var jGZ=function(W,e){return _.Ga(W,4,e)},kEz=function(W,e){return _.Ga(W,5,e)},nPG=function(W,e){return _.Ga(W,9,e)},$YK=function(W,e){return yP(W,10,e)},ZPK=function(W,e){return _.Rh(W,11,e)},yGR=function(W,e){return _.Ga(W,1,e)},C8S=function(W,e){return _.Rh(W,7,e)};var oPK="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var L8=function(W,e,t,b){W=W===void 0?window:W;e=e===void 0?null:e;t=t===void 0?new qCG:t;b=b===void 0?uYv():b;ec8.call(this);var m=this;this.global=W;this.debugChannel=e;this.performanceMonitor=t;this.onPageHide=CP(function(){return nP(m.global,"pagehide")}).pipe(Od(this.performanceMonitor,941));
this.onLoad=CP(function(){return nP(m.global,"load")}).pipe(Od(this.performanceMonitor,738),Pa(1));
this.onResize=CP(function(){return nP(m.global,"resize")}).pipe(Od(this.performanceMonitor,741));
this.onMessage=CP(function(){return nP(m.global,"message")}).pipe(Od(this.performanceMonitor,740));
this.document=new Kd(this.global,this);this.timeProvider=new Rck(new F2U(this.intrinsicFunctionNamespace,this.performanceMonitor),new QRN(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new msU(new IgD(this),new pU8(this),new uD(this,new uDh(this)),new uD(this,new ChD(this)),new uD(this,new ht(this)))};
_.Z(L8,ec8);var GX=function(W){var e=W.global;return!!W.global.HTMLFencedFrameElement&&!!e.fence&&typeof e.fence.reportEvent==="function"};
_.r=L8.prototype;_.r.reportFencedFrameEvent=function(W){GX(this)&&this.global.fence.reportEvent(W)};
_.r.getOnBackgrounded=function(){return this.onPageHide.pipe(Od(this.performanceMonitor,942),QO(this.queue),$P(function(){}))};
_.r.postMessage=function(W,e,t){t=t===void 0?[]:t;this.global.postMessage(W,e,t)};
_.r.getWidth=function(){return UE(this.global)?this.global.width:0};
_.r.getHeight=function(){return UE(this.global)?this.global.height:0};
_.r.isMobile=function(){return v9v()||GSS()};
var OE=function(W,e){try{var t=DYG(e,W.global,W.isMobile());return{left:t.left,top:t.top,width:t.getWidth(),height:t.getHeight()}}catch(b){return hD}};
L8.prototype.validate=function(){var W=this.beaconFactory.isSupported()||GX(this);return this.global&&this.timeProvider.available()&&W};
var YV2=function(W){return(W=xYS(W.global))?RG(W):null};
_.Ec.Object.defineProperties(L8.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!UE(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}}});_.zNZ=!_.aP&&!_.gG();var oaQ=function(W){return W};var Z3z=function(W){return W.pipe(TE(function(e){var t=e.endOfSessionReason;var b;return((b=e.viewable)==null?void 0:b.extrapolateToNow().value)||t!=void 0}),Pa(1),sd())};var Kkz=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},P8L=function(W){var e=W.sequenceNumber.toString(10).padStart(2,"0");
e=""+W.startTime+e;W.sequenceNumber<99&&W.sequenceNumber++;return e};var Dcg=ed(d9(function(W){return W.endOfSessionReason===void 0}),$P(function(W){return Object.assign({},W,{timestamps:BK(W)})}),TE(function(W){var e=W.viewable;
W=W.timestamps;var t;return(t=e==null?void 0:e.extrapolateUsingTimestampMap(W).value)!=null?t:!1}),$P(function(W){var e=W.beaconFactory;
var t=W.timestampedExposureHistory;var b=W.timeOnScreen;var m=W.binaryContext;W=W.timestamps;if(e===void 0||t===void 0||b===void 0||m===void 0)return!1;if(b.extrapolateUsingTimestampMap(W).value.every(function(q){return q>=0}))return!0;
t=t.map(function(q){return q.timestamp+":"+q.value}).join(",");
b=oD({bin:m,tos:b},W);e.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+b+("&eh="+t)).sendNow();return!0}),d9(function(W){return!W}),sd());var iP2=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var lAQ=function(W){var e=[];return W.pipe($P(function(t){var b=t.beaconFactory,m=t.fetchBeaconFactory,q=t.timeOnScreen,Q=t.timeOnScreenUrlPrefixes,X=t.payloadMapper,I=t.timeOnScreenPingId,u=t.timeOnScreenReason,c=t.urlSerializer,v=t.viewable,D=t.hasImpressionFired,B=t.inStatefulBeaconExperiment,k=t.supportsPendingBeacon,n=t.supportsFetchLater,f=t.turtlexReportEventData;if(!t.geometryMeasurable||!D||t.maxTimeOnScreen===void 0||q===void 0||Q===void 0||X===void 0||I===void 0||c===void 0||b===void 0)return!1;
if(t.isTurtlex){if(u===void 0)return!1;Q=t.reportFencedFrameEvent;if(!Q)return!1;Q({eventType:"active-view-time-on-screen",eventData:f!=null?f:"",destination:["buyer"]});return!0}if(!(B||n||u))return!1;f=BK(t);var M;v=(M=v==null?void 0:v.extrapolateUsingTimestampMap(f).value)!=null?M:!1;M=c(Object.assign({},t,{pingId:I,viewState:v?4:3,reasonCode:u!=null?u:"u",payloadMapper:X,urlPrefixes:Q}),f);if(B){for(;e.length>Q.length;)t=void 0,(t=e.shift())==null||t.deactivate();M.forEach(function(U,V){V>=e.length?
e.push(b.makeBeacon(U)):e[V].url=U});
return k&&m&&u!==void 0?(M.forEach(function(U){m.makeBeacon(U).sendNow()}),!0):u!==void 0}if(k&&m&&u!==void 0)return M.forEach(function(U){m.makeBeacon(U).sendNow()}),!0;
if(n&&m){for(;e.length>Q.length;)k=void 0,(k=e.shift())==null||k.deactivate();var K=c(Object.assign({},t,{pingId:I,viewState:v?4:3,reasonCode:u!=null?u:"u",payloadMapper:X,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),f)[0];M.forEach(function(U,V){V>=e.length?e.push(b.makeBeacon(K,{endOfSession:!0})):e[V].url=K});
return u!==void 0?(M.forEach(function(U){m.makeBeacon(U).sendNow()}),!0):u!==void 0}return u!==void 0?(M.forEach(function(U){b.makeBeacon(U).sendNow()}),!0):!1}),d9(function(t){return!t}),sd())};var $cv=ed(TE(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),TE(function(W){return dYc(W)!==null}),AGD(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),$P(function(W){if(W.isTurtlex){var e=W.reportFencedFrameEvent;
if(e){var t;e({eventType:"active-view-unmeasurable",eventData:(t=W.turtlexReportEventData)!=null?t:"",destination:["buyer"]})}}else{t=void 0;var b=dYc(W);if(b==="x"){var m,q=(m=W.geometricMeasurementErrors)!=null?m:W.contextValidationErrors;q&&(e=q.stack,t=q.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:b,errorMessage:t,errorStack:e}),BK(W)).forEach(function(Q){W.beaconFactory.makeBeacon(Q).sendNow()})}}),
Pa(1),sd());var W_R=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Ggc=ed(TE(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),$P(function(W){return Object.assign({},W,{timestamps:BK(W)})}),TE(function(W){var e=W.viewable;
var t=W.hasImpressionFired;W=W.timestamps;var b;return!!t&&((b=e==null?void 0:e.extrapolateUsingTimestampMap(W).value)!=null?b:!1)}),AGD(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),$P(function(W){var e=W.beaconFactory,t=W.turtlexReportEventData;
if(W.isTurtlex){var b=W.reportFencedFrameEvent;if(!b)return!1;b({eventType:"active-view-viewable",eventData:t!=null?t:"",destination:["buyer"]});return!0}t=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(b=W.cpmavUrls)&&b.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(b,W).forEach(function(m){e.makeBeacon(m).sendNow()});
(b=W.viewableRelayUrls)&&b.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(b,W).forEach(function(m){e.makeBeacon(m).sendNow()});
t.forEach(function(m){e.makeBeacon(m,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),d9(function(W){return!W}),sd());var PNG=$P(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var ML=function(W,e){this.callback=W;this.options=e;this.intersectionObserverV2=this.intersectionObserverV1=null},$LR=function(W,e){e?W.intersectionObserverV2||(e=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,e)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},Uoo=function(W,e){W=e?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new tGr;return W};
ML.prototype.observe=function(W,e){Uoo(this,W).observe(e)};
ML.prototype.unobserve=function(W,e){Uoo(this,W).unobserve(e)};
ML.prototype.disconnect=function(W){Uoo(this,W).disconnect()};
ML.prototype.takeRecords=function(W){return Uoo(this,W).takeRecords()};var Ta={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:hD,topWindowViewportExternalGeometry:hD,measurementRequests:new qL,elementGeometrySourceName:"ns",elementGeometry:hD,intersectionGeometry:hD,viewportLocalAppOffset:{x:0,y:0}};var fR9=HK(ed($P(function(W){var e;return(e=W.exposureOverride)!=null?e:pKG(W)}),$P(function(W){return isFinite(W)?W:0}))),sDz=HK(ed($P(function(W){var e;
return(e=W.exposureOverride)!=null?e:pKG(W)}),$P(function(W){return isFinite(W)?W:-1})));var VT=function(W,e){this.a=W;this.b=e;if(W.clock.timeline!==e.clock.timeline)throw Error();};
VT.prototype.equivalentTo=function(W){return W instanceof VT?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
VT.prototype.extrapolateToTime=function(W){var e=this.a.extrapolateToTime(W).value,t=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[e,t]}};
_.Ec.Object.defineProperties(VT.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),e=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,t=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[e,t]}}}});var iD=function(W,e){this.input=W;this.mapFunction=e;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
iD.prototype.equivalentTo=function(W){return W instanceof iD?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
iD.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.Ec.Object.defineProperties(iD.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var YV=function(){};
YV.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
YV.prototype.extrapolateUsingTimestampMap=function(W){var e=this.clock.timeline,t,b=(t=W.get(e))!=null?t:this.clock.now();W.set(e,b);return this.extrapolateToTime(b)};
YV.prototype.map=function(W){return new LeP(this,W)};
YV.prototype.joinWith=function(W){return new Evy(this,W)};
var Evy=function(){VT.apply(this,arguments);this.map=YV.prototype.map;this.joinWith=YV.prototype.joinWith;this.extrapolateToNow=YV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YV.prototype.extrapolateUsingTimestampMap};
_.Z(Evy,VT);var LeP=function(){iD.apply(this,arguments);this.map=YV.prototype.map;this.joinWith=YV.prototype.joinWith;this.extrapolateToNow=YV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YV.prototype.extrapolateUsingTimestampMap};
_.Z(LeP,iD);var PK=function(W,e){this.lastMeasurement=e;this.extrapolateToNow=YV.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=YV.prototype.extrapolateUsingTimestampMap;this.map=YV.prototype.map;this.joinWith=YV.prototype.joinWith;this.clock=W};
PK.prototype.equivalentTo=function(W){return W.active};
PK.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Ec.Object.defineProperties(PK.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var K_9=$P(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var jD9=ed(TE(function(W){return!isNaN(W)}),Ed(function(W,e){return isNaN(W)?e:Math.min(W,e)},NaN),Vh());var gJg=HK(ed($P(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),$P(function(W){return isFinite(W)?Math.min(1,W):0})));var H8G=ed(HK($P(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var i8G=function(W,e){var t=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=e.pipe(Vh()).subscribe(function(b){za(t);t.measurementRequestObserver=b})},zPG=function(W,e){za(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var t;return void((t=W.measurementRequestObserver)==null?void 0:t.next())},e)},za=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
i8G.prototype.dispose=function(){za(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var AkN=function(){};var uzv=function(W,e){this.context=W;this.strategies=e};
_.Z(uzv,AkN);uzv.prototype.buildGeometrySource=function(W,e){var t=this.strategies.map(function(q){return q.buildGeometrySource(W,e)}),b=N6L(t.map(function(q){return q.geometrySource})),m=b.capturedErrors.pipe(NBb());
return{geometrySource:b.chain.pipe(QO(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:m,strategyErrors:b.capturedErrors}].concat(_.kP(t.map(function(q){return q.additionalOutputs}))))}};
var NBb=function(){return Ed(function(W,e){e instanceof ZR?W.push(e.measurementStrategyFailureReason):W.push(-1);return W},[])};var va9=function(W,e){this.context=W;this.poller=e};
_.Z(va9,AkN);va9.prototype.buildGeometrySource=function(W,e){var t=dLz(eFG(this.context,this.poller),wKK(this.context,e.requestSource));return{geometrySource:ADR(W.measurableCreative.pipe(t),e.inApp),additionalOutputs:{}}};var cEG=function(W,e,t){t=t===void 0?SEL(W,e):t;this.context=W;this.intersectionObserverStrategy=t};
_.Z(cEG,AkN);cEG.prototype.buildGeometrySource=function(W,e){var t=this.intersectionObserverStrategy(e.useV2);return{geometrySource:ADR(W.measurableCreative.pipe(t,B6D(this.context)),e.inApp),additionalOutputs:{}}};var doZ=function(W,e,t){var b=b===void 0?Symbol():b;this.element=W;this.immediateUrls=e;this.timeOnScreenUrls=t;this.symbol=b};var YJ=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),qJ9=Object.freeze([1,.75,YJ.exposureThreshold,YJ.largeAdExposureThreshold,0]);var jgD=function(W,e){e=e===void 0?36E5:e;var t=t===void 0?!0:t;this.creatives=new qL;this.elementsToUnregister=new qL;this.elementMap=new Map;var b=new L8(window,null);b.beaconFactory=new uD(b,new ht(b));wXc(b,this.creatives,this.elementsToUnregister,W,e,t).subscribe()},fFs=function(W,e,t,b){if(!W.elementMap.has(e)){var m=new xJ(e);
W.elementMap.set(e,m);W.creatives.next(new doZ(m,t,b))}},n39=function(W,e){W.elementsToUnregister.next(e);
var t=W.elementMap.get(e);t!==void 0&&(t.release(),W.elementMap.delete(e))};var vQR=function(W){var e=W.url;W=W.uaDataValues;this.JSC$7522_url_=e;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var t=/[?&]([^&=]+)=([^&]*)/g;W=t.exec(e);)this.urlParamValues_[W[1]]=W[2]},Gic=function(W){W=W.uaDataValues_;
if(!W)return"";var e=AD("uap",W.platform)+AD("uapv",W.platformVersion)+AD("uafv",W.uaFullVersion)+AD("uaa",W.architecture)+AD("uam",W.model)+AD("uab",W.bitness);W.fullVersionList&&(e+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(t){return encodeURIComponent(t.brand)+";"+encodeURIComponent(t.version)}).join("|")));
W.wow64!=null&&(e+="&uaw="+Number(W.wow64));return e.slice(1)};var zX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(zX,_.Ow);zX.prototype.getId=function(){return _.T9(this,1)};
zX.prototype.setId=function(W){return _.WN(this,1,W)};var U8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(U8,_.Ow);U8.prototype.getSeconds=function(){return fY(this,1)};
U8.prototype.setSeconds=function(W){return _.kE(this,1,fC(W),"0")};_.Vg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(_.Vg,_.Ow);_.Vg.prototype.getSeconds=function(){return fY(this,1)};
_.Vg.prototype.setSeconds=function(W){return _.kE(this,1,fC(W),"0")};
_.WUU=function(W){var e=Number(x2(W,1));W=_.bQ(W,2);return new Date(e*1E3+W/1E6)};var Ld=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Ld,_.Ow);Ld.prototype.getUrl=function(){return _.T9(this,1)};
Ld.prototype.setUrl=function(W){return _.WN(this,1,W)};
Ld.prototype.getHeight=function(){return _.bQ(this,2)};
Ld.prototype.getWidth=function(){return _.bQ(this,3)};var E8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(E8,_.Ow);E8.prototype.getAspectRatio=function(){return g2(this,1)};
E8.prototype.setAspectRatio=function(W){return _.kE(this,1,_.FC(W),0)};
E8.prototype.getDuration=function(){return _.mx(this,U8,2)};var eQ8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(eQ8,_.Ow);var tTS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(tTS,_.Ow);var bCo=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(bCo,_.Ow);var m9h=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(m9h,_.Ow);var rSb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(rSb,_.Ow);var qBk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(qBk,_.Ow);var RQP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(RQP,_.Ow);var Q$v=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Q$v,_.Ow);var FU8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(FU8,_.Ow);var At=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(At,_.Ow);var NW=[2,4,5,6,7];var Xu8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Xu8,_.Ow);var ju=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ju,_.Ow);_.r=ju.prototype;_.r.getId=function(){return _.mx(this,zX,1)};
_.r.setId=function(W){return _.bF(this,1,W)};
_.r.getName=function(){return _.T9(this,2)};
_.r.setDescription=function(W){return _.WN(this,3,W)};
_.r.getUrl=function(){return _.T9(this,8)};
_.r.setUrl=function(W){return _.WN(this,8,W)};
var dj=function(W){return _.eh(W,Ld,10,_.tE())};
ju.prototype.getOwner=function(W){var e=_.op(this,40,_.Hu,3,!0);OS(e,W);return e[W]};
ju.prototype.getVersion=function(){return fY(this,45)};
var eF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(eF,_.Ow);_.IMv=[0,UpZ,EU2];_.aMP=[0,UpZ,EU2];var wuh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(wuh,_.Ow);var tn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(tn,_.Ow);tn.prototype.getStatus=function(){return _.Js(this,1)};
tn.prototype.removeItem=function(W){return Id9(this,2,W)};var uCe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(uCe,_.Ow);uCe.prototype.getName=function(){return _.T9(this,8)};var bj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(bj,_.Ow);bj.prototype.getCommand=function(){return _.Js(this,1)};
bj.prototype.getSource=function(){return _.mx(this,uCe,2)};
bj.prototype.setVisible=function(W){return _.y5(this,5,W)};
bj.prototype.removeItem=function(W){return Id9(this,7,W)};var cSv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(cSv,_.Ow);cSv.prototype.getCommand=function(){return _.Js(this,1)};
cSv.prototype.removeItem=function(W){return Id9(this,4,W)};
var vlB=_.e5(cSv);var m6=function(W,e,t){t=t===void 0?Error():t;var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=W;e+=":";t instanceof Error?(this.message=e+t.message,this.stack=t.stack||""):(this.message=e+String(t),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(m6,Error);_.ka=function(){this.JSC$7580_disposed_=this.JSC$7580_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.ka.prototype.JSC$7580_disposed_=!1;_.ka.prototype.isDisposed=function(){return this.JSC$7580_disposed_};
_.ka.prototype.dispose=function(){this.JSC$7580_disposed_||(this.JSC$7580_disposed_=!0,this.disposeInternal())};
_.ka.prototype[Symbol.dispose]=function(){this.dispose()};
_.w$=function(W,e){W.addOnDisposeCallback(_.Sz(_.NL,e))};
_.ka.prototype.addOnDisposeCallback=function(W,e){this.JSC$7580_disposed_?e!==void 0?W.call(e):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),e&&(W=W.bind(e)),this.onDisposeCallbacks_.push(W))};
_.ka.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ru=function(W){_.ka.call(this);this.wpc=W};
_.Z(ru,_.ka);ru.prototype.ttW=function(){return this.wpc.f()};
ru.prototype.vqq=function(W){return this.wpc.c(W)};
ru.prototype.tI=function(W){return this.wpc.m(CQR(W))};
ru.prototype.i8=function(W){return this.wpc.mws(CQR(W))};
var WX=function(W){_.ka.call(this);var e=this;this.iq=W;this.s6I="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.qKI=void 0;this.bde=this.iq.p;this.j40=this.hIm.bind(this);this.addOnDisposeCallback(function(){return void G1e(e)})};
_.Z(WX,_.ka);var D9S=function(W){var e;return _.F(function(t){if(t.nextAddress==1){if(!W.iq.wpc)throw new m6(30,"NWA");return W.fcM?t.return(W.fcM):_.a(t,W.iq.wpc(),2)}e=t.yieldResult;W.fcM=new ru(e);return t.return(W.fcM)})};
WX.prototype.snapshot=function(W){return this.iq.s(Object.assign({},W.c6&&{c:W.c6},W.gvW&&{s:W.gvW},W.eNq!==void 0&&{p:W.eNq}))};
WX.prototype.hIm=function(W){this.iq.e(W)};
WX.prototype.wSq=function(W,e){return this.iq.c(W,e,!1)};
var G1e=function(W){W.qKI!==void 0&&(W.s6I.forEach(function(e){var t;(t=W.qKI)==null||t.removeEventListener(e,W.j40)}),W.qKI=void 0)};
WX.prototype.wlS=function(){return this.iq.l()};var SBv,q3=function(){_.ka.apply(this,arguments);this.yfd=1;this[SBv]=this.dispose};
_.Z(q3,_.ka);q3.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.yfd++;return this};
q3.prototype.dispose=function(){--this.yfd||_.ka.prototype.dispose.call(this)};
SBv=Symbol.dispose;var EaQ=function(W){this.r8d=W;W.addNewEventMetric("/client_streamz/bg/frs",_.qc("mk"))};
EaQ.prototype.record=function(W,e){this.r8d.record("/client_streamz/bg/frs",W,e)};
var WJ2=function(W){this.op2=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.qc("mn"),r$("ac"),r$("sc"),_.qc("rk"),_.qc("mk"))};
WJ2.prototype.record=function(W,e,t,b,m,q){this.op2.record("/client_streamz/bg/wrl",W,e,t,b,m,q)};
var N$L=function(W){this.eNd=W;W.addNewCounter("/client_streamz/bg/ec",_.qc("en"),_.qc("mk"))};
N$L.prototype.increment=function(W,e){this.eNd.JSC$7833_incrementCounter("/client_streamz/bg/ec",W,e)};
var dcQ=function(W){this.y8M=W;W.addNewEventMetric("/client_streamz/bg/el",_.qc("en"),_.qc("mk"))};
dcQ.prototype.record=function(W,e,t){this.y8M.record("/client_streamz/bg/el",W,e,t)};
var AEs=function(W){this.c8D=W;W.addNewCounter("/client_streamz/bg/cec",r$("ec"),_.qc("mk"))};
AEs.prototype.increment=function(W,e){this.c8D.JSC$7833_incrementCounter("/client_streamz/bg/cec",W,e)};
var eiQ=function(W){this.jG0=W;W.addNewCounter("/client_streamz/bg/po/csc",r$("cs"),_.qc("mk"))};
eiQ.prototype.increment=function(W,e){this.jG0.JSC$7833_incrementCounter("/client_streamz/bg/po/csc",W,e)};
var tCD=function(W){this.woV=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.qc("av"),_.qc("mk"))};
tCD.prototype.increment=function(W,e){this.woV.JSC$7833_incrementCounter("/client_streamz/bg/po/ctav",W,e)};
var bhg=function(W){this.bXd=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.qc("su"),_.qc("mk"))};
bhg.prototype.increment=function(W,e){this.bXd.JSC$7833_incrementCounter("/client_streamz/bg/po/cwsc",W,e)};var I2Z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(I2Z,_.Ow);var Xf2=function(W,e){return _.$E(W,3,e,Az2)};var BEZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(BEZ,_.Ow);var olS=[1,2,3];var lMP=[0,olS,_.ejL,A0K,WCg];var ZCS=[0,_.Eq,[0,ikZ,_.Y2]];var $98=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z($98,_.Ow);var k1k=[1,2,3];var pu8=[0,k1k,Lrg,YYG,_.As,ZCS];var ySb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ySb,_.Ow);var j$h=[0,_.Eq,lMP,pu8];var Cgr=[0,_.LY];var nlD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(nlD,_.Ow);var fMD=[0,_.LY,-1,_.Uq];var glb=[0,_.LY,-1,_.z9,_.Uq];var TEv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(TEv,_.Ow);var JSB=[1,2,3];var x98=[0,JSB,_.As,fMD,_.As,glb,_.As,Cgr];var OCN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(OCN,_.Ow);OCN.prototype.JSC$7653_serializeBinary=eyK([0,_.LY,x98,tZc,_.Eq,j$h,Nnz,dpK]);var MTh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(MTh,_.Ow);var HCv=function(W){var e=new OCN;e=_.Ga(e,1,W.JSC$7769_metricName);var t=s$v(W);e=_.$E(e,3,t,_.OB);t=[];for(var b=[],m=_.R(W.cellMap.keys()),q=m.next();!q.done;q=m.next())b.push(q.value.split(","));for(m=0;m<b.length;m++){q=b[m];for(var Q=W.cellType,X=W.getCells(q)||[],I=[],u=0;u<X.length;u++){var c=X[u],v=c&&c.cellValue;c=new $98;switch(Q){case 3:v=Number(v);Number.isFinite(v)&&v3(c,1,k1k,fC(v));break;case 2:v3(c,2,k1k,_.FC(Number(v)))}I.push(c)}Q=I;for(X=0;X<Q.length;X++){I=Q[X];u=new ySb;I=_.bF(u,
2,I);u=[];c=hQh(W);for(v=0;v<c.length;v++){var D=c[v],B=q[v],k=new BEZ;switch(D){case 3:v3(k,1,olS,M9(String(B)));break;case 2:D=Number(B);Number.isFinite(D)&&v3(k,2,olS,_.ZM(D));break;case 1:v3(k,3,olS,Us2(B==="true"))}u.push(k)}yP(I,1,u);t.push(I)}}yP(e,4,t);return e};var KUy=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var e=W.substring(W.indexOf("://")+3),t=e.indexOf("/");t!=-1&&(e=e.substring(0,t));t=W.substring(0,W.indexOf("://"));if(!t)throw Error("va`"+W);if(t!=="http"&&t!=="https"&&t!=="chrome-extension"&&t!=="moz-extension"&&
t!=="file"&&t!=="android-app"&&t!=="chrome-search"&&t!=="chrome-untrusted"&&t!=="chrome"&&t!=="app"&&t!=="devtools")throw Error("wa`"+t);W="";var b=e.indexOf(":");if(b!=-1){var m=e.substring(b+1);e=e.substring(0,b);if(t==="http"&&m!=="80"||t==="https"&&m!=="443")W=":"+m}return t+"://"+e+W};var VTy=function(W,e,t){var b=String(_.tz.location.href);return b&&W&&e?[e,Pgh(KUy(b),W,t||null)].join(" "):null},Pgh=function(W,e,t){var b=[],m=[];
if((Array.isArray(t)?2:1)==1)return m=[e,W],_.VZ(b,function(X){m.push(X)}),iCB(m.join(" "));
var q=[],Q=[];_.VZ(t,function(X){Q.push(X.key);q.push(X.value)});
t=Math.floor((new Date).getTime()/1E3);m=q.length==0?[t,e,W]:[q.join(":"),t,e,W];_.VZ(b,function(X){m.push(X)});
W=iCB(m.join(" "));W=[t,W];Q.length==0||W.push(Q.join(""));return W.join("_")},iCB=function(W){var e=MhR();
e.update(W);return e.digestString().toLowerCase()};var Rr=function(W){this.JSC$7664_document_=W||{cookie:""}},YBo;
_.r=Rr.prototype;_.r.isEnabled=function(){if(!_.tz.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};
_.r.set=function(W,e,t){var b=!1;if(typeof t==="object"){var m=t.sameSite;b=t.secure||!1;var q=t.domain||void 0;var Q=t.path||void 0;var X=t.maxAge}if(/[;=\s]/.test(W))throw Error("xa`"+W);if(/[;\r\n]/.test(e))throw Error("ya`"+e);X===void 0&&(X=-1);t=q?";domain="+q:"";Q=Q?";path="+Q:"";b=b?";secure":"";X=X<0?"":X==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+X*1E3)).toUTCString();this.JSC$7664_document_.cookie=W+"="+e+t+Q+X+b+(m!=null?";samesite="+m:"")};
_.r.get=function(W,e){for(var t=W+"=",b=(this.JSC$7664_document_.cookie||"").split(";"),m=0,q;m<b.length;m++){q=aR(b[m]);if(q.lastIndexOf(t,0)==0)return q.slice(t.length);if(q==W)return""}return e};
_.r.remove=function(W,e,t){var b=this.containsKey(W);this.set(W,"",{maxAge:0,path:e,domain:t});return b};
_.r.getKeys=function(){return YBo(this).keys};
_.r.getValues=function(){return YBo(this).values};
_.r.isEmpty=function(){return!this.JSC$7664_document_.cookie};
_.r.getCount=function(){return this.JSC$7664_document_.cookie?(this.JSC$7664_document_.cookie||"").split(";").length:0};
_.r.containsKey=function(W){return this.get(W)!==void 0};
_.r.containsValue=function(W){for(var e=YBo(this).values,t=0;t<e.length;t++)if(e[t]==W)return!0;return!1};
_.r.clear=function(){for(var W=YBo(this).keys,e=W.length-1;e>=0;e--)this.remove(W[e])};
YBo=function(W){W=(W.JSC$7664_document_.cookie||"").split(";");for(var e=[],t=[],b,m,q=0;q<W.length;q++)m=aR(W[q]),b=m.indexOf("="),b==-1?(e.push(""),t.push(m)):(e.push(m.substring(0,b)),t.push(m.substring(b+1)));return{keys:e,values:t}};
_.vi=new Rr(typeof document=="undefined"?null:document);var e6s,zQe;e6s=function(){var W=_.tz.__SAPISID||_.tz.__APISID||_.tz.__3PSAPISID||_.tz.__1PSAPISID||_.tz.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new Rr(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W};
zQe=function(W,e,t,b){(W=_.tz[W])||typeof document==="undefined"||(W=(new Rr(document)).get(e));return W?VTy(W,t,b):null};
_.Yb9=function(W){var e=KUy(_.tz==null?void 0:_.tz.location.href),t=[];if(e6s()){e=e.indexOf("https:")==0||e.indexOf("chrome-extension:")==0||e.indexOf("chrome-untrusted://new-tab-page")==0||e.indexOf("moz-extension:")==0;var b=e?_.tz.__SAPISID:_.tz.__APISID;b||typeof document==="undefined"||(b=new Rr(document),b=b.get(e?"SAPISID":"APISID")||b.get("__Secure-3PAPISID"));(b=b?VTy(b,e?"SAPISIDHASH":"APISIDHASH",W):null)&&t.push(b);e&&((e=zQe("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&t.push(e),
(W=zQe("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&t.push(W))}return t.length==0?null:t.join(" ")};var U9e=function(){this.minSize=1024};
U9e.prototype.compress=function(W){var e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return e=new CompressionStream("gzip"),t=(new Response(e.readable)).arrayBuffer(),b=e.writable.getWriter(),_.a(q,b.write((new TextEncoder).encode(W)),2);case 2:return _.a(q,b.close(),3);case 3:return m=Uint8Array,_.a(q,t,4);case 4:return q.return(new m(q.yieldResult))}})};
U9e.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var LUB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(LUB,_.Ow);var Qd=function(W,e){this.intervalMs=W;this.callback=e;this.enabled=!1;this.nowFn=function(){return _.RP()};
this.lastTimeMs=this.nowFn()};
Qd.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Qd.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Qd.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Qd.prototype.tick=function(){var W=this;if(this.enabled){var e=Math.max(this.nowFn()-this.lastTimeMs,0);e<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-e):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Elk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Elk,_.Ow);var ASh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ASh,_.Ow);var NEB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(NEB,_.Ow);NEB.prototype.getTransmissionType=function(){return _.Js(this,1)};var KED=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(KED,_.Ow);KED.prototype.getVersion=function(){return _.T9(this,2)};var Fp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Fp,_.Ow);var H3R=function(W){yP(QV,1,W)};
Fp.prototype.getModel=function(){return _.T9(this,6)};
var d9r=_.e5(Fp);var Wfe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Wfe,_.Ow);var shZ=["platform","platformVersion","architecture","model","uaFullVersion"],QV=new Fp,hFK=null;var Xp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Xp,_.Ow);var ey8=function(W){return _.rT(W,1,1)};var tKN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,4)};
_.Z(tKN,_.Ow);_.Ir=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,36)};
_.Z(_.Ir,_.Ow);_.Ir.prototype.getExperimentIds=function(){return _.mx(this,LUB,16)};var bOy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,19)};
_.Z(bOy,_.Ow);bOy.prototype.setLogSource=function(W){return _.rT(this,2,W)};
bOy.prototype.setScheduler=function(W){return _.rT(this,10,W)};var ree=function(W,e){this.isServiceWorkerScope=e=e===void 0?!1:e;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new bOy;Number.isInteger(W)&&this.logRequest.setLogSource(W);e||(this.locale=document.documentElement.getAttribute("lang"));mSo(this,new Xp)};
ree.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var mSo=function(W,e){_.bF(W.logRequest,1,e);_.Js(e,1)||ey8(e);W.isServiceWorkerScope||(e=ar(W),_.T9(e,5)||_.Ga(e,5,W.locale));W.uach&&(e=ar(W),_.mx(e,Fp,9)||_.bF(e,9,W.uach))},qwr=function(W,e){W.transmissionType=e},Ryk=function(W){var e=e===void 0?shZ:e;
var t=W.isServiceWorkerScope?void 0:C8();t?PQG(t,e).then(function(b){W.uach=d9r(b!=null?b:"[]");b=ar(W);_.bF(b,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},ar=function(W){var e=_.mx(W.logRequest,Xp,1);
e||(e=new Xp,mSo(W,e));W=e;e=_.mx(W,Wfe,11);e||(e=new Wfe,_.bF(W,11,e));return e};
ree.prototype.build=function(W,e,t,b,m,q){e=e===void 0?0:e;t=t===void 0?0:t;b=b===void 0?null:b;m=m===void 0?0:m;q=q===void 0?0:q;if(!this.isServiceWorkerScope){var Q=ar(this);var X=new NEB;X=_.rT(X,1,this.transmissionType);X=_.Rh(X,2,this.isFinal);t=_.sq(X,3,t>0?t:void 0);t=_.sq(t,4,m>0?m:void 0);t=_.sq(t,5,q>0?q:void 0);m=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=m[_.oy]|0;t=fr(t,q)?t:Xd(t,m,q)?Fd(t,m):new t.constructor(QS(m,q,!0));_.bF(Q,10,t)}Q=this.logRequest.clone();t=Date.now().toString();
Q=_.qI(Q,4,fC(t));W=W.slice();W=yP(Q,3,W);b&&(Q=new Elk,b=_.sq(Q,13,b),Q=new ASh,b=_.bF(Q,2,b),Q=new tKN,b=_.bF(Q,1,b),b=_.rT(b,2,9),_.bF(W,18,b));e&&_.Zt(W,14,e);return W};Fz.prototype.currBackoffCount_=0;Fz.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Fz.prototype.getValue=function(){return this.currValue_};
var QpP=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var RjG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,8)};
_.Z(RjG,_.Ow);var Ffy=_.e5(RjG);var Qqc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Qqc,_.Ow);var wu;wu=new FCs;var uj=function(W){_.ka.call(this);var e=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7742_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$7742_sendBeaconApiEnabled=!1;this.logSource=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ree(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.bufferSize=1E3;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!C8()&&!!C8().navigator&&C8().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(XRe())).searchParams&&!!(new URL(XRe())).searchParams.set;var t=ey8(new Xp);mSo(this.logRequestBuilder,t);this.flushBackoff=new Fz(1E4,3E5,.1);W=IQD(this,W.backgroundJobDeferrer);this.JSC$7742_flushTimer=new Qd(this.flushBackoff.getValue(),W);this.backupTimer=new Qd(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){aQe(e);
var b;(b=e.metalogService)==null||b.flush()}}),document.addEventListener("pagehide",function(){aQe(e);
var b;(b=e.metalogService)==null||b.flush()}))};
_.Z(uj,_.ka);var IQD=function(W,e){return W.isBrowserSupported?e?function(){e().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
uj.prototype.disposeInternal=function(){aQe(this);this.JSC$7742_flushTimer.stop();this.backupTimer.stop();_.ka.prototype.disposeInternal.call(this)};
var wRN=function(W){W.clearcutUrl||(W.clearcutUrl=XRe());try{return(new URL(W.clearcutUrl)).toString()}catch(e){return(new URL(W.clearcutUrl,C8().location.origin)).toString()}};
uj.prototype.dispatch=function(W){if(W instanceof _.Ir)this.log(W);else try{var e=new _.Ir,t=W.serialize();var b=_.Ga(e,8,t);this.log(b)}catch(m){cq(this,4,1)}};
var cq=function(W,e,t){W.metalogService&&W.metalogService.increment(e,t)};
uj.prototype.log=function(W){cq(this,2,1);if(this.isBrowserSupported){W=W.clone();var e=this.sequencePosition++;W=_.Zt(W,21,e);this.componentId&&_.Ga(W,26,this.componentId);e=W;if(wUc(_.oP(e,1))==null){var t=Date.now();t=Number.isFinite(t)?t.toString():"0";_.qI(e,1,fC(t))}_.aDG(_.oP(e,15))!=null||_.Zt(e,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(t=this.experimentIds.clone(),_.bF(e,16,t));cq(this,1,1);e=this.pendingEvents.length-this.bufferSize+1;e>0&&(this.pendingEvents.splice(0,e),
this.numLogsDroppedSinceLastFlush+=e,cq(this,3,e));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$7742_flushTimer.enabled||this.JSC$7742_flushTimer.start()}};
uj.prototype.flush=function(W,e){var t=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$7742_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,udU(this);else{var b=Date.now();if(this.noFlushUntilMs>b&&this.startWaitingMs<b)e&&e("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?qwr(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var m=this.pendingEvents.length,
q=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Q=this.getAuthHeaderValue();if(Q&&this.lastFailedAuth===Q)e&&e("stale-auth-token");else{this.pendingEvents=[];this.JSC$7742_flushTimer.enabled&&this.JSC$7742_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;b=q.serialize();var X;this.JSC$7742_compressor&&this.JSC$7742_compressor.isSupported(b.length)&&
(X=this.JSC$7742_compressor.compress(b));var I=ceZ(this,b,Q),u=function(D){t.flushBackoff.reset();t.JSC$7742_flushTimer.setInterval(t.flushBackoff.getValue());if(D){var B=null;try{var k=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));B=Ffy(k)}catch(n){}B&&(D=Number(fY(B,1,_.Yv("-1"))),D>0&&(t.startWaitingMs=Date.now(),t.noFlushUntilMs=t.startWaitingMs+D),fDL(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,wu.fieldIndex),Chg(B,wu.fieldIndex),B=wu.ctor?wu.getExtensionFn(B,wu.ctor,wu.fieldIndex,
wu.JSC$6922_hasMessageId):wu.getExtensionFn(B,wu.fieldIndex,null,wu.JSC$6922_hasMessageId),B=B===null?void 0:B)&&(B=_.bQ(B,1,-1),B!==-1&&(t.flushBackoff=new Fz(B<1?1:B,3E5,.1),t.JSC$7742_flushTimer.setInterval(t.flushBackoff.getValue())))}W&&W();t.numRetriesSinceLastSuccessfulFlush=0},c=function(D,B){var k=_.eh(q,_.Ir,3,_.tE());
var n=Number(fY(q,14));QpP(t.flushBackoff);t.JSC$7742_flushTimer.setInterval(t.flushBackoff.getValue());D===401&&Q&&(t.lastFailedAuth=Q);n&&(t.numLogsDroppedSinceLastFlush+=n);B===void 0&&(B=t.isRetryable(D));B&&(t.pendingEvents=k.concat(t.pendingEvents),t.disableAutomaticFlush||t.JSC$7742_flushTimer.enabled||t.JSC$7742_flushTimer.start());cq(t,7,1);e&&e("net-send-failed",D);++t.numRetriesSinceLastSuccessfulFlush},v=function(){t.network&&t.network.send(I,u,c)};
X?X.then(function(D){cq(t,5,m);I.requestHeaders["Content-Encoding"]="gzip";I.requestHeaders["Content-Type"]="application/binary";I.body=D;I.bodyType=2;v()},function(){cq(t,6,m);
v()}):v()}}}};
var ceZ=function(W,e,t){t=t===void 0?null:t;var b=b===void 0?W.withCredentials:b;var m={},q=new URL(wRN(W));t&&(m.Authorization=t);W.sessionIndex&&(m["X-Goog-AuthUser"]=W.sessionIndex,q.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(m,"X-Goog-PageId",{value:W.pageId}),q.searchParams.set("pageId",W.pageId));return{url:q.toString(),body:e,bodyType:1,requestHeaders:m,requestType:"POST",withCredentials:b,timeoutMillis:W.timeoutMillis}},aQe=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},udU=function(W){vEb(W,function(e,t){e=new URL(e);
e.searchParams.set("format","json");var b=!1;try{b=C8().navigator.sendBeacon(e.toString(),t.serialize())}catch(m){}b||(W.isSendBeaconSupported=!1);return b})},vEb=function(W,e){if(W.pendingEvents.length!==0){var t=new URL(wRN(W));
t.searchParams.delete("format");var b=W.getAuthHeaderValue();b&&t.searchParams.set("auth",b);t.searchParams.set("authuser",W.sessionIndex||"0");for(b=0;b<10&&W.pendingEvents.length;++b){var m=W.pendingEvents.slice(0,32),q=W.logRequestBuilder.build(m,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!e(t.toString(),q)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(m.length)}W.JSC$7742_flushTimer.enabled&&W.JSC$7742_flushTimer.stop()}};
uj.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var XRe=function(){return"https://play.google.com/log?format=json&hasfast=true"};var GVo=function(){this.abortSupported=typeof AbortController!=="undefined"};
GVo.prototype.send=function(W,e,t){var b=this,m,q,Q,X,I,u,c,v,D,B;return _.F(function(k){switch(k.nextAddress){case 1:return q=(m=b.abortSupported?new AbortController:void 0)?setTimeout(function(){m.abort()},W.timeoutMillis):void 0,_.Qh(k,2,3),Q=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&m?m.signal:null}),_.a(k,fetch(W.url,Q),5);case 5:X=k.yieldResult;if(X.status!==200){(I=t)==null||I(X.status);k.jumpTo(3);break}if((u=e)==null){k.jumpTo(7);break}return _.a(k,X.text(),8);case 8:u(k.yieldResult);case 7:case 3:_.FY(k);clearTimeout(q);_.aG(k,0);break;case 2:c=_.w9(k);switch((v=c)==null?void 0:v.name){case "AbortError":(D=t)==null||D(408);break;default:(B=
t)==null||B(400)}k.jumpTo(3)}})};
GVo.prototype.getTransmissionType=function(){return 4};_.ah=function(W,e){e=e===void 0?"0":e;_.ka.call(this);this.logSource=W;this.sessionIndex=e;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7760_clearExperimentIds=this.productID=null;this.JSC$7760_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.Z(_.ah,_.ka);var RiG=function(W,e){W.buildLabel=e;return W},q0S=function(W,e){W.network=e;
return W},FJL=function(W,e){W.JSC$7760_clearExperimentIds=e},rOD=function(W){W.JSC$7760_sendBeaconApiEnabled=!0;
return W};
_.ah.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.ah.prototype.build=function(){this.network||(this.network=new GVo);var W=new uj({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Yb9,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.w$(this,W);if(this.buildLabel){var e=this.buildLabel,t=
ar(W.logRequestBuilder);_.Ga(t,7,e)}W.JSC$7742_compressor=new U9e;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$7760_clearExperimentIds&&((t=this.JSC$7760_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new LUB),e=W.experimentIds,t=t.serialize(),_.Ga(e,4,t)):W.experimentIds&&_.qI(W.experimentIds,4));this.JSC$7760_sendBeaconApiEnabled&&(W.JSC$7742_sendBeaconApiEnabled=W.isSendBeaconSupported);Ryk(W.logRequestBuilder);
this.bufferSize&&(W.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var a29=function(W,e,t,b,m,q,Q){W=W===void 0?-1:W;e=e===void 0?"":e;t=t===void 0?"":t;b=b===void 0?!1:b;m=m===void 0?"":m;_.ka.call(this);this.logSource=W;this.componentId=e;q?e=q:(W=new _.ah(W,"0"),W.componentId=e,_.w$(this,W),t!==""&&(W.destinationUrl=t),b&&(W.serviceWorkerScopeEnabled=!0),m&&RiG(W,m),Q&&q0S(W,Q),e=W.build());this.JSC$7764_transport=e};
_.Z(a29,_.ka);a29.prototype.flush=function(W){W=W||[];if(W.length){for(var e=new MTh,t=[],b=0;b<W.length;b++){var m=W[b],q=HCv(m);t.push(q);m.clear()}yP(e,1,t);this.JSC$7764_transport.dispatch(e);this.JSC$7764_transport.flush()}};var DSo=function(W){this.cellValue=W};var vq=function(W,e,t){this.JSC$7769_metricName=W;this.cellType=e;this.fields=t||[];this.cellMap=new Map},hQh=function(W){return W.fields.map(function(e){return e.fieldType})},s$v=function(W){return W.fields.map(function(e){return e.fieldName})};
_.r=vq.prototype;_.r.addCell=function(W){var e=_.$N.apply(1,arguments),t=this.getCells(e);t?t.push(new DSo(W)):this.JSC$7769_setCell(W,e)};
_.r.JSC$7769_setCell=function(W){var e=this.JSC$7769_getKey(_.$N.apply(1,arguments));this.cellMap.set(e,[new DSo(W)])};
_.r.getCells=function(){var W=this.JSC$7769_getKey(_.$N.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.r.getCell=function(){var W=this.getCells(_.$N.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.r.clear=function(){this.cellMap.clear()};
_.r.JSC$7769_getKey=function(){var W=_.$N.apply(0,arguments);return W?W.join(","):"key"};var Swb=function(W,e){vq.call(this,W,3,e)};
_.Z(Swb,vq);Swb.prototype.JSC$7772_incrementCounterBy=function(W){var e=_.$N.apply(1,arguments),t=0,b=this.getCell(e);b&&(t=b.cellValue);this.JSC$7769_setCell(t+W,e)};var BlD=function(W,e){vq.call(this,W,2,e)};
_.Z(BlD,vq);BlD.prototype.record=function(W){this.addCell(W,_.$N.apply(1,arguments))};_.GD=function(W){this.id=W};
_.GD.prototype.toString=function(){return this.id};_.DY=function(W,e){this.type=W instanceof _.GD?String(W):W;this.currentTarget=this.target=e;this.defaultPrevented=this.propagationStopped_=!1};
_.DY.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.DY.prototype.preventDefault=function(){this.defaultPrevented=!0};_.SF=function(W,e){_.DY.call(this,W?W.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;W&&this.init(W,e)};
_.QP(_.SF,_.DY);
_.SF.prototype.init=function(W,e){var t=this.type=W.type,b=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=e;e=W.relatedTarget;e||(t=="mouseover"?e=W.fromElement:t=="mouseout"&&(e=W.toElement));this.relatedTarget=e;b?(this.clientX=b.clientX!==void 0?b.clientX:b.pageX,this.clientY=b.clientY!==void 0?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.screenY||0):(this.offsetX=_.uI||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.uI||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(t=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.SF.superClass_.preventDefault.call(this)};
_.SF.prototype.stopPropagation=function(){_.SF.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.SF.prototype.preventDefault=function(){_.SF.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var oEk="closure_listenable_"+(Math.random()*1E6|0),Bq=function(W){return!(!W||!W[oEk])};var lQb=0;var ZOD=function(W,e,t,b,m){this.listener=W;this.proxy=null;this.src=e;this.type=t;this.capture=!!b;this.handler=m;this.key=++lQb;this.removed=this.callOnce=!1},$Sy=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};Xz.prototype.add=function(W,e,t,b,m){var q=W.toString();W=this.listeners[q];W||(W=this.listeners[q]=[],this.typeCount_++);var Q=kVb(W,e,b,m);Q>-1?(e=W[Q],t||(e.callOnce=!1)):(e=new ZOD(e,this.src,q,!!b,m),e.callOnce=t,W.push(e));return e};
Xz.prototype.remove=function(W,e,t,b){W=W.toString();if(!(W in this.listeners))return!1;var m=this.listeners[W];e=kVb(m,e,t,b);return e>-1?($Sy(m[e]),_.zS(m,e),m.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var pRr=function(W,e){var t=e.type;if(!(t in W.listeners))return!1;var b=_.UL(W.listeners[t],e);b&&($Sy(e),W.listeners[t].length==0&&(delete W.listeners[t],W.typeCount_--));return b};
Xz.prototype.removeAll=function(W){W=W&&W.toString();var e=0,t;for(t in this.listeners)if(!W||t==W){for(var b=this.listeners[t],m=0;m<b.length;m++)++e,$Sy(b[m]);delete this.listeners[t];this.typeCount_--}return e};
Xz.prototype.getListener=function(W,e,t,b){W=this.listeners[W.toString()];var m=-1;W&&(m=kVb(W,e,t,b));return m>-1?W[m]:null};
Xz.prototype.hasListener=function(W,e){var t=W!==void 0,b=t?W.toString():"",m=e!==void 0;return _.kJ.some(this.listeners,function(q){for(var Q=0;Q<q.length;++Q)if(!(t&&q[Q].type!=b||m&&q[Q].capture!=e))return!0;return!1})};
var kVb=function(W,e,t,b){for(var m=0;m<W.length;++m){var q=W[m];if(!q.removed&&q.listener==e&&q.capture==!!t&&q.handler==b)return m}return-1};var yek,jpk,Cno,fQb,gES,lL,Zj,xSP,Tlk,JeD,or,OOr,nES;yek="closure_lm_"+(Math.random()*1E6|0);jpk={};Cno=0;_.p4=function(W,e,t,b,m){if(b&&b.once)return lL(W,e,t,b,m);if(Array.isArray(e)){for(var q=0;q<e.length;q++)_.p4(W,e[q],t,b,m);return null}t=nES(t);return Bq(W)?W.listen(e,t,_.tk(b)?!!b.capture:!!b,m):fQb(W,e,t,!1,b,m)};
fQb=function(W,e,t,b,m,q){if(!e)throw Error("Aa");var Q=_.tk(m)?!!m.capture:!!m,X=or(W);X||(W[yek]=X=new Xz(W));t=X.add(e,t,b,Q,q);if(t.proxy)return t;b=gES();t.proxy=b;b.src=W;b.listener=t;if(W.addEventListener)_.MZg||(m=Q),m===void 0&&(m=!1),W.addEventListener(e.toString(),b,m);else if(W.attachEvent)W.attachEvent(Tlk(e.toString()),b);else if(W.addListener&&W.removeListener)W.addListener(b);else throw Error("Ba");Cno++;return t};
gES=function(){var W=JeD,e=function(t){return W.call(e.src,e.listener,t)};
return e};
lL=function(W,e,t,b,m){if(Array.isArray(e)){for(var q=0;q<e.length;q++)lL(W,e[q],t,b,m);return null}t=nES(t);return Bq(W)?W.listenOnce(e,t,_.tk(b)?!!b.capture:!!b,m):fQb(W,e,t,!0,b,m)};
_.lj=function(W,e,t,b,m){if(Array.isArray(e))for(var q=0;q<e.length;q++)_.lj(W,e[q],t,b,m);else b=_.tk(b)?!!b.capture:!!b,t=nES(t),Bq(W)?W.unlisten(e,t,b,m):W&&(W=or(W))&&(e=W.getListener(e,t,b,m))&&Zj(e)};
Zj=function(W){if(typeof W==="number"||!W||W.removed)return!1;var e=W.src;if(Bq(e))return pRr(e.eventTargetListeners_,W);var t=W.type,b=W.proxy;e.removeEventListener?e.removeEventListener(t,b,W.capture):e.detachEvent?e.detachEvent(Tlk(t),b):e.addListener&&e.removeListener&&e.removeListener(b);Cno--;(t=or(e))?(pRr(t,W),t.typeCount_==0&&(t.src=null,e[yek]=null)):$Sy(W);return!0};
xSP=function(W,e,t,b,m){t=nES(t);b=!!b;return Bq(W)?W.getListener(e,t,b,m):W?(W=or(W))?W.getListener(e,t,b,m):null:null};
Tlk=function(W){return W in jpk?jpk[W]:jpk[W]="on"+W};
JeD=function(W,e){if(W.removed)W=!0;else{e=new _.SF(e,this);var t=W.listener,b=W.handler||W.src;W.callOnce&&Zj(W);W=t.call(b,e)}return W};
or=function(W){W=W[yek];return W instanceof Xz?W:null};
OOr="__closure_events_fn_"+(Math.random()*1E9>>>0);nES=function(W){if(typeof W==="function")return W;W[OOr]||(W[OOr]=function(e){return W.handleEvent(e)});
return W[OOr]};_.ZY=function(){_.ka.call(this);this.eventTargetListeners_=new Xz(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.QP(_.ZY,_.ka);_.ZY.prototype[oEk]=!0;_.r=_.ZY.prototype;_.r.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.r.addEventListener=function(W,e,t,b){_.p4(this,W,e,t,b)};
_.r.removeEventListener=function(W,e,t,b){_.lj(this,W,e,t,b)};
_.r.dispatchEvent=function(W){var e,t=this.parentEventTarget_;if(t)for(e=[];t;t=t.parentEventTarget_)e.push(t);t=this.actualEventTarget_;var b=W.type||W;if(typeof W==="string")W=new _.DY(W,t);else if(W instanceof _.DY)W.target=W.target||t;else{var m=W;W=new _.DY(b,t);_.kJ.extend(W,m)}m=!0;var q;if(e)for(q=e.length-1;!W.propagationStopped_&&q>=0;q--){var Q=W.currentTarget=e[q];m=MK8(Q,b,!0,W)&&m}W.propagationStopped_||(Q=W.currentTarget=t,m=MK8(Q,b,!0,W)&&m,W.propagationStopped_||(m=MK8(Q,b,!1,W)&&
m));if(e)for(q=0;!W.propagationStopped_&&q<e.length;q++)Q=W.currentTarget=e[q],m=MK8(Q,b,!1,W)&&m;return m};
_.r.disposeInternal=function(){_.ZY.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.r.listen=function(W,e,t,b){return this.eventTargetListeners_.add(String(W),e,!1,t,b)};
_.r.listenOnce=function(W,e,t,b){return this.eventTargetListeners_.add(String(W),e,!0,t,b)};
_.r.unlisten=function(W,e,t,b){return this.eventTargetListeners_.remove(String(W),e,t,b)};
_.r.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var MK8=function(W,e,t,b){e=W.eventTargetListeners_.listeners[String(e)];if(!e)return!0;e=e.concat();for(var m=!0,q=0;q<e.length;++q){var Q=e[q];if(Q&&!Q.removed&&Q.capture==t){var X=Q.listener,I=Q.handler||Q.src;Q.callOnce&&pRr(W.eventTargetListeners_,Q);m=X.call(I,b)!==!1&&m}}return m&&!b.defaultPrevented};
_.ZY.prototype.getListener=function(W,e,t,b){return this.eventTargetListeners_.getListener(String(W),e,t,b)};
_.ZY.prototype.hasListener=function(W,e){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,e)};var $r=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var spP=function(W,e){this.create_=W;this.reset_=e;this.occupants_=0;this.JSC$7804_head_=null};
spP.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$7804_head_;this.JSC$7804_head_=W.next;W.next=null}else W=this.create_();return W};
spP.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$7804_head_,this.JSC$7804_head_=W)};var hyk=function(){this.workTail_=this.workHead_=null};
hyk.prototype.add=function(W,e){var t=i3Z.get();t.set(W,e);this.workTail_?this.workTail_.next=t:this.workHead_=t;this.workTail_=t};
hyk.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var i3Z=new spP(function(){return new HOB},function(W){return W.reset()}),HOB=function(){this.next=this.scope=this.fn=null};
HOB.prototype.set=function(W,e){this.fn=W;this.scope=e;this.next=null};
HOB.prototype.reset=function(){this.next=this.scope=this.fn=null};var KfN,YJS,VhG,PnD;YJS=!1;VhG=new hyk;_.kr=function(W,e){KfN||PnD();YJS||(KfN(),YJS=!0);VhG.add(W,e)};
PnD=function(){var W=Promise.resolve(void 0);KfN=function(){W.then(zFz)}};var VKB=function(W){W.prototype.$goog_Thenable=!0},iOD=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(e){return!1}};var Ywo,zyD,USb,EEU,Aer,Nlb,t5o,rKB,FTr,ROD,n$c;_.c3=function(W,e){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.SQ)try{var t=this;W.call(e,function(b){t.resolve_(2,b)},function(b){t.resolve_(3,b)})}catch(b){this.resolve_(3,b)}};
Ywo=function(){this.next=this.context=this.JSC$7815_onRejected=this.JSC$7815_onFulfilled=this.child=null;this.always=!1};
Ywo.prototype.reset=function(){this.context=this.JSC$7815_onRejected=this.JSC$7815_onFulfilled=this.child=null;this.always=!1};
zyD=new spP(function(){return new Ywo},function(W){W.reset()});
USb=function(W,e,t){var b=zyD.get();b.JSC$7815_onFulfilled=W;b.JSC$7815_onRejected=e;b.context=t;return b};
_.aT=function(W){if(W instanceof _.c3)return W;var e=new _.c3(_.SQ);e.resolve_(2,W);return e};
_.jg=function(W){return new _.c3(function(e,t){t(W)})};
EEU=function(W,e,t){Lfh(W,e,t,null)||_.kr(_.Sz(e,W))};
_.pV=function(W){return new _.c3(function(e,t){var b=W.length,m=[];if(b)for(var q=function(u,c){b--;m[u]=c;b==0&&e(m)},Q=function(u){t(u)},X,I=0;I<W.length;I++)X=W[I],EEU(X,_.Sz(q,I),Q);
else e(m)})};
Aer=function(W){return new _.c3(function(e){var t=W.length,b=[];if(t)for(var m=function(X,I,u){t--;b[X]=I?{fulfilled:!0,value:u}:{fulfilled:!1,reason:u};t==0&&e(b)},q,Q=0;Q<W.length;Q++)q=W[Q],EEU(q,_.Sz(m,Q,!0),_.Sz(m,Q,!1));
else e(b)})};
Nlb=function(W){return new _.c3(function(e,t){var b=W.length,m=[];if(b)for(var q=function(u){e(u)},Q=function(u,c){b--;
m[u]=c;b==0&&t(m)},X,I=0;I<W.length;I++)X=W[I],EEU(X,q,_.Sz(Q,I));
else e(void 0)})};
_.UZ=function(){var W,e,t=new _.c3(function(b,m){W=b;e=m});
return new dSr(t,W,e)};
_.c3.prototype.then=function(W,e,t){return WTb(this,$r(typeof W==="function"?W:null),$r(typeof e==="function"?e:null),t)};
VKB(_.c3);t5o=function(W,e,t,b){eOB(W,USb(e||_.SQ,t||null,b))};
_.yd=function(W,e){e=$r(e);e=USb(e,e);e.always=!0;eOB(W,e);return W};
_.c3.prototype.finally=function(W){var e=this;W=$r(W);return new Promise(function(t,b){t5o(e,function(m){W();t(m)},function(m){W();
b(m)})})};
_.c3.prototype.thenCatch=function(W,e){return WTb(this,null,$r(W),e)};
_.c3.prototype.catch=_.c3.prototype.thenCatch;_.c3.prototype.cancel=function(W){if(this.state_==0){var e=new _.Lv(W);_.kr(function(){bF8(this,e)},this)}};
var bF8=function(W,e){if(W.state_==0)if(W.parent_){var t=W.parent_;if(t.callbackEntries_){for(var b=0,m=null,q=null,Q=t.callbackEntries_;Q&&(Q.always||(b++,Q.child==W&&(m=Q),!(m&&b>1)));Q=Q.next)m||(q=Q);m&&(t.state_==0&&b==1?bF8(t,e):(q?(b=q,b.next==t.callbackEntriesTail_&&(t.callbackEntriesTail_=b),b.next=b.next.next):mth(t),rKB(t,m,3,e)))}W.parent_=null}else W.resolve_(3,e)},eOB=function(W,e){W.callbackEntries_||W.state_!=2&&W.state_!=3||qVU(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=e:W.callbackEntries_=e;W.callbackEntriesTail_=e},WTb=function(W,e,t,b){var m=USb(null,null,null);
m.child=new _.c3(function(q,Q){m.JSC$7815_onFulfilled=e?function(X){try{var I=e.call(b,X);q(I)}catch(u){Q(u)}}:q;
m.JSC$7815_onRejected=t?function(X){try{var I=t.call(b,X);I===void 0&&X instanceof _.Lv?Q(X):q(I)}catch(u){Q(u)}}:Q});
m.child.parent_=W;eOB(W,m);return m.child};
_.c3.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.c3.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.c3.prototype.resolve_=function(W,e){this.state_==0&&(this===e&&(W=3,e=new TypeError("Ca")),this.state_=1,Lfh(e,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=e,this.state_=W,this.parent_=null,qVU(this),W!=3||e instanceof _.Lv||ROD(this,e)))};
var Lfh=function(W,e,t,b){if(W instanceof _.c3)return t5o(W,e,t,b),!0;if(iOD(W))return W.then(e,t,b),!0;if(_.tk(W))try{var m=W.then;if(typeof m==="function")return QmN(W,m,e,t,b),!0}catch(q){return t.call(b,q),!0}return!1},QmN=function(W,e,t,b,m){var q=!1,Q=function(I){q||(q=!0,t.call(m,I))},X=function(I){q||(q=!0,b.call(m,I))};
try{e.call(W,Q,X)}catch(I){X(I)}},qVU=function(W){W.executing_||(W.executing_=!0,_.kr(W.executeCallbacks_,W))},mth=function(W){var e=null;
W.callbackEntries_&&(e=W.callbackEntries_,W.callbackEntries_=e.next,e.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return e};
_.c3.prototype.executeCallbacks_=function(){for(var W;W=mth(this);)rKB(this,W,this.state_,this.result_);this.executing_=!1};
rKB=function(W,e,t,b){if(t==3&&e.JSC$7815_onRejected&&!e.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(e.child)e.child.parent_=null,FTr(e,t,b);else try{e.always?e.JSC$7815_onFulfilled.call(e.context):FTr(e,t,b)}catch(m){n$c.call(null,m)}zyD.put(e)};
FTr=function(W,e,t){e==2?W.JSC$7815_onFulfilled.call(W.context,t):W.JSC$7815_onRejected&&W.JSC$7815_onRejected.call(W.context,t)};
ROD=function(W,e){W.hadUnhandledRejection_=!0;_.kr(function(){W.hadUnhandledRejection_&&n$c.call(null,e)})};
n$c=bv;_.Lv=function(W){_.WZ.call(this,W)};
_.QP(_.Lv,_.WZ);_.Lv.prototype.name="cancel";var dSr=function(W,e,t){this.promise=W;this.resolve=e;this.reject=t};var jF;_.tj=function(W,e){_.ZY.call(this);this.JSC$7827_interval_=W||1;this.timerObject_=e||_.tz;this.boundTick_=(0,_.p3)(this.tick_,this);this.last_=_.RP()};
_.QP(_.tj,_.ZY);_.r=_.tj.prototype;_.r.enabled=!1;_.r.JSC$7829_timer_=null;_.r.setInterval=function(W){this.JSC$7827_interval_=W;this.JSC$7829_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7829_timer_&&this.stop()};
_.r.tick_=function(){if(this.enabled){var W=_.RP()-this.last_;W>0&&W<this.JSC$7827_interval_*.8?this.JSC$7829_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7827_interval_-W):(this.JSC$7829_timer_&&(this.timerObject_.clearTimeout(this.JSC$7829_timer_),this.JSC$7829_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.r.start=function(){this.enabled=!0;this.JSC$7829_timer_||(this.JSC$7829_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7827_interval_),this.last_=_.RP())};
_.r.stop=function(){this.enabled=!1;this.JSC$7829_timer_&&(this.timerObject_.clearTimeout(this.JSC$7829_timer_),this.JSC$7829_timer_=null)};
_.r.disposeInternal=function(){_.tj.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
jF=function(W,e,t){if(typeof W==="function")t&&(W=(0,_.p3)(W,t));else if(W&&typeof W.handleEvent=="function")W=(0,_.p3)(W.handleEvent,W);else throw Error("Da");return Number(e)>2147483647?-1:_.tz.setTimeout(W,e||0)};
_.X7e=function(W){var e=null;return(new _.c3(function(t,b){e=jF(function(){t(void 0)},W);
e==-1&&b(Error("Ea"))})).thenCatch(function(t){_.tz.clearTimeout(e);
throw t;})};var uQ=function(W){_.ka.call(this);this.streamzLogger=W;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7833_flushTimer=new _.tj(this.flushInterval);this.JSC$7833_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.w$(this,this.JSC$7833_flushTimer)};
_.Z(uQ,_.ka);uQ.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var I1k=function(W){W.JSC$7833_flushTimer.enabled||W.JSC$7833_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
uQ.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.kP(W)).filter(function(e){return e.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);a1P(W);this.invocationCount=0;this.JSC$7833_flushTimer.enabled&&this.JSC$7833_flushTimer.stop()};
uQ.prototype.addNewCounter=function(W){var e=_.$N.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new Swb(W,e))};
uQ.prototype.addNewEventMetric=function(W){var e=_.$N.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new BlD(W,e))};
var w7B=function(W,e){return W.disabledMetrics.has(e)?void 0:W.metricMap.get(e)};
uQ.prototype.JSC$7833_incrementCounter=function(W){this.JSC$7833_incrementCounterBy(W,1,_.$N.apply(1,arguments))};
uQ.prototype.JSC$7833_incrementCounterBy=function(W,e){var t=_.$N.apply(2,arguments),b=w7B(this,W);b&&b instanceof Swb&&(b.JSC$7772_incrementCounterBy(e,t),I1k(this))};
uQ.prototype.record=function(W,e){var t=_.$N.apply(2,arguments),b=w7B(this,W);b&&b instanceof BlD&&(b.record(e,t),I1k(this))};
var a1P=function(W){for(var e=0;e<W.length;e++)W[e].clear()};_.CV=function(W,e,t){t=t===void 0?{}:t;e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=W;this.metadata=t;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(_.CV,Error);_.CV.prototype.toString=function(){var W="RpcError("+(Ucz(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.uhb=_.tz.JSON.parse;_.nV=_.tz.JSON.stringify;_.pc=_.tz.JSON.parse;_.cKN=function(W){switch(W){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 vNr=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Gyr,Dty=function(){};
_.QP(Dty,_.LEG);Dty.prototype.createInstance=function(){return new XMLHttpRequest};
Gyr=new Dty;_.fV=function(W){_.ZY.call(this);this.headers=new Map;this.JSC$7842_xmlHttpFactory_=W||null;this.JSC$7842_active_=!1;this.JSC$7842_xhr_=null;this.JSC$7842_lastUri_="";this.JSC$7842_lastErrorCode_=0;this.JSC$7842_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7842_timeoutId_=null;this.responseType_="";this.JSC$7842_withCredentials_=!1};
_.QP(_.fV,_.ZY);var SVD=/^https?$/i,BRo=["POST","PUT"],oNo=[],qX2=function(W,e,t,b,m,q,Q){var X=new _.fV;oNo.push(X);e&&X.listen("complete",e);X.listenOnce("ready",X.cleanupSend_);q&&(X.timeoutInterval_=Math.max(0,q));Q&&(X.JSC$7842_withCredentials_=Q);X.send(W,t,b,m)};
_.fV.prototype.cleanupSend_=function(){this.dispose();_.UL(oNo,this)};
_.fV.prototype.send=function(W,e,t,b){if(this.JSC$7842_xhr_)throw Error("Fa`"+this.JSC$7842_lastUri_+"`"+W);e=e?e.toUpperCase():"GET";this.JSC$7842_lastUri_=W;this.JSC$7842_lastError_="";this.JSC$7842_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7842_active_=!0;this.JSC$7842_xhr_=this.createXhr();this.JSC$7842_xhr_.onreadystatechange=$r((0,_.p3)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7842_xhr_.open(e,String(W),!0),this.inOpen_=!1}catch(Q){l1v(this,Q);return}W=t||"";t=new Map(this.headers);
if(b)if(Object.getPrototypeOf(b)===Object.prototype)for(var m in b)t.set(m,b[m]);else if(typeof b.keys==="function"&&typeof b.get==="function"){m=_.R(b.keys());for(var q=m.next();!q.done;q=m.next())q=q.value,t.set(q,b.get(q))}else throw Error("Ga`"+String(b));b=Array.from(t.keys()).find(function(Q){return"content-type"==Q.toLowerCase()});
m=_.tz.FormData&&W instanceof _.tz.FormData;!_.PZ(BRo,e)||b||m||t.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e=_.R(t);for(b=e.next();!b.done;b=e.next())t=_.R(b.value),b=t.next().value,t=t.next().value,this.JSC$7842_xhr_.setRequestHeader(b,t);this.responseType_&&(this.JSC$7842_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7842_xhr_&&this.JSC$7842_xhr_.withCredentials!==this.JSC$7842_withCredentials_&&(this.JSC$7842_xhr_.withCredentials=this.JSC$7842_withCredentials_);
try{this.JSC$7842_timeoutId_&&(clearTimeout(this.JSC$7842_timeoutId_),this.JSC$7842_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7842_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7842_xhr_.send(W),this.inSend_=!1}catch(Q){l1v(this,Q)}};
_.fV.prototype.createXhr=function(){return this.JSC$7842_xmlHttpFactory_?this.JSC$7842_xmlHttpFactory_.createInstance():Gyr.createInstance()};
_.fV.prototype.timeout_=function(){typeof UjL!="undefined"&&this.JSC$7842_xhr_&&(this.JSC$7842_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7842_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var l1v=function(W,e){W.JSC$7842_active_=!1;W.JSC$7842_xhr_&&(W.inAbort_=!0,W.JSC$7842_xhr_.abort(),W.inAbort_=!1);W.JSC$7842_lastError_=e;W.JSC$7842_lastErrorCode_=5;ZFr(W);$tN(W)},ZFr=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.fV.prototype.abort=function(W){this.JSC$7842_xhr_&&this.JSC$7842_active_&&(this.JSC$7842_active_=!1,this.inAbort_=!0,this.JSC$7842_xhr_.abort(),this.inAbort_=!1,this.JSC$7842_lastErrorCode_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),$tN(this))};
_.fV.prototype.disposeInternal=function(){this.JSC$7842_xhr_&&(this.JSC$7842_active_&&(this.JSC$7842_active_=!1,this.inAbort_=!0,this.JSC$7842_xhr_.abort(),this.inAbort_=!1),$tN(this,!0));_.fV.superClass_.disposeInternal.call(this)};
_.fV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)kyP(this);else this.onReadyStateChangeEntryPoint_()};
_.fV.prototype.onReadyStateChangeEntryPoint_=function(){kyP(this)};
var kyP=function(W){if(W.JSC$7842_active_&&typeof UjL!="undefined")if(W.inSend_&&_.gu(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$7842_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$7842_lastErrorCode_=6;try{var e=_.gu(W)>2?W.JSC$7842_xhr_.statusText:""}catch(t){e=""}W.JSC$7842_lastError_=e+" ["+W.getStatus()+"]";ZFr(W)}}finally{$tN(W)}}},$tN=function(W,e){if(W.JSC$7842_xhr_){W.JSC$7842_timeoutId_&&
(clearTimeout(W.JSC$7842_timeoutId_),W.JSC$7842_timeoutId_=null);
var t=W.JSC$7842_xhr_;W.JSC$7842_xhr_=null;e||W.dispatchEvent("ready");try{t.onreadystatechange=null}catch(b){}}};
_.fV.prototype.isActive=function(){return!!this.JSC$7842_xhr_};
_.fV.prototype.isComplete=function(){return _.gu(this)==4};
_.fV.prototype.isSuccess=function(){var W=this.getStatus(),e;if(!(e=vNr(W))){if(W=W===0)W=Orh(String(this.JSC$7842_lastUri_)),W=!SVD.test(W);e=W}return e};
_.gu=function(W){return W.JSC$7842_xhr_?W.JSC$7842_xhr_.readyState:0};
_.r=_.fV.prototype;_.r.getStatus=function(){try{return _.gu(this)>2?this.JSC$7842_xhr_.status:-1}catch(W){return-1}};
_.r.getResponseText=function(){try{return this.JSC$7842_xhr_?this.JSC$7842_xhr_.responseText:""}catch(W){return""}};
_.r.getResponse=function(){try{if(!this.JSC$7842_xhr_)return null;if("response"in this.JSC$7842_xhr_)return this.JSC$7842_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7842_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7842_xhr_)return this.JSC$7842_xhr_.mozResponseArrayBuffer}return null}catch(W){return null}};
_.r.getAllResponseHeaders=function(){return this.JSC$7842_xhr_&&_.gu(this)>=2?this.JSC$7842_xhr_.getAllResponseHeaders()||"":""};
_.r.getLastError=function(){return typeof this.JSC$7842_lastError_==="string"?this.JSC$7842_lastError_:String(this.JSC$7842_lastError_)};var QbL=function(){};
QbL.prototype.send=function(W,e,t){e=e===void 0?function(){}:e;
t=t===void 0?function(){}:t;
qX2(W.url,function(b){b=b.target;b.isSuccess()?e(b.getResponseText()):t(b.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
QbL.prototype.getTransmissionType=function(){return 1};var p7v=function(W,e){this.poA=W;this.event=e;this.startTime=cX()};
p7v.prototype.done=function(){this.poA.iI(this.event,cX()-this.startTime)};
var TD=function(){q3.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.Z(TD,q3);var Jn=function(W,e,t){var b=cX();e=e();W.iI(t,cX()-b);return e},u0Q=function(){TD.apply(this,arguments)};
_.Z(u0Q,TD);_.r=u0Q.prototype;_.r.aoq=function(){};
_.r.l1=function(){};
_.r.iI=function(){};
_.r.logError=function(){};
_.r.yv=function(){};
_.r.y4J=function(){};
_.r.r4J=function(){};
_.r.eO3=function(){};
_.r.rNm=function(){};
var yKy=function(W){TD.call(this);var e=this;this.mS=W;this.TEST_ONLY={fpU:function(){return e.mS},
getExperimentIds:function(){return e.mS.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void e.mS.dispose()})};
_.Z(yKy,TD);_.r=yKy.prototype;_.r.update=function(W){this.mS.dispose();this.mS=W};
_.r.l1=function(W){this.mS.l1(W)};
_.r.iI=function(W,e){this.mS.iI(W,e)};
_.r.logError=function(W){this.mS.logError(W)};
_.r.yv=function(){this.mS.yv()};
_.r.y4J=function(W){this.mS.y4J(W)};
_.r.r4J=function(W){this.mS.r4J(W)};
_.r.eO3=function(W){this.mS.eO3(W)};
_.r.rNm=function(W){this.mS.rNm(W)};
_.r.aoq=function(W){this.mS.aoq(W)};
var jmb=function(W,e){_.ka.call(this);var t=this;this.callback=W;this.brt=e;this.gaj=-e;this.addOnDisposeCallback(function(){return void clearTimeout(t.timer)})};
_.Z(jmb,_.ka);var CFU=function(W){if(W.timer===void 0){var e=Math.max(0,W.gaj+W.brt-cX());W.timer=setTimeout(function(){try{W.callback()}finally{W.gaj=cX(),W.timer=void 0}},e)}},nNv=function(W,e){TD.call(this);
this.metrics=W;this.xM=e};
_.Z(nNv,TD);_.r=nNv.prototype;_.r.aoq=function(W){this.metrics.wnD.record(W,this.xM)};
_.r.l1=function(W){this.metrics.eventCount.increment(W,this.xM)};
_.r.iI=function(W,e){this.metrics.cHK.record(e,W,this.xM)};
_.r.logError=function(W){this.metrics.errorCount.increment(W,this.xM)};
_.r.y4J=function(W){this.metrics.ngO.increment(W,this.xM)};
_.r.r4J=function(W){this.metrics.x7d.increment(W,this.xM)};
_.r.eO3=function(W){this.metrics.zrO.increment(W,this.xM)};
var vX=function(W,e){e=e===void 0?[]:e;var t={xM:W.xM||"_",hT8:W.hT8||[],o2e:W.o2e|0,destinationUrl:W.destinationUrl,jDJ:W.jDJ||function(){},
sO:W.sO||function(q,Q){return wf9(q,Q,t.jDJ,t.destinationUrl)}},b=t.sO("49",t.hT8.concat(e));
nNv.call(this,m5K(b),t.xM);var m=this;this.TEST_ONLY={getExperimentIds:function(){return m.options.hT8.concat(m.hEb).sort(function(q,Q){return q-Q})}};
this.options=t;this.service=b;this.uEI=!W.sO;this.flushDebouncer=new jmb(function(){return void m.service.snapshotAndFlush()},t.o2e);
this.addOnDisposeCallback(function(){m.flushDebouncer.dispose();m.uEI&&m.service.dispose()});
(this.hEb=e.slice()).sort(_.rB)};
_.Z(vX,nNv);vX.prototype.rNm=function(W){var e=this;W=W.slice();W.sort(_.rB);_.Q8(W,this.hEb)||(this.flushDebouncer.dispose(),this.uEI&&this.service.dispose(),this.service=this.options.sO("49",this.options.hT8.concat(W)),this.flushDebouncer=new jmb(function(){return void e.service.snapshotAndFlush()},this.options.o2e),this.metrics=m5K(this.service),this.hEb=W)};
vX.prototype.yv=function(){CFU(this.flushDebouncer)};var cgD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(cgD,_.Ow);_.v8Z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(_.v8Z,_.Ow);var dk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,0,dk.messageId)};
_.Z(dk,_.Ow);var f1e=_.W7(dk);dk.messageId="bfkj";var T$S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(T$S,_.Ow);var gNB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gNB,_.Ow);var TRr=_.e5(gNB);_.Xu=function(){var W=this;this.promise=new Promise(function(e,t){W.resolve=e;W.reject=t})};_.xr=function(W){_.ka.call(this);var e=this;this.lYM=Math.floor(Math.random()*200);this.t08=new gNB;if("challenge"in W&&f1e(W.challenge)){var t=_.T9(W.challenge,4,void 0,Mo);var b=_.T9(W.challenge,5,void 0,Mo);_.T9(W.challenge,7,void 0,Mo)&&(this.t08=TRr(_.T9(W.challenge,7,void 0,Mo)))}else t=W.program,b=W.globalName;this.addOnDisposeCallback(function(){var k,n,f;return _.F(function(M){if(M.nextAddress==1)return _.a(M,e.fOJ,2);k=M.yieldResult;n=k.d5P;(f=n)==null||f();_.u8(M)})});
this.fB=gKQ(W.nS||{},this.t08,W.ra1);_.w$(this,this.fB);var m=new _.Xu;this.fOJ=m.promise;this.fB.l1("t");var q=this.fB.share(),Q=new p7v(q,"t"),X=function(k,n,f,M){if(!e.fB.isDisposed()){var K="k";n?K="h":f&&(K="u");K!=="k"?M!==0&&(e.fB.l1(K),e.fB.iI(K,k)):e.lYM<=0?(e.fB.l1(K),e.fB.iI(K,k),e.lYM=Math.floor(Math.random()*200)):e.lYM--}},I=function(k,n,f,M){Promise.resolve().then(function(){Q.done();
q.yv();q.dispose();m.resolve({aWV:k,d5P:n,ajt:f,gsD:M})})};
if(!_.tz[b])throw this.fB.logError(25),Error("Ha");if(!_.tz[b].a)throw this.fB.logError(26),Error("Ia");try{var u=_.tz[b].a;b=[];for(var c=[],v=JES(this.t08),D=0;D<v.length;D++)b.push(v[D]),c.push(1);var B=xcS(this.t08);for(v=0;v<B.length;v++)b.push(B[v]),c.push(2);this.vlh=_.R(u(t,I,!0,W.bW0,X,[b,c],_.T9(this.t08,5))).next().value;this.bde=m.promise.then(function(){})}catch(k){throw this.fB.logError(28),k;
}};
_.Z(_.xr,_.ka);_.xr.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ja");this.fB.l1("n");var e=this.fB.share();return this.fOJ.then(function(t){var b=t.aWV;return new Promise(function(m){var q=new p7v(e,"n");b(function(Q){q.done();e.aoq(Q.length);e.yv();e.dispose();m(Q)},[W.c6,
W.gvW,W.fnK,W.eNq])})})};
_.JK8=function(W,e){if(W.isDisposed())throw Error("Ja");W.fB.l1("n");var t=Jn(W.fB,function(){return W.vlh([e.c6,e.gvW,e.fnK,e.eNq])},"n");
W.fB.aoq(t.length);W.fB.yv();return t};
_.xr.prototype.hIm=function(W){this.fOJ.then(function(e){var t;(t=e.ajt)==null||t(W)})};
_.xr.prototype.wSq=function(W,e){return this.fOJ.then(function(t){var b;return(b=t.gsD)==null?void 0:b(W,e,!1)})};
_.xr.prototype.wlS=function(){return this.fB.share()};var xtN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(xtN,_.Ow);var tIQ=_.W7(xtN);var OFy=function(){this.hhP={};this.iTq=null},M5o=function(){OFy.instance||(OFy.instance=new OFy);
return OFy.instance},hOr=function(W,e){return smh(W,_.mx(e,cgD,1,Mo),_.mx(e,_.v8Z,2,Mo),_.T9(e,3,void 0,Mo))},smh=function(W,e,t,b){if(!e&&!t)return Promise.resolve();
if(!b)return MCS(e,t);var m;(m=W.hhP)[b]||(m[b]=new Promise(function(q,Q){MCS(e,t).then(function(){W.iTq=b;q()},function(X){delete W.hhP[b];
Q(X)})}));
return W.hhP[b]};var HFU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(HFU,_.Ow);var KTo=function(W,e){return _.WN(W,1,e)},PFb=function(W,e){return _.WN(W,2,e)};var OX=function(W){_.ka.call(this);var e=this;this.options=W;this.dcM=new _.Xu;this.bde=this.dcM.promise;this.dwM=new _.Xu;this.zZi=1;this.mHb=new _.Xu;this.uy6=[];this.qv7=W.qv7||function(){};
this.odV=new yKy(gKQ(W.nS||{}));V5b(this,W.nj,W.koV,W.p2g,W.cTD,Object.assign({},iFP,W.gO7||{}));this.addOnDisposeCallback(function(){return void YVe(e)})};
_.Z(OX,_.ka);OX.prototype.snapshot=function(W){var e=this;return _.F(function(t){switch(t.nextAddress){case 1:if(e.isDisposed())throw Error("Ja");if(e.m6||e.nWj){t.jumpTo(2);break}return _.a(t,e.dwM.promise,2);case 2:if(!e.m6){t.jumpTo(4);break}return _.a(t,e.m6.snapshot(W),5);case 5:return t.return(t.yieldResult);case 4:throw e.nWj;}})};
var zOS=function(W){var e;return _.F(function(t){if(W.isDisposed())throw Error("Ja");(e=W.wN)!=null&&(e.endTimeMs=0,e.resolver(1));return _.a(t,W.mHb.promise,0)})},YVe=function(W){W.nWj=Error("La");
W.dwM.resolve();O3c(W.dcM.promise);W.dcM.reject(Error("La"));W.odV.dispose();Promise.all(W.uy6).then(function(){var t;return _.F(function(b){(t=W.m6)==null||t.dispose();W.m6=void 0;_.u8(b)})});
W.uy6=[];var e;(e=W.wN)!=null&&(e.endTimeMs=0,e.resolver(1));O3c(W.mHb.promise);W.mHb.reject(Error("La"))};
OX.prototype.hIm=function(W){var e,t;(e=this.m6)==null||(t=e.hIm)==null||t.call(e,W)};
OX.prototype.wSq=function(W,e){var t,b,m;return(m=(t=this.m6)==null?void 0:(b=t.wSq)==null?void 0:b.call(t,W,e))!=null?m:Promise.resolve()};
var UtN=function(W,e){var t=W.qv7;W.qv7=function(){t();e()}},LTZ=function(W,e){W.isDisposed()||(W.m6=e,W.odV.update(e.wlS()),W.dwM.resolve(),W.dcM.resolve(void 0),W.qv7())};
OX.prototype.handleError=function(W){if(!this.isDisposed()){this.nWj=W;this.dwM.resolve();var e,t;(t=(e=this.options).x8K)==null||t.call(e,W)}};
var ENh=function(W,e){e&&(Promise.all(W.uy6).then(function(){return void e.dispose()}),W.uy6=[])},M3=function(W,e){W.zZi=e;
var t,b;(b=(t=W.options).wgE)==null||b.call(t,e)},AKB=function(W){W.isDisposed()||(W.mHb.resolve(),W.mHb=new _.Xu)},V5b=function(W,e,t,b,m,q){b=b===void 0?M5o():b;
m=m===void 0?Promise.resolve(void 0):m;var Q,X,I,u,c,v,D,B,k,n,f,M;_.F(function(K){switch(K.nextAddress){case 1:return _.a(K,0,3);case 3:X=null;if(!Q){K.jumpTo(6);break}M3(W,7);_.Qh(K,7);return _.a(K,lQ(Q.snapshot({}),q.lvM,function(){return Promise.resolve("E:CTO")}),9);
case 9:X=K.yieldResult;_.Hi(K,6);break;case 7:_.w9(K),X="E:UCE";case 6:I=void 0,u=Q?q.dqd:q.fzK,c=new Fz(u,q.lzy,q.rH2,q.kjt),v=1;case 10:if(!(v<=q.maxAttempts)){K.jumpTo(12);break}if(v===1){K.jumpTo(13);break}M3(W,0);W.wN=new NRD(c.getValue(),q.e3V,q.pna);return _.a(K,W.wN.promise,14);case 14:D=K.yieldResult,W.wN=void 0,D===1?(v=1,c.reset()):QpP(c);case 13:_.Qh(K,15);B=void 0;if(t){B=t;K.jumpTo(17);break}M3(W,5);k=b.iTq;return _.a(K,lQ(dtD(e,k,X),q.rLM,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:B=K.yieldResult;case 17:return M3(W,3),_.a(K,lQ(hOr(b,B),q.ef2,function(){return Promise.reject(Error("Na"))}),19);
case 19:return M3(W,8),_.a(K,m,20);case 20:return n=new _.xr({challenge:B,nS:W.options.nS,bW0:W.options.bW0}),_.a(K,lQ(n.bde,q.a2D,function(){return Promise.reject(Error("Oa"))}),21);
case 21:I=n;K.jumpTo(12);break;case 15:f=_.w9(K),W.handleError(f),AKB(W);case 11:v++;K.jumpTo(10);break;case 12:if(W.isDisposed()){K.jumpTo(5);break}I&&(t=void 0,ENh(W,Q),Q=I,LTZ(W,I),AKB(W));M3(W,2);W.wN=new NRD(q.cfK,q.e3V,q.pna);return _.a(K,W.wN.promise,22);case 22:W.wN=void 0;if(W.isDisposed()){K.jumpTo(5);break}K.jumpTo(3);break;case 5:(M=Q)==null||M.dispose(),_.u8(K)}})};
OX.prototype.wlS=function(){return this.odV.share()};
var iFP={cfK:432E5,e3V:3E5,pna:10,lvM:1E4,rLM:3E4,ef2:3E4,a2D:6E4,fzK:1E3,dqd:6E4,lzy:6E5,rH2:.25,kjt:2,maxAttempts:10},NRD=function(W,e,t){var b=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(q){b.resolver=q});
var m=function(){var q=b.endTimeMs-Date.now();q<=t?b.resolver(0):setTimeout(m,Math.min(q,e))};
m()};var Wkr,HhL=(Wkr=Math.imul)!=null?Wkr:function(W,e){return W*e|0},ZA=[196,
200,224,18],sX=function(W,e,t){t=t===void 0?[]:t;this.maxItems=W;this.bK=e===void 0?0:e;this.h0=t},eey=function(W){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!e)return new sX(W);var t=e.split(",");if(t.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new sX(W);e=t.slice(1);e.length===1&&e[0]===""&&(e=[]);t=Number(t[0]);return isNaN(t)||t<0||t>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new sX(W)):new sX(W,t,e)};
sX.prototype.serialize=function(){return String(this.bK)+","+this.h0.join()};
sX.prototype.insert=function(W,e){var t=void 0;if(this.h0[this.bK]!==W){var b=this.h0.indexOf(W);b!==-1?(this.h0.splice(b,1),b<this.bK&&this.bK--,this.h0.splice(this.bK,0,W)):(t=this.h0[this.bK],this.h0[this.bK]=W)}this.bK=(this.bK+1)%this.maxItems;W=sbG("iU5q-!O9@$",this.serialize());t&&W&&e(t);return W};
var td8=function(W,e){this.iNm=e;try{var t=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(b){t=!1}t&&(this.index=eey(W))},bPe=function(W,e,t,b,m){var q=W.index?Jn(W.iNm,function(){return ihR(W.index,Ppg(e),t,b,m)},"W"):"u";
W.iNm.eO3(q)},mYS=function(W,e,t){var b=_.R(W.index?Jn(W.iNm,function(){return Y0G(Ppg(e),t)},"R"):["u"]),m=b.next().value;
b=b.next().value;W.iNm.r4J(m);return b};var rGv={toString:function(W){var e=[],t=0;W-=-2147483648;e[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)e[t++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return e.join("")}};var QGU=function(W){W=qdy(W);for(var e=2654435769,t=2654435769,b=314159265,m=W.length,q=m,Q=0,X=function(){e-=t;e-=b;e^=b>>>13;t-=b;t-=e;t^=e<<8;b-=e;b-=t;b^=t>>>13;e-=t;e-=b;e^=b>>>12;t-=b;t-=e;t^=e<<16;b-=e;b-=t;b^=t>>>5;e-=t;e-=b;e^=b>>>3;t-=b;t-=e;t^=e<<10;b-=e;b-=t;b^=t>>>15};q>=12;q-=12,Q+=12)e+=Reb(W,Q),t+=Reb(W,Q+4),b+=Reb(W,Q+8),X();
b+=m;switch(q){case 11:b+=W[Q+10]<<24;case 10:b+=W[Q+9]<<16;case 9:b+=W[Q+8]<<8;case 8:t+=W[Q+7]<<24;case 7:t+=W[Q+6]<<16;case 6:t+=W[Q+5]<<8;case 5:t+=W[Q+4];case 4:e+=W[Q+3]<<24;case 3:e+=W[Q+2]<<16;case 2:e+=W[Q+1]<<8;case 1:e+=W[Q]}X();return rGv.toString(b)},qdy=function(W){for(var e=[],t=0;t<W.length;t++)e.push(W.charCodeAt(t));
return e},Reb=function(W,e){return W[e]+(W[e+1]<<8)+(W[e+2]<<16)+(W[e+3]<<24)};var Fk8,hn=function(W){_.ka.call(this);this.i3=W;this.man=new _.Xu;this[Fk8]=this.dispose};
_.Z(hn,_.ka);var Xae=function(W,e){var t=setTimeout(function(){W.man.resolve()},e);
W.addOnDisposeCallback(function(){return void clearTimeout(t)})};
hn.prototype.i8=function(W,e){var t=this.tI(W);e==null||e(t);return Jn(this.i3,function(){return _.eK(t,2)},this.jwe)};
var IVS=function(W,e,t,b){return Jn(W.i3,function(){return t?W.i8(e,b):W.tI(e,b)},W.a1)};
Fk8=Symbol.dispose;var aVN=function(W,e,t,b){hn.call(this,W);this.sMI=e;this.quK=t;this.a1="m";this.jwe="x";this.pi0=0;Xae(this,b)};
_.Z(aVN,hn);aVN.prototype.tI=function(W,e){var t=this;this.i3.l1(this.a1);++this.pi0>=this.quK&&this.man.resolve();var b=W();W=Jn(this.i3,function(){return t.sMI(b)},"C");
if(W===void 0)throw new m6(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new m6(18,"ODM:Invalid");e==null||e(W);return W};
var wae=function(W,e,t){hn.call(this,W);this.kea=e;this.a1="f";this.jwe="z";Xae(this,t)};
_.Z(wae,hn);wae.prototype.tI=function(){return this.kea};
var uYh=function(W,e,t){hn.call(this,W);this.lnd=e;this.a1="w";this.jwe="z";Xae(this,t)};
_.Z(uYh,hn);uYh.prototype.tI=function(){var W=this;return Jn(this.i3,function(){return _.Xb(W.lnd)},"d")};
uYh.prototype.i8=function(){return this.lnd};
var cGN=function(W,e){hn.call(this,W);this.error=e;this.a1="e";this.jwe="y"};
_.Z(cGN,hn);var vP8=function(W,e){var t=(e(W.error.message)+":"+e(W.error.stack)).substring(0,2048);e=t.length+1;t=ziR(t);var b=new Uint8Array(4+t.length);b.set([42,e&127|128,e>>7,W.error.code]);b.set(t,4);return b};
cGN.prototype.tI=function(){if(this.uii)return this.uii;this.uii=vP8(this,function(W){return"_"+QGU(W)});
return vP8(this,function(W){return W})};
var GEv=function(W,e,t){hn.call(this,W);this.oF0=e;this.clientState=t;this.a1="S";this.jwe="q"};
_.Z(GEv,hn);GEv.prototype.tI=function(){var W=Math.floor(Date.now()/1E3),e=[Math.random()*255,Math.random()*255],t=e.concat([this.oF0&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+t.length);W[0]=34;W[1]=t.length;W.set(t,2);t=W.subarray(2);for(var b=e=e.length;b<t.length;++b)t[b]^=t[b%e];this.i3.y4J(this.clientState);return W};var DYB={ezM:3E4,b4n:2E4},Hq=function(W){_.ka.call(this);var e=this;this.vjW=new _.Xu;this.aeM=0;this.iK=void 0;this.state=2;this.iq=W.iq;this.nj=W.nj;this.gO7=Object.assign({},DYB,W.gO7||{});this.xS=W.iq.wlS();var t;this.onError=(t=W.onError)!=null?t:function(){};
this.tMf=W.tMf||!1;if(SdB(W)){var b=this.iq;this.cCb=function(){return zOS(b).catch(function(Q){Q=e.reportError(new m6(e.u7?20:32,"TRG:Disposed",Q));e.iK=Q;var X;(X=e.u7)==null||X.dispose();e.u7=void 0;e.vjW.reject(Q)})};
UtN(b,function(){return void B9Z(e)});
b.zZi===2&&B9Z(this)}else this.cCb=W.eWP,B9Z(this);var m=this.xS.share();m.l1("o");var q=new p7v(m,"o");this.vjW.promise.then(function(){q.done();m.yv();m.dispose()},function(){return void m.dispose()});
this.addOnDisposeCallback(function(){e.u7?(e.u7.dispose(),e.u7=void 0):e.iK?e.xS.yv():(e.iK=e.reportError(new m6(32,"TNP:Disposed")),e.xS.yv(),e.vjW.reject(e.iK))});
_.w$(this,this.xS)};
_.Z(Hq,_.ka);Hq.prototype.ttW=function(){return this.vjW.promise};
var oP8=function(W,e){if(!(e instanceof m6))if(e instanceof _.CV){var t=Error(e.toString());t.stack=e.stack;e=new m6(11,"EBH:Error",t)}else e=new m6(12,"BSO:Unknown",e);return W.reportError(e)},B9Z=function(W){var e,t,b,m,q,Q,X,I,u,c,v,D,B,k,n;
return _.F(function(f){switch(f.nextAddress){case 1:e=void 0;W.aeM++;t=new _.Xu;W.iq instanceof OX&&W.iq.uy6.push(t.promise);if(!W.tMf){f.jumpTo(2);break}b=new _.Xu;setTimeout(function(){return void b.resolve()});
return _.a(f,b.promise,2);case 2:return m=W.xS.share(),_.Qh(f,4,5),W.state=5,q={},Q=[],_.a(f,lQ(W.iq.snapshot({c6:q,fnK:Q}),W.gO7.b4n,function(){return Promise.reject(new m6(15,"MDA:Timeout"))}),7);
case 7:X=f.yieldResult;if(W.isDisposed())throw new m6(W.u7?20:32,"MDA:Disposed");I=Q[0];W.state=6;return _.a(f,lQ(lVS(W.nj,X),W.gO7.ezM,function(){return Promise.reject(new m6(10,"BWB:Timeout"))}),8);
case 8:u=f.yieldResult;if(W.isDisposed())throw new m6(W.u7?20:32,"BWB:Disposed");W.state=7;e=Jn(m,function(){var K=ZP8(W,u,t,I);K.man.promise.then(function(){return void W.cCb()});
return K},"i");
case 5:_.FY(f);m.dispose();_.aG(f,6);break;case 4:c=_.w9(f);(v=e)==null||v.dispose();if(!W.iK){D=oP8(W,c);t.resolve();var M;if(M=W.iq instanceof OX&&W.aeM<2)a:if(c instanceof m6)M=c.code!==32&&c.code!==20&&c.code!==10;else{if(c instanceof _.CV)switch(c.code){case 2:case 13:case 14:case 4:break;default:M=!1;break a}M=!0}if(M)return B=(1+Math.random()*.25)*(W.u7?6E4:1E3),k=setTimeout(function(){return void W.cCb()},B),W.addOnDisposeCallback(function(){return void clearTimeout(k)}),f.return();
W.iK=D}m.logError(W.u7?13:14);W.vjW.reject(W.iK);return f.return();case 6:W.state=8,W.aeM=0,(n=W.u7)==null||n.dispose(),W.u7=e,W.vjW.resolve(),_.u8(f)}})},ZP8=function(W,e,t,b){var m=adg(e,2)*1E3;
if(m<=0)throw new m6(31,"TTM:Invalid");if(_.T9(e,4))return new uYh(W.xS,_.T9(e,4),m);if(!adg(e,3))return new wae(W.xS,LBG(_.$2(e,1)),m);if(!b)throw new m6(4,"PMD:Undefined");b=b(LBG(_.$2(e,1)));if(!(b instanceof Function))throw new m6(16,"APF:Failed");W.t5A=Math.floor((Date.now()+m)/1E3);W=new aVN(W.xS,b,adg(e,3),m);W.addOnDisposeCallback(function(){return void t.resolve()});
return W};
Hq.prototype.tI=function(W){return $Y8(this,Object.assign({},W),!1)};
Hq.prototype.i8=function(W){return $Y8(this,Object.assign({},W),!0)};
Hq.prototype.vqq=function(W){if(W>150)return!1;try{return this.cache=new td8(W,this.xS),!0}catch(e){return this.reportError(new m6(22,"GBJ:init",e)),!1}};
Hq.prototype.reportError=function(W){this.xS.logError(W.code);this.onError(W);return W};
var kEk=function(W,e){e=e instanceof m6?e:new m6(5,"TVD:error",e);return W.reportError(e)},$Y8=function(W,e,t){try{if(W.isDisposed())throw new m6(21,"BNT:disposed");
if(!W.u7&&W.iK)throw W.iK;var b,m;return(m=(b=paN(W,e,t))!=null?b:yGy(W,e,t))!=null?m:jGU(W,e,t)}catch(q){if(!e.dgI)throw kEk(W,q);return C8Z(W,t,q)}},paN=function(W,e,t){var b;
return(b=W.u7)==null?void 0:IVS(b,function(){return nPP(W,e)},t,function(m){var q;
if(W.u7 instanceof aVN&&((q=e.bx)==null?0:q.i29))try{var Q;(Q=W.cache)==null||bPe(Q,nPP(W,e),m,e.bx.bx8,W.t5A-120)}catch(X){W.reportError(new m6(24,"ELX:write",X))}})},yGy=function(W,e,t){var b;
if((b=e.bx)!=null&&b.oPi)try{var m,q=(m=W.cache)==null?void 0:mYS(m,nPP(W,e),e.bx.bx8);return q?t?Jn(W.xS,function(){return _.eK(q,2)},"a"):q:void 0}catch(Q){W.reportError(new m6(23,"RXO:read",Q))}},jGU=function(W,e,t){var b={stack:[],
error:void 0,hasError:!1};try{if(!e.kIq)throw new m6(29,"SDF:notready");return IVS(WBK(b,new GEv(W.xS,0,W.state)),function(){return nPP(W,e)},t)}catch(m){b.error=m,b.hasError=!0}finally{e5R(b)}},C8Z=function(W,e,t){var b={stack:[],
error:void 0,hasError:!1};try{var m=kEk(W,t);return IVS(WBK(b,new cGN(W.xS,m)),function(){return[]},e)}catch(q){b.error=q,b.hasError=!0}finally{e5R(b)}},nPP=function(W,e){return e.w43?e.w43:e.c6?Jn(W.xS,function(){return e.w43=ziR(e.c6)},"c"):[]},SdB=function(W){return Kr(function(e){if(!rP(e))return!1;
for(var t=_.R(Object.entries(W)),b=t.next();!b.done;b=t.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;if(!(b in e)){if(m.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!m(e[b]))return!1}return!0})}({iq:function(W){return Kr(function(e){return e instanceof W})}(OX)},"");var fVN=function(){var W=_.qu();this.JSC$7960_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",mE("cookie_enabled"),mE("cookie_3p_enabled"),_.qc("browser"))};
fVN.prototype.increment=function(W,e,t){this.JSC$7960_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,e,t)};
var wlc=function(){var W=_.qu();this.JSC$7984_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",r$("tick"),mE("from_st_cookie"))};
wlc.prototype.increment=function(W,e){this.JSC$7984_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,e)};
var gPh=function(){var W=_.qu();this.JSC$7990_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.qc("status"))};
gPh.prototype.increment=function(W){this.JSC$7990_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var T9S=function(){var W=_.qu();this.JSC$7993_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.qc("stage"),mE("is_using_ytd_player"),mE("has_expandable_tiles"))};
T9S.prototype.increment=function(W,e,t){this.JSC$7993_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,e,t)};
var JGh=function(){var W=_.qu();this.JSC$7996_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.qc("check_status"))};
JGh.prototype.increment=function(W){this.JSC$7996_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var xYZ=function(){var W=_.qu();this.JSC$7999_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.qc("sig"),r$("de"))};
xYZ.prototype.increment=function(W,e){this.JSC$7999_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,e)};
var OPv=function(){var W=_.qu();this.JSC$8002_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.qc("sig"),r$("de"))};
OPv.prototype.increment=function(W,e){this.JSC$8002_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,e)};
_.Md8=function(){var W=_.qu();this.JSC$8005_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.qc("action"))};
_.Md8.prototype.increment=function(W){this.JSC$8005_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var KV=window;var sGk=(new Date).getTime();var hey=function(W){this.servicePromise_=W;W.then((0,_.p3)(function(){},this),function(){},this)},HPZ=function(W,e,t){W.servicePromise_.then(function(b){var m=b[e];
if(!m)throw Error("Pa`"+e);return m.apply(b,t)})},Vdr=function(W,e,t){for(var b=Array(arguments.length-2),m=2;m<arguments.length;m++)b[m-2]=arguments[m];
m=Kkk(W,e).then(function(q){return q.apply(null,b)},function(q){q=Error("Qa`"+e+"`"+W,{cause:q});
delete P8S[e];return _.jg(q)});
return new hey(m)},P8S={},Kkk=function(W,e){var t=P8S[e];
if(t)return t;t=(t=_.HO(e))?_.aT(t):(new _.c3(function(b,m){var q=(new $V(document)).createElement("SCRIPT");q.async=!0;_.H7(q,_.Fh(PvN(W)));q.onload=q.onreadystatechange=function(){q.readyState&&q.readyState!="loaded"&&q.readyState!="complete"||b()};
q.onerror=function(Q){m(Error("Ra`"+e+"`"+W,{cause:Q}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(q)})).then(function(){var b=_.HO(e);
if(!b)throw Error("Sa`"+e+"`"+W);return b});
return P8S[e]=t};var iPe={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},zeh=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=U5Z(function(){return _.F(function(e){if(e.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?e.return(Promise.resolve()):_.a(e,YdS(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.u8(e)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var e=_.R(W.rsaForList),t=e.next();!t.done;t=e.next()){t=t.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(t))}catch(b){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
zeh.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var YdS=function(W){var e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:e=_.R(Object.values(iPe)),t=e.next();case 2:if(t.done){q.jumpTo(0);break}b=t.value;_.Qh(q,5);return _.a(q,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:b}),7);case 7:m=q.yieldResult;m.state!=="granted"&&W.rsaForList.push(b);_.Hi(q,3);break;case 5:_.w9(q);q.jumpTo(0);break;case 3:t=e.next(),q.jumpTo(2)}})};(new zeh).initialize();var UYb=function(W){this.JSC$8019_loader_=W};
UYb.prototype.startHelp=function(W){HPZ(this.JSC$8019_loader_,"startHelp",arguments)};
UYb.prototype.JSC$8021_loadChatSupport=function(W){HPZ(this.JSC$8019_loader_,"loadChatSupport",arguments)};
var EPy=function(W,e){e=e||{};W=Vdr(Lky,"help.service.Lazy.create",W,{apiKey:e.apiKey||e.apiKey,asxUiUri:e.asxUiUri||e.asxUiUri,environment:e.environment||e.environment,flow:e.flow||e.flow,frdProductData:e.frdProductData||e.frdProductData,frdProductDataSerializedJspb:e.frdProductDataSerializedJspb||e.frdProductDataSerializedJspb,helpCenterPath:e.helpCenterPath||e.helpCenterPath,locale:e.locale||e.locale||"en-US".replace(/-/g,"_"),nonce:e.nonce||e.nonce,productData:e.productData||e.productData,receiverUri:e.receiverUri||
e.receiverUri,renderApiUri:e.renderApiUri||e.renderApiUri,theme:e.theme||e.theme,window:e.window||e.window});return new UYb(W)},Lky=new Om(ljD,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var AGb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(AGb,_.Ow);var N9y=_.e5(AGb);_.dYN=new function(W,e,t,b){this.configType=W;this.flagName=t;this.defaultValue=b;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var ePo=function(){this.retriever=_.ee().resolve(W_y)};EKR(Node);EKR(Element);var tHb=EKR(HTMLElement);EKR(SVGElement);var b8Z,mLv,ij,rDU;b8Z=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
mLv=function(W){return W.classList?W.classList:b8Z(W).match(/\S+/g)||[]};
_.Pq=function(W,e){typeof W.className=="string"?W.className=e:W.setAttribute&&W.setAttribute("class",e)};
_.Vd=function(W,e){return W.classList?W.classList.contains(e):_.PZ(mLv(W),e)};
_.Nk=function(W,e){if(W.classList)W.classList.add(e);else if(!_.Vd(W,e)){var t=b8Z(W);_.Pq(W,t+(t.length>0?" "+e:e))}};
ij=function(W,e){if(W.classList)Array.prototype.forEach.call(e,function(m){_.Nk(W,m)});
else{var t={};Array.prototype.forEach.call(mLv(W),function(m){t[m]=!0});
Array.prototype.forEach.call(e,function(m){t[m]=!0});
e="";for(var b in t)e+=e.length>0?" "+b:b;_.Pq(W,e)}};
_.ED=function(W,e){W.classList?W.classList.remove(e):_.Vd(W,e)&&_.Pq(W,Array.prototype.filter.call(mLv(W),function(t){return t!=e}).join(" "))};
rDU=function(W,e){W.classList?Array.prototype.forEach.call(e,function(t){_.ED(W,t)}):_.Pq(W,Array.prototype.filter.call(mLv(W),function(t){return!_.PZ(e,t)}).join(" "))};var qEh=function(W){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},F_P=function(W,e){RPk(W);
var t=document.createElement("div"),b;(b=e.parentNode)==null||b.insertBefore(t,e);t.tabIndex=0;t.id="fc-focus-trap-pre-div";t=document.createElement("div");var m;(m=e.parentNode)==null||m.insertBefore(t,e.nextSibling);t.tabIndex=0;t.id="fc-focus-trap-post-div";var q=QDe(W,e),Q=QDe(W,e,!0);q&&Q&&(W.focusChangeHandler=function(){var X=W.document.activeElement;if(X)if(_.PX(e,X))W.previouslyFocusedElement=X;else if(X===W.document.activeElement)switch(W.previouslyFocusedElement){case q:Q.focus();W.previouslyFocusedElement=
Q;break;default:q.focus(),W.previouslyFocusedElement=q}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},RPk=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var e;(e=document.getElementById("fc-focus-trap-pre-div"))==null||e.remove();var t;(t=document.getElementById("fc-focus-trap-post-div"))==null||t.remove()},XKv=function(W,e,t,b,m){t=t===void 0?!0:t;
var q;m=(q=m===void 0?null:m)!=null?q:QDe(W,e,b===void 0?!1:b);m!==null&&(m.focus(),t&&F_P(W,e))};
qEh.prototype.disableButton=function(W,e){e=e===void 0?null:e;W.disabled=!0;e&&_.Nk(W,e)};
var QDe=function(W,e,t){t=t===void 0?!1:t;if(HBL(e)&&!t)return e;var b=t?[].slice.call(e.children,0).reverse():e.children;b=_.R(b);for(var m=b.next();!m.done;m=b.next())if(m=m.value,tHb(m)&&(m=QDe(W,m,t)))return m;return HBL(e)&&t?e:null};var IRD=function(W){this.originalBodyOverflow="";this.JSC$8045_domHelper=vK(W)};_.QP(_.yV,_.ka);_.r=_.yV.prototype;_.r.JSC$8048_id_=0;_.r.disposeInternal=function(){_.yV.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8046_listener_;delete this.handler_};
_.r.start=function(W){this.stop();this.JSC$8048_id_=jF(this.callback_,W!==void 0?W:this.JSC$8046_interval_)};
_.r.stop=function(){this.isActive()&&_.tz.clearTimeout(this.JSC$8048_id_);this.JSC$8048_id_=0};
_.r.fire=function(){this.stop();this.JSC$8048_doAction_()};
_.r.isActive=function(){return this.JSC$8048_id_!=0};
_.r.JSC$8048_doAction_=function(){this.JSC$8048_id_=0;this.JSC$8046_listener_&&this.JSC$8046_listener_.call(this.handler_)};_.bk=function(W){_.ka.call(this);this.handler_=W;this.JSC$8049_keys_={}};
_.QP(_.bk,_.ka);var aRe=[];_.bk.prototype.listen=function(W,e,t,b){Array.isArray(e)||(e&&(aRe[0]=e.toString()),e=aRe);for(var m=0;m<e.length;m++){var q=_.p4(W,e[m],t||this.handleEvent,b||!1,this.handler_||this);if(!q)break;this.JSC$8049_keys_[q.key]=q}return this};
_.bk.prototype.listenOnce=function(W,e,t,b){return wK8(this,W,e,t,b)};
var wK8=function(W,e,t,b,m,q){if(Array.isArray(t))for(var Q=0;Q<t.length;Q++)wK8(W,e,t[Q],b,m,q);else{e=lL(e,t,b||W.handleEvent,m,q||W.handler_||W);if(!e)return W;W.JSC$8049_keys_[e.key]=e}return W};
_.bk.prototype.unlisten=function(W,e,t,b,m){if(Array.isArray(e))for(var q=0;q<e.length;q++)this.unlisten(W,e[q],t,b,m);else if(W=xSP(W,e,t||this.handleEvent,_.tk(b)?!!b.capture:!!b,m||this.handler_||this))Zj(W),delete this.JSC$8049_keys_[W.key];return this};
_.bk.prototype.removeAll=function(){_.kJ.forEach(this.JSC$8049_keys_,function(W,e){this.JSC$8049_keys_.hasOwnProperty(e)&&Zj(W)},this);
this.JSC$8049_keys_={}};
_.bk.prototype.disposeInternal=function(){_.bk.superClass_.disposeInternal.call(this);this.removeAll()};
_.bk.prototype.handleEvent=function(){throw Error("Ta");};var Yr=function(){_.ka.call(this);this.services_={}};
_.QP(Yr,_.ka);Yr.prototype.connect=function(W){W&&W()};
Yr.prototype.isConnected=function(){return!0};
Yr.prototype.registerService=function(W,e,t){this.services_[W]={callback:e,objectPayload:!!t}};
Yr.prototype.getService=function(W,e){var t=this.services_[W];return t?t:this.defaultService_?{callback:_.Sz(this.defaultService_,W),objectPayload:_.tk(e)}:null};
var uUo=function(W,e){if(e&&typeof W==="string")try{return JSON.parse(W)}catch(t){return null}else if(!e&&typeof W!=="string")return(0,_.nV)(W);return W};
Yr.prototype.disposeInternal=function(){Yr.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 zD=function(W,e){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=e||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
zD.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof zD&&this.result_.cancel();else{if(this.parent_){var e=this.parent_;delete this.parent_;W?e.cancel(W):(e.branches_--,e.branches_<=0&&e.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new UX(this))}};
zD.prototype.continue_=function(W,e){this.blocked_=!1;cDS(this,W,e)};
var cDS=function(W,e,t){W.fired_=!0;W.result_=t;W.hadError_=!e;vJy(W)},DLZ=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new GaP(W);
W.silentlyCanceled_=!1}};
zD.prototype.callback=function(W){DLZ(this);cDS(this,!0,W)};
zD.prototype.errback=function(W){DLZ(this);cDS(this,!1,W)};
var SES=function(W,e,t){LV(W,e,null,t)};
zD.prototype.finally=function(W){var e=this;return new Promise(function(t,b){LV(e,function(m){W();t(m)},function(m){W();
b(m)})})};
var LV=function(W,e,t,b){var m=W.fired_;m||(e===t?e=t=$r(e):(e=$r(e),t=$r(t)));W.sequence_.push([e,t,b]);m&&vJy(W)};
zD.prototype.then=function(W,e,t){var b,m,q=new _.c3(function(Q,X){m=Q;b=X});
LV(this,m,function(Q){Q instanceof UX?q.cancel():b(Q);return B6b},this);
return q.then(W,e,t)};
VKB(zD);var oJP=function(W,e){e instanceof zD?SES(W,(0,_.p3)(e.branch,e)):SES(W,function(){return e})};
zD.prototype.branch=function(W){var e=new zD;LV(this,e.callback,e.errback,e);W&&(e.parent_=this,this.branches_++);return e};
zD.prototype.isError=function(W){return W instanceof Error};
var lRy=function(W){return UH(W.sequence_,function(e){return typeof e[1]==="function"})},B6b={},vJy=function(W){if(W.unhandledErrorId_&&W.fired_&&lRy(W)){var e=W.unhandledErrorId_,t=Z8D[e];
t&&(_.tz.clearTimeout(t.JSC$8066_id_),delete Z8D[e]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);e=W.result_;for(var b=t=!1;W.sequence_.length&&!W.blocked_;){var m=W.sequence_.shift(),q=m[0],Q=m[1];m=m[2];if(q=W.hadError_?Q:q)try{var X=q.call(m||W.defaultScope_,e);X===B6b&&(X=void 0);X!==void 0&&(W.hadError_=W.hadError_&&(X==e||W.isError(X)),W.result_=e=X);if(iOD(e)||typeof _.tz.Promise==="function"&&e instanceof _.tz.Promise)b=!0,W.blocked_=!0}catch(I){e=I,W.hadError_=
!0,lRy(W)||(t=!0)}}W.result_=e;b&&(X=(0,_.p3)(W.continue_,W,!0),b=(0,_.p3)(W.continue_,W,!1),e instanceof zD?(LV(e,X,b),e.blocking_=!0):e.then(X,b));t&&(e=new $Ly(e),Z8D[e.JSC$8066_id_]=e,W.unhandledErrorId_=e.JSC$8066_id_)},GaP=function(){_.WZ.call(this)};
_.QP(GaP,_.WZ);GaP.prototype.message="Deferred has already fired";GaP.prototype.name="AlreadyCalledError";var UX=function(){_.WZ.call(this)};
_.QP(UX,_.WZ);UX.prototype.message="Deferred was canceled";UX.prototype.name="CanceledError";var $Ly=function(W){this.JSC$8066_id_=_.tz.setTimeout((0,_.p3)(this.throwError,this),0);this.JSC$8066_error_=W};
$Ly.prototype.throwError=function(){delete Z8D[this.JSC$8066_id_];throw this.JSC$8066_error_;};
var Z8D={};var kak={1:"NativeMessagingTransport"},pKB=["pu","lru","pru","lpu","ppu"],jDv=function(){for(var W=10,e=yDr,t=e.length,b="";W-- >0;)b+=e.charAt(Math.floor(Math.random()*t));return b},yDr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var EX=function(W){_.ka.call(this);this.JSC$8069_domHelper_=W||vK()};
_.QP(EX,_.ka);EX.prototype.transportType=0;EX.prototype.getWindow=function(){return this.JSC$8069_domHelper_.getWindow()};
EX.prototype.getName=function(){return kak[String(this.transportType)]||""};var An=function(W,e,t,b,m){EX.call(this,t);this.JSC$8072_channel_=W;this.protocolVersion_=m||2;this.peerHostname_=e||"*";this.JSC$8072_eventHandler_=new _.bk(this);this.maybeAttemptToConnectTimer_=new _.tj(100,this.getWindow());this.oneSidedHandshake_=!!b;this.setupAckReceived_=new zD;this.setupAckSent_=new zD;this.JSC$8072_connected_=new zD;this.endpointId_=jDv();this.peerEndpointId_=null;this.oneSidedHandshake_?CNh(this.JSC$8072_channel_)==1?oJP(this.JSC$8072_connected_,this.setupAckReceived_):
oJP(this.JSC$8072_connected_,this.setupAckSent_):(oJP(this.JSC$8072_connected_,this.setupAckReceived_),this.protocolVersion_==2&&oJP(this.JSC$8072_connected_,this.setupAckSent_));SES(this.JSC$8072_connected_,this.notifyConnected_,this);this.JSC$8072_connected_.callback(!0);this.JSC$8072_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.QP(An,EX);An.prototype.peerProtocolVersion_=null;An.prototype.initialized_=!1;An.prototype.transportType=1;var nJk={};An.prototype.sendTimerId_=0;
var T6D=function(W){var e=W.event_.data;if(typeof e!=="string")return!1;var t=e.indexOf("|"),b=e.indexOf(":");if(t==-1||b==-1)return!1;var m=e.substring(0,t);t=e.substring(t+1,b);e=e.substring(b+1);if(b=N3[m])return b.xpcDeliver(t,e,W.event_.origin),!0;b=fRv(e)[0];for(var q in N3){var Q=N3[q];if(CNh(Q)==1&&!Q.isConnected()&&t=="tp"&&(b=="SETUP"||b=="SETUP_NTPV2")&&gJD(Q,W.event_.origin))return delete N3[Q.name],Q.name=m,N3[m]=Q,Q.xpcDeliver(t,e),!0}return!1},JDP=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},xLr=function(W,e){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||e!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||e!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},O8N=function(W,e){e>W.peerProtocolVersion_&&(W.peerProtocolVersion_=e);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.r=An.prototype;_.r.connect=function(){var W=this.getWindow(),e=_.bh(W),t=nJk[e];typeof t!=="number"&&(t=0);t==0&&_.p4(W.postMessage?W:W.document,"message",T6D,!1,An);nJk[e]=t+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.r.maybeAttemptToConnect_=function(){var W=CNh(this.JSC$8072_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$8072_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),JDP(this))};
_.r.send=function(W,e){var t=this.JSC$8072_channel_.peerWindowObject_;t&&(this.send=function(b,m){var q=this,Q=this.JSC$8072_channel_.name;this.sendTimerId_=jF(function(){q.sendTimerId_=0;try{var X=t.postMessage?t:t.document;X.postMessage&&X.postMessage(Q+"|"+b+":"+m,q.peerHostname_)}catch(I){}},0)},this.send(W,e))};
_.r.notifyConnected_=function(){var W=this.JSC$8072_channel_,e=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.NL(W.connectionDelay_),e!==void 0?(W.connectionDelay_=new _.yV(W.connectCb_,e),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.r.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),e=_.bh(W),t=nJk[e];nJk[e]=t-1;t==1&&_.lj(W.postMessage?W:W.document,"message",T6D,!1,An)}this.sendTimerId_&&(_.tz.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.NL(this.JSC$8072_eventHandler_);delete this.JSC$8072_eventHandler_;_.NL(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8072_connected_.cancel();delete this.JSC$8072_connected_;delete this.send;An.superClass_.disposeInternal.call(this)};
var fRv=function(W){W=W.split(",");W[1]=W[1]||null;return W};_.du=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.Ns(W)){for(var e=[],t=W.length,b=0;b<t;b++)e.push(W[b]);return e}return _.kJ.getValues(W)};
_.MHU=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.Ns(W)||typeof W==="string"){var e=[];W=W.length;for(var t=0;t<W;t++)e.push(t);return e}return _.kJ.getKeys(W)}}};
_.sDk=function(W,e,t){if(W.forEach&&typeof W.forEach=="function")W.forEach(e,t);else if(_.Ns(W)||typeof W==="string")Array.prototype.forEach.call(W,e,t);else for(var b=_.MHU(W),m=_.du(W),q=m.length,Q=0;Q<q;Q++)e.call(t,m[Q],b&&b[Q],W)};var Ge9,qR,Q3,YE8,hP8,K_v,H8B,i8P,PNP;
_.UT=function(W,e){this.JSC$8077_domain_=this.userInfo_=this.scheme_="";this.JSC$8077_port_=null;this.fragment_=this.JSC$8077_path_="";this.JSC$8077_ignoreCase_=!1;var t;W instanceof _.UT?(this.JSC$8077_ignoreCase_=e!==void 0?e:W.JSC$8077_ignoreCase_,_.Wh(this,W.scheme_),this.userInfo_=W.userInfo_,_.eo(this,W.JSC$8077_domain_),_.tF(this,W.JSC$8077_port_),_.bz(this,W.getPath()),_.mD(this,W.JSC$8077_queryData_.clone()),_.rU(this,W.fragment_)):W&&(t=_.Lt(String(W)))?(this.JSC$8077_ignoreCase_=!!e,_.Wh(this,
t[1]||"",!0),this.userInfo_=qR(t[2]||""),_.eo(this,t[3]||"",!0),_.tF(this,t[4]),_.bz(this,t[5]||"",!0),_.mD(this,t[6]||"",!0),_.rU(this,t[7]||"",!0)):(this.JSC$8077_ignoreCase_=!!e,this.JSC$8077_queryData_=new _.R8(null,this.JSC$8077_ignoreCase_))};
_.UT.prototype.toString=function(){var W=[],e=this.scheme_;e&&W.push(Q3(e,hP8,!0),":");var t=this.JSC$8077_domain_;if(t||e=="file")W.push("//"),(e=this.userInfo_)&&W.push(Q3(e,hP8,!0),"@"),W.push(_.PO(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.JSC$8077_port_,t!=null&&W.push(":",String(t));if(t=this.getPath())this.JSC$8077_domain_&&t.charAt(0)!="/"&&W.push("/"),W.push(Q3(t,t.charAt(0)=="/"?H8B:K_v,!0));(t=this.JSC$8077_queryData_.toString())&&W.push("?",t);(t=this.fragment_)&&W.push("#",Q3(t,
PNP));return W.join("")};
_.UT.prototype.resolve=function(W){var e=this.clone(),t=!!W.scheme_;t?_.Wh(e,W.scheme_):t=!!W.userInfo_;t?e.userInfo_=W.userInfo_:t=!!W.JSC$8077_domain_;t?_.eo(e,W.JSC$8077_domain_):t=W.JSC$8077_port_!=null;var b=W.getPath();if(t)_.tF(e,W.JSC$8077_port_);else if(t=!!W.JSC$8077_path_){if(b.charAt(0)!="/")if(this.JSC$8077_domain_&&!this.JSC$8077_path_)b="/"+b;else{var m=e.getPath().lastIndexOf("/");m!=-1&&(b=e.getPath().slice(0,m+1)+b)}m=b;if(m==".."||m==".")b="";else if(_.XD(m,"./")||_.XD(m,"/.")){b=
_.m2(m,"/");m=m.split("/");for(var q=[],Q=0;Q<m.length;){var X=m[Q++];X=="."?b&&Q==m.length&&q.push(""):X==".."?((q.length>1||q.length==1&&q[0]!="")&&q.pop(),b&&Q==m.length&&q.push("")):(q.push(X),b=!0)}b=q.join("/")}else b=m}t?_.bz(e,b):t=W.JSC$8077_queryData_.toString()!=="";t?_.mD(e,W.JSC$8077_queryData_.clone()):t=!!W.fragment_;t&&_.rU(e,W.fragment_);return e};
_.UT.prototype.clone=function(){return new _.UT(this)};
_.Wh=function(W,e,t){W.scheme_=t?qR(e,!0):e;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.eo=function(W,e,t){W.JSC$8077_domain_=t?qR(e,!0):e;return W};
_.tF=function(W,e){if(e){e=Number(e);if(isNaN(e)||e<0)throw Error("Ua`"+e);W.JSC$8077_port_=e}else W.JSC$8077_port_=null;return W};
_.UT.prototype.getPath=function(){return this.JSC$8077_path_};
_.bz=function(W,e,t){W.JSC$8077_path_=t?qR(e,!0):e;return W};
_.mD=function(W,e,t){e instanceof _.R8?(W.JSC$8077_queryData_=e,VHh(W.JSC$8077_queryData_,W.JSC$8077_ignoreCase_)):(t||(e=Q3(e,i8P)),W.JSC$8077_queryData_=new _.R8(e,W.JSC$8077_ignoreCase_));return W};
_.UJ=function(W,e,t){W.JSC$8077_queryData_.set(e,t);return W};
_.zg=function(W,e){return W.JSC$8077_queryData_.get(e)};
_.rU=function(W,e,t){W.fragment_=t?qR(e):e;return W};
_.FH=function(W){_.UJ(W,"zx",iQ());return W};
_.Ya=function(W,e){return W instanceof _.UT?W.clone():new _.UT(W,e)};
Ge9=function(W,e){W instanceof _.UT||(W=_.Ya(W));e instanceof _.UT||(e=_.Ya(e));return W.resolve(e)};
qR=function(W,e){return W?e?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
Q3=function(W,e,t){return typeof W==="string"?(W=encodeURI(W).replace(e,YE8),t&&(W=W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),W):null};
YE8=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
hP8=/[#\/\?@]/g;K_v=/[#\?:]/g;H8B=/[#\?]/g;i8P=/[#\?@]/g;PNP=/#/g;_.R8=function(W,e){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$8078_ignoreCase_=!!e};
_.XH=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&hNr(W.encodedQuery_,function(e,t){W.add(dM(e),t)}))};
_.r=_.R8.prototype;_.r.getCount=function(){_.XH(this);return this.count_};
_.r.add=function(W,e){_.XH(this);this.encodedQuery_=null;W=I8(this,W);var t=this.keyMap_.get(W);t||this.keyMap_.set(W,t=[]);t.push(e);this.count_+=1;return this};
_.r.remove=function(W){_.XH(this);W=I8(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.r.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.r.isEmpty=function(){_.XH(this);return this.count_==0};
_.r.containsKey=function(W){_.XH(this);W=I8(this,W);return this.keyMap_.has(W)};
_.r.containsValue=function(W){var e=this.getValues();return _.PZ(e,W)};
_.r.forEach=function(W,e){_.XH(this);this.keyMap_.forEach(function(t,b){t.forEach(function(m){W.call(e,m,b,this)},this)},this)};
_.r.getKeys=function(){_.XH(this);for(var W=Array.from(this.keyMap_.values()),e=Array.from(this.keyMap_.keys()),t=[],b=0;b<e.length;b++)for(var m=W[b],q=0;q<m.length;q++)t.push(e[b]);return t};
_.r.getValues=function(W){_.XH(this);var e=[];if(typeof W==="string")this.containsKey(W)&&(e=e.concat(this.keyMap_.get(I8(this,W))));else{W=Array.from(this.keyMap_.values());for(var t=0;t<W.length;t++)e=e.concat(W[t])}return e};
_.r.set=function(W,e){_.XH(this);this.encodedQuery_=null;W=I8(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[e]);this.count_+=1;return this};
_.r.get=function(W,e){if(!W)return e;W=this.getValues(W);return W.length>0?String(W[0]):e};
_.zPP=function(W,e,t){W.remove(e);t.length>0&&(W.encodedQuery_=null,W.keyMap_.set(I8(W,e),_.EL(t)),W.count_+=t.length)};
_.R8.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],e=Array.from(this.keyMap_.keys()),t=0;t<e.length;t++){var b=e[t],m=_.PO(b);b=this.getValues(b);for(var q=0;q<b.length;q++){var Q=m;b[q]!==""&&(Q+="="+_.PO(b[q]));W.push(Q)}}return this.encodedQuery_=W.join("&")};
_.R8.prototype.clone=function(){var W=new _.R8;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var I8=function(W,e){e=String(e);W.JSC$8078_ignoreCase_&&(e=e.toLowerCase());return e},VHh=function(W,e){e&&!W.JSC$8078_ignoreCase_&&(_.XH(W),W.encodedQuery_=null,W.keyMap_.forEach(function(t,b){var m=b.toLowerCase();
b!=m&&(this.remove(b),_.zPP(this,m,t))},W));
W.JSC$8078_ignoreCase_=e};
_.R8.prototype.extend=function(W){for(var e=0;e<arguments.length;e++)_.sDk(arguments[e],function(t,b){this.add(b,t)},this)};var a8=function(W,e){Yr.call(this);for(var t=0,b;b=pKB[t];t++)if(b in W&&!/^https?:\/\//.test(W[b]))throw Error("Wa`"+W[b]+"`"+b);this.cfg_=W;this.name=this.cfg_.cn||jDv();this.JSC$8073_domHelper_=e||vK();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.bk(this);W.lpu=W.lpu||MPS(this.JSC$8073_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||MPS(W.pu||"")+"/robots.txt";N3[this.name]=this;xSP(window,"unload",ULv)||lL(window,"unload",ULv)};
_.QP(a8,Yr);var L_o=RegExp("^%*tp$"),EJN=RegExp("^%+tp$");_.r=a8.prototype;_.r.connectionDelay_=null;_.r.peerWindowDeferred_=null;_.r.transport_=null;_.r.state_=1;_.r.isConnected=function(){return this.state_==2};
_.r.peerWindowObject_=null;_.r.iframeElement_=null;_.r.connect=function(W){this.connectCb_=W||_.SQ;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?SES(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.r.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8073_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");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$8073_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new An(this,this.cfg_.ph,this.JSC$8073_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.r.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.NL(this.transport_);this.connectCb_=this.transport_=null;_.NL(this.connectionDelay_);this.connectionDelay_=null};
_.r.send=function(W,e){if(this.isConnected()){try{var t=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(m){t=!1}if(t){_.tk(e)&&(e=(0,_.nV)(e));t=this.transport_;var b=t.send;L_o.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);b.call(t,W,e)}else this.close()}};
_.r.xpcDeliver=function(W,e,t){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.p3)(this.xpcDeliver,this,W,e,t));else if(gJD(this,t)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=EJN.test(W)?W.substring(1):W,W=this.getService(W,e))&&(e=uUo(e,W.objectPayload),e!=null&&W.callback(e));else switch(W=this.transport_,t=fRv(e),e=t[1],t[0]){case "SETUP_ACK":O8N(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(O8N(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":O8N(W,1);xLr(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(t=W.peerProtocolVersion_,O8N(W,2),xLr(W,2),t!=1&&W.peerEndpointId_==null||W.peerEndpointId_==e||JDP(W),W.peerEndpointId_=e)}};
var CNh=function(W){var e=W.cfg_.role;return typeof e==="number"?e:window.parent==W.peerWindowObject_?1:0},gJD=function(W,e){var t=W.cfg_.ph;
return _.QK(e==null?"":String(e))||_.QK(t==null?"":String(t))||e==W.cfg_.ph};
a8.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete N3[this.name];_.NL(this.peerLoadHandler_);delete this.peerLoadHandler_;a8.superClass_.disposeInternal.call(this)};
var ULv=function(){for(var W in N3)_.NL(N3[W])},N3={};var N6S=function(W,e){this.JSC$8087_win=W;this.allowAdsHttpEndpoint=e;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8087_domHelper=vK(W);this.scrollManager=new IRD(W);this.accessibilityManager=new qEh(W);ADy(this)},ADy=function(W){var e=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");RPk(W.accessibilityManager);XKv(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));var m=W.scrollManager;m.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow=m.originalBodyOverflow};
W.allowAdsPopup=W.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$8087_domHelper.appendChild(W.JSC$8087_domHelper.JSC$7372_document_.body,W.allowAdsPopup);var t=W.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$8087_domHelper.appendChild(W.allowAdsPopup,t);var b=W.JSC$8087_domHelper.JSC$7374_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:e});W.JSC$8087_domHelper.appendChild(W.allowAdsPopup,
b);t=W.JSC$8087_domHelper.JSC$7374_createDom("IFRAME");t.className="fc-whitelist-dialog";t.frameBorder="0";t.id="fc-whitelist-iframe";t.tabIndex="0";_.fF(t,W.allowAdsHttpEndpoint);W.JSC$8087_domHelper.appendChild(b,t);b={};b.pu=_.Xh(W.allowAdsHttpEndpoint).toString();b.tp=1;b.cn="fc-whitelist-channel";b.ifrid=t.id;b.osh=!0;W.allowAdsCrossPageChannel=new a8(b);W.allowAdsCrossPageChannel.registerService("close",e);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$8087_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(m){if(m){var q=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");m.width&&q.style.setProperty("width",m.width,"important");m.height&&q.style.setProperty("height",m.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
N6S.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8087_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var wU=window,uz=document,dLk=wU.location,WEo=function(){},eFP=/\[native code\]/,ch=function(W,e,t){return W[e]=W[e]||t},thN=function(W){W=W.sort();
for(var e=[],t=void 0,b=0;b<W.length;b++){var m=W[b];m!=t&&e.push(m);t=m}return e},vh=function(){var W;
if((W=Object.create)&&eFP.test(W))W=W(null);else{W={};for(var e in W)W[e]=void 0}return W},GR=ch(wU,"gapi",{});var D6={};D6=ch(wU,"___jsl",vh());ch(D6,"I",0);ch(D6,"hel",10);var b3N=function(){var W=dLk.href;if(D6.dpo)var e=D6.h;else{e=D6.h;var t=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),b=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(t.exec(W)||b.exec(W)))try{e=decodeURIComponent(W[2])}catch(m){}}return e},mcB=function(W){var e=ch(D6,"PQ",[]);
D6.PQ=[];var t=e.length;if(t===0)W();else for(var b=0,m=function(){++b===t&&W()},q=0;q<t;q++)e[q](m)},rEe=function(W){return ch(ch(D6,"H",vh()),W,vh())};var So=function(W){this.JSC$8089_obj_=W};
So.prototype.value=function(){return this.JSC$8089_obj_};
So.prototype.getWidth=function(){return this.JSC$8089_obj_.width};
So.prototype.getHeight=function(){return this.JSC$8089_obj_.height};
So.prototype.getStyle=function(){return this.JSC$8089_obj_.style};var qJv=function(W){this.JSC$8092_obj_=W||{}};
_.r=qJv.prototype;_.r.value=function(){return this.JSC$8092_obj_};
_.r.setUrl=function(W){this.JSC$8092_obj_.url=W;return this};
_.r.getUrl=function(){return this.JSC$8092_obj_.url};
_.r.getStyle=function(){return this.JSC$8092_obj_.style};
_.r.setId=function(W){this.JSC$8092_obj_.id=W;return this};
_.r.getId=function(){return this.JSC$8092_obj_.id};
_.r.getContext=function(){return this.JSC$8092_obj_.context};
var RFN=function(W){W.JSC$8092_obj_.attributes=W.JSC$8092_obj_.attributes||{};return new So(W.JSC$8092_obj_.attributes)};var QhS=function(){qJv.apply(this,arguments)};
_.Z(QhS,qJv);var FEU=ch(D6,"perf",vh());ch(FEU,"g",vh());var XXb=ch(FEU,"i",vh());ch(FEU,"r",[]);vh();vh();var aAS=function(W,e,t){e&&e.length>0&&(e=IAb(e),t&&t.length>0&&(e+="___"+IAb(t)),e.length>28&&(e=e.substr(0,28)+(e.length-28)),t=e,e=ch(XXb,"_p",vh()),ch(e,t,vh())[W]=(new Date).getTime(),e=FEU.r,typeof e==="function"?e(W,"_p",t):e.push([W,"_p",t]))},IAb=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var wXN=vh(),uzh=[],Bh=function(W){throw Error("Za`"+W);};
uzh.push(["jsl",function(W){for(var e in W)if(Object.prototype.hasOwnProperty.call(W,e)){var t=W[e];typeof t=="object"?D6[e]=ch(D6,e,[]).concat(t):ch(D6,e,t)}if(e=W.u)W=ch(D6,"us",[]),W.push(e),(e=/^https:(.*)$/.exec(e))&&W.push("http:"+e[1])}]);
var cEB=/^(\/[a-zA-Z0-9_\-]+)+$/,vav=[/\/amp\//,/\/amp$/,/^\/amp$/],GgN=/^[a-zA-Z0-9\-_\.,!]+$/,DcD=/^gapi\.loaded_[0-9]+$/,SJU=/^[a-zA-Z0-9,._-]+$/,Z3k=function(W,e,t,b,m){var q=W.split(";"),Q=q.shift(),X=wXN[Q],I=null;X?I=X(q,e,t,b):Bh("no hint processor for: "+Q);I||Bh("failed to generate load url");e=I;t=e.match(B$h);(b=e.match(oar))&&b.length===1&&lAr.test(e)&&t&&t.length===1||Bh("failed sanity: "+W);try{W="?";if(m&&m.length>0){me(m);var u=m.join(",");I=I+"?le="+u;W="&"}if(D6.rol){var c=D6.ol;
c&&c.length&&(I=""+I+W+"ol="+c.length)}}catch(v){}return I},pXB=function(W,e,t,b){W=$ch(W);
DcD.test(t)||Bh("invalid_callback");e=kgZ(e);b=b&&b.length?kgZ(b):null;var m=function(q){return encodeURIComponent(q).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",m(W.version),"/m=",m(e),b?"/exm="+m(b):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+m(W.activeMods):"",W.resourceSig?"/rs="+m(W.resourceSig):"",W.zcms?"/t="+m(W.zcms):"","/cb=",m(t)].join("")},$ch=function(W){W.charAt(0)!=="/"&&Bh("relative path");
for(var e=W.substring(1).split("/"),t=[];e.length;){W=e.shift();if(!W.length||W.indexOf(".")==0)Bh("empty/relative directory");else if(W.indexOf("=")>0){e.unshift(W);break}t.push(W)}W={};for(var b=0,m=e.length;b<m;++b){var q=e[b].split("="),Q=decodeURIComponent(q[0]),X=decodeURIComponent(q[1]);q.length==2&&Q&&X&&(W[Q]=W[Q]||X)}e="/"+t.join("/");cEB.test(e)||Bh("invalid_prefix");t=0;for(b=vav.length;t<b;++t)vav[t].test(e)&&Bh("invalid_prefix");t=yEv(W,"k",!0);b=yEv(W,"am");m=yEv(W,"rs");W=yEv(W,"t");
return{pathPrefix:e,version:t,activeMods:b,resourceSig:m,zcms:W}},kgZ=function(W){for(var e=[],t=0,b=W.length;t<b;++t){var m=W[t].replace(/\./g,"_").replace(/-/g,"_");
SJU.test(m)&&e.push(m)}return e.join(",")},yEv=function(W,e,t){W=W[e];
!W&&t&&Bh("missing: "+e);if(W){if(GgN.test(W))return W;Bh("invalid: "+e)}return null},lAr=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,oar=/\/cb=/g,B$h=/\/\//g;
wXN.m=function(W,e,t,b){(W=W[0])||Bh("missing_hint");return"https://apis.google.com"+pXB(W,e,t,b)};
var jhN=decodeURI("%73cript"),CQy=/^[-+_0-9\/A-Za-z]+={0,2}$/,na8=function(W,e){for(var t=[],b=0;b<W.length;++b){var m=W[b],q;if(q=m){a:{for(q=0;q<e.length;q++)if(e[q]===m)break a;q=-1}q=q<0}q&&t.push(m)}return t},fAr=function(){var W=D6.nonce;
return W!==void 0?W&&W===String(W)&&W.match(CQy)?W:D6.nonce=null:uz.querySelector?(W=uz.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(CQy)?D6.nonce=W:D6.nonce=null):null:null},JEZ=function(W){if(uz.readyState!="loading")gav(W);
else{var e=fAr(),t="";e!==null&&(t=' nonce="'+e+'"');W="<"+jhN+' src="'+encodeURI(W)+'"'+t+"></"+jhN+">";uz.write(T$Z?T$Z.createHTML(W):W)}},gav=function(W){var e=uz.createElement(jhN);
e.setAttribute("src",T$Z?T$Z.createScriptURL(W):W);W=fAr();W!==null&&e.setAttribute("nonce",W);e.async="true";(W=uz.getElementsByTagName(jhN)[0])?W.parentNode.insertBefore(e,W):(uz.head||uz.body||uz.documentElement).appendChild(e)},O3N=function(W,e,t){xcZ(function(){var b=e===b3N()?ch(GR,"_",vh()):vh();
b=ch(rEe(e),"_",b);W(b)},t)},cFZ=function(W,e){var t=e||{};
typeof e=="function"&&(t={},t.callback=e);var b=(e=t)&&e._c;if(b)for(var m=0;m<uzh.length;m++){var q=uzh[m][0],Q=uzh[m][1];Q&&Object.prototype.hasOwnProperty.call(b,q)&&Q(b[q],W,e)}e=[];W?e=W.split(":"):t.features&&(e=t.features);if(!(W=t.h)&&(W=b3N(),!W))throw Error("$a");Mhy(e||[],t,W)},Mhy=function(W,e,t){W=thN(W)||[];
var b=e.callback,m=e.config,q=e.timeout,Q=e.ontimeout,X=e.onerror,I=void 0;typeof X=="function"&&(I=X);var u=null,c=!1;if(q&&!Q||!q&&Q)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";X=ch(rEe(t),"r",[]).sort();var v=ch(rEe(t),"L",[]).sort(),D=D6.le||[],B=[].concat(X),k=function(U,V){if(c)return 0;wU.clearTimeout(u);v.push.apply(v,n);var L=((GR||{}).config||{}).update;L?L(m):m&&ch(D6,"cu",[]).push(m);if(V){aAS("me0",U,B);try{O3N(V,t,I)}finally{aAS("me1",U,B)}}return 1};
q>0&&(u=wU.setTimeout(function(){c=!0;Q()},q));
var n=na8(W,v);if(n.length){n=na8(W,X);var f=ch(D6,"CP",[]),M=f.length;f[M]=function(U){if(!U)return 0;aAS("ml1",n,B);var V=function(E){f[M]=null;k(n,U)&&mcB(function(){b&&b();E()})},L=function(){var E=f[M+1];
E&&E()};
M>0&&f[M-1]?f[M]=function(){V(L)}:V(L)};
if(n.length){var K="loaded_"+D6.I++;GR[K]=function(U){f[M](U);GR[K]=null};
W=Z3k(t,n,"gapi."+K,X,D);X.push.apply(X,n);aAS("ml0",n,B);e.sync||wU.___gapisync?JEZ(W):gav(W)}else f[M](WEo)}else k(n)&&b&&b()},shU;
var hF8=null,H3y=_.tz.trustedTypes;if(H3y&&H3y.createPolicy){try{hF8=H3y.createPolicy("goog#gapi",{createHTML:djG,createScript:djG,createScriptURL:djG})}catch(W){_.tz.console&&_.tz.console.error(W.message)}shU=hF8}else shU=hF8;var T$Z=shU,xcZ=function(W,e){if(D6.hee&&D6.hel>0)try{return W()}catch(t){e&&e(t),D6.hel--,cFZ("debug_error",function(){try{window.___jsl.hefn(t)}catch(b){throw t;}})}else try{return W()}catch(t){throw e&&e(t),t;
}},KEb=GR.load;
KEb&&ch(D6,"ol",[]).push(KEb);GR.load=function(W,e){return xcZ(function(){return cFZ(W,e)})};var eTD;var PQB=function(W,e){this.serviceId_=W;this.moduleId_=e||null};
PQB.prototype.toString=function(){return this.serviceId_};
PQB.prototype.getModuleId=function(){return this.moduleId_};var mnD=new PQB("MpJwZc","MpJwZc");var qcG=new _.GD("a"),rAS=function(W,e,t){_.DY.call(this,W,e);this.node=e;this.kind=t};
_.Z(rAS,_.DY);var VhP=function(){this.JSC$8105_keys_={};this.urlPrefix_="";this.JSC$8105_queryData_={}};
VhP.prototype.toString=function(){var W=this.urlPrefix_+i3U(this),e=_.w8(this.JSC$8105_queryData_),t="";e!=""&&(t="?"+e);return W+t};
var YJZ=function(W){W=o8(W,"md");return!!W&&W!=="0"},i3U=function(W){var e=[],t=(0,_.p3)(function(b){this.JSC$8105_keys_[b]!==void 0&&e.push(b+"="+this.JSC$8105_keys_[b])},W);
YJZ(W)?(t("md"),t("k"),t("ck"),t("am"),t("rs"),t("gssmodulesetproto"),t("slk"),t("dti")):(t("sdch"),t("k"),t("ck"),t("am"),t("rt"),"d"in W.JSC$8105_keys_||lz(W,"d","0"),t("d"),t("exm"),t("excm"),(W.JSC$8105_keys_.excm||W.JSC$8105_keys_.exm)&&e.push("ed=1"),t("im"),t("dg"),t("sm"),o8(W,"br")!="1"&&o8(W,"br")!="0"||t("br"),t("br-d"),o8(W,"rb")=="1"&&t("rb"),o8(W,"zs")!=="0"&&t("zs"),zFk(W)!==""&&t("wt"),t("gssmodulesetproto"),t("ujg"),t("sp"),t("rs"),t("cb"),t("ee"),t("slk"),t("dti"),t("m"));return e.join("/")},
o8=function(W,e){return W.JSC$8105_keys_[e]?W.JSC$8105_keys_[e]:null},lz=function(W,e,t){t?W.JSC$8105_keys_[e]=t:delete W.JSC$8105_keys_[e]},Uck=function(W,e){W.urlPrefix_=e},LEB=function(W,e){e&&e.length>0?(e.sort(),lz(W,"exm",e.join(","))):lz(W,"exm",null)},Ear=function(W,e){e&&e.length>0?(e.sort(),lz(W,"excm",e.join(","))):lz(W,"excm",null)},AEo=function(W){return(W=o8(W,"m"))?W.split(","):[]},zFk=function(W){switch(o8(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},N$S=function(W,e){var t=Object.keys(e).filter(function(b){return!!Object.keys(e[b]).length}).map(function(b){var m=Object.keys(e[b]);
m.length>1&&m.sort();return b+":"+m.join(",")});
t.sort();lz(W,"ee",t.join(";"))},UD9=function(W){var e=o8(W,"ee");
if(!e)return{};W={};e=_.R(e.split(";"));for(var t=e.next();!t.done;t=e.next()){var b=_.R(t.value.split(":"));t=b.next().value;b=b.next().value;W[t]={};b=_.R(b.split(","));for(var m=b.next();!m.done;m=b.next())W[t][m.value]=!0}return W},dcr=function(W){delete W.JSC$8105_keys_.m;
delete W.JSC$8105_keys_.exm;delete W.JSC$8105_keys_.ed};
VhP.prototype.clone=function(){var W=new VhP;W.JSC$8105_keys_=Object.assign({},this.JSC$8105_keys_);W.urlPrefix_=this.urlPrefix_;W.JSC$8105_queryData_=Object.assign({},this.JSC$8105_queryData_);return W};
var L7z=function(W,e){e=e===void 0?!0:e;var t=WJe(W),b=new VhP,m=_.Lt(t)[5];_.kJ.forEach(eir,function(Q){var X=m.match("/"+Q+"=([^/]+)");X&&lz(b,Q,X[1])});
var q="";q=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";Uck(b,W.substr(0,W.indexOf(q)+q.length));if(!e)return b;(W=_.Lt(t)[6]||null)&&hNr(W,function(Q,X){b.JSC$8105_queryData_[Q]=X});
return b},itv=function(W){W=_.I_(WJe(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},WJe=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},eir={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"},tCb=RegExp("^loaded_(g|h)?[_\\d]+$");_.Z6=function(W){this.JSC$8117_id_=W;this.opts={}};
_.Z6.prototype.JSC$8119_setLabel=function(W){this.label_=W||void 0;return this};
_.Z6.prototype.addUploadMetadata=function(W,e){var t=this.opts.data||{};t[W]=e;this.opts.data=t;return this};
var bhD=function(W){var e=_.kJ.filter(W.opts,function(t){return t!==null});
e=_.kJ.isEmpty(e)?null:e;W=[W.JSC$8117_id_,W.label_,e];e=DsK(W);return W=W.slice(0,e+1)};
_.Z6.prototype.toString=function(){var W=bhD(this);return"("+_.yO(W,function(e){return JSON.stringify(e)}).join(",")+")"};
_.Z6.prototype.getId=function(){return this.JSC$8117_id_};
_.Z6.prototype.getOptions=function(){return _.kJ.clone(this.opts)};var $Z=function(){_.Z6.call(this,"image-search")};
_.Z($Z,_.Z6);$Z.prototype.setSize=function(W){this.opts.imgsz=W;return this};
$Z.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
$Z.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};var kZ=function(){_.Z6.call(this,"maps")};
_.Z(kZ,_.Z6);kZ.prototype.setZoom=function(W){this.opts.zoom=W;return this};
kZ.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
kZ.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};_.pH=function(){_.Z6.call(this,"photos")};
_.Z(_.pH,_.Z6);_.pH.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
_.pH.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};var y3=function(){_.Z6.call(this,"url")};
_.Z(y3,_.Z6);var m58=function(){var W=new y3;W.opts.type="video";W.opts.site="youtube.com";return W};
y3.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
y3.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};var jo=function(){_.Z6.call(this,"video-search")};
_.Z(jo,_.Z6);var rOb=function(){var W=new jo;W.opts.site="youtube.com";return W};
jo.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
jo.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};var q0Z=function(){_.Z6.call(this,"web")};
_.Z(q0Z,_.Z6);q0Z.prototype.JSC$8119_setLabel=function(W){_.Z6.prototype.JSC$8119_setLabel.call(this,W);return this};
q0Z.prototype.addUploadMetadata=function(W,e){_.Z6.prototype.addUploadMetadata.call(this,W,e);return this};var CH=function(){this.items_=[];this.opts={}},RiP=function(W){switch(W){case "image-search":return new $Z;
case "maps":return new kZ;case "photos":return new _.pH;case "url":return new y3;case "video-search":return new jo;case "web":return new q0Z}return new _.Z6(W)};
CH.prototype.addView=function(W){this.items_.push(typeof W==="string"?RiP(W):W);return this};
var QbS=function(W){return"("+_.yO(W.items_,function(e){return e.toString()}).join(",")+")"};
CH.prototype.toString=function(){return QbS(this)};
CH.prototype.getViews=function(W,e){e=e===void 0?[]:e;for(var t=this.items_,b=0;b<t.length;b++){var m=t[b];m instanceof CH?m.getViews(W,e):m.getId()==W&&e.push(m)}return e};
CH.prototype.getOptions=function(){return _.kJ.clone(this.opts)};var Mc=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new CH};
Mc.prototype.nav_=null;Mc.prototype.addView=function(W){this.nav_.addView(W);return this};
Mc.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Mc.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.FJS=function(W,e){W.callback_=e;return W};var Xfe=new Map;Xfe.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Xfe.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Xfe.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var I2U=new Set;I2U.add("application/vnd.google-apps.kix");I2U.add("application/vnd.google-apps.ritz");I2U.add("application/vnd.google-apps.punch");var Zhr=function(W,e,t){var b=t&&_.T9(t,1);t=a2v(t);var m=W[0].getId();switch(_.Js(m,2)){case 13:return wfv(W,e,b,t);case 3:return u0r(W,e,b,t);case 10:return cOS(W,e,b,t);case 27:return cOS(W,e,b,t);case 12:return vKZ(W,e);case 2:return GQZ(W,e,b,t);case 5:return D5P(W,e,b,t);case 9:return S0S(W,e,b,t);case 6:return BPe(W,e,b,t);case 25:return oKo(W,e,b,t);case 1:return _.lI(W[0],eQ8,26)?l28(W,e,b,t):cOS(W,e,b,t);default:return{}}},BPe=function(W,e,t,b){W=W.map(function(m){return{id:m.getId().getId(),
serviceId:"youtube",name:m.getName(),description:_.T9(m,3),type:nH(m),lastEditedUtc:_.WUU(_.mx(m,_.Vg,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:m.getUrl(),embedUrl:_.T9(m,13),thumbnails:fH(dj(m))}});
return{action:e,docs:W,viewToken:b,view:t||"youtube",v2Translated:!0}},GQZ=function(W,e,t,b){var m=W.map(function(q){var Q=q.getId().getId(),X=_.T9(q,7),I=q.getName(),u=nH(q),c=_.WUU(_.mx(q,_.Vg,12)).getTime(),v=q.getUrl(),D=Number(wkQ(q)),B=_.T9(q,3),k=_.T9(q,11),n=fH(dj(q));
var f=_.mx(q,eF,21);f=_.nY(f,1);var M=_.mx(q,eF,21);M=_.T9(M,10);var K=_.T9(q,13);var U=_.mx(q,eF,21);U=_.nY(U,9);var V=_.mx(q,eF,21);V=_.T9(V,11);Q={id:Q,serviceId:"docs",mimeType:X,name:I,type:u,lastEditedUtc:c,url:v,sizeBytes:D,description:B,iconUrl:k,thumbnails:n,isShared:f,downloadUrl:M,embedUrl:K,copyable:U,resourceKey:V};X=_.mx(q,eF,21);_.nY(X,12)&&(Q.uploadState="success",Q.isNew=!0);X=_.mx(q,eF,21);_.lI(X,E8,3)&&(q=_.mx(q,eF,21),q=_.mx(q,E8,3),_.lI(q,U8,2)&&(X=xa(q.getDuration().getSeconds()),
I=q.getDuration(),I=_.bQ(I,2),Q.duration=X+I/1E9),Q.aspectRatio=q.getAspectRatio());return Q});
return{action:e,docs:m,viewToken:b,view:t||"all",extraUserInputs:$5B(W),v2Translated:!0}},D5P=function(W,e,t,b){W=W.map(function(m){var q=_.mx(m,Xu8,15);
q=_.mx(q,Ld,1);SI(m,10,Ld,q);return{id:m.getId().getId(),serviceId:"web",mimeType:_.T9(m,7),name:m.getName(),type:nH(m),url:m.getUrl(),description:_.T9(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(m))}});
return{action:e,docs:W,viewToken:b,view:t||"image-search",v2Translated:!0}},S0S=function(W,e,t,b){W=W.map(function(m){return{serviceId:"url",
name:dj(m)[0].getUrl().split("/").pop(),type:nH(m),mimeType:_.T9(m,7),url:m.getUrl(),description:_.T9(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(m))}});
return{action:e,docs:W,viewToken:b,view:t||"url",v2Translated:!0}},l28=function(W,e,t,b){W=W.map(function(m){return{id:m.getId().getId(),
serviceId:"picasa",name:m.getName(),type:nH(m),description:_.T9(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(m))}});
return{action:e,docs:W,viewToken:b,view:t||"webcam",v2Translated:!0}},cOS=function(W,e,t,b){return{action:e,
docs:W.map(kQS),viewToken:b,view:pfy(t||"upload",W),extraUserInputs:$5B(W),v2Translated:!0}},pfy=function(W,e){return e.some(function(t){var b;
return((b=_.mx(t,At,30))==null?void 0:_.Js(b,3))===9})?W+"/gmailphotos":W},u0r=function(W,e,t,b){var m=W.map(function(q){var Q={id:q.getId().getId(),
serviceId:"picasa",mimeType:_.T9(q,7),name:q.getName(),type:nH(q),lastEditedUtc:_.WUU(_.mx(q,_.Vg,12)).getTime(),url:q.getUrl(),sizeBytes:Number(wkQ(q)),description:_.T9(q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(q)),mediaKey:q.getId().getId(),parentId:_.T9(q,4)},X,I=(X=_.mx(q,m9h,18))==null?void 0:_.mx(X,bCo,3);I&&(Q.latitude=g2(I,1),Q.longitude=g2(I,2));var u;q=(u=_.mx(q,m9h,18))==null?void 0:fY(u,6);u=q!=null?xa(q):void 0;u&&(Q.version=
u);return Q});
return{action:e,docs:m,viewToken:b,view:t||"photos",extraUserInputs:$5B(W),v2Translated:!0}},wfv=function(W,e,t,b){W=W.map(function(m){return{id:m.getId().getId(),
serviceId:"et",name:dj(m)[0].getUrl().split("/").pop(),description:_.T9(m,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(m),"etjpg")}});
return{action:e,docs:W,viewToken:b,view:t||"et",v2Translated:!0}},oKo=function(W,e,t,b){W=W.map(function(m){var q=m.getId().getId(),Q=b["2"];
return{id:q,serviceId:Q.type!=="gmail_themes"&&Q.parent==="6226252643674576769"?"picasa":"static_themes",name:m.getName(),mimeType:_.T9(m,7),type:nH(m),description:_.T9(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:m.getUrl(),embedUrl:m.getUrl(),thumbnails:fH(dj(m))}});
return{action:e,docs:W,viewToken:b,view:t||"photos",v2Translated:!0}},vKZ=function(W,e){W=W.map(function(t){var b=_.mx(t,tTS,27);
b=_.op(b,1,_.Hu,_.tE())[0];return{id:t.getId().getId(),serviceId:"contacts",mimeType:_.T9(t,7),name:t.getName(),description:_.T9(t,3),url:"mailto:"+b,thumbnail:[{url:_.T9(t,11)}],email:b}});
return{action:e,docs:W,view:"contacts",v2Translated:!0}},a2v=function(W){if(!W)return{};
var e=_.T9(W,3);e=e&&JSON.parse(e)||{};return{0:_.T9(W,1),1:_.T9(W,2),2:e}},fH=function(W,e){e=e===void 0?"":e;
if(!W.length)return null;e=="etjpg"&&(W=W.filter(function(t){return t.getUrl().includes("w1200-h300")}));
return W.map(function(t){return{url:t.getUrl(),height:t.getHeight(),width:t.getWidth(),type:e}})},$5B=function(W){return{isAttachment:W.some(function(e){return _.nY(e,31)})}},kQS=function(W){var e,t={id:(e=W.getId())==null?void 0:e.getId(),
serviceId:yOU(W),mimeType:_.T9(W,7),name:W.getName(),type:nH(W),sizeBytes:Number(wkQ(W)),description:_.T9(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:fH(dj(W)),isNew:!0};if(e=_.mx(W,At,30)){t.dataUrl=_.T9(e,1)||null;a:{var b=_.mx(W,At,30);switch(_.Js(b,3)){case 9:b=_.M7(b,Q$v,2,NW);b={remoteRefs:b&&_.T9(b,1)};break a;case 10:case 15:b=_.M7(b,RQP,4,NW);var m=dj(W);b={photo_id:b&&_.T9(b,1),media_key:W.getId().getId(),media_type:_.Js(W,6)===1?1:2,image_url:m&&
m[0].getUrl(),width:m&&String(m[0].getWidth()),height:m&&String(m[0].getHeight())};break a}b=null}t.uploadMetadata=b;t.uploadId=_.T9(e,9)||null;t.uploadState=jbv(e)||null}(b=e&&_.M7(e,RQP,4,NW))&&(t.id=_.T9(b,1));(b=e&&_.M7(e,FU8,5,NW))&&(t.contentId=_.T9(b,1));(b=e&&_.M7(e,rSb,7,NW))&&(t.contentId=_.T9(b,1));(b=e&&_.M7(e,qBk,6,NW))&&(t.contentId=_.T9(b,1));(e==null?void 0:_.Js(e,3))===1&&(t.mediaKey=W.getId().getId());return t},yOU=function(W){var e;
switch(((e=_.mx(W,At,30))==null?void 0:_.Js(e,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},nH=function(W){switch(_.Js(W,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 _.T9(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},jbv=function(W){switch(W==null?void 0:_.Js(W,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 gKr,CpN,nKo,f28;_.TPP=function(W,e){var t=e||{};e=t.document||document;var b=_.Xh(W).toString(),m=(new $V(e)).createElement("SCRIPT"),q={script_:m,timeout_:void 0},Q=new zD(CpN,q),X=null,I=t.timeout!=null?t.timeout:5E3;I>0&&(X=window.setTimeout(function(){nKo(m,!0);Q.errback(new f28(1,"Timeout reached for loading script "+b))},I),q.timeout_=X);
m.onload=m.onreadystatechange=function(){m.readyState&&m.readyState!="loaded"&&m.readyState!="complete"||(nKo(m,t.cleanupWhenDone||!1,X),Q.callback(null))};
m.onerror=function(){nKo(m,!0,X);Q.errback(new f28(0,"Error while loading script "+b))};
q=t.attributes||{};_.kJ.extend(q,{type:"text/javascript",charset:"UTF-8"});zcN(m,q);_.H7(m,W);gKr(e).appendChild(m);return Q};
gKr=function(W){var e=oh("HEAD",W);return e&&e.length!==0?e[0]:W.documentElement};
CpN=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&nKo(W,!0,this.timeout_)}};
nKo=function(W,e,t){t!=null&&_.tz.clearTimeout(t);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
e&&window.setTimeout(function(){_.BX(W)},0)};
f28=function(W,e){var t="Jsloader error (code #"+W+")";e&&(t+=": "+e);_.WZ.call(this,t);this.code=W};
_.QP(f28,_.WZ);var JOS=_.Nw(["https://apis.google.com/js/api.js"]),x5B=_.bN(JOS),hiB=function(W,e){var t=!1,b=OhB(W,e).then(function(q){t=!0;return q}),m=_.X7e(5E3).then(function(){return t?OhB(W,e):MCZ(e).then(function(q){return sbB(q,W)})});
return Nlb([b,m])},OhB=function(W,e){return HhS(e).then(function(t){return sbB(t,W)})},sbB=function(W,e){var t=_.m2(e,"gapi.")?e.slice(5):e;
return W[t]?_.aT(W[t]):new _.c3(function(b,m){var q=jF(function(){m(Error("cb"))},3E4);
W.load(e,{callback:function(){_.tz.clearTimeout(q);b(W[t])},
onerror:function(Q){_.tz.clearTimeout(q);m(Q)}})})},HhS=function(W){return W.gapi&&W.gapi.load?_.aT(W.gapi):MCZ(W)},MCZ=function(W){return _.TPP(x5B,{document:W.document}).then(function(){return W.gapi})},KJh=function(){};
KJh.prototype.load=function(W,e){e=e===void 0?window:e;var t=Date.now();return hiB(W,e).then(function(b){var m=Date.now();return{library:b,loadStartMs:t,loadEndMs:m}},function(b){throw b instanceof Error?b:Error(String(b));
})};var uxR=function(){_.ka.call(this);this.gapiLoader_=new KJh;this.origin_=null;this.gapiPickerIframeResolver_=_.UZ();this.gapiIframesResolver_=_.UZ();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.Z(uxR,_.ka);var PpD=function(W,e){var t=_.HO("gapi.iframes",e);return t?(W=Date.now(),_.aT({library:t,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",e)},VCv=function(W,e,t,b,m,q){var Q=!1;
Q=Q===void 0?!1:Q;PpD(W,C8(e.ownerDocument)).then(function(X){var I=X.library;W.gapiIframesResolver_.resolve(I);X=W.gapiPickerIframeResolver_;var u=X.resolve,c=Q;c=c===void 0?!1:c;var v={};v["host-message-handler"]=t;W.hostMessageHandlerInternal_=v;var D=_.Ya(b);D=_.Ya(D);D=_.tF(_.eo(_.Wh(new _.UT,D.scheme_),D.JSC$8077_domain_),D.JSC$8077_port_).toString();W.origin_=D;D=(new QhS).setUrl(b);D.JSC$8092_obj_.where=e;D.JSC$8092_obj_.allowPost=c;D.JSC$8092_obj_.messageHandlers=v;c=_.HO("makeWhiteListIframesFilter",
I)([W.origin_]);D.JSC$8092_obj_.messageHandlersFilter=c;m!=null&&D.setId(m);q!=null&&(D.JSC$8092_obj_.rpctoken=q);c=RFN(D);c.JSC$8089_obj_.style={display:"block","min-width":"100%",width:"1px"};c.JSC$8089_obj_.height="100%";RFN(D).value().allow="camera 'src' "+W.origin_;I=I.getContext().openChild(D.value());u.call(X,I)},function(X){W.gapiIframesResolver_.reject(X);
W.gapiPickerIframeResolver_.reject(X)});
return W.gapiPickerIframeResolver_.promise},ihy=function(W,e){return _.pV([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(t){var b=_.R(t);t=b.next().value;return(b=b.next().value)?b.send("picker-message-handler",e,void 0,_.HO("makeWhiteListIframesFilter",t)([W.origin_])):_.jg(Error("db"))})};
uxR.prototype.disposeInternal=function(){Y0P(this);_.ka.prototype.disposeInternal.call(this)};
var Y0P=function(W){W.gapiPickerIframeResolver_.promise.then(function(e){e&&(e.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var ziy=function(){this.nextId=0};var LJN=function(W,e){switch(W.action){case "select-contacts":W=U5U(W.contacts);break;case "visibility":W=W.visible;var t=new bj;W=_.hs(t,1,7).setVisible(W);t={};t["iframe-command"]=W.serialize();W=t;break;default:W=null}return W?ihy(e,W):_.aT()},U5U=function(W){if(!W||W.length==0)return null;
var e=new bj;_.hs(e,1,11);var t=new ziy;W.forEach(function(b){if(b.email){var m=new ju;m=_.WN(m,2,b.name?b.name:b.email);var q=new tTS;b=_.RQG(q,1,_.OB,b.email,_.Hu);b=_.bF(m,27,b);m=b.setId;q=(new zX).setId(":"+(t.nextId++).toString(36));q=_.hs(q,2,12);b=m.call(b,q)}else b=null;b&&SI(e,7,ju,b)});
W={};W["iframe-command"]=e.serialize();return W};_.EKy=function(){if(yPK){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.vZ()))?W[1]:"0"}return _.pI9?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.vZ()))?W[0].replace(/_/g,"."):"10"):toZ?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.vZ()))?W[1]:""):CYz||nxs||feS?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.vZ()))?W[1].replace(/_/g,"."):""):""}();var gU;gU=function(W){return(W=W.exec(_.vZ()))?W[1]:""};
_.AON=function(){if(_.vb)return gU(/Firefox\/([0-9.]+)/);if(_.aP||Ei||ZoD)return sIc;if(_.G9){if(_.Jz()||_.uDv()){var W=gU(/CriOS\/([0-9.]+)/);if(W)return W}return gU(/Chrome\/([0-9.]+)/)}if(_.JQ&&!_.Jz())return gU(/Version\/([0-9.]+)/);if(ZcG||$gR){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.vZ()))return W[1]+"."+W[2]}else if(Vqc)return(W=gU(/Android\s+([0-9.]+)/))?W:gU(/Version\/([0-9.]+)/);return""}();var NPv=function(){};
_.q7(NPv);NPv.prototype.nextId_=0;_.TR=function(W){return":"+(W.nextId_++).toString(36)};var JF=function(W){_.ZY.call(this);this.JSC$8187_dom_=W||vK();this.JSC$8187_id_=null;this.inDocument_=!1;this.JSC$8187_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.QP(JF,_.ZY);JF.prototype.idGenerator_=NPv.getInstance();JF.prototype.getId=function(){return this.JSC$8187_id_||(this.JSC$8187_id_=_.TR(this.idGenerator_))};
JF.prototype.setId=function(W){this.parent_&&this.parent_.childIndex_&&(_.kJ.remove(this.parent_.childIndex_,this.JSC$8187_id_),_.kJ.add(this.parent_.childIndex_,W,this));this.JSC$8187_id_=W};
JF.prototype.getElement=function(){return this.JSC$8187_element_};
var xZ=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.bk(W));return W.googUiComponentHandler_},d5S=function(W,e){if(W==e)throw Error("eb");
var t;if(t=e&&W.parent_&&W.JSC$8187_id_){t=W.parent_;var b=W.JSC$8187_id_;t=t.childIndex_&&b?_.kJ.get(t.childIndex_,b)||null:null}if(t&&W.parent_!=e)throw Error("eb");W.parent_=e;JF.superClass_.setParentEventTarget.call(W,e)};
JF.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("fb");JF.superClass_.setParentEventTarget.call(this,W)};
JF.prototype.JSC$8189_createDom=function(){this.JSC$8187_element_=this.JSC$8187_dom_.createElement("DIV")};
JF.prototype.render=function(W){W7P(this,W)};
var W7P=function(W,e,t){if(W.inDocument_)throw Error("gb");W.JSC$8187_element_||W.JSC$8189_createDom();e?e.insertBefore(W.JSC$8187_element_,t||null):W.JSC$8187_dom_.JSC$7372_document_.body.appendChild(W.JSC$8187_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.r=JF.prototype;_.r.decorate=function(W){if(this.inDocument_)throw Error("gb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var e=_.n8(W);this.JSC$8187_dom_&&this.JSC$8187_dom_.JSC$7372_document_==e||(this.JSC$8187_dom_=vK(W));this.decorateInternal(W);this.enterDocument()}else throw Error("hb");};
_.r.canDecorate=function(){return!0};
_.r.decorateInternal=function(W){this.JSC$8187_element_=W};
_.r.enterDocument=function(){this.inDocument_=!0;eTb(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.r.exitDocument=function(){eTb(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.r.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);eTb(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$8187_element_&&_.BX(this.JSC$8187_element_);this.parent_=this.model_=this.JSC$8187_element_=this.childIndex_=this.children_=null;JF.superClass_.disposeInternal.call(this)};
_.r.getModel=function(){return this.model_};
_.r.addChild=function(W,e){var t=this.children_?this.children_.length:0;if(W.inDocument_&&(e||!this.inDocument_))throw Error("gb");if(t<0||t>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.kJ.set(this.childIndex_,W.getId(),W),_.UL(this.children_,W)):_.kJ.add(this.childIndex_,W.getId(),W);d5S(W,this);_.BGc(this.children_,t,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(e=this.getContentElement(),
(e.childNodes[t]||null)!=W.getElement()&&(W.getElement().parentElement==e&&e.removeChild(W.getElement()),t=e.childNodes[t]||null,e.insertBefore(W.getElement(),t))):e?(this.JSC$8187_element_||this.JSC$8189_createDom(),t=this.children_?this.children_[t+1]||null:null,W7P(W,this.getContentElement(),t?t.JSC$8187_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$8187_element_&&W.JSC$8187_element_.parentNode&&W.JSC$8187_element_.parentNode.nodeType==1&&W.enterDocument()};
_.r.getContentElement=function(){return this.JSC$8187_element_};
var eTb=function(W,e){W.children_&&W.children_.forEach(e,void 0)};
JF.prototype.removeChild=function(W,e){if(W){var t=typeof W==="string"?W:W.getId();W=this.childIndex_&&t?_.kJ.get(this.childIndex_,t)||null:null;t&&W&&(_.kJ.remove(this.childIndex_,t),_.UL(this.children_,W),e&&(W.exitDocument(),W.JSC$8187_element_&&_.BX(W.JSC$8187_element_)),d5S(W,null))}if(!W)throw Error("jb");return W};_.QP(rJS,mDD);_.QP(qtS,mDD);var tmN;var bte=function(W,e){e?W.setAttribute("role",e):W.removeAttribute("role")},Ox=function(W,e,t){Array.isArray(t)&&(t=t.join(" "));
var b="aria-"+e;t===""||t==void 0?(tmN||(t={},tmN=(t.atomic=!1,t.autocomplete="none",t.dropeffect="none",t.haspopup=!1,t.live="off",t.multiline=!1,t.multiselectable=!1,t.orientation="vertical",t.readonly=!1,t.relevant="additions text",t.required=!1,t.sort="none",t.busy=!1,t.disabled=!1,t.hidden=!1,t.invalid="false",t)),t=tmN,e in t?W.setAttribute(b,t[e]):W.removeAttribute(b)):W.setAttribute(b,t)};var mDb;_.MR=function(W,e,t){_.ZY.call(this);this.target=W;this.handle=e||W;this.limits=t||new xV(NaN,NaN,NaN,NaN);this.JSC$8192_document_=_.n8(W);this.JSC$8192_eventHandler_=new _.bk(this);_.w$(this,this.JSC$8192_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;_.p4(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=mDb};
_.QP(_.MR,_.ZY);mDb=_.tz.document&&_.tz.document.documentElement&&!!_.tz.document.documentElement.setCapture&&!!_.tz.document.releaseCapture;_.rJZ=function(W,e){W.hysteresisDistanceSquared_=Math.pow(e,2)};
_.r=_.MR.prototype;_.r.setEnabled=function(W){this.enabled_=W};
_.r.disposeInternal=function(){_.MR.superClass_.disposeInternal.call(this);_.lj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8192_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8192_document_.releaseCapture();this.handle=this.target=null};
_.r.startDrag=function(W){var e=W.type=="mousedown";if(!this.enabled_||this.dragging_||e&&(W.event_.button!=0||_.pI9&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new sx("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,e&&W.preventDefault();else return;else e&&W.preventDefault();e=this.JSC$8192_document_;var t=e.documentElement,b=!this.useSetCapture_;this.JSC$8192_eventHandler_.listen(e,["touchmove","mousemove"],this.handleMove_,
{capture:b,passive:!1});this.JSC$8192_eventHandler_.listen(e,["touchend","mouseup"],this.endDrag,b);this.useSetCapture_?(t.setCapture(!1),this.JSC$8192_eventHandler_.listen(t,"losecapture",this.endDrag)):this.JSC$8192_eventHandler_.listen(C8(e),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8192_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,b);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=cK(vK(this.JSC$8192_document_))}};
_.r.endDrag=function(W,e){this.JSC$8192_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8192_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new sx("end",this,W.clientX,W.clientY,W,qtZ(this,this.deltaX),RTb(this,this.deltaY),e||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.r.handleMove_=function(W){if(this.enabled_){var e=W.clientX-this.clientX,t=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var b=this.startX-this.clientX,m=this.startY-this.clientY;if(b*b+m*m>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new sx("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}t=QAP(this,e,t);e=t.x;t=t.y;this.dragging_&&this.dispatchEvent(new sx("beforedrag",
this,W.clientX,W.clientY,W,e,t))&&(F7o(this,W,e,t),W.preventDefault())}};
var QAP=function(W,e,t){var b=cK(vK(W.JSC$8192_document_));e+=b.x-W.pageScroll.x;t+=b.y-W.pageScroll.y;W.pageScroll=b;W.deltaX+=e;W.deltaY+=t;return new _.jH(qtZ(W,W.deltaX),RTb(W,W.deltaY))};
_.MR.prototype.onScroll_=function(W){var e=QAP(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;F7o(this,W,e.x,e.y)};
var F7o=function(W,e,t,b){W.target.style.left=t+"px";W.target.style.top=b+"px";W.dispatchEvent(new sx("drag",W,e.clientX,e.clientY,e,t,b))},qtZ=function(W,e){var t=W.limits;
W=isNaN(t.left)?null:t.left;t=isNaN(t.width)?0:t.width;return Math.min(W!=null?W+t:Infinity,Math.max(W!=null?W:-Infinity,e))},RTb=function(W,e){var t=W.limits;
W=isNaN(t.top)?null:t.top;t=isNaN(t.height)?0:t.height;return Math.min(W!=null?W+t:Infinity,Math.max(W!=null?W:-Infinity,e))};
_.MR.prototype.isDragging=function(){return this.dragging_};
var sx=function(W,e,t,b,m,q,Q){_.DY.call(this,W);this.clientX=t;this.clientY=b;this.browserEvent=m;this.left=q!==void 0?q:e.deltaX;this.top=Q!==void 0?Q:e.deltaY};
_.QP(sx,_.DY);var hF=function(W){this.JSC$8199_map_=new Map;var e=arguments.length;if(e>1){if(e%2)throw Error("pa");for(var t=0;t<e;t+=2)this.set(arguments[t],arguments[t+1])}else W&&this.addAll(W)};
_.r=hF.prototype;_.r.getCount=function(){return this.JSC$8199_map_.size};
_.r.getValues=function(){return Array.from(this.JSC$8199_map_.values())};
_.r.getKeys=function(){return Array.from(this.JSC$8199_map_.keys())};
_.r.containsKey=function(W){return this.JSC$8199_map_.has(W)};
_.r.containsValue=function(W){return this.getValues().some(function(e){return e==W})};
_.r.equals=function(W,e){var t=this;e=e===void 0?function(b,m){return b===m}:e;
return this===W?!0:this.JSC$8199_map_.size!=W.getCount()?!1:this.getKeys().every(function(b){return e(t.JSC$8199_map_.get(b),W.get(b))})};
_.r.isEmpty=function(){return this.JSC$8199_map_.size==0};
_.r.clear=function(){this.JSC$8199_map_.clear()};
_.r.remove=function(W){return this.JSC$8199_map_.delete(W)};
_.r.get=function(W,e){return this.JSC$8199_map_.has(W)?this.JSC$8199_map_.get(W):e};
_.r.set=function(W,e){this.JSC$8199_map_.set(W,e);return this};
_.r.addAll=function(W){if(W instanceof hF){W=_.R(W.JSC$8199_map_);for(var e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;this.JSC$8199_map_.set(e,t)}}else if(W)for(W=_.R(Object.entries(W)),e=W.next();!e.done;e=W.next())t=_.R(e.value),e=t.next().value,t=t.next().value,this.JSC$8199_map_.set(e,t)};
_.r.forEach=function(W,e){var t=this;e=e===void 0?this:e;this.JSC$8199_map_.forEach(function(b,m){return W.call(e,b,m,t)})};
_.r.clone=function(){return new hF(this)};(function(){for(var W=["ms","moz","webkit","o"],e,t=0;e=W[t]&&!_.tz.requestAnimationFrame;++t)_.tz.requestAnimationFrame=_.tz[e+"RequestAnimationFrame"],_.tz.cancelAnimationFrame=_.tz[e+"CancelAnimationFrame"]||_.tz[e+"CancelRequestAnimationFrame"];if(!_.tz.requestAnimationFrame){var b=0;_.tz.requestAnimationFrame=function(m){var q=(new Date).getTime(),Q=Math.max(0,16-(q-b));b=q+Q;return _.tz.setTimeout(function(){m(q+Q)},Q)};
_.tz.cancelAnimationFrame||(_.tz.cancelAnimationFrame=function(m){clearTimeout(m)})}})();
var XOZ=[[],[]],Ibr=0,abe=!1,wOU=0,cJU=function(W,e){var t=wOU++,b={measureTask:{id:t,fn:W.measure,context:e},mutateTask:{id:t,fn:W.mutate,context:e},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(b.args||(b.args=[]),b.args.length=0,b.args.push.apply(b.args,arguments),b.args.push(b.state)):b.args&&b.args.length!=0?(b.args[0]=b.state,b.args.length=1):b.args=[b.state];b.isScheduled||(b.isScheduled=!0,XOZ[Ibr].push(b));abe||(abe=!0,window.requestAnimationFrame(uxy))}},uxy=
function(){abe=!1;
var W=XOZ[Ibr],e=W.length;Ibr=(Ibr+1)%2;for(var t,b=0;b<e;++b){t=W[b];var m=t.measureTask;t.isScheduled=!1;m.fn&&m.fn.apply(m.context,t.args)}for(b=0;b<e;++b)t=W[b],m=t.mutateTask,t.isScheduled=!1,m.fn&&m.fn.apply(m.context,t.args),t.state={};W.length=0};var vqr=_.Nw(["about:blank"]),GnS=_.Nw(["javascript:undefined"]),DDU=_.bN(vqr);_.Xh(DDU);var StN=_.bN(GnS);_.Xh(StN);var Hh=function(W){_.ZY.call(this);this.JSC$8205_element_=W;this.listenKeyIn_=_.p4(this.JSC$8205_element_,"focus",this,!0);this.listenKeyOut_=_.p4(this.JSC$8205_element_,"blur",this,!0)};
_.QP(Hh,_.ZY);Hh.prototype.handleEvent=function(W){var e=new _.SF(W.event_);e.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(e)};
Hh.prototype.disposeInternal=function(){Hh.superClass_.disposeInternal.call(this);Zj(this.listenKeyIn_);Zj(this.listenKeyOut_);delete this.JSC$8205_element_};var BMU=function(W,e){this.JSC$8208_element_=W;this.JSC$8208_dom_=e};var KH=function(W,e){JF.call(this,e);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=cJU({mutate:this.resizeBackground_},this);cJU({mutate:this.updateModalAndBackground_},this)};
_.QP(KH,JF);_.r=KH.prototype;_.r.focusHandler_=null;_.r.visible_=!1;_.r.bgEl_=null;_.r.bgIframeEl_=null;_.r.tabCatcherElement_=null;_.r.backwardTabWrapInProgress_=!1;_.r.getCssClass=function(){return"goog-modalpopup"};
_.r.getBackgroundElement=function(){return this.bgEl_};
_.r.JSC$8189_createDom=function(){KH.superClass_.JSC$8189_createDom.call(this);var W=this.getElement(),e=aR(this.getCssClass()).split(" ");ij(W,e);W.tabIndex=0;_.L3(W,!1);oqD(this);lbe(this)};
var oqD=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var e=W.JSC$8187_dom_.JSC$7374_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.fF(e,DDU);W.bgIframeEl_=e;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.L3(W.bgIframeEl_,!1);lDh(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$8187_dom_.JSC$7374_createDom("DIV",W.getCssClass()+"-bg"),_.L3(W.bgEl_,!1))},lbe=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$8187_dom_.createElement("SPAN"),_.L3(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.r=KH.prototype;_.r.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.r.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.r.decorateInternal=function(W){KH.superClass_.decorateInternal.call(this,W);W=aR(this.getCssClass()).split(" ");ij(this.getElement(),W);oqD(this);lbe(this);this.getElement().tabIndex=0;_.L3(this.getElement(),!1)};
_.r.enterDocument=function(){this.bgIframeEl_&&_.fd(this.bgIframeEl_,this.getElement());_.fd(this.bgEl_,this.getElement());KH.superClass_.enterDocument.call(this);_.gj(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Hh(this.JSC$8187_dom_.JSC$7372_document_);xZ(this).listen(this.focusHandler_,"focusin",this.onFocus);ZtU(this,!1)};
_.r.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.NL(this.focusHandler_);KH.superClass_.exitDocument.call(this);_.BX(this.bgIframeEl_);_.BX(this.bgEl_);_.BX(this.tabCatcherElement_)};
_.r.setVisible=function(W){if(W!=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_&&ZtU(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8187_dom_.JSC$7372_document_.activeElement}catch(m){}this.updateModalAndBackground_();xZ(this).listen(this.JSC$8187_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8187_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);$DD(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)lL(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){xZ(this).unlisten(this.JSC$8187_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8187_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)lL(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var e=this.JSC$8187_dom_,t=e.JSC$7372_document_.body,b=e.JSC$7372_document_.activeElement||t;if(!this.lastFocus_||this.lastFocus_==t){this.lastFocus_=null;break a}(b==t||e.contains(this.getElement(),b))&&this.lastFocus_.focus()}catch(m){}this.lastFocus_=
null}}};
var ZtU=function(W,e){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new BMU(W.JSC$8187_element_,W.JSC$8187_dom_));W=W.modalAriaVisibilityHelper_;if(e){W.hiddenElements_||(W.hiddenElements_=[]);e=W.JSC$8208_dom_.getChildren(W.JSC$8208_dom_.JSC$7372_document_.body);for(var t=0;t<e.length;t++){var b=e[t],m;if(m=b!=W.JSC$8208_element_)m=b.getAttribute("aria-hidden"),m=!(m==null||m==void 0?0:String(m));m&&(Ox(b,"hidden",!0),W.hiddenElements_.push(b))}}else if(W.hiddenElements_){for(e=0;e<
W.hiddenElements_.length;e++)W.hiddenElements_[e].removeAttribute("aria-hidden");W.hiddenElements_=null}};
KH.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var $DD=function(W,e){W.bgIframeEl_&&_.L3(W.bgIframeEl_,e);W.bgEl_&&_.L3(W.bgEl_,e);_.L3(W.getElement(),e);_.L3(W.tabCatcherElement_,e)};
_.r=KH.prototype;_.r.onShow=function(){this.dispatchEvent("show")};
_.r.onHide=function(){$DD(this,!1);this.dispatchEvent("hide")};
_.r.isVisible=function(){return this.visible_};
_.r.focus=function(){this.focusElement_()};
_.r.resizeBackground_=function(){this.bgIframeEl_&&_.L3(this.bgIframeEl_,!1);this.bgEl_&&_.L3(this.bgEl_,!1);var W=this.JSC$8187_dom_.JSC$7372_document_;var e=_.uN(C8(this.JSC$8187_dom_.JSC$7372_document_)||window);var t=Math.max(e.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(e.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.L3(this.bgIframeEl_,!0),_.Dov(this.bgIframeEl_,t,W));this.bgEl_&&(_.L3(this.bgEl_,!0),_.Dov(this.bgEl_,
t,W))};
_.r.reposition=function(){var W;if(_.GZh(this.getElement())=="fixed")var e=W=0;else e=cK(this.JSC$8187_dom_),W=e.x,e=e.y;var t=BBr(this.getElement());var b=_.uN(C8(this.JSC$8187_dom_.JSC$7372_document_)||window);W=Math.max(W+b.width/2-t.width/2,0);e=Math.max(e+b.height/2-t.height/2,0);s8(this.getElement(),W,e);s8(this.tabCatcherElement_,W,e)};
_.r.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&jF(this.focusElement_,0,this)};
_.r.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.r.disposeInternal=function(){_.NL(this.popupShowTransition_);this.popupShowTransition_=null;_.NL(this.popupHideTransition_);this.popupHideTransition_=null;_.NL(this.bgShowTransition_);this.bgShowTransition_=null;_.NL(this.bgHideTransition_);this.bgHideTransition_=null;KH.superClass_.disposeInternal.call(this)};var OJ=function(W,e,t){KH.call(this,e,t);this.JSC$8218_class_=W||"modal-dialog";this.buttons_=(new Ph).addButton(knB,!0).addButton(pOo,!1,!0)};
_.QP(OJ,KH);_.r=OJ.prototype;_.r.escapeToCancel_=!0;_.r.hasTitleCloseButton_=!0;_.r.modal_=!0;_.r.draggable_=!0;_.r.backgroundElementOpacity_=.5;_.r.title_="";_.r.JSC$8220_dragger_=null;_.r.JSC$8220_disposeOnHide_=!1;_.r.titleEl_=null;_.r.titleTextEl_=null;_.r.titleTextId_=null;_.r.titleCloseEl_=null;_.r.contentEl_=null;_.r.buttonEl_=null;_.r.getCssClass=function(){return this.JSC$8218_class_};
_.r.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.Jt(this.titleTextEl_,W)};
_.r.getTitle=function(){return this.title_};
_.r.getContent=function(){return""};
_.r.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var yJe=function(W){W.getElement()||W.render();return W.getElement()};
OJ.prototype.getBackgroundElement=function(){this.getElement()||this.render();return OJ.superClass_.getBackgroundElement.call(this)};
var jAe=function(W,e){W.backgroundElementOpacity_=e;W.getElement()&&(e=W.getBackgroundElement())&&lDh(e,W.backgroundElementOpacity_)};
OJ.prototype.setDraggable=function(W){this.draggable_=W;CVU(this,W&&this.inDocument_)};
OJ.prototype.JSC$8220_handleDrag=function(){};
var CVU=function(W,e){var t=aR(W.JSC$8218_class_+"-title-draggable").split(" ");W.getElement()&&(e?ij(W.titleEl_,t):rDU(W.titleEl_,t));e&&!W.JSC$8220_dragger_?(e=new _.MR(W.getElement(),W.titleEl_),W.JSC$8220_dragger_=e,ij(W.titleEl_,t),_.p4(W.JSC$8220_dragger_,"start",W.setDraggerLimits_,!1,W),_.p4(W.JSC$8220_dragger_,"drag",W.JSC$8220_handleDrag,!1,W)):!e&&W.JSC$8220_dragger_&&(W.JSC$8220_dragger_.dispose(),W.JSC$8220_dragger_=null)};
_.r=OJ.prototype;
_.r.JSC$8189_createDom=function(){OJ.superClass_.JSC$8189_createDom.call(this);var W=this.getElement(),e=this.JSC$8187_dom_;this.titleTextId_=this.getId();var t=this.getId()+".contentEl";this.titleEl_=e.JSC$7374_createDom("DIV",this.JSC$8218_class_+"-title",this.titleTextEl_=e.JSC$7374_createDom("SPAN",{className:this.JSC$8218_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=e.JSC$7374_createDom("SPAN",this.JSC$8218_class_+"-title-close"));NGS(W,this.titleEl_,this.contentEl_=
e.JSC$7374_createDom("DIV",{className:this.JSC$8218_class_+"-content",id:t}),this.buttonEl_=e.JSC$7374_createDom("DIV",this.JSC$8218_class_+"-buttons"));bte(this.titleTextEl_,"heading");bte(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Ox(this.titleCloseEl_,"label","Close");bte(W,"dialog");Ox(W,"labelledby",this.titleTextId_||"");_.L3(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$8221_element_=this.buttonEl_,W.render());_.L3(this.buttonEl_,!!this.buttons_);
jAe(this,this.backgroundElementOpacity_)};
_.r.decorateInternal=function(W){OJ.superClass_.decorateInternal.call(this,W);W=this.getElement();var e=this.JSC$8218_class_+"-content";this.contentEl_=kV(document,null,e,W)[0];this.contentEl_||(this.contentEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",e),W.appendChild(this.contentEl_));e=this.JSC$8218_class_+"-title";var t=this.JSC$8218_class_+"-title-text",b=this.JSC$8218_class_+"-title-close";(this.titleEl_=kV(document,null,e,W)[0])?(this.titleTextEl_=kV(document,null,t,this.titleEl_)[0],this.titleCloseEl_=
kV(document,null,b,this.titleEl_)[0]):(this.titleEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",e),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=aDP(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.yT("SPAN",{className:t,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Ox(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8187_dom_.JSC$7374_createDom("SPAN",
b),this.titleEl_.appendChild(this.titleCloseEl_));_.L3(this.titleCloseEl_,this.hasTitleCloseButton_);e=this.JSC$8218_class_+"-buttons";(this.buttonEl_=kV(document,null,e,W)[0])?(this.buttons_=new Ph(this.JSC$8187_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8187_dom_.JSC$7374_createDom("DIV",e),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$8221_element_=this.buttonEl_,W.render()),_.L3(this.buttonEl_,!!this.buttons_));jAe(this,this.backgroundElementOpacity_)};
_.r.enterDocument=function(){OJ.superClass_.enterDocument.call(this);xZ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);xZ(this).listen(this.buttonEl_,"click",this.onButtonClick_);CVU(this,this.draggable_);xZ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();bte(W,"dialog");this.titleTextEl_.id!==""&&Ox(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$8187_dom_;
var e=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(e)}this.isVisible()&&ZtU(this,!1)}};
_.r.exitDocument=function(){this.isVisible()&&this.setVisible(!1);CVU(this,!1);OJ.superClass_.exitDocument.call(this)};
_.r.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),OJ.superClass_.setVisible.call(this,W))};
_.r.onShow=function(){OJ.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.r.onHide=function(){OJ.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8220_disposeOnHide_&&this.dispose()};
_.r.setDraggerLimits_=function(){var W=this.JSC$8187_dom_.JSC$7372_document_,e=_.uN(C8(W)||window),t=Math.max(W.body.scrollWidth,e.width);W=Math.max(W.body.scrollHeight,e.height);var b=BBr(this.getElement());_.GZh(this.getElement())=="fixed"?this.JSC$8220_dragger_.limits=new xV(0,0,Math.max(0,e.width-b.width),Math.max(0,e.height-b.height)):this.JSC$8220_dragger_.limits=new xV(0,0,t-b.width,W-b.height)};
_.r.onTitleCloseClick_=function(){nqN(this)};
var nqN=function(W){if(W.hasTitleCloseButton_){var e=W.buttons_,t=e&&e.cancelButton_;t?(e=e.get(t),W.dispatchEvent(new V3(t,e))&&W.setVisible(!1)):W.setVisible(!1)}},fbS=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.L3(W.titleCloseEl_,W.hasTitleCloseButton_)};
OJ.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;OJ.superClass_.disposeInternal.call(this)};
OJ.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var e=this.buttons_.get(W);this.dispatchEvent(new V3(W,e))&&this.setVisible(!1)}};
OJ.prototype.onKey_=function(W){var e=!1,t=!1,b=this.buttons_,m=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var q=b&&b.cancelButton_;m=m.tagName=="SELECT"&&!m.disabled;q&&!m?(t=!0,e=b.get(q),e=this.dispatchEvent(new V3(q,e))):m||(e=!0)}else{if(W.keyCode==9&&W.shiftKey&&m==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(c){}jF(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(m.tagName=="BUTTON"&&!m.disabled)q=m.name;
else if(m==this.titleCloseEl_)nqN(this);else if(b){var Q=b.defaultButton_,X;if(X=Q)a:{X=oh("BUTTON",b.JSC$8221_element_);for(var I,u=0;I=X[u];u++)if(I.name==Q||I.id==Q){X=I;break a}X=null}m=(m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.tagName=="A")&&!m.disabled;!X||X.disabled||m||(q=Q)}q&&b&&(t=!0,e=this.dispatchEvent(new V3(q,String(b.get(q)))))}else m!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||nqN(this);if(e||t)W.stopPropagation(),W.preventDefault();e&&this.setVisible(!1)};
var V3=function(W,e){this.type="dialogselect";this.key=W;this.caption=e};
_.QP(V3,_.DY);var Ph=function(W){hF.call(this);W||vK();this.cancelButton_=this.JSC$8221_element_=this.defaultButton_=null};
_.QP(Ph,hF);_.r=Ph.prototype;_.r.clear=function(){hF.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.r.set=function(W,e,t,b){hF.prototype.set.call(this,W,e);t&&(this.defaultButton_=W);b&&(this.cancelButton_=W);return this};
_.r.addButton=function(W,e,t){return this.set(W.key,W.caption,e,t)};
_.r.render=function(){if(this.JSC$8221_element_){_.KF(this.JSC$8221_element_,DDZ);var W=vK(this.JSC$8221_element_);this.forEach(function(e,t){e=W.JSC$7374_createDom("BUTTON",{name:t},e);t==this.defaultButton_&&(e.className="goog-buttonset-default");this.JSC$8221_element_.appendChild(e)},this)}};
_.r.decorate=function(W){if(W&&W.nodeType==1){this.JSC$8221_element_=W;W=oh("BUTTON",this.JSC$8221_element_);for(var e,t,b,m=0;e=W[m];m++)if(t=e.name||e.id,b=aDP(e)||e.value,t){var q=m==0;this.set(t,b,q,e.name=="cancel");q&&_.Nk(e,"goog-buttonset-default")}}};
_.r.getElement=function(){return this.JSC$8221_element_};
var knB={key:"ok",caption:"OK"},pOo={key:"cancel",caption:"Cancel"},gqU={key:"yes",caption:"Yes"},TMy={key:"no",caption:"No"},JJD={key:"save",caption:"Save"},xDU={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Ph).addButton(knB,!0,!0),(new Ph).addButton(knB,!0).addButton(pOo,!1,!0),(new Ph).addButton(gqU,!0).addButton(TMy,!1,!0),(new Ph).addButton(gqU).addButton(TMy,!0).addButton(pOo,!1,!0),(new Ph).addButton(xDU).addButton(JJD).addButton(pOo,!0,!0));_.QP(RTD,OJ);_.QP(QAG,Mc);var Oto=_.Nw(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Mmy=_.Nw(["//apis.google.com/js/rpc.js"]),GnL=_.bN(Oto),vqQ=_.bN(Mmy),XOS=null;var sJ=function(W,e){_.ZY.call(this);this.JSC$8230_element_=W;W=_.A7(this.JSC$8230_element_)?this.JSC$8230_element_:this.JSC$8230_element_?this.JSC$8230_element_.body:null;this.isRtl_=!!W&&_.Zre(W);this.listenKey_=_.p4(this.JSC$8230_element_,_.w2?"DOMMouseScroll":"mousewheel",this,e)};
_.QP(sJ,_.ZY);sJ.prototype.handleEvent=function(W){var e=0,t=0,b=W.event_;b.type=="mousewheel"?(W=sAD(-b.wheelDelta),b.wheelDeltaX!==void 0?(e=sAD(-b.wheelDeltaX),t=sAD(-b.wheelDeltaY)):t=W):(W=b.detail,W>100?W=3:W<-100&&(W=-3),b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS?e=W:t=W);typeof this.maxDeltaX_==="number"&&(e=_.Mw(e,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(t=_.Mw(t,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(e=-e);e=new hTe(W,b,e,t);this.dispatchEvent(e)};
var sAD=function(W){return _.uI&&(_.pI9||jIK)&&W%40!=0?W:W/40};
sJ.prototype.disposeInternal=function(){sJ.superClass_.disposeInternal.call(this);Zj(this.listenKey_);this.listenKey_=null};
var hTe=function(W,e,t,b){_.SF.call(this,e);this.type="mousewheel";this.detail=W;this.deltaX=t;this.deltaY=b};
_.QP(hTe,_.SF);_.Fq=function(W){var e="instance_";if(W.instance_&&W.hasOwnProperty(e))return W.instance_;e=new W;return W.instance_=e};var cJZ;var HtP=_.Nw(["https://about:blank"]),K7o=_.Nw(['javascript:""']),PVS=_.Nw(["about:blank"]);_.QP(EJ,RTD);_.r=EJ.prototype;_.r.JSC$8238_url_="";_.r.JSC$8238_iframe_=null;_.r.iframeLoaded_=!1;_.r.loadedFired_=!1;_.r.callback_=function(){};
_.r.enterDocument=function(){EJ.superClass_.enterDocument.call(this);wOZ(this.getBackgroundElement(),xZ(this))};
_.r.render=function(W){var e=this;EJ.superClass_.render.call(this,W);this.useGapi_?PpD(this.iframeManager_,window).then(function(){return Vmr(e)}).then(null,function(){e.callback_({action:"error"})}):ith(this)};
var Vmr=function(W){var e=W.JSC$8187_dom_.JSC$7374_createDom("div",["picker-dialog-content","picker-frame"]);_.L3(e,!1);W.getContentElement().appendChild(e);return VCv(W.iframeManager_,e,function(t){var b=vlB(t["iframe-command"]);switch(b.getCommand()){case 1:t=W.callback_;b=_.mx(b,tn,2);var m="";switch(b.getStatus()){case 2:m="cancel";break;case 1:m="picked";break;case 3:m="error"}var q=_.eh(b,ju,2,_.tE(d8z));b=q.length===0?{action:m}:Zhr(q,m,_.mx(b,wuh,7));t.call(W,b);W.setVisible(!1);break;case 4:fbS(W);
W.callback_({action:"loaded"});break;case 7:case 8:t=W.callback_;a:{m=b.getCommand();q=_.mx(b,tn,2);switch(m){case 7:m="uploadScheduled";break;case 8:m="uploadStateChange";break;default:b={};break a}b=_.eh(q,ju,2,_.tE(d8z));if(b.length===0)b={action:m};else{var Q=_.mx(q,wuh,7);q=Q&&_.T9(Q,1);Q=a2v(Q);b=cOS(b,m,q,Q)}}t.call(W,b)}},W.JSC$8238_url_,W.targetId_,W.rpcToken_).then(function(t){W.JSC$8238_iframe_=t.getIframeEl();
YtB(W);_.L3(W.JSC$8238_iframe_.parentElement,!0);_.Nk(W.getElement(),"picker-dialog");zT8(W);return t})},ith=function(W){W.JSC$8238_iframe_=W.JSC$8187_dom_.JSC$7374_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.fF(W.JSC$8238_iframe_,UDv(W));_.Nk(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$8238_iframe_);xZ(W).listen(W.JSC$8238_iframe_,"load",function(){return void YtB(W)});
W.JSC$8238_iframe_.src=W.JSC$8238_url_;zT8(W)},Eqb=function(W){L7k(W,(0,_.p3)(function(e){e.setAuthToken(this.targetId_,this.rpcToken_)},W))},zT8=function(W){var e=_.zg(_.Ya(W.JSC$8238_url_),"title");
e&&W.setTitle(e)},UDv=function(W){return _.Igg("Internet Explorer")>=7&&_.m2(W.JSC$8238_url_,"https")?_.bN(HtP):_.aP?_.bN(K7o):_.bN(PVS)},YtB=function(W){Eqb(W);
W.iframeLoaded_=!0;W.JSC$8238_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
EJ.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var L7k=function(W,e){var t=W.JSC$8236_gadgetsDomHelper_;IbQ(function(){e(t.getWindow().gadgets.rpc)},t)};
EJ.prototype.setUrl=function(W){W=_.UJ(new _.UT(W),"rpcService",this.targetId_);_.UJ(W,"rpctoken",this.rpcToken_);_.rU(W,"rpctoken="+this.rpcToken_);_.Wh(W,"https");this.JSC$8238_url_=W.toString();this.JSC$8238_iframe_&&(this.JSC$8238_iframe_.src=this.JSC$8238_url_)};
var AJk=function(W,e){W.callback_=e;L7k(W,(0,_.p3)(function(t){t.register(this.targetId_,(0,_.p3)(this.handlePickerAction_,this))},W))};
EJ.prototype.handlePickerAction_=function(W){var e=W.action;e=="loaded"&&(this.loadedFired_=!0,NMP(this,new qtS(this.isVisible())),dDZ(this),fbS(this),xZ(this).unlisten(this.JSC$8187_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8238_iframe_.tabIndex=0);e!="picked"&&e!="cancel"||this.setVisible(!1);this.callback_(W)};
var dDZ=function(W){W.JSC$8238_appId_&&NMP(W,new rJS(W.JSC$8238_appId_,window.location.protocol+"//"+window.location.host))};
EJ.prototype.setRelayUrl=function(W){L7k(this,(0,_.p3)(function(e){e.setRelayUrl(this.targetId_,W)},this))};
var NMP=function(W,e){W.useGapi_&&LJN(e,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
L7k(W,(0,_.p3)(function(t){t.call(this.targetId_,"picker",null,e)},W))};
EJ.prototype.resizePicker_=function(){var W=C8(this.JSC$8187_dom_.JSC$7372_document_)||window;if(_.zg(_.Ya(this.JSC$8238_url_),"ignoreLimits")=="true")W=new _.aD(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.zg(_.Ya(this.JSC$8238_url_),"shadeDialog")=="true"){var e=yJe(this);e=$or(e);var t=_.uN(W);W=t.width-80;t=t.height-40;e&&(W-=e.left?e.left:0,W-=e.right?e.right:0,t-=e.top?e.top:0,t-=e.bottom?e.bottom:0);W=new _.aD(W>0?W:0,t>0?t:0)}else(e=this.preferredDialogWidth_)?(e=Math.max(320,
Math.min(1051,e)),(t=this.preferredDialogHeight_)||(t=_.uN(W).height*.85),t=Math.max(480,Math.min(650,t))):(e=_.uN(W),t=e.width*.618,t=t<e.height?Math.round(Math.max(480,Math.min(650,t*.85))):Math.round(Math.max(480,Math.min(650,e.height*.85))),e=Math.round(t/.618)),W=_.uN(W),e=Math.min(e,Math.max(W.width,320)),t=Math.min(t,Math.max(W.height,480)),W=new _.aD(e,t);_.Dov(this.getContentElement(),W);this.reposition()};
EJ.prototype.reposition=function(){if(_.zg(_.Ya(this.JSC$8238_url_),"shadeDialog")=="true"){var W=BBr(this.getElement()),e=_.uN(this.JSC$8187_dom_.getWindow());W=Math.floor(e.width/2-W.width/2);e=yJe(this);if(e=$or(e)){var t=e.left?e.left:0;t+=e.right?e.right:0;W=Math.floor(W-t/2)}W=W>0?W:0;e=cK(this.JSC$8187_dom_).y;s8(this.getElement(),W,e)}else EJ.superClass_.reposition.call(this)};
EJ.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var e=this.JSC$8187_dom_.getWindow();W?(this.resizePicker_(),xZ(this).listen(e,"resize",this.resizePicker_),this.iframeLoaded_||xZ(this).listen(e,"keydown",this.handleKeydown_)):(xZ(this).unlisten(e,"resize",this.resizePicker_),this.iframeLoaded_||xZ(this).unlisten(e,"keydown",this.handleKeydown_))}EJ.superClass_.setVisible.call(this,W);NMP(this,new qtS(W))};
EJ.prototype.focus=function(){EJ.superClass_.focus.call(this);if(this.JSC$8238_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8238_iframe_.focus()}catch(W){}};var gD=function(W,e){e=e===void 0?EJ:e;Mc.call(this,W);this.pickerConstructor=e;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.Z(gD,QAG);gD.prototype.JSC$8243_disposeOnHide_=!1;
gD.prototype.build=function(){this.JSC$8144_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8144_appId_);this.getRelayUrl()||this.setRelayUrl(_.bz(_.rU(_.mD(_.Ya(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var W=new this.pickerConstructor(WnS(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$8220_disposeOnHide_=this.JSC$8243_disposeOnHide_;
W.JSC$8238_appId_=this.JSC$8144_appId_;W.loadedFired_&&dDZ(W);AJk(W,this.callback_);return W};
var eZr=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
gD.prototype.getHeight=function(){return this.dialogHeight_};
gD.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
gD.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
gD.prototype.getWidth=function(){return this.dialogWidth_};
var teU=function(W){W.JSC$8243_disposeOnHide_=void 0;return W};
gD.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var bKU=function(W,e){W.urlParamMap_.set("selectButtonLabel",e);return W};
gD.prototype.setSize=function(W,e){this.dialogWidth_=W;this.dialogHeight_=e;return this};
gD.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var WnS=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",QbS(W.nav_));var e=new _.UT(W.getBaseUrl());W.urlParamMap_.forEach(function(t,b){_.UJ(e,b,t)});
return e};var qih=function(W,e){W.name!==void 0?(this.name=W.name,this.code=mzZ[W.name]):(this.code=W=W.code,this.name=rQP(W));_.WZ.call(this,JZG("%s %s",this.name,e))};
_.QP(qih,_.WZ);var rQP=function(W){var e=_.kJ.findKey(mzZ,function(t){return W==t});
if(e===void 0)throw Error("mb`"+W);return e},iz={},mzZ=(iz.AbortError=3,iz.EncodingError=5,iz.InvalidModificationError=9,iz.InvalidStateError=7,iz.NotFoundError=1,iz.NotReadableError=4,iz.NoModificationAllowedError=6,iz.PathExistsError=12,iz.QuotaExceededError=10,iz.SecurityError=2,iz.SyntaxError=8,iz.TypeMismatchError=11,iz);var RZb=function(W,e){_.DY.call(this,W.type,e);this.event_=W};
_.QP(RZb,_.DY);var Q_D=function(W,e,t){t===void 0&&(t=W.size);return W.slice?W.slice(e,t):null};var BMZ=new WeakMap,Stc=function(W,e){W=[W];for(var t=e.length-1;t>=0;--t)W.push(typeof e[t],e[t]);return W.join("\v")};_.lb2(function(){if(!_.tz.Blob)return!1;var W=new Uint8Array(100);try{var e=new Blob([W])}catch(t){return!1}return e.size!=100?!1:!0});
var FnU=_.lb2(function(){if(!_.tz.Blob)return!1;var W=new Uint8Array(100);try{var e=new Blob([W])}catch(t){return!1}return Q_D(e,0,1)===null?!1:!0});_.tz.U3bHHf!=null||(_.tz.U3bHHf=0);_.tz.U3bHHf++;var ZtZ={};var Wf=void 0;var knG=Symbol("ub");var hT2=tO("WizInjectionContext_Dispatcher");var rM=Symbol("vb");var cO=function(){},NQz=Symbol("wb"),oA=function(W){this.props=W;
this.__unmounted=!1};
oA.prototype.didPatch=function(){};
oA.prototype.didMount=function(){};
oA.prototype.didUnmount=function(){};
oA.prototype.didUpdate=function(){};var JJg=tO("WizInjectionContext_RootElement");var Ots=tO("WizInjectionContext_AppContext"),xDZ=tO("WizInjectionContext_ModelRootElement"),MmR=tO("WizInjectionContext_RendererData"),sAg=tO("WizInjectionContext_InjectingConstructor"),TMR=tO("WizInjectionContext_AsyncDeps"),HtG={};var zTK=!1;var AJz={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:BwR,enableLazyTsx:oxD,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:SfK,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.mJ=Object.assign({},{attributes:{},handleError:function(W){throw W;}},AJz);var Xik=Symbol("Ab"),hZG=Symbol("Bb"),VeL=Symbol("Cb"),KnQ=Symbol("Db"),AQz=Kr(function(W){return rP(W)&&Xik in W});var mzS=Symbol("Eb"),YZ={},teZ=(YZ[mzS]=!0,YZ.debugName="[component]",YZ.getComponentStack=function(){for(var W=[],e=this;e;)rQG(e)&&W.push(e.debugName),e=e.parent;return W},YZ.registerSignal=function(){},YZ.registerEffect=function(){},YZ);var q5=null,Qk=!1,IK9=1,Ib=Symbol("Fb"),D2={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var zR=Symbol("Gb"),Ux=Symbol("Hb"),X0=Symbol("Ib"),SiD=Object.assign({},D2,{value:zR,dirty:!0,error:null,equal:qiv,kind:"computed",producerMustRecompute:function(W){return W.value===zR||W.value===Ux},
producerRecomputeValue:function(W){if(W.value===Ux)throw Error("da");var e=W.value;W.value=Ux;var t=vwc(W),b=!1;try{var m=W.computation();Rb(null);b=e!==zR&&e!==X0&&m!==X0&&W.equal(e,m)}catch(q){m=X0,W.error=q}finally{GJs(W,t)}b?W.value=e:(W.value=m,W.version++)}});var ZKZ=function(){throw Error();};var kJs=null,owK=Object.assign({},D2,{equal:qiv,value:void 0,kind:"signal"});Object.assign({},D2,{value:zR,dirty:!0,error:null,equal:qiv,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===zR||W.value===Ux},
producerRecomputeValue:function(W){if(W.value===Ux)throw Error("da");var e=W.value;W.value=Ux;var t=vwc(W);try{var b=W.source();var m=W.computation(b,e===zR||e===X0?void 0:{source:W.sourceValue,value:e});W.sourceValue=b}catch(q){m=X0,W.error=q}finally{GJs(W,t)}e!==zR&&m!==X0&&W.equal(e,m)?W.value=e:(W.value=m,W.version++)}});Object.assign({},D2,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var yQg=Symbol("Jb"),cf=Symbol("Kb");var vf=Array.isArray;var OKQ;var IKv={},s_9=xzG(Object.assign({},{consumerAllowSignalWrites:!0},IKv)),Gn=xzG(Object.assign({},{consumerAllowSignalWrites:!0},IKv));var ob=0,lp=!1,LH=function(){this.queue=new Set};
LH.prototype.remove=function(W){this.queue.delete(W)};
LH.prototype.clear=function(){this.queue.clear()};
var aKP=function(){LH.apply(this,arguments)};
_.Z(aKP,LH);aKP.prototype.schedule=function(W){this.queue.add(W)};
aKP.prototype.flush=function(){if(this.queue.size){lp=!0;try{for(var W=_.R(this.queue),e=W.next();!e.done;e=W.next()){var t=e.value;this.queue.delete(t);try{t.run()}catch(b){wiv(b)}}}finally{lp=!1}}};
var uey=new aKP,Ex=function(){LH.apply(this,arguments)};
_.Z(Ex,LH);var cQb=function(){Ex.apply(this,arguments)};
_.Z(cQb,Ex);cQb.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
cQb.prototype.flush=function(){if(this.queue.size)if(_.mJ.flushRenderEffectsDuringRender){var W=this.queue;this.queue=new Set;N8Z(W)}else N8Z(this.queue)};
var HKz=new cQb,vwN=function(){Ex.apply(this,arguments)};
_.Z(vwN,Ex);vwN.prototype.schedule=function(W){var e=this;return _.F(function(t){if(t.nextAddress==1)return W.hasRun?t.jumpTo(2):_.a(t,Promise.resolve(),3);if(t.nextAddress!=2)return W.run(),t.return();e.queue.add(W);_.u8(t)})};
vwN.prototype.flush=function(){var W=this;return _.F(function(e){if(e.nextAddress==1)return W.queue.size?_.a(e,Promise.resolve(),2):e.return();N8Z(W.queue);_.u8(e)})};
var iKG=new vwN,GJo=function(){Ex.apply(this,arguments)};
_.Z(GJo,Ex);GJo.prototype.schedule=function(W){this.queue.add(W)};
GJo.prototype.flush=function(){this.queue.size&&N8Z(this.queue)};
var PGv=new GJo,Lns=[HKz,uey,PGv,iKG],DzD=[HKz,PGv,iKG],zZK=[];kJs=function(){EwS();for(var W=_.R(zZK),e=W.next();!e.done;e=W.next())e=e.value,e()};
var wiv=bv;var kK=Symbol("Pb");var $K=null,e_L,tJ2=null,b_R;var AF={},Sib=Object.assign({},D2,(AF[Xik]=!0,AF.effectType=hZG,AF.isResettableContext=!0,AF.hasRun=!1,AF.effectFn=null,AF.consumerIsAlwaysLive=!0,AF.consumerAllowSignalWrites=!0,AF.consumerMarkedDirty=YiK,AF.kind="effect",AF.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Qk)throw Error("Qb");this.dirty=!1;if(!this.hasRun||aKG(this)){this.hasRun=!0;gqZ(this);var W=_.eC(this),e=vwc(this);dDS("effectRun",this.debugName);try{jC(this.effectFn,this.componentStack)}catch(t){throw _.mJ.enableContextBasedComponentStacks&&
yk(t),t;}finally{WnL("effectRun",this.debugName),GJs(this,e),_.eC(W)}}}},AF.componentStack=void 0,AF.debugName="[effect]",AF[Symbol.dispose]=function(){RZD(this);
if(F0(this))for(var W=0;W<this.producerNode.length;W++)Q_g(this.producerNode[W],this.producerIndexOfThis[W]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);W=_.R(DzD);for(var e=W.next();!e.done;e=W.next())e.value.remove(this);fbL(this)},AF));var qHg=Object.assign({},Sib,{effectType:VeL});var R_c=Symbol("Rb");var QMG=Object.assign({},Sib,{effectType:hZG});var VJs=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 I3G={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},XHL=
{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}]}},T2G={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},u3v=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],wHR={"*":{async:1,dir:0,loading:2,target:3}};var B8o=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,NR={},vnc=(NR[1]=null,NR[2]=function(W,e){return e instanceof j5?nF(e):om.toString()},NR[3]=function(W,e){return c7(e)?_.v7(e):B8o.test(String(e))?String(e):om.toString()},NR[4]=function(W,e){return e instanceof QE?_.Xh(e):om.toString()},NR[5]=function(W,e){return String(e)},NR[7]=null,NR[8]=null,NR[10]=null,NR);var tNK=Symbol("Tb");var YNZ=function(W){var e=ow8,t=W,b="",m="",q=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(t)).toString();else{for(var Q=0;Q<lKB.length;Q++){var X=lKB[Q];q=e[X];if(W>=q||q<=1&&W>.1*q){b=X;break}}b?(b+="B",m=" "):q=1;W=Math.round(t/q*10)/10+m+b}return W},lKB="Y Z E P T G M K  m u n".split(" "),ow8={"":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};_.ZKU=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 mq9={};RegExp.prototype.hasOwnProperty("sticky");var z_Q=function(W){W=String(W);for(var e=function(b,m,q){for(var Q=Math.min(m.length-q,b.length),X=0;X<Q;X++){var I=m[q+X];if(b[X]!==("A"<=I&&I<="Z"?I.toLowerCase():I))return!1}return!0},t=0;(t=W.indexOf("<",t))!=-1;){if(e("\x3c/script",W,t)||e("\x3c!--",W,t))return"zSoyz";
t+=1}return W},bJK=function(W){return W!=null&&W.contentKind===mq9};var Hf={default:"__default"};var Z_R=Object.prototype.hasOwnProperty;SHs.prototype=Object.create(null);var Nq=pHG();var N5=null;var MJs=function(W){this.created=[];this.deleted=[];this.node=W};var sM9=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,e=W;W;)e=W,W=W.parentNode;return e};var jMD=function(W,e){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=e;this.text=void 0};var ip=null,YK=null,Pf=null,U0=null,TTG=[],gnZ=nng,E0=[],AO=[],eKc=function(W){return h_v(function(e,t,b){Pf=YK=e;YK=null;t(b);f3L(null);YK=Pf;Pf=Pf.parentNode;return e},W)}(),WMZ=function(W){return h_v(function(e,t,b){var m={nextSibling:e};
YK=m;t(b);Pf&&f3L(e.nextSibling);return m===YK?null:YK},W)}();var dP=[],KxG=0;var WO=new SHs;var n4=new SHs;var $zv=pHG(),YHs=$zv[Hf.default],UIZ=$zv.style,i_S=["focusin","focusout"];var nML=function(){},Smc=function(){},xqz=function(){},gMv=function(){};var m7=Symbol("$b");var ebG,WGz=dIv;var aA=Symbol("ac");var JCD=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(" ")),
TQc=new Set(["a","font","script","style","title"]);var Db={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Sm=null,BO=function(W,e){oA.call(this,W);var t=this;this.functionComponent=e;this.hooks=[];this.hookCounter=0;this.disposeEffects=gP(function(b){t.effectContext=b;_.fh(function(){ZJs(t,t.el)})},_.mJ.alwaysTrackContexts||!!Wf)};
_.Z(BO,oA);BO.prototype.render=function(W){var e=Sm;Sm=this;this.hookCounter=0;var t=Rb(Gn),b=_.eC(this.effectContext);try{return dDS("render",this.componentName),this.functionComponent(W)}finally{WnL("render",this.componentName),_.eC(b),Rb(t),Sm=e}};
_.Ec.Object.defineProperties(BO.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return dzz(this.functionComponent)}}});var OJ9=Symbol("oc"),jzZ=function(W,e,t){this.kind=W;this.props=e;this.children=t};
_.Z(jzZ,cO);jzZ.prototype.render=function(){return yCD(this.kind,this.props,this.children)};
jzZ.prototype.getChildren=function(){return this.children};var sz2=[];ZKZ=function(W){throw Error("tb`"+W.debugName);};
(function(){var W=N5;N5=function(e){W==null||W(e);hbK(e)}})();var kJo=new WeakMap,piU=0;var yQD=void 0,j_P={},CGZ=new WeakMap,z4L={getComponent:function(W){if(W.hasAttribute("ng-version"))return j_P;if(!W.__wizComponent)return null;W=W.__wizComponent;CGZ.set(W.propsAndState,W);return W.propsAndState},
getDirectiveMetadata:function(W){if(W===j_P)return{framework:"wiz",name:"<Root>",props:{}};W=CGZ.get(W);if(!W)throw Error("pc");return{framework:"wiz",name:W.name,props:Object.fromEntries(Object.keys(W.props).map(function(e){return[e,e]}))}},
"\u0275setProfiler":function(W){var e;(e=yQD)==null||e();yQD=Uzv(function(){W(2)})},
getInjector:function(W){return W.__wizComponent},
"\u0275getSignalGraph":function(W){var e;W=(e=W.effects)!=null?e:[];var t=HJZ(W),b=Array.from(t.keys());e=[];W=[];for(var m=new Map,q=0;q<b.length;q++)m.set(b[q],q);t=_.R(t.entries());for(b=t.next();!b.done;b=t.next()){q=_.R(b.value);b=q.next().value;var Q=q.next().value;q=b;b=m.get(q);var X=kJo.get(q);X||(X=piU.toString(),kJo.set(q,X),piU++);var I=void 0,u=(I=q.debugName)!=null?I:"";I=u.startsWith("[signal]")?u:u.replace(/@.+/,"");q.kind==="computed"?e.push({label:I,value:q.value,kind:q.kind,epoch:q.version,
debuggableFn:q.computation,id:X}):q.kind==="signal"?e.push({label:I,value:q.value,kind:q.kind,epoch:q.version,id:X}):q.kind==="effect"?(u=void 0,e.push({label:I,kind:q.kind,epoch:q.version,debuggableFn:(u=q.effectFn)!=null?u:void 0,id:X})):e.push({label:I,kind:q.kind,epoch:q.version,id:X});q=_.R(Q);for(Q=q.next();!Q.done;Q=q.next())W.push({consumer:b,producer:m.get(Q.value)})}return{nodes:e,edges:W}},
isSignal:function(W){return typeof W==="function"&&W[Ib]!==void 0}};_.G.debugName="RlDudd";var KGQ={nonNullableCondIsNull:function(){return Error("sc")}};var Uqz=function(){this.map=new Map};
Uqz.prototype.push=function(W,e){var t=this.map;t.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(e,t.get(W)));t.set(W,e)};
Uqz.prototype.pop=function(W){var e=this.map,t=e.get(W),b;t!==void 0&&((b=this.multi)==null?0:b.has(t))?(e.set(W,this.multi.get(t)),this.multi.delete(t)):e.delete(W);return t};_.lV.debugName="nsTGHd";_.Zb.debugName="tbhMcf";_.$q.debugName="zyMFzb";_.kq.debugName="vI1rtf";_.pt={OUT_OF_ORDER_HOOK_CALL:function(W){return Error("tc`"+W)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(W,e){return Error("xc`"+((e===void 0?0:e)?"IDOM":"Reactive")+"`"+W)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(W,e){return Error("yc`"+W+"`"+e)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("zc`"+W)},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Ac`"+String(W))}};ebG=CeG;var Rrz=Symbol("Bc");oMD({beforeRender:function(W){var e=_.eC(W.effectContext);try{var t;((t=W.__syncEffects)==null?0:t.length)&&FYR(W.__syncEffects)}finally{_.eC(e)}},
didPatch:function(W){var e=_.eC(W.effectContext);try{var t;((t=W.__syncEffects)==null?0:t.length)&&FYR(W.__syncEffects)}finally{_.eC(e)}},
didUnmount:function(W){var e;((e=W.hooks)==null?0:e.length)&&W.hooks.forEach(QQz)}});var nwB,fKo,gwP;nwB=_.tz.window;_.JJ=(nwB==null?void 0:(fKo=nwB.yt)==null?void 0:fKo.config_)||(nwB==null?void 0:(gwP=nwB.ytcfg)==null?void 0:gwP.data_)||{};_.Nz("yt.config_",_.JJ);var T8b={},wTv=[];_.o_=function(W){var e=_.$N.apply(1,arguments);var t=Error.call(this,W);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.args=[].concat(_.kP(e));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(_.o_,Error);var uHc=function(W,e,t){this.actionName=W;this.optionalAction=e===void 0?!1:e;this.args=t===void 0?null:t;this.returnValue=[]};_.z=function(W){this.name=W};_.hC=new _.z("signalAction");var $nS=/^[\w.]*$/,Dnc={q:!0,search_query:!0},Gks=String(vSQ);var dU;dU=Symbol("Cc");_.W_=function(W){this.name=W};
_.W_.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var kkL=function(W){this.key=W},jQS=function(W){this.deferredKey=W},yAg=function(){var W=this;
this.providers=new Map;this.JSC$8463_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
yAg.prototype.addProvider=function(W){this.providers.set(W.provide,W);var e=this.JSC$8463_deferred.get(W.provide);if(e)try{e.resolver(this.resolve(W.provide))}catch(t){e.rejector(t)}};
yAg.prototype.resolve=function(W){return W instanceof jQS?JQD(this,W):W instanceof kkL?xzB(this,W.key,[],!0):xzB(this,W,[])};
var JQD=function(W,e){e=e.deferredKey;if(W.JSC$8463_deferred.has(e))return W.JSC$8463_deferred.get(e).promise;var t={};t.promise=new Promise(function(b,m){t.resolver=b;t.rejector=m});
W.JSC$8463_deferred.set(e,t);return t.promise},xzB=function(W,e,t,b){b=b===void 0?!1:b;
if(t.indexOf(e)>-1)throw Error("Dc`"+e);if(W.cachedValues.has(e))return W.cachedValues.get(e);if(!W.providers.has(e)){if(b)return;throw Error("Ec`"+e);}b=W.providers.get(e);t.push(e);if(b.useValue!==void 0)var m=b.useValue;else if(b.useFactory)m=b[dU]?OKr(W,b[dU],t):[],m=b.useFactory.apply(b,_.kP(m));else if(b.useClass){m=b.useClass;var q=m[dU]?OKr(W,m[dU],t):[];m=new (Function.prototype.bind.apply(m,[null].concat(_.kP(q))))}else throw Error("Fc`"+e);t.pop();b.skipCache||W.cachedValues.set(e,m);return m},
OKr=function(W,e,t){return e?e.map(function(b){return b instanceof kkL?xzB(W,b.key,t,!0):xzB(W,b,t)}):[]};var pTD;var H3=new _.W_("ENDPOINT_HANDLER_TOKEN");_.KJ=new _.z("urlEndpoint");var MeP=function(){this.data=[];this.cachedPackedInt52=-1};
MeP.prototype.set=function(W,e){e=e===void 0?!0:e;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==e&&(this.data[W]=e,this.cachedPackedInt52=-1)};
MeP.prototype.get=function(W){return!!this.data[W]};
var s_v=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(e,t,b){return e+(t?Math.pow(2,b):0)},0));
return W.cachedPackedInt52};var PUz=function(W){var e=hZB;W=W===void 0?_.HO("yt.ads.biscotti.lastId_")||"":W;var t=Object,b=t.assign,m={};m.dt=sGk;m.flash="0";a:{try{var q=e.JSC$8469_win_.top.location.href}catch(uv){q=2;break a}q=q?q===e.doc_.location.href?0:1:2}m=(m.frm=q,m);try{m.u_tz=-(new Date).getTimezoneOffset();var Q=Q===void 0?KV:Q;try{var X=Q.history.length}catch(uv){X=0}m.u_his=X;var I;m.u_h=(I=KV.screen)==null?void 0:I.height;var u;m.u_w=(u=KV.screen)==null?void 0:u.width;var c;m.u_ah=(c=KV.screen)==null?void 0:c.availHeight;
var v;m.u_aw=(v=KV.screen)==null?void 0:v.availWidth;var D;m.u_cd=(D=KV.screen)==null?void 0:D.colorDepth}catch(uv){}X=e.JSC$8469_win_;try{var B=X.screenX;var k=X.screenY}catch(uv){}try{var n=X.outerWidth;var f=X.outerHeight}catch(uv){}try{var M=X.innerWidth;var K=X.innerHeight}catch(uv){}try{var U=X.screenLeft;var V=X.screenTop}catch(uv){}try{M=X.innerWidth,K=X.innerHeight}catch(uv){}try{var L=X.screen.availWidth;var E=X.screen.availTop}catch(uv){}B=[U,V,B,k,L,E,n,f,M,K];k=GE9(!1,e.JSC$8469_win_.top);
n={};var RR=RR===void 0?_.tz:RR;f=new MeP;"SVGElement"in RR&&"createElementNS"in RR.document&&f.set(0);M=HQS();M["allow-top-navigation-by-user-activation"]&&f.set(1);M["allow-popups-to-escape-sandbox"]&&f.set(2);RR.crypto&&RR.crypto.subtle&&f.set(3);"TextDecoder"in RR&&"TextEncoder"in RR&&f.set(4);RR=s_v(f);e=(n.bc=RR,n.bih=k.height,n.biw=k.width,n.brdim=B.join(),n.vis=thc(e.doc_),n.wgl=!!KV.WebGLRenderingContext,n);t=b.call(t,m,e);t.ca_type="image";W&&(t.bid=W);return t},hZB=new function(){var W=
window.document;
this.JSC$8469_win_=window;this.doc_=W};
_.Nz("yt.ads_.signals_.getAdSignalsString",function(W){return ScQ(PUz(W))});_.RP();navigator.userAgent.indexOf(" (CrKey ");var TsQ="XMLHttpRequest"in _.tz?function(){return new XMLHttpRequest}:null;var HKk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Knr=[].concat(_.kP(HKk),["client_dev_set_cookie"]);var KYv={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"},O1z="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(_.kP(HKk)),NsS=!1,sQc=_.VvQ,LY9=H1R;var o5L=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var PGh={messageWeights:[],callbackWeights:[{callback:tVc,weight:500},{callback:bc2,weight:500}]};var VeS=function(){this.callbackWeights=[];this.messageWeights=[]},iKP,BAG=function(){if(!iKP){var W=iKP=new VeS;
W.messageWeights.length=0;W.callbackWeights.length=0;C3G(W,PGh)}return iKP},C3G=function(W,e){e.messageWeights&&W.messageWeights.push.apply(W.messageWeights,e.messageWeights);
e.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,e.callbackWeights)};_.QP(_.uG,_.ka);_.uG.prototype.subscribe=function(W,e,t){var b=this.topics_[W];b||(b=this.topics_[W]=[]);var m=this.JSC$8493_key_;this.subscriptions_[m]=W;this.subscriptions_[m+1]=e;this.subscriptions_[m+2]=t;this.JSC$8493_key_=m+3;b.push(m);return m};
var Yi8=function(W){var e=kfL,t=!1,b=e.subscribe("handleError",function(m){t||(t=!0,this.unsubscribeByKey(b),W.apply(void 0,arguments))},e)};
_.uG.prototype.unsubscribe=function(W,e,t){if(W=this.topics_[W]){var b=this.subscriptions_;if(W=W.find(function(m){return b[m+1]==e&&b[m+2]==t}))return this.unsubscribeByKey(W)}return!1};
_.uG.prototype.unsubscribeByKey=function(W){var e=this.subscriptions_[W];if(e){var t=this.topics_[e];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(t&&_.UL(t,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!e};
_.uG.prototype.publish=function(W,e){var t=this.topics_[W];if(t){var b=Array(arguments.length-1),m=arguments.length,q;for(q=1;q<m;q++)b[q-1]=arguments[q];if(this.async_)for(q=0;q<t.length;q++)m=t[q],zZ8(this.subscriptions_[m+1],this.subscriptions_[m+2],b);else{this.publishDepth_++;try{for(q=0,m=t.length;q<m&&!this.isDisposed();q++){var Q=t[q];this.subscriptions_[Q+1].apply(this.subscriptions_[Q+2],b)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;t=this.pendingKeys_.pop();)this.unsubscribeByKey(t)}}return q!=
0}return!1};
var zZ8=function(W,e,t){_.kr(function(){W.apply(e,t)})};
_.uG.prototype.clear=function(W){if(W){var e=this.topics_[W];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.uG.prototype.getCount=function(W){if(W){var e=this.topics_[W];return e?e.length:0}W=0;for(e in this.topics_)W+=this.getCount(e);return W};
_.uG.prototype.disposeInternal=function(){_.uG.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var kfL=new _.uG;var RM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(RM,_.Ow);RM.prototype.getColdHashData=function(){return _.T9(this,3)};
RM.prototype.getHotHashData=function(){return _.T9(this,5)};
RM.prototype.setHotHashData=function(W){return _.Ga(this,5,W)};var GvG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(GvG,_.Ow);var iD2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(iD2,_.Ow);_.r=iD2.prototype;_.r.getDeviceId=function(){return _.T9(this,6)};
_.r.getExperimentIds=function(W){var e=_.op(this,9,_.$l,3,!0);OS(e,W);return e[W]};
_.r.getPlayerType=function(){return _.Js(this,36)};
_.r.setHomeGroupInfo=function(W){return _.bF(this,81,W)};
_.r.clearLocationPlayabilityToken=function(){return _.qI(this,89)};var Dt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Dt,_.Ow);Dt.prototype.setKey=function(W){return _.Ga(this,1,W)};
Dt.prototype.getValue=function(){return Oq(this,2,zsg)};
var zsg=[2,3,4,5,6];var Uzh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Uzh,_.Ow);Uzh.prototype.setTrackingParams=function(W){return _.qI(this,1,_.xv(W,!1))};var Yzs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Yzs,_.Ow);var Byz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Byz,_.Ow);Byz.prototype.getExperimentIds=function(W){var e=_.op(this,5,_.pC,3,!0);OS(e,W);return e[W]};var le=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(le,_.Ow);le.prototype.getToken=function(){return _.Gg(this,2)};
le.prototype.setToken=function(W){return _.Ga(this,2,W)};var B3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(B3,_.Ow);B3.prototype.setSafetyMode=function(W){return _.rT(this,5,W)};var GT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(GT,_.Ow);GT.prototype.setClient=function(W){return _.bF(this,1,W)};var S6G={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 D2Z;_.nB=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.tz.addEventListener("beforeinstallprompt",function(e){e.preventDefault();W.deferredInstallPrompt=e});
_.tz.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
D2Z=function(){if(!_.tz.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.tz.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.tz.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.tz.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.tz.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var ZeL=function(){this.syncHeaders=!0},$2z=function(W){var e={},t=[];
"USER_SESSION_ID"in _.JJ&&t.push({key:"u",value:_.Ot("USER_SESSION_ID")});if(t=_.Yb9(t))e.Authorization=t,t=W=W==null?void 0:W.sessionIndex,t===void 0&&(t=Number(_.Ot("SESSION_INDEX",0)),t=isNaN(t)?0:t),_.S("voice_search_auth_header_removal")||(e["X-Goog-AuthUser"]=t.toString()),"INNERTUBE_HOST_OVERRIDE"in _.JJ||(e["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.JJ&&(e["X-Goog-PageId"]=_.Ot("DELEGATED_SESSION_ID"));return e};var Lno={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var eL=_.HO("ytglobal.prefsUserPrefsPrefs_")||{},EwZ;_.Nz("ytglobal.prefsUserPrefsPrefs_",eL);_.tq=function(){this.cookieName=_.Ot("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Ot("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.vi.get(this.cookieName,void 0);W&&this.parse(W)};
_.B6=function(){EwZ||(EwZ=new _.tq);return EwZ};
_.tq.prototype.get=function(W,e){AQk(W);N8U(W);W=eL[W]!==void 0?eL[W].toString():null;return W!=null?W:e?e:""};
_.tq.prototype.set=function(W,e){AQk(W);N8U(W);if(e==null)throw Error("Ic");eL[W]=e.toString()};
_.tq.prototype.getFlag=function(W){return!!((dzk("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.oT=function(W,e,t){W="f"+(Math.floor(e/31)+1);e=1<<e%31;var b=dzk(W)||0;b=t?b|e:b&~e;b===0?delete eL[W]:(t=b.toString(16),eL[W]=t.toString())};
_.tq.prototype.remove=function(W){AQk(W);N8U(W);delete eL[W]};
_.tq.prototype.save=function(){var W=!0;_.S("web_secure_pref_cookie_killswitch")&&(W=!1);_.GJ(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.tq.prototype.clear=function(){_.kJ.clear(eL)};
_.tq.prototype.dump=function(){var W=[],e;for(e in eL)eL.hasOwnProperty(e)&&W.push(e+"="+encodeURIComponent(String(eL[e])));return W.join("&")};
var N8U=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Jc`"+W);},AQk=function(W){if(!/^\w+$/.test(W))throw Error("Kc`"+W);
},dzk=function(W){W=eL[W]!==void 0?eL[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.tq.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var e=0;e<W.length;e++){var t=W[e].split("="),b=t[0];(t=t[1])&&(eL[b]=t.toString())}};var aZv={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"},ohS={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},l8Q={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},urK={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Qp;_.b9=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.kM=function(W,e,t){return W.addJob(e,0,t)};
_.b9.prototype.addLowPriorityJob=function(W,e){return this.addJob(W,1,e)};
_.lJ=function(W,e,t){return W.addJob(e,2,t)};
_.CU=function(W,e,t){return W.addJob(e,3,t)};
_.F6=function(W,e,t){return W.addJob(e,4,t)};
Qp=function(W){var e=_.HO("yt.scheduler.instance.addImmediateJob");e?e(W):W()};
_.b9.prototype.debounce=function(W,e,t){var b=this,m=0,q=function(){m&&b.cancelJob(m);m=b.addJob(W,e,t);b.cancelDebouncedJobMap.set(q,m)};
return q};
_.b9.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var mm=function(){_.b9.apply(this,arguments)};
_.Z(mm,_.b9);_.g0=function(){mm.instance||(mm.instance=new mm);return mm.instance};
mm.prototype.addJob=function(W,e,t){t!==void 0&&Number.isNaN(Number(t))&&(t=void 0);var b=_.HO("yt.scheduler.instance.addJob");return b?b(W,e,t):t===void 0?(W(),NaN):_.Qm(W,t||0)};
mm.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var e=_.HO("yt.scheduler.instance.cancelJob");e?e(W):_.Xe(W)}};
mm.prototype.start=function(){var W=_.HO("yt.scheduler.instance.start");W&&W()};
mm.prototype.pause=function(){var W=_.HO("yt.scheduler.instance.pause");W&&W()};
_.Tm=_.g0();_.lG.prototype.set=function(W,e){e===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.nV)(e))};
_.lG.prototype.get=function(W){try{var e=this.mechanism.get(W)}catch(t){return}if(e!==null)try{return JSON.parse(e)}catch(t){throw"Storage: Invalid value was encountered";}};
_.lG.prototype.remove=function(W){this.mechanism.remove(W)};var rL=function(W){this.mechanism=W};
_.QP(rL,_.lG);var Wxb=function(W){this.data=W},e_S=function(W){return W===void 0||W instanceof Wxb?W:new Wxb(W)};
rL.prototype.set=function(W,e){rL.superClass_.set.call(this,W,e_S(e))};
rL.prototype.getWrapper=function(W){W=rL.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
rL.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.QP(ZK,rL);_.tJe=function(W){var e=W.creation;W=W.expiration;return!!W&&W<_.RP()||!!e&&e>_.RP()};
ZK.prototype.set=function(W,e,t){if(e=e_S(e)){if(t){if(t<_.RP()){ZK.prototype.remove.call(this,W);return}e.expiration=t}e.creation=_.RP()}ZK.superClass_.set.call(this,W,e)};
ZK.prototype.getWrapper=function(W,e){var t=ZK.superClass_.getWrapper.call(this,W);if(t)if(!e&&_.tJe(t))ZK.prototype.remove.call(this,W);else return t};var q_=function(){};
q_.prototype.next=function(){return R3};
var R3={done:!0,value:void 0},Q1=function(W){return{value:W,done:!1}};
q_.prototype.__iterator__=function(){return this};
_.b_y=function(W){if(W instanceof q_)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.Ns(W)){var e=0,t=new q_;t.next=function(){for(;;){if(e>=W.length)return R3;if(e in W)return Q1(W[e++]);e++}};
return t}throw Error("Lc");};var mIZ=function(W){if(W instanceof FR||W instanceof I3||W instanceof a3)return W;if(typeof W.next=="function")return new FR(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new FR(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new FR(function(){return W.__iterator__()});
throw Error("Mc");},FR=function(W){this.func_=W};
FR.prototype.__iterator__=function(){return new I3(this.func_())};
FR.prototype[Symbol.iterator]=function(){return new a3(this.func_())};
FR.prototype.toEs6=function(){return new a3(this.func_())};
var I3=function(W){this.JSC$8577_iter_=W};
_.Z(I3,q_);I3.prototype.next=function(){return this.JSC$8577_iter_.next()};
I3.prototype[Symbol.iterator]=function(){return new a3(this.JSC$8577_iter_)};
I3.prototype.toEs6=function(){return new a3(this.JSC$8577_iter_)};
var a3=function(W){FR.call(this,function(){return W});
this.JSC$8580_iter_=W};
_.Z(a3,FR);a3.prototype.next=function(){return this.JSC$8580_iter_.next()};var r7b=function(){};var wL=function(){};
_.QP(wL,r7b);wL.prototype.getCount=function(){for(var W=0,e=_.R(this),t=e.next();!t.done;t=e.next())W++;return W};
wL.prototype[Symbol.iterator]=function(){return mIZ(this.__iterator__(!0)).toEs6()};
wL.prototype.clear=function(){var W=Array.from(this);W=_.R(W);for(var e=W.next();!e.done;e=W.next())this.remove(e.value)};_.QP($w,wL);_.r=$w.prototype;_.r.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{W.setItem("__sak","1");W.removeItem("__sak");var e=!0}catch(t){e=t instanceof DOMException&&(t.name==="QuotaExceededError"||t.code===22||t.code===1014||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else e=!1;this.cachedIsStorageAvailable_=e}return this.cachedIsStorageAvailable_};
_.r.set=function(W,e){u9(this);try{this.storage_.setItem(W,e)}catch(t){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.r.get=function(W){u9(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.r.remove=function(W){u9(this);this.storage_.removeItem(W)};
_.r.getCount=function(){u9(this);return this.storage_.length};
_.r.__iterator__=function(W){u9(this);var e=0,t=this.storage_,b=new q_;b.next=function(){if(e>=t.length)return R3;var m=t.key(e++);if(W)return Q1(m);m=t.getItem(m);if(typeof m!=="string")throw"Storage mechanism: Invalid value was encountered";return Q1(m)};
return b};
_.r.clear=function(){u9(this);this.storage_.clear()};
_.r.key=function(W){u9(this);return this.storage_.key(W)};
var u9=function(W){if(W.storage_==null)throw Error("Nc");W.isAvailable()||bv(Error("Nc"))};_.QP(v4v,$w);_.QP(G42,$w);_.QP(kw,wL);kw.prototype.set=function(W,e){this.mechanism_.set(this.JSC$8595_prefix_+W,e)};
kw.prototype.get=function(W){return this.mechanism_.get(this.JSC$8595_prefix_+W)};
kw.prototype.remove=function(W){this.mechanism_.remove(this.JSC$8595_prefix_+W)};
kw.prototype.__iterator__=function(W){var e=this.mechanism_[Symbol.iterator](),t=this,b=new q_;b.next=function(){var m=e.next();if(m.done)return m;for(m=m.value;m.slice(0,t.JSC$8595_prefix_.length)!=t.JSC$8595_prefix_;){m=e.next();if(m.done)return m;m=m.value}return Q1(W?m.slice(t.JSC$8595_prefix_.length):t.mechanism_.get(m))};
return b};_.sH=function(W){this.expiringStorage_=(W=_.DgR(W))?new ZK(W):null;this.JSC$8599_domain_=document.domain||window.location.hostname};
_.sH.prototype.set=function(W,e,t,b){t=t||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,e,Date.now()+t*1E3);return}catch(q){}var m="";if(b)try{m=escape((0,_.nV)(e))}catch(q){return}else m=escape(e);_.GJ(W,m,t,this.JSC$8599_domain_)};
_.sH.prototype.get=function(W,e){var t=void 0,b=!this.expiringStorage_;if(!b)try{t=this.expiringStorage_.get(W)}catch(m){b=!0}if(b&&(t=_.vi.get(W,void 0))&&(t=unescape(t),e))try{t=JSON.parse(t)}catch(m){this.remove(W),t=void 0}return t};
_.sH.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.F$v(W,"/",this.JSC$8599_domain_)};
_.sH.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var B3v=function(){var W;return function(){W||(W=new _.sH("ytidb"));return W}}();var lZz;_.ym=[];lZz=!1;var K$K=ZcG||$gR;var c_={},qHD=(c_.AUTH_INVALID="No user identifier specified.",c_.EXPLICIT_ABORT="Transaction was explicitly aborted.",c_.IDB_NOT_SUPPORTED="IndexedDB is not supported.",c_.MISSING_INDEX="Index not created.",c_.MISSING_OBJECT_STORES="Object stores not created.",c_.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",c_.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",c_.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",c_.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",c_.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",c_.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",c_.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",c_),v_={},R_N=(v_.AUTH_INVALID="ERROR",v_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",v_.EXPLICIT_ABORT="IGNORED",
v_.IDB_NOT_SUPPORTED="ERROR",v_.MISSING_INDEX="WARNING",v_.MISSING_OBJECT_STORES="ERROR",v_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",v_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",v_.QUOTA_EXCEEDED="WARNING",v_.QUOTA_MAYBE_EXCEEDED="WARNING",v_.UNKNOWN_ABORT="WARNING",v_.INCOMPATIBLE_DB_VERSION="WARNING",v_),GM={},QMP=(GM.AUTH_INVALID=!1,GM.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,GM.EXPLICIT_ABORT=!1,GM.IDB_NOT_SUPPORTED=!1,GM.MISSING_INDEX=!1,GM.MISSING_OBJECT_STORES=!1,GM.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,GM.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,GM.QUOTA_EXCEEDED=!1,GM.QUOTA_MAYBE_EXCEEDED=!0,GM.UNKNOWN_ABORT=!0,GM.INCOMPATIBLE_DB_VERSION=!1,GM),TJ=function(W,e,t,b,m){e=e===void 0?{}:e;t=t===void 0?qHD[W]:t;b=b===void 0?R_N[W]:b;m=m===void 0?QMP[W]:m;_.o_.call(this,t,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},e));this.type=W;this.message=t;this.level=b;this.retryable=m;Object.setPrototypeOf(this,TJ.prototype)};
_.Z(TJ,_.o_);var FxD=function(W,e){TJ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:W},qHD.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,FxD.prototype)};
_.Z(FxD,TJ);var pFz=function(W,e){var t=Error.call(this);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.index=W;this.objectStore=e;Object.setPrototypeOf(this,pFz.prototype)};
_.Z(pFz,Error);var yjK=["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 Mz=function(W){this.executor=W},Oi=function(W){var e=this;
this.state={status:"PENDING"};this.JSC$8627_onFulfilled=[];this.JSC$8627_onRejected=[];W=W.executor;var t=function(m){if(e.state.status==="PENDING"){e.state={status:"FULFILLED",value:m};m=_.R(e.JSC$8627_onFulfilled);for(var q=m.next();!q.done;q=m.next())q=q.value,q()}},b=function(m){if(e.state.status==="PENDING"){e.state={status:"REJECTED",
reason:m};m=_.R(e.JSC$8627_onRejected);for(var q=m.next();!q.done;q=m.next())q=q.value,q()}};
try{W(t,b)}catch(m){b(m)}};
Oi.all=function(W){return new Oi(new Mz(function(e,t){var b=[],m=W.length;m===0&&e(b);for(var q={i$jscomp$462:0};q.i$jscomp$462<W.length;q={i$jscomp$462:q.i$jscomp$462},++q.i$jscomp$462)Oi.resolve(W[q.i$jscomp$462]).then(function(Q){return function(X){b[Q.i$jscomp$462]=X;m--;m===0&&e(b)}}(q)).catch(function(Q){t(Q)})}))};
Oi.resolve=function(W){return new Oi(new Mz(function(e,t){W instanceof Oi?W.then(e,t):e(W)}))};
Oi.reject=function(W){return new Oi(new Mz(function(e,t){t(W)}))};
Oi.prototype.then=function(W,e){var t=this,b=W!=null?W:n4Q,m=e!=null?e:Ckv;return new Oi(new Mz(function(q,Q){t.state.status==="PENDING"?(t.JSC$8627_onFulfilled.push(function(){XHS(t,t,b,q,Q)}),t.JSC$8627_onRejected.push(function(){I3B(t,t,m,q,Q)})):t.state.status==="FULFILLED"?XHS(t,t,b,q,Q):t.state.status==="REJECTED"&&I3B(t,t,m,q,Q)}))};
Oi.prototype.catch=function(W){return this.then(void 0,W)};
var XHS=function(W,e,t,b,m){try{if(W.state.status!=="FULFILLED")throw Error("Qc");var q=t(W.state.value);q instanceof Oi?a3S(W,e,q,b,m):b(q)}catch(Q){m(Q)}},I3B=function(W,e,t,b,m){try{if(W.state.status!=="REJECTED")throw Error("Rc");
var q=t(W.state.reason);q instanceof Oi?a3S(W,e,q,b,m):b(q)}catch(Q){m(Q)}},a3S=function(W,e,t,b,m){e===t?m(new TypeError("Sc")):t.then(function(q){q instanceof Oi?a3S(W,e,q,b,m):b(q)},function(q){m(q)})};var D5;D5=window;_.eJ=D5.ytcsi&&D5.ytcsi.now?D5.ytcsi.now:D5.performance&&D5.performance.timing&&D5.performance.now&&D5.performance.timing.navigationStart?function(){return D5.performance.timing.navigationStart+D5.performance.now()}:function(){return(new Date).getTime()};var hQ=function(W,e){this.JSC$8639_wrapped=W;this.options=e;this.transactionCount=0;this.startedMs=Math.round((0,_.eJ)());this.hasUnknownAbortedTransaction=!1},c7B,vnN,o3,SHo;
hQ.prototype.add=function(W,e,t){return _.zJ(this,[W],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(W).add(e,t)})};
hQ.prototype.clear=function(W){return _.zJ(this,[W],{mode:"readwrite",enableRetries:!0},function(e){return e.objectStore(W).clear()})};
hQ.prototype.close=function(){this.JSC$8639_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
hQ.prototype.count=function(W,e){return _.zJ(this,[W],{mode:"readonly",enableRetries:!0},function(t){return t.objectStore(W).count(e)})};
var HH=function(W,e,t){W=W.JSC$8639_wrapped.createObjectStore(e,t);return new SL(W)};
hQ.prototype.delete=function(W,e){return _.zJ(this,[W],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore(W).delete(e)})};
var wHy=function(W,e){return _.zJ(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore("ResponseStore").index("byInterface").delete(e)})};
hQ.prototype.get=function(W,e){return _.zJ(this,[W],{mode:"readonly",enableRetries:!0},function(t){return t.objectStore(W).get(e)})};
hQ.prototype.getAll=function(W,e,t){return _.zJ(this,[W],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(W).getAll(e,t)})};
hQ.prototype.put=function(W,e,t){return _.zJ(this,[W],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(W).put(e,t)})};
hQ.prototype.objectStoreNames=function(){return Array.from(this.JSC$8639_wrapped.objectStoreNames)};
_.zJ=function(W,e,t,b){var m,q,Q,X,I,u,c,v,D,B,k,n;return _.F(function(f){switch(f.nextAddress){case 1:var M={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof t==="string"?M.mode=t:Object.assign(M,t);m=M;W.transactionCount++;q=m.enableRetries?3:1;Q=0;case 2:if(X){f.jumpTo(4);break}Q++;I=Math.round((0,_.eJ)());_.Qh(f,5);u=W.JSC$8639_wrapped.transaction(e,m.mode);M=new Jj9(u);M=u3h(M,b);return _.a(f,M,7);case 7:return c=f.yieldResult,v=Math.round((0,_.eJ)()),c7B(W,I,v,Q,void 0,
e.join(),m),f.return(c);case 5:D=_.w9(f);B=Math.round((0,_.eJ)());k=jBz(D,W.JSC$8639_wrapped.name,e.join(),W.JSC$8639_wrapped.version);if((n=k instanceof TJ&&!k.retryable)||Q>=q)c7B(W,I,B,Q,k,e.join(),m),X=k;f.jumpTo(2);break;case 4:return f.return(Promise.reject(X))}})};
c7B=function(W,e,t,b,m,q,Q){e=t-e;m?(m instanceof TJ&&(m.type==="QUOTA_EXCEEDED"||m.type==="QUOTA_MAYBE_EXCEEDED")&&CK("QUOTA_EXCEEDED",{dbName:fK(W.JSC$8639_wrapped.name),objectStoreNames:q,transactionCount:W.transactionCount,transactionMode:Q.mode}),m instanceof TJ&&m.type==="UNKNOWN_ABORT"&&(t-=W.startedMs,t<0&&t>=2147483648&&(t=0),CK("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:q,transactionDuration:e,transactionCount:W.transactionCount,dbDuration:t}),W.hasUnknownAbortedTransaction=!0),
vnN(W,!1,b,q,e,Q.tag),_.je(m)):vnN(W,!0,b,q,e,Q.tag)};
vnN=function(W,e,t,b,m,q){CK("TRANSACTION_ENDED",{objectStoreNames:b,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:m,isSuccessful:e,tryCount:t,tag:q===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":q})};
hQ.prototype.getVersion=function(){return this.JSC$8639_wrapped.version};
hQ.prototype.getName=function(){return this.JSC$8639_wrapped.name};
var SL=function(W){this.JSC$8654_wrapped=W};
SL.prototype.add=function(W,e){return si(this.JSC$8654_wrapped.add(W,e))};
SL.prototype.autoIncrement=function(){return this.JSC$8654_wrapped.autoIncrement};
SL.prototype.clear=function(){return si(this.JSC$8654_wrapped.clear()).then(function(){})};
var K_=function(W,e,t){W.JSC$8654_wrapped.createIndex(e,t,{unique:!1})};
SL.prototype.count=function(W){return si(this.JSC$8654_wrapped.count(W))};
var Gm8=function(W,e){return LK(W,{query:e},function(t){return t.delete().then(function(){return t.continue()})}).then(function(){})};
SL.prototype.delete=function(W){return W instanceof IDBKeyRange?Gm8(this,W):si(this.JSC$8654_wrapped.delete(W))};
SL.prototype.get=function(W){return si(this.JSC$8654_wrapped.get(W))};
SL.prototype.getAll=function(W,e){return"getAll"in IDBObjectStore.prototype?si(this.JSC$8654_wrapped.getAll(W,e)):DID(this,W,e)};
var DID=function(W,e,t){var b=[];return LK(W,{query:e},function(m){if(!(t!==void 0&&b.length>=t))return b.push(m.getValue()),m.continue()}).then(function(){return b})};
SL.prototype.index=function(W){try{return new B_(this.JSC$8654_wrapped.index(W))}catch(e){if(e instanceof Error&&e.name==="NotFoundError")throw new pFz(W,this.JSC$8654_wrapped.name);throw e;}};
SL.prototype.getName=function(){return this.JSC$8654_wrapped.name};
SL.prototype.keyPath=function(){return this.JSC$8654_wrapped.keyPath};
SL.prototype.put=function(W,e){return si(this.JSC$8654_wrapped.put(W,e))};
var LK=function(W,e,t){W=W.JSC$8654_wrapped.openCursor(e.query,e.direction);return SHo(W).then(function(b){return T3D(b,t)})},Jj9=function(W){var e=this;
this.JSC$8662_wrapped=W;this.objectStoreCache=new Map;this.JSC$8662_aborted=!1;this.done=new Promise(function(t,b){e.JSC$8662_wrapped.addEventListener("complete",function(){t()});
e.JSC$8662_wrapped.addEventListener("error",function(m){m.currentTarget===m.target&&b(e.JSC$8662_wrapped.error)});
e.JSC$8662_wrapped.addEventListener("abort",function(){var m=e.JSC$8662_wrapped.error;if(m)b(m);else if(!e.JSC$8662_aborted){m=TJ;for(var q=e.JSC$8662_wrapped.objectStoreNames,Q=[],X=0;X<q.length;X++){var I=q.item(X);if(I===null)throw Error("Tc");Q.push(I)}m=new m("UNKNOWN_ABORT",{objectStoreNames:Q.join(),dbName:e.JSC$8662_wrapped.db.name,mode:e.JSC$8662_wrapped.mode});b(m)}})})},u3h=function(W,e){var t=new Promise(function(b,m){try{e(W).then(function(q){b(q)}).catch(m)}catch(q){m(q),W.abort()}});
return Promise.all([t,W.done]).then(function(b){return _.R(b).next().value})};
Jj9.prototype.abort=function(){this.JSC$8662_wrapped.abort();this.JSC$8662_aborted=!0;throw new TJ("EXPLICIT_ABORT");};
Jj9.prototype.objectStore=function(W){W=this.JSC$8662_wrapped.objectStore(W);var e=this.objectStoreCache.get(W);e||(e=new SL(W),this.objectStoreCache.set(W,e));return e};
var B_=function(W){this.JSC$8664_wrapped=W};
B_.prototype.count=function(W){return si(this.JSC$8664_wrapped.count(W))};
B_.prototype.delete=function(W){return _.t7(this,{query:W},function(e){return e.delete().then(function(){return e.continue()})})};
B_.prototype.get=function(W){return si(this.JSC$8664_wrapped.get(W))};
B_.prototype.getAll=function(W,e){return"getAll"in IDBIndex.prototype?si(this.JSC$8664_wrapped.getAll(W,e)):BTr(this,W,e)};
var BTr=function(W,e,t){var b=[];return _.t7(W,{query:e},function(m){if(!(t!==void 0&&b.length>=t))return b.push(m.getValue()),m.continue()}).then(function(){return b})};
B_.prototype.keyPath=function(){return this.JSC$8664_wrapped.keyPath};
B_.prototype.unique=function(){return this.JSC$8664_wrapped.unique};
_.t7=function(W,e,t){W=W.JSC$8664_wrapped.openCursor(e.query===void 0?null:e.query,e.direction===void 0?"next":e.direction);return SHo(W).then(function(b){return T3D(b,t)})};
o3=function(W,e){this.request=W;this.cursor=e};
SHo=function(W){return si(W).then(function(e){return e?new o3(W,e):null})};
o3.prototype.continue=function(W){this.cursor.continue(W);return SHo(this.request)};
o3.prototype.delete=function(){return si(this.cursor.delete()).then(function(){})};
o3.prototype.getValue=function(){return this.cursor.value};
o3.prototype.update=function(W){return si(this.cursor.update(W))};var l9=function(W,e){this.name=W;this.options=e;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},onB;
l9.prototype.openDb=function(W,e,t){t=t===void 0?{}:t;return OcS(W,e,t)};
l9.prototype.delete=function(W){W=W===void 0?{}:W;return _.KK(this.name,W)};
onB=function(W,e){return new TJ("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:e})};
_.iG=function(W,e){if(!e)throw xw("openWithToken",fK(W.name));return W.open()};
l9.prototype.open=function(){var W=this;if(!this.isCompatible)throw onB(this);if(this.connectionPromise)return this.connectionPromise;var e,t=function(){W.connectionPromise===e&&(W.connectionPromise=void 0)},b={blocking:function(q){q.close()},
closed:t,terminated:t,upgrade:this.options.upgrade},m=function(){var q,Q,X,I,u,c,v,D,B,k;return _.F(function(n){switch(n.nextAddress){case 1:return Q=(q=Error().stack)!=null?q:"",_.Qh(n,2),_.a(n,W.openDb(W.name,W.options.version,b),4);case 4:for(var f=X=n.yieldResult,M=W.options,K=[],U=_.R(Object.keys(M.objectStores)),V=U.next();!V.done;V=U.next()){V=V.value;var L=M.objectStores[V],E=L.removedAtVersion===void 0?Number.MAX_VALUE:L.removedAtVersion;!(f.JSC$8639_wrapped.version>=L.addedAtVersion)||f.JSC$8639_wrapped.version>=
E||f.JSC$8639_wrapped.objectStoreNames.contains(V)||K.push(V)}I=K;if(I.length===0){n.jumpTo(5);break}u=Object.keys(W.options.objectStores);c=X.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.mn("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,X.close(),_.je(new TJ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:u,foundObjectStores:c})),n.return(m());if(!(W.timesDeletedToFixMissingObjectStore<_.mn("ytidb_remake_db_retries",1))){n.jumpTo(6);
break}W.timesDeletedToFixMissingObjectStore++;return _.a(n,W.delete(),7);case 7:return _.je(new TJ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:u,foundObjectStores:c})),n.return(m());case 6:throw new FxD(c,u);case 5:return n.return(X);case 2:v=_.w9(n);if(v instanceof DOMException?v.name!=="VersionError":"DOMError"in self&&v instanceof DOMError?v.name!=="VersionError":!(v instanceof Object&&"message"in v)||v.message!=="An attempt was made to open a database using a lower version than the existing version."){n.jumpTo(8);
break}return _.a(n,W.openDb(W.name,void 0,Object.assign({},b,{upgrade:void 0})),9);case 9:D=n.yieldResult;B=D.getVersion();if(W.options.version!==void 0&&B>W.options.version+1)throw D.close(),W.isCompatible=!1,onB(W,B);return n.return(D);case 8:throw t(),v instanceof Error&&!_.S("ytidb_async_stack_killswitch")&&(v.stack=v.stack+"\n"+Q.substring(Q.indexOf("\n")+1)),jBz(v,W.name,"",(k=W.options.version)!=null?k:-1);}})};
return this.connectionPromise=e=m()};var MVD=new l9("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,e){e(1)&&HH(W,"databases",{keyPath:"actualName"})}});var icG,PkR=new function(){}(new function(){});new _.Xu;var l3v=function(W,e){l9.call(this,W,e);this.options=e;nK(W)};
_.Z(l3v,l9);var efz=function(W,e){var t;return function(){t||(t=new l3v(W,e));return t}};
l3v.prototype.openDb=function(W,e,t){t=t===void 0?{}:t;return(this.options.shared?E4S:L$9)(W,e,Object.assign({},t))};
l3v.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?W1z:Ajc)(this.name,W)};var Z_y={},tzQ=WH("ytGcfConfig",{objectStores:(Z_y.coldConfigStore={addedAtVersion:1},Z_y.hotConfigStore={addedAtVersion:1},Z_y),shared:!1,upgrade:function(W,e){e(1)&&(K_(HH(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),K_(HH(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var $IN=function(){_.ka.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.HO("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.kP(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.Nz("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.Z($IN,_.ka);$IN.prototype.disposeInternal=function(){for(var W=_.R(this.localHotConfigJobQueue),e=W.next();!e.done;e=W.next()){var t=this.sharedHotConfigJobQueue;e=t.indexOf(e.value);e>=0&&t.splice(e,1)}this.localHotConfigJobQueue.length=0;_.ka.prototype.disposeInternal.call(this)};var pJ=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new $IN;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(e){km8(W,e)},
setHotHashData:function(e){W.setHotHashData(e)},
setColdConfigGroup:function(e){pHB(W,e)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return y7k()},
getExportedHotConfigGroup:function(){return Z5()},
getExportedColdHashData:function(){return _.HO("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.HO("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){jMb(W)},
resetInstance:function(){W.setHotHashData(void 0);CaP(W);delete pJ.instance},
setDebounceTimer:function(e){W.debounceTimer=e},
getDebounceTimer:function(){return W.debounceTimer}}},nnD=function(){if(!pJ.instance){var W=new pJ;
pJ.instance=W}return pJ.instance},TTB=function(W){var e;
_.F(function(t){if(t.nextAddress==1)return _.S("start_client_gcf")||_.S("delete_gcf_config_db")?_.S("start_client_gcf")?_.a(t,_.d8(),3):t.jumpTo(2):t.return();t.nextAddress!=2&&((e=t.yieldResult)&&_.Bi()&&!_.S("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,jMb(W)):(f3S(W),gnU(W)));return _.S("delete_gcf_config_db")?_.a(t,QTD(),0):t.jumpTo(0)})},Fuc=function(){var W;
return(W=Z5())!=null?W:_.Ot("RAW_HOT_CONFIG_GROUP")},J7o=function(W){var e,t,b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:if(W.hotGlobalConfigGroup)return X.return(Z5());if(!W.isConfigDbInitialized)return e=xw("getHotConfig IDB not initialized"),_.Kt(e),X.return(Promise.reject(e));t=AQ();b=_.Ot("TIME_CREATED_MS");if(!t){m=xw("getHotConfig token error");_.Kt(m);X.jumpTo(2);break}return _.a(X,RfR(t),3);case 3:if((q=X.yieldResult)&&q.timestamp>b)return km8(W,q.config),W.setHotHashData(q.hashData),X.return(Z5());case 2:gnU(W);if(!(t&&W.hotGlobalConfigGroup&&W.hotHashData)){X.jumpTo(4);
break}return _.a(X,m2s(W.hotGlobalConfigGroup,W.hotHashData,t,b),4);case 4:return W.hotGlobalConfigGroup?X.return(Z5()):(Q=new _.o_("Config not available in ytConfig"),_.Kt(Q),X.return(Promise.reject(Q)))}})},O_B=function(W){var e,t,b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:if(W.coldGlobalConfigGroup)return X.return(y7k());if(!W.isConfigDbInitialized)return e=xw("getColdConfig IDB not initialized"),_.Kt(e),X.return(Promise.reject(e));t=AQ();b=_.Ot("TIME_CREATED_MS");if(!t){m=xw("getColdConfig");_.Kt(m);X.jumpTo(2);break}return _.a(X,q6v(t),3);case 3:if((q=X.yieldResult)&&q.timestamp>b)return pHB(W,q.config),xIU(W,q.configData),CaP(W,q.hashData),X.return(y7k());case 2:f3S(W);if(!(t&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){X.jumpTo(4);break}return _.a(X,ryR(W.coldGlobalConfigGroup,W.coldHashData,W.configData,t,b),4);case 4:return W.coldGlobalConfigGroup?X.return(y7k()):(Q=new _.o_("Config not available in ytConfig"),_.Kt(Q),X.return(Promise.reject(Q)))}})},jMb=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!AQ()){var e=xw("scheduleGetConfigs");
_.Kt(e)}W.initJob||(W.initJob=_.Tm.addLowPriorityJob(function(){return _.F(function(t){switch(t.nextAddress){case 1:return _.Qh(t,2),_.a(t,J7o(W),4);case 4:_.Hi(t,3);break;case 2:_.w9(t);case 3:return _.Qh(t,5),_.a(t,O_B(W),7);case 7:_.Hi(t,6);break;case 5:_.w9(t);case 6:W.initJob&&(W.initJob=0),_.u8(t)}})},100))}},mkD=function(W,e,t){var b,m,q;
return _.F(function(Q){switch(Q.nextAddress){case 1:if(!_.S("start_client_gcf")){Q.jumpTo(0);break}t&&km8(W,t);W.setHotHashData(e);b=AQ();if(!b){Q.jumpTo(3);break}if(t){Q.jumpTo(4);break}return _.a(Q,RfR(b),5);case 5:m=Q.yieldResult,t=(q=m)==null?void 0:q.config;case 4:return _.a(Q,m2s(t,e,b),3);case 3:if(t)for(var X=t,I=_.R(W.configUpdateService.sharedHotConfigJobQueue),u=I.next();!u.done;u=I.next())u=u.value,u(X);_.u8(Q)}})},r_K=function(W,e,t){var b,m,q,Q;
return _.F(function(X){if(X.nextAddress==1){if(!_.S("start_client_gcf"))return X.jumpTo(0);CaP(W,e);return(b=AQ())?t?X.jumpTo(4):_.a(X,q6v(b),5):X.jumpTo(0)}X.nextAddress!=4&&(m=X.yieldResult,t=(q=m)==null?void 0:q.config);if(!t)return X.jumpTo(0);Q=t.configData;return _.a(X,ryR(t,e,Q,b),0)})},p6c=function(){var W=nnD(),e=(0,_.eJ)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&e<_.mn("send_config_hash_timer"))){e=_.HO("yt.gcf.config.coldConfigData");var t=_.HO("yt.gcf.config.hotHashData"),b=_.HO("yt.gcf.config.coldHashData");e&&t&&b&&(W.debounceTimer=(0,_.eJ)());return{coldConfigData:e,hotHashData:t,coldHashData:b}}},f3S=function(W){pHB(W,_.Ot("RAW_COLD_CONFIG_GROUP"));
CaP(W,_.Ot("SERIALIZED_COLD_HASH_DATA"));var e;xIU(W,(e=W.coldGlobalConfigGroup)==null?void 0:e.configData)},gnU=function(W){km8(W,_.Ot("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.Ot("SERIALIZED_HOT_HASH_DATA"))},km8=function(W,e){W.hotGlobalConfigGroup=e;
_.Nz("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},pHB=function(W,e){W.coldGlobalConfigGroup=e;
_.Nz("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
pJ.prototype.setHotHashData=function(W){this.hotHashData=W;_.Nz("yt.gcf.config.hotHashData",this.hotHashData||null)};
var CaP=function(W,e){W.coldHashData=e;_.Nz("yt.gcf.config.coldHashData",W.coldHashData||null)},xIU=function(W,e){W.configData=e;
_.Nz("yt.gcf.config.coldConfigData",W.configData||null)},Z5=function(){return _.HO("yt.gcf.config.hotConfigGroup")},y7k=function(){return _.HO("yt.gcf.config.coldConfigGroup")};var aM={},MJo=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";aM.assign=function(W){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if(typeof t!=="object")throw new TypeError("Wc`"+t);for(var b in t)Object.prototype.hasOwnProperty.call(t,b)&&(W[b]=t[b])}}return W};
aM.shrinkBuf=function(W,e){if(W.length===e)return W;if(W.subarray)return W.subarray(0,e);W.length=e;return W};
var sMv={arraySet:function(W,e,t,b,m){if(e.subarray&&W.subarray)W.set(e.subarray(t,t+b),m);else for(var q=0;q<b;q++)W[m+q]=e[t+q]},
flattenChunks:function(W){var e,t;var b=t=0;for(e=W.length;b<e;b++)t+=W[b].length;var m=new Uint8Array(t);b=t=0;for(e=W.length;b<e;b++){var q=W[b];m.set(q,t);t+=q.length}return m}},h_h={arraySet:function(W,e,t,b,m){for(var q=0;q<b;q++)W[m+q]=e[t+q]},
flattenChunks:function(W){return[].concat.apply([],W)}};
aM.setTyped=function(){MJo?(aM.Buf8=Uint8Array,aM.Buf16=Uint16Array,aM.Buf32=Int32Array,aM.assign(aM,sMv)):(aM.Buf8=Array,aM.Buf16=Array,aM.Buf32=Array,aM.assign(aM,h_h))};
aM.setTyped();var H_P=!0;try{new Uint8Array(1)}catch(W){H_P=!1}
var Ro2=function(W){var e,t,b=W.length,m=0;for(e=0;e<b;e++){var q=W.charCodeAt(e);if((q&64512)===55296&&e+1<b){var Q=W.charCodeAt(e+1);(Q&64512)===56320&&(q=65536+(q-55296<<10)+(Q-56320),e++)}m+=q<128?1:q<2048?2:q<65536?3:4}var X=new aM.Buf8(m);for(e=t=0;t<m;e++)q=W.charCodeAt(e),(q&64512)===55296&&e+1<b&&(Q=W.charCodeAt(e+1),(Q&64512)===56320&&(q=65536+(q-55296<<10)+(Q-56320),e++)),q<128?X[t++]=q:(q<2048?X[t++]=192|q>>>6:(q<65536?X[t++]=224|q>>>12:(X[t++]=240|q>>>18,X[t++]=128|q>>>12&63),X[t++]=
128|q>>>6&63),X[t++]=128|q&63);return X};var U2s={};U2s=function(W,e,t,b){var m=W&65535|0;W=W>>>16&65535|0;for(var q;t!==0;){q=t>2E3?2E3:t;t-=q;do m=m+e[b++]|0,W=W+m|0;while(--q);m%=65521;W%=65521}return m|W<<16|0};for(var jJ={},$c,KxP=[],Pah=0;Pah<256;Pah++){$c=Pah;for(var VJo=0;VJo<8;VJo++)$c=$c&1?3988292384^$c>>>1:$c>>>1;KxP[Pah]=$c}jJ=function(W,e,t,b){t=b+t;for(W^=-1;b<t;b++)W=W>>>8^KxP[(W^e[b])&255];return W^-1};var vH={};vH={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 Oes=[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],sTS=[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],qbR=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Y69=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BH=Array(576);Qf(BH);var la=Array(60);Qf(la);var ua=Array(512);Qf(ua);var wT=Array(256);Qf(wT);var Mzz=Array(29);Qf(Mzz);var hfR=Array(30);Qf(hfR);var bGR,mf2,rmc,twc=!1;var gT;
gT=[new f_(0,0,0,0,function(W,e){var t=65535;for(t>W.pending_buf_size-5&&(t=W.pending_buf_size-5);;){if(W.lookahead<=1){C_(W);if(W.lookahead===0&&e===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var b=W.block_start+t;if(W.strstart===0||W.strstart>=b)if(W.lookahead=W.strstart-b,W.strstart=b,Z3(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(Z3(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(e===4)return Z3(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&Z3(W,!1);return 1}),
new f_(4,4,8,4,L1S),new f_(4,5,16,8,L1S),new f_(4,6,32,32,L1S),new f_(4,4,16,16,n_),new f_(8,16,32,32,n_),new f_(8,16,128,128,n_),new f_(8,32,128,256,n_),new f_(32,128,258,1024,n_),new f_(32,258,258,4096,n_)];var eog={};eog=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 Q1L=Object.prototype.toString;
WlQ.prototype.push=function(W,e){var t=this.strm,b=this.options.chunkSize;if(this.ended)return!1;var m=e===~~e?e:e===!0?4:0;typeof W==="string"?t.input=Ro2(W):Q1L.call(W)==="[object ArrayBuffer]"?t.input=new Uint8Array(W):t.input=W;t.next_in=0;t.avail_in=t.input.length;do{t.avail_out===0&&(t.output=new aM.Buf8(b),t.next_out=0,t.avail_out=b);W=d2D(t,m);if(W!==1&&W!==0)return i_Z(this,W),this.ended=!0,!1;if(t.avail_out===0||t.avail_in===0&&(m===4||m===2))if(this.options.to==="string"){var q=aM.shrinkBuf(t.output,
t.next_out);e=q;q=q.length;if(q<65537&&(e.subarray&&H_P||!e.subarray))e=String.fromCharCode.apply(null,aM.shrinkBuf(e,q));else{for(var Q="",X=0;X<q;X++)Q+=String.fromCharCode(e[X]);e=Q}this.chunks.push(e)}else e=aM.shrinkBuf(t.output,t.next_out),this.chunks.push(e)}while((t.avail_in>0||t.avail_out===0)&&W!==1);if(m===4)return(t=this.strm)&&t.state?(b=t.state.status,b!==42&&b!==69&&b!==73&&b!==91&&b!==103&&b!==113&&b!==666?W=Gm(t,-2):(t.state=null,W=b===113?Gm(t,-3):0)):W=-2,i_Z(this,W),this.ended=
!0,W===0;m===2&&(i_Z(this,0),t.avail_out=0);return!0};
var i_Z=function(W,e){e===0&&(W.result=W.options.to==="string"?W.chunks.join(""):aM.flattenChunks(W.chunks));W.chunks=[];W.err=e;W.msg=W.strm.msg};var YHo=typeof TextEncoder!=="undefined"?new TextEncoder:null,MwD=YHo?function(W){return YHo.encode(W)}:function(W){W=_.$a(W);
for(var e=new Uint8Array(W.length),t=0;t<e.length;t++)e[t]=W[t];return e};var Fm2={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},I59={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var kc=function(W,e){this.version=W;this.args=e};
kc.prototype.serialize=function(){return{version:this.version,args:this.args}};var wmG=function(W,e){this.topic=W;this.dataClass=e};
wmG.prototype.toString=function(){return this.topic};var z_r=_.HO("ytPubsub2Pubsub2Instance")||new _.uG;_.uG.prototype.subscribe=_.uG.prototype.subscribe;_.uG.prototype.unsubscribeByKey=_.uG.prototype.unsubscribeByKey;_.uG.prototype.publish=_.uG.prototype.publish;_.uG.prototype.clear=_.uG.prototype.clear;_.Nz("ytPubsub2Pubsub2Instance",z_r);var aNZ=_.HO("ytPubsub2Pubsub2SubscribedKeys")||{};_.Nz("ytPubsub2Pubsub2SubscribedKeys",aNZ);var cmS=_.HO("ytPubsub2Pubsub2TopicToKeys")||{};_.Nz("ytPubsub2Pubsub2TopicToKeys",cmS);
var u4S=_.HO("ytPubsub2Pubsub2IsAsync")||{};_.Nz("ytPubsub2Pubsub2IsAsync",u4S);_.Nz("ytPubsub2Pubsub2SkipSubKey",null);var kqc=void 0,ZGZ=void 0;var TOL=_.mn("max_body_size_to_compress",5E5),Jmv=_.mn("min_body_size_to_compress",500),xn=!0,HGQ=0,OH=0,hoS=_.mn("compression_performance_threshold_lr",250),Klz=_.mn("slow_compressions_before_abandon_count",4),j1z=!1,CXD=new Map,OGv=1,xf2=!0;_.QP(MI,iGK);MI.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 UIU=function(W,e,t){t||(t=0);var b=W.W_;if(typeof e==="string")for(var m=0;m<16;m++)b[m]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(m=0;m<16;m++)b[m]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(e=16;e<80;e++)t=b[e-3]^b[e-8]^b[e-14]^b[e-16],b[e]=(t<<1|t>>>31)&4294967295;e=W.chain_[0];t=W.chain_[1];m=W.chain_[2];for(var q=W.chain_[3],Q=W.chain_[4],X,I,u=0;u<80;u++)u<40?u<20?(X=q^t&(m^q),I=1518500249):(X=t^m^q,I=1859775393):u<60?(X=t&m|q&(t|m),
I=2400959708):(X=t^m^q,I=3395469782),X=(e<<5|e>>>27)+X+Q+I+b[u]&4294967295,Q=q,q=m,m=(t<<30|t>>>2)&4294967295,t=e,e=X;W.chain_[0]=W.chain_[0]+e&4294967295;W.chain_[1]=W.chain_[1]+t&4294967295;W.chain_[2]=W.chain_[2]+m&4294967295;W.chain_[3]=W.chain_[3]+q&4294967295;W.chain_[4]=W.chain_[4]+Q&4294967295};
MI.prototype.update=function(W,e){if(W!=null){e===void 0&&(e=W.length);for(var t=e-this.blockSize,b=0,m=this.buf_,q=this.inbuf_;b<e;){if(q==0)for(;b<=t;)UIU(this,W,b),b+=this.blockSize;if(typeof W==="string")for(;b<e;){if(m[q]=W.charCodeAt(b),++q,++b,q==this.blockSize){UIU(this,m);q=0;break}}else for(;b<e;)if(m[q]=W[b],++q,++b,q==this.blockSize){UIU(this,m);q=0;break}}this.inbuf_=q;this.total_+=e}};
MI.prototype.digest=function(){var W=[],e=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var t=this.blockSize-1;t>=56;t--)this.buf_[t]=e&255,e/=256;UIU(this,this.buf_);for(t=e=0;t<5;t++)for(var b=24;b>=0;b-=8)W[e]=this.chain_[t]>>b&255,++e;return W};var UfZ;var y1=function(W){var e=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(c){e.databaseToken=c},
triggerThrottle:function(){e.throttledSend()},
cancelThrottle:function(){e.cancelThrottledSend()},
immediateSend:function(c){return _.F(function(v){return _.a(v,e.immediateSend(c),0)})},
requestWithinAgeLimit:function(c,v){return e.requestWithinAgeLimit(c,v)},
retryQueuedRequests:function(){e.retryQueuedRequests()}};
var t;this.throttleTimeout=(t=W.throttleTimeout)!=null?t:100;var b;this.retryMaxAttempts=(b=W.retryMaxAttempts)!=null?b:1;var m;this.requestAgeLimitMs=(m=W.requestAgeLimitMs)!=null?m:2592E6;var q;this.queuedRequestAgeLimitMs=(q=W.queuedRequestAgeLimitMs)!=null?q:12E4;var Q;this.retryDelayMs=(Q=W.retryDelayMs)!=null?Q:5E3;var X;this.databaseToken=(X=W.databaseToken)!=null?X:void 0;this.enableCleaning=!!W.enableCleaning;var I;this.cleaningRate=(I=W.cleaningRate)!=null?I:.1;var u;this.potentialEsfErrorLimit=
(u=W.potentialEsfErrorLimit)!=null?u:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;pM(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Lxo(this)},Lxo=function(W){pM(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.r=y1.prototype;_.r.writeThenSend=function(W,e){var t=this;e=e===void 0?{}:e;if(pM(this)&&this.initialized){var b={url:W,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(b,this.databaseToken).then(function(m){b.id=m;t.networkManager.isNetworkAvailable()&&t.immediateSend(b)}).catch(function(m){t.immediateSend(b);
Env(t,m)})}else this.sendFn(W,e)};
_.r.sendThenWrite=function(W,e,t){var b=this;e=e===void 0?{}:e;if(pM(this)&&this.initialized){var m={url:W,options:e,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(m.skipRetry=t);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!m.skipRetry){if(!m.skipRetry){var q=e.onError?e.onError:function(){};
e.onError=function(Q,X){return _.F(function(I){if(I.nextAddress==1)return _.a(I,b.logsStore.set(m,b.databaseToken).catch(function(u){Env(b,u)}),2);
q(Q,X);_.u8(I)})}}this.sendFn(W,e,m.skipRetry)}else this.logsStore.set(m,this.databaseToken).catch(function(Q){b.sendFn(W,e,m.skipRetry);
Env(b,Q)})}else this.sendFn(W,e,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&t)};
_.r.sendAndWrite=function(W,e){var t=this;e=e===void 0?{}:e;if(pM(this)&&this.initialized){var b={url:W,options:e,timestamp:this.now(),status:"NEW",sendCount:0},m=!1,q=e.onSuccess?e.onSuccess:function(){};
b.options.onSuccess=function(Q,X){b.id!==void 0?t.logsStore.deleteRequest(b.id,t.databaseToken):m=!0;t.networkManager.networkStatusHint&&t.getBooleanFlag&&t.getBooleanFlag("vss_network_hint")&&t.networkManager.networkStatusHint(!0);q(Q,X)};
this.sendFn(b.url,b.options,void 0,!0);this.logsStore.set(b,this.databaseToken).then(function(Q){b.id=Q;m&&t.logsStore.deleteRequest(b.id,t.databaseToken)}).catch(function(Q){Env(t,Q)})}else this.sendFn(W,e,void 0,!0)};
_.r.throttledSend=function(){var W=this;if(!pM(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(t.nextAddress!=3)return e=t.yieldResult,e?_.a(t,W.immediateSend(e),3):(W.cancelThrottledSend(),t.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.u8(t)})},this.throttleTimeout))};
_.r.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.r.immediateSend=function(W){var e=this,t;return _.F(function(b){switch(b.nextAddress){case 1:if(!pM(e))throw Error("$c");if(W.id===void 0){b.jumpTo(2);break}return _.a(b,e.logsStore.markAsQueued(W.id,e.databaseToken),3);case 3:(t=b.yieldResult)||e.handleWarning(Error("ad"));case 2:if(e.requestWithinAgeLimit(W,e.requestAgeLimitMs)){b.jumpTo(4);break}e.handleWarning(Error("bd"));if(W.id===void 0){b.jumpTo(5);break}return _.a(b,e.logsStore.deleteRequest(W.id,e.databaseToken),5);case 5:return b.return();
case 4:W.skipRetry||(W=A7h(e,W));if(!W){b.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){b.jumpTo(8);break}return _.a(b,e.logsStore.deleteRequest(W.id,e.databaseToken),8);case 8:e.sendFn(W.url,W.options,!!W.skipRetry),_.u8(b)}})};
var A7h=function(W,e){if(!pM(W))throw Error("cd");var t=e.options.onError?e.options.onError:function(){};
e.options.onError=function(m,q){var Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:Q=df9(q);(X=WVG(q))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("dd"),e.url,q);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&Q||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){c.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){c.jumpTo(3);break}return _.a(c,W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){c.jumpTo(2);break}t(m,q);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((I=e)==null?void 0:I.id)===void 0){c.jumpTo(6);break}return _.a(c,W.logsStore.resetRequest(e.id,W.databaseToken,!1),6);case 6:return c.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!Q&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return c.return();W.potentialEsfErrorCounter++;if(((u=e)==null?void 0:u.id)===void 0){c.jumpTo(8);
break}return e.sendCount<W.retryMaxAttempts?_.a(c,W.logsStore.resetRequest(e.id,W.databaseToken,!0,X?!1:void 0),12):_.a(c,W.logsStore.deleteRequest(e.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:t(m,q),_.u8(c)}})};
var b=e.options.onSuccess?e.options.onSuccess:function(){};
e.options.onSuccess=function(m,q){var Q;return _.F(function(X){if(X.nextAddress==1)return((Q=e)==null?void 0:Q.id)===void 0?X.jumpTo(2):_.a(X,W.logsStore.deleteRequest(e.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);b(m,q);_.u8(X)})};
return e};
y1.prototype.requestWithinAgeLimit=function(W,e){W=W.timestamp;return this.now()-W>=e?!1:!0};
y1.prototype.retryQueuedRequests=function(){var W=this;if(!pM(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(e){e&&!W.requestWithinAgeLimit(e,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.F(function(t){if(t.nextAddress==1)return e.id===void 0?t.jumpTo(2):_.a(t,W.logsStore.resetRequest(e.id,W.databaseToken),2);W.retryQueuedRequests();_.u8(t)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var Env=function(W,e){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(e):W.handleError(e)},pM=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var eLD;var Qoc={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};var NTr={},Ia9=WH("ServiceWorkerLogsDatabase",{objectStores:(NTr.SWHealthLog={addedAtVersion:1},NTr),shared:!0,upgrade:function(W,e){e(1)&&K_(HH(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Sr2={},DuD=0;var ZBK;var jL=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},zm=function(){if(!jL.instance){var W=_.HO("yt.networkRequestMonitor.instance")||new jL;
_.Nz("yt.networkRequestMonitor.instance",W);jL.instance=W}return jL.instance};
jL.prototype.requestComplete=function(W,e){e&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,e)};
jL.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
jL.prototype.removeParams=function(W){return W.split("?")[0]};
jL.prototype.removeParams=jL.prototype.removeParams;jL.prototype.isEndpointCFR=jL.prototype.isEndpointCFR;jL.prototype.requestComplete=jL.prototype.requestComplete;jL.getInstance=zm;var CM=function(W){_.ZY.call(this);var e=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(m,q){return setTimeout(m,q)},
cancelJob:function(m){clearTimeout(m)}};
var t,b;this.isOnline=(b=(t=window.navigator)==null?void 0:t.onLine)!=null?b:!0;this.onNavigatorChange=function(){return _.F(function(m){return _.a(m,dIh(e),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||WGk(this)};
_.Z(CM,_.ZY);CM.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete CM.instance};
CM.prototype.isNetworkAvailable=function(){return this.isOnline};
var WGk=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var e;return _.F(function(t){if(t.nextAddress==1)return W.isOnline?((e=window.navigator)==null?0:e.onLine)?t.jumpTo(3):_.a(t,dIh(W),3):_.a(t,dIh(W),3);WGk(W);_.u8(t)})},3E4)},dIh=function(W,e){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(t){var b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:return b=window.AbortController?new window.AbortController:void 0,q=(m=b)==null?void 0:m.signal,Q=!1,_.Qh(X,2,3),b&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){b.abort()},e||2E4)),_.a(X,fetch("/generate_204",{method:"HEAD",
signal:q}),5);case 5:Q=!0;case 3:_.FY(X);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);Q!==W.isOnline&&(W.isOnline=Q,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));t(Q);_.aG(X,0);break;case 2:_.w9(X),Q=!1,X.jumpTo(3)}})})};var nM=function(){_.ZY.call(this);var W=this;this.shouldFlushErrors=!1;CM.instance||(CM.instance=new CM(_.Tm));this.sharedNetworkStatusManager=CM.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.S("offline_error_handling")){var e=$uD().get("errors",!0);if(e){for(var t in e)if(e[t]){var b=new _.o_(t,"sent via offline_errors");b.name=e[t].name;b.stack=e[t].stack;b.level=e[t].level;_.st(b)}$uD().set("errors",{},2592E3,!0)}}})};
_.Z(nM,_.ZY);var ebB=function(){if(!nM.instance){var W=_.HO("yt.networkStatusManager.instance")||new nM;_.Nz("yt.networkStatusManager.instance",W);nM.instance=W}return nM.instance};
_.r=nM.prototype;_.r.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.r.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.r.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.r.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.r.listen=function(W,e){return this.sharedNetworkStatusManager.listen(W,e)};
_.r.sendNetworkCheckRequest=function(W){W=dIh(this.sharedNetworkStatusManager,W);W.then(function(e){_.S("use_cfr_monitor")&&zm().requestComplete("generate_204",e)});
return W};
nM.prototype.sendNetworkCheckRequest=nM.prototype.sendNetworkCheckRequest;nM.prototype.listen=nM.prototype.listen;nM.prototype.enableErrorFlushing=nM.prototype.enableErrorFlushing;nM.prototype.getWindowStatus=nM.prototype.getWindowStatus;nM.prototype.networkStatusHint=nM.prototype.networkStatusHint;nM.prototype.isNetworkAvailable=nM.prototype.isNetworkAvailable;nM.getInstance=ebB;_.Yn=function(W){W=W===void 0?{}:W;_.ZY.call(this);var e=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ebB();var t=_.HO("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);t&&(W.rateLimit?(this.rateLimit=W.rateLimit,t("networkstatus-online",function(){tIr(e,"publicytnetworkstatus-online")}),t("networkstatus-offline",function(){tIr(e,"publicytnetworkstatus-offline")})):(t("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),t("networkstatus-offline",
function(){e.dispatchEvent("publicytnetworkstatus-offline")})))};
_.Z(_.Yn,_.ZY);_.Yn.prototype.isNetworkAvailable=function(){var W=_.HO("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.Yn.prototype.networkStatusHint=function(W){var e=_.HO("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);e&&e(W)};
_.Yn.prototype.sendNetworkCheckRequest=function(W){var e=this,t;return _.F(function(b){t=_.HO("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(e.nsmInstance);return _.S("skip_network_check_if_cfr")&&zm().isEndpointCFR("generate_204")?b.return(new Promise(function(m){var q;e.networkStatusHint(((q=window.navigator)==null?void 0:q.onLine)||!0);m(e.isNetworkAvailable())})):t?b.return(t(W)):b.return(!0)})};
var tIr=function(W,e){W.rateLimit?W.lastJobTime?(_.Tm.cancelJob(W.schedulerJob),W.schedulerJob=_.Tm.addLowPriorityJob(function(){W.lastPublicSignalSent!==e&&(W.dispatchEvent(e),W.lastPublicSignalSent=e,W.lastJobTime=(0,_.eJ)())},W.rateLimit-((0,_.eJ)()-W.lastJobTime))):(W.dispatchEvent(e),W.lastPublicSignalSent=e,W.lastJobTime=(0,_.eJ)()):W.dispatchEvent(e)};var Cms,fM=function(){y1.call(this,{logsStore:{cleanLogsStore:FVG,deleteRequest:QX2,getMostRecentByStatus:r8Q,markAsQueued:qrL,resetRequest:RLQ,set:muR},networkManager:_.nQL(),handleError:function(W,e,t){var b,m=t==null?void 0:(b=t.error)==null?void 0:b.code;if(m===400||m===415){var q;W=new _.o_(W.message,e,t==null?void 0:(q=t.error)==null?void 0:q.code);_.Kt(W,void 0,void 0,void 0,!0)}else _.st(W)},
handleWarning:_.Kt,sendFn:y8L,now:_.eJ,writeError:kiL,jobManager:_.g0(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.mn("potential_esf_error_limit",10),getBooleanFlag:_.S,disableYtIdbTransactions:!(_.Bi()&&_.faz())});this.initializationPromise=new _.Xu;_.S("networkless_immediately_drop_all_requests")&&XwG();W1z("LogsDatabaseV2")};
_.Z(fM,y1);_.mqv=function(){var W=_.HO("yt.networklessRequestController.instance");W||(W=new fM,_.Nz("yt.networklessRequestController.instance",W),_.S("networkless_logging")&&_.d8().then(function(e){W.databaseToken=e;Lxo(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&ww2(W.databaseToken);_.S("networkless_immediately_drop_sw_health_store")&&bJ8(W)}));
return W};
fM.prototype.writeThenSend=function(W,e){e||(e={});e=jXR(W,e);_.Bi()||(this.initialized=!1);y1.prototype.writeThenSend.call(this,W,e)};
fM.prototype.sendThenWrite=function(W,e,t){e||(e={});e=jXR(W,e);_.Bi()||(this.initialized=!1);y1.prototype.sendThenWrite.call(this,W,e,t)};
fM.prototype.sendAndWrite=function(W,e){e||(e={});e=jXR(W,e);_.Bi()||(this.initialized=!1);y1.prototype.sendAndWrite.call(this,W,e)};
fM.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var bJ8=function(W){var e;_.F(function(t){if(!W.databaseToken)throw e=xw("clearSWHealthLogsDb"),e;return t.return(uuS(W.databaseToken).catch(function(b){W.handleError(b)}))})};_.TDg=!1;_.gQL=_.tz.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.TDg};_.Nz("ytNetworklessLoggingInitializationOptions",_.gQL);var CJ=function(W){var e=this;this.config_=null;W?this.config_=W:F1L()&&(this.config_=_.ba());_.kM(_.Tm,function(){NO9(e)},5E3)};
CJ.prototype.isReady=function(){!this.config_&&F1L()&&(this.config_=_.ba());return!!this.config_};
var AmQ=function(W,e,t,b){!_.Ot("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&_.Kt(new _.o_("Missing VISITOR_DATA when sending innertube request.",e,t,b));if(!W.isReady()){var m=new _.o_("innertube xhrclient not ready",e,t,b);_.st(m);throw m;}var q={headers:b.headers||{},method:"POST",postParams:t,postBody:b.postBody,postBodyFormat:b.postBodyFormat||"JSON",onTimeout:function(){b.onTimeout()},
onFetchTimeout:b.onTimeout,onSuccess:function(v,D){if(b.onSuccess)b.onSuccess(D)},
onFetchSuccess:function(v){if(b.onSuccess)b.onSuccess(v)},
onError:function(v,D){if(b.onError)b.onError(D)},
onFetchError:function(v){if(b.onError)b.onError(v)},
timeout:b.timeout,withCredentials:!0,compress:b.compress};q.headers["Content-Type"]||(q.headers["Content-Type"]="application/json");var Q="";(m=W.config_.innertubeHostOverride)&&(Q=m);var X=W.config_.innertubeUseThirdPartyAuth||!1,I=_.kvc(X,Q,b);Object.assign(q.headers,I);q.headers.Authorization&&!Q&&X&&(q.headers["x-origin"]=window.location.origin);var u=_.zn(Q+("/youtubei/"+W.config_.innertubeApiVersion+"/"+e),{alt:"json"}),c=function(v){v=v===void 0?!1:v;var D;if(b.retry&&Q!="www.youtube-nocookie.com"&&
(v||_.S("skip_ls_gel_retry")||q.headers["Content-Type"]!=="application/json"||(D=Ll9(e,t,I,X)),D)){var B=q.onSuccess,k=q.onFetchSuccess;q.onSuccess=function(M,K){EgS(D);B(M,K)};
t.onFetchSuccess=function(M,K){EgS(D);k(M,K)}}try{if(v&&b.retry&&!b.networklessOptions.bypassNetworkless)q.method="POST",b.networklessOptions.writeThenSend?_.mqv().writeThenSend(u,q):_.mqv().sendAndWrite(u,q);
else if(b.compress){var n=!b.networklessOptions.writeThenSend;if(q.postBody){var f=q.postBody;typeof f!=="string"&&(f=JSON.stringify(q.postBody));s1G(u,f,q,_.a_,n)}else s1G(u,JSON.stringify(q.postParams),q,i1z,n)}else _.S("web_all_payloads_via_jspb")?_.a_(u,q):i1z(u,q)}catch(M){if(M.name==="InvalidAccessError")D&&(EgS(D),D=0),_.Kt(Error("fd"));else throw M;}D&&_.kM(_.Tm,function(){NO9(W)},5E3)};
_.J8K()?YTG().then(function(v){c(v)}):c(!1)};var OHL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(OHL,_.Ow);var rCe=0,OBc=_.uI?"webkit":_.w2?"moz":_.aP?"ms":ZoD?"o":"";_.Nz("ytDomDomGetNextId",_.HO("ytDomDomGetNextId")||function(){return++rCe});var qm8={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},dT=function(W){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(W=
W||window.event){this.event=W;for(var e in W)e in qm8||(this[e]=W[e]);this.scale=W.scale;this.rotation=W.rotation;var t=W.target||W.srcElement;t&&t.nodeType==3&&(t=t.parentNode);this.target=t;var b=W.relatedTarget;if(b)try{b=b.nodeName?b:null}catch(m){b=null}else this.type=="mouseover"?b=W.fromElement:this.type=="mouseout"&&(b=W.toElement);this.relatedTarget=b;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(m){}},Rbh=function(W){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+e}};
dT.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
dT.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
dT.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var NI=_.tz.ytEventsEventsListeners||{};_.Nz("ytEventsEventsListeners",NI);var PmG=_.tz.ytEventsEventsCounter||{count:0};_.Nz("ytEventsEventsCounter",PmG);var Vfz=_.B9(function(){var W=!1;try{var e=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,e)}catch(t){}return W});_.QP(eI,_.ka);eI.prototype.onMouseMove_=function(W){W.pageX_===void 0&&Rbh(W);var e=W.pageX_;W.pageY_===void 0&&Rbh(W);this.position_=new _.jH(e,W.pageY_)};
eI.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.eJ)();if(this.previousTime_!=0){var e=this.previousPosition_,t=this.position_,b=e.x-t.x;e=e.y-t.y;b=Math.sqrt(b*b+e*e)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((b-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(t=e=0;t<4;t++)e+=this.cycles_[t]||0;e>=3&&this.callback_();this.previousVelocity_=b}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
eI.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.iB2(this.mouseListenerKey_)};var LVD={};var b4Q=new _.z("rawColdConfigGroup");var tgD=new _.z("rawHotConfigGroup");var QzD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(QzD,_.Ow);var xR2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(xR2,_.Ow);var $M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W,500)};
_.Z($M,_.Ow);$M.prototype.getPayloadCase=function(){return _.pY(this,FGh)};
$M.prototype.getContext=function(){return _.mx(this,xR2,33)};
var FGh=[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];var EtK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(EtK,_.Ow);var kFL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(kFL,_.Ow);kFL.prototype.setVideoId=function(W){return v3(this,1,pGg,M9(W))};
kFL.prototype.getPlaylistId=function(){return _.Gg(this,oz(this,pGg,2))};
var pGg=[1,2];var VBK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(VBK,_.Ow);VBK.prototype.getContext=function(){return _.mx(this,GT,1)};
VBK.prototype.getTier=function(){return _.Js(this,7)};var X3e,rQ,qq;X3e=_.tz.ytPubsubPubsubInstance||new _.uG;rQ=_.tz.ytPubsubPubsubSubscribedKeys||{};qq=_.tz.ytPubsubPubsubTopicToKeys||{};_.EQc=_.tz.ytPubsubPubsubIsSynchronous||{};_.uG.prototype.subscribe=_.uG.prototype.subscribe;_.uG.prototype.unsubscribeByKey=_.uG.prototype.unsubscribeByKey;_.uG.prototype.publish=_.uG.prototype.publish;_.uG.prototype.clear=_.uG.prototype.clear;_.Nz("ytPubsubPubsubInstance",X3e);_.Nz("ytPubsubPubsubTopicToKeys",qq);_.Nz("ytPubsubPubsubIsSynchronous",_.EQc);
_.Nz("ytPubsubPubsubSubscribedKeys",rQ);var Qo=window;var gL=_.S("web_enable_lifecycle_monitoring")&&esK()!==0,Ito=_.S("web_enable_lifecycle_monitoring");var w3o=function(W){var e=this;var t=t===void 0?0:t;var b=b===void 0?_.g0():b;this.JSC$8861_defaultPriority=t;this.scheduler=b;this.completedResolver=new _.Xu;this.scheduledPayloads=W;for(W={i$jscomp$486:0};W.i$jscomp$486<this.scheduledPayloads.length;W={payload$jscomp$18:void 0,i$jscomp$486:W.i$jscomp$486},W.i$jscomp$486++)W.payload$jscomp$18=this.scheduledPayloads[W.i$jscomp$486],t=function(m){return function(){m.payload$jscomp$18.job();e.scheduledPayloads[m.i$jscomp$486].processed=!0;e.scheduledPayloads.every(function(q){return q.processed===
!0})&&e.completedResolver.resolve()}}(W),b=this.scheduler.addJob(t,atr(this,W.payload$jscomp$18)),this.scheduledPayloads[W.i$jscomp$486]=Object.assign({},W.payload$jscomp$18,{job:t,
jobId:b})};
w3o.prototype.flushJobs=function(){var W=this,e=Array.from(this.scheduledPayloads.keys()).sort(function(b,m){return atr(W,W.scheduledPayloads[m])-atr(W,W.scheduledPayloads[b])});
e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=this.scheduledPayloads[t.value],t.jobId===void 0||t.processed||(this.scheduler.cancelJob(t.jobId),this.scheduler.addJob(t.job,10))};
w3o.prototype.cancel=function(){for(var W=_.R(this.scheduledPayloads),e=W.next();!e.done;e=W.next())e=e.value,e.jobId===void 0||e.processed||this.scheduler.cancelJob(e.jobId),e.processed=!0;this.completedResolver.resolve()};
var atr=function(W,e){var t;return(t=e.priority)!=null?t:W.JSC$8861_defaultPriority};var TM=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};gL&&tBG(this.state)};
TM.prototype.install=function(W){this.plugins.push(W);return this};
TM.prototype.uninstall=function(){var W=this;_.$N.apply(0,arguments).forEach(function(e){e=W.plugins.indexOf(e);e>-1&&W.plugins.splice(e,1)})};
TM.prototype.transition=function(W,e){var t=this;gL&&bDR(this.state);var b=this.transitions.find(function(q){return Array.isArray(q.from)?q.from.find(function(Q){return Q===t.state&&q.to===W}):q.from===t.state&&q.to===W});
if(b){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);uTk(this,W,e);this.state=W;gL&&tBG(this.state);b=b.action.bind(this);var m=this.plugins.filter(function(q){return q[W]}).map(function(q){return q[W]});
b(cCe(this,m),e)}else throw Error("gd`"+this.state+"`"+W);};
var cCe=function(W,e){var t=e.filter(function(m){return vMe(W,m)===10}),b=e.filter(function(m){return vMe(W,m)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var m=_.$N.apply(0,arguments);return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.runImmediateJobsAsync.apply(W,[t].concat(_.kP(m))),2);W.setJobSetWithScheduledJobs.apply(W,[b].concat(_.kP(m)));_.u8(q)})}:function(){var m=_.$N.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[t].concat(_.kP(m)));W.setJobSetWithScheduledJobs.apply(W,[b].concat(_.kP(m)))}};
TM.prototype.runImmediateJobsSync=function(W){var e=_.$N.apply(1,arguments);_.g0();for(var t=_.R(W),b=t.next(),m={};!b.done;m={lifecycle$jscomp$2:void 0},b=t.next())m.lifecycle$jscomp$2=b.value,Qp(function(q){return function(){GTe(q.lifecycle$jscomp$2.name);rc9(function(){return q.lifecycle$jscomp$2.callback.apply(q.lifecycle$jscomp$2,_.kP(e))});
Jq(q.lifecycle$jscomp$2.name)}}(m))};
TM.prototype.runImmediateJobsAsync=function(W){var e=_.$N.apply(1,arguments),t,b,m,q;return _.F(function(Q){Q.nextAddress==1&&(_.g0(),t=_.R(W),b=t.next(),m={});if(Q.nextAddress!=3){if(b.done)return Q.jumpTo(0);m.lifecycle$jscomp$3=b.value;m.asyncJobCompletion=void 0;q=function(X){return function(){GTe(X.lifecycle$jscomp$3.name);var I=rc9(function(){return X.lifecycle$jscomp$3.callback.apply(X.lifecycle$jscomp$3,_.kP(e))});
eXZ(I)?X.asyncJobCompletion=_.S("web_lifecycle_error_handling_killswitch")?I.then(function(){Jq(X.lifecycle$jscomp$3.name)}):I.then(function(){Jq(X.lifecycle$jscomp$3.name)},function(u){mNG(u);
Jq(X.lifecycle$jscomp$3.name)}):Jq(X.lifecycle$jscomp$3.name)}}(m);
Qp(q);return m.asyncJobCompletion?_.a(Q,m.asyncJobCompletion,3):Q.jumpTo(3)}m={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};b=t.next();return Q.jumpTo(2)})};
TM.prototype.setJobSetWithScheduledJobs=function(W){var e=_.$N.apply(1,arguments),t=this,b=W.map(function(m){return{job:function(){GTe(m.name);rc9(function(){return m.callback.apply(m,_.kP(e))});
Jq(m.name)},
priority:vMe(t,m)}});
b.length&&(this.jobSet=new w3o(b))};
var vMe=function(W,e){var t,b;return(b=(t=W.overridePriority)!=null?t:e.priority)!=null?b:0},GTe=function(W){gL&&W&&tBG(W)},Jq=function(W){gL&&W&&bDR(W)},uTk=function(W,e,t){Ito&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+e+"'"),console.log("with message: ",t),console.groupEnd())};
_.Ec.Object.defineProperties(TM.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Dqy=function(W){TM.call(this,W===void 0?"none":W);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(){}}]},SmN;
_.Z(Dqy,TM);Dqy.prototype.runApplicationNavigationBegin=function(W,e){var t=this;this.navigationTimer=_.kM(_.Tm,function(){t.currentState==="application_navigating"&&t.transition("none")},5E3);
W(e==null?void 0:e.event)};
Dqy.prototype.runApplicationNavigationEnd=function(W,e){this.navigationTimer&&(_.Tm.cancelJob(this.navigationTimer),this.navigationTimer=null);W(e==null?void 0:e.event)};
_.em2=function(){SmN||(SmN=new Dqy);return SmN};var WuZ=[];_.Nz("yt.logging.transport.getScrapedGelPayloads",function(){return WuZ});var FT=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
FT.prototype.storePayload=function(W,e){W=qzD(W);this.store[W]?this.store[W].push(e):(this.memoizedKeySequences={},this.store[W]=[e]);this.totalEntries++;_.S("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return W};
FT.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var e=BQS(this,W.keys.splice(0,1)[0]),t=[],b=0;b<e.length;b++)this.store[e[b]]&&W.sizeLimit&&(this.store[e[b]].length<=W.sizeLimit?(t.push.apply(t,_.kP(this.store[e[b]])),delete this.store[e[b]]):t.push.apply(t,_.kP(this.store[e[b]].splice(0,W.sizeLimit))));this.totalEntries-=t.length;(W==null?0:W.sizeLimit)&&t.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=t.length,t.push.apply(t,_.kP(this.smartExtractMatchingEntries(W))));
return t};
FT.prototype.extractMatchingEntries=function(W){W=BQS(this,W);for(var e=[],t=0;t<W.length;t++)this.store[W[t]]&&(e.push.apply(e,_.kP(this.store[W[t]])),delete this.store[W[t]]);this.totalEntries-=e.length;return e};
FT.prototype.getSequenceCount=function(W){W=BQS(this,W);for(var e=0,t=0;t<W.length;t++){var b=void 0;e+=((b=this.store[W[t]])==null?void 0:b.length)||0}return e};
var BQS=function(W,e){var t=qzD(e);if(W.memoizedKeySequences[t])return W.memoizedKeySequences[t];var b=Object.keys(W.store)||[];if(b.length<=1&&qzD(e)===b[0])return b;for(var m=[],q=0;q<b.length;q++){var Q=b[q].split("/");if(oMb(e.auth,Q[0])){var X=e.isJspb;oMb(X===void 0?"undefined":X?"true":"false",Q[1])&&oMb(e.cttAuthInfo,Q[2])&&(X=e.tier,X=X===void 0?"undefined":JSON.stringify(X),oMb(X,Q[3])&&m.push(b[q]))}}return W.memoizedKeySequences[t]=m},oMb=function(W,e){return W===void 0||W==="undefined"?
!0:W===e};
FT.prototype.getSequenceCount=FT.prototype.getSequenceCount;FT.prototype.extractMatchingEntries=FT.prototype.extractMatchingEntries;FT.prototype.smartExtractMatchingEntries=FT.prototype.smartExtractMatchingEntries;FT.prototype.storePayload=FT.prototype.storePayload;var xNQ,TzG,ODv,ue,ltZ,RmK,qD2,gtK,f0c,Bzz,JcS,NzG,jHz;xNQ=_.mn("initial_gel_batch_timeout",2E3);TzG=_.mn("gel_queue_timeout_max_ms",6E4);ODv=_.mn("gel_min_batch_size",5);ue=void 0;ltZ=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
RmK=new ltZ;qD2=new ltZ;gtK=new ltZ;f0c=new ltZ;JcS=!0;NzG=1;_.AcZ=new Map;jHz=_.tz.ytLoggingTransportTokensToCttTargetIds_||{};_.Nz("ytLoggingTransportTokensToCttTargetIds_",jHz);var yc9=_.tz.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Nz("ytLoggingTransportTokensToJspbCttTargetIds_",yc9);var Iz={};var yo=_.tz.ytLoggingGelSequenceIdObj_||{};_.Nz("ytLoggingGelSequenceIdObj_",yo);var Ijz=[];var Z4v=new Set,v5s=0,y_G=0,pgR=0,DkZ=[],GfG=[],joz=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var KuK=function(){};
KuK.prototype.getUrl=function(W,e){e=e===void 0?!1:e;return W.hasOwnProperty("shareEndpoint")?null:_.g5D(W,null,e)};
var skL=function(W,e,t){W={endpoint:e,actions:[]};t=(t.path?t.path[0]:t.target).icon||"";e=t.indexOf(":");e>0&&(t=t.substr(e+1));t&&W.actions.push(t);return W};var soS=/Command$/,Mgc=/Endpoint$/,J_9=new Map;var ZJo,$qP;ZJo=1;_.P3=function(){this.actionRoutingMap=new Map};
_.P3.prototype.triggerAction=function(W){var e=new uHc(W,!1,_.$N.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.P3.prototype.triggerOptionalAction=function(W){var e=new uHc(W,!0,_.$N.apply(1,arguments));this.handleAction(e);return e.returnValue};
_.xc=function(W,e,t){e.forEach(function(b){var m=O4R(b);m&&W.triggerOptionalAction(m,b,t,void 0)})};
_.P3.prototype.handleAction=function(W){var e=this.actionRoutingMap.get(W.actionName);e&&$qP(W,e);W.optionalAction||W.returnValue.length!==0||(W=new _.o_("Unhandled action",W.actionName),_.Kt(W))};
$qP=function(W,e){e.forEach(function(t){var b=null;t?b=t.apply(null,W.args):(t=Error("hd"),t.params=W.actionName,_.st(t));W.returnValue.push(b)})};
_.Vo=function(W,e,t){t||(t=ZJo++);for(var b=_.R(Object.keys(e)),m=b.next();!m.done;m=b.next()){m=m.value;var q=W.actionRoutingMap.get(m);q||(q=new Map,W.actionRoutingMap.set(m,q));W.registerActionHandler(t,m,e[m],q)}return t};
_.P3.prototype.registerActionHandler=function(W,e,t,b){b.set(W,_.hJ(t))};
_.ie=function(W,e,t){e=_.R(Object.keys(e));for(var b=e.next();!b.done;b=e.next())(b=W.actionRoutingMap.get(b.value))&&b.delete(t)};
_.q7(_.P3);var i4G=function(W,e){var t=_.P3.getInstance();_.nt(function(){var b={},m=_.Vo(t,(b[W]=e,b));_.fh(function(){var q={};_.ie(t,(q[W]="",q),m)})})};_.LJ=Symbol("jd");ebG=CeG;var RKL=new Set(["For","If","Match","Watch"]),kTZ={},p3N=(kTZ[Hf.default]=function(){return Lxs},kTZ.style=function(){return Lxs},kTZ),yCb;
for(yCb in p3N)_.mJ.attributes[yCb]=p3N[yCb](_.mJ.attributes[yCb]);var WT=new _.W_("VISIBILITY_OBSERVER");var G2g={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?yJ2(this,this.id):knG}};var iRZ=function(W,e,t){if(W!==Em)return!1;W=eKc(document.createElement("div"),function(){var b=RA(!1);try{t[0]()}finally{RA(b)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var jzU=function(W){W=W.clone();dcr(W);lz(W,"dg",null);lz(W,"d","0");LEB(W,null);Ear(W,null);return W},CeP=!0,nMS=function(W,e,t){var b=t===void 0?{}:t;
t=b.cssRowKey===void 0?void 0:b.cssRowKey;var m=b.combinedSignature===void 0?void 0:b.combinedSignature;var q=b.extraEdges===void 0?void 0:b.extraEdges;b=b.callback===void 0?void 0:b.callback;lz(W,"m",e.join(","));q&&N$S(W,q);t&&(lz(W,"ck",t),m?lz(W,"rs",m):CeP&&(CeP=!1));if(b){if(b!=null&&!tCb.test(b))throw Error("bb`"+b);lz(W,"cb",b)}W=W.toString();_.m2(W,"/")&&(W=MPS(document.location.href)+W);return _.Fh(W)};var gMh=function(W){return ftU(W).then(function(e){return JSON.parse(e.responseText)})},ftU=function(W){var e={},t=e.xmlHttpFactory?e.xmlHttpFactory.createInstance():Gyr.createInstance();
return(new _.c3(function(b,m){var q;try{t.open("GET",W,!0)}catch(I){m(new O5("Error opening XHR: "+I.message,W,t))}t.onreadystatechange=function(){if(t.readyState==4){_.tz.clearTimeout(q);var I;!(I=vNr(t.status))&&(I=t.status===0)&&(I=Orh(W),I=!(I=="http"||I=="https"||I==""));I?b(t):m(new TQN(t.status,W,t))}};
t.onerror=function(){m(new O5("Network error",W,t))};
if(e.headers)for(var Q in e.headers){var X=e.headers[Q];X!=null&&t.setRequestHeader(Q,X)}e.withCredentials&&(t.withCredentials=e.withCredentials);e.responseType&&(t.responseType=e.responseType);e.mimeType&&t.overrideMimeType(e.mimeType);e.timeoutMs>0&&(q=_.tz.setTimeout(function(){t.onreadystatechange=function(){};
t.abort();m(new JCb(W,t))},e.timeoutMs));
try{t.send(null)}catch(I){t.onreadystatechange=function(){},_.tz.clearTimeout(q),m(new O5("Error sending XHR: "+I.message,W,t))}})).thenCatch(function(b){b instanceof _.Lv&&t.abort();
throw b;})},O5=function(W,e,t){_.WZ.call(this,W+", url="+e);
this.url=e;this.xhr=t};
_.QP(O5,_.WZ);O5.prototype.name="XhrError";var TQN=function(W,e,t){O5.call(this,"Request Failed, status="+W,e,t);this.status=W};
_.QP(TQN,O5);TQN.prototype.name="XhrHttpError";var JCb=function(W,e){O5.call(this,"Request timed out",W,e)};
_.QP(JCb,O5);JCb.prototype.name="XhrTimeoutError";r2=r2||{};var M_=function(){_.ka.call(this)};
_.QP(M_,_.ka);M_.prototype.initialize=function(){};var xqk=function(W,e){this.fn_=W;this.handler_=e};
xqk.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
xqk.prototype.abort=function(){this.handler_=this.fn_=null};var s5=function(W,e){_.ka.call(this);this.deps_=W;this.JSC$8989_id_=e;this.onloadCallbacks_=[];this.JSC$8989_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.QP(s5,_.ka);s5.prototype.moduleConstructor_=M_;s5.prototype.module_=null;s5.prototype.getId=function(){return this.JSC$8989_id_};
s5.prototype.registerCallback=function(W,e){return OJv(this.onloadCallbacks_,W,e)};
var MIh=function(W,e){OJv(W.JSC$8989_onErrorCallbacks_,e)},OJv=function(W,e,t){e=new xqk(e,t);
W.push(e);return e};
s5.prototype.isLoaded=function(){return!!this.module_};
s5.prototype.onLoad=function(W){var e=new this.moduleConstructor_;e.initialize(W());this.module_=e;e=(e=sze(this.earlyOnloadCallbacks_,W()))||sze(this.onloadCallbacks_,W());e||(this.JSC$8989_onErrorCallbacks_.length=0);return e};
s5.prototype.onError=function(W){(W=sze(this.JSC$8989_onErrorCallbacks_,W))&&bv(Error("nd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var sze=function(W,e){for(var t=[],b=0;b<W.length;b++)try{W[b].execute(e)}catch(m){bv(m),t.push(m)}W.length=0;return t.length?t:null};
s5.prototype.disposeInternal=function(){s5.superClass_.disposeInternal.call(this);_.NL(this.module_)};var hb8,Ymy,VI8,iJy,KGr,PeN,ACP,LGD,EMN;
_.H_=function(W,e,t,b,m){b=b===void 0?!1:b;m=m===void 0?!1:m;var q=q===void 0?!0:q;this.scsReferenceUrl_=L7z(_.Xh(W).toString(),q);this.cssRowKey_=e;this.combinedSignature_=t;this.useNegativeLoading_=b;this.requestedModuleMap_={};this.JSC$8992_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=o8(this.scsReferenceUrl_,"excm"))?W.split(","):[];this.shouldScanForCss_=m;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;EqD();_.hq(this,AEo(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
hb8=function(W,e){if(e.href||e.getAttribute("data-href"))if(e=e.href||e.getAttribute("data-href"),itv(e)&&!L7z(e).urlPrefix_.endsWith("_/js/")){e=AEo(L7z(e));e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,W.loadedCssModuleList_.includes(t)||W.loadedCssModuleList_.push(t)}};
_.H_.prototype.JSC$8994_loadModules=function(W,e,t){var b=t===void 0?{}:t;t=b.extraEdges;var m=b.onError;var q=b.onSuccess;b=b.forceReload;this.JSC$8992_moduleInfoMap_=e;if(!W)throw Error("od");if(this.shouldScanForCss_){e=_.R(document.getElementsByTagName("style"));for(var Q=e.next();!Q.done;Q=e.next())hb8(this,Q.value);e=_.R(document.getElementsByTagName("link"));for(Q=e.next();!Q.done;Q=e.next())hb8(this,Q.value)}HJU(this,KGr(this,W),t,m,q,b)};
var HJU=function(W,e,t,b,m,q){b=b===void 0?function(){}:b;
m=m===void 0?function(){}:m;
q=q===void 0?!1:q;PeN(W,e,function(Q,X,I){I=I===void 0?X:I;W.enableFallbackFetch&&q?W.loadWithFetch(Q,X,b,m,I):W.load(Q,X,b,m,I,t)},t)||b(-1)};
_.H_.prototype.loadWithFetch=function(){_.F(function(){throw Error("pd");})};
_.H_.prototype.maybeSetAdditionalFields=function(){};
Ymy=function(W,e,t){if(W.useNegativeLoading_){var b=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:t,requestedModuleIds:VI8(W),requestedCssModuleIds:iJy(W)};var m=W===void 0?{}:W;W=m.requestedModuleIds===void 0?[]:m.requestedModuleIds;t=m.requestedCssModuleIds===void 0?[]:m.requestedCssModuleIds;var q=m.cssRowKey===void 0?void 0:m.cssRowKey;var Q=m.combinedSignature===void 0?void 0:m.combinedSignature;var X=m.extraEdges===void 0?void 0:m.extraEdges;
m=m.callback===void 0?void 0:m.callback;b=jzU(b);lz(b,"d","1");LEB(b,W);Ear(b,t);e=nMS(b,e,{cssRowKey:q,combinedSignature:Q,extraEdges:X,callback:m})}else b=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:VI8(W),requestedCssModuleIds:iJy(W)},X=W===void 0?{}:W,W=X.requestedCssModuleIds===void 0?[]:X.requestedCssModuleIds,t=X.cssRowKey===void 0?void 0:X.cssRowKey,q=X.combinedSignature===void 0?void 0:X.combinedSignature,Q=X.extraEdges===void 0?
void 0:X.extraEdges,X=X.callback===void 0?void 0:X.callback,b=jzU(b),Ear(b,W),e=nMS(b,e,{cssRowKey:t,combinedSignature:q,extraEdges:Q,callback:X});return e};
_.hq=function(W,e){for(var t=!1,b=[],m=0;m<e.length;++m){var q=e[m];W.requestedModuleMap_[q]||(W.requestedModuleMap_[q]=!0,W.requestedModuleList_.push(q),t=!0,b.push(q))}t&&(W.requestedModuleListSorted_=!1)};
_.KM=function(W,e){for(var t=[],b=0;b<e.length;++b){var m=e[b];W.requestedModuleMap_[m]&&(delete W.requestedModuleMap_[m],_.UL(W.requestedModuleList_,m),t.push(m))}};
_.H_.prototype.load=function(W,e,t,b,m){m=m===void 0?e:m;_.Xh(W);var q=this.useCors_,Q=this.corsMode_,X=this.fetchPriority,I=_.DA("SCRIPT");_.H7(I,W);q&&(I.crossOrigin=Q);I.async=!1;X&&I.setAttribute("fetchpriority",X);_.hq(this,e);_.zbB(this,W,I,e,t,b,m)};
_.zbB=function(W,e,t,b,m,q,Q){Q=Q===void 0?b:Q;W.lastScript_=t;W.insertPos.insertBefore(t,W.insertPos.firstChild);_.Uqk(t,b,function(){t.parentElement.removeChild(t);W.lastScript_==t&&(W.lastScript_=null);var X=new Set;b.map(function(u){return X.add(u)});
for(var I in W.JSC$8992_moduleInfoMap_)W.JSC$8992_moduleInfoMap_[I].isLoaded()&&X.add(I);Array.from(X);q()},function(X){t.parentElement.removeChild(t);
W.lastScript_==t&&(W.lastScript_=null);_.KM(W,X);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){m(-1,e)}):m(-1,e)},Q)};
_.Uqk=function(W,e,t,b,m){m=m===void 0?e:m;var q=e.length,Q=function(){q=0;W.onload=null;W.onerror=null;X=function(){}},X=function(){Q();
var u=m.filter(function(c){return!f3().getModuleInfo(c).isLoaded()});
u.length!==0?b(u,"Response was successful but was missing module(s) "+u+"."):t()},I=function(){q--;
q==0&&X()};
e.forEach(function(u){u=f3().getModuleInfo(u);u.isLoaded()?I():(OJv(u.earlyOnloadCallbacks_,I),MIh(u,I))});
W.onload=function(){return X()};
W.onerror=function(){Q();b(e)}};
VI8=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
iJy=function(W){W=W.loadedCssModuleList_;W.sort();return W};
KGr=function(W,e){return e.filter(function(t){return!W.requestedModuleMap_[t]})};
PeN=function(W,e,t,b){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){PeN(W,e,t,b)}),!0;
if(!W.useNegativeLoading_){var m=[],q=Object.assign({},W.requestedModuleMap_);LGD(W,e,function(c){m.push(c.getId())},b,function(c){return!c.isLoaded()},q);
e=m}for(q=0;q<e.length;){for(var Q=e.length-q,X=q==0?e:e.slice(q,e.length),I=Ymy(W,X,b),u=_.Xh(I).toString();u.length>W.urlMaxLength;)if(Q>1)Q-=Math.ceil((u.length-W.urlMaxLength)/6),Q=Math.max(Q,1),X=e.slice(q,q+Q),I=Ymy(W,X,b),u=_.Xh(I).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=EMN(W).then(function(c){ACP(W,c,b)}),PeN(W,e.slice(q),t,b)):!1;
q+=Q;W.useNegativeLoading_?t(I,X):t(I,X,q===e.length?e:[])}return!0};
ACP=function(W,e,t){f3().setAllModuleInfoString((e||{}).moduleGraph);LGD(W,VI8(W),function(b){_.hq(W,[b.getId()])},t);
W.pendingModuleGraphUpdate_=null};
LGD=function(W,e,t,b,m,q){q=q===void 0?{}:q;var Q=f3();e=_.R(e);for(var X=e.next();!X.done;X=e.next()){X=X.value;var I=Q.getModuleInfo(X);if(!(q[X]||m&&!m(I))){q[X]=!0;var u=I.deps_||[];if(b){var c=[];b[X]&&(c=Object.keys(b[X]));u=u.concat(c)}LGD(W,u,t,b,m,q);t(I)}}};
EMN=function(W){W=W.scsReferenceUrl_.clone();dcr(W);lz(W,"dg",null);lz(W,"md","1");return gMh(W.toString())};var BdQ=new Uint8Array(123);var NQk=[];var dqr=function(){this.JSC$8099_loader_=null};
_.r=dqr.prototype;_.r.setBatchModeEnabled=function(){};
_.r.setAllModuleInfoString=function(){};
_.r.addExtraEdge=function(){throw Error("qd");};
_.r.removeExtraEdge=function(){throw Error("rd");};
_.r.getModuleContext=function(){return null};
_.r.isActive=function(){return!1};
_.r.isUserActive=function(){return!1};
_.r.registerCallback=function(){};var P_=function(W,e,t,b,m){var q=Error.call(this);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.name="ModuleLoadFailure";this.type=W;this.status=e;this.requestedModuleIds=t;this.url=b;this.cause=m;this.message=this.toString()};
_.Z(P_,Error);P_.prototype.toString=function(){return WYb(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var WYb=function(W){switch(W.type){case P_.JSC$9004_Type.UNAUTHORIZED:return"Unauthorized";case P_.JSC$9004_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case P_.JSC$9004_Type.TIMEOUT:return"Timed out";case P_.JSC$9004_Type.OLD_CODE_GONE:return"Out of date module id";case P_.JSC$9004_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
r2.ModuleLoadFailure=P_;r2.ModuleLoadFailure.JSC$9004_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var V1=function(){this.moduleIds_=this.JSC$8099_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$9007_extraEdges_={};this.JSC$9007_callbackMap_={};this.JSC$9007_currentlyLoadingModule_=this.baseModuleInfo_=new s5([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new zD;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.QP(V1,dqr);var erD=function(W,e){_.WZ.call(this,"Error loading "+W+": "+e)};
_.QP(erD,_.WZ);V1.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
V1.prototype.setAllModuleInfoString=function(W,e){if(!(this instanceof V1))this.setAllModuleInfoString(W,e);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var t=[],b=0,m=W.indexOf("/"),q=0,Q=!1,X=0;;){var I=Q?W.substring(q):W.substring(q,m);if(I.length===0)b++,q="sy"+b.toString(36),I=[];else{var u=I.indexOf(":");if(u<0)q=I,I=[];else if(u===I.length-1)q=I.substring(0,u),I=Array(t[X-1]);else{q=I.substring(0,u);I=I.substring(u+1).split(",");u=X;for(var c=0;c<I.length;c++)u-=
I[c].length===0?1:Number(I[c]),I[c]=t[u]}u=0;if(q.length===0)u=1;else if(q.charAt(0)==="+"||q.charAt(0)==="-")u=Number(q);u!==0&&(b+=u,q="sy"+b.toString(36))}t.push(q);tvk(this,q,I);if(Q)break;q=m+1;m=W.indexOf("/",q);m===-1&&(Q=!0);X++}this.moduleIds_=t}else if(W.startsWith("p$"))b1Z(this,W);else{W=W.split("/");t=[];for(b=0;b<W.length;b++){X=W[b].split(":");m=X[0];Q=[];if(X[1])for(Q=X[1].split(","),X=0;X<Q.length;X++)Q[X]=t[parseInt(Q[X],36)];t.push(m);tvk(this,m,Q)}this.moduleIds_=t}e&&e.length?
(_.dG(this.loadingModuleIds_,e),this.lastInitialModuleId_=_.OL(e)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$9007_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$9007_currentlyLoadingModule_=null,(e=this.baseModuleInfo_.onLoad((0,_.p3)(this.getModuleContext,this)))&&e.length&&mnb(this,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.INIT_ERROR,void 0,void 0,void 0,e[0])),i9(this))}};
var b1Z=function(W,e){var t=e.substring(2);for(e=0;e<64;e++)BdQ["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(e)]=e;var b={buf:t,pos:0};bU(b);var m=bU(b),q=bU(b)+1;e=Array(m);var Q=Array(m),X=Array(m);q=Array(q);var I=0,u=0,c=b.pos,v=b.buf.indexOf("|",b.pos);b.pos=v+1;for(v=0;v<m;v++){var D=bU(b),B=D&2,k=D&1;D>>>=2;k?(I+=D>>>1^-(D&1),D="sy"+I.toString(36)):(k=c,c+=D,D=t.substring(k,c));e[v]=D;B&&(q[u++]=D)}q[u]="";b.pos++;u=m&-2;t=m&1;for(I=0;I<u;I+=2)c=oDS(b),X[I]=
c&7,X[I+1]=c>>>3&7;t&&(t=oDS(b),X[u]=t&7);b.pos++;for(u=0;u<m;u++)X[u]===7&&(X[u]=bU(b));b.pos++;for(t=u=0;t<m;t++){I=X[t];c=I===0?NQk:Array(I);Q[t]=c;v=u;for(B=0;B<I;B++)v-=bU(b),c[B]=q[v];q[u]===e[t]&&u++}for(b=0;b<e.length;b++)tvk(W,e[b],Q[b]);W.moduleIds_=e};
_.r=V1.prototype;_.r.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.r.addExtraEdge=function(W,e){var t=this.getModuleInfo(W);t&&t.isLoaded()?this.load(e):(this.JSC$9007_extraEdges_[W]||(this.JSC$9007_extraEdges_[W]={}),this.JSC$9007_extraEdges_[W][e]=!0)};
_.r.removeExtraEdge=function(W,e){if(this.JSC$9007_extraEdges_[W]){delete this.JSC$9007_extraEdges_[W][e];for(var t in this.JSC$9007_extraEdges_[W])return;delete this.JSC$9007_extraEdges_[W]}};
_.r.isActive=function(){return this.loadingModuleIds_.length>0};
_.r.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var i9=function(W){var e=W.lastActive_,t=W.isActive();t!=e&&(W.executeCallbacks_(t?"active":"idle"),W.lastActive_=t);e=W.isUserActive();e!=W.userLastActive_&&(W.executeCallbacks_(e?"userActive":"userIdle"),W.userLastActive_=e)},tvk=function(W,e,t){W.moduleInfoMap[e]?(W=W.moduleInfoMap[e].deps_,W!=t&&W.splice.apply(W,[0,
W.length].concat(_.kP(t)))):W.moduleInfoMap[e]=new s5(t,e)},qcP=function(W,e,t){var b=[];
me(e,b);e=[];for(var m={},q=0;q<b.length;q++){var Q=b[q],X=W.getModuleInfo(Q);if(!X)throw Error("sd`"+Q);var I=new zD;m[Q]=I;X.isLoaded()?I.callback(null):(rAZ(W,Q,X,!!t,I),W.isModuleLoading(Q)||e.push(Q))}e.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(e):(W.requestedModuleIdsQueue_.push(e),i9(W)));return m},rAZ=function(W,e,t,b,m){t.registerCallback(m.callback,m);
MIh(t,function(q){m.errback(new erD(e,q))});
W.isModuleLoading(e)?b&&(Rrk(W,e),i9(W)):b&&Rrk(W,e)};
V1.prototype.loadModules_=function(W,e,t){var b=this;e||(this.consecutiveFailures_=0);var m=QQk(this,W);this.loadingModuleIds_=m;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.EL(m);i9(this);if(m.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,m);if(Object.keys(this.JSC$9007_extraEdges_).length>0&&!this.JSC$8099_loader_.supportsExtraEdges)throw Error("td");W=(0,_.p3)(this.JSC$8099_loader_.JSC$8994_loadModules,this.JSC$8099_loader_,_.EL(m),this.moduleInfoMap,{extraEdges:this.JSC$9007_extraEdges_,
forceReload:!!t,onError:function(q,Q){var X=b.requestedLoadingModuleIds_;q=q!=null?q:void 0;b.consecutiveFailures_++;var I=_.EL(m);b.requestedLoadingModuleIds_=X;m.forEach(_.Sz(_.UL,b.requestedModuleIds_),b);q==401?(mnb(b,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.UNAUTHORIZED,q)),b.requestedModuleIdsQueue_.length=0):q==410?(FYy(b,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.OLD_CODE_GONE,q)),XTv(b)):b.consecutiveFailures_>=3?(FYy(b,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.CONSECUTIVE_FAILURES,
q,I,Q)),XTv(b)):b.loadModules_(b.requestedLoadingModuleIds_,!0,q==8001||!1)},
onTimeout:(0,_.p3)(this.handleLoadTimeout_,this)});(e=Math.pow(this.consecutiveFailures_,2)*5E3)?_.tz.setTimeout(W,e):W()}};
var QQk=function(W,e){e=e.filter(function(m){return W.moduleInfoMap[m].isLoaded()?(_.tz.setTimeout(function(){return Error("ud`"+m)},0),!1):!0});
for(var t=[],b=0;b<e.length;b++)t=t.concat(IoZ(W,e[b]));me(t);return!W.batchModeEnabled_&&t.length>1?(e=t.shift(),W.requestedModuleIdsQueue_=t.map(function(m){return[m]}).concat(W.requestedModuleIdsQueue_),[e]):t},IoZ=function(W,e){var t=_.kJ.createSet(W.requestedModuleIds_),b=[];
t[e]||b.push(e);e=[e];for(var m=0;m<e.length;m++)for(var q=W.getModuleInfo(e[m]).deps_,Q=q.length-1;Q>=0;Q--){var X=q[Q];W.getModuleInfo(X).isLoaded()||t[X]||(b.push(X),e.push(X))}b.reverse();me(b);return b};
V1.prototype.JSC$9002_setLoaded=function(){if(this.JSC$9007_currentlyLoadingModule_){var W=this.JSC$9007_currentlyLoadingModule_.getId(),e=[];if(this.JSC$9007_extraEdges_[W]){for(var t=_.R(Object.keys(this.JSC$9007_extraEdges_[W])),b=t.next();!b.done;b=t.next()){b=b.value;var m=this.getModuleInfo(b);m&&!m.isLoaded()&&(this.removeExtraEdge(W,b),e.push(b))}this.loadMultiple(e)}this.isDisposed()||((e=this.moduleInfoMap[W].onLoad((0,_.p3)(this.getModuleContext,this)))&&e.length&&mnb(this,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.INIT_ERROR,
void 0,void 0,void 0,e[0])),_.UL(this.userInitiatedLoadingModuleIds_,W),_.UL(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&XTv(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),i9(this),this.JSC$9007_currentlyLoadingModule_=null)}};
V1.prototype.isModuleLoading=function(W){if(_.PZ(this.loadingModuleIds_,W))return!0;for(var e=0;e<this.requestedModuleIdsQueue_.length;e++)if(_.PZ(this.requestedModuleIdsQueue_[e],W))return!0;return!1};
V1.prototype.load=function(W,e){return qcP(this,[W],e)[W]};
V1.prototype.loadMultiple=function(W){return qcP(this,W)};
var Rrk=function(W,e){_.PZ(W.userInitiatedLoadingModuleIds_,e)||W.userInitiatedLoadingModuleIds_.push(e)};
V1.prototype.beforeLoadModuleCode=function(W){var e=this;this.JSC$9007_currentlyLoadingModule_&&this.JSC$9007_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$9002_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&aoP(this,this.moduleInfoMap[W].deps_||[],function(t){t.module_=new M_;_.UL(e.loadingModuleIds_,t.getId())},function(t){return!t.isLoaded()});
this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo(W)};
V1.prototype.handleLoadTimeout_=function(){FYy(this,new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.TIMEOUT));XTv(this)};
var FYy=function(W,e){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(t){return[t]}).concat(W.requestedModuleIdsQueue_):mnb(W,e)},mnb=function(W,e){var t=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var b=[],m=0;m<W.requestedModuleIdsQueue_.length;m++){var q=W.requestedModuleIdsQueue_[m].filter(function(I){var u=IoZ(this,I);return UH(t,function(c){return _.PZ(u,c)})},W);
_.dG(b,q)}for(m=0;m<t.length;m++)_.Y9(b,t[m]);for(m=0;m<b.length;m++){for(q=0;q<W.requestedModuleIdsQueue_.length;q++)_.UL(W.requestedModuleIdsQueue_[q],b[m]);_.UL(W.userInitiatedLoadingModuleIds_,b[m])}if(m=W.JSC$9007_callbackMap_.error)for(q=0;q<m.length;q++)for(var Q=m[q],X=0;X<b.length;X++)Q("error",b[X],e);for(b=0;b<t.length;b++)if(W.moduleInfoMap[t[b]])W.moduleInfoMap[t[b]].onError(e);W.requestedLoadingModuleIds_.length=0;i9(W)},XTv=function(W){for(;W.requestedModuleIdsQueue_.length;){var e=
W.requestedModuleIdsQueue_.shift().filter(function(t){return!this.getModuleInfo(t).isLoaded()},W);
if(e.length>0){W.loadModules_(e);return}}i9(W)};
V1.prototype.registerCallback=function(W,e){Array.isArray(W)||(W=[W]);for(var t=0;t<W.length;t++){var b=W[t],m=e,q=this.JSC$9007_callbackMap_;q[b]||(q[b]=[]);q[b].push(m)}};
V1.prototype.executeCallbacks_=function(W){for(var e=this.JSC$9007_callbackMap_[W],t=0;e&&t<e.length;t++)e[t](W)};
var aoP=function(W,e,t,b,m){b=b===void 0?function(){return!0}:b;
m=m===void 0?{}:m;e=_.R(e);for(var q=e.next();!q.done;q=e.next()){q=q.value;var Q=W.getModuleInfo(q);!m[q]&&b(Q)&&(m[q]=!0,aoP(W,Q.deps_||[],t,b,m),t(Q))}};
V1.prototype.dispose=function(){_.d6(_.kJ.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$9007_callbackMap_={};this.isDisposed_=!0};
V1.prototype.isDisposed=function(){return this.isDisposed_};
_.n3=function(){return new V1};var wTh=[5E3,2E4],uwN=function(){this.JSC$8099_loader_=null;this.JSC$9015_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9015_queue_=[];this.JSC$9015_extraEdges_=Object.create(null);this.JSC$9015_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.Z(uwN,dqr);_.r=uwN.prototype;_.r.setAllModuleInfoString=function(){this.JSC$9015_currentlyLoadingModule_&&this.JSC$9015_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$9002_setLoaded()};
_.r.getModuleInfo=function(W){var e=this.JSC$9015_moduleInfoMap_[W];e||(e=new s5([],W),this.JSC$9015_moduleInfoMap_[W]=e);return e};
_.r.addExtraEdge=function(W,e){this.getModuleInfo(W).isLoaded()?this.load(e):(this.JSC$9015_extraEdges_[W]||(this.JSC$9015_extraEdges_[W]={}),this.JSC$9015_extraEdges_[W][e]=!0)};
_.r.removeExtraEdge=function(W,e){if(this.JSC$9015_extraEdges_[W]){delete this.JSC$9015_extraEdges_[W][e];for(var t in this.JSC$9015_extraEdges_[W])return;delete this.JSC$9015_extraEdges_[W]}};
_.r.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.r.load=function(W){cAP(this,[W]);return vSr(this,W)};
_.r.loadMultiple=function(W){var e=this,t=Object.create(null),b=[];W.forEach(function(m){t[m]||(t[m]=vSr(e,m),b.push(m))});
cAP(this,b);return t};
_.r.beforeLoadModuleCode=function(W){var e;((e=this.JSC$9015_currentlyLoadingModule_)==null?void 0:e.getId())==="synthetic_module_overhead"&&this.JSC$9002_setLoaded();var t,b;Gko(this,(b=(t=this.JSC$9015_moduleInfoMap_[W])==null?void 0:t.deps_)!=null?b:[],function(m){m.module_=new M_},function(m){return!m.isLoaded()});
this.JSC$9015_currentlyLoadingModule_=this.getModuleInfo(W)};
_.r.JSC$9002_setLoaded=function(){if(this.JSC$9015_currentlyLoadingModule_){var W=this.JSC$9015_currentlyLoadingModule_.getId(),e=[];if(this.JSC$9015_extraEdges_[W]){for(var t=_.R(Object.keys(this.JSC$9015_extraEdges_[W])),b=t.next();!b.done;b=t.next())b=b.value,this.getModuleInfo(b).isLoaded()||(this.removeExtraEdge(W,b),e.push(b));this.loadMultiple(e)}this.JSC$9015_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9015_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$9015_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.r.setModulesAsLoading=function(){var W=this;_.$N.apply(0,arguments).forEach(function(e){W.loadingModules_[e]=!0})};
_.r.unsetModulesAsLoading=function(){var W=this;_.$N.apply(0,arguments).forEach(function(e){delete W.loadingModules_[e]})};
var vSr=function(W,e){return new _.c3(function(t,b){var m=W.getModuleInfo(e);m.isLoaded()?t(null):(m.registerCallback(function(){t(null)}),MIh(m,function(q){var Q="Error loading "+e+": "+q;
q instanceof r2.ModuleLoadFailure&&q.url&&(Q=Q+", requested url: "+q.url.toString());b(Error(Q))}))})},cAP=function(W,e){e=e.filter(function(t){return!W.isModuleLoading(t)&&!W.getModuleInfo(t).isLoaded()});
e.length>0&&(W.setModulesAsLoading.apply(W,_.kP(e)),W.JSC$9015_queue_.push(e),DnN(W))},DnN=function(W){for(var e={};W.activeLoads_<Infinity&&W.JSC$9015_queue_.length>0;e={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})e.ids$jscomp$36=W.JSC$9015_queue_.shift().filter(function(t){return!W.getModuleInfo(t).isLoaded()}),e.ids$jscomp$36.length>0&&(W.activeLoads_++,e.finishLoad=function(t){return function(){W.activeLoads_--;
DnN(W);t.finishLoad=function(){}}}(e),_.pV(e.ids$jscomp$36.map(function(t){return vSr(W,t)})).then(function(t){return function(){(0,t.finishLoad)()}}(e)),e.attempt$jscomp$6=0,e.load$jscomp$1=function(t){return function(){if(Object.keys(W.JSC$9015_extraEdges_).length>0&&!W.JSC$8099_loader_.supportsExtraEdges)throw Error("td");
W.JSC$8099_loader_.JSC$8994_loadModules(t.ids$jscomp$36,W.JSC$9015_moduleInfoMap_,{extraEdges:W.JSC$9015_extraEdges_,onError:function(b,m){var q=wTh[t.attempt$jscomp$6++];q!==void 0?setTimeout(function(){(0,t.load$jscomp$1)()},q):(W.unsetModulesAsLoading.apply(W,_.kP(t.ids$jscomp$36)),(0,t.finishLoad)(),t.ids$jscomp$36.forEach(function(Q){Q=W.getModuleInfo(Q);
if(!Q.isLoaded())Q.onError(new r2.ModuleLoadFailure(r2.ModuleLoadFailure.JSC$9004_Type.CONSECUTIVE_FAILURES,b,t.ids$jscomp$36,m))}))}})}}(e),(0,e.load$jscomp$1)())},Gko=function(W,e,t,b,m){b=b===void 0?function(){return!0}:b;
m=m===void 0?{}:m;e=_.R(e);for(var q=e.next();!q.done;q=e.next()){q=q.value;var Q=W.getModuleInfo(q);!m[q]&&b(Q)&&(m[q]=!0,Gko(W,Q.deps_||[],t,b,m),t(Q))}};var Scr=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var ZaG=Symbol("wd");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Bsr=!Scr||HTMLElement.es5Shimmed||_.tz.Reflect===void 0||_.tz.customElements===void 0||_.tz.customElements.polyfillWrapFlushCallback||!1,oSb,PHK=function(){var W=HTMLElement;if(Bsr)return W;if(oSb!==void 0)return oSb;var e=_.tz.Reflect,t=function(){return e.construct(W,[],this.constructor)};
t.prototype=W.prototype;t.prototype.constructor=t;t.es5Shimmed=!0;Object.setPrototypeOf(t,W);return oSb=t},lo8=!1;Bsr||lo8||(lo8=!0,_.tz.HTMLElement=PHK());/*

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 j5s=/(url\()([^)]*)(\))/g,peG=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ypS,mY;var xS=!window.ShadyDOM||!window.ShadyDOM.inUse,Z18=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),$nZ=!window.customElements.polyfillWrapFlushCallback,kkS;if(kkS=xS&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var pTb=new CSSStyleSheet;pTb.replaceSync("");var yAD=document.createElement("div");yAD.attachShadow({mode:"open"});yAD.shadowRoot.adoptedStyleSheets=[pTb];kkS=yAD.shadowRoot.adoptedStyleSheets[0]===pTb}catch(W){kkS=!1}
var jQZ=kkS,CUv=window.Polymer&&window.Polymer.rootPath||nDK(document.baseURI||window.location.href),Do=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,hxL=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,hA=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nSB=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,JA=window.Polymer&&window.Polymer.legacyOptimizations||!1,sc=window.Polymer&&window.Polymer.legacyWarnings||!1,fok=window.Polymer&&window.Polymer.syncInitialRender||
!1,BT=window.Polymer&&window.Polymer.legacyUndefined||!1,gSS=window.Polymer&&window.Polymer.orderedComputed||!1,Yc=window.Polymer&&window.Polymer.removeNestedTemplates||!1,zM=window.Polymer&&window.Polymer.fastDomIf||!1,U5=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Tsr=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,JAS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var LM={},xn8={},lU=function(){return HTMLElement.apply(this,arguments)||this};
_.Z(lU,HTMLElement);lU.import=function(W,e){return W?(W=LM[W]||xn8[W.toLowerCase()])&&e?W.querySelector(e):W:null};
lU.prototype.attributeChangedCallback=function(W,e,t){e!==t&&this.register()};
lU.prototype.register=function(W){if(W=W||this.id){if(hA&&(LM[W]||xn8[W.toLowerCase()])!==void 0)throw LM[W]=xn8[W.toLowerCase()]=null,Error("xd`"+W);this.id=W;LM[W]=xn8[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Ec.Object.defineProperties(lU.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.rs(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=nDK(W)}return this.__assetpath}}});
_.Ec.Object.defineProperties(lU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
lU["import"]=lU.import;lU.prototype.modules=LM;customElements.define("dom-module",lU);var O1k=0,gDv=0,qn=[],Mve=0,fTQ=!1,sQN=document.createTextNode(""),hrv,gs;(new window.MutationObserver(TdK)).observe(sQN,{characterData:!0});_.E5={after:function(W){return{run:function(e){return window.setTimeout(e,W)},
cancel:function(e){window.clearTimeout(e)}}},
run:function(W,e){return window.setTimeout(W,e)},
cancel:function(W){window.clearTimeout(W)}};
_.ye={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
hrv={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
gs={run:function(W){fTQ||(fTQ=!0,sQN.textContent=Mve++);qn.push(W);return O1k++},
cancel:function(W){var e=W-gDv;if(e>=0){if(!qn[e])throw Error("yd`"+W);qn[e]=null}}};var H1y=0,Aq=function(W){var e=W.__mixinApplications;e||(e=new WeakMap,W.__mixinApplications=e);var t=H1y++;return function(b){var m=b.__mixinSet;if(m&&m[t])return b;var q=e,Q=q.get(b);Q||(Q=W(b),q.set(b,Q),b=Object.create(Q.__mixinSet||m||null),b[t]=!0,Q.__mixinSet=b);return Q}};_.Gk=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var KYh=Aq(function(W){var e=function(){var t=W.call(this)||this;t.__dataEnabled=!1;t.__dataReady=!1;t.__dataInvalid=!1;t.__data={};t.__dataPending=null;t.__dataOld=null;t.__dataInstanceProps=null;t.__dataCounter=0;t.__serializing=!1;t._initializeProperties();return t};
_.Z(e,W);e.createProperties=function(t){var b=this.prototype,m;for(m in t)m in b||b._createPropertyAccessor(m)};
e.attributeNameForProperty=function(t){return t.toLowerCase()};
e.typeForProperty=function(){};
e.prototype._createPropertyAccessor=function(t,b){this._addPropertyToAttributeMap(t);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,b))};
e.prototype._addPropertyToAttributeMap=function(t){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var b=this.__dataAttributes[t];b||(b=this.constructor.attributeNameForProperty(t),this.__dataAttributes[b]=t);return b};
e.prototype._definePropertyAccessor=function(t,b){Object.defineProperty(this,t,{get:function(){return this.__data[t]},
set:b?function(){}:function(m){this._setPendingProperty(t,m,!0)&&this._invalidateProperties()}})};
e.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
e.prototype._initializeProperties=function(){for(var t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])};
e.prototype._initializeInstanceProperties=function(t){Object.assign(this,t)};
e.prototype._setProperty=function(t,b){this._setPendingProperty(t,b)&&this._invalidateProperties()};
e.prototype._getProperty=function(t){return this.__data[t]};
e.prototype._setPendingProperty=function(t,b){var m=this.__data[t],q=this._shouldPropertyChange(t,b,m);q&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||t in this.__dataOld||(this.__dataOld[t]=m),this.__data[t]=b,this.__dataPending[t]=b);return q};
e.prototype._isPropertyPending=function(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))};
e.prototype._invalidateProperties=function(){var t=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,gs.run(function(){t.__dataInvalid&&(t.__dataInvalid=!1,t._flushProperties())}))};
e.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
e.prototype._flushProperties=function(){this.__dataCounter++;var t=this.__data,b=this.__dataPending,m=this.__dataOld;this._shouldPropertiesChange(t,b,m)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(t,b,m));this.__dataCounter--};
e.prototype._shouldPropertiesChange=function(t,b){return!!b};
e.prototype._propertiesChanged=function(){};
e.prototype._shouldPropertyChange=function(t,b,m){return m!==b&&(m===m||b===b)};
e.prototype.attributeChangedCallback=function(t,b,m,q){b!==m&&this._attributeToProperty(t,m);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,t,b,m,q)};
e.prototype._attributeToProperty=function(t,b,m){if(!this.__serializing){var q=this.__dataAttributes;t=q&&q[t]||t;this[t]=this._deserializeValue(b,m||this.constructor.typeForProperty(t))}};
e.prototype._propertyToAttribute=function(t,b,m){this.__serializing=!0;m=arguments.length<3?this[t]:m;this._valueToNodeAttribute(this,m,b||this.constructor.attributeNameForProperty(t));this.__serializing=!1};
e.prototype._valueToNodeAttribute=function(t,b,m){b=this._serializeValue(b);if(m==="class"||m==="name"||m==="slot")t=(0,_.Gk)(t);b===void 0?t.removeAttribute(m):t.setAttribute(m,b===""&&window.trustedTypes?window.trustedTypes.emptyScript:b)};
e.prototype._serializeValue=function(t){switch(typeof t){case "boolean":return t?"":void 0;default:return t!=null?t.toString():void 0}};
e.prototype._deserializeValue=function(t,b){switch(b){case Boolean:return t!==null;case Number:return Number(t);default:return t}};
return e});var PUk=0,JpG=[];var Vvr=Aq(function(W){function e(q){q=Object.getPrototypeOf(q);return q.prototype instanceof m?q:null}
function t(q){if(!q.hasOwnProperty("__ownProperties")){var Q=null;if(q.hasOwnProperty("properties")){var X=q.properties;if(X){Q={};for(var I in X){var u=X[I];Q[I]=typeof u==="function"?{type:u}:u}}}q.__ownProperties=Q}return q.__ownProperties}
var b=KYh(W),m=function(){return b.apply(this,arguments)||this};
_.Z(m,b);m.finalize=function(){if(!this.hasOwnProperty("__finalized")){var q=e(this);q&&q.finalize();this.__finalized=!0;this._finalizeClass()}};
m._finalizeClass=function(){var q=t(this);q&&this.createProperties(q)};
m.typeForProperty=function(q){return(q=this._properties[q])&&q.type};
m.prototype._initializeProperties=function(){PUk++;this.constructor.finalize();b.prototype._initializeProperties.call(this)};
m.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this._enableProperties()};
m.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this)};
_.Ec.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var q=this;if(!this.hasOwnProperty("__observedAttributes")){xAz(this.prototype);var Q=this._properties;this.__observedAttributes=Q?Object.keys(Q).map(function(X){return q.prototype._addPropertyToAttributeMap(X)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var q=e(this);this.__properties=Object.assign({},q&&q._properties,t(this))}return this.__properties}}});
return m});var OaQ={},MNs=/-[a-z]/g,s5G=/([A-Z])/g;for(var i1k={},YcD=HTMLElement.prototype;YcD;){for(var zrb=Object.getOwnPropertyNames(YcD),Unb=0;Unb<zrb.length;Unb++)i1k[zrb[Unb]]=!0;YcD=Object.getPrototypeOf(YcD)}var LYv=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},ES8=Aq(function(W){var e=KYh(W);
W=function(){return e.apply(this,arguments)||this};
_.Z(W,e);W.createPropertiesForAttributes=function(){for(var t=this.observedAttributes,b=0;b<t.length;b++)this.prototype._createPropertyAccessor(RQ(t[b]))};
W.attributeNameForProperty=function(t){return QH(t)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);e.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(t){for(var b in t)this._setProperty(b,t[b])};
W.prototype._ensureAttribute=function(t,b){this.hasAttribute(t)||this._valueToNodeAttribute(this,b,t)};
W.prototype._serializeValue=function(t){switch(typeof t){case "object":if(t instanceof Date)return t.toString();if(t){if(LYv(t))return t;try{return JSON.stringify(t)}catch(b){return""}}default:return e.prototype._serializeValue.call(this,t)}};
W.prototype._deserializeValue=function(t,b){switch(b){case Object:try{var m=JSON.parse(t)}catch(q){m=t}break;case Array:try{m=JSON.parse(t)}catch(q){m=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+t)}break;case Date:m=isNaN(t)?String(t):Number(t);m=new Date(m);break;default:m=e.prototype._deserializeValue.call(this,t,b)}return m};
W.prototype._definePropertyAccessor=function(t,b){if(!i1k[t]){var m=this[t];m!==void 0&&(this.__data?this._setPendingProperty(t,m):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[t]=m))}e.prototype._definePropertyAccessor.call(this,t,b)};
W.prototype._hasAccessor=function(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]};
W.prototype._isPropertyPending=function(t){return!!(this.__dataPending&&t in this.__dataPending)};
return W});var AAe={"dom-if":!0,"dom-repeat":!0},NsZ=!1,dne=!1,W$8=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(e){return e}});
return function(e,t,b){t=t.getAttribute(b);W&&b.startsWith("on-")?e.setAttribute(b,W.createScript(t,b)):e.setAttribute(b,t)}}(),epU=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e._parseTemplate=function(t,b){if(!t._templateInfo){var m=t._templateInfo={};m.nodeInfoList=[];m.nestedTemplate=!!b;m.stripWhiteSpace=b&&b.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace");this._parseTemplateContent(t,m,{parent:null})}return t._templateInfo};
e._parseTemplateContent=function(t,b,m){return this._parseTemplateNode(t.content,b,m)};
e._parseTemplateNode=function(t,b,m){var q=!1;t.localName!="template"||t.hasAttribute("preserve-content")?t.localName==="slot"&&(b.hasInsertionPoint=!0):q=this._parseTemplateNestedTemplate(t,b,m)||q;if(!NsZ){NsZ=!0;var Q=document.createElement("textarea");Q.placeholder="a";dne=Q.placeholder===Q.textContent}dne&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null);t.firstChild&&this._parseTemplateChildNodes(t,b,m);t.hasAttributes&&t.hasAttributes()&&(q=this._parseTemplateNodeAttributes(t,
b,m)||q);return q||m.noted};
e._parseTemplateChildNodes=function(t,b,m){if(t.localName!=="script"&&t.localName!=="style")for(var q=t.firstChild,Q=0,X;q;q=X){if(q.localName=="template"){var I=q.getAttribute("is");if(I&&AAe[I])for(X=q,X.removeAttribute("is"),q=X.ownerDocument.createElement(I),X.parentNode.replaceChild(q,X),q.appendChild(X);X.attributes.length;)I=X.attributes[0].name,W$8(q,X,I),X.removeAttribute(I)}X=q.nextSibling;if(q.nodeType===Node.TEXT_NODE){for(I=X;I&&I.nodeType===Node.TEXT_NODE;)q.textContent+=I.textContent,
X=I.nextSibling,t.removeChild(I),I=X;if(b.stripWhiteSpace&&!q.textContent.trim()){t.removeChild(q);continue}}I={parentIndex:Q,parentInfo:m};this._parseTemplateNode(q,b,I)&&(I.infoIndex=b.nodeInfoList.push(I)-1);q.parentNode&&Q++}};
e._parseTemplateNestedTemplate=function(t,b,m){b=this._parseTemplate(t,b);(b.content=t.content.ownerDocument.createDocumentFragment()).appendChild(t.content);m.templateInfo=b;return!0};
e._parseTemplateNodeAttributes=function(t,b,m){for(var q=!1,Q=Array.from(t.attributes),X=Q.length-1,I;I=Q[X];X--)q=this._parseTemplateNodeAttribute(t,b,m,I.name,I.value)||q;return q};
e._parseTemplateNodeAttribute=function(t,b,m,q,Q){return q.slice(0,3)==="on-"?(t.removeAttribute(q),m.events=m.events||[],m.events.push({name:q.slice(3),value:Q}),!0):q==="id"?(m.id=Q,!0):!1};
e._contentForTemplate=function(t){var b=t._templateInfo;return b&&b.content||t.content};
e.prototype._stampTemplate=function(t,b){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);b=b||this.constructor._parseTemplate(t);var m=b.nodeInfoList;t=document.importNode(b.content||t.content,!0);t.__noInsertionPoint=!b.hasInsertionPoint;var q=t.nodeList=Array(m.length);t.$={};for(var Q=0,X=m.length,I=void 0;Q<X&&(I=m[Q]);Q++){var u=q[Q]=hKG(t,I);I.id&&(t.$[I.id]=u);var c=u,v=I,D=b;v.templateInfo&&(c._templateInfo=v.templateInfo,c._parentTemplateInfo=
D);if(I.events&&I.events.length)for(c=0,v=I.events,D=void 0;c<v.length&&(D=v[c]);c++)this._addMethodEventListenerToNode(u,D.name,D.value,this)}return t};
e.prototype._addMethodEventListenerToNode=function(t,b,m,q){m=Hav(q||t,m);this._addEventListenerToNode(t,b,m);return m};
e.prototype._addEventListenerToNode=function(t,b,m){t.addEventListener(b,m)};
e.prototype._removeEventListenerFromNode=function(t,b,m){t.removeEventListener(b,m)};
return e});var cT=0,Sv=[],tVN={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},bce=/[A-Z]/,mgb=function(W,e,t,b,m){var q=m?Xw(W):W;if(e=e[q])for(q=0;q<e.length;q++){var Q=e[q];if(Q.info.lastRun!==cT&&(!m||zKS(W,Q.trigger))){Q.info.lastRun=cT;Q=Q.info;for(var X=t,I=b,u=0,c=X.length-1,v=-1;u<=c;){var D=u+c>>1,B=I.get(X[D].methodInfo)-I.get(Q.methodInfo);if(B<0)u=D+1;else if(B>0)c=D-1;else{v=D;break}}v<
0&&(v=c+1);X.splice(v,0,Q)}}},Qvz=[],rj8=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"),dL=Aq(function(W){var e=epU(ES8(W));
W=function(){var t=e.call(this)||this;t.__isPropertyEffectsClient=!0;return t};
_.Z(W,e);W.prototype._initializeProperties=function(){e.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
W.prototype._registerHost=function(){if(N_.length){var t=N_[N_.length-1];t._enqueueClient(this);this.__dataHost=t}};
W.prototype._initializeProtoProperties=function(t){this.__data=Object.create(t);this.__dataPending=Object.create(t);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(t){var b=this.__readOnly,m;for(m in t)b&&b[m]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[m]=this.__dataPending[m]=t[m])};
W.prototype._addPropertyEffect=function(t,b,m){this._createPropertyAccessor(t,b=="__readOnly");var q=YZg(this,b,!0)[t];q||(q=this[b][t]=[]);q.push(m)};
W.prototype._removePropertyEffect=function(t,b,m){t=YZg(this,b,!0)[t];m=t.indexOf(m);m>=0&&t.splice(m,1)};
W.prototype._hasPropertyEffect=function(t,b){b=this[b];return!(!b||!b[t])};
W.prototype._hasReadOnlyEffect=function(t){return this._hasPropertyEffect(t,"__readOnly")};
W.prototype._hasNotifyEffect=function(t){return this._hasPropertyEffect(t,"__notifyEffects")};
W.prototype._hasReflectEffect=function(t){return this._hasPropertyEffect(t,"__reflectEffects")};
W.prototype._hasComputedEffect=function(t){return this._hasPropertyEffect(t,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(t,b,m,q){if(q||Xw(Array.isArray(t)?t[0]:t)!==t){if(!q&&(q=uU(this,t),t=iaG(this,t,b),!t||!e.prototype._shouldPropertyChange.call(this,t,b,q)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(t,b,m)){if(m=this.__dataLinkedPaths)for(var Q in m)q=m[Q],IQ(Q,t)?(q=aQ(Q,q,t),this._setPendingPropertyOrPath(q,b,!0,!0)):IQ(q,t)&&(q=aQ(q,Q,t),this._setPendingPropertyOrPath(q,b,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,
b,m);this[t]=b}return!1};
W.prototype._setUnmanagedPropertyToNode=function(t,b,m){if(m!==t[b]||typeof m=="object")b==="className"&&(t=(0,_.Gk)(t)),t[b]=m};
W.prototype._setPendingProperty=function(t,b,m){var q=this.__dataHasPaths&&Fw(t);if(this._shouldPropertyChange(t,b,(q?this.__dataTemp:this.__data)[t])){this.__dataPending||(this.__dataPending={},this.__dataOld={});t in this.__dataOld||(this.__dataOld[t]=this.__data[t]);q?this.__dataTemp[t]=b:this.__data[t]=b;this.__dataPending[t]=b;if(q||this.__notifyEffects&&this.__notifyEffects[t])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=m;return!0}return!1};
W.prototype._setProperty=function(t,b){this._setPendingProperty(t,b,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(t){this.__dataPendingClients=this.__dataPendingClients||[];t!==this&&this.__dataPendingClients.push(t)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(var b=0;b<t.length;b++){var m=t[b];m.__dataEnabled?m.__dataPending&&m._flushProperties():m._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(t,b){for(var m in t)!b&&this.__readOnly&&this.__readOnly[m]||this._setPendingPropertyOrPath(m,t[m],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(t,b,m){t=this.__dataHasPaths;this.__dataHasPaths=!1;var q;if(q=this.__computeEffects)if(gSS){cT++;var Q=dAD(this),X=[],I;for(I in b)mgb(I,q,X,Q,t);for(;I=X.shift();)exv(this,"",b,m,I)&&mgb(I.methodInfo,q,X,Q,t);Object.assign(m,this.__dataOld);Object.assign(b,this.__dataPending);this.__dataPending=null}else for(Q=b;vT(this,q,Q,m,t);)Object.assign(m,this.__dataOld),Object.assign(b,this.__dataPending),Q=this.__dataPending,this.__dataPending=null;q=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(b,m,t);this._flushClients();vT(this,this.__reflectEffects,b,m,t);vT(this,this.__observeEffects,b,m,t);if(q){Q=this.__notifyEffects;X=cT++;for(var u in q)if(q[u]){if(I=Q){var c=Q;I=X;var v=u,D=b,B=m,k=t,n=!1,f=k?Xw(v):v;if(c=c[f]){f=0;for(var M=c.length,K=void 0;f<M&&(K=c[f]);f++)K.info&&K.info.lastRun===I||k&&!zKS(v,K.trigger)||(K.info&&(K.info.lastRun=I),K.fn(this,v,D,B,K.info,k,void 0),n=!0)}I=n}if(I)var U=!0;else{if(I=t)I=u,v=b,D=Xw(I),D!==
I?(D=QH(D)+"-changed",LML(this,D,v[I],I),I=!0):I=!1;I&&(U=!0)}}var V;U&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(t,b,m){this.__propagateEffects&&vT(this,this.__propagateEffects,t,b,m);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,b,m)};
W.prototype._runEffectsForTemplate=function(t,b,m,q){var Q=this,X=function(I,u){vT(Q,t.propertyEffects,I,m,u,t.nodeList);for(var c=t.firstChild;c;c=c.nextSibling)Q._runEffectsForTemplate(c,I,m,u)};
t.runEffects?t.runEffects(X,b,q):X(b,q)};
W.prototype.linkPaths=function(t,b){t=ws(t);b=ws(b);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=b};
W.prototype.unlinkPaths=function(t){t=ws(t);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]};
W.prototype.notifySplices=function(t,b){var m={path:""};t=uU(this,t,m);a_K(this,t,m.path,b)};
W.prototype.get=function(t,b){return uU(b||this,t)};
W.prototype.set=function(t,b,m){m?iaG(m,t,b):this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,b,!0)&&this._invalidateProperties()};
W.prototype.push=function(t){var b=_.$N.apply(1,arguments),m={path:""},q=uU(this,t,m),Q=q.length,X=q.push.apply(q,_.kP(b));b.length&&oQ(this,q,m.path,Q,b.length,[]);return X};
W.prototype.pop=function(t){var b={path:""};t=uU(this,t,b);var m=!!t.length,q=t.pop();m&&oQ(this,t,b.path,t.length,0,[q]);return q};
W.prototype.splice=function(t,b,m){var q=_.$N.apply(3,arguments),Q={path:""},X=uU(this,t,Q);b<0?b=X.length-Math.floor(-b):b&&(b=Math.floor(b));var I=arguments.length===2?X.splice(b):X.splice.apply(X,[b,m].concat(_.kP(q)));(q.length||I.length)&&oQ(this,X,Q.path,b,q.length,I);return I};
W.prototype.shift=function(t){var b={path:""};t=uU(this,t,b);var m=!!t.length,q=t.shift();m&&oQ(this,t,b.path,0,0,[q]);return q};
W.prototype.unshift=function(t){var b=_.$N.apply(1,arguments),m={path:""},q=uU(this,t,m),Q=q.unshift.apply(q,_.kP(b));b.length&&oQ(this,q,m.path,0,b.length,[]);return Q};
W.prototype.notifyPath=function(t,b){if(arguments.length==1){var m={path:""};b=uU(this,t,m);m=m.path}else m=Array.isArray(t)?ws(t):t;this._setPendingPropertyOrPath(m,b,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(t,b){this._addPropertyEffect(t,"__readOnly");b&&(this["_set"+(t[0].toUpperCase()+t.substring(1))]=function(m){this._setProperty(t,m)})};
W.prototype._createPropertyObserver=function(t,b,m){var q={property:t,method:b,dynamicFn:!!m};this._addPropertyEffect(t,"__observeEffects",{fn:UAD,info:q,trigger:{name:t}});m&&this._addPropertyEffect(b,"__observeEffects",{fn:UAD,info:q,trigger:{name:b}})};
W.prototype._createMethodObserver=function(t,b){var m=XSD(t);if(!m)throw Error("zd`"+t);qQK(this,m,"__observeEffects",Wg9,null,b)};
W.prototype._createNotifyingProperty=function(t){this._addPropertyEffect(t,"__notifyEffects",{fn:EDK,info:{eventName:QH(t)+"-changed",property:t}})};
W.prototype._createReflectedProperty=function(t){var b=this.constructor.attributeNameForProperty(t);b[0]==="-"?console.warn("Property "+t+" cannot be reflected to attribute "+b+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,"__reflectEffects",{fn:ApK,info:{attrName:b}})};
W.prototype._createComputedProperty=function(t,b,m){var q=XSD(b);if(!q)throw Error("Ad`"+b);b=qQK(this,q,"__computeEffects",exv,t,m);YZg(this,"__computeInfo")[t]=b};
W.prototype._marshalArgs=function(t,b,m){for(var q=this.__data,Q=[],X=0,I=t.length;X<I;X++){var u=t[X],c=u.name,v=u.structured,D=u.wildcard,B=u.value;u.literal||(D?(u=IQ(c,b),v=I_L(q,m,u?b:c),B={path:u?b:c,value:v,base:u?uU(q,c):v}):B=v?I_L(q,m,c):q[c]);if(BT&&!this._overrideLegacyUndefined&&B===void 0&&t.length>1)return Sv;Q[X]=B}return Q};
W.addPropertyEffect=function(t,b,m){this.prototype._addPropertyEffect(t,b,m)};
W.createPropertyObserver=function(t,b,m){this.prototype._createPropertyObserver(t,b,m)};
W.createMethodObserver=function(t,b){this.prototype._createMethodObserver(t,b)};
W.createNotifyingProperty=function(t){this.prototype._createNotifyingProperty(t)};
W.createReadOnlyProperty=function(t,b){this.prototype._createReadOnlyProperty(t,b)};
W.createReflectedProperty=function(t){this.prototype._createReflectedProperty(t)};
W.createComputedProperty=function(t,b,m){this.prototype._createComputedProperty(t,b,m)};
W.bindTemplate=function(t){return this.prototype._bindTemplate(t)};
W.prototype._bindTemplate=function(t,b){var m=this.constructor._parseTemplate(t),q=this.__preBoundTemplateInfo==m;if(!q)for(var Q in m.propertyEffects)this._createPropertyAccessor(Q);b?(m=Object.create(m),m.wasPreBound=q,this.__templateInfo?(t=t._parentTemplateInfo||this.__templateInfo,b=t.lastChild,m.parent=t,t.lastChild=m,(m.previousSibling=b)?b.nextSibling=m:t.firstChild=m):this.__templateInfo=m):this.__preBoundTemplateInfo=m;return m};
W._addTemplatePropertyEffect=function(t,b,m){(t.hostProps=t.hostProps||{})[b]=!0;t=t.propertyEffects=t.propertyEffects||{};(t[b]=t[b]||[]).push(m)};
W.prototype._stampTemplate=function(t,b){b=b||this._bindTemplate(t,!0);N_.push(this);t=e.prototype._stampTemplate.call(this,t,b);N_.pop();b.nodeList=t.nodeList;if(!b.wasPreBound)for(var m=b.childNodes=[],q=t.firstChild;q;q=q.nextSibling)m.push(q);t.templateInfo=b;m=b.nodeList;q=b.nodeInfoList;if(q.length)for(var Q=0;Q<q.length;Q++){var X=m[Q],I=q[Q].bindings;if(I)for(var u=0;u<I.length;u++){var c=I[u],v=X,D=c;if(D.isCompound){for(var B=v.__dataCompoundStorage||(v.__dataCompoundStorage={}),k=D.parts,
n=Array(k.length),f=0;f<k.length;f++)n[f]=k[f].literal;k=D.target;B[k]=n;D.literal&&D.kind=="property"&&(k==="className"&&(v=(0,_.Gk)(v)),v[k]=D.literal)}rvD(X,this,c)}X.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(b,this.__data,null,!1),this._flushClients());return t};
W.prototype._removeBoundDom=function(t){t=t.templateInfo;var b=t.previousSibling,m=t.nextSibling,q=t.parent;b?b.nextSibling=m:q&&(q.firstChild=m);m?m.previousSibling=b:q&&(q.lastChild=b);t.nextSibling=t.previousSibling=null;t=t.childNodes;for(b=0;b<t.length;b++)m=t[b],(0,_.Gk)((0,_.Gk)(m).parentNode).removeChild(m)};
W._parseTemplateNode=function(t,b,m){var q=e._parseTemplateNode.call(this,t,b,m);if(t.nodeType===Node.TEXT_NODE){var Q=this._parseBindings(t.textContent,b);Q&&(t.textContent=RxK(Q)||" ",mV2(this,b,m,"text","textContent",Q),q=!0)}return q};
W._parseTemplateNodeAttribute=function(t,b,m,q,Q){var X=this._parseBindings(Q,b);if(X){Q=q;var I="property";bce.test(q)?I="attribute":q[q.length-1]=="$"&&(q=q.slice(0,-1),I="attribute");var u=RxK(X);u&&I=="attribute"&&(q=="class"&&t.hasAttribute("class")&&(u+=" "+t.getAttribute(q)),t.setAttribute(q,u));I=="attribute"&&Q=="disable-upgrade$"&&t.setAttribute(q,"");t.localName==="input"&&Q==="value"&&t.setAttribute(Q,"");t.removeAttribute(Q);I==="property"&&(q=RQ(q));mV2(this,b,m,I,q,X,u);return!0}return e._parseTemplateNodeAttribute.call(this,
t,b,m,q,Q)};
W._parseTemplateNestedTemplate=function(t,b,m){var q=e._parseTemplateNestedTemplate.call(this,t,b,m),Q=t.parentNode,X=m.templateInfo,I=Q.localName==="dom-if",u=Q.localName==="dom-repeat";Yc&&(I||u)&&(Q.removeChild(t),m=m.parentInfo,m.templateInfo=X,m.noted=!0,q=!1);t=X.hostProps;if(zM&&I)t&&(b.hostProps=Object.assign(b.hostProps||{},t),Yc||(m.parentInfo.noted=!0));else for(var c in t)mV2(this,b,m,"property","_host_"+c,[{mode:"{",source:c,dependencies:[c],hostProp:!0}]);return q};
W._parseBindings=function(t,b){for(var m=[],q=0,Q;(Q=rj8.exec(t))!==null;){Q.index>q&&m.push({literal:t.slice(q,Q.index)});q=Q[1][0];var X=!!Q[2];Q=Q[3].trim();var I=!1,u="",c=-1;q=="{"&&(c=Q.indexOf("::"))>0&&(u=Q.substring(c+2),Q=Q.substring(0,c),I=!0);c=XSD(Q);var v=[];if(c){var D=c,B=D.args;D=D.methodName;for(var k=0;k<B.length;k++){var n=B[k];n.literal||v.push(n)}if((B=b.dynamicFns)&&B[D]||c.static)v.push(D),c.dynamicFn=!0}else v.push(Q);m.push({source:Q,mode:q,negate:X,customEvent:I,signature:c,
dependencies:v,event:u});q=rj8.lastIndex}q&&q<t.length&&(t=t.substring(q))&&m.push({literal:t});return m.length?m:null};
W._evaluateBinding=function(t,b,m,q,Q,X){t=b.signature?Wg9(t,m,q,Q,b.signature):m!=b.source?uU(t,b.source):X&&Fw(m)?uU(t,m):t.__data[m];b.negate&&(t=!t);return t};
_.Ec.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return tVN}}});
return W}),N_=[];var qTe=window.ShadyCSS&&window.ShadyCSS.cssBuild,WQ=Aq(function(W){function e(b,m,q,Q){if(!qTe){for(var X=m.content.querySelectorAll("style"),I=vbz(m),u=GzD(q),c=m.content.firstElementChild,v=0;v<u.length;v++){var D=u[v];D.textContent=b._processStyleText(D.textContent,Q);m.content.insertBefore(D,c)}for(c=u=0;c<I.length;c++)v=I[c],D=X[u],D!==v?(v=v.cloneNode(!0),D.parentNode.insertBefore(v,D)):u++,v.textContent=b._processStyleText(v.textContent,Q)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,
q);if(JAS&&qTe&&jQZ&&(m=m.content.querySelectorAll("style"))){var B="";Array.from(m).forEach(function(k){B+=k.textContent;k.parentNode.removeChild(k)});
b._styleSheet=new CSSStyleSheet;b._styleSheet.replaceSync(B)}}
var t=Vvr(dL(W));W=function(){return t.call(this)||this};
_.Z(W,t);W._finalizeClass=function(){t._finalizeClass.call(this);var b;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(b=this.__ownObservers)&&this.createObservers(b,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var b=this.template;b&&(typeof b==="string"?(console.error("template getter must return HTMLTemplateElement"),b=null):JA||(b=b.cloneNode(!0)));this.prototype._template=b};
W.createProperties=function(b){for(var m in b){var q=this.prototype,Q=m,X=b[m],I=b;X.computed&&(X.readOnly=!0);X.computed&&(q._hasReadOnlyEffect(Q)?console.warn("Cannot redefine computed property '"+Q+"'."):q._createComputedProperty(Q,X.computed,I));X.readOnly&&!q._hasReadOnlyEffect(Q)?q._createReadOnlyProperty(Q,!X.computed):X.readOnly===!1&&q._hasReadOnlyEffect(Q)&&console.warn("Cannot make readOnly property '"+Q+"' non-readOnly.");X.reflectToAttribute&&!q._hasReflectEffect(Q)?q._createReflectedProperty(Q):
X.reflectToAttribute===!1&&q._hasReflectEffect(Q)&&console.warn("Cannot make reflected property '"+Q+"' non-reflected.");X.notify&&!q._hasNotifyEffect(Q)?q._createNotifyingProperty(Q):X.notify===!1&&q._hasNotifyEffect(Q)&&console.warn("Cannot make notify property '"+Q+"' non-notify.");X.observer&&q._createPropertyObserver(Q,X.observer,I[X.observer]);q._addPropertyToAttributeMap(Q)}};
W.createObservers=function(b,m){for(var q=this.prototype,Q=0;Q<b.length;Q++)q._createMethodObserver(b[Q],m)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);t.prototype._initializeProperties.call(this);this.rootPath=CUv;this.importPath=this.constructor.importPath;var b=this.constructor;if(!b.hasOwnProperty("__propertyDefaults")){b.__propertyDefaults=null;var m=b._properties,q;for(q in m){var Q=m[q];"value"in Q&&(b.__propertyDefaults=b.__propertyDefaults||{},b.__propertyDefaults[q]=Q)}}if(b=b.__propertyDefaults)for(var X in b)m=b[X],
this._canApplyPropertyDefault(X)&&(m=typeof m.value=="function"?m.value.call(this):m.value,this._hasAccessor(X)?this._setPendingProperty(X,m,!0):this[X]=m)};
W.prototype._canApplyPropertyDefault=function(b){return!this.hasOwnProperty(b)};
W._processStyleText=function(b,m){return CtK(b,m)};
W._finalizeTemplate=function(b){var m=this.prototype._template;if(m&&!m.__polymerFinalized){m.__polymerFinalized=!0;var q=this.importPath;q=q?_.rs(q):"";e(this,m,b,q);this.prototype._bindTemplate(m)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);t.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);t.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));t.prototype._readyClients.call(this)};
W.prototype._attachDom=function(b){var m=(0,_.Gk)(this);if(m.attachShadow)return b?(m.shadowRoot||(m.attachShadow({mode:"open",shadyUpgradeFragment:b}),m.shadowRoot.appendChild(b),this.constructor._styleSheet&&(m.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),fok&&window.ShadyDOM&&window.ShadyDOM.flushInitial(m.shadowRoot),m.shadowRoot):null;throw Error("Cd");};
W.prototype.updateStyles=function(b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,b)};
W.prototype.resolveUrl=function(b,m){!m&&this.importPath&&(m=_.rs(this.importPath));return _.rs(b,m)};
W._parseTemplateContent=function(b,m,q){m.dynamicFns=m.dynamicFns||this._properties;return t._parseTemplateContent.call(this,b,m,q)};
W._addTemplatePropertyEffect=function(b,m,q){!sc||m in this._properties||q.info.part.signature&&q.info.part.signature.static||q.info.part.hostProp||b.nestedTemplate||console.warn("Property '"+m+"' used in template but not declared in 'properties'; attribute will not be observed.");return t._addTemplatePropertyEffect.call(this,b,m,q)};
_.Ec.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var b=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof b==="function"&&(b=b());if(b===void 0){if(b=this.hasOwnProperty("is")){b=this.is;var m=null;if(b&&(!hA||nSB)&&(m=lU.import(b,"template"),hA&&!m))throw Error("Bd`"+b);b=m}b=b||Object.getPrototypeOf(this.prototype).constructor.template}this._template=b}return this._template},
set:function(b){this._template=b}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var b=this.importMeta;b?this._importPath=nDK(b.url):this._importPath=(b=lU.import(this.is))&&b.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var RpP=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),$Vc=function(W,e){QBB(W,e);
this.value=e.reduce(function(t,b,m){return t+kzz(b)+W[m+1]},W[0]).toString()},QBB;
$Vc.prototype.toString=function(){return this.value};
_.F$h=function(W){var e=_.$N.apply(1,arguments);QBB(W,e);var t=document.createElement("template");e=e.reduce(function(b,m,q){if(m instanceof HTMLTemplateElement)m=m.innerHTML;else if(m instanceof $Vc)m=kzz(m);else throw Error("Ed`"+m);return b+m+W[q+1]},W[0]);
RpP&&(e=RpP.createHTML(e));t.innerHTML=e;return t};
QBB=function(W,e){if(!Array.isArray(W)||!Array.isArray(W.raw)||e.length!==W.length-1)throw new TypeError("Fd");};var eA=WQ(HTMLElement);var XFr=Aq(function(W){var e=WQ(W);W=function(){var t=e.call(this)||this;t.__lastItems=null;t.__lastMulti=null;t.__selectedMap=null;return t};
_.Z(W,e);W.prototype.__updateSelection=function(t,b){var m=b.path;m=="items"?(b=b.base||[],m=this.__lastItems,t!==this.__lastMulti&&this.clearSelection(),m&&(m=ZUG(b,m),this.__applySplices(m)),this.__lastItems=b,this.__lastMulti=t):b.path=="items.splices"?this.__applySplices(b.value.indexSplices):(t=m.slice(6),b=parseInt(t,10),t.indexOf(".")<0&&t==b&&this.__deselectChangedIdx(b))};
W.prototype.__applySplices=function(t){for(var b=this,m=this.__selectedMap,q={},Q=0;Q<t.length;q={s$jscomp$108:void 0},Q++){q.s$jscomp$108=t[Q];m.forEach(function(c){return function(v,D){v<c.s$jscomp$108.index||(v>=c.s$jscomp$108.index+c.s$jscomp$108.removed.length?m.set(D,v+c.s$jscomp$108.addedCount-c.s$jscomp$108.removed.length):m.set(D,-1))}}(q));
for(var X=0;X<q.s$jscomp$108.addedCount;X++){var I=q.s$jscomp$108.index+X;m.has(this.items[I])&&m.set(this.items[I],I)}}this.__updateLinks();var u=0;m.forEach(function(c,v){c<0?(b.multi?b.splice("selected",u,1):b.selected=b.selectedItem=null,m.delete(v)):u++})};
W.prototype.__updateLinks=function(){var t=this;this.__dataLinkedPaths={};if(this.multi){var b=0;this.__selectedMap.forEach(function(m){m>=0&&t.linkPaths("items."+m,"selected."+b++)})}else this.__selectedMap.forEach(function(m){t.linkPaths("selected","items."+m);
t.linkPaths("selectedItem","items."+m)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(t){return this.__selectedMap.has(t)};
W.prototype.isIndexSelected=function(t){return this.isSelected(this.items[t])};
W.prototype.__deselectChangedIdx=function(t){var b=this,m=this.__selectedIndexForItemIndex(t);if(m>=0){var q=0;this.__selectedMap.forEach(function(Q,X){m==q++&&b.deselect(X)})}};
W.prototype.__selectedIndexForItemIndex=function(t){if(t=this.__dataLinkedPaths["items."+t])return parseInt(t.slice(9),10)};
W.prototype.deselect=function(t){var b=this.__selectedMap.get(t);if(b>=0){this.__selectedMap.delete(t);var m;this.multi&&(m=this.__selectedIndexForItemIndex(b));this.__updateLinks();this.multi?this.splice("selected",m,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(t){this.deselect(this.items[t])};
W.prototype.select=function(t){this.selectIndex(this.items.indexOf(t))};
W.prototype.selectIndex=function(t){var b=this.items[t];this.isSelected(b)?this.toggle&&this.deselectIndex(t):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(b,t),this.__updateLinks(),this.multi?this.push("selected",b):this.selected=this.selectedItem=b)};
_.Ec.Object.defineProperties(W,{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 W}),IZZ=XFr(eA),tB=function(){return IZZ.apply(this,arguments)||this};
_.Z(tB,IZZ);_.Ec.Object.defineProperties(tB,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(tB.is,tB);var aZh=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
aZh&&Object.assign(Polymer,aZh);Polymer._polymerFn=function(){throw Error("Gd");};/*

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:CtK,resolveUrl:_.rs,pathFromUrl:nDK};Polymer.DomModule=lU;Polymer.Async={timeOut:_.E5,animationFrame:_.ye,idlePeriod:hrv,microTask:gs};Polymer.dedupingMixin=Aq;Polymer.wrap=_.Gk;Polymer.PropertiesChanged=KYh;Polymer.telemetry={instanceCount:PUk,incrementInstanceCount:function(){PUk++},
registrations:JpG,register:xAz,dumpRegistrations:function(){JpG.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Vvr;Polymer.CaseMap={dashToCamelCase:RQ,camelToDashCase:QH};Polymer.PropertyAccessors=ES8;Polymer.TemplateStamp=epU;Polymer.Path={isPath:Fw,root:Xw,isAncestor:KML,isDescendant:IQ,translate:aQ,matches:Pt2,normalize:ws,split:VNZ,get:uU,set:iaG,isDeep:Fw};Polymer.Settings={useShadow:xS,useNativeCSSProperties:Z18,useNativeCustomElements:$nZ,get rootPath(){return CUv},setRootPath:function(W){CUv=W},
get sanitizeDOMValue(){return Do},setSanitizeDOMValue:function(W){Do=W},
get passiveTouchGestures(){return hxL},setPassiveTouchGestures:function(W){hxL=W},
get strictTemplatePolicy(){return hA},setStrictTemplatePolicy:function(W){hA=W},
get allowTemplateFromDomModule(){return nSB},setAllowTemplateFromDomModule:function(W){nSB=W},
get legacyOptimizations(){return JA},setLegacyOptimizations:function(W){JA=W},
get syncInitialRender(){return fok},setSyncInitialRender:function(W){fok=W},
get legacyUndefined(){return BT},setLegacyUndefined:function(W){BT=W},
get legacyWarnings(){return sc},setLegacyWarnings:function(W){sc=W},
get orderedComputed(){return gSS},setOrderedComputed:function(W){gSS=W},
get fastDomIf(){return zM},setFastDomIf:function(W){zM=W},
get removeNestedTemplates(){return Yc},setRemoveNestedTemplates:function(W){Yc=W},
get suppressTemplateNotifications(){return U5},setSuppressTemplateNotifications:U5};Polymer.rootPath!==void 0&&(CUv=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Do=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(hxL=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(hA=Polymer.strictTemplatePolicy);nSB=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(JA=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(fok=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(BT=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(sc=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(gSS=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(zM=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Yc=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(U5=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Do},
set:function(W){Do=W}});Polymer.PropertyEffects=dL;Polymer.StyleGather={stylesFromModules:cvD,stylesFromModule:uXS,stylesFromTemplate:vbz,stylesFromModuleImports:GzD,cssFromModules:SQc,cssFromModule:DVs,cssFromTemplate:BNS,cssFromModuleImports:function(W){return(W=lU.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=WQ;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:ZUG};Polymer.html=_.F$h;Polymer.htmlLiteral=function(W){return new $Vc(W,_.$N.apply(1,arguments))};Polymer.Element=eA;Polymer.ArraySelectorMixin=XFr;Polymer.ArraySelector=tB;var wFU=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ur8=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qlD=/@media\s(.*)/;var nbv=null,CJz=window.HTMLImports&&window.HTMLImports.whenReady||null,f_v;var cjh=null,bS=null,mK=function(){this.customStyles=[];this.enqueued=!1;gbG(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},v4h=function(W){!W.enqueued&&bS&&(W.enqueued=!0,gbG(bS))};
mK.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),v4h(this))};
mK.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var e;W.getStyle?e=W.getStyle():e=W;return e};
mK.prototype.processStyles=function(){for(var W=this.customStyles,e=0;e<W.length;e++){var t=W[e];if(!t.__shadyCSSCachedStyle){var b=this.getStyleForCustomStyle(t);b&&(b=b.__appliedElement||b,cjh&&cjh(b),t.__shadyCSSCachedStyle=b)}}return W};
mK.prototype.addCustomStyle=mK.prototype.addCustomStyle;mK.prototype.getStyleForCustomStyle=mK.prototype.getStyleForCustomStyle;mK.prototype.processStyles=mK.prototype.processStyles;Object.defineProperties(mK.prototype,{transformCallback:{get:function(){return cjh},
set:function(W){cjh=W}},
validateCallback:{get:function(){return bS},
set:function(W){var e=!1;bS||(e=!0);bS=W;e&&v4h(this)}}});var JvZ=!(window.ShadyDOM&&window.ShadyDOM.inUse),TNR,L1;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(L1=window.ShadyCSS.cssBuild);var G4e=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?TNR=window.ShadyCSS.nativeCss:window.ShadyCSS?(xVz(window.ShadyCSS),window.ShadyCSS=void 0):xVz(window.WebComponents&&window.WebComponents.flags);var bn9=TNR;var Dgy=new mK;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,e){Dgy.processStyles();pS2(W,e)},
styleElement:function(){Dgy.processStyles()},
styleDocument:function(W){Dgy.processStyles();pS2(document.body,W)},
getComputedStyleValue:function(W,e){return jvc(W,e)},
flushCustomStyles:function(){},
nativeCss:bn9,nativeShadow:JvZ,cssBuild:L1,disableRuntime:G4e});window.ShadyCSS.CustomStyleInterface=Dgy;var STB=window.ShadyCSS.CustomStyleInterface,rJ=function(){var W=HTMLElement.call(this)||this;W._style=null;STB.addCustomStyle(W);return W};
_.Z(rJ,HTMLElement);rJ.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var e=W.getAttribute("include");e&&(W.removeAttribute("include"),W.textContent=SQc(e)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
rJ.prototype.getStyle=rJ.prototype.getStyle;window.customElements.define("custom-style",rJ);Polymer.CustomStyle=rJ;var qG=function(){this._timer=this._callback=this._asyncModule=null},RZ,o4e;
qG.prototype.setConfig=function(W,e){var t=this;this._asyncModule=W;this._callback=e;this._timer=this._asyncModule.run(function(){t._timer=null;RZ.delete(t);t._callback()})};
qG.prototype.cancel=function(){this.isActive()&&(B3h(this),RZ.delete(this))};
var B3h=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
qG.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
qG.prototype.isActive=function(){return this._timer!=null};
_.Qy=function(W,e,t){W instanceof qG?B3h(W):W=new qG;W.setConfig(e,t);return W};
RZ=new Set;_.FI=function(W){RZ.add(W)};
o4e=function(){var W=!!RZ.size;RZ.forEach(function(e){try{e.flush()}catch(t){setTimeout(function(){throw t;})}});
return W};var MX2=typeof document.head.style.touchAction==="string",OUD=["mousedown","mousemove","mouseup","click"],zx2=[0,1,4,2],lZk;try{lZk=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){lZk=!1}var YQK=lZk,sv9=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){sv9=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(e){}})();
var Kgv=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),PJc=[],ZcB={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},r3Z={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},VX9=function(W){var e=W.sourceCapabilities;if(!e||e.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){e=!1;for(var t=AvK(W),b=0;b<t.length;b++){if(t[b].nodeType===Node.ELEMENT_NODE)if(t[b].localName==="label")PJc.push(t[b]);
else if(ZcB[t[b].localName]){var m=t[b];var q=Array.prototype.slice.call(m.labels||[]);if(!q.length){q=[];try{var Q=m.getRootNode();if(m.id){var X=Q.querySelectorAll("label[for = '"+m.id+"']");for(m=0;m<X.length;m++)q.push(X[m])}}catch(I){}}for(m=0;m<q.length;m++)e=e||PJc.indexOf(q[m])>-1}if(t[b]===$gy)return}e||(W.preventDefault(),W.stopPropagation())}},$gy=null,XI=null,dV2=0,WF2=0,NNL=-1,elK=!1;
document.addEventListener("touchend",function(W){XI||iUQ(!0);$gy=AvK(W)[0];XI=_.Qy(XI,_.E5.after(2500),function(){iUQ();XI=$gy=null})},sv9?{passive:!0}:!1);
var AvK=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},jv={},p1=[];
tS9({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){kS(this.info)},
mousedown:function(W){if($S(W)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),t=this;LgL(this.info,function(b){$S(b)||(Tk("up",e,b),kS(t.info))},function(b){$S(b)&&Tk("up",e,b);
kS(t.info)});
Tk("down",e,W)}},
touchstart:function(W){Tk("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){Tk("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
tS9({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;kS(this.info)},
mousedown:function(W){if($S(W)){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),t=this,b=function(m){var q=m.clientX,Q=m.clientY;bvK(t.info,q,Q)&&(t.info.state=t.info.started?m.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&yH("tap"),t.info.addMove({x:q,y:Q}),$S(m)||(t.info.state="end",kS(t.info)),e&&mZS(t.info,e,m),t.info.started=!0)};
LgL(this.info,b,function(m){t.info.started&&b(m);kS(t.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var t=W.clientX,b=W.clientY;bvK(this.info,t,b)&&(this.info.state==="start"&&yH("tap"),this.info.addMove({x:t,y:b}),mZS(this.info,e,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var e=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),mZS(this.info,e,W))}});
tS9({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(W){$S(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){$S(W)&&qRG(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){qRG(this.info,W.changedTouches[0],W)}});var k4v=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e.prototype._addEventListenerToNode=function(t,b,m){C1(t,b,m)||W.prototype._addEventListenerToNode.call(this,t,b,m)};
e.prototype._removeEventListenerFromNode=function(t,b,m){n1(t,b,m)||W.prototype._removeEventListenerFromNode.call(this,t,b,m)};
return e});var IZ=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e.prototype._shouldPropertyChange=function(t,b,m){return Rlz(this,t,b,m,!0)};
return e}),pFk=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e.prototype._shouldPropertyChange=function(t,b,m){return Rlz(this,t,b,m,this.mutableData)};
_.Ec.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return e});
IZ._mutablePropertyChange=Rlz;var Qws=!1;var yj8=k4v(pFk(dL(HTMLElement))),aZ=function(){var W=yj8.call(this)||this;if(hA)throw Error("Hd");W.root=null;W.$=null;W.__children=null;return W};
_.Z(aZ,yj8);_.r=aZ.prototype;_.r.attributeChangedCallback=function(){this.mutableData=!0};
_.r.connectedCallback=function(){FFs()||(this.style.display="none");this.render()};
_.r.disconnectedCallback=function(){this.__removeChildren()};
_.r.__insertChildren=function(){(0,_.Gk)((0,_.Gk)(this).parentNode).insertBefore(this.root,this)};
_.r.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.r.render=function(){var W=this;if(!this.__children){var e=e||this.querySelector("template");if(!e){var t=new MutationObserver(function(){if(e=W.querySelector("template"))t.disconnect(),W.render();else throw Error("Id");});
t.observe(this,{childList:!0});return}this.root=this._stampTemplate(e);this.$=this.root.$;this.__children=[];for(var b=this.root.firstChild;b;b=b.nextSibling)this.__children[this.__children.length]=b;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Ec.Object.defineProperties(aZ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",aZ);Polymer.Debouncer=qG;Polymer.Gestures={gestures:jv,recognizers:p1,deepTargetFind:Eb9,addListener:C1,removeListener:n1,register:tS9,setTouchAction:_.f1,prevent:yH,resetMouseCanceller:function(){XI&&XI.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:C1,remove:n1};Polymer.GestureEventListeners=k4v;Polymer.MutableData=IZ;Polymer.OptionalMutableData=pFk;Polymer.DomBind=aZ;_.wJ=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var e=o4e()}while(W||e)};var XL2=null;IHz.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:IHz,writable:!0}});var SRQ=dL(IHz),DZR=IZ(SRQ),jBk=dL(function(){}),Oc=function(W){var e=jBk.call(this)||this;
e._configureProperties(W);e.root=e._stampTemplate(e.__dataHost);var t=[];e.children=t;for(var b=e.root.firstChild;b;b=b.nextSibling)t.push(b),b.__templatizeInstance=e;e.__templatizeOwner&&e.__templatizeOwner.__hideTemplateChildren__&&e._showHideChildren(!0);t=e.__templatizeOptions;(W&&t.instanceProps||!t.instanceProps)&&e._enableProperties();return e};
_.Z(Oc,jBk);_.r=Oc.prototype;_.r._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(var t in W)this._setPendingProperty(t,W[t])};
_.r.forwardHostProp=function(W,e){this._setPendingPropertyOrPath(W,e,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.r._addEventListenerToNode=function(W,e,t){var b=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,e,function(q){q.model=b;t(q)});
else{var m=this.__dataHost.__dataHost;m&&m._addEventListenerToNode(W,e,t)}};
_.r._showHideChildren=function(W){wLG(W,this.children)};
_.r._setUnmanagedPropertyToNode=function(W,e,t){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&e=="textContent"?W.__polymerTextContent__=t:jBk.prototype._setUnmanagedPropertyToNode.call(this,W,e,t)};
_.r.dispatchEvent=function(){return!0};
_.Ec.Object.defineProperties(Oc.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var e;W=this;do W=W.__dataHost.__dataHost;while((e=W.__templatizeOptions)&&!e.parentModel);this.__parentModel=W}return W}}});
var c3D=IZ(Oc);var uS=function(){var W=eA.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.Z(uS,eA);_.r=uS.prototype;_.r.__debounceRender=function(){var W=this;this.__renderDebouncer=_.Qy(this.__renderDebouncer,gs,function(){return W.__render()});
_.FI(this.__renderDebouncer)};
_.r.disconnectedCallback=function(){eA.prototype.disconnectedCallback.call(this);var W=(0,_.Gk)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Gk)(W).host)||this.__teardownInstance()};
_.r.connectedCallback=function(){eA.prototype.connectedCallback.call(this);FFs()||(this.style.display="none");this.if&&this.__debounceRender()};
_.r.__ensureTemplate=function(){var W=this;if(!this.__template){var e=this._templateInfo?this:(0,_.Gk)(this).querySelector("template");if(!e){var t=new MutationObserver(function(){if((0,_.Gk)(W).querySelector("template"))t.disconnect(),W.__render();else throw Error("Ld");});
t.observe(this,{childList:!0});return!1}this.__template=e}return!0};
_.r.__ensureInstance=function(){var W=(0,_.Gk)(this).parentNode;if(this.__hasInstance()){var e=this.__getInstanceNodes();if(e&&e.length&&(0,_.Gk)(this).previousSibling!==e[e.length-1])for(var t=0,b=void 0;t<e.length&&(b=e[t]);t++)(0,_.Gk)(W).insertBefore(b,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.r.render=function(){_.wJ()};
_.r.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();U5&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.r.__hasInstance=function(){};
_.r.__getInstanceNodes=function(){};
_.r.__createAndInsertInstance=function(){};
_.r.__teardownInstance=function(){};
_.r._showHideChildren=function(){};
_.Ec.Object.defineProperties(uS,{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:uS.prototype.__debounceRender},restamp:{type:Boolean,observer:uS.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Ckh=function(){var W=uS.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.Z(Ckh,uS);_.r=Ckh.prototype;_.r.__hasInstance=function(){return!!this.__instance};
_.r.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.r.__createAndInsertInstance=function(W){var e=this,t=this.__dataHost||this;if(hA&&!this.__dataHost)throw Error("Jd");var b=t._bindTemplate(this.__template,!0);b.runEffects=function(m,q,Q){var X=e.__syncInfo;if(e.if)X&&(e.__syncInfo=null,e._showHideChildren(),q=Object.assign(X.changedProps,q)),m(q,Q);else if(e.__instance)if(X||(X=e.__syncInfo={runEffects:m,changedProps:{}}),Q)for(var I in q)m=Xw(I),X.changedProps[m]=e.__dataHost[m];else Object.assign(X.changedProps,q)};
this.__instance=t._stampTemplate(this.__template,b);(0,_.Gk)(W).insertBefore(this.__instance,this)};
_.r.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.r.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.r._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,wLG(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var n4r=function(){var W=uS.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.Z(n4r,uS);_.r=n4r.prototype;_.r.__hasInstance=function(){return!!this.__instance};
_.r.__getInstanceNodes=function(){return this.__instance.children};
_.r.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=Mn(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Xw(e)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Gk)(W).insertBefore(this.__instance.root,this)};
_.r.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var e=(0,_.Gk)(W[0]).parentNode;if(e){e=(0,_.Gk)(e);for(var t=0,b=void 0;t<W.length&&(b=W[t]);t++)e.removeChild(b)}}this.__instance=this.__invalidProps=null}};
_.r.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var e in W)this.__instance._setPendingProperty(e,this.__dataHost[e]);this.__instance._flushProperties()}};
_.r._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.CD=zM?Ckh:n4r;customElements.define(_.CD.is,_.CD);Polymer.enqueueDebouncer=_.FI;Polymer.flush=_.wJ;Polymer.Templatize={templatize:Mn,modelForElement:k_z};Polymer.TemplateInstanceBase=Oc;Polymer.DomIf=_.CD;var fZZ=pFk(eA),jB=function(){var W=fZZ.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.Z(jB,fZZ);_.r=jB.prototype;_.r.disconnectedCallback=function(){fZZ.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.r.connectedCallback=function(){fZZ.prototype.connectedCallback.call(this);FFs()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.Gk)((0,_.Gk)(this).parentNode),e=0;e<this.__instances.length;e++)this.__attachInstance(e,W);this.__chunkingId&&this.__render()}};
_.r.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){var t=new MutationObserver(function(){if(W.querySelector("template"))t.disconnect(),W.__render();else throw Error("Md");});
t.observe(this,{childList:!0});return!1}var b={};b[this.as]=!0;b[this.indexAs]=!0;b[this.itemsIndexAs]=!0;this.__ctor=Mn(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:b,forwardHostProp:function(m,q){for(var Q=this.__instances,X=0,I=void 0;X<Q.length&&(I=Q[X]);X++)I.forwardHostProp(m,q)},
notifyInstanceProp:function(m,q,Q){Pt2(this.as,q)&&(m=m[this.itemsIndexAs],q==this.as&&(this.items[m]=Q),q=aQ(this.as,"items."+m,q),this.notifyPath(q,Q))}})}return!0};
_.r.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.r.__functionFromPropertyValue=function(W){if(typeof W==="string"){var e=this.__getMethodHost();return function(){return e[W].apply(e,arguments)}}return W};
_.r.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.r.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.r.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.r.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.r.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var e=this.__observePaths,t=0;t<e.length;t++)W.indexOf(e[t])===0&&this.__debounceRender(this.__render,this.delay)};
_.r.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.r.__debounceRender=function(W,e){e=e===void 0?0:e;this.__renderDebouncer=_.Qy(this.__renderDebouncer,e>0?_.E5.after(e):gs,W.bind(this));_.FI(this.__renderDebouncer)};
_.r.render=function(){this.__debounceRender(this.__render);_.wJ()};
_.r.__render=function(){var W=this;if(this.__ensureTemplatized()){var e=this.items||[],t=this.__sortAndFilterItems(e),b=this.__calculateLimit(t.length);this.__updateInstances(e,b,t);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);U5&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.r.__sortAndFilterItems=function(W){for(var e=this,t=Array(W.length),b=0;b<W.length;b++)t[b]=b;this.__filterFn&&(t=t.filter(function(m,q,Q){return e.__filterFn(W[m],q,Q)}));
this.__sortFn&&t.sort(function(m,q){return e.__sortFn(W[m],W[q])});
return t};
_.r.__calculateLimit=function(W){var e=W,t=this.__instances.length;if(this.initialCount){var b;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(W,this.initialCount),this.__chunkCount=(b=Math.max(e-t,0))||1):(b=Math.min(Math.max(W-t,0),this.__chunkCount),e=Math.min(t+b,W));this.__shouldMeasureChunk=b===this.__chunkCount;this.__shouldContinueChunking=e<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return e};
_.r.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.r.__updateInstances=function(W,e,t){var b=this.__itemsIdxToInstIdx={},m;for(m=0;m<e;m++){var q=this.__instances[m],Q=t[m],X=W[Q];b[Q]=m;q?(q._setPendingProperty(this.as,X),q._setPendingProperty(this.indexAs,m),q._setPendingProperty(this.itemsIndexAs,Q),q._flushProperties()):this.__insertInstance(X,m,Q)}for(W=this.__instances.length-1;W>=m;W--)this.__detachAndRemoveInstance(W)};
_.r.__detachInstance=function(W){W=this.__instances[W];for(var e=(0,_.Gk)(W.root),t=0;t<W.children.length;t++)e.appendChild(W.children[t]);return W};
_.r.__attachInstance=function(W,e){e.insertBefore(this.__instances[W].root,this)};
_.r.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.r.__stampInstance=function(W,e,t){var b={};b[this.as]=W;b[this.indexAs]=e;b[this.itemsIndexAs]=t;return new this.__ctor(b)};
_.r.__insertInstance=function(W,e,t){W=this.__stampInstance(W,e,t);t=(t=this.__instances[e+1])?t.children[0]:this;(0,_.Gk)((0,_.Gk)(this).parentNode).insertBefore(W.root,t);return this.__instances[e]=W};
_.r._showHideChildren=function(W){for(var e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(W)};
_.r.__handleItemPath=function(W,e){var t=W.slice(6),b=t.indexOf(".");W=b<0?t:t.substring(0,b);if(W==parseInt(W,10)){t=b<0?"":t.substring(b+1);this.__handleObservedPaths(t);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),W._flushProperties();return!0}};
_.r.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.r.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.r.modelForElement=function(W){return k_z(this.template,W)};
_.Ec.Object.defineProperties(jB,{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:jB.prototype.__sortChanged},filter:{type:Function,observer:jB.prototype.__filterChanged},observe:{type:String,observer:jB.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!U5,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.*)"]}}});
jB.prototype._setRenderedItemCount=function(){};
customElements.define(jB.is,jB);Polymer.DomRepeat=jB;var g48=function(W,e){var t=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){t._schedule()};
this.connect();this._schedule()},T3b=function(W){var e=(0,_.Gk)(W);
if(HT(W))return e.assignedNodes({flatten:!0});W=[];for(var t=0;t<e.childNodes.length;t++){var b=e.childNodes[t];HT(b)?W.push.apply(W,_.kP((0,_.Gk)(b).assignedNodes({flatten:!0}))):W.push(b)}return W};
_.r=g48.prototype;_.r.connect=function(){var W=this;HT(this._target)?this._listenSlots([this._target]):(0,_.Gk)(this._target).children&&(this._listenSlots((0,_.Gk)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(e){W._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(function(e){W._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.r.disconnect=function(){HT(this._target)?this._unlistenSlots([this._target]):(0,_.Gk)(this._target).children&&(this._unlistenSlots((0,_.Gk)(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};
_.r._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,gs.run(function(){return W.flush()}))};
_.r._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.r._processSlotMutations=function(W){if(W)for(var e=0;e<W.length;e++){var t=W[e];t.addedNodes&&this._listenSlots(t.addedNodes);t.removedNodes&&this._unlistenSlots(t.removedNodes)}};
_.r.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 W={target:this._target,addedNodes:[],removedNodes:[]},e=T3b(this._target),t=ZUG(e,this._effectiveNodes),b=0,m=void 0;b<t.length&&(m=t[b]);b++)for(var q=0,Q=void 0;q<m.removed.length&&(Q=m.removed[q]);q++)W.removedNodes.push(Q);
b=0;for(m=void 0;b<t.length&&(m=t[b]);b++)for(q=m.index;q<m.index+m.addedCount;q++)W.addedNodes.push(e[q]);this._effectiveNodes=e;e=!1;if(W.addedNodes.length||W.removedNodes.length)e=!0,this.callback.call(this._target,W);return e};
_.r._listenSlots=function(W){for(var e=0;e<W.length;e++){var t=W[e];HT(t)&&t.addEventListener("slotchange",this._boundSchedule)}};
_.r._unlistenSlots=function(W){for(var e=0;e<W.length;e++){var t=W[e];HT(t)&&t.removeEventListener("slotchange",this._boundSchedule)}};var cQ=Element.prototype,Jjv=cQ.matches||cQ.matchesSelector||cQ.mozMatchesSelector||cQ.msMatchesSelector||cQ.oMatchesSelector||cQ.webkitMatchesSelector,xgU=function(W,e){return Jjv.call(W,e)},K1=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},hpe;
_.r=K1.prototype;_.r.observeNodes=function(W){return new g48(this.node,W)};
_.r.unobserveNodes=function(W){W.disconnect()};
_.r.notifyObserver=function(){};
_.r.deepContains=function(W){if((0,_.Gk)(this.node).contains(W))return!0;var e=W;for(W=W.ownerDocument;e&&e!==W&&e!==this.node;)e=(0,_.Gk)(e).parentNode||(0,_.Gk)(e).host;return e===this.node};
_.r.getOwnerRoot=function(){return(0,_.Gk)(this.node).getRootNode()};
_.r.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Gk)(this.node).assignedNodes({flatten:!0}):[]};
_.r.getDestinationInsertionPoints=function(){for(var W=[],e=(0,_.Gk)(this.node).assignedSlot;e;)W.push(e),e=(0,_.Gk)(e).assignedSlot;return W};
_.r.importNode=function(W,e){return(0,_.Gk)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,e)};
_.r.getEffectiveChildNodes=function(){return T3b(this.node)};
_.r.queryDistributedElements=function(W){for(var e=this.getEffectiveChildNodes(),t=[],b=0,m=e.length,q=void 0;b<m&&(q=e[b]);b++)q.nodeType===Node.ELEMENT_NODE&&xgU(q,W)&&t.push(q);return t};
_.Ec.Object.defineProperties(K1.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var vQ=function(W){this.event=W};
_.Ec.Object.defineProperties(vQ.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 OcZ=K1;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var MVb=window.ShadyDOM.Wrapper,sBh=function(){return MVb.apply(this,arguments)||this};
_.Z(sBh,MVb);Object.getOwnPropertyNames(K1.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(sBh.prototype[W]=K1.prototype[W])});
y3G(sBh.prototype,["classList"]);OcZ=sBh;Object.defineProperties(vQ.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.ZZ(W).getOwnerRoot();for(var e=this.path,t=0;t<e.length;t++){var b=e[t];if(_.ZZ(b).getOwnerRoot()===W)return b}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else pLK(),y3G(K1.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),jwK();hpe=OcZ;_.ZZ=function(W){W=W||document;if(W instanceof OcZ)return W;if(W instanceof vQ)return W;var e=W.__domApi;e||(W instanceof Event?e=new vQ(W):e=new OcZ(W),W.__domApi=e);return e};var Hcr=/:host\(:dir\((ltr|rtl)\)\)/g,K$8=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Pky=/:dir\((?:ltr|rtl)\)/,VVb=!(!window.ShadyDOM||!window.ShadyDOM.inUse),VH=[],Gh=null,PT="",icB=Aq(function(W){VVb||Gh||(PT=document.documentElement.getAttribute("dir"),Gh=new MutationObserver(C0v),Gh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var e=ES8(W);W=function(){var t=e.call(this)||this;t.__autoDirOptOut=!1;return t};
_.Z(W,e);W._processStyleText=function(t,b){t=e._processStyleText.call(this,t,b);!VVb&&Pky.test(t)&&(t=this._replaceDirInCssText(t),this.__activateDir=!0);return t};
W._replaceDirInCssText=function(t){t=t.replace(Hcr,':host([dir="$1"])');return t=t.replace(K$8,':host([dir="$2"]) $1')};
W.prototype.ready=function(){e.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Gh&&Gh.takeRecords().length&&C0v(),VH.push(this),this.__autoDirOptOut||this.setAttribute("dir",PT))};
W.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var t=VH.indexOf(this);t>-1&&VH.splice(t,1)}};
W.__activateDir=!1;return W});var YTP=function(W){for(;W;){var e=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(e)return e.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
Aq(function(W){var e=WQ(W),t=YTP(e);W=function(){return e.call(this)||this};
_.Z(W,e);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:e.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(b){return e.prototype._canApplyPropertyDefault.call(this,b)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(b))};
W.prototype.attributeChangedCallback=function(b,m,q,Q){b=="disable-upgrade"?this.__isUpgradeDisabled&&q==null&&(e.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Gk)(this).isConnected&&e.prototype.connectedCallback.call(this)):e.prototype.attributeChangedCallback.call(this,b,m,q,Q)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||e.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||e.prototype.disconnectedCallback.call(this)};
_.Ec.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return t.call(this).concat("disable-upgrade")}}});
return W});var YS=!1,fHS=[],zk=[];var xZK=window.ShadyDOM,OvK=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",sws):document.readyState==="interactive"||document.readyState==="complete"?sws():window.addEventListener("DOMContentLoaded",sws);var KFG=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=""},hlz=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Hvg=/@import[^;]*;/gim,UZR=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,LFs=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,ELD=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,A3K=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,YRL=/^@[^\s]*keyframes/,
ivg=/\s+/g;var Nk2={};var eHD=Promise.resolve();var zpk=new Set;var Ugv=/;\s*/m,L$v=/^\s*(initial)|(inherit)\s*$/,E4Z=/\s*!important/,AjN=function(){this._map={}};
AjN.prototype.set=function(W,e){W=W.trim();this._map[W]={properties:e,dependants:{}}};
AjN.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var N3y=null,Dc=function(){this._measureElement=this._currentElement=null;this._map=new AjN};
_.r=Dc.prototype;_.r.detectMixin=function(W){W=ur8.test(W)||wFU.test(W);ur8.lastIndex=0;wFU.lastIndex=0;return W};
_.r.transformTemplate=function(W,e){if(W._gatheredStyle===void 0){var t=[];for(var b=W.content.querySelectorAll("style"),m=0;m<b.length;m++){var q=b[m];if(q.hasAttribute("shady-unscoped")){if(!JvZ){var Q=q.textContent;if(!zpk.has(Q)){zpk.add(Q);var X=document.createElement("style");X.setAttribute("shady-unscoped","");X.textContent=Q;document.head.appendChild(X)}q.parentNode.removeChild(q)}}else t.push(q.textContent),q.parentNode.removeChild(q)}(t=t.join("").trim())?(b=document.createElement("style"),
b.textContent=t,W.content.insertBefore(b,W.content.firstChild),t=b):t=null;W._gatheredStyle=t}return(W=W._gatheredStyle)?this.JSC$9225_transformStyle(W,e):null};
_.r.JSC$9225_transformStyle=function(W,e){e=e===void 0?"":e;var t=riS(W);this.transformRules(t,e);W.textContent=mwG(t);return t};
_.r.transformCustomStyle=function(W){var e=this,t=riS(W);RHz(t,function(b){b.selector===":root"&&(b.selector="html");e.transformRule(b)});
W.textContent=mwG(t);return t};
_.r.transformRules=function(W,e){var t=this;this._currentElement=e;RHz(W,function(b){t.transformRule(b)});
this._currentElement=null};
_.r.transformRule=function(W){W.cssText=dgS(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var dgS=function(W,e,t){e=e.replace(wFU,function(b,m,q,Q){return W._produceCssProperties(b,m,q,Q,t)});
return W._consumeCssProperties(e,t)};
_.r=Dc.prototype;_.r._getInitialValueForProperty=function(W){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(W)};
_.r._fallbacksFromPreviousRules=function(W){for(var e=this,t=W;t.parent;)t=t.parent;var b={},m=!1;RHz(t,function(q){(m=m||q===W)||q.selector===W.selector&&Object.assign(b,e._cssTextToMap(q.parsedCssText))});
return b};
_.r._consumeCssProperties=function(W,e){for(var t;t=ur8.exec(W);){var b=t[0],m=t[1];t=t.index;var q=t+b.indexOf("@apply"),Q=t+b.length;b=W.slice(0,q);W=W.slice(Q);q=e?this._fallbacksFromPreviousRules(e):{};Object.assign(q,this._cssTextToMap(b));m=this._atApplyToCssProperties(m,q);W=b+m+W;ur8.lastIndex=t+m.length}return W};
_.r._atApplyToCssProperties=function(W,e){W=W.replace(Ugv,"");var t=[],b=this._map.get(W);b||(this._map.set(W,{}),b=this._map.get(W));if(b){this._currentElement&&(b.dependants[this._currentElement]=!0);var m,q=b.properties;for(m in q){var Q=e&&e[m];b=[m,": var(",W,"_-_",m];Q&&b.push(",",Q.replace(E4Z,""));b.push(")");E4Z.test(q[m])&&b.push(" !important");t.push(b.join(""))}}return t.join("; ")};
_.r._replaceInitialOrInherit=function(W,e){var t=L$v.exec(e);t&&(e=t[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return e};
_.r._cssTextToMap=function(W,e){e=e===void 0?!1:e;W=W.split(";");for(var t,b,m={},q=0;q<W.length;q++)if(t=W[q])b=t.split(":"),b.length>1&&(t=b[0].trim(),b=b.slice(1).join(":"),e&&(b=this._replaceInitialOrInherit(t,b)),m[t]=b);return m};
_.r._invalidateMixinEntry=function(W){if(N3y)for(var e in W.dependants)e!==this._currentElement&&N3y(e)};
_.r._produceCssProperties=function(W,e,t,b,m){var q=this;t&&Q4G(t,function(k,n){n&&q._map.get(n)&&(b="@apply "+n+";")});
if(!b)return W;var Q=this._consumeCssProperties(""+b,m);m=W.slice(0,W.indexOf("--"));var X=Q=this._cssTextToMap(Q,!0),I=this._map.get(e),u=I&&I.properties;u?X=Object.assign(Object.create(u),Q):this._map.set(e,X);var c=[],v,D=!1;for(v in X){var B=Q[v];B===void 0&&(B="initial");!u||v in u||(D=!0);c.push(e+"_-_"+v+": "+B)}D&&this._invalidateMixinEntry(I);I&&(I.properties=X);t&&(m=W+";"+m);return m+c.join("; ")+";"};
Dc.prototype.detectMixin=Dc.prototype.detectMixin;Dc.prototype.transformStyle=Dc.prototype.JSC$9225_transformStyle;Dc.prototype.transformCustomStyle=Dc.prototype.transformCustomStyle;Dc.prototype.transformRules=Dc.prototype.transformRules;Dc.prototype.transformRule=Dc.prototype.transformRule;Dc.prototype.transformTemplate=Dc.prototype.transformTemplate;Dc.prototype._separator="_-_";Object.defineProperty(Dc.prototype,"invalidCallback",{get:function(){return N3y},
set:function(W){N3y=W}});var SA=new Dc,W1k=function(){this.customStyleInterface=null;SA.invalidCallback=dZg},BQ=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(e){SA.transformCustomStyle(e)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.r=W1k.prototype;_.r.prepareTemplate=function(W,e){BQ(this);FzG(W)===""&&(Nk2[e]=W,e=SA.transformTemplate(W,e),W._styleAst=e)};
_.r.flushCustomStyles=function(){BQ(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var e=0;e<W.length;e++){var t=this.customStyleInterface.getStyleForCustomStyle(W[e]);t&&SA.transformCustomStyle(t)}this.customStyleInterface.enqueued=!1}}};
_.r.styleSubtree=function(W,e){BQ(this);e&&pS2(W,e);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,e=0;e<W.length;e++)this.styleSubtree(W[e]);else for(W=W.children||W.childNodes,e=0;e<W.length;e++)this.styleSubtree(W[e])};
_.r.styleElement=function(W){BQ(this);var e=W.localName,t;e?e.indexOf("-")>-1?t=e:t=W.getAttribute&&W.getAttribute("is")||"":t=W.is;e=Nk2[t];if(!(e&&FzG(e)!==""||!e||WzS(e))){if(WzS(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)this.prepareTemplate(e,t),tjG(e);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=e._styleAst,W.textContent=mwG(e._styleAst)}};
_.r.styleDocument=function(W){BQ(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var oZ=new W1k,efk=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,e){oZ.flushCustomStyles();oZ.prepareTemplate(W,e)},
prepareTemplateStyles:function(W,e,t){window.ShadyCSS.prepareTemplate(W,e,t)},
prepareTemplateDom:function(){},
styleSubtree:function(W,e){oZ.flushCustomStyles();oZ.styleSubtree(W,e)},
styleElement:function(W){oZ.flushCustomStyles();oZ.styleElement(W)},
styleDocument:function(W){oZ.flushCustomStyles();oZ.styleDocument(W)},
getComputedStyleValue:function(W,e){return jvc(W,e)},
flushCustomStyles:function(){oZ.flushCustomStyles()},
nativeCss:bn9,nativeShadow:JvZ,cssBuild:L1,disableRuntime:G4e};efk&&(window.ShadyCSS.CustomStyleInterface=efk)}window.ShadyCSS.ApplyShim=SA;var tzr;tzr=window.ShadyCSS;_.lS=Aq(function(W){W=k4v(WQ(W));var e=qTe?W:icB(W),t=YTP(e),b={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return e.call(this)||this};
_.Z(W,e);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(m,q,Q){(this.__dataAttributes&&this.__dataAttributes[m]||m==="disable-upgrade")&&this.attributeChangedCallback(m,q,Q,null)};
W.prototype.setAttribute=function(m,q){if(Tsr&&!this._legacyForceObservedAttributes){var Q=this.getAttribute(m);e.prototype.setAttribute.call(this,m,q);this.__attributeReaction(m,Q,String(q))}else e.prototype.setAttribute.call(this,m,q)};
W.prototype.removeAttribute=function(m){if(Tsr&&!this._legacyForceObservedAttributes){var q=this.getAttribute(m);e.prototype.removeAttribute.call(this,m);this.__attributeReaction(m,q,null)}else e.prototype.removeAttribute.call(this,m)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||e.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(m){return e.prototype._canApplyPropertyDefault.call(this,m)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(m))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(e.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(e.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(m,q,Q,X){q!==Q&&(m=="disable-upgrade"?this.__isUpgradeDisabled&&Q==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Gk)(this).isConnected&&this.connectedCallback()):(e.prototype.attributeChangedCallback.call(this,m,q,Q,X),this.attributeChanged(m,q,Q)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(JA&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var m=Object.getPrototypeOf(this);m.hasOwnProperty("__hasRegisterFinished")||(this._registered(),m.__hasRegisterFinished=!0);e.prototype._initializeProperties.call(this);this.root=this;this.created();Tsr&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var m=this.attributes,q=0,Q=m.length;q<Q;q++){var X=m[q];this.__attributeReaction(X.name,null,X.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();e.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(m){return this._serializeValue(m)};
W.prototype.deserialize=function(m,q){return this._deserializeValue(m,q)};
W.prototype.reflectPropertyToAttribute=function(m,q,Q){this._propertyToAttribute(m,q,Q)};
W.prototype.serializeValueToAttribute=function(m,q,Q){this._valueToNodeAttribute(Q||this,m,q)};
W.prototype.extend=function(m,q){if(!m||!q)return m||q;for(var Q=Object.getOwnPropertyNames(q),X=0,I=void 0;X<Q.length&&(I=Q[X]);X++){var u=Object.getOwnPropertyDescriptor(q,I);u&&Object.defineProperty(m,I,u)}return m};
W.prototype.mixin=function(m,q){for(var Q in q)m[Q]=q[Q];return m};
W.prototype.chainObject=function(m,q){m&&q&&m!==q&&(m.__proto__=q);return m};
W.prototype.instanceTemplate=function(m){m=this.constructor._contentForTemplate(m);return document.importNode(m,!0)};
W.prototype.fire=function(m,q,Q){Q=Q||{};q=q===null||q===void 0?{}:q;m=new Event(m,{bubbles:Q.bubbles===void 0?!0:Q.bubbles,cancelable:!!Q.cancelable,composed:Q.composed===void 0?!0:Q.composed});m.detail=q;(0,_.Gk)(Q.node||this).dispatchEvent(m);return m};
W.prototype.listen=function(m,q,Q){m=m||this;var X=this.__boundListeners||(this.__boundListeners=new WeakMap),I=X.get(m);I||(I={},X.set(m,I));X=q+Q;I[X]||(I[X]=this._addMethodEventListenerToNode(m,q,Q,this))};
W.prototype.unlisten=function(m,q,Q){m=m||this;var X=this.__boundListeners&&this.__boundListeners.get(m);Q=q+Q;var I=X&&X[Q];I&&(this._removeEventListenerFromNode(m,q,I),X[Q]=null)};
W.prototype.setScrollDirection=function(m,q){_.f1(q||this,b[m]||"auto")};
W.prototype.$$=function(m){return this.root.querySelector(m)};
W.prototype.distributeContent=function(){var m=_.ZZ(this);window.ShadyDOM&&m.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.ZZ(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(m){return _.ZZ(this).queryDistributedElements(m)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(m){return m.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var m=this.getEffectiveChildNodes(),q=[],Q=0,X;X=m[Q];Q++)X.nodeType!==Node.COMMENT_NODE&&q.push(X.textContent);return q.join("")};
W.prototype.queryEffectiveChildren=function(m){return(m=this.queryDistributedElements(m))&&m[0]};
W.prototype.queryAllEffectiveChildren=function(m){return this.queryDistributedElements(m)};
W.prototype.getContentChildNodes=function(m){return(m=this.root.querySelector(m||"slot"))?_.ZZ(m).getDistributedNodes():[]};
W.prototype.getContentChildren=function(m){return this.getContentChildNodes(m).filter(function(q){return q.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(m){return this!==m&&(0,_.Gk)(this).contains(m)&&(0,_.Gk)(this).getRootNode()===(0,_.Gk)(m).getRootNode()};
W.prototype.isLocalDescendant=function(m){return this.root===(0,_.Gk)(m).getRootNode()};
W.prototype.scopeSubtree=function(m,q){return MSc(m,q===void 0?!1:q)};
W.prototype.getComputedStyleValue=function(m){return tzr.getComputedStyleValue(this,m)};
W.prototype.debounce=function(m,q,Q){this._debouncers=this._debouncers||{};return this._debouncers[m]=_.Qy(this._debouncers[m],Q>0?_.E5.after(Q):gs,q.bind(this))};
W.prototype.isDebouncerActive=function(m){this._debouncers=this._debouncers||{};m=this._debouncers[m];return!(!m||!m.isActive())};
W.prototype.flushDebouncer=function(m){this._debouncers=this._debouncers||{};(m=this._debouncers[m])&&m.flush()};
W.prototype.cancelDebouncer=function(m){this._debouncers=this._debouncers||{};(m=this._debouncers[m])&&m.cancel()};
W.prototype.async=function(m,q){return q>0?_.E5.run(m.bind(this),q):~gs.run(m.bind(this))};
W.prototype.cancelAsync=function(m){m<0?gs.cancel(~m):_.E5.cancel(m)};
W.prototype.create=function(m,q){m=document.createElement(m);if(q)if(m.setProperties)m.setProperties(q);else for(var Q in q)m[Q]=q[Q];return m};
W.prototype.elementMatches=function(m,q){return xgU(q||this,m)};
W.prototype.toggleAttribute=function(m,q){var Q=this;arguments.length===3&&(Q=arguments[2]);arguments.length==1&&(q=!Q.hasAttribute(m));if(q)return(0,_.Gk)(Q).setAttribute(m,""),!0;(0,_.Gk)(Q).removeAttribute(m);return!1};
W.prototype.toggleClass=function(m,q,Q){Q=Q||this;arguments.length==1&&(q=!Q.classList.contains(m));q?Q.classList.add(m):Q.classList.remove(m)};
W.prototype.transform=function(m,q){q=q||this;q.style.webkitTransform=m;q.style.transform=m};
W.prototype.translate3d=function(m,q,Q,X){this.transform("translate3d("+m+","+q+","+Q+")",X||this)};
W.prototype.arrayDelete=function(m,q){if(Array.isArray(m)){if(q=m.indexOf(q),q>=0)return m.splice(q,1)}else if(q=uU(this,m).indexOf(q),q>=0)return this.splice(m,q,1);return null};
W.prototype._logger=function(m,q){Array.isArray(q)&&q.length===1&&Array.isArray(q[0])&&(q=q[0]);switch(m){case "log":case "warn":case "error":console[m].apply(console,_.kP(q))}};
W.prototype._log=function(){this._logger("log",_.$N.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.$N.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.$N.apply(0,arguments))};
W.prototype._logf=function(m){return["[%s::%s]",this.is,m].concat(_.kP(_.$N.apply(1,arguments)))};
_.Ec.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var m=(0,_.Gk)(this).getRootNode();return m instanceof DocumentFragment?m.host:m}}});
_.Ec.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Tsr&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],xAz(this.prototype)),this.__observedAttributes):t.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=g48;Polymer.DomApi=hpe;Polymer.EventApi=vQ;Polymer.dom=_.ZZ;Polymer.dom.matchesSelector=xgU;Polymer.dom.flush=_.wJ;Polymer.dom.addDebouncer=_.FI;Polymer.DirMixin=icB;Polymer.RenderStatus={beforeNextRender:_.J3z,afterNextRender:_.Uc,flush:function(){for(;fHS.length||zk.length;)nLz(fHS),nLz(zk);YS=!1}};Polymer.LegacyElementMixin=_.lS;var beB;beB=IZ._mutablePropertyChange;var m2o={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,e,t){return beB(this,W,e,t,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,e,t){return beB(this,W,e,t,!0)}};
Polymer.OptionalMutableDataBehavior=m2o;var XNz={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},ciG={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},uqQ=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},ciG),ryy=(0,_.lS)(HTMLElement),LjG=function(W,e){W||console.warn("Polymer.Class requires `info` argument");e=e?e(ryy):ryy;e=vB9(W,e,W.behaviors);e.is=e.prototype.is=
W.is;return e};Polymer.Class=LjG;Polymer.mixinBehaviors=function(W,e){return vB9({},(0,_.lS)(e),W)};
Polymer.GenerateClassFromInfo=vB9;_.yQ=function(W){var e=typeof W==="function"?W:_.yQ.Class(W);W._legacyForceObservedAttributes&&(e.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(e.is,e);return e};
_.yQ.Class=LjG;Polymer._polymerFn=_.yQ;var q6h=window.onLegacyPolymerFunctionDefinedCallback;q6h&&q6h();var AxG={templatize:function(W,e){this._templatizerTemplate=W;this.ctor=Mn(W,this,{mutableData:!!e,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return k_z(this._templatizerTemplate,W)}};Polymer.Templatizer=AxG;_.Zc=(0,_.lS)(HTMLElement).prototype;Polymer.Base=_.Zc;var DwG=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.AA=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Z(_.AA,PolymerFakeBaseClass);var Nn=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.Z(Nn,PolymerFakeBaseClass);var Slc=Symbol("Nd"),yiQ=[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 Rfy=Rfy||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},QTb;(function(W){function e(V,L,E){var RR=U.get(V);if(!RR){if(!E)return;RR=new M;U.set(V,RR)}V=RR.get(L);if(!V){if(!E)return;V=new M;RR.set(L,V)}return V}
function t(V,L,E){if(b(V,L,E))return!0;L=D(L);return L!==null?t(V,L,E):!1}
function b(V,L,E){L=e(L,E,!1);return L===void 0?!1:!!L.has(V)}
function m(V,L,E){if(b(V,L,E))return q(V,L,E);L=D(L);if(L!==null)return m(V,L,E)}
function q(V,L,E){L=e(L,E,!1);if(L!==void 0)return L.get(V)}
function Q(V,L){var E=X(V,L);V=D(V);if(V===null)return E;var RR=Q(V,L);if(RR.length<=0)return E;if(E.length<=0)return RR;L=new K;V=[];E=_.R(E);for(var uv=E.next();!uv.done;uv=E.next())uv=uv.value,L.has(uv)||(L.add(uv),V.push(uv));E=_.R(RR);for(RR=E.next();!RR.done;RR=E.next())RR=RR.value,L.has(RR)||(L.add(RR),V.push(RR));return V}
function X(V,L){V=e(V,L,!1);var E=[];V&&V.forEach(function(RR,uv){return E.push(uv)});
return E}
function I(V){return V===void 0}
function u(V){return typeof V==="object"?V!==null:typeof V==="function"}
function c(V){return typeof V==="function"}
function v(V){return typeof V==="symbol"?V:String(V)}
function D(V){var L=Object.getPrototypeOf(V);if(typeof V!=="function"||V===f||L!==f)return L;var E=Object.getPrototypeOf(V.prototype);if(E==null||E===Object.prototype)return L;E=E.constructor;return typeof E!=="function"||E===V?L:E}
function B(){function V(){this._keys=[];this._values=[];this._cache=L}
var L={};V.prototype={get size(){return this._keys.length},has:function(E){return E===this._cache?!0:this._find(E)>=0?(this._cache=E,!0):!1},
get:function(E){var RR=this._find(E);if(RR>=0)return this._cache=E,this._values[RR]},
set:function(E,RR){this.delete(E);this._keys.push(E);this._values.push(RR);this._cache=E;return this},
delete:function(E){E=this._find(E);return E>=0?(this._keys.splice(E,1),this._values.splice(E,1),this._cache=L,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=L},
forEach:function(E){for(var RR=this.size,uv=0;uv<RR;++uv){var GS=this._keys[uv],k9=this._values[uv];this._cache=GS;E.call(this,k9,GS,this)}},
_find:function(E){for(var RR=this._keys,uv=RR.length,GS=0;GS<uv;++GS)if(RR[GS]===E)return GS;return-1}};
return V}
function k(){function V(){this._map=new M}
V.prototype={get size(){return this._map.length},has:function(L){return this._map.has(L)},
add:function(L){this._map.set(L,L);return this},
delete:function(L){return this._map.delete(L)},
clear:function(){this._map.clear()},
forEach:function(L,E){this._map.forEach(L,E)}};
return V}
function n(){function V(){this._key=E()}
function L(fQ,iv){for(var hz=0;hz<iv;++hz)fQ[hz]=Math.random()*255|0}
function E(){do{if(uv)var fQ=uv.randomBytes(16);else typeof Uint8Array==="function"?(fQ=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(fQ):L(fQ,16)):(fQ=Array(16),L(fQ,16));fQ[6]=fQ[6]&79|64;fQ[8]=fQ[8]&191|128;for(var iv="",hz=0;hz<16;++hz){var ES=fQ[hz];if(hz===4||hz===6||hz===8)iv+="-";ES<16&&(iv+="0");iv+=ES.toString(16).toLowerCase()}fQ="@@WeakMap@@"+iv}while(GS.call(k9,fQ));k9[fQ]=!0;return fQ}
function RR(fQ,iv){if(!GS.call(fQ,CQ)){if(!iv)return;Object.defineProperty(fQ,CQ,{value:Object.create(null)})}return fQ[CQ]}
var uv=typeof global!=="undefined"&&typeof Rfy==="object"&&typeof require==="function"&&require("crypto"),GS=Object.prototype.hasOwnProperty,k9={},CQ=E();V.prototype={has:function(fQ){return(fQ=RR(fQ,!1))?this._key in fQ:!1},
get:function(fQ){if(fQ=RR(fQ,!1))return fQ[this._key]},
set:function(fQ,iv){RR(fQ,!0)[this._key]=iv;return this},
delete:function(fQ){return(fQ=RR(fQ,!1))&&this._key in fQ?delete fQ[this._key]:!1},
clear:function(){this._key=E()}};
return V}
var f=Object.getPrototypeOf(Function),M=typeof Map==="function"?Map:B(),K=typeof Set==="function"?Set:k(),U=new (typeof WeakMap==="function"?WeakMap:n());W.decorate=function(V,L,E,RR){if(I(RR)){if(I(E)){if(!Array.isArray(V))throw new TypeError;if(!c(L))throw new TypeError;for(E=V.length-1;E>=0;--E)if(RR=(0,V[E])(L),!I(RR)){if(!c(RR))throw new TypeError;L=RR}return L}if(!Array.isArray(V))throw new TypeError;if(!u(L))throw new TypeError;E=v(E);for(RR=V.length-1;RR>=0;--RR)(0,V[RR])(L,E)}else{if(Array.isArray(V))if(u(L)){if(I(E))throw new TypeError;
if(!u(RR))throw new TypeError;}else throw new TypeError;else throw new TypeError;E=v(E);for(var uv=V.length-1;uv>=0;--uv){var GS=(0,V[uv])(L,E,RR);if(!I(GS)){if(!u(GS))throw new TypeError;RR=GS}}return RR}};
W.metadata=function(V,L){return function(E,RR){if(I(RR)){if(!c(E))throw new TypeError;e(E,void 0,!0).set(V,L)}else{if(!u(E))throw new TypeError;RR=v(RR);e(E,RR,!0).set(V,L)}}};
W.defineMetadata=function(V,L){var E;if(u(L))I(E)||(E=v(E));else throw new TypeError;e(L,E,!0).set("parameters",V)};
W.hasMetadata=function(V,L,E){if(u(L))I(E)||(E=v(E));else throw new TypeError;return t(V,L,E)};
W.hasOwnMetadata=function(V,L,E){if(u(L))I(E)||(E=v(E));else throw new TypeError;return b(V,L,E)};
W.getMetadata=function(V,L,E){if(u(L))I(E)||(E=v(E));else throw new TypeError;return m(V,L,E)};
W.getOwnMetadata=function(V,L,E){if(u(L))I(E)||(E=v(E));else throw new TypeError;return q(V,L,E)};
W.getMetadataKeys=function(V,L){if(u(V))I(L)||(L=v(L));else throw new TypeError;return Q(V,L)};
W.getOwnMetadataKeys=function(V,L){if(u(V))I(L)||(L=v(L));else throw new TypeError;return X(V,L)};
W.deleteMetadata=function(V,L,E){if(u(L))I(E)||(E=v(E));else throw new TypeError;var RR=e(L,E,!1);if(!I(RR)){if(!RR.delete(V))return!1;if(RR.size>0)return!0;V=U.get(L);V.delete(E);if(V.size>0)return!0;U.delete(L);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==W)for(var L in W)V.Reflect[L]=W[L]}else V.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(QTb||(QTb={}));var TqZ=self;var F1S=[0,_.z9,_.LY,_.z9];var X6N=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(X6N,_.Ow);var I88=_.NS(X6N,[0,_.maG,_.Eq,F1S,_.LY,_.N7]);_.QP(_.ds,_.ka);_.r=_.ds.prototype;_.r.start=function(){this.stop();this.usingListeners_=!1;var W=a8v(this),e=w6r(this);W&&!e&&this.JSC$9268_win_.mozRequestAnimationFrame?(this.JSC$9268_id_=_.p4(this.JSC$9268_win_,"MozBeforePaint",this.callback_),this.JSC$9268_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9268_id_=W&&e?W.call(this.JSC$9268_win_,this.callback_):this.JSC$9268_win_.setTimeout(czh(this.callback_),20)};
_.r.stop=function(){if(this.isActive()){var W=a8v(this),e=w6r(this);W&&!e&&this.JSC$9268_win_.mozRequestAnimationFrame?Zj(this.JSC$9268_id_):W&&e?e.call(this.JSC$9268_win_,this.JSC$9268_id_):this.JSC$9268_win_.clearTimeout(this.JSC$9268_id_)}this.JSC$9268_id_=null};
_.r.fire=function(){this.stop();this.JSC$9270_doAction_()};
_.r.isActive=function(){return this.JSC$9268_id_!=null};
_.r.JSC$9270_doAction_=function(){this.usingListeners_&&this.JSC$9268_id_&&Zj(this.JSC$9268_id_);this.JSC$9268_id_=null;this.JSC$9268_listener_.call(this.handler_,_.RP())};
_.r.disposeInternal=function(){this.stop();_.ds.superClass_.disposeInternal.call(this)};
var a8v=function(W){W=W.JSC$9268_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},w6r=function(W){W=W.JSC$9268_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.eS=function(W,e,t){_.ka.call(this);this.JSC$9271_listener_=t!=null?W.bind(t):W;this.JSC$9271_interval_=e;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9271_timer_=null};
_.Z(_.eS,_.ka);_.r=_.eS.prototype;_.r.fire=function(W){this.args_=arguments;this.JSC$9271_timer_||this.pauseCount_?this.shouldFire_=!0:u5r(this)};
_.r.stop=function(){this.JSC$9271_timer_&&(_.tz.clearTimeout(this.JSC$9271_timer_),this.JSC$9271_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.r.pause=function(){this.pauseCount_++};
_.r.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9271_timer_||(this.shouldFire_=!1,u5r(this))};
_.r.disposeInternal=function(){_.ka.prototype.disposeInternal.call(this);this.stop()};
var u5r=function(W){W.JSC$9271_timer_=jF(function(){W.JSC$9271_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,u5r(W))},W.JSC$9271_interval_);
var e=W.args_;W.args_=null;W.JSC$9271_listener_.apply(null,e)};var cyU=function(W,e){this.childIterator_=W[_.tz.Symbol.iterator]();this.mapFn_=e};
cyU.prototype[Symbol.iterator]=function(){return this};
cyU.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var vhZ=function(W,e){return new cyU(W,e)};var GvP={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 IyL=function(W){var e=D2U(W);if(!e)throw Error("Rd`"+W);return e},D2U=function(W){var e={};
W=String(W);var t=W.charAt(0)=="#"?W:"#"+W;if(S6P.test(t))return e.hex=r1G(t),e.type="hex",e;t=cbZ(W);return t.length?(e.hex=AH2(t[0],t[1],t[2]),e.type="rgb",e):GvP&&(W=GvP[W.toLowerCase()])?(e.hex=W,e.type="named",e):null},Byk=/#(.)(.)(.)/,r1G=function(W){if(!S6P.test(W))throw Error("Td`"+W);
W.length==4&&(W=W.replace(Byk,"#$1$1$2$2$3$3"));return W.toLowerCase()},ayZ=function(W){W=r1G(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},AH2=function(W,e,t){W=Number(W);
e=Number(e);t=Number(t);if(W!=(W&255)||e!=(e&255)||t!=(t&255))throw Error("Ud`"+W+"`"+e+"`"+t);e=W<<16|e<<8|t;return W<16?"#"+(16777216|e).toString(16).slice(1):"#"+e.toString(16)},S6P=/^#(?:[0-9a-f]{3}){1,2}$/i,ohZ=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,cbZ=function(W){var e=W.match(ohZ);
if(e){W=Number(e[1]);var t=Number(e[2]);e=Number(e[3]);if(W>=0&&W<=255&&t>=0&&t<=255&&e>=0&&e<=255)return[W,t,e]}return[]};var l8r={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},Cv=l8r;Cv=l8r;var PEQ,ZeS,$2k;PEQ=function(W,e){switch(e){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ZeS=function(W,e,t,b,m){W=new Date(W,e,t);m=m||0;return W.valueOf()+(((b!==void 0?b:3)-m+7)%7-((W.getDay()+6)%7-m+7)%7)*864E5};
_.$F=function(W,e,t){typeof W==="number"?(this.date=$2k(W,e||0,t||1),kvN(this,t||1)):_.tk(W)?(this.date=$2k(W.getFullYear(),W.getMonth(),W.getDate()),kvN(this,W.getDate())):(this.date=new Date(_.RP()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),kvN(this,W))};
$2k=function(W,e,t){e=new Date(W,e,t);W>=0&&W<100&&e.setFullYear(e.getFullYear()-1900);return e};
_.r=_.$F.prototype;_.r.firstDayOfWeek_=Cv.FIRSTDAYOFWEEK;_.r.firstWeekCutOffDay_=Cv.FIRSTWEEKCUTOFFDAY;_.r.clone=function(){var W=new _.$F(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.r.getFullYear=function(){return this.date.getFullYear()};
_.r.getYear=function(){return this.getFullYear()};
_.r.getMonth=function(){return this.date.getMonth()};
_.r.getDate=function(){return this.date.getDate()};
_.r.getTime=function(){return this.date.getTime()};
_.r.getDay=function(){return this.date.getDay()};
_.r.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.r.getUTCMonth=function(){return this.date.getUTCMonth()};
_.r.getUTCDate=function(){return this.date.getUTCDate()};
_.r.getUTCDay=function(){return this.date.getDay()};
_.r.getUTCHours=function(){return this.date.getUTCHours()};
_.r.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.r.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.r.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.r.setFullYear=function(W){this.date.setFullYear(W)};
_.r.setYear=function(W){this.setFullYear(W)};
_.r.setMonth=function(W){this.date.setMonth(W)};
_.r.setDate=function(W){this.date.setDate(W)};
_.r.setTime=function(W){this.date.setTime(W)};
_.r.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.r.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.r.setUTCDate=function(W){this.date.setUTCDate(W)};
_.r.add=function(W){if(W.years||W.months){var e=this.getMonth()+W.months+W.years*12,t=this.getYear()+Math.floor(e/12);e%=12;e<0&&(e+=12);var b=Math.min(PEQ(t,e),this.getDate());this.setDate(1);this.setFullYear(t);this.setMonth(e);this.setDate(b)}W.days&&(t=this.getYear(),e=t>=0&&t<=99?-1900:0,W=new Date((new Date(t,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+e),this.setMonth(W.getMonth()),this.setDate(W.getDate()),kvN(this,W.getDate()))};
_.r.JSC$9284_toIsoString=function(W){var e=this.getFullYear(),t=e<0?"-":e>=1E4?"+":"";return[t+_.m5(Math.abs(e),t?6:4),_.m5(this.getMonth()+1,2),_.m5(this.getDate(),2)].join(W?"-":"")};
_.r.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.r.toString=function(){return this.JSC$9284_toIsoString()};
var kvN=function(W,e){W.getDate()!=e&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<e?1:-1))};
_.$F.prototype.valueOf=function(){return this.date.valueOf()};var ps=function(W,e,t,b,m){this.reversed=!!e;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!t;W&&kF(this,W,b);this.depth=m!=void 0?m:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.QP(ps,q_);var kF=function(W,e,t,b){if(W.node=e)W.tagType=typeof t==="number"?t:W.node.nodeType!=1?0:W.reversed?-1:1;typeof b==="number"&&(W.depth=b)};
_.r=ps.prototype;_.r.JSC$9299_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.r.clone=function(){return new ps(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.r.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return R3;var W=this.node;var e=this.reversed?-1:1;if(this.tagType==e){var t=this.reversed?W.lastChild:W.firstChild;t?kF(this,t):kF(this,W,e*-1)}else(t=this.reversed?W.previousSibling:W.nextSibling)?kF(this,t):kF(this,W.parentNode,e*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?Q1(W):R3};
_.r.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.r.splice=function(W){var e=this.node,t=this.reversed?1:-1;this.tagType==t&&(this.tagType=t*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;ps.prototype.next.call(this);this.reversed=!this.reversed;t=_.Ns(arguments[0])?arguments[0]:arguments;for(var b=t.length-1;b>=0;b--)_.gj(t[b],e);_.BX(e)};var p6N=function(){},yy=function(W){for(var e=[],t=W.getTextRangeCount(),b=0;b<t;b++)e.push(W.getTextRange(b));
return e};
p6N.prototype.isReversed=function(){return!1};
p6N.prototype.getWindow=function(){return C8(_.n8(this.JSC$9301_getStartNode()))};
var yyh=function(W,e){ps.call(this,W,e,!0)};
_.QP(yyh,ps);var jA=function(W,e,t,b,m){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!m;if(W){this.startNode_=W;this.startOffset_=e;this.endNode_=t;this.endOffset_=b;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,e=W[e])this.startNode_=e,this.startOffset_=0;else{W.length&&(this.startNode_=_.OL(W));var q=!0}t.nodeType==1&&((this.endNode_=t.childNodes[b])?this.endOffset_=0:this.endNode_=t)}ps.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);q&&this.next()};
_.QP(jA,yyh);_.r=jA.prototype;_.r.JSC$9307_getStartNode=function(){return this.startNode_};
_.r.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)};
_.r.next=function(){return this.isLast()?R3:jA.superClass_.next.call(this)};
_.r.JSC$9299_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;jA.superClass_.JSC$9299_copyFrom.call(this,W)};
_.r.clone=function(){var W=new jA(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$9299_copyFrom(this);return W};var jTe=function(){};
jTe.prototype.__iterator__=function(){return new jA(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Cs=function(W){this.range_=W};
_.QP(Cs,jTe);var Ccb=function(W){var e=_.n8(W).createRange();if(W.nodeType==3)e.setStart(W,0),e.setEnd(W,W.length);else if(Cd(W)||W.nodeType==3){for(var t,b=W;(t=b.firstChild)&&(Cd(t)||t.nodeType==3);)b=t;e.setStart(b,0);for(b=W;(t=b.lastChild)&&(Cd(t)||t.nodeType==3);)b=t;e.setEnd(b,b.nodeType==1?b.childNodes.length:b.length)}else t=W.parentNode,W=Array.prototype.indexOf.call(t.childNodes,W),e.setStart(t,W),e.setEnd(t,W+1);return e},nhP=function(W,e,t,b){var m=_.n8(W).createRange();
m.setStart(W,e);m.setEnd(t,b);return m};
_.r=Cs.prototype;_.r.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.r.getContainer=function(){return this.range_.commonAncestorContainer};
_.r.compareBrowserRangeEndpoints=function(W,e,t){return this.range_.compareBoundaryPoints(t==1?e==1?_.tz.Range.START_TO_START:_.tz.Range.START_TO_END:e==1?_.tz.Range.END_TO_START:_.tz.Range.END_TO_END,W)};
_.r.isCollapsed=function(){return this.range_.collapsed};
_.r.select=function(W){this.selectInternal(C8(_.n8(this.range_.startContainer)).getSelection(),W)};
_.r.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.r.insertNode=function(W,e){var t=this.range_.cloneRange();t.collapse(e);t.insertNode(W);t.detach();return W};
_.r.collapse=function(W){this.range_.collapse(W)};_.QP(WF,Cs);WF.prototype.selectInternal=function(W,e){!e||this.isCollapsed()?WF.superClass_.selectInternal.call(this,W,e):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.QP(eV,Cs);eV.prototype.compareBrowserRangeEndpoints=function(W,e,t){return eV.superClass_.compareBrowserRangeEndpoints.call(this,W,e,t)};
eV.prototype.selectInternal=function(W,e){e?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var f8y=function(W){return _.uI?new eV(W):_.w2?new WF(W):new Cs(W)};var ns=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},ghU;
_.QP(ns,p6N);ghU=function(W,e){var t=new ns;t.browserRangeWrapper_=W;t.isReversed_=!!e;return t};
_.TyS=function(W){W=_.uI?new eV(Ccb(W)):_.w2?new WF(Ccb(W)):new Cs(Ccb(W));return ghU(W)};
_.fs=function(W,e,t,b){var m=new ns;m.isReversed_=Jyo(W,e,t,b);if(_.A7(W)&&!Cd(W)){var q=W.parentNode;e=Array.prototype.indexOf.call(q.childNodes,W);W=q}_.A7(t)&&!Cd(t)&&(q=t.parentNode,b=Array.prototype.indexOf.call(q.childNodes,t),t=q);m.isReversed_?(m.startNode_=t,m.startOffset_=b,m.endNode_=W,m.endOffset_=e):(m.startNode_=W,m.startOffset_=e,m.endNode_=t,m.endOffset_=b);return m};
_.r=ns.prototype;_.r.clone=function(){var W=new ns;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.r.JSC$9301_getType=function(){return"text"};
_.r.getBrowserRangeObject=function(){return gJ(this).range_};
_.r.getTextRangeCount=function(){return 1};
_.r.getTextRange=function(){return this};
var gJ=function(W){var e;if(!(e=W.browserRangeWrapper_)){e=W.JSC$9301_getStartNode();var t=W.JSC$9301_getStartOffset(),b=W.JSC$9301_getEndNode(),m=W.JSC$9301_getEndOffset();e=_.uI?new eV(nhP(e,t,b,m)):_.w2?new WF(nhP(e,t,b,m)):new Cs(nhP(e,t,b,m));e=W.browserRangeWrapper_=e}return e};
_.r=ns.prototype;_.r.getContainer=function(){return gJ(this).getContainer()};
_.r.JSC$9301_getStartNode=function(){return this.startNode_||(this.startNode_=gJ(this).range_.startContainer)};
_.r.JSC$9301_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=gJ(this).range_.startOffset};
_.r.JSC$9301_getEndNode=function(){return this.endNode_||(this.endNode_=gJ(this).range_.endContainer)};
_.r.JSC$9301_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=gJ(this).range_.endOffset};
_.r.isReversed=function(){return this.isReversed_};
_.r.JSC$9301_containsRange=function(W,e){if(W.JSC$9301_getType()=="text"){var t=gJ(this);W=gJ(W);e=e&&!W.isCollapsed();W=W.range_;t=e?t.compareBrowserRangeEndpoints(W,0,1)>=0&&t.compareBrowserRangeEndpoints(W,1,0)<=0:t.compareBrowserRangeEndpoints(W,0,0)>=0&&t.compareBrowserRangeEndpoints(W,1,1)<=0}else t=!1;return t};
_.r.isCollapsed=function(){return gJ(this).isCollapsed()};
_.r.JSC$9301_getText=function(){return gJ(this).range_.toString()};
_.r.__iterator__=function(){return new jA(this.JSC$9301_getStartNode(),this.JSC$9301_getStartOffset(),this.JSC$9301_getEndNode(),this.JSC$9301_getEndOffset())};
_.r.select=function(){gJ(this).select(this.isReversed_)};
_.r.JSC$9301_removeContents=function(){var W=gJ(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var e=W.previousSibling;wUN(W)==""&&_.BX(W);e&&wUN(e)==""&&_.BX(e)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.r.insertNode=function(W,e){W=gJ(this).insertNode(W,e);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.r.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var x2S=function(){};
_.QP(x2S,p6N);x2S.prototype.JSC$9301_containsRange=function(W,e){var t=yy(this);W=yy(W);return(e?UH:_.NqR)(W,function(b){return UH(t,function(m){return m.JSC$9301_containsRange(b,e)})})};
x2S.prototype.insertNode=function(W,e){e?_.fd(W,this.JSC$9301_getStartNode()):_.gj(W,this.JSC$9301_getEndNode());return W};var Oeo,Mzk=vK().JSC$7372_document_.documentElement;Oeo=Mzk.requestFullscreen?"fullscreenchange":Mzk.webkitRequestFullscreen?"webkitfullscreenchange":Mzk.mozRequestFullScreen?"mozfullscreenchange":Mzk.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var sTZ=function(){var W=vK().JSC$7372_document_;return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var JB=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.QP(JB,x2S);_.r=JB.prototype;_.r.clone=function(){var W=new JB;W.browserRanges_=_.EL(this.browserRanges_);return W};
_.r.JSC$9301_getType=function(){return"mutli"};
_.r.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.r.getTextRangeCount=function(){return this.browserRanges_.length};
_.r.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=ghU(f8y(this.browserRanges_[W])));return this.ranges_[W]};
_.r.getContainer=function(){if(!this.container_){for(var W=[],e=this.getTextRangeCount(),t=0;t<e;t++)W.push(this.getTextRange(t).getContainer());this.container_=qSS.apply(null,W)}return this.container_};
var xF=function(W){W.sortedRanges_||(W.sortedRanges_=yy(W),W.sortedRanges_.sort(function(e,t){var b=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();var m=t.JSC$9301_getStartNode();t=t.JSC$9301_getStartOffset();return b==m&&e==t?0:Jyo(b,e,m,t)?1:-1}));
return W.sortedRanges_};
_.r=JB.prototype;_.r.JSC$9301_getStartNode=function(){return xF(this)[0].JSC$9301_getStartNode()};
_.r.JSC$9301_getStartOffset=function(){return xF(this)[0].JSC$9301_getStartOffset()};
_.r.JSC$9301_getEndNode=function(){return _.OL(xF(this)).JSC$9301_getEndNode()};
_.r.JSC$9301_getEndOffset=function(){return _.OL(xF(this)).JSC$9301_getEndOffset()};
_.r.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.r.JSC$9301_getText=function(){return yy(this).map(function(W){return W.JSC$9301_getText()}).join("")};
_.r.__iterator__=function(){return new OU(this)};
_.r.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var e=this.getTextRangeCount(),t=0;t<e;t++)W.addRange(this.getTextRange(t).getBrowserRangeObject())};
_.r.JSC$9301_removeContents=function(){yy(this).forEach(function(W){W.JSC$9301_removeContents()})};
_.r.collapse=function(W){if(!this.isCollapsed()){var e=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;e.collapse(W);this.ranges_=[e];this.sortedRanges_=[e];this.browserRanges_=[e.getBrowserRangeObject()]}};
var OU=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=xF(W).map(function(e){return _.b_y(e)}));
ps.call(this,W?this.JSC$9307_getStartNode():null,!1,!0)};
_.QP(OU,yyh);_.r=OU.prototype;_.r.JSC$9307_getStartNode=function(){return this.iterators_[0].JSC$9307_getStartNode()};
_.r.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.r.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],e=W.next();if(e.done)this.currentIdx_++;else return kF(this,W.node,W.tagType,W.depth),e}return R3};
_.r.JSC$9299_copyFrom=function(W){this.iterators_=_.EL(W.iterators_);OU.superClass_.JSC$9299_copyFrom.call(this,W)};
_.r.clone=function(){var W=new OU(null);W.JSC$9299_copyFrom(this);return W};var hfy,Jyo;_.$L=function(){var W=window.getSelection();return W&&hfy(W)};
hfy=function(W){var e=!1;if(W.createRange)try{var t=W.createRange()}catch(m){return null}else if(W.rangeCount){if(W.rangeCount>1){t=new JB;e=W.rangeCount;for(var b=0;b<e;b++)t.browserRanges_.push(W.getRangeAt(b));return t}t=W.getRangeAt(0);e=Jyo(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return ghU(f8y(t),e)};
_.MG=function(W,e){return _.fs(W,e,W,e)};
_.sU=function(W,e,t,b){return _.fs(W,e,t,b)};
Jyo=function(W,e,t,b){if(W==t)return b<e;var m;if(W.nodeType==1&&e)if(m=W.childNodes[e])W=m,e=0;else if(_.PX(W,t))return!0;if(t.nodeType==1&&b)if(m=t.childNodes[b])t=m,b=0;else if(_.PX(t,W))return!1;return(rk8(W,t)||e-b)>0};var hB=function(){_.ZY.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.p3)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.p3)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.p3)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.p3)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.p3)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.p3)(this.dispatchProgressEvent_,this)};
_.QP(hB,_.ZY);hB.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new qih(W,"aborting read");}};
hB.prototype.getError=function(){return this.reader_.error&&new qih(this.reader_.error,"reading file")};
hB.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new RZb(W,this))};
hB.prototype.disposeInternal=function(){hB.superClass_.disposeInternal.call(this);delete this.reader_};
var K1P=function(W){var e=new hB,t=HeP(e);e.reader_.readAsArrayBuffer(W);return t},PcB=function(W){var e=new hB,t=HeP(e);
e.reader_.readAsDataURL(W);return t},HeP=function(W){var e=new zD;
W.listen("loadend",_.Sz(function(t,b){var m=b.reader_.result,q=b.getError();m==null||q?t.errback(q):t.callback(m);b.dispose()},e,W));
return e};var HQ=function(){_.ZY.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9341_eventHandler_=new _.bk(this);this.JSC$9341_isInitialized_=!1};
_.QP(HQ,_.ZY);var Vze=new _.GD("d"),ieo=new _.GD("beforedragstart"),Y6v=new _.GD("dragstart"),zfk=new _.GD("beforedragmove"),U2o=new _.GD("dragmove"),L1Z=new _.GD("beforedragend"),EhN=new _.GD("dragend"),AyU=new _.GD("e");HQ.prototype.isDragging=function(){return!!this.JSC$9341_dragger_};
var NyD=function(W,e){e.dlgGrowthDirection_=0;e.dlgDragHoverClass_=void 0;e.dlgDragPermission=0;W.dragLists_.push(e)},d2b=function(W,e){W.getHandleForDragItem_=e};
HQ.prototype.init=function(){if(!this.JSC$9341_isInitialized_){for(var W=this.dragLists_.length,e=0;e<W;e++)for(var t=_.TX(this.dragLists_[e]),b=t.length,m=0;m<b;++m){var q=t[m],Q=this.getHandleForDragItem_(q),X=_.bh(Q);this.dragItemForHandle_[X]=q;this.dragItemHoverClasses_&&(this.JSC$9341_eventHandler_.listen(q,"mouseover",this.handleDragItemMouseover_),this.JSC$9341_eventHandler_.listen(q,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9341_eventHandler_.listen(Q,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9341_eventHandler_.listen(Q,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(q);this.JSC$9341_eventHandler_.listen(Q,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9341_isInitialized_=!0}};
HQ.prototype.disposeInternal=function(){this.JSC$9341_eventHandler_.dispose();for(var W=this.dragLists_.length,e=0;e<W;e++){var t=this.dragLists_[e];t.dlgGrowthDirection_=void 0;t.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Wlr(this);HQ.superClass_.disposeInternal.call(this)};
var eoD=function(W,e){for(var t=W.dragLists_.length,b=0;b<t;b++){var m=W.dragLists_[b];m.dlgBounds_=T0G(m)}t=W.dragItems_.length;for(b=0;b<t;b++)m=W.dragItems_[b],m!=e&&(m.dlgBounds_=T0G(m))};
_.r=HQ.prototype;
_.r.handlePotentialDragStart_=function(W){var e=_.bh(W.currentTarget);e=this.dragItemForHandle_[e];if(e.parentElement.dlgDragPermission!=2){this.currDragItem_=e;a:{e=this.currDragItem_;for(var t=e.cloneNode(!0),b=oh("TEXTAREA",e),m=oh("TEXTAREA",t),q=0;q<b.length;q++)m[q].value=b[q].value;switch(e.tagName){case "TR":e=_.yT("TABLE",null,_.yT("TBODY",null,t));break a;case "TD":case "TH":e=_.yT("TABLE",null,_.yT("TBODY",null,_.yT("TR",null,t)));break a;case "TEXTAREA":t.value=e.value;default:e=t;break a}e=
void 0}this.draggerEl_=e;this.draggerElClasses_&&ij(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.n8(this.currDragItem_).body.appendChild(this.draggerEl_);t=_.g6(this.currDragItem_);e=this.draggerEl_;b=_.g6(e);if(t instanceof _.jH){var Q=t.y;t=t.x}s8(e,e.offsetLeft+(t-b.x),e.offsetTop+(Number(Q)-b.y));this.JSC$9341_dragger_=new _.MR(this.draggerEl_);_.rJZ(this.JSC$9341_dragger_,this.hysteresisDistance_);
_.p4(this.JSC$9341_dragger_,"start",this.handleDragStart_,!1,this);_.p4(this.JSC$9341_dragger_,"end",this.handleDragEnd_,!1,this);_.p4(this.JSC$9341_dragger_,"earlycancel",this.JSC$9343_cleanup_,!1,this);this.dispatchEvent(new Ks(Vze,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_));this.JSC$9341_dragger_.startDrag(W)}};
_.r.handleDragStart_=function(W){if(this.dispatchEvent(new Ks(ieo,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tPP(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ij(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var e=SSb(this.draggerEl_);this.draggerEl_.halfWidth=e.width/2;this.draggerEl_.halfHeight=e.height/2;e=this.draggerEl_.getBoundingClientRect();
var t=W.clientY,b=qtZ(this.JSC$9341_dragger_,W.clientX);if(b>e.right){var m=this.currDragItem_.getBoundingClientRect();this.JSC$9341_dragger_.deltaX=b-(b-m.left)/m.width*e.width}t=RTb(this.JSC$9341_dragger_,t);t>e.bottom&&(this.JSC$9341_dragger_.deltaY+=t-e.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";eoD(this,this.currDragItem_);this.currDragItem_.style.display="";_.p4(this.JSC$9341_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ks(Y6v,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_))}else W.preventDefault(),this.JSC$9343_cleanup_()};
_.r.handleDragMove_=function(W){var e=_.g6(this.draggerEl_);e=new _.jH(e.x+this.draggerEl_.halfWidth,e.y+this.draggerEl_.halfHeight);a:{var t=null;if(this.currDragItem_.style.display!="none"){t=this.currDragItem_.parentNode;var b=T0G(t);if(twN(e,b))break a}b=this.dragLists_.length;for(var m=0;m<b;m++){var q=this.dragLists_[m];if(q!=t&&twN(e,q.dlgBounds_)){t=q;break a}}t=null}if(t){if(t==null)throw Error("Vd");b=0;m=!1;q=void 0;switch(t.dlgGrowthDirection_){case 0:b=e.y;var Q=bGy;var X=mfe;break;case 4:m=
!0;case 2:b=e.x;Q=rmN;X=mfe;break;case 5:m=!0;case 3:b=e.x,Q=qby,X=Roe}for(var I=null,u,c=_.TX(t),v=c.length,D=0;D<v;D++){var B=c[D];if(B!=this.currDragItem_){var k=Q(B.dlgBounds_);if(m){var n=Q1S(B,e);q===void 0&&(q=n);X(b,k)&&(u==void 0||n<q||n==q&&(X(k,u)||k==u))&&(I=B,u=k);n<q&&(q=n)}else X(b,k)&&(u==void 0||X(k,u))&&(I=B,u=k)}}Q=I!==null&&Q1S(I,e)>q?null:I}else Q=null;if(!this.dispatchEvent(new Ks(zfk,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_,e,t,Q)))return!1;if(t&&t.dlgDragPermission!=
1)this.currDragItem_.parentNode==t&&_.tPP(this.currDragItem_)==Q||t.insertBefore(this.currDragItem_,Q),this.currDragItem_.style.display="",t.dlgDragHoverClass_&&_.Nk(t,t.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",X=this.dragLists_.length,u=0;u<X;u++)b=this.dragLists_[u],b.dlgDragHoverClass_&&_.ED(b,b.dlgDragHoverClass_);t!=this.currHoverList_&&(this.currHoverList_=t,eoD(this,this.currDragItem_));this.dispatchEvent(new Ks(U2o,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_,
e,t,Q));return!1};
_.r.JSC$9343_cleanup_=function(){Wlr(this);this.JSC$9341_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,e=0;e<W;e++)this.dragLists_[e].dlgBounds_=null;W=this.dragItems_.length;for(e=0;e<W;e++)this.dragItems_[e].dlgBounds_=null};
_.r.handleDragEnd_=function(W){if(!this.dispatchEvent(new Ks(L1Z,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_)))return!1;Wlr(this);this.dispatchEvent(new Ks(EhN,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9341_dragger_));this.JSC$9343_cleanup_();return!0};
var Wlr=function(W){_.NL(W.JSC$9341_dragger_);var e=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.BX(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?rDU(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var t=W.dragLists_.length,b=0;b<t;b++){var m=W.dragLists_[b];m.dlgDragHoverClass_&&
_.ED(m,m.dlgDragHoverClass_)}e&&W.dispatchEvent(new Ks(AyU,W,null,W.currDragItem_,W.draggerEl_,W.JSC$9341_dragger_))};
_.r=HQ.prototype;_.r.getHandleForDragItem_=function(W){return W};
_.r.handleDragItemMouseover_=function(W){ij(W.currentTarget,this.dragItemHoverClasses_||[])};
_.r.handleDragItemMouseout_=function(W){rDU(W.currentTarget,this.dragItemHoverClasses_||[])};
_.r.handleDragItemHandleMouseover_=function(W){ij(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.r.handleDragItemHandleMouseout_=function(W){rDU(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var twN=function(W,e){return W.x>e.left&&W.x<e.left+e.width&&W.y>e.top&&W.y<e.top+e.height},Q1S=function(W,e){W=W.dlgBounds_;
return Math.abs(e.y-(W.top+(W.height-1)/2))},bGy=function(W){return W.top+W.height-1},rmN=function(W){return W.left+W.width-1},qby=function(W){return W.left||0},mfe=function(W,e){return W<e},Roe=function(W,e){return W>e},Ks=function(W,e,t,b,m,q){_.DY.call(this,W);
this.event=t;this.currDragItem=b;this.draggerEl=m;this.JSC$9345_dragger=q};
_.QP(Ks,_.DY);_.QP(m$,_.ka);var Flh=new _.jH(0,0);m$.prototype.JSC$9349_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
m$.prototype.JSC$9349_onMouseMove=function(W){var e=this.containerIsActuallyContent_?Flh:cK(vK(this.containerNode_)),t=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+e.x,this.scrollBounds_.left,this.scrollBounds_.width):0,b=this.calculateScrollDelta(W.clientY+e.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=t;this.scrollDelta_.y=b;!(t=!t&&!b)&&(t=this.constrainScroll_)&&(t=W.clientX+e.x,W=W.clientY+e.y,e=this.containerBounds_,t=!(e.left<=t&&e.left+e.width>=
t&&e.top<=W&&e.top+e.height>=W));t?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
m$.prototype.calculateScrollDelta=function(W,e,t){var b=0;W<e?b=-8:W>e+t&&(b=8);return b};
m$.prototype.disposeInternal=function(){m$.superClass_.disposeInternal.call(this);this.JSC$9347_eventHandler_.dispose();this.scrollTimer_.dispose()};var Xmr={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"}}},PQ=Xmr;PQ=Xmr;var Vy={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 INe=function(){},VJ=function(W){if(typeof W=="number"){var e=new INe;
e.standardOffset_=W;var t=W;if(t==0)t="Etc/GMT";else{var b=["Etc/GMT",t<0?"-":"+"];t=Math.abs(t);b.push(Math.floor(t/60)%100);t%=60;t!=0&&b.push(":",_.m5(t,2));t=b.join("")}e.timeZoneId_=t;t=W;t==0?t="UTC":(b=["UTC",t<0?"+":"-"],t=Math.abs(t),b.push(Math.floor(t/60)%100),t%=60,t!=0&&b.push(":",t),t=b.join(""));W=aNU(W);e.tzNames_=[t,t];e.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};e.transitions_=[];return e}e=new INe;e.timeZoneId_=W.id;e.standardOffset_=-W.std_offset;e.tzNames_=W.names;
e.tzNamesExt_=W.names_ext;e.transitions_=W.transitions;return e},aNU=function(W){var e=["GMT"];
e.push(W<=0?"+":"-");W=Math.abs(W);e.push(_.m5(Math.floor(W/60)%100,2),":",_.m5(W%60,2));return e.join("")},wmB=function(W,e){e=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes())/36E5;
for(var t=0;t<W.transitions_.length&&e>=W.transitions_[t];)t+=2;return t==0?0:W.transitions_[t-1]},u4Z=function(W,e){W=W.standardOffset_-wmB(W,e);
return W===-1440?0:W};var iX=function(W,e){this.patternParts_=[];this.JSC$9360_dateTimeSymbols_=e||Cv;typeof W=="number"?cmZ(this,W):vgS(this,W)},GqN=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],iS=function(W){return W.getHours?W.getHours():0},vgS=function(W,e){for(Nvg&&(e=e.replace(/\u200f/g,""));e;){for(var t=e,b=0;b<GqN.length;++b){var m=e.match(GqN[b]);
if(m){var q=m[0];e=e.substring(q.length);b==0&&(q=="''"?q="'":(q=q.substring(1,m[1]=="'"?q.length-1:q.length),q=q.replace(/''/g,"'")));W.patternParts_.push({text:q,type:b});break}}if(t===e)throw Error("Wd`"+e);}};
iX.prototype.format=function(W,e){if(!W)throw Error("Xd");var t=e?(W.getTimezoneOffset()-u4Z(e,W))*6E4:0,b=t?new Date(W.getTime()+t):W,m=b;e&&b.getTimezoneOffset()!=W.getTimezoneOffset()&&(b=new Date(b.getTime()+(b.getTimezoneOffset()-W.getTimezoneOffset())*6E4),m=new Date(W.getTime()+(t+(t>0?-864E5:864E5))));t=[];for(var q=0;q<this.patternParts_.length;++q){var Q=this.patternParts_[q].text;1==this.patternParts_[q].type?t.push(Dfe(this,Q,W,b,m,e)):t.push(Q)}return t.join("")};
var cmZ=function(W,e){if(e<4)var t=W.JSC$9360_dateTimeSymbols_.DATEFORMATS[e];else if(e<8)t=W.JSC$9360_dateTimeSymbols_.TIMEFORMATS[e-4];else if(e<12)t=W.JSC$9360_dateTimeSymbols_.DATETIMEFORMATS[e-8],t=t.replace("{1}",W.JSC$9360_dateTimeSymbols_.DATEFORMATS[e-8]),t=t.replace("{0}",W.JSC$9360_dateTimeSymbols_.TIMEFORMATS[e-8]);else if(e===12)t=W.JSC$9360_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(e===13)t=W.JSC$9360_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{cmZ(W,10);return}vgS(W,t)},YF=function(W,e){e=String(e);
W=W.JSC$9360_dateTimeSymbols_||Cv;if(W.ZERODIGIT!==void 0&&!ArS){for(var t=[],b=0;b<e.length;b++){var m=e.charCodeAt(b);t.push(48<=m&&m<=57?String.fromCharCode(W.ZERODIGIT+m-48):e.charAt(b))}e=t.join("")}return e},ArS=!1,Nvg=!1,BOB=function(W,e,t,b){t=t.getFullYear();
t<=0&&b&&(t=1-t);return YF(W,SbD(t,e))},SbD=function(W,e){e==2&&(W%=100);
W<0&&e++;return _.m5(W,e)},zh=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("Yd");
},ogv=function(W,e){zh(e);
e=iS(e);return W.JSC$9360_dateTimeSymbols_.AMPMS[e>=12&&e<24?1:0]},Dfe=function(W,e,t,b,m,q){var Q=e.length;
switch(e.charAt(0)){case "G":return t=b.getFullYear()>0?1:0,Q>=4?W.JSC$9360_dateTimeSymbols_.ERANAMES[t]:W.JSC$9360_dateTimeSymbols_.ERAS[t];case "y":return BOB(W,Q,b,!0);case "Y":return t=(new Date(ZeS(b.getFullYear(),b.getMonth(),b.getDate(),W.JSC$9360_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9360_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Q==2&&(t%=100),YF(W,SbD(t,Q));case "u":return BOB(W,Q,b,!1);case "M":a:switch(t=b.getMonth(),Q){case 5:Q=W.JSC$9360_dateTimeSymbols_.NARROWMONTHS[t];break a;
case 4:Q=W.JSC$9360_dateTimeSymbols_.MONTHS[t];break a;case 3:Q=W.JSC$9360_dateTimeSymbols_.SHORTMONTHS[t];break a;default:Q=YF(W,_.m5(t+1,Q))}return Q;case "k":return zh(m),YF(W,_.m5(iS(m)||24,Q));case "S":return YF(W,(m.getMilliseconds()/1E3).toFixed(Math.min(3,Q)).slice(2)+(Q>3?_.m5(0,Q-3):""));case "E":return t=b.getDay(),Q>=4?W.JSC$9360_dateTimeSymbols_.WEEKDAYS[t]:W.JSC$9360_dateTimeSymbols_.SHORTWEEKDAYS[t];case "a":return ogv(W,m);case "b":return ogv(W,m);case "B":return ogv(W,m);case "h":return zh(m),
YF(W,_.m5(iS(m)%12||12,Q));case "K":return zh(m),YF(W,_.m5(iS(m)%12,Q));case "H":return zh(m),YF(W,_.m5(iS(m),Q));case "c":a:switch(t=b.getDay(),Q){case 5:Q=W.JSC$9360_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[t];break a;case 4:Q=W.JSC$9360_dateTimeSymbols_.STANDALONEWEEKDAYS[t];break a;case 3:Q=W.JSC$9360_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[t];break a;default:Q=YF(W,_.m5(t,1))}return Q;case "L":a:switch(t=b.getMonth(),Q){case 5:Q=W.JSC$9360_dateTimeSymbols_.STANDALONENARROWMONTHS[t];break a;
case 4:Q=W.JSC$9360_dateTimeSymbols_.STANDALONEMONTHS[t];break a;case 3:Q=W.JSC$9360_dateTimeSymbols_.STANDALONESHORTMONTHS[t];break a;default:Q=YF(W,_.m5(t+1,Q))}return Q;case "Q":return t=Math.floor(b.getMonth()/3),Q<4?W.JSC$9360_dateTimeSymbols_.SHORTQUARTERS[t]:W.JSC$9360_dateTimeSymbols_.QUARTERS[t];case "d":return YF(W,_.m5(b.getDate(),Q));case "m":return zh(m),YF(W,_.m5(m.getMinutes?m.getMinutes():0,Q));case "s":return zh(m),YF(W,_.m5(m.getSeconds(),Q));case "v":return(q||VJ(t.getTimezoneOffset())).timeZoneId_;
case "V":return W=q||VJ(t.getTimezoneOffset()),Q<=2?W.timeZoneId_:wmB(W,t)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return t=ZeS(m.getFullYear(),m.getMonth(),m.getDate(),W.JSC$9360_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9360_dateTimeSymbols_.FIRSTDAYOFWEEK),YF(W,_.m5(Math.floor(Math.round((t-(new Date((new Date(t)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Q));case "z":return W=q||VJ(t.getTimezoneOffset()),Q<4?W.tzNames_[wmB(W,t)>0?2:0]:W.tzNames_[wmB(W,t)>0?3:1];case "Z":return e=q||VJ(t.getTimezoneOffset()),Q<4?(Q=-u4Z(e,t),W=[Q<0?"-":"+"],Q=Math.abs(Q),W.push(_.m5(Math.floor(Q/60)%100,2),_.m5(Q%60,2)),Q=W.join("")):Q=YF(W,aNU(u4Z(e,t))),Q;default:return""}};var lNh=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,ZGU=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,uJG=function(W){this.patternParts_=[];this.JSC$9369_dateTimeSymbols_=Cv;if(typeof W=="number"){W>11&&(W=10);if(W<4)var e=this.JSC$9369_dateTimeSymbols_.DATEFORMATS[W];else W<8?e=this.JSC$9369_dateTimeSymbols_.TIMEFORMATS[W-4]:(e=this.JSC$9369_dateTimeSymbols_.DATETIMEFORMATS[W-8],e=e.replace("{1}",this.JSC$9369_dateTimeSymbols_.DATEFORMATS[W-8]),e=e.replace("{0}",this.JSC$9369_dateTimeSymbols_.TIMEFORMATS[W-
8]));$fk(this,e)}else $fk(this,W)},$fk=function(W,e){for(var t=!1,b="",m=0;m<e.length;m++){var q=e.charAt(m);
if(lNh.test(q))for(b.length>0&&(W.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});m<e.length-1&&e.charAt(m+1)==" ";)m++;else if(t)q=="'"?m+1<e.length&&e.charAt(m+1)=="'"?(b+="'",m++):t=!1:b+=q;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(q)>=0){b.length>0&&(W.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b="");for(var Q=e.charAt(m),X=m+1;X<e.length&&e.charAt(X)==Q;)X++;Q=X-m;Q<=0?X=!1:(X="MydhHmsSDkK".indexOf(q),
X=X>0||X==0&&Q<3);W.patternParts_.push({text:q,count:Q,abutStart:!1,numeric:X});m+=Q-1}else q=="'"?m+1<e.length&&e.charAt(m+1)=="'"?(b+="'",m++):t=!0:b+=q}b.length>0&&W.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1});e=!1;for(t=0;t<W.patternParts_.length;t++)W.patternParts_[t].numeric?!e&&t+1<W.patternParts_.length&&W.patternParts_[t+1].numeric&&(e=!0,W.patternParts_[t].abutStart=!0):e=!1};
uJG.prototype.parse=function(W,e,t){var b=!1,m=!1;t&&(b=t.predictive||!1,m=t.validate||!1);if(b)for(t=0;t<this.patternParts_.length;t++){var q=this.patternParts_[t];if(q.count>0&&("abBhHkKm".indexOf(q.text.charAt(0))<0||q.count>2||q.abutStart))throw Error("Zd`"+q.text.charAt(0));}q=new kqN;t=[0];q.dayPeriodIndex=-1;for(var Q=0;Q<this.patternParts_.length&&!(b&&t[0]>=W.length);Q++){if(this.patternParts_[Q].count==0){a:{var X=W;var I=t,u=this.patternParts_[Q],c=b;if(u.text.match(lNh)!=null){if(u=I[0],
pmb(X,I),I[0]>u){X=!0;break a}}else{if(X.indexOf(u.text,I[0])==I[0]){I[0]+=u.text.length;X=!0;break a}if(c&&u.text.indexOf(X.substring(I[0]))==0){I[0]+=X.length-I[0];X=!0;break a}}X=!1}if(X)continue;return 0}if(this.patternParts_[Q].abutStart){a:{I=W;u=t;c=Q;var v=u[0],D=0;for(X=c;X<this.patternParts_.length;X++){var B=this.patternParts_[X],k=B.count;if(k===0)break;if(X==c&&(k-=D,D++,k==0)){X=0;break a}var n=X>c&&B.numeric,f=u[0];if(!ymo(this,I,u,B,k,q,!1)||n&&u[0]-f<k)X=c-1,u[0]=v}X-=c}if(X<=0)return 0;
Q+=X-1}else if(!ymo(this,W,t,this.patternParts_[Q],0,q,b))return 0}a:{W=m;if(e==null)throw Error("$d");q.era!=void 0&&q.year!=void 0&&q.era==0&&q.year>0&&(q.year=-(q.year-1));q.year!=void 0&&e.setFullYear(q.year);b=e.getDate();e.setDate(1);q.month!=void 0&&e.setMonth(q.month);q.day!=void 0?e.setDate(q.day):(m=PEQ(e.getFullYear(),e.getMonth()),e.setDate(b>m?m:b));typeof e.setHours==="function"&&(q.hours==void 0&&(q.hours=e.getHours()),q.hours<12&&(q.ampm!=void 0&&q.ampm>0?q.hours+=12:q.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(q.dayPeriodName)||["night1","night2"].includes(q.dayPeriodName)&&q.hours>=6)&&(q.hours+=12)),e.setHours(q.hours));typeof e.setMinutes==="function"&&q.minutes!=void 0&&e.setMinutes(q.minutes);typeof e.setSeconds==="function"&&q.seconds!=void 0&&e.setSeconds(q.seconds);typeof e.setMilliseconds==="function"&&q.milliseconds!=void 0&&e.setMilliseconds(q.milliseconds);if(W&&(q.year&&q.year!=e.getFullYear()||q.month&&q.month!=
e.getMonth()||q.day&&q.day!=e.getDate()||q.hours&&q.hours>=24||q.minutes&&q.minutes>=60||q.seconds&&q.seconds>=60||q.milliseconds&&q.milliseconds>=1E3))e=!1;else{q.tzOffset!=void 0&&e.setTime(e.getTime()+(q.tzOffset-e.getTimezoneOffset())*60*1E3);q.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),e.getTime()<W.getTime()&&e.setFullYear(W.getFullYear()+100));if(q.dayOfWeek!=void 0)if(q.day==void 0)q=(7+q.dayOfWeek-e.getDay())%7,q>3&&(q-=7),W=e.getMonth(),e.setDate(e.getDate()+q),e.getMonth()!=
W&&e.setDate(e.getDate()+(q>0?-7:7));else if(q.dayOfWeek!=e.getDay()){e=!1;break a}e=!0}}return e?t[0]:0};
var ymo=function(W,e,t,b,m,q,Q){pmb(e,t);if(b.numeric&&m>0&&t[0]+m>e.length)return!1;switch(b.text.charAt(0)){case "G":return UU(e,t,[W.JSC$9369_dateTimeSymbols_.ERAS],function(X){return q.era=X}),!0;
case "M":case "L":return j1k(W,e,t,m,b,q);case "E":return UU(e,t,[W.JSC$9369_dateTimeSymbols_.WEEKDAYS,W.JSC$9369_dateTimeSymbols_.SHORTWEEKDAYS],function(X){return q.dayOfWeek=X});
case "B":case "b":return m=[],W=[[].concat(W.JSC$9369_dateTimeSymbols_.AMPMS)],m.push("isAm"),m.push("isPm"),e=UU(e,t,W,function(X){return q.dayPeriodIndex=X},Q),q.dayPeriodName=m[q.dayPeriodIndex],Q?e:!0;
case "a":return e=UU(e,t,[W.JSC$9369_dateTimeSymbols_.AMPMS],function(X){return q.ampm=X},Q),Q?e:!0;
case "y":return CXb(W,e,t,b,m,q);case "Q":return UU(e,t,[W.JSC$9369_dateTimeSymbols_.QUARTERS,W.JSC$9369_dateTimeSymbols_.SHORTQUARTERS],function(X){q.month=X*3;q.day=1});
case "d":return Ls(W,e,t,b,m,function(X){q.day=X}),!0;
case "S":return ngb(W,e,t,m,q);case "h":case "K":case "H":case "k":return e=Ls(W,e,t,b,m,function(X){q.hours=b.text.charAt(0)==="h"&&X===12?0:X},Q),Q?e:!0;
case "m":return e=Ls(W,e,t,b,m,function(X){q.minutes=X},Q),Q?e:!0;
case "s":return Ls(W,e,t,b,m,function(X){q.seconds=X}),!0;
case "z":case "Z":case "v":return fNv(W,e,t,q);default:return!1}},CXb=function(W,e,t,b,m,q){var Q=t[0];
m=EU(W,e,t,m);m===null&&(m=EU(W,e,t,0,!0));if(m===null)return!1;m>=0&&t[0]-Q==2&&b.count==2?(W=m,e=(new Date).getFullYear()-80,t=e%100,q.ambiguousYear=W==t,W+=Math.floor(e/100)*100+(W<t?100:0),q.year=W):q.year=m;return!0},j1k=function(W,e,t,b,m,q){return m.numeric&&Ls(W,e,t,m,b,function(Q){q.month=Q-1})?!0:UU(e,t,[W.JSC$9369_dateTimeSymbols_.MONTHS,
W.JSC$9369_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$9369_dateTimeSymbols_.SHORTMONTHS,W.JSC$9369_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Q){q.month=Q})},ngb=function(W,e,t,b,m){var q=t[0];
W=EU(W,e,t,b);if(W===null)return!1;t=t[0]-q;m.milliseconds=t<3?W*Math.pow(10,3-t):Math.round(W/Math.pow(10,t-3));return!0},fNv=function(W,e,t,b){e.indexOf("GMT",t[0])==t[0]&&(t[0]+=3);
if(t[0]>=e.length)return b.tzOffset=0,!0;var m=t[0],q=EU(W,e,t,0,!0);if(q===null)return!1;if(t[0]<e.length&&e.charAt(t[0])==":"){var Q=q*60;t[0]++;q=EU(W,e,t,0);if(q===null)return!1;Q+=q}else Q=q,Q=Q<24&&t[0]-m<=3?Q*60:Q%100+Q/100*60;b.tzOffset=-Q;return!0},Ls=function(W,e,t,b,m,q,Q){Q=Q||!1;
var X=t[0];W=EU(W,e,t,m);if(W===null)return!1;if(Q&&t[0]-X<b.count){if(t[0]<e.length)return!1;W*=Math.pow(10,b.count-(t[0]-X))}q(W);return!0},UU=function(W,e,t,b,m){m=m||!1;
for(var q,Q=0;Q<t.length;Q++){q=e;for(var X=t[Q],I=m,u=0,c=null,v=W.substring(q[0]).toLowerCase(),D=0;D<X.length;D++){var B=X[D].toLowerCase();if(I&&B.indexOf(v)==0){u=v.length;c=D;break}X[D].length>u&&v.indexOf(B)==0&&(u=X[D].length,c=D)}c!==null&&(q[0]+=u);q=c;if(q!==null)return b(q),!0}return!1},pmb=function(W,e){(W=W.substring(e[0]).match(ZGU))&&(e[0]+=W[0].length)},EU=function(W,e,t,b,m){e=b>0?e.substring(0,t[0]+b):e;
m=m||!1;if(W.JSC$9369_dateTimeSymbols_.ZERODIGIT){b=[];for(var q=t[0];q<e.length;q++){var Q=e.charCodeAt(q)-W.JSC$9369_dateTimeSymbols_.ZERODIGIT;b.push(0<=Q&&Q<=9?String.fromCharCode(Q+48):e.charAt(q))}e=b.join("")}else e=e.substring(t[0]);W=e.match(new RegExp("^"+(m?"[+-]?":"")+"\\d+"));if(!W)return null;t[0]+=W[0].length;return parseInt(W[0],10)},kqN=function(){};
kqN.prototype.ambiguousYear=!1;_.ggD={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 TOS={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"},Jmh=TOS,xfe=TOS;xfe=Jmh=TOS;var Mwb,AB,dJ,Jog,NG,OGh;
_.Hm=function(W,e,t,b){var m;if(m=e){a:if(e&&e.length===3){for(m=0;m<3;m++){var q=e[m];if(q<"A"||q>"Z"&&q<"a"||q>"z"){m=!1;break a}}m=!0}else m=!1;m=!m}if(m)throw new TypeError("ae");this.intlCurrencyCode_=e?e.toUpperCase():null;this.currencyStyle_=t||0;this.overrideNumberFormatSymbols_=b||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=AB(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:NG(this,AB(this).DECIMAL_PATTERN);break;case 2:NG(this,AB(this).SCIENTIFIC_PATTERN);break;case 3:NG(this,AB(this).PERCENT_PATTERN);break;case 4:W=AB(this).CURRENCY_PATTERN;e=["0"];if(t=
Vy[dJ(this)]){t=t[0]&7;if(t>0)for(e.push("."),b=0;b<t;b++)e.push("0");W=W.replace(/0.00/g,e.join(""))}NG(this,W);break;case 5:OGh(this,1);break;case 6:OGh(this,2);break;default:throw Error("de");}else NG(this,W)};
Mwb=!1;AB=function(W){return W.overrideNumberFormatSymbols_||(Mwb?xfe:Jmh)};
dJ=function(W){return W.intlCurrencyCode_||AB(W).DEF_CURRENCY_CODE};
Jog=function(W,e){if(e>308)throw Error("ce`"+e);W.maximumFractionDigits_=e;return W};
NG=function(W,e){var t=[0];W.positivePrefix_=s1B(W,e,t);for(var b=t[0],m=-1,q=0,Q=0,X=0,I=-1,u=e.length,c=!0;t[0]<u&&c;t[0]++)switch(e.charAt(t[0])){case "#":Q>0?X++:q++;I>=0&&m<0&&I++;break;case "0":if(X>0)throw Error("je`"+e);Q++;I>=0&&m<0&&I++;break;case ",":I>0&&W.groupingArray_.push(I);I=0;break;case ".":if(m>=0)throw Error("ke`"+e);m=q+Q+X;break;case "E":if(W.useExponentialNotation_)throw Error("le`"+e);W.useExponentialNotation_=!0;W.minExponentDigits_=0;t[0]+1<u&&e.charAt(t[0]+1)=="+"&&(t[0]++,
W.useSignForPositiveExponent_=!0);for(;t[0]+1<u&&e.charAt(t[0]+1)=="0";)t[0]++,W.minExponentDigits_++;if(q+Q<1||W.minExponentDigits_<1)throw Error("me`"+e);c=!1;break;default:t[0]--,c=!1}Q==0&&q>0&&m>=0&&(Q=m,Q==0&&Q++,X=q-Q,q=Q-1,Q=1);if(m<0&&X>0||m>=0&&(m<q||m>q+Q)||I==0)throw Error("ne`"+e);X=q+Q+X;W.maximumFractionDigits_=m>=0?X-m:0;m>=0&&(W.minimumFractionDigits_=q+Q-m,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(m>=0?m:X)-q;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
q+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,I));W.decimalSeparatorAlwaysShown_=m==0||m==X;b=t[0]-b;W.positiveSuffix_=s1B(W,e,t);t[0]<e.length&&e.charAt(t[0])==";"?(t[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=s1B(W,e,t),t[0]+=b,W.negativeSuffix_=s1B(W,e,t)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
OGh=function(W,e){W.compactStyle_=e;NG(W,AB(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;Jog(W,2);if(W.minimumFractionDigits_>0)throw Error("be");W.significantDigits_=2};
_.Hm.prototype.parse=function(W,e){e=e||[0];if(this.compactStyle_!==0)throw Error("ee");W=W.replace(/ |\u202f/g,"\u00a0");var t=W.indexOf(this.positivePrefix_,e[0])==e[0],b=W.indexOf(this.negativePrefix_,e[0])==e[0];t&&b&&(this.positivePrefix_.length>this.negativePrefix_.length?b=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(t=!1));t?e[0]+=this.positivePrefix_.length:b&&(e[0]+=this.negativePrefix_.length);if(W.indexOf(AB(this).INFINITY,e[0])==e[0]){e[0]+=AB(this).INFINITY.length;var m=
Infinity}else{m=W;var q=!1,Q=!1,X=!1,I=-1,u=1,c=AB(this).DECIMAL_SEP,v=AB(this).GROUP_SEP,D=AB(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");v=v.replace(/\u202f/g,"\u00a0");for(var B="";e[0]<m.length;e[0]++){var k=m.charAt(e[0]),n=hoZ(this,k);if(n>=0&&n<=9)B+=n,X=!0;else if(k==c.charAt(0)){if(q||Q)break;B+=".";q=!0}else if(k==v.charAt(0)&&("\u00a0"!=v.charAt(0)||e[0]+1<m.length&&hoZ(this,m.charAt(e[0]+1))>=0)){if(q||Q)break}else if(k==D.charAt(0)){if(Q)break;B+="E";Q=!0;I=e[0]}else if(k==
"+"||k=="-"){if(X&&I!=e[0]-1)break;B+=k}else if(this.multiplier_==1&&k==AB(this).PERCENT.charAt(0)){if(u!=1)break;u=100;if(X){e[0]++;break}}else if(this.multiplier_==1&&k==AB(this).PERMILL.charAt(0)){if(u!=1)break;u=1E3;if(X){e[0]++;break}}else break}this.multiplier_!=1&&(u=this.multiplier_);m=parseFloat(B)/u}if(t){if(W.indexOf(this.positiveSuffix_,e[0])!=e[0])return NaN;e[0]+=this.positiveSuffix_.length}else if(b){if(W.indexOf(this.negativeSuffix_,e[0])!=e[0])return NaN;e[0]+=this.negativeSuffix_.length}return b?
-m:m};
_.Hm.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(W))return AB(this).NAN;var e=[];var t=W;if(this.compactStyle_==0)t=WM;else{t=Math.abs(t);var b=HGr(this,t<=1?0:Klk(t)).divisorBase;t=HGr(this,b+Klk(PXS(this,e3(t,-b)).intValue))}W=e3(W,-t.divisorBase);(b=W<0||W==0&&1/W<0)?t.negative_prefix?e.push(t.negative_prefix):(e.push(t.prefix),e.push(this.negativePrefix_)):(e.push(t.prefix),e.push(this.positivePrefix_));if(isFinite(W))if(W*=
b?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var m=W;if(m==0)VwN(this,m,this.minimumIntegerDigits_,e),iG8(this,0,e);else{var q=Math.floor(Math.log(m)/Math.log(10)+2E-15);m=e3(m,-q);var Q=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Q=q%this.maximumIntegerDigits_,Q<0&&(Q=this.maximumIntegerDigits_+Q),m=e3(m,Q),q-=Q,Q=1):this.minimumIntegerDigits_<1?(q++,m=e3(m,-1)):(q-=this.minimumIntegerDigits_-1,m=e3(m,this.minimumIntegerDigits_-
1));VwN(this,m,Q,e);iG8(this,q,e)}}else VwN(this,W,this.minimumIntegerDigits_,e);else e.push(AB(this).INFINITY);b?t.negative_suffix?e.push(t.negative_suffix):(isFinite(W)&&e.push(t.suffix),e.push(this.negativeSuffix_)):(isFinite(W)&&e.push(t.suffix),e.push(this.positiveSuffix_));return e.join("")};
var PXS=function(W,e){var t=e3(e,W.maximumFractionDigits_);W.significantDigits_>0&&(t=Ybv(t,W.significantDigits_,W.maximumFractionDigits_));t=Math.round(t);if(isFinite(t)){var b=Math.floor(e3(t,-W.maximumFractionDigits_));t=Math.floor(t-e3(b,W.maximumFractionDigits_));if(t<0||t>=e3(1,W.maximumFractionDigits_))b=Math.round(e),t=0}else b=e,t=0;return{intValue:b,fracValue:t}},VwN=function(W,e,t,b){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("ge");
b||(b=[]);e=PXS(W,e);var m=e.intValue,q=e.fracValue,Q=W.minimumFractionDigits_>0||q>0||!1;e=W.minimumFractionDigits_;Q&&(e=W.minimumFractionDigits_);for(var X="",I=m;I>1E20;)X="0"+X,I=Math.round(e3(I,-1));X=I+X;var u=AB(W).DECIMAL_SEP;I=AB(W).ZERO_DIGIT.codePointAt(0);var c=X.length,v=0;if(m>0||t>0){for(m=c;m<t;m++)b.push(String.fromCodePoint(I));if(W.groupingArray_.length>=2)for(t=1;t<W.groupingArray_.length;t++)v+=W.groupingArray_[t];t=c-v;if(t>0){m=W.groupingArray_;v=c=0;for(var D,B=AB(W).GROUP_SEP,
k=X.length,n=0;n<k;n++)if(b.push(String.fromCodePoint(I+Number(X.charAt(n)))),k-n>1)if(D=m[v],n<t){var f=t-n;(D===1||D>0&&f%D===1)&&b.push(B)}else v<m.length&&(n===t?v+=1:D===n-t-c+1&&(b.push(B),c+=D,v+=1))}else{t=X;X=W.groupingArray_;m=AB(W).GROUP_SEP;D=t.length;B=[];for(c=X.length-1;c>=0&&D>0;c--){v=X[c];for(k=0;k<v&&D-k-1>=0;k++)B.push(String.fromCodePoint(I+Number(t.charAt(D-k-1))));D-=v;D>0&&B.push(m)}b.push.apply(b,B.reverse())}}else Q||b.push(String.fromCodePoint(I));(W.decimalSeparatorAlwaysShown_||
Q)&&b.push(u);q=String(q);Q=q.split("e+");Q.length==2&&(q=String(Ybv(parseFloat(Q[0]),W.significantDigits_,1)),q=q.replace(".",""),q+=(0,_.sf9)("0",parseInt(Q[1],10)-q.length+1));W.maximumFractionDigits_+1>q.length&&(q="1"+(0,_.sf9)("0",W.maximumFractionDigits_-q.length)+q);for(W=q.length;q.charAt(W-1)=="0"&&W>e+1;)W--;for(e=1;e<W;e++)b.push(String.fromCodePoint(I+Number(q.charAt(e))))},iG8=function(W,e,t){t.push(AB(W).EXP_SYMBOL);
e<0?(e=-e,t.push(AB(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&t.push(AB(W).PLUS_SIGN);e=""+e;for(var b=AB(W).ZERO_DIGIT,m=e.length;m<W.minExponentDigits_;m++)t.push(b);W=b.codePointAt(0)-zoP;for(b=0;b<e.length;b++)t.push(String.fromCodePoint(W+e.codePointAt(b)))},hoZ=function(W,e){e=e.codePointAt(0);
if(48<=e&&e<58)return e-48;W=AB(W).ZERO_DIGIT.codePointAt(0);return W<=e&&e<W+10?e-W:-1},zoP="0".codePointAt(0),s1B=function(W,e,t){for(var b="",m=!1,q=e.length;t[0]<q;t[0]++){var Q=e.charAt(t[0]);
if(Q=="'")t[0]+1<q&&e.charAt(t[0]+1)=="'"?(t[0]++,b+="'"):m=!m;else if(m)b+=Q;else switch(Q){case "#":case "0":case ",":case ".":case ";":return b;case "\u00a4":if(t[0]+1<q&&e.charAt(t[0]+1)=="\u00a4")t[0]++,b+=dJ(W);else switch(W.currencyStyle_){case 0:Q=dJ(W);b+=Q in Vy?Vy[Q][1]:Q;break;case 2:Q=dJ(W);var X=Vy[Q];b+=X?Q==X[1]?Q:Q+" "+X[1]:Q;break;case 1:Q=dJ(W),b+=Q in Vy?Vy[Q][2]:Q}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("ie");W.multiplier_=100;W.negativePercentSignExpected_=!1;b+=AB(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("ie");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;b+=AB(W).PERMILL;break;default:b+=Q}}return b},WM={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},HGr=function(W,e){W=W.compactStyle_==1?PQ.COMPACT_DECIMAL_SHORT_PATTERN:PQ.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=PQ.COMPACT_DECIMAL_SHORT_PATTERN);if(e<3)return WM;e=Math.min(14,e);var t=W[e3(1,e)];for(--e;!t&&e>=3;)t=W[e3(1,e)],e--;if(!t)return WM;t=t.other;var b=W="",m=t.indexOf(";");m>=0&&(t=t.substring(0,m),m=t.substring(m+1))&&(b=/([^0]*)(0+)(.*)/.exec(m),W=b[1],b=b[3]);return t&&t!="0"?(t=/([^0]*)(0+)(.*)/.exec(t))?{divisorBase:e+
1-(t[2].length-1),negative_prefix:W,negative_suffix:b,prefix:t[1],suffix:t[3]}:WM:WM},Klk=function(W){if(!isFinite(W))return W>0?W:0;
for(var e=0;(W/=10)>=1;)e++;return e},e3=function(W,e){if(!W||!isFinite(W)||e==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+e))},UfU=function(W,e){return W&&isFinite(W)?e3(Math.round(e3(W,e)),-e):W},Ybv=function(W,e,t){if(!W)return W;
e=e-Klk(W)-1;return e<-t?UfU(W,-t):UfU(W,e)};var Llv=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},EgZ=Llv;
EgZ=Llv;var Amr;Amr=function(W,e){var t=W|0;if(void 0===e){e=Math;var b=e.min,m=W+"",q=m.indexOf(".");e=b.call(e,q===-1?0:m.length-q-1,3)}b=Math.pow(10,e);W={v:e,f:(W*b|0)%b};return t==1&&W.v==0?"one":"other"};
_.Yg=Amr;_.Yg=Amr;var NOv,dfv,WVB,tfo,bBh;_.eLb=function(W){this.JSC$9412_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=Jmh;var e=PQ;if(NOv!==W||dfv!==e)NOv=W,dfv=e,WVB=new _.Hm(1);this.numberFormatter_=WVB};
NOv=null;dfv=null;WVB=null;tfo=RegExp("'([{}#].*?)'","g");bBh=RegExp("''","g");
_.eLb.prototype.format=function(W){if(this.JSC$9412_pattern_){this.initialLiterals_=[];var e=muy(this,this.JSC$9412_pattern_);this.parsedPattern_=r8r(this,e);this.JSC$9412_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.EL(this.initialLiterals_),e=[],qrS(this,this.parsedPattern_,W,!1,e),W=e.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var qrS=function(W,e,t,b,m){for(var q=0;q<e.length;q++)switch(e[q].type){case 4:m.push(e[q].value);break;case 3:var Q=e[q].value;var X=W,I=m,u=t[Q];u===void 0?I.push("Undefined parameter - "+Q):(X.literals_.push(u),I.push(X.buildPlaceholder_(X.literals_)));break;case 2:Q=e[q].value;X=W;I=t;u=b;var c=m,v=Q.argumentIndex;I[v]===void 0?c.push("Undefined parameter - "+v):(v=Q[I[v]],v===void 0&&(v=Q.other),qrS(X,v,I,u,c));break;case 0:Q=e[q].value;RLr(W,Q,t,_.Yg,b,m);break;case 1:Q=e[q].value,RLr(W,Q,
t,EgZ,b,m)}},RLr=function(W,e,t,b,m,q){var Q=e.argumentIndex,X=e.argumentOffset,I=+t[Q];
isNaN(I)?q.push("Undefined or invalid parameter - "+Q):(X=I-X,Q=e[t[Q]],Q===void 0&&(b=b(Math.abs(X)),Q=e[b],Q===void 0&&(Q=e.other)),e=[],qrS(W,Q,t,m,e),t=e.join(""),m?q.push(t):(W=W.numberFormatter_.format(X),q.push(t.replace(/#/g,W))))},muy=function(W,e){var t=W.initialLiterals_,b=W.buildPlaceholder_.bind(W);
e=e.replace(bBh,function(){t.push("'");return b(t)});
return e=e.replace(tfo,function(m,q){t.push(q);return b(t)})},QXe=function(W){var e=0,t=[],b=[],m=/[{}]/g;
m.lastIndex=0;for(var q;q=m.exec(W);){var Q=q.index;q[0]=="}"?(t.pop(),t.length==0&&(q={type:1},q.value=W.substring(e,Q),b.push(q),e=Q+1)):(t.length==0&&(e=W.substring(e,Q),e!=""&&b.push({type:0,value:e}),e=Q+1),t.push("{"))}W=W.substring(e);W!=""&&b.push({type:0,value:W});return b},FVP=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,XwP=/^\s*(\w+)\s*,\s*selectordinal\s*,/,Iav=/^\s*(\w+)\s*,\s*select\s*,/,r8r=function(W,e){var t=[];
e=QXe(e);for(var b=0;b<e.length;b++){var m={};if(0==e[b].type)m.type=4,m.value=e[b].value;else if(1==e[b].type){var q=e[b].value;switch(FVP.test(q)?0:XwP.test(q)?1:Iav.test(q)?2:/^\s*\w+\s*/.test(q)?3:5){case 2:m.type=2;m.value=aah(W,e[b].value);break;case 0:m.type=0;m.value=wwe(W,e[b].value);break;case 1:m.type=1;m.value=uuZ(W,e[b].value);break;case 3:m.type=3,m.value=e[b].value}}t.push(m)}return t},aah=function(W,e){var t="";
e=e.replace(Iav,function(X,I){t=I;return""});
var b={};b.argumentIndex=t;e=QXe(e);for(var m=0;m<e.length;){var q=e[m].value;m++;var Q=void 0;1==e[m].type&&(Q=r8r(W,e[m].value));b[q.replace(/\s/g,"")]=Q;m++}return b},wwe=function(W,e){var t="",b=0;
e=e.replace(FVP,function(I,u,c){t=u;c&&(b=parseInt(c,10));return""});
var m={};m.argumentIndex=t;m.argumentOffset=b;e=QXe(e);for(var q=0;q<e.length;){var Q=e[q].value;q++;var X=void 0;1==e[q].type&&(X=r8r(W,e[q].value));m[Q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;q++}return m},uuZ=function(W,e){var t="";
e=e.replace(XwP,function(X,I){t=I;return""});
var b={};b.argumentIndex=t;b.argumentOffset=0;e=QXe(e);for(var m=0;m<e.length;){var q=e[m].value;m++;var Q=void 0;1==e[m].type&&(Q=r8r(W,e[m].value));b[q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Q;m++}return b};
_.eLb.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var c8e;
c8e={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 eYs=function(){this.rdtfSymbols_=vQy||c8e;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
eYs.prototype.format=function(W,e){a:{e=GiN(this,e);switch(this.style_){case 2:if(e.NARROW!=void 0){e=e.NARROW;break a}case 1:if(e.SHORT!=void 0){e=e.SHORT;break a}default:e=e.LONG;break a}e=void 0}if(!this.alwaysNumeric_&&e&&e.R&&e.R[""+W])W=e.R[""+W];else if(e){var t=Math.abs(W);W=(new _.eLb("{N,plural,"+(W>0||W==0&&1/W==Infinity?e.F:e.P)+"}")).format({N:t})}else W="";return W};
var GiN=function(W,e){switch(e){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var Dub=function(W,e,t,b,m,q,Q,X){this.x0=W;this.y0=e;this.x1=t;this.y1=b;this.x2=m;this.y2=q;this.x3=Q;this.y3=X};
Dub.prototype.clone=function(){return new Dub(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Dub.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var Sre=function(W,e){if(e==0)return W.x0;if(e==1)return W.x3;var t=Zu(W.x0,W.x1,e),b=Zu(W.x1,W.x2,e);W=Zu(W.x2,W.x3,e);t=Zu(t,b,e);b=Zu(b,W,e);return Zu(t,b,e)},BD8=function(W,e){var t=(e-W.x0)/(W.x3-W.x0);
if(t<=0)return 0;if(t>=1)return 1;for(var b=0,m=1,q=0,Q=0;Q<8;Q++){q=Sre(W,t);var X=(Sre(W,t+1E-6)-q)/1E-6;if(Math.abs(q-e)<1E-6)return t;if(Math.abs(X)<1E-6)break;else q<e?b=t:m=t,t-=(q-e)/X}for(Q=0;Math.abs(q-e)>1E-6&&Q<8;Q++)q<e?(b=t,t=(t+m)/2):(m=t,t=(t+b)/2),q=Sre(W,t);return t};var tX=function(){_.ZY.call(this);this.JSC$9433_name_="closure_frame"+oQv++;this.iframesForDisposal_=[];lae[this.JSC$9433_name_]=this},b$;
_.QP(tX,_.ZY);var lae={},oQv=0,ZB8=function(W,e){var t=vK(W);_.sDk(e,function(b,m){Array.isArray(b)||(b=[b]);_.VZ(b,function(q){q=t.JSC$7374_createDom("INPUT",{type:"hidden",name:m,value:q});W.appendChild(q)})})};
_.r=tX.prototype;_.r.JSC$9435_form_=null;_.r.JSC$9435_iframe_=null;_.r.iframeName_=null;_.r.nextIframeId_=0;_.r.JSC$9435_active_=!1;_.r.complete_=!1;_.r.success_=!1;_.r.lastContent_=null;_.r.JSC$9435_lastErrorCode_=0;_.r.iframeDisposalTimer_=null;
_.r.send=function(W,e,t,b){if(this.JSC$9435_active_)throw Error("oe");W=new _.UT(W);e=e?e.toUpperCase():"GET";t&&_.FH(W);b$||(b$=_.yT("FORM"),b$.acceptCharset="utf-8",t=b$.style,t.position="absolute",t.visibility="hidden",t.top=t.left="-10px",t.width=t.height="10px",t.overflow="hidden",document.body.appendChild(b$));this.JSC$9435_form_=b$;e=="GET"&&ZB8(this.JSC$9435_form_,W.JSC$8077_queryData_);b&&ZB8(this.JSC$9435_form_,b);t=W.toString();t=AOc(t);b=this.JSC$9435_form_;t=_.pF(uF(t));t!==void 0&&(b.action=
t);this.JSC$9435_form_.method=e;$ub(this);kiS(this)};
_.r.abort=function(W){if(this.JSC$9435_active_){var e=mW(this);if(e)if(Bq(e))e.removeAllListeners(void 0);else if(e=or(e)){var t=0,b;for(b in e.listeners)for(var m=e.listeners[b].concat(),q=0;q<m.length;++q)Zj(m[q])&&++t}this.success_=this.JSC$9435_active_=this.complete_=!1;this.JSC$9435_lastErrorCode_=W||7;this.dispatchEvent("abort");pwy(this)}};
_.r.disposeInternal=function(){this.JSC$9435_active_&&this.abort();tX.superClass_.disposeInternal.call(this);this.JSC$9435_iframe_&&y8S(this);kiS(this);this.JSC$9435_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9435_form_=null;this.JSC$9435_lastErrorCode_=0;delete lae[this.JSC$9433_name_]};
_.r.isComplete=function(){return this.complete_};
_.r.isSuccess=function(){return this.success_};
_.r.isActive=function(){return this.JSC$9435_active_};
_.r.getResponseText=function(){return this.lastContent_};
_.r.getLastError=function(){return _.cKN(this.JSC$9435_lastErrorCode_)};
var $ub=function(W){W.JSC$9435_active_=!0;W.complete_=!1;W.JSC$9435_lastErrorCode_=0;W.iframeName_=W.JSC$9433_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$9435_iframe_=vK(W.JSC$9435_form_).JSC$7374_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var e=W.JSC$9435_iframe_.style;e.visibility="hidden";e.width=e.height="10px";e.display="none";_.uI?e.marginTop=e.marginLeft="-10px":(e.position="absolute",e.top=e.left="-10px");vK(W.JSC$9435_form_).JSC$7372_document_.body.appendChild(W.JSC$9435_iframe_);
e=W.iframeName_+"_inner";var t=RNZ(W.JSC$9435_iframe_);if(document.baseURI){var b=XX(e);b='<head><base href="'+XX(document.baseURI)+'"></head><body><iframe id="'+b+'" name="'+b+'"></iframe>';b=CF(b)}else b=XX(e),b=CF('<body><iframe id="'+b+'" name="'+b+'"></iframe>');t.write(nF(b));_.p4(t.getElementById(e),"load",W.onIframeLoaded_,!1,W);b=oh("TEXTAREA",W.JSC$9435_form_);for(var m=0,q=b.length;m<q;m++){var Q=b[m].value;wUN(b[m])!=Q&&(_.Jt(b[m],Q),b[m].value=Q)}b=t.importNode(W.JSC$9435_form_,!0);b.target=
e;b.action=W.JSC$9435_form_.action;t.body.appendChild(b);m=oh("SELECT",W.JSC$9435_form_);q=oh("SELECT",b);Q=0;for(var X=m.length;Q<X;Q++)for(var I=oh("OPTION",m[Q]),u=oh("OPTION",q[Q]),c=0,v=I.length;c<v;c++)u[c].selected=I[c].selected;m=oh("INPUT",W.JSC$9435_form_);q=oh("INPUT",b);Q=0;for(X=m.length;Q<X;Q++)if(m[Q].type=="file"&&m[Q].value!=q[Q].value){W.JSC$9435_form_.target=e;b=W.JSC$9435_form_;break}try{W.errorHandled_=!1,b.submit(),t.close(),_.w2&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(D){_.lj(t.getElementById(e),"load",W.onIframeLoaded_,!1,W),t.close(),rf(W,2)}};
tX.prototype.onIframeLoaded_=function(){_.lj(mW(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$9435_iframe_?RNZ(mW(this)):null;this.complete_=!0;this.JSC$9435_active_=!1;try{var e=W.body;this.lastContent_=e.textContent||e.innerText}catch(m){var t=1}var b;t||typeof this.errorChecker_!="function"||(b=this.errorChecker_(W))&&(t=4);t?rf(this,t):(this.success_=!0,this.JSC$9435_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),pwy(this))}catch(m){rf(this,1)}};
var rf=function(W,e){W.errorHandled_||(W.success_=!1,W.JSC$9435_active_=!1,W.complete_=!0,W.JSC$9435_lastErrorCode_=e,W.dispatchEvent("complete"),W.dispatchEvent("error"),pwy(W),W.errorHandled_=!0)},pwy=function(W){y8S(W);
kiS(W);W.JSC$9435_form_=null;W.dispatchEvent("ready")},y8S=function(W){var e=W.JSC$9435_iframe_;
e&&(e.onreadystatechange=null,e.onload=null,e.onerror=null,W.iframesForDisposal_.push(e));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.w2?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$9435_iframe_=null;W.iframeName_=null};
tX.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.BX(W)}};
var kiS=function(W){W.JSC$9435_form_&&W.JSC$9435_form_==b$&&_.nd(W.JSC$9435_form_)},mW=function(W){return W.JSC$9435_iframe_?RNZ(W.JSC$9435_iframe_).getElementById(W.iframeName_+"_inner"):null};
tX.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9435_active_){var W=this.JSC$9435_iframe_?RNZ(mW(this)):null;W&&!f8(W,"documentUri")?(_.lj(mW(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?rf(this,3):rf(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.qU=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var jXy;_.RU=function(W){this.errorMessage_=null;this.result_=[];this.JSC$9437_buffer_="";this.stack_=[];this.JSC$9437_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
jXy={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};_.RU.prototype.isInputValid=function(){return this.streamState_!=3};
_.RU.prototype.done=function(){return this.streamState_===2};
var Q6=function(W,e,t){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$9437_pos_+"/"+t+". With input:\n"+e;throw Error(W.errorMessage_);};
_.RU.prototype.acceptsBinaryInput=function(){return!1};
_.RU.prototype.parse=function(W){function e(){for(;D<W.length;)if(_.qU(W[D]))D++,q.JSC$9437_pos_++;else break;return D<u}
function t(){for(var k;;){k=W[D++];if(!k)break;q.JSC$9437_pos_++;switch(q.state_){case I.INIT:k==="{"?q.state_=I.OBJECT_OPEN:k==="["?q.state_=I.ARRAY_OPEN:_.qU(k)||Q6(q,W,D);continue;case I.KEY_START:case I.OBJECT_OPEN:if(_.qU(k))continue;if(q.state_===I.KEY_START)Q.push(I.KEY_END);else if(k==="}"){m("{}");q.state_=b();continue}else Q.push(I.OBJECT_END);k==='"'?q.state_=I.STRING:Q6(q,W,D);continue;case I.KEY_END:case I.OBJECT_END:if(_.qU(k))continue;k===":"?(q.state_===I.OBJECT_END&&(Q.push(I.OBJECT_END),
q.depth_++),q.state_=I.VALUE):k==="}"?(q.depth_--,m(),q.state_=b()):k===","?(q.state_===I.OBJECT_END&&Q.push(I.OBJECT_END),q.state_=I.KEY_START):Q6(q,W,D);continue;case I.ARRAY_OPEN:case I.VALUE:if(_.qU(k))continue;if(q.state_===I.ARRAY_OPEN)if(q.depth_++,q.state_=I.VALUE,k==="]"){q.depth_--;if(q.depth_===0){q.state_=I.ARRAY_END;return}m("[]");q.state_=b();continue}else Q.push(I.ARRAY_END);k==='"'?q.state_=I.STRING:k==="{"?q.state_=I.OBJECT_OPEN:k==="["?q.state_=I.ARRAY_OPEN:k==="t"?q.state_=I.TRUE1:
k==="f"?q.state_=I.FALSE1:k==="n"?q.state_=I.NULL1:k!=="-"&&("0123456789".indexOf(k)!==-1?q.state_=I.NUM_DIGIT:Q6(q,W,D));continue;case I.ARRAY_END:if(k===",")Q.push(I.ARRAY_END),q.state_=I.VALUE,q.depth_===1&&(v=D);else if(k==="]"){q.depth_--;if(q.depth_===0)return;m();q.state_=b()}else if(_.qU(k))continue;else Q6(q,W,D);continue;case I.STRING:var n=D;a:for(;;){for(;q.unicodeCount_>0;)if(k=W[D++],q.unicodeCount_===4?q.unicodeCount_=0:q.unicodeCount_++,!k)break a;if(k==='"'&&!q.slashed_){q.state_=
b();break}if(k==="\\"&&!q.slashed_&&(q.slashed_=!0,k=W[D++],!k))break;if(q.slashed_)if(q.slashed_=!1,k==="u"&&(q.unicodeCount_=1),k=W[D++])continue;else break;X.lastIndex=D;k=X.exec(W);if(!k){D=W.length+1;break}D=k.index+1;k=W[k.index];if(!k)break}q.JSC$9437_pos_+=D-n;continue;case I.TRUE1:if(!k)continue;k==="r"?q.state_=I.TRUE2:Q6(q,W,D);continue;case I.TRUE2:if(!k)continue;k==="u"?q.state_=I.TRUE3:Q6(q,W,D);continue;case I.TRUE3:if(!k)continue;k==="e"?q.state_=b():Q6(q,W,D);continue;case I.FALSE1:if(!k)continue;
k==="a"?q.state_=I.FALSE2:Q6(q,W,D);continue;case I.FALSE2:if(!k)continue;k==="l"?q.state_=I.FALSE3:Q6(q,W,D);continue;case I.FALSE3:if(!k)continue;k==="s"?q.state_=I.FALSE4:Q6(q,W,D);continue;case I.FALSE4:if(!k)continue;k==="e"?q.state_=b():Q6(q,W,D);continue;case I.NULL1:if(!k)continue;k==="u"?q.state_=I.NULL2:Q6(q,W,D);continue;case I.NULL2:if(!k)continue;k==="l"?q.state_=I.NULL3:Q6(q,W,D);continue;case I.NULL3:if(!k)continue;k==="l"?q.state_=b():Q6(q,W,D);continue;case I.NUM_DECIMAL_POINT:k===
"."?q.state_=I.NUM_DIGIT:Q6(q,W,D);continue;case I.NUM_DIGIT:if("0123456789.eE+-".indexOf(k)!==-1)continue;else D--,q.JSC$9437_pos_--,q.state_=b();continue;default:Q6(q,W,D)}}}
function b(){var k=Q.pop();return k!=null?k:I.VALUE}
function m(k){q.depth_>1||(k||(k=v===-1?q.JSC$9437_buffer_+W.substring(c,D):W.substring(v,D)),q.deliverMessageAsRawString_?q.result_.push(k):q.result_.push(JSON.parse(k)),v=D)}
for(var q=this,Q=q.stack_,X=q.stringInputPattern_,I=jXy,u=W.length,c=0,v=-1,D=0;D<u;)switch(q.streamState_){case 3:return Q6(q,W,D),null;case 2:return e()&&Q6(q,W,D),null;case 0:if(e()){var B=W[D++];q.JSC$9437_pos_++;if(B==="["){q.streamState_=1;c=D;q.state_=I.ARRAY_OPEN;continue}else Q6(q,W,D)}return null;case 1:return t(),q.depth_===0&&q.state_==I.ARRAY_END?(q.streamState_=2,q.JSC$9437_buffer_=W.substring(D)):q.JSC$9437_buffer_=v===-1?q.JSC$9437_buffer_+W.substring(c):W.substring(v),q.result_.length>
0?(B=q.result_,q.result_=[],B):null}return null};_.QP(_.r3,ZK);qg.prototype.getValue=function(){return this.JSC$9445_value_};
qg.prototype.clone=function(){return new qg(this.JSC$9445_key_,this.JSC$9445_value_)};var F8=function(W){this.nodes_=[];if(W)a:{if(W instanceof F8){var e=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var t=this.nodes_,b=0;b<e.length;b++)t.push(new qg(e[b],W[b]));break a}}else e=_.kJ.getKeys(W),W=_.kJ.getValues(W);for(t=0;t<e.length;t++)this.insert(e[t],W[t])}};
_.r=F8.prototype;_.r.insert=function(W,e){var t=this.nodes_;t.push(new qg(W,e));W=t.length-1;e=this.nodes_;for(t=e[W];W>0;){var b=W-1>>1;if(e[b].JSC$9445_key_>t.JSC$9445_key_)e[W]=e[b],W=b;else break}e[W]=t};
_.r.remove=function(){var W=this.nodes_,e=W.length,t=W[0];if(!(e<=0)){if(e==1)W.length=0;else{W[0]=W.pop();W=0;e=this.nodes_;for(var b=e.length,m=e[W];W<b>>1;){var q=W*2+1,Q=W*2+2;q=Q<b&&e[Q].JSC$9445_key_<e[q].JSC$9445_key_?Q:q;if(e[q].JSC$9445_key_>m.JSC$9445_key_)break;e[W]=e[q];W=q}e[W]=m}return t.getValue()}};
_.r.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.r.getValues=function(){for(var W=this.nodes_,e=[],t=W.length,b=0;b<t;b++)e.push(W[b].getValue());return e};
_.r.getKeys=function(){for(var W=this.nodes_,e=[],t=W.length,b=0;b<t;b++)e.push(W[b].JSC$9445_key_);return e};
_.r.containsValue=function(W){return this.nodes_.some(function(e){return e.getValue()==W})};
_.r.containsKey=function(W){return this.nodes_.some(function(e){return e.JSC$9445_key_==W})};
_.r.clone=function(){return new F8(this)};
_.r.getCount=function(){return this.nodes_.length};
_.r.isEmpty=function(){return this.nodes_.length===0};
_.r.clear=function(){this.nodes_.length=0};_.X8=function(W,e){this.JSC$9451_map_={};this.JSC$9451_keys_=[];this.version_=this.size=0;var t=arguments.length;if(t>1){if(t%2)throw Error("pa");for(var b=0;b<t;b+=2)this.set(arguments[b],arguments[b+1])}else W&&this.addAll(W)};
_.r=_.X8.prototype;_.r.getCount=function(){return this.size};
_.r.getValues=function(){IU(this);for(var W=[],e=0;e<this.JSC$9451_keys_.length;e++)W.push(this.JSC$9451_map_[this.JSC$9451_keys_[e]]);return W};
_.r.getKeys=function(){IU(this);return this.JSC$9451_keys_.concat()};
_.r.containsKey=function(W){return this.has(W)};
_.r.has=function(W){return aU(this.JSC$9451_map_,W)};
_.r.containsValue=function(W){for(var e=0;e<this.JSC$9451_keys_.length;e++){var t=this.JSC$9451_keys_[e];if(aU(this.JSC$9451_map_,t)&&this.JSC$9451_map_[t]==W)return!0}return!1};
_.r.equals=function(W,e){if(this===W)return!0;if(this.size!=W.getCount())return!1;e=e||Cmo;IU(this);for(var t,b=0;t=this.JSC$9451_keys_[b];b++)if(!e(this.get(t),W.get(t)))return!1;return!0};
var Cmo=function(W,e){return W===e};
_.X8.prototype.isEmpty=function(){return this.size==0};
_.X8.prototype.clear=function(){this.JSC$9451_map_={};this.version_=this.size=this.JSC$9451_keys_.length=0};
_.X8.prototype.remove=function(W){return this.delete(W)};
_.X8.prototype.delete=function(W){return aU(this.JSC$9451_map_,W)?(delete this.JSC$9451_map_[W],--this.size,this.version_++,this.JSC$9451_keys_.length>2*this.size&&IU(this),!0):!1};
var IU=function(W){if(W.size!=W.JSC$9451_keys_.length){for(var e=0,t=0;e<W.JSC$9451_keys_.length;){var b=W.JSC$9451_keys_[e];aU(W.JSC$9451_map_,b)&&(W.JSC$9451_keys_[t++]=b);e++}W.JSC$9451_keys_.length=t}if(W.size!=W.JSC$9451_keys_.length){e={};for(b=t=0;t<W.JSC$9451_keys_.length;){var m=W.JSC$9451_keys_[t];aU(e,m)||(W.JSC$9451_keys_[b++]=m,e[m]=1);t++}W.JSC$9451_keys_.length=b}};
_.r=_.X8.prototype;_.r.get=function(W,e){return aU(this.JSC$9451_map_,W)?this.JSC$9451_map_[W]:e};
_.r.set=function(W,e){aU(this.JSC$9451_map_,W)||(this.size+=1,this.JSC$9451_keys_.push(W),this.version_++);this.JSC$9451_map_[W]=e};
_.r.addAll=function(W){if(W instanceof _.X8)for(var e=W.getKeys(),t=0;t<e.length;t++)this.set(e[t],W.get(e[t]));else for(e in W)this.set(e,W[e])};
_.r.forEach=function(W,e){for(var t=this.getKeys(),b=0;b<t.length;b++){var m=t[b],q=this.get(m);W.call(e,q,m,this)}};
_.r.clone=function(){return new _.X8(this)};
_.r.transpose=function(){for(var W=new _.X8,e=0;e<this.JSC$9451_keys_.length;e++){var t=this.JSC$9451_keys_[e];W.set(this.JSC$9451_map_[t],t)}return W};
_.r.keys=function(){return mIZ(this.__iterator__(!0)).toEs6()};
_.r.values=function(){return mIZ(this.__iterator__(!1)).toEs6()};
_.r.entries=function(){var W=this;return vhZ(this.keys(),function(e){return[e,W.get(e)]})};
_.r.__iterator__=function(W){IU(this);var e=0,t=this.version_,b=this,m=new q_;m.next=function(){if(t!=b.version_)throw Error("pe");if(e>=b.JSC$9451_keys_.length)return R3;var q=b.JSC$9451_keys_[e++];return Q1(W?q:b.JSC$9451_map_[q])};
return m};
var aU=function(W,e){return Object.prototype.hasOwnProperty.call(W,e)};var fak=function(){this.JSC$9454_map_=new _.X8;this.JSC$9454_head_=new nQS("");this.JSC$9454_head_.next=this.JSC$9454_head_.prev=this.JSC$9454_head_},gQS=function(W,e){if(e=W.JSC$9454_map_.get(e))e.remove(),W.insert_(e);
return e};
_.r=fak.prototype;_.r.get=function(W,e){return(W=gQS(this,W))?W.value:e};
_.r.set=function(W,e){var t=gQS(this,W);t?t.value=e:(t=new nQS(W,e),this.JSC$9454_map_.set(W,t),this.insert_(t))};
_.r.peek=function(){return this.JSC$9454_head_.next.value};
_.r.shift=function(){return TDD(this,this.JSC$9454_head_.next)};
_.r.pop=function(){return TDD(this,this.JSC$9454_head_.prev)};
_.r.remove=function(W){return(W=this.JSC$9454_map_.get(W))?(this.removeNode(W),!0):!1};
_.r.removeNode=function(W){W.remove();this.JSC$9454_map_.remove(W.key)};
_.r.getCount=function(){return this.JSC$9454_map_.getCount()};
_.r.isEmpty=function(){return this.JSC$9454_map_.isEmpty()};
_.r.getKeys=function(){return this.map(function(W,e){return e})};
_.r.getValues=function(){return this.map(function(W){return W})};
_.r.contains=function(W){return this.some(function(e){return e==W})};
_.r.containsKey=function(W){return this.JSC$9454_map_.containsKey(W)};
_.r.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9454_head_.prev)};
_.r.forEach=function(W,e){for(var t=this.JSC$9454_head_.next;t!=this.JSC$9454_head_;t=t.next)W.call(e,t.value,t.key,this)};
_.r.map=function(W,e){for(var t=[],b=this.JSC$9454_head_.next;b!=this.JSC$9454_head_;b=b.next)t.push(W.call(e,b.value,b.key,this));return t};
_.r.some=function(W,e){for(var t=this.JSC$9454_head_.next;t!=this.JSC$9454_head_;t=t.next)if(W.call(e,t.value,t.key,this))return!0;return!1};
_.r.every=function(W,e){for(var t=this.JSC$9454_head_.next;t!=this.JSC$9454_head_;t=t.next)if(!W.call(e,t.value,t.key,this))return!1;return!0};
_.r.insert_=function(W){W.next=this.JSC$9454_head_.next;W.prev=this.JSC$9454_head_;this.JSC$9454_head_.next=W;for(W.next.prev=W;this.getCount()>100;)this.removeNode(this.JSC$9454_head_.prev)};
var TDD=function(W,e){W.JSC$9454_head_!=e&&W.removeNode(e);return e.value},nQS=function(W,e){this.key=W;
this.value=e};
nQS.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var J88=function(){F8.apply(this,arguments)};
_.Z(J88,F8);J88.prototype.enqueue=function(W,e){this.insert(W,e)};var xuo=function(){var W=Error();W.name="SecurityError";throw W;},GA2=function(){return{get opener(){return null},
get closed(){return!0},get location(){xuo()},get document(){xuo()},postMessage:function(){},
close:function(){},
focus:function(){}}};var JiZ={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 MjZ={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 OBN={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(MjZ).join("|");var Mfo=function(){function W(X){X.substr(-1)!==";"&&(X+=";");return Q(X)}
for(var e=Object.keys(OBN).sort(OnQ),t=Object.keys(MjZ).sort(OnQ),b=0,m=0;b<t.length;b++)e[m]===t[b]?(t[b]+=";?",m++):t[b]+=";";var q=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Q=s4Q();return function(X){return String(X).replace(q,W)}}();/*

 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 sXS={};var hLU=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"),HBS=/[\\&]/,KV8=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),PmP=RegExp('[&<>"]',"g"),Vfk=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),iBe=function(W){return W.charCodeAt(0)===92?W.charAt(1):Mfo(W)},YrB=function(W){return HBS.test(W)?W.replace(KV8,iBe):W},zLU=function(W){try{var e,t="";
if(typeof m!=="string"){var b=m;var m=";/?:@&=+$,-_.!~*'()#"}typeof b==="undefined"&&(b=!0);var q,Q=sXS[m];if(Q)var X=Q;else{Q=sXS[m]=[];for(q=0;q<128;q++){var I=String.fromCharCode(q);/^[0-9a-z]$/i.test(I)?Q.push(I):Q.push("%"+("0"+q.toString(16).toUpperCase()).slice(-2))}for(q=0;q<m.length;q++)Q[m.charCodeAt(q)]=m[q];X=Q}var u=0;for(e=W.length;u<e;u++){var c=W.charCodeAt(u);if(b&&c===37&&u+2<e&&/^[0-9a-f]{2}$/i.test(W.slice(u+1,u+3)))t+=W.slice(u,u+3),u+=2;else if(c<128)t+=X[c];else if(c>=55296&&
c<=57343){if(c>=55296&&c<=56319&&u+1<e){var v=W.charCodeAt(u+1);if(v>=56320&&v<=57343){t+=encodeURIComponent(W[u]+W[u+1]);u++;continue}}t+="%EF%BF%BD"}else t+=encodeURIComponent(W[u])}return t}catch(D){return W}},Uub=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},wf=function(W,e){return PmP.test(W)?e?W.replace(Vfk,Uub):W.replace(PmP,Uub):W};/*

 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 u$;if(String.fromCodePoint)u$=function(W){try{return String.fromCodePoint(W)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e;}};
else{var LVb=String.fromCharCode,EQN=Math.floor;u$=function(){var W=[],e=-1,t=arguments.length;if(!t)return"";for(var b="";++e<t;){var m=Number(arguments[e]);if(!isFinite(m)||m<0||m>1114111||EQN(m)!==m)return String.fromCharCode(65533);if(m<=65535)W.push(m);else{m-=65536;var q=(m>>10)+55296;m=m%1024+56320;W.push(q,m)}if(e+1===t||W.length>16384)b+=LVb.apply(null,W),W.length=0}return b}};var A8P=function(W){this.root=this.current=W;this.entering=!0};
A8P.prototype.next=function(){var W=this.current,e=this.entering;if(W===null)return null;a:switch(W._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 t=!0;break a;default:t=!1}e&&t?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:e,node:W}};
var Xr=function(W,e){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=e;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
Xr.prototype.appendChild=function(W){cM(W);W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
var cM=function(W){W._prev?W._prev._next=W._next:W._parent&&(W._parent._firstChild=W._next);W._next?W._next._prev=W._prev:W._parent&&(W._parent._lastChild=W._prev);W._parent=null;W._next=null;W._prev=null},NDe=function(W,e){cM(e);
e._next=W._next;e._next&&(e._next._prev=e);e._prev=W;W._next=e;e._parent=W._parent;e._next||(e._parent._lastChild=e)};
Xr.prototype.insertBefore=function(W){cM(W);W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.Ec.Object.defineProperties(Xr.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var hH2=/[ \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,
HnG={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 duh=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]/),
WZN=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),es8=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),tBB=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),bDy=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),mNB=/`+/,rcv=/^`+/,qzb=/\.\.\./g,Rsh=/--+/g,QHb=/^<([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])?)*)>/,
FZD=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,XGP=/^ *(?:\n *)?/,I0P=/^[ \t\n\x0b\x0c\x0d]/,a0S=/[ \t\n\x0b\x0c\x0d]+/g,wGD=/^\s/,uBk=/ *$/,ccU=/^ */,vty=/^ *(?:\n|$)/,GFy=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),DND=/^[^\n`\[\]\\!<&*_'"]+/m,vM=function(W){var e=new Xr("text");e._literal=W;return e},G0=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
G0.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
G0.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var DJ=function(W){W.match(XGP);return!0},SzN=function(W,e,t){var b=0;
var m=W.pos;if(e===39||e===34)b++,W.pos++;else for(;W.peek()===e;)b++,W.pos++;if(b===0)b=null;else{var q=m===0?"\n":W.subject.charAt(m-1);var Q=W.peek();Q=Q===-1?"\n":u$(Q);var X=wGD.test(Q);Q=duh.test(Q);var I=wGD.test(q);var u=duh.test(q);q=!X&&!(Q&&!I&&!u);X=!I&&!(u&&!X&&!Q);e===95?(I=q&&(!X||u),Q=X&&(!q||Q)):(I=e===39||e===34?q&&!X:q,Q=X);W.pos=m;b={numdelims:b,can_open:I,can_close:Q}}if(!b)return!1;m=b.numdelims;Q=W.pos;W.pos+=m;Q=e===39?"\u2019":e===34?"\u201c":W.subject.slice(Q,W.pos);Q=vM(Q);
t.appendChild(Q);W.delimiters={cc:e,numdelims:m,origdelims:m,node:Q,previous:W.delimiters,next:null,can_open:b.can_open,can_close:b.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},Bzk=function(W,e){e.previous!==null&&(e.previous.next=e.next);
e.next===null?W.delimiters=e.previous:e.next.previous=e.previous},otr=function(W,e){var t,b,m=[],q=!1;
m[95]=e;m[42]=e;m[39]=e;m[34]=e;for(t=W.delimiters;t!==null&&t.previous!==e;)t=t.previous;for(;t!==null;){var Q=t.cc;if(t.can_close){var X=t.previous;for(b=!1;X!==null&&X!==e&&X!==m[Q];){q=(t.can_open||X.can_close)&&(X.origdelims+t.origdelims)%3===0;if(X.cc===t.cc&&X.can_open&&!q){b=!0;break}X=X.previous}var I=t;if(Q===42||Q===95)if(b){var u=t.numdelims>=2&&X.numdelims>=2?2:1;var c=X.node;var v=t.node;X.numdelims-=u;t.numdelims-=u;c._literal=c._literal.slice(0,c._literal.length-u);v._literal=v._literal.slice(0,
v._literal.length-u);var D=new Xr(u===1?"emph":"strong");for(u=c._next;u&&u!==v;){var B=u._next;cM(u);D.appendChild(u);u=B}NDe(c,D);u=X;B=t;u.next!==B&&(u.next=B,B.previous=u);X.numdelims===0&&(cM(c),Bzk(W,X));t.numdelims===0&&(cM(v),X=t.next,Bzk(W,t),t=X)}else t=t.next;else Q===39?(t.node._literal="\u2019",b&&(X.node._literal="\u2018"),t=t.next):Q===34&&(t.node._literal="\u201d",b&&(X.node.literal="\u201c"),t=t.next);b||q||(m[Q]=I.previous,I.can_open||Bzk(W,I))}else t=t.next}for(;W.delimiters!==
null&&W.delimiters!==e;)Bzk(W,W.delimiters)},l0b=function(W){W=W.match(WZN);
return W===null?null:YrB(W.substr(1,W.length-2))},ZDN=function(W){var e=W.match(es8);
if(e===null){e=W.pos;for(var t=0,b;(b=W.peek())!==-1;)if(b===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(b===40)W.pos+=1,t+=1;else if(b===41)if(t<1)break;else W.pos+=1,--t;else if(I0P.exec(u$(b))!==null)break;else W.pos+=1;e=W.subject.substr(e,W.pos-e);return zLU(YrB(e))}return zLU(YrB(e.substr(1,e.length-2)))},$N8=function(W){W=W.match(GFy);
return W===null||W.length>1001?0:W.length},kFS=function(W,e,t,b){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:e,previous:W.brackets,previousDelimiter:W.delimiters,index:t,image:b,active:!0}},pGD=function(W,e){var t;
return(t=W.match(DND))?(W.options.smart?e.appendChild(vM(t.replace(qzb,"\u2026").replace(Rsh,function(b){var m=0,q=0;b.length%3===0?q=b.length/3:b.length%2===0?m=b.length/2:b.length%3===2?(m=1,q=(b.length-2)/3):(m=2,q=(b.length-4)/3);b="";var Q;for(Q=0;Q<q;Q++)b+="\u2014";for(Q=0;Q<m;Q++)b+="\u2013";return b}))):e.appendChild(vM(t)),!0):!1},ycv=function(W,e,t){W.subject=e;
W.pos=0;e=W.pos;var b=$N8(W);if(b===0)return 0;var m=W.subject.substr(0,b);if(W.peek()===58)W.pos++;else return W.pos=e,0;DJ(W);b=ZDN(W);if(b===null||b.length===0)return W.pos=e,0;var q=W.pos;DJ(W);var Q=l0b(W);Q===null&&(Q="",W.pos=q);var X=!0;W.match(vty)===null&&(Q===""?X=!1:(Q="",W.pos=q,X=W.match(vty)!==null));if(!X)return W.pos=e,0;m=KzR(m);if(m==="")return W.pos=e,0;t[m]||(t[m]={destination:b,title:Q});return W.pos-e},jHk=function(W,e){var t,b=W.peek();
if(b===-1)return!1;switch(b){case 10:W.pos+=1;if((t=e._lastChild)&&t.type==="text"&&t._literal[t._literal.length-1]===" "){var m=t._literal[t._literal.length-2]===" ";t._literal=t._literal.replace(uBk,"");e.appendChild(new Xr(m?"linebreak":"softbreak"))}else e.appendChild(new Xr("softbreak"));W.match(ccU);t=!0;break;case 92:t=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,t=new Xr("linebreak"),e.appendChild(t)):tBB.test(t.charAt(W.pos))?(e.appendChild(vM(t.charAt(W.pos))),W.pos+=1):e.appendChild(vM("\\"));
t=!0;break;case 96:a:if(t=W.match(rcv),t===null)t=!1;else{m=W.pos;for(var q;(q=W.match(mNB))!==null;)if(q===t){q=new Xr("code");q._literal=W.subject.slice(m,W.pos-t.length).trim().replace(a0S," ");e.appendChild(q);t=!0;break a}W.pos=m;e.appendChild(vM(t));t=!0}break;case 42:case 95:t=SzN(W,b,e);break;case 39:case 34:t=W.options.smart&&SzN(W,b,e);break;case 91:t=W.pos;W.pos+=1;m=vM("[");e.appendChild(m);kFS(W,m,t,!1);t=!0;break;case 33:t=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,m=vM("!["),e.appendChild(m),
kFS(W,m,t+1,!0)):e.appendChild(vM("!"));t=!0;break;case 93:var Q,X=!1,I;W.pos+=1;var u=W.pos;m=W.brackets;if(m===null)e.appendChild(vM("]"));else if(m.active){t=m.image;var c=W.pos;W.peek()===40&&(W.pos++,DJ(W)&&(q=ZDN(W))!==null&&DJ(W)&&(I0P.test(W.subject.charAt(W.pos-1))&&(Q=l0b(W)),1)&&DJ(W)&&W.peek()===41?(W.pos+=1,X=!0):W.pos=c);if(!X){var v=W.pos,D=$N8(W);D>2?I=W.subject.slice(v,v+D):m.bracketAfter||(I=W.subject.slice(m.index,u));D===0&&(W.pos=c);I&&(I=W.refmap[KzR(I)])&&(q=I.destination,Q=
I.title,X=!0)}if(X){u=new Xr(t?"image":"link");u._destination=q;u._title=Q||"";for(q=m.node._next;q;)Q=q._next,cM(q),u.appendChild(q),q=Q;e.appendChild(u);otr(W,m.previousDelimiter);W.brackets=W.brackets.previous;cM(m.node);if(!t)for(m=W.brackets;m!==null;)m.image||(m.active=!1),m=m.previous}else W.brackets=W.brackets.previous,W.pos=u,e.appendChild(vM("]"))}else e.appendChild(vM("]")),W.brackets=W.brackets.previous;t=!0;break;case 60:(t=W.match(QHb))?(t=t.slice(1,t.length-1),m=new Xr("link"),m._destination=
zLU("mailto:"+t),m._title="",m.appendChild(vM(t)),e.appendChild(m),t=!0):(t=W.match(FZD))?(t=t.slice(1,t.length-1),m=new Xr("link"),m._destination=zLU(t),m._title="",m.appendChild(vM(t)),e.appendChild(m),t=!0):t=!1;t||(t=W.match(hLU),t===null?t=!1:(m=new Xr("html_inline"),m._literal=t,e.appendChild(m),t=!0));break;case 38:(t=W.match(bDy))?(e.appendChild(vM(Mfo(t))),t=!0):t=!1;break;default:t=pGD(W,e)}t||(W.pos+=1,e.appendChild(vM(u$(b))));return!0};
G0.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;jHk(this,W););W._string_content=null;otr(this,null)};
G0.prototype.parse=G0.prototype.parseInlines;var ClD=[/./,/^<(?: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")],ntv=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],f0N=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,gt8=/^[#`~*+_=<>0-9-\|]|\|/,TzB=/[^ \t\f\v\r\n]/,JcZ=/^[*+-]/,xNr=/^(\d{1,9})([.)])/,ODh=/^#{1,6}(?:[ \t]+|$)/,MBS=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,sHb=/^(?:`{3,}|~{3,})(?= *$)/,hsS=/^(?:=+|-+)[ \t]*$/,HDb=/\r\n|\n|\r/,VjQ=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,inL=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,KZS={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,e){for(W=e._firstChild;W;){if(PC9(W)&&W._next){e._listData.tight=!1;break}for(var t=W._firstChild;t;){if(PC9(t)&&(W._next||t._next)){e._listData.tight=!1;break}t=t._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var e=W.currentLine;if(W.indented||Q5(e,W.nextNonspace)!==62)return 1;S3(W);BM(W,1,!1);RB(Q5(e,W.offset))&&BM(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,e){if(W.blank){if(e._firstChild==null)return 1;S3(W)}else if(W.indent>=e._listData.markerOffset+e._listData.padding)BM(W,e._listData.markerOffset+e._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!YlL(W)},
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(W,e){var t=W.currentLine,b=W.indent;if(e._isFenced){if((b=b<=3&&t.charAt(W.nextNonspace)===e._fenceChar&&t.slice(W.nextNonspace).match(sHb))&&b[0].length>=e._fenceLength)return W.finalize(e,W.lineNumber),2;for(e=e._fenceOffset;e>0&&RB(Q5(t,W.offset));)BM(W,1,!0),e--}else if(b>=4)BM(W,4,!0);else if(W.blank)S3(W);else return 1;return 0},
finalize:function(W,e){if(e._isFenced){var t=e._string_content,b=t.indexOf("\n");W=t.slice(0,b);t=t.slice(b+1);e.info=YrB(W.trim());e._literal=t}else e._literal=e._string_content.replace(/(\n *)+$/,"\n");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,e){return!W.blank||e._htmlBlockType!==6&&e._htmlBlockType!==7?0:1},
finalize:function(W,e){e._literal=e._string_content.replace(/(\n *)+$/,"");e._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,e){for(var t,b=!1;Q5(e._string_content,0)===91&&(t=ycv(W.inlineParser,e._string_content,W.refmap));)e._string_content=e._string_content.slice(t),b=!0;b&&!TzB.test(e._string_content)&&cM(e)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return Fr(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,e){if(!e._rowIsDelimiter){W=e._isHeader?"th":"td";for(var t=e._parent._tableColumns,b=e._string_content,m=0,q="",Q,X=e._sourcepos[0][0];m<b.length;){switch(b[m]){case "|":Q&&(Q._string_content=q.trim(),q="",Q=null,t--,t<=0&&(m=b.length));break;default:if(!Q){Q=new Xr(W,[[X,m],[X,m]]);var I=e._parent._columnAlignment,u=e._parent._tableColumns-t;I&&u<=I.length&&u>=0&&(Q._alignment=I[u]);e.appendChild(Q)}q+=b[m];Q._sourcepos[1][1]=m}m++}Q&&(Q._string_content=q.trim());e._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},PlZ=[function(W){if(W.indented||Q5(W.currentLine,W.nextNonspace)!==62)return 0;S3(W);BM(W,1,!1);RB(Q5(W.currentLine,W.offset))&&BM(W,1,!0);oU(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var e;if(!W.indented&&(e=W.currentLine.slice(W.nextNonspace).match(ODh))){S3(W);BM(W,e[0].length,!1);oU(W);var t=W.addChild("heading",W.nextNonspace);t.level=e[0].trim().length;t._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");BM(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var e;if(!W.indented&&(e=W.currentLine.slice(W.nextNonspace).match(MBS))){var t=e[0].length;oU(W);var b=W.addChild("code_block",W.nextNonspace);b._isFenced=!0;b._fenceLength=t;b._fenceChar=e[0][0];b._fenceOffset=W.indent;S3(W);BM(W,t,!1);return 2}return 0},
function(W,e){if(!W.indented&&Q5(W.currentLine,W.nextNonspace)===60){var t=W.currentLine.slice(W.nextNonspace),b;for(b=1;b<=7;b++)if(ClD[b].test(t)&&(b<7||e.type!=="paragraph"))return oU(W),W.addChild("html_block",W.offset)._htmlBlockType=b,2}return 0},
function(W,e){var t;if(!W.indented&&e.type==="paragraph"&&(t=W.currentLine.slice(W.nextNonspace).match(hsS))){oU(W);var b=new Xr("heading",e.sourcepos);b.level=t[0][0]==="="?1:2;b._string_content=e._string_content;NDe(e,b);cM(e);W.tip=b;BM(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&f0N.test(W.currentLine.slice(W.nextNonspace))?(oU(W),W.addChild("thematic_break",W.nextNonspace),BM(W,W.currentLine.length-W.offset,!1),2):0},
function(W,e){var t,b;if(!(b=W.indented&&e.type!=="list")){a:{var m=e,q=W.currentLine.slice(W.nextNonspace);b={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(t=q.match(JcZ))b.type="bullet",b.bulletChar=t[0][0];else{if(!(t=q.match(xNr))||m.type==="paragraph"&&t[1]!=="1"){t=null;break a}b.type="ordered";b.start=parseInt(t[1],10);b.delimiter=t[2]}var Q=Q5(W.currentLine,W.nextNonspace+t[0].length);if(Q!==-1&&Q!==9&&Q!==32||m.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
t[0].length).match(TzB))t=null;else{S3(W);BM(W,t[0].length,!0);m=W.column;q=W.offset;do BM(W,1,!0),Q=Q5(W.currentLine,W.offset);while(W.column-m<5&&RB(Q));Q=Q5(W.currentLine,W.offset)===-1;var X=W.column-m;X>=5||X<1||Q?(b.padding=t[0].length+1,W.column=m,W.offset=q,RB(Q5(W.currentLine,W.offset))&&BM(W,1,!0)):b.padding=t[0].length+X;t=b}}b=!t}if(b)return 0;oU(W);(b=W.tip.type!=="list")||(e=e._listData,b=!(e.type===t.type&&e.delimiter===t.delimiter&&e.bulletChar===t.bulletChar));b&&(e=W.addChild("list",
W.nextNonspace),e._listData=t);e=W.addChild("item",W.nextNonspace);e._listData=t;return 1},
function(W){var e;return((e=W.options.shouldParseIndentAsCodeBlock)!=null?e:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(BM(W,4,!0),oU(W),W.addChild("code_block",W.offset),2):0},
function(W,e){var t=Fr(W.currentLine),b=Fr(W.lookahead);if(t!==0&&b<0&&Math.abs(t)==Math.abs(b)&&!YlL(e.type)){oU(W);e=W.addChild("table",W.nextNonspace);e._tableRows=1;e._tableColumns=Math.abs(t);t=W.lookahead;if(inL.test(t)){b=[];for(var m=0,q=!1,Q=0,X=void 0;m<t.length;){var I=Q>=3;switch(t[m]){case "-":Q++;break;case "|":q&&(b.push(X),X=void 0,Q=0);q=!0;break;case ":":X||I||(X="left"),!X&&I&&(X="right"),X==="left"&&I&&(X="center")}m++}t=b}else t=void 0;e._columnAlignment=t;e=W.addChild("row",
W.nextNonspace);e._isHeader=!0;BM(W,W.currentLine.length-W.offset,!1);e._string_content=W.currentLine;return 1}return 0},
function(W,e){if(e.type=="table"&&Fr(W.currentLine)!==0){oU(W);var t=e;e=W.addChild("row",W.nextNonspace);Fr(W.currentLine)<0?e._rowIsDelimiter=!0:t._tableRows+=1;BM(W,W.currentLine.length-W.offset,!1);e._string_content=W.currentLine;return 2}return 0}],LqR=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=zHz();this.refmap={};this.lastLineLength=0;this.inlineParser=new G0(W);this.options=W;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=KZS;this.blockStarts=PlZ},VB8=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
LqR.prototype.addChild=function(W,e){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new Xr(W,[[this.lineNumber,e+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var oU=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var e=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=e}W.allClosed=!0}},BM=function(W,e,t){for(var b=W.currentLine,m,q;e>0&&(q=b[W.offset]);)q==="\t"?(m=4-W.column%4,t?(W.partiallyConsumedTab=m>e,m=m>e?e:m,W.column+=m,W.offset+=W.partiallyConsumedTab?0:1,e-=m):(W.partiallyConsumedTab=!1,W.column+=m,W.offset+=1,--e)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--e)},S3=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},iDe=function(W){for(var e=W.currentLine,t=W.offset,b=W.column,m;(m=e.charAt(t))!=="";)if(m===" ")t++,b++;
else if(m==="\t")t++,b+=4-b%4;else break;W.blank=m==="\n"||m==="\r"||m==="";W.nextNonspace=t;W.nextNonspaceColumn=b;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
LqR.prototype.finalize=function(W,e){var t=W._parent;W._open=!1;W.sourcepos[1]=[e,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=t};
LqR.prototype.parse=function(W){this.tip=this.doc=zHz();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var e=W.split(HDb),t=e.length;W.charCodeAt(W.length-1)===10&&--t;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<t;W++)a:{var b=void 0,m=e[W],q=e[W+1],Q=!0,X=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;m.indexOf("\x00")!==-1&&(m=m.replace(/\0/g,"\ufffd"));this.currentLine=m;for(this.lookahead=q;(b=X._lastChild)&&b._open;){X=b;iDe(this);switch(this.blocks[X.type].continue(this,X)){case 0:break;case 1:Q=!1;break;case 2:this.lastLineLength=m.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Q){X=X._parent;break}}this.allClosed=X===this.oldtip;this.lastMatchedContainer=
X;b=X.type!=="paragraph"&&KZS[X.type].acceptsLines;q=this.blockStarts;for(Q=q.length;!b;){iDe(this);if(!this.indented&&!gt8.test(m.slice(this.nextNonspace))){S3(this);break}for(var I=0;I<Q;){var u=q[I](this,X);if(u===1){X=this.tip;break}else if(u===2){X=this.tip;b=!0;break}else I++}if(I===Q){S3(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){oU(this);this.blank&&X.lastChild&&(X.lastChild._lastLineBlank=!0);b=X.type;q=this.blank&&!(b==="block_quote"||b==="code_block"&&X._isFenced||
b==="item"&&!X._firstChild&&X.sourcepos[0][0]===this.lineNumber);for(Q=X;Q;)Q._lastLineBlank=q,Q=Q._parent;this.blocks[b].acceptsLines?(VB8(this),b==="html_block"&&X._htmlBlockType>=1&&X._htmlBlockType<=5&&ntv[X._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(X,this.lineNumber)):this.offset<m.length&&!this.blank&&(this.addChild("paragraph",this.offset),S3(this),VB8(this))}else VB8(this);this.lastLineLength=m.length}for(;this.tip;)this.finalize(this.tip,t);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");m=new A8P(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;t=m.next();)e=t.node,W=e.type,t.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(e);this.options.time&&console.timeEnd("inline parsing");return this.doc};UwS.prototype.render=function(W){W=new A8P(W);var e;this.buffer="";for(this.lastOut="\n";e=W.next();){var t=e.node.type;if(this[t])this[t](e.node,e.entering)}return this.buffer};
UwS.prototype.out=function(W){l$(this,W)};
var l$=function(W,e){W.buffer+=e;W.lastOut=e};
UwS.prototype.cr=function(){this.lastOut!=="\n"&&l$(this,"\n")};var Yzo=/^javascript:|vbscript:|file:|data:/i,zsD=/^data:image\/(?:png|gif|jpeg|webp)/i,UNb=function(W){return Yzo.test(W)&&!zsD.test(W)};
IB.prototype=Object.create(UwS.prototype);_.r=IB.prototype;_.r.text=function(W){this.out(W.literal)};
_.r.html_inline=function(W){this.options.safe?l$(this,"\x3c!-- raw HTML omitted --\x3e"):l$(this,W.literal)};
_.r.html_block=function(W){this.cr();this.options.safe?l$(this,"\x3c!-- raw HTML omitted --\x3e"):l$(this,W.literal);this.cr()};
_.r.softbreak=function(){l$(this,this.options.softbreak)};
_.r.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.r.link=function(W,e){var t=this.attrs(W);e?(this.options.safe&&UNb(W.destination)||t.push(["href",wf(W.destination,!0)]),W.title&&t.push(["title",wf(W.title,!0)]),this.tag("a",t)):this.tag("/a")};
_.r.image=function(W,e){e?(this.disableTags===0&&(this.options.safe&&UNb(W.destination)?l$(this,'<img src="" alt="'):l$(this,'<img src="'+wf(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&l$(this,'" title="'+wf(W.title,!0)),l$(this,'" />')))};
_.r.emph=function(W,e){this.tag(e?"em":"/em")};
_.r.strong=function(W,e){this.tag(e?"strong":"/strong")};
_.r.paragraph=function(W,e){var t=W.parent.parent;W=this.attrs(W);t!==null&&t.type==="list"&&t.listTight||(e?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.r.heading=function(W,e){var t="h"+W.level;W=this.attrs(W);e?(this.cr(),this.tag(t,W)):(this.tag("/"+t),this.cr())};
_.r.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.r.code_block=function(W){var e=W.info?W.info.split(/\s+/):[],t=this.attrs(W);e.length>0&&e[0].length>0&&t.push(["class","language-"+wf(e[0],!0)]);this.cr();this.tag("pre");this.tag("code",t);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.r.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.r.block_quote=function(W,e){W=this.attrs(W);e?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.r.list=function(W,e){var t=W.listType==="bullet"?"ul":"ol",b=this.attrs(W);e?(W=W.listStart,W!==null&&W!==1&&b.push(["start",W.toString()]),this.cr(),this.tag(t,b)):(this.cr(),this.tag("/"+t));this.cr()};
_.r.item=function(W,e){W=this.attrs(W);e?this.tag("li",W):(this.tag("/li"),this.cr())};
_.r.custom_inline=function(W,e){e&&W.onEnter?l$(this,W.onEnter):!e&&W.onExit&&l$(this,W.onExit)};
_.r.custom_block=function(W,e){this.cr();e&&W.onEnter?l$(this,W.onEnter):!e&&W.onExit&&l$(this,W.onExit);this.cr()};
_.r.table=function(W,e){W=this.attrs(W);e?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.r.row=function(W,e){W._rowIsDelimiter||(W=this.attrs(W),e?this.tag("tr",W):this.tag("/tr"))};
_.r.td=function(W,e){var t=this.attrs(W);W._alignment&&t.push(["align",W._alignment]);e?this.tag("td",t):this.tag("/td")};
_.r.th=function(W,e){var t=this.attrs(W);W._alignment&&t.push(["align",W._alignment]);e?this.tag("th",t):this.tag("/th")};
_.r.out=function(W){l$(this,wf(W,!1))};
_.r.tag=function(W,e,t){if(!(this.disableTags>0)){this.buffer+="<"+W;if(e&&e.length>0){W=0;for(var b;(b=e[W])!==void 0;)this.buffer+=" "+b[0]+'="'+b[1]+'"',W++}t&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.r.attrs=function(W){var e=[];this.options.sourcepos&&(W=W.sourcepos)&&e.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return e};
IB.prototype.text=IB.prototype.text;IB.prototype.html_inline=IB.prototype.html_inline;IB.prototype.html_block=IB.prototype.html_block;IB.prototype.softbreak=IB.prototype.softbreak;IB.prototype.linebreak=IB.prototype.linebreak;IB.prototype.link=IB.prototype.link;IB.prototype.image=IB.prototype.image;IB.prototype.emph=IB.prototype.emph;IB.prototype.strong=IB.prototype.strong;IB.prototype.paragraph=IB.prototype.paragraph;IB.prototype.heading=IB.prototype.heading;IB.prototype.code=IB.prototype.code;
IB.prototype.code_block=IB.prototype.code_block;IB.prototype.thematic_break=IB.prototype.thematic_break;IB.prototype.block_quote=IB.prototype.block_quote;IB.prototype.list=IB.prototype.list;IB.prototype.item=IB.prototype.item;IB.prototype.custom_inline=IB.prototype.custom_inline;IB.prototype.custom_block=IB.prototype.custom_block;IB.prototype.table=IB.prototype.table;IB.prototype.row=IB.prototype.row;IB.prototype.td=IB.prototype.td;IB.prototype.th=IB.prototype.th;IB.prototype.out=IB.prototype.out;
IB.prototype.tag=IB.prototype.tag;IB.prototype.attrs=IB.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 LZZ,Et8,ukD;(function(){function W(g,C){return g<C?-1:g>C?1:g>=C?0:NaN}
function e(g){return function(C,x){return W(g(C),x)}}
function t(){for(var g=0,C=arguments.length,x={},A;g<C;++g){if(!(A=arguments[g]+"")||A in x)throw Error("re`"+A);x[A]=[]}return new b(x)}
function b(g){this._=g}
function m(g,C){return g.trim().split(/^|\s+/).map(function(x){var A="",rG=x.indexOf(".");rG>=0&&(A=x.slice(rG+1),x=x.slice(0,rG));if(x&&!C.hasOwnProperty(x))throw Error("se`"+x);return{type:x,name:A}})}
function q(g,C,x){for(var A=0,rG=g.length;A<rG;++A)if(g[A].name===C){g[A]=o2w;g=g.slice(0,A).concat(g.slice(A+1));break}x!=null&&g.push({name:C,value:x});return g}
function Q(g){var C=g,x=C.indexOf(":");x>=0&&(C=g.slice(0,x))!=="xmlns"&&(g=g.slice(x+1));return XZ.hasOwnProperty(C)?{space:XZ[C],local:g}:g}
function X(g){return function(){var C=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&C.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?C.createElement(g):C.createElementNS(x,g)}}
function I(g){return function(){return this.ownerDocument.createElementNS(g.space,g.local)}}
function u(g){g=Q(g);return(g.local?I:X)(g)}
function c(){}
function v(g){return g==null?c:function(){return this.querySelector(g)}}
function D(g){return Array(g.length)}
function B(g,C){this.ownerDocument=g.ownerDocument;this.namespaceURI=g.namespaceURI;this._next=null;this._parent=g;this.__data__=C}
function k(g){return function(){return g}}
function n(g,C,x,A,rG,wG){for(var BZ=0,jG,WU=C.length,Az=wG.length;BZ<Az;++BZ)(jG=C[BZ])?(jG.__data__=wG[BZ],A[BZ]=jG):x[BZ]=new B(g,wG[BZ]);for(;BZ<WU;++BZ)if(jG=C[BZ])rG[BZ]=jG}
function f(g,C,x,A,rG,wG,BZ){var jG,WU,Az={},eP=C.length,Fb=wG.length,V8=Array(eP),wE;for(jG=0;jG<eP;++jG)if(WU=C[jG])V8[jG]=wE="$"+BZ.call(WU,WU.__data__,jG,C),wE in Az?rG[jG]=WU:Az[wE]=WU;for(jG=0;jG<Fb;++jG)wE="$"+BZ.call(g,wG[jG],jG,wG),(WU=Az[wE])?(A[jG]=WU,WU.__data__=wG[jG],Az[wE]=null):x[jG]=new B(g,wG[jG]);for(jG=0;jG<eP;++jG)(WU=C[jG])&&Az[V8[jG]]===WU&&(rG[jG]=WU)}
function M(g,C){return g<C?-1:g>C?1:g>=C?0:NaN}
function K(g){return function(){this.removeAttribute(g)}}
function U(g){return function(){this.removeAttributeNS(g.space,g.local)}}
function V(g,C){return function(){this.setAttribute(g,C)}}
function L(g,C){return function(){this.setAttributeNS(g.space,g.local,C)}}
function E(g,C){return function(){var x=C.apply(this,arguments);x==null?this.removeAttribute(g):this.setAttribute(g,x)}}
function RR(g,C){return function(){var x=C.apply(this,arguments);x==null?this.removeAttributeNS(g.space,g.local):this.setAttributeNS(g.space,g.local,x)}}
function uv(g){return function(){this.style.removeProperty(g)}}
function GS(g,C,x){return function(){this.style.setProperty(g,C,x)}}
function k9(g,C,x){return function(){var A=C.apply(this,arguments);A==null?this.style.removeProperty(g):this.style.setProperty(g,A,x)}}
function CQ(g,C){return g.style.getPropertyValue(C)||(g.ownerDocument&&g.ownerDocument.defaultView||g.document&&g||g.defaultView).getComputedStyle(g,null).getPropertyValue(C)}
function fQ(g){return function(){delete this[g]}}
function iv(g,C){return function(){this[g]=C}}
function hz(g,C){return function(){var x=C.apply(this,arguments);x==null?delete this[g]:this[g]=x}}
function ES(){this.textContent=""}
function Wu(g){return function(){this.textContent=g}}
function pr(g){return function(){var C=g.apply(this,arguments);this.textContent=C==null?"":C}}
function ay(){this.innerHTML=""}
function PU(g){return function(){this.innerHTML=g}}
function cu(g){return function(){var C=g.apply(this,arguments);this.innerHTML=C==null?"":C}}
function LQ(){return null}
function sB(){var g=this.parentNode;g&&g.removeChild(this)}
function z1(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function FD(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function DD(g,C,x){g=nr(g,C,x);return function(A){var rG=A.relatedTarget;rG&&(rG===this||rG.compareDocumentPosition(this)&8)||g.call(this,A)}}
function nr(g,C,x){return function(){g.call(this,this.__data__,C,x)}}
function UB(g){return g.trim().split(/^|\s+/).map(function(C){var x="",A=C.indexOf(".");A>=0&&(x=C.slice(A+1),C=C.slice(0,A));return{type:C,name:x}})}
function ZD(g){return function(){var C=this.__on;if(C){for(var x=0,A=-1,rG=C.length,wG;x<rG;++x)(wG=C[x],g.type&&wG.type!==g.type||wG.name!==g.name)?C[++A]=wG:this.removeEventListener(wG.type,wG.listener,wG.capture);++A?C.length=A:delete this.__on}}}
function US(g,C,x){var A=nFe.hasOwnProperty(g.type)?DD:nr;return function(rG,wG,BZ){rG=this.__on;var jG;wG=A(C,wG,BZ);if(rG){BZ=0;for(var WU=rG.length;BZ<WU;++BZ)if((jG=rG[BZ]).type===g.type&&jG.name===g.name){this.removeEventListener(jG.type,jG.listener,jG.capture);this.addEventListener(jG.type,jG.listener=wG,jG.capture=x);jG.value=C;return}}this.addEventListener(g.type,wG,x);jG={type:g.type,name:g.name,value:C,listener:wG,capture:x};rG?rG.push(jG):this.__on=[jG]}}
function Ha(g,C,x){var A=g.ownerDocument&&g.ownerDocument.defaultView||g.document&&g||g.defaultView,rG=A.CustomEvent;typeof rG==="function"?rG=new rG(C,x):(rG=A.document.createEvent("Event"),x?(rG.initEvent(C,x.bubbles,x.cancelable),rG.detail=x.detail):rG.initEvent(C,!1,!1));g.dispatchEvent(rG)}
function zZ(g,C){return function(){return Ha(this,g,C)}}
function qo(g,C){return function(){return Ha(this,g,C.apply(this,arguments))}}
function sS(g,C){this._groups=g;this._parents=C}
function ST(){return new sS([[document.documentElement]],lI1)}
function SP(){this._="@"+(++ZY$).toString(36)}
function y8(g,C,x){g.prototype=C.prototype=x;x.constructor=g}
function I$(g,C){g=Object.create(g.prototype);for(var x in C)g[x]=C[x];return g}
function Rm(){}
function q9(g){var C;g=(g+"").trim().toLowerCase();return(C=$79.exec(g))?(C=parseInt(C[1],16),new WR(C>>8&15|C>>4&240,C>>4&15|C&240,(C&15)<<4|C&15,1)):(C=k9S.exec(g))?Ba(parseInt(C[1],16)):(C=pbQ.exec(g))?new WR(C[1],C[2],C[3],1):(C=ysg.exec(g))?new WR(C[1]*255/100,C[2]*255/100,C[3]*255/100,1):(C=jP$.exec(g))?HF(C[1],C[2],C[3],C[4]):(C=CIu.exec(g))?HF(C[1]*255/100,C[2]*255/100,C[3]*255/100,C[4]):(C=n2B.exec(g))?Ch(C[1],C[2]/100,C[3]/100,1):(C=fIC.exec(g))?Ch(C[1],C[2]/100,C[3]/100,C[4]):fcr.hasOwnProperty(g)?
Ba(fcr[g]):g==="transparent"?new WR(NaN,NaN,NaN,0):null}
function Ba(g){return new WR(g>>16&255,g>>8&255,g&255,1)}
function HF(g,C,x,A){A<=0&&(g=C=x=NaN);return new WR(g,C,x,A)}
function HU(g){g instanceof Rm||(g=q9(g));if(!g)return new WR;g=g.rgb();return new WR(g.r,g.g,g.b,g.opacity)}
function kl(g,C,x,A){return arguments.length===1?HU(g):new WR(g,C,x,A==null?1:A)}
function WR(g,C,x,A){this.r=+g;this.g=+C;this.b=+x;this.opacity=+A}
function mf(g){g=Math.max(0,Math.min(255,Math.round(g)||0));return(g<16?"0":"")+g.toString(16)}
function Ch(g,C,x,A){A<=0?g=C=x=NaN:x<=0||x>=1?g=C=NaN:C<=0&&(g=NaN);return new Sh(g,C,x,A)}
function KP(g){if(g instanceof Sh)return new Sh(g.h,g.s,g.l,g.opacity);g instanceof Rm||(g=q9(g));if(!g)return new Sh;if(g instanceof Sh)return g;g=g.rgb();var C=g.r/255,x=g.g/255,A=g.b/255,rG=Math.min(C,x,A),wG=Math.max(C,x,A),BZ=NaN,jG=wG-rG,WU=(wG+rG)/2;jG?(BZ=C===wG?(x-A)/jG+(x<A)*6:x===wG?(A-C)/jG+2:(C-x)/jG+4,jG/=WU<.5?wG+rG:2-wG-rG,BZ*=60):jG=WU>0&&WU<1?0:BZ;return new Sh(BZ,jG,WU,g.opacity)}
function Pi(g,C,x,A){return arguments.length===1?KP(g):new Sh(g,C,x,A==null?1:A)}
function Sh(g,C,x,A){this.h=+g;this.s=+C;this.l=+x;this.opacity=+A}
function XY(g,C,x){return(g<60?C+(x-C)*g/60:g<180?x:g<240?C+(x-C)*(240-g)/60:C)*255}
function oM(g){if(g instanceof Zg)return new Zg(g.l,g.a,g.b,g.opacity);if(g instanceof GZ){if(isNaN(g.h))return new Zg(g.l,0,0,g.opacity);var C=g.h*gFD;return new Zg(g.l,Math.cos(C)*g.c,Math.sin(C)*g.c,g.opacity)}g instanceof WR||(g=HU(g));var x=rE(g.r),A=rE(g.g),rG=rE(g.b);C=x9(.2225045*x+.7168786*A+.0606169*rG);if(x===A&&A===rG)var wG=x=C;else wG=x9((.4360747*x+.3850649*A+.1430804*rG)/.96422),x=x9((.0139322*x+.0971045*A+.7141733*rG)/.82521);return new Zg(116*C-16,500*(wG-C),200*(C-x),g.opacity)}
function Zg(g,C,x,A){this.l=+g;this.a=+C;this.b=+x;this.opacity=+A}
function x9(g){return g>g2w?Math.pow(g,1/3):g/TJZ+JBr}
function KQ(g){return g>BE?g*g*g:TJZ*(g-JBr)}
function cU(g){return 255*(g<=.0031308?12.92*g:1.055*Math.pow(g,1/2.4)-.055)}
function rE(g){return(g/=255)<=.04045?g/12.92:Math.pow((g+.055)/1.055,2.4)}
function CO(g){if(g instanceof GZ)return new GZ(g.h,g.c,g.l,g.opacity);g instanceof Zg||(g=oM(g));if(g.a===0&&g.b===0)return new GZ(NaN,0,g.l,g.opacity);var C=Math.atan2(g.b,g.a)*xG8;return new GZ(C<0?C+360:C,Math.sqrt(g.a*g.a+g.b*g.b),g.l,g.opacity)}
function a$(g,C,x,A){return arguments.length===1?CO(g):new GZ(g,C,x,A==null?1:A)}
function GZ(g,C,x,A){this.h=+g;this.c=+C;this.l=+x;this.opacity=+A}
function uh(g,C,x,A){if(arguments.length===1){var rG=g;if(rG instanceof Bu)rG=new Bu(rG.h,rG.s,rG.l,rG.opacity);else{rG instanceof WR||(rG=HU(rG));var wG=rG.g/255,BZ=rG.b/255,jG=(Osk*BZ+rG.r/255*-1.7884503806-3.5172982438*wG)/(Osk+-1.7884503806-3.5172982438);BZ-=jG;var WU=(1.97294*(wG-jG)- -.29227*BZ)/-.90649;BZ=(wG=Math.sqrt(WU*WU+BZ*BZ)/(1.97294*jG*(1-jG)))?Math.atan2(WU,BZ)*xG8-120:NaN;rG=new Bu(BZ<0?BZ+360:BZ,wG,jG,rG.opacity)}}else rG=new Bu(g,C,x,A==null?1:A);return rG}
function Bu(g,C,x,A){this.h=+g;this.s=+C;this.l=+x;this.opacity=+A}
function un(g,C,x,A,rG){var wG=g*g,BZ=wG*g;return((1-3*g+3*wG-BZ)*C+(4-6*wG+3*BZ)*x+(1+3*g+3*wG-3*BZ)*A+BZ*rG)/6}
function Ry(g){return function(){return g}}
function Gy(g,C){return function(x){return g+x*C}}
function JE(g,C,x){return g=Math.pow(g,x),C=Math.pow(C,x)-g,x=1/x,function(A){return Math.pow(g+A*C,x)}}
function Je(g,C){var x=C-g;return x?Gy(g,x>180||x<-180?x-360*Math.round(x/360):x):Ry(isNaN(g)?C:g)}
function oG(g){return(g=+g)===1?Vm:function(C,x){return x-C?JE(C,x,g):Ry(isNaN(C)?x:C)}}
function Vm(g,C){var x=C-g;return x?Gy(g,x):Ry(isNaN(g)?C:g)}
function eN(g){return function(C){var x=C.length,A=Array(x),rG=Array(x),wG=Array(x),BZ;for(BZ=0;BZ<x;++BZ){var jG=kl(C[BZ]);A[BZ]=jG.r||0;rG[BZ]=jG.g||0;wG[BZ]=jG.b||0}A=g(A);rG=g(rG);wG=g(wG);jG.opacity=1;return function(WU){jG.r=A(WU);jG.g=rG(WU);jG.b=wG(WU);return jG+""}}}
function VK(g,C){return g=+g,C-=g,function(x){return g+C*x}}
function R$(g){return function(){return g}}
function hS(g){return function(C){return g(C)+""}}
function dE(g,C){var x=PS9.lastIndex=VA2.lastIndex=0,A,rG,wG,BZ=-1,jG=[],WU=[];g+="";for(C+="";(A=PS9.exec(g))&&(rG=VA2.exec(C));)(wG=rG.index)>x&&(wG=C.slice(x,wG),jG[BZ]?jG[BZ]+=wG:jG[++BZ]=wG),(A=A[0])===(rG=rG[0])?jG[BZ]?jG[BZ]+=rG:jG[++BZ]=rG:(jG[++BZ]=null,WU.push({i:BZ,x:VK(A,rG)})),x=VA2.lastIndex;x<C.length&&(wG=C.slice(x),jG[BZ]?jG[BZ]+=wG:jG[++BZ]=wG);return jG.length<2?WU[0]?hS(WU[0].x):R$(C):(C=WU.length,function(Az){for(var eP=0,Fb;eP<C;++eP)jG[(Fb=WU[eP]).i]=Fb.x(Az);return jG.join("")})}
function dR(g,C,x,A,rG,wG){var BZ,jG,WU;if(BZ=Math.sqrt(g*g+C*C))g/=BZ,C/=BZ;if(WU=g*x+C*A)x-=g*WU,A-=C*WU;if(jG=Math.sqrt(x*x+A*A))x/=jG,A/=jG,WU/=jG;g*A<C*x&&(g=-g,C=-C,WU=-WU,BZ=-BZ);return{translateX:rG,translateY:wG,rotate:Math.atan2(C,g)*MAN,skewX:Math.atan(WU)*MAN,scaleX:BZ,scaleY:jG}}
function LF(g,C,x,A){function rG(Az){return Az.length?Az.pop()+" ":""}
function wG(Az,eP,Fb,V8,wE,DQ){Az!==Fb||eP!==V8?(wE=wE.push("translate(",null,C,null,x),DQ.push({i:wE-4,x:VK(Az,Fb)},{i:wE-2,x:VK(eP,V8)})):(Fb||V8)&&wE.push("translate("+Fb+C+V8+x)}
function BZ(Az,eP,Fb,V8){Az!==eP?(Az-eP>180?eP+=360:eP-Az>180&&(Az+=360),V8.push({i:Fb.push(rG(Fb)+"rotate(",null,A)-2,x:VK(Az,eP)})):eP&&Fb.push(rG(Fb)+"rotate("+eP+A)}
function jG(Az,eP,Fb,V8){Az!==eP?V8.push({i:Fb.push(rG(Fb)+"skewX(",null,A)-2,x:VK(Az,eP)}):eP&&Fb.push(rG(Fb)+"skewX("+eP+A)}
function WU(Az,eP,Fb,V8,wE,DQ){Az!==Fb||eP!==V8?(wE=wE.push(rG(wE)+"scale(",null,",",null,")"),DQ.push({i:wE-4,x:VK(Az,Fb)},{i:wE-2,x:VK(eP,V8)})):Fb===1&&V8===1||wE.push(rG(wE)+"scale("+Fb+","+V8+")")}
return function(Az,eP){var Fb=[],V8=[];Az=g(Az);eP=g(eP);wG(Az.translateX,Az.translateY,eP.translateX,eP.translateY,Fb,V8);BZ(Az.rotate,eP.rotate,Fb,V8);jG(Az.skewX,eP.skewX,Fb,V8);WU(Az.scaleX,Az.scaleY,eP.scaleX,eP.scaleY,Fb,V8);Az=eP=null;return function(wE){for(var DQ=-1,xN=V8.length,B7;++DQ<xN;)Fb[(B7=V8[DQ]).i]=B7.x(wE);return Fb.join("")}}}
function cR(g){return function(C,x){var A=g((C=Pi(C)).h,(x=Pi(x)).h),rG=Vm(C.s,x.s),wG=Vm(C.l,x.l),BZ=Vm(C.opacity,x.opacity);return function(jG){C.h=A(jG);C.s=rG(jG);C.l=wG(jG);C.opacity=BZ(jG);return C+""}}}
function jj(g){return function(C,x){var A=g((C=a$(C)).h,(x=a$(x)).h),rG=Vm(C.c,x.c),wG=Vm(C.l,x.l),BZ=Vm(C.opacity,x.opacity);return function(jG){C.h=A(jG);C.c=rG(jG);C.l=wG(jG);C.opacity=BZ(jG);return C+""}}}
function Cn(g){return function A(x){function rG(wG,BZ){var jG=g((wG=uh(wG)).h,(BZ=uh(BZ)).h),WU=Vm(wG.s,BZ.s),Az=Vm(wG.l,BZ.l),eP=Vm(wG.opacity,BZ.opacity);return function(Fb){wG.h=jG(Fb);wG.s=WU(Fb);wG.l=Az(Math.pow(Fb,x));wG.opacity=eP(Fb);return wG+""}}
x=+x;rG.gamma=A;return rG}(1)}
function xI(){return RC||(sZh(U92),RC=mv.now()+cOL)}
function U92(){RC=0}
function Oy(){this._call=this._time=this._next=null}
function tI(g,C,x){var A=new Oy;A.restart(g,C,x);return A}
function bb(){RC=(vKS=mv.now())+cOL;oW=rI=0;try{xI();++oW;for(var g=GQS,C;g;)(C=RC-g._time)>=0&&g._call.call(null,C),g=g._next;--oW}finally{oW=0;g=GQS;for(var x=Infinity;g;)if(g._call){x>g._time&&(x=g._time);var A=g;g=g._next}else C=g._next,g._next=null,g=A?A._next=C:GQS=C;qx=A;mq(x);RC=0}}
function yv2(){var g=mv.now(),C=g-vKS;C>1E3&&(cOL-=C,vKS=g)}
function mq(g){oW||(rI&&(rI=clearTimeout(rI)),g-RC>24?(g<Infinity&&(rI=setTimeout(bb,g-mv.now()-cOL)),RF&&(RF=clearInterval(RF))):(RF||(vKS=mv.now(),RF=setInterval(yv2,1E3)),oW=1,sZh(bb)))}
function hDD(g,C,x){var A=new Oy;C=C==null?0:+C;A.restart(function(rG){A.stop();g(rG+C)},C,x);
return A}
function isZ(g,C,x,A,rG,wG){var BZ=g.__transition;if(!BZ)g.__transition={};else if(x in BZ)return;T2E(g,x,{name:C,index:A,group:rG,on:Jsw,tween:x7C,time:wG.time,delay:wG.delay,duration:wG.duration,ease:wG.ease,timer:null,state:0})}
function YUK(g,C){g=Wq(g,C);if(g.state>0)throw Error("te");return g}
function QU(g,C){g=Wq(g,C);if(g.state>2)throw Error("ue");return g}
function Wq(g,C){g=g.__transition;if(!g||!(g=g[C]))throw Error("ve");return g}
function T2E(g,C,x){function A(WU){var Az,eP;if(x.state!==1)return wG();for(V8 in BZ){var Fb=BZ[V8];if(Fb.name===x.name){if(Fb.state===3)return hDD(A);Fb.state===4?(Fb.state=6,Fb.timer.stop(),Fb.on.call("interrupt",g,g.__data__,Fb.index,Fb.group),delete BZ[V8]):+V8<C&&(Fb.state=6,Fb.timer.stop(),delete BZ[V8])}}hDD(function(){x.state===3&&(x.state=4,x.timer.restart(rG,x.delay,x.time),rG(WU))});
x.state=2;x.on.call("start",g,g.__data__,x.index,x.group);if(x.state===2){x.state=3;jG=Array(eP=x.tween.length);var V8=0;for(Az=-1;V8<eP;++V8)if(Fb=x.tween[V8].value.call(g,g.__data__,x.index,x.group))jG[++Az]=Fb;jG.length=Az+1}}
function rG(WU){WU=WU<x.duration?x.ease.call(null,WU/x.duration):(x.timer.restart(wG),x.state=5,1);for(var Az=-1,eP=jG.length;++Az<eP;)jG[Az].call(null,WU);x.state===5&&(x.on.call("end",g,g.__data__,x.index,x.group),wG())}
function wG(){x.state=6;x.timer.stop();delete BZ[C];for(var WU in BZ)return;delete g.__transition}
var BZ=g.__transition,jG;BZ[C]=x;x.timer=tI(function(WU){x.state=1;x.timer.restart(A,x.delay,x.time);x.delay<=WU&&A(WU-x.delay)},0,x.time)}
function OYw(g,C){var x,A;return function(){var rG=QU(this,g),wG=rG.tween;if(wG!==x){A=x=wG;wG=0;for(var BZ=A.length;wG<BZ;++wG)if(A[wG].name===C){A=A.slice();A.splice(wG,1);break}}rG.tween=A}}
function Mu$(g,C,x){var A,rG;if(typeof x!=="function")throw Error();return function(){var wG=QU(this,g),BZ=wG.tween;if(BZ!==A){rG=(A=BZ).slice();BZ={name:C,value:x};for(var jG=0,WU=rG.length;jG<WU;++jG)if(rG[jG].name===C){rG[jG]=BZ;break}jG===WU&&rG.push(BZ)}wG.tween=rG}}
function zDZ(g,C,x){var A=g._id;g.each(function(){var rG=QU(this,A);(rG.value||(rG.value={}))[C]=x.apply(this,arguments)});
return function(rG){return Wq(rG,A).value[C]}}
function Hsb(g,C){var x;return(typeof C==="number"?VK:C instanceof q9?KKr:(x=q9(C))?(C=x,KKr):dE)(g,C)}
function sPl(g){return function(){this.removeAttribute(g)}}
function hzw(g){return function(){this.removeAttributeNS(g.space,g.local)}}
function HYg(g,C,x){var A,rG;return function(){var wG=this.getAttribute(g);return wG===x?null:wG===A?rG:rG=C(A=wG,x)}}
function KcC(g,C,x){var A,rG;return function(){var wG=this.getAttributeNS(g.space,g.local);return wG===x?null:wG===A?rG:rG=C(A=wG,x)}}
function PI$(g,C,x){var A,rG,wG;return function(){var BZ=x(this);if(BZ==null)return void this.removeAttribute(g);var jG=this.getAttribute(g);return jG===BZ?null:jG===A&&BZ===rG?wG:wG=C(A=jG,rG=BZ)}}
function Vu1(g,C,x){var A,rG,wG;return function(){var BZ=x(this);if(BZ==null)return void this.removeAttributeNS(g.space,g.local);var jG=this.getAttributeNS(g.space,g.local);return jG===BZ?null:jG===A&&BZ===rG?wG:wG=C(A=jG,rG=BZ)}}
function iYu(g,C){function x(){var A=this,rG=C.apply(A,arguments);return rG&&function(wG){A.setAttributeNS(g.space,g.local,rG(wG))}}
x._value=C;return x}
function Yqw(g,C){function x(){var A=this,rG=C.apply(A,arguments);return rG&&function(wG){A.setAttribute(g,rG(wG))}}
x._value=C;return x}
function zzS(g,C){return function(){YUK(this,g).delay=+C.apply(this,arguments)}}
function U7U(g,C){return C=+C,function(){YUK(this,g).delay=C}}
function LcC(g,C){return function(){QU(this,g).duration=+C.apply(this,arguments)}}
function E2T(g,C){return C=+C,function(){QU(this,g).duration=C}}
function AsT(g,C){if(typeof C!=="function")throw Error();return function(){QU(this,g).ease=C}}
function N2U(g){return(g+"").trim().split(/^|\s+/).every(function(C){var x=C.indexOf(".");x>=0&&(C=C.slice(0,x));return!C||C==="start"})}
function d7g(g,C,x){var A,rG,wG=N2U(C)?YUK:QU;return function(){var BZ=wG(this,g),jG=BZ.on;if(jG!==A)(rG=(A=jG).copy()).on(C,x);BZ.on=rG}}
function W5M(g){return function(){var C=this.parentNode,x;for(x in this.__transition)if(+x!==g)return;C&&C.removeChild(this)}}
function eSw(g,C){var x,A,rG;return function(){var wG=CQ(this,g),BZ=(this.style.removeProperty(g),CQ(this,g));return wG===BZ?null:wG===x&&BZ===A?rG:rG=C(x=wG,A=BZ)}}
function tQS(g){return function(){this.style.removeProperty(g)}}
function bdw(g,C,x){var A,rG;return function(){var wG=CQ(this,g);return wG===x?null:wG===A?rG:rG=C(A=wG,x)}}
function mWw(g,C,x){var A,rG,wG;return function(){var BZ=CQ(this,g),jG=x(this);jG==null&&(jG=(this.style.removeProperty(g),CQ(this,g)));return BZ===jG?null:BZ===A&&jG===rG?wG:wG=C(A=BZ,rG=jG)}}
function rtT(g,C,x){function A(){var rG=this,wG=C.apply(rG,arguments);return wG&&function(BZ){rG.style.setProperty(g,wG(BZ),x)}}
A._value=C;return A}
function q8$(g){return function(){this.textContent=g}}
function RS$(g){return function(){var C=g(this);this.textContent=C==null?"":C}}
function wt(g,C,x,A){this._groups=g;this._parents=C;this._name=x;this._id=A}
function UGR(g){return{type:g}}
function LKG(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function D5G(){}
function PSv(g,C){var x=new D5G;if(g instanceof D5G)g.each(function(BZ,jG){x.set(jG,BZ)});
else if(Array.isArray(g)){var A=-1,rG=g.length,wG;if(C==null)for(;++A<rG;)x.set(A,g[A]);else for(;++A<rG;)x.set(C(wG=g[A],A,g),wG)}else if(g)for(A in g)x.set(A,g[A]);return x}
function S0L(){}
function VAe(g){return function(C){for(var x={},A=0;A<g.length;A++)x[g[A]]=C[A]||"";return x}}
function Qt1(g,C){var x=VAe(g);return function(A,rG){return C(x(A),rG,g)}}
function F5S(g){var C=Object.create(null),x=[];g.forEach(function(A){for(var rG in A)rG in C||x.push(C[rG]=rG)});
return x}
function isU(g){function C(BZ,jG){function WU(){if(DQ)return EFS;if(xN)return xN=!1,YU8;var p_,hE=Fb,Ng;if(BZ.charCodeAt(hE)===34){for(;Fb++<eP&&BZ.charCodeAt(Fb)!==34||BZ.charCodeAt(++Fb)===34;);(p_=Fb)>=eP?DQ=!0:(Ng=BZ.charCodeAt(Fb++))===10?xN=!0:Ng===13&&(xN=!0,BZ.charCodeAt(Fb)===10&&++Fb);return BZ.slice(hE+1,p_-1).replace(/""/g,'"')}for(;Fb<eP;){if((Ng=BZ.charCodeAt(p_=Fb++))===10)xN=!0;else if(Ng===13)xN=!0,BZ.charCodeAt(Fb)===10&&++Fb;else if(Ng!==wG)continue;return BZ.slice(hE,p_)}return DQ=
!0,BZ.slice(hE,eP)}
var Az=[],eP=BZ.length,Fb=0,V8=0,wE,DQ=eP<=0,xN=!1;BZ.charCodeAt(eP-1)===10&&--eP;for(BZ.charCodeAt(eP-1)===13&&--eP;(wE=WU())!==EFS;){for(var B7=[];wE!==YU8&&wE!==EFS;)B7.push(wE),wE=WU();jG&&(B7=jG(B7,V8++))==null||Az.push(B7)}return Az}
function x(BZ){return BZ.map(A).join(g)}
function A(BZ){return BZ==null?"":rG.test(BZ)?'"'+BZ.replace(/"/g,'""')+'"':BZ}
var rG=new RegExp('["'+g+"\n\r]"),wG=g.charCodeAt(0);return{parse:function(BZ,jG){var WU,Az;BZ=C(BZ,function(eP,Fb){if(WU)return WU(eP,Fb-1);Az=eP;WU=jG?Qt1(eP,jG):VAe(eP)});
BZ.columns=Az||[];return BZ},
parseRows:C,format:function(BZ,jG){jG==null&&(jG=F5S(BZ));return[jG.map(A).join(g)].concat(BZ.map(function(WU){return jG.map(function(Az){return A(WU[Az])}).join(g)})).join("\n")},
formatRows:function(BZ){return BZ.map(x).join("\n")}}}
function X9T(g){if(!g.ok)throw Error("we`"+g.status+"`"+g.statusText);return g.text()}
function zDU(g){return function(C,x,A){arguments.length===2&&typeof x==="function"&&(A=x,x=void 0);return fetch(C,x).then(X9T).then(function(rG){return g(rG,A)})}}
function UGy(g,C,x,A){if(isNaN(C)||isNaN(x))return g;var rG,wG=g._root;A={data:A};var BZ=g._x0,jG=g._y0,WU=g._x1,Az=g._y1,eP,Fb,V8,wE,DQ;if(!wG)return g._root=A,g;for(;wG.length;)if((V8=C>=(eP=(BZ+WU)/2))?BZ=eP:WU=eP,(wE=x>=(Fb=(jG+Az)/2))?jG=Fb:Az=Fb,rG=wG,!(wG=wG[DQ=wE<<1|V8]))return rG[DQ]=A,g;var xN=+g._x.call(null,wG.data);var B7=+g._y.call(null,wG.data);if(C===xN&&x===B7)return A.next=wG,rG?rG[DQ]=A:g._root=A,g;do rG=rG?rG[DQ]=Array(4):g._root=Array(4),(V8=C>=(eP=(BZ+WU)/2))?BZ=eP:WU=eP,(wE=
x>=(Fb=(jG+Az)/2))?jG=Fb:Az=Fb;while((DQ=wE<<1|V8)===(V8=(B7>=Fb)<<1|xN>=eP));return rG[V8]=wG,rG[DQ]=A,g}
function cw(g,C,x,A,rG){this.node=g;this.x0=C;this.y0=x;this.x1=A;this.y1=rG}
function Iu$(g){return g[0]}
function auT(g){return g[1]}
function ABS(g,C,x,A,rG,wG){this._x=g;this._y=C;this._x0=x;this._y0=A;this._x1=rG;this._y1=wG;this._root=void 0}
function LKP(g){for(var C={data:g.data},x=C;g=g.next;)x=x.next={data:g.data};return C}
function BP2(g,C){if((C=(g=C?g.toExponential(C-1):g.toExponential()).indexOf("e"))<0)return null;var x=g.slice(0,C);return[x.length>1?x[0]+x.slice(2):x,+g.slice(C+1)]}
function w9w(g){return g=BP2(Math.abs(g)),g?g[1]:NaN}
function uLl(g,C){return function(x,A){for(var rG=x.length,wG=[],BZ=0,jG=g[0],WU=0;rG>0&&jG>0;){WU+jG+1>A&&(jG=Math.max(1,A-WU));wG.push(x.substring(rG-=jG,rG+jG));if((WU+=jG+1)>A)break;jG=g[BZ=(BZ+1)%g.length]}return wG.reverse().join(C)}}
function ctu(g){return function(C){return C.replace(/[0-9]/g,function(x){return g[+x]})}}
function NJz(g){return new dGQ(g)}
function dGQ(g){if(!(C=vVl.exec(g)))throw Error("xe`"+g);var C;this.fill=C[1]||" ";this.align=C[2]||">";this.sign=C[3]||"-";this.symbol=C[4]||"";this.zero=!!C[5];this.width=C[6]&&+C[6];this.comma=!!C[7];this.precision=C[8]&&+C[8].slice(1);this.trim=!!C[9];this.type=C[10]||""}
function EFZ(g,C){C=BP2(g,C);if(!C)return g+"";g=C[0];C=C[1];return C<0?"0."+Array(-C).join("0")+g:g.length>C+1?g.slice(0,C+1)+"."+g.slice(C+1):g+Array(C-g.length+2).join("0")}
function ABZ(g){return g}
function GXT(g){function C(jG){function WU(zV){var Yw=Ng,jT=o5,ap,rl;if(hE==="c")jT=HX(zV)+jT,zV="";else{zV=+zV;var G1=zV<0;zV=HX(Math.abs(zV),B7);if(p_){var xK=zV.length,az=1,yf=-1;a:for(;az<xK;++az)switch(zV[az]){case ".":yf=ap=az;break;case "0":yf===0&&(yf=az);ap=az;break;default:if(!+zV[az])break a;yf>0&&(yf=0)}zV=yf>0?zV.slice(0,yf)+zV.slice(ap+1):zV}G1&&+zV===0&&(G1=!1);Yw=(G1?Fb==="("?Fb:"-":Fb==="-"||Fb==="("?"":Fb)+Yw;jT=(hE==="s"?NJk[8+dGr/3]:"")+jT+(G1&&Fb==="("?")":"");if(w6)for(G1=-1,
ap=zV.length;++G1<ap;)if(rl=zV.charCodeAt(G1),48>rl||rl>57){jT=(rl===46?rG+zV.slice(G1+1):zV.slice(G1))+jT;zV=zV.slice(0,G1);break}}xN&&!wE&&(zV=x(zV,Infinity));rl=Yw.length+zV.length+jT.length;G1=rl<DQ?Array(DQ-rl+1).join(Az):"";xN&&wE&&(zV=x(G1+zV,G1.length?DQ-jT.length:Infinity),G1="");switch(eP){case "<":zV=Yw+zV+jT+G1;break;case "=":zV=Yw+G1+zV+jT;break;case "^":zV=G1.slice(0,rl=G1.length>>1)+Yw+zV+jT+G1.slice(rl);break;default:zV=G1+Yw+zV+jT}return wG(zV)}
jG=NJz(jG);var Az=jG.fill,eP=jG.align,Fb=jG.sign,V8=jG.symbol,wE=jG.zero,DQ=jG.width,xN=jG.comma,B7=jG.precision,p_=jG.trim,hE=jG.type;hE==="n"?(xN=!0,hE="g"):WWB[hE]||(B7==null&&(B7=12),p_=!0,hE="g");if(wE||Az==="0"&&eP==="=")wE=!0,Az="0",eP="=";var Ng=V8==="$"?A[0]:V8==="#"&&/[boxX]/.test(hE)?"0"+hE.toLowerCase():"",o5=V8==="$"?A[1]:/[%p]/.test(hE)?BZ:"",HX=WWB[hE],w6=/[defgprs%]/.test(hE);B7=B7==null?6:/[gprs]/.test(hE)?Math.max(1,Math.min(21,B7)):Math.max(0,Math.min(20,B7));WU.toString=function(){return jG+
""};
return WU}
var x=g.grouping&&g.thousands?uLl(g.grouping,g.thousands):ABZ,A=g.currency,rG=g.decimal,wG=g.numerals?ctu(g.numerals):ABZ,BZ=g.percent||"%";return{format:C,formatPrefix:function(jG,WU){var Az=C((jG=NJz(jG),jG.type="f",jG));jG=Math.max(-8,Math.min(8,Math.floor(w9w(WU)/3)))*3;var eP=Math.pow(10,-jG),Fb=NJk[8+jG/3];return function(V8){return Az(eP*V8)+Fb}}}}
function El(){this.reset()}
function e9r(g,C,x){var A=g.s=C+x,rG=A-C;g.t=C-(A-rG)+(x-rG)}
function oKs(g){return g>1?Iw:g<-1?-Iw:Math.asin(g)}
function DW1(){}
function t3y(g){var C=g[0];g=g[1];var x=aw(g);return[x*aw(C),x*Ay(C),Ay(g)]}
function bxe(g,C){return[g[1]*C[2]-g[2]*C[1],g[2]*C[0]-g[0]*C[2],g[0]*C[1]-g[1]*C[0]]}
function mUS(g){var C=l2K(g[0]*g[0]+g[1]*g[1]+g[2]*g[2]);g[0]/=C;g[1]/=C;g[2]/=C}
function S89(){var g=[],C;return{point:function(x,A){C.push([x,A])},
lineStart:function(){g.push(C=[])},
lineEnd:DW1,rejoin:function(){g.length>1&&g.push(g.pop().concat(g.shift()))},
result:function(){var x=g;g=[];C=null;return x}}}
function ZhQ(g,C,x,A){this.x=g;this.z=C;this.o=x;this.e=A;this.v=!1;this.n=this.p=null}
function BjT(g,C,x,A,rG){var wG=[],BZ=[];g.forEach(function(Fb){if(!((V8=Fb.length-1)<=0)){var V8,wE=Fb[0],DQ=Fb[V8],xN=wE;if(uT(xN[0]-DQ[0])<1E-6&&uT(xN[1]-DQ[1])<1E-6){rG.lineStart();for(jG=0;jG<V8;++jG)rG.point((wE=Fb[jG])[0],wE[1]);rG.lineEnd()}else wG.push(V8=new ZhQ(wE,Fb,null,!0)),BZ.push(V8.o=new ZhQ(wE,null,V8,!1)),wG.push(V8=new ZhQ(DQ,Fb,null,!1)),BZ.push(V8.o=new ZhQ(DQ,null,V8,!0))}});
if(wG.length){BZ.sort(C);rXy(wG);rXy(BZ);var jG=0;for(g=BZ.length;jG<g;++jG)BZ[jG].e=x=!x;x=wG[0];for(var WU;;){for(var Az=x,eP=!0;Az.v;)if((Az=Az.n)===x)return;C=Az.z;rG.lineStart();do{Az.v=Az.o.v=!0;if(Az.e){if(eP)for(jG=0,g=C.length;jG<g;++jG)rG.point((WU=C[jG])[0],WU[1]);else A(Az.x,Az.n.x,1,rG);Az=Az.n}else{if(eP)for(C=Az.p.z,jG=C.length-1;jG>=0;--jG)rG.point((WU=C[jG])[0],WU[1]);else A(Az.x,Az.p.x,-1,rG);Az=Az.p}Az=Az.o;C=Az.z;eP=!eP}while(!Az.v);rG.lineEnd()}}}
function rXy(g){if(C=g.length){for(var C,x=0,A=g[0],rG;++x<C;)A.n=rG=g[x],rG.p=A,A=rG;A.n=rG=g[0];rG.p=A}}
function oVl(g){return g.length>1}
function luM(g,C){return((g=g.x)[0]<0?g[1]-Iw-1E-6:Iw-g[1])-((C=C.x)[0]<0?C[1]-Iw-1E-6:Iw-C[1])}
function WWG(){}
function q4B(g){return function(C,x){var A=aw(C),rG=aw(x);A=g(A*rG);return[A*rG*Ay(C),A*Ay(x)]}}
function Qs(g){return function(C,x){var A=l2K(C*C+x*x),rG=g(A),wG=Ay(rG);rG=aw(rG);return[R9r(C*wG,A*rG),oKs(A&&x*wG/A)]}}
function ZdE(g){var C=0,x=g.children,A=x&&x.length;if(A)for(;--A>=0;)C+=x[A].value;else C=1;g.value=C}
function QUU(g,C){var x=new Fo(g);g=+g.value&&(x.value=g.value);var A,rG=[x],wG,BZ,jG,WU;for(C==null&&(C=$WM);A=rG.pop();)if(g&&(A.value=+A.data.value),(BZ=C(A.data))&&(WU=BZ.length))for(A.children=Array(WU),jG=WU-1;jG>=0;--jG)rG.push(wG=A.children[jG]=new Fo(BZ[jG])),wG.parent=A,wG.depth=A.depth+1;return x.eachBefore(kXu)}
function $WM(g){return g.children}
function p9g(g){g.data=g.data.data}
function kXu(g){var C=0;do g.height=C;while((g=g.parent)&&g.height<++C)}
function Fo(g){this.data=g;this.depth=this.height=0;this.parent=null}
function iU(g,C,x,A){function rG(wG){return g(wG=new Date(+wG)),wG}
rG.floor=rG;rG.ceil=function(wG){return g(wG=new Date(wG-1)),C(wG,1),g(wG),wG};
rG.round=function(wG){var BZ=rG(wG),jG=rG.ceil(wG);return wG-BZ<jG-wG?BZ:jG};
rG.offset=function(wG,BZ){return C(wG=new Date(+wG),BZ==null?1:Math.floor(BZ)),wG};
rG.range=function(wG,BZ,jG){var WU=[],Az;wG=rG.ceil(wG);jG=jG==null?1:Math.floor(jG);if(!(wG<BZ&&jG>0))return WU;do WU.push(Az=new Date(+wG)),C(wG,jG),g(wG);while(Az<wG&&wG<BZ);return WU};
rG.filter=function(wG){return iU(function(BZ){if(BZ>=BZ)for(;g(BZ),!wG(BZ);)BZ.setTime(BZ-1)},function(BZ,jG){if(BZ>=BZ)if(jG<0)for(;++jG<=0;)for(;C(BZ,-1),!wG(BZ););
else for(;--jG>=0;)for(;C(BZ,1),!wG(BZ););})};
x&&(rG.count=function(wG,BZ){e9Q.setTime(+wG);t3R.setTime(+BZ);g(e9Q);g(t3R);return Math.floor(x(e9Q,t3R))},rG.every=function(wG){wG=Math.floor(wG);
return isFinite(wG)&&wG>0?wG>1?rG.filter(A?function(BZ){return A(BZ)%wG===0}:function(BZ){return rG.count(0,BZ)%wG===0}):rG:null});
return rG}
function FK(g){return iU(function(C){C.setDate(C.getDate()-(C.getDay()+7-g)%7);C.setHours(0,0,0,0)},function(C,x){C.setDate(C.getDate()+x*7)},function(C,x){return(x-C-(x.getTimezoneOffset()-C.getTimezoneOffset())*6E4)/6048E5})}
function XK(g){return iU(function(C){C.setUTCDate(C.getUTCDate()-(C.getUTCDay()+7-g)%7);C.setUTCHours(0,0,0,0)},function(C,x){C.setUTCDate(C.getUTCDate()+x*7)},function(C,x){return(x-C)/6048E5})}
function ytC(g){if(0<=g.y&&g.y<100){var C=new Date(-1,g.m,g.d,g.H,g.M,g.S,g.L);C.setFullYear(g.y);return C}return new Date(g.y,g.m,g.d,g.H,g.M,g.S,g.L)}
function $5G(g){if(0<=g.y&&g.y<100){var C=new Date(Date.UTC(-1,g.m,g.d,g.H,g.M,g.S,g.L));C.setUTCFullYear(g.y);return C}return new Date(Date.UTC(g.y,g.m,g.d,g.H,g.M,g.S,g.L))}
function Xo(g){return{y:g,m:0,d:1,H:0,M:0,S:0,L:0}}
function jt9(g){function C(jT,ap){return function(rl){var G1=[],xK=-1,az=0,yf=jT.length,em,Th;for(rl instanceof Date||(rl=new Date(+rl));++xK<yf;)if(jT.charCodeAt(xK)===37){G1.push(jT.slice(az,xK));(az=FWU[em=jT.charAt(++xK)])!=null?em=jT.charAt(++xK):az=em==="e"?" ":"0";if(Th=ap[em])em=Th(rl,az);G1.push(em);az=xK+1}G1.push(jT.slice(az,xK));return G1.join("")}}
function x(jT,ap){return function(rl){var G1=Xo(1900);if(A(G1,jT,rl,0)!=rl.length)return null;if("Q"in G1)return new Date(G1.Q);"p"in G1&&(G1.H=G1.H%12+G1.p*12);if("V"in G1){if(G1.V<1||G1.V>53)return null;"w"in G1||(G1.w=1);if("Z"in G1){rl=$5G(Xo(G1.y));var xK=rl.getUTCDay();rl=xK>4||xK===0?bx2.ceil(rl):bx2(rl);rl=XMk.offset(rl,(G1.V-1)*7);G1.y=rl.getUTCFullYear();G1.m=rl.getUTCMonth();G1.d=rl.getUTCDate()+(G1.w+6)%7}else rl=ap(Xo(G1.y)),xK=rl.getDay(),rl=xK>4||xK===0?mUL.ceil(rl):mUL(rl),rl=IJP.offset(rl,
(G1.V-1)*7),G1.y=rl.getFullYear(),G1.m=rl.getMonth(),G1.d=rl.getDate()+(G1.w+6)%7}else if("W"in G1||"U"in G1)"w"in G1||(G1.w="u"in G1?G1.u%7:"W"in G1?1:0),xK="Z"in G1?$5G(Xo(G1.y)).getUTCDay():ap(Xo(G1.y)).getDay(),G1.m=0,G1.d="W"in G1?(G1.w+6)%7+G1.W*7-(xK+5)%7:G1.w+G1.U*7-(xK+6)%7;return"Z"in G1?(G1.H+=G1.Z/100|0,G1.M+=G1.Z%100,$5G(G1)):ap(G1)}}
function A(jT,ap,rl,G1){for(var xK=0,az=ap.length,yf=rl.length,em;xK<az;){if(G1>=yf)return-1;em=ap.charCodeAt(xK++);if(em===37){if(em=ap.charAt(xK++),em=Yw[em in FWU?ap.charAt(xK++):em],!em||(G1=em(jT,rl,G1))<0)return-1}else if(em!=rl.charCodeAt(G1++))return-1}return G1}
var rG=g.dateTime,wG=g.date,BZ=g.time,jG=g.periods,WU=g.days,Az=g.shortDays,eP=g.months,Fb=g.shortMonths,V8=IF(jG),wE=aF(jG),DQ=IF(WU),xN=aF(WU),B7=IF(Az),p_=aF(Az),hE=IF(eP),Ng=aF(eP),o5=IF(Fb),HX=aF(Fb),w6={a:function(jT){return Az[jT.getDay()]},
A:function(jT){return WU[jT.getDay()]},
b:function(jT){return Fb[jT.getMonth()]},
B:function(jT){return eP[jT.getMonth()]},
c:null,d:aJS,e:aJS,f:CDE,H:nVE,I:ful,j:gVC,L:wMe,m:Tj$,M:Jtw,p:function(jT){return jG[+(jT.getHours()>=12)]},
Q:u8Z,s:cXy,S:xW9,u:OdM,U:MQB,V:stg,w:hSM,W:Hdg,x:null,X:null,y:K5T,Y:PD9,Z:VQu,"%":vGP},zV={a:function(jT){return Az[jT.getUTCDay()]},
A:function(jT){return WU[jT.getUTCDay()]},
b:function(jT){return Fb[jT.getUTCMonth()]},
B:function(jT){return eP[jT.getUTCMonth()]},
c:null,d:G08,e:G08,f:idC,H:Y8l,I:zSl,j:UWC,L:DUk,m:L5U,M:EV1,p:function(jT){return jG[+(jT.getUTCHours()>=12)]},
Q:u8Z,s:cXy,S:AtQ,u:NjC,U:dWQ,V:W6C,w:e1$,W:tFg,x:null,X:null,y:bV9,Y:m3B,Z:rnB,"%":vGP},Yw={a:function(jT,ap,rl){return(ap=B7.exec(ap.slice(rl)))?(jT.w=p_[ap[0].toLowerCase()],rl+ap[0].length):-1},
A:function(jT,ap,rl){return(ap=DQ.exec(ap.slice(rl)))?(jT.w=xN[ap[0].toLowerCase()],rl+ap[0].length):-1},
b:function(jT,ap,rl){return(ap=o5.exec(ap.slice(rl)))?(jT.m=HX[ap[0].toLowerCase()],rl+ap[0].length):-1},
B:function(jT,ap,rl){return(ap=hE.exec(ap.slice(rl)))?(jT.m=Ng[ap[0].toLowerCase()],rl+ap[0].length):-1},
c:function(jT,ap,rl){return A(jT,rG,ap,rl)},
d:S4y,e:S4y,f:qXU,H:Bfv,I:Bfv,j:R1u,L:QrC,m:F6C,M:Xql,p:function(jT,ap,rl){return(ap=V8.exec(ap.slice(rl)))?(jT.p=wE[ap[0].toLowerCase()],rl+ap[0].length):-1},
Q:IYS,s:aYg,S:wqg,u:upl,U:cnl,V:vrU,w:GD1,W:D3M,x:function(jT,ap,rl){return A(jT,wG,ap,rl)},
X:function(jT,ap,rl){return A(jT,BZ,ap,rl)},
y:SXB,Y:Buw,Z:orE,"%":lYC};w6.x=C(wG,w6);w6.X=C(BZ,w6);w6.c=C(rG,w6);zV.x=C(wG,zV);zV.X=C(BZ,zV);zV.c=C(rG,zV);return{format:function(jT){var ap=C(jT,w6);ap.toString=function(){return jT};
return ap},
parse:function(jT){var ap=x(jT,ytC);ap.toString=function(){return jT};
return ap},
utcFormat:function(jT){var ap=C(jT,zV);ap.toString=function(){return jT};
return ap},
utcParse:function(jT){var ap=x(jT,$5G);ap.toString=function(){return jT};
return ap}}}
function wP(g,C,x){var A=g<0?"-":"";g=(A?-g:g)+"";var rG=g.length;return A+(rG<x?Array(x-rG+1).join(C)+g:g)}
function ZVS(g){return g.replace($3g,"\\$&")}
function IF(g){return new RegExp("^(?:"+g.map(ZVS).join("|")+")","i")}
function aF(g){for(var C={},x=-1,A=g.length;++x<A;)C[g[x].toLowerCase()]=x;return C}
function GD1(g,C,x){return(C=d3.exec(C.slice(x,x+1)))?(g.w=+C[0],x+C[0].length):-1}
function upl(g,C,x){return(C=d3.exec(C.slice(x,x+1)))?(g.u=+C[0],x+C[0].length):-1}
function cnl(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.U=+C[0],x+C[0].length):-1}
function vrU(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.V=+C[0],x+C[0].length):-1}
function D3M(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.W=+C[0],x+C[0].length):-1}
function Buw(g,C,x){return(C=d3.exec(C.slice(x,x+4)))?(g.y=+C[0],x+C[0].length):-1}
function SXB(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.y=+C[0]+(+C[0]>68?1900:2E3),x+C[0].length):-1}
function orE(g,C,x){return(C=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(C.slice(x,x+6)))?(g.Z=C[1]?0:-(C[2]+(C[3]||"00")),x+C[0].length):-1}
function F6C(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.m=C[0]-1,x+C[0].length):-1}
function S4y(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.d=+C[0],x+C[0].length):-1}
function R1u(g,C,x){return(C=d3.exec(C.slice(x,x+3)))?(g.m=0,g.d=+C[0],x+C[0].length):-1}
function Bfv(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.H=+C[0],x+C[0].length):-1}
function Xql(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.M=+C[0],x+C[0].length):-1}
function wqg(g,C,x){return(C=d3.exec(C.slice(x,x+2)))?(g.S=+C[0],x+C[0].length):-1}
function QrC(g,C,x){return(C=d3.exec(C.slice(x,x+3)))?(g.L=+C[0],x+C[0].length):-1}
function qXU(g,C,x){return(C=d3.exec(C.slice(x,x+6)))?(g.L=Math.floor(C[0]/1E3),x+C[0].length):-1}
function lYC(g,C,x){return(g=kD9.exec(C.slice(x,x+1)))?x+g[0].length:-1}
function IYS(g,C,x){return(C=d3.exec(C.slice(x)))?(g.Q=+C[0],x+C[0].length):-1}
function aYg(g,C,x){return(C=d3.exec(C.slice(x)))?(g.Q=+C[0]*1E3,x+C[0].length):-1}
function aJS(g,C){return wP(g.getDate(),C,2)}
function nVE(g,C){return wP(g.getHours(),C,2)}
function ful(g,C){return wP(g.getHours()%12||12,C,2)}
function gVC(g,C){return wP(1+IJP.count(lP(g),g),C,3)}
function wMe(g,C){return wP(g.getMilliseconds(),C,3)}
function CDE(g,C){return wMe(g,C)+"000"}
function Tj$(g,C){return wP(g.getMonth()+1,C,2)}
function Jtw(g,C){return wP(g.getMinutes(),C,2)}
function xW9(g,C){return wP(g.getSeconds(),C,2)}
function OdM(g){g=g.getDay();return g===0?7:g}
function MQB(g,C){return wP(pqC.count(lP(g),g),C,2)}
function stg(g,C){var x=g.getDay();g=x>=4||x===0?rXR(g):rXR.ceil(g);return wP(rXR.count(lP(g),g)+(lP(g).getDay()===4),C,2)}
function hSM(g){return g.getDay()}
function Hdg(g,C){return wP(mUL.count(lP(g),g),C,2)}
function K5T(g,C){return wP(g.getFullYear()%100,C,2)}
function PD9(g,C){return wP(g.getFullYear()%1E4,C,4)}
function VQu(g){g=g.getTimezoneOffset();return(g>0?"-":(g*=-1,"+"))+wP(g/60|0,"0",2)+wP(g%60,"0",2)}
function G08(g,C){return wP(g.getUTCDate(),C,2)}
function Y8l(g,C){return wP(g.getUTCHours(),C,2)}
function zSl(g,C){return wP(g.getUTCHours()%12||12,C,2)}
function UWC(g,C){return wP(1+XMk.count(ZE(g),g),C,3)}
function DUk(g,C){return wP(g.getUTCMilliseconds(),C,3)}
function idC(g,C){return DUk(g,C)+"000"}
function L5U(g,C){return wP(g.getUTCMonth()+1,C,2)}
function EV1(g,C){return wP(g.getUTCMinutes(),C,2)}
function AtQ(g,C){return wP(g.getUTCSeconds(),C,2)}
function NjC(g){g=g.getUTCDay();return g===0?7:g}
function dWQ(g,C){return wP(ynE.count(ZE(g),g),C,2)}
function W6C(g,C){var x=g.getUTCDay();g=x>=4||x===0?q4G(g):q4G.ceil(g);return wP(q4G.count(ZE(g),g)+(ZE(g).getUTCDay()===4),C,2)}
function e1$(g){return g.getUTCDay()}
function tFg(g,C){return wP(bx2.count(ZE(g),g),C,2)}
function bV9(g,C){return wP(g.getUTCFullYear()%100,C,2)}
function m3B(g,C){return wP(g.getUTCFullYear()%1E4,C,4)}
function rnB(){return"+0000"}
function vGP(){return"%"}
function u8Z(g){return+g}
function cXy(g){return Math.floor(+g/1E3)}
function qY(g){for(var C=g.length/6|0,x=Array(C),A=0;A<C;)x[A]="#"+g.slice(A*6,++A*6);return x}
function O0(g){return jrl(g[g.length-1])}
function kQL(g){var C=g.length;return function(x){return g[Math.max(0,Math.min(C-1,Math.floor(x*C)))]}}
function oGS(g){this._context=g}
function lJv(g){this._curve=g}
function Zx8(g,C,x){var A=g._x1-g._x0;C-=g._x1;var rG=(g._y1-g._y0)/(A||C<0&&-0);g=(x-g._y1)/(C||A<0&&-0);return((rG<0?-1:1)+(g<0?-1:1))*Math.min(Math.abs(rG),Math.abs(g),.5*Math.abs((rG*C+g*A)/(A+C)))||0}
function $UN(g,C){var x=g._x1-g._x0;return x?(3*(g._y1-g._y0)/x-C)/2:C}
function R9Q(g,C,x){var A=g._x0,rG=g._x1,wG=g._y1,BZ=(rG-A)/3;g._context.bezierCurveTo(A+BZ,g._y0+BZ*C,rG-BZ,wG-BZ*x,rG,wG)}
function QUZ(g){this._context=g}
function k08(g){this._context=g}
function wI(g,C,x){this.k=g;this.x=C;this.y=x}
(function(g){g.length===1&&(g=e(g));return{left:function(C,x,A,rG){A==null&&(A=0);rG==null&&(rG=C.length);for(;A<rG;){var wG=A+rG>>>1;g(C[wG],x)<0?A=wG+1:rG=wG}return A},
right:function(C,x,A,rG){A==null&&(A=0);rG==null&&(rG=C.length);for(;A<rG;){var wG=A+rG>>>1;g(C[wG],x)>0?rG=wG:A=wG+1}return A}}})(W);
var o2w={value:function(){}};
b.prototype=t.prototype={constructor:b,on:function(g,C){var x=this._,A=m(g+"",x),rG,wG=-1,BZ=A.length;if(arguments.length<2)for(;++wG<BZ;){var jG;if(jG=rG=(g=A[wG]).type){a:{jG=x[rG];for(var WU=0,Az=jG.length;WU<Az;++WU)if((rG=jG[WU]).name===g.name){rG=rG.value;break a}rG=void 0}jG=rG}if(jG)return rG}else{if(C!=null&&typeof C!=="function")throw Error("ye`"+C);for(;++wG<BZ;)if(rG=(g=A[wG]).type)x[rG]=q(x[rG],g.name,C);else if(C==null)for(rG in x)x[rG]=q(x[rG],g.name,null);return this}},
copy:function(){var g={},C=this._,x;for(x in C)g[x]=C[x].slice();return new b(g)},
call:function(g,C){if((rG=arguments.length-2)>0)for(var x=Array(rG),A=0,rG,wG;A<rG;++A)x[A]=arguments[A+2];if(!this._.hasOwnProperty(g))throw Error("se`"+g);wG=this._[g];A=0;for(rG=wG.length;A<rG;++A)wG[A].value.apply(C,x)},
apply:function(g,C,x){if(!this._.hasOwnProperty(g))throw Error("se`"+g);g=this._[g];for(var A=0,rG=g.length;A<rG;++A)g[A].value.apply(C,x)}};
var XZ={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/"},pMh=function(g){return function(){return this.matches(g)}};
if(typeof document!=="undefined"){var u3=document.documentElement;if(!u3.matches){var Cjl=u3.webkitMatchesSelector||u3.msMatchesSelector||u3.mozMatchesSelector||u3.oMatchesSelector;pMh=function(g){return function(){return Cjl.call(this,g)}}}}var yXN=pMh;
B.prototype={constructor:B,appendChild:function(g){return this._parent.insertBefore(g,this._next)},
insertBefore:function(g,C){return this._parent.insertBefore(g,C)},
querySelector:function(g){return this._parent.querySelector(g)},
querySelectorAll:function(g){return this._parent.querySelectorAll(g)}};
var nFe={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(nFe={mouseenter:"mouseover",mouseleave:"mouseout"}));var lI1=[null];sS.prototype=ST.prototype={constructor:sS,select:function(g){typeof g!=="function"&&(g=v(g));for(var C=this._groups,x=C.length,A=Array(x),rG=0;rG<x;++rG)for(var wG=C[rG],BZ=wG.length,jG=A[rG]=Array(BZ),WU,Az,eP=0;eP<BZ;++eP)(WU=wG[eP])&&(Az=g.call(WU,WU.__data__,eP,wG))&&("__data__"in WU&&(Az.__data__=WU.__data__),jG[eP]=Az);return new sS(A,this._parents)},
filter:function(g){typeof g!=="function"&&(g=yXN(g));for(var C=this._groups,x=C.length,A=Array(x),rG=0;rG<x;++rG)for(var wG=C[rG],BZ=wG.length,jG=A[rG]=[],WU,Az=0;Az<BZ;++Az)(WU=wG[Az])&&g.call(WU,WU.__data__,Az,wG)&&jG.push(WU);return new sS(A,this._parents)},
data:function(g,C){if(!g)return wE=Array(this.size()),Az=-1,this.each(function(hE){wE[++Az]=hE}),wE;
var x=C?f:n,A=this._parents,rG=this._groups;typeof g!=="function"&&(g=k(g));for(var wG=rG.length,BZ=Array(wG),jG=Array(wG),WU=Array(wG),Az=0;Az<wG;++Az){var eP=A[Az],Fb=rG[Az],V8=Fb.length,wE=g.call(eP,eP&&eP.__data__,Az,A),DQ=wE.length,xN=jG[Az]=Array(DQ),B7=BZ[Az]=Array(DQ);V8=WU[Az]=Array(V8);x(eP,Fb,xN,B7,V8,wE,C);Fb=eP=0;for(var p_;eP<DQ;++eP)if(V8=xN[eP]){for(eP>=Fb&&(Fb=eP+1);!(p_=B7[Fb])&&++Fb<DQ;);V8._next=p_||null}}BZ=new sS(BZ,A);BZ._enter=jG;BZ._exit=WU;return BZ},
exit:function(){return new sS(this._exit||this._groups.map(D),this._parents)},
merge:function(g){var C=this._groups;g=g._groups;for(var x=C.length,A=Math.min(x,g.length),rG=Array(x),wG=0;wG<A;++wG)for(var BZ=C[wG],jG=g[wG],WU=BZ.length,Az=rG[wG]=Array(WU),eP,Fb=0;Fb<WU;++Fb)if(eP=BZ[Fb]||jG[Fb])Az[Fb]=eP;for(;wG<x;++wG)rG[wG]=C[wG];return new sS(rG,this._parents)},
order:function(){for(var g=this._groups,C=-1,x=g.length;++C<x;)for(var A=g[C],rG=A.length-1,wG=A[rG],BZ;--rG>=0;)if(BZ=A[rG])wG&&wG!==BZ.nextSibling&&wG.parentNode.insertBefore(BZ,wG),wG=BZ;return this},
sort:function(g){function C(Fb,V8){return Fb&&V8?g(Fb.__data__,V8.__data__):!Fb-!V8}
g||(g=M);for(var x=this._groups,A=x.length,rG=Array(A),wG=0;wG<A;++wG){for(var BZ=x[wG],jG=BZ.length,WU=rG[wG]=Array(jG),Az,eP=0;eP<jG;++eP)if(Az=BZ[eP])WU[eP]=Az;WU.sort(C)}return(new sS(rG,this._parents)).order()},
call:function(){var g=arguments[0];arguments[0]=this;g.apply(null,arguments);return this},
nodes:function(){var g=Array(this.size()),C=-1;this.each(function(){g[++C]=this});
return g},
node:function(){for(var g=this._groups,C=0,x=g.length;C<x;++C)for(var A=g[C],rG=0,wG=A.length;rG<wG;++rG){var BZ=A[rG];if(BZ)return BZ}return null},
size:function(){var g=0;this.each(function(){++g});
return g},
empty:function(){return!this.node()},
each:function(g){for(var C=this._groups,x=0,A=C.length;x<A;++x)for(var rG=C[x],wG=0,BZ=rG.length,jG;wG<BZ;++wG)(jG=rG[wG])&&g.call(jG,jG.__data__,wG,rG);return this},
attr:function(g,C){var x=Q(g);if(arguments.length<2){var A=this.node();return x.local?A.getAttributeNS(x.space,x.local):A.getAttribute(x)}return this.each((C==null?x.local?U:K:typeof C==="function"?x.local?RR:E:x.local?L:V)(x,C))},
style:function(g,C,x){return arguments.length>1?this.each((C==null?uv:typeof C==="function"?k9:GS)(g,C,x==null?"":x)):CQ(this.node(),g)},
property:function(g,C){return arguments.length>1?this.each((C==null?fQ:typeof C==="function"?hz:iv)(g,C)):this.node()[g]},
text:function(g){return arguments.length?this.each(g==null?ES:(typeof g==="function"?pr:Wu)(g)):this.node().textContent},
html:function(g){return arguments.length?this.each(g==null?ay:(typeof g==="function"?cu:PU)(g)):this.node().innerHTML},
append:function(g){var C=typeof g==="function"?g:u(g);return this.select(function(){return this.appendChild(C.apply(this,arguments))})},
insert:function(g,C){var x=typeof g==="function"?g:u(g),A=C==null?LQ:typeof C==="function"?C:v(C);return this.select(function(){return this.insertBefore(x.apply(this,arguments),A.apply(this,arguments)||null)})},
remove:function(){return this.each(sB)},
clone:function(g){return this.select(g?FD:z1)},
datum:function(g){return arguments.length?this.property("__data__",g):this.node().__data__},
on:function(g,C,x){var A=UB(g+""),rG=A.length,wG;if(arguments.length<2){var BZ=this.node().__on;if(BZ)for(var jG=0,WU=BZ.length,Az;jG<WU;++jG){var eP=0;for(Az=BZ[jG];eP<rG;++eP)if((wG=A[eP]).type===Az.type&&wG.name===Az.name)return Az.value}}else{BZ=C?US:ZD;x==null&&(x=!1);for(eP=0;eP<rG;++eP)this.each(BZ(A[eP],C,x));return this}},
dispatch:function(g,C){return this.each((typeof C==="function"?qo:zZ)(g,C))}};
var ZY$=0;SP.prototype=function(){return new SP}.prototype={constructor:SP,
get:function(g){for(var C=this._;!(C in g);)if(!(g=g.parentNode))return;return g[C]},
set:function(g,C){return g[this._]=C},
remove:function(g){return this._ in g&&delete g[this._]},
toString:function(){return this._}};
var $_=1/.7,$79=/^#([0-9a-f]{3})$/,k9S=/^#([0-9a-f]{6})$/,pbQ=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ysg=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),jP$=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),CIu=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*\\)$"),
n2B=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fIC=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*\\)$"),fcr={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};
y8(Rm,q9,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
y8(WR,kl,I$(Rm,{brighter:function(g){g=g==null?$_:Math.pow($_,g);return new WR(this.r*g,this.g*g,this.b*g,this.opacity)},
darker:function(g){g=g==null?.7:Math.pow(.7,g);return new WR(this.r*g,this.g*g,this.b*g,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"#"+mf(this.r)+mf(this.g)+mf(this.b)},
toString:function(){var g=this.opacity;g=isNaN(g)?1:Math.max(0,Math.min(1,g));return(g===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))+(g===1?")":", "+g+")")}}));
y8(Sh,Pi,I$(Rm,{brighter:function(g){g=g==null?$_:Math.pow($_,g);return new Sh(this.h,this.s,this.l*g,this.opacity)},
darker:function(g){g=g==null?.7:Math.pow(.7,g);return new Sh(this.h,this.s,this.l*g,this.opacity)},
rgb:function(){var g=this.h%360+(this.h<0)*360,C=this.l,x=C+(C<.5?C:1-C)*(isNaN(g)||isNaN(this.s)?0:this.s);C=2*C-x;return new WR(XY(g>=240?g-240:g+120,C,x),XY(g,C,x),XY(g<120?g+240:g-120,C,x),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var gFD=Math.PI/180,xG8=180/Math.PI,JBr=4/29,BE=6/29,TJZ=3*BE*BE,g2w=BE*BE*BE;y8(Zg,function(g,C,x,A){return arguments.length===1?oM(g):new Zg(g,C,x,A==null?1:A)},I$(Rm,{brighter:function(g){return new Zg(this.l+18*(g==null?1:g),this.a,this.b,this.opacity)},
darker:function(g){return new Zg(this.l-18*(g==null?1:g),this.a,this.b,this.opacity)},
rgb:function(){var g=(this.l+16)/116,C=isNaN(this.a)?g:g+this.a/500,x=isNaN(this.b)?g:g-this.b/200;C=.96422*KQ(C);g=1*KQ(g);x=.82521*KQ(x);return new WR(cU(3.1338561*C-1.6168667*g-.4906146*x),cU(-.9787684*C+1.9161415*g+.033454*x),cU(.0719453*C-.2289914*g+1.4052427*x),this.opacity)}}));
y8(GZ,a$,I$(Rm,{brighter:function(g){return new GZ(this.h,this.c,this.l+18*(g==null?1:g),this.opacity)},
darker:function(g){return new GZ(this.h,this.c,this.l-18*(g==null?1:g),this.opacity)},
rgb:function(){return oM(this).rgb()}}));
var Osk=1.78277*-.29227-.1347134789;y8(Bu,uh,I$(Rm,{brighter:function(g){g=g==null?$_:Math.pow($_,g);return new Bu(this.h,this.s,this.l*g,this.opacity)},
darker:function(g){g=g==null?.7:Math.pow(.7,g);return new Bu(this.h,this.s,this.l*g,this.opacity)},
rgb:function(){var g=isNaN(this.h)?0:(this.h+120)*gFD,C=+this.l,x=isNaN(this.s)?0:this.s*C*(1-C),A=Math.cos(g);g=Math.sin(g);return new WR(255*(C+x*(-.14861*A+1.78277*g)),255*(C+x*(-.29227*A+-.90649*g)),255*(C+1.97294*A*x),this.opacity)}}));
var KKr=function x(C){function A(wG,BZ){var jG=rG((wG=kl(wG)).r,(BZ=kl(BZ)).r),WU=rG(wG.g,BZ.g),Az=rG(wG.b,BZ.b),eP=Vm(wG.opacity,BZ.opacity);return function(Fb){wG.r=jG(Fb);wG.g=WU(Fb);wG.b=Az(Fb);wG.opacity=eP(Fb);return wG+""}}
var rG=oG(C);A.gamma=x;return A}(1),jrl=eN(function(C){var x=C.length-1;
return function(A){var rG=A<=0?A=0:A>=1?(A=1,x-1):Math.floor(A*x),wG=C[rG],BZ=C[rG+1];return un((A-rG/x)*x,rG>0?C[rG-1]:2*wG-BZ,wG,BZ,rG<x-1?C[rG+2]:2*BZ-wG)}});
eN(function(C){var x=C.length;return function(A){var rG=Math.floor(((A%=1)<0?++A:A)*x);return un((A-rG/x)*x,C[(rG+x-1)%x],C[rG%x],C[(rG+1)%x],C[(rG+2)%x])}});
var PS9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,VA2=new RegExp(PS9.source,"g"),MAN=180/Math.PI,FWZ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cc,XMz,jUP,pfR,nr$=LF(function(C){if(C==="none")return FWZ;cc||(cc=document.createElement("DIV"),XMz=document.documentElement,jUP=document.defaultView);cc.style.transform=C;C=jUP.getComputedStyle(XMz.appendChild(cc),null).getPropertyValue("transform");XMz.removeChild(cc);C=C.slice(7,-1).split(",");return dR(+C[0],+C[1],+C[2],+C[3],
+C[4],+C[5])},"px, ","px)","deg)"),fYC=LF(function(C){if(C==null)return FWZ;
pfR||(pfR=document.createElementNS("http://www.w3.org/2000/svg","g"));pfR.setAttribute("transform",C);if(!(C=pfR.transform.baseVal.consolidate()))return FWZ;C=C.matrix;return dR(C.a,C.b,C.c,C.d,C.e,C.f)},", ",")",")");
cR(Je);cR(Vm);jj(Je);jj(Vm);Cn(Je);var IJG=Cn(Vm),oW=0,rI=0,RF=0,GQS,qx,vKS=0,RC=0,cOL=0,mv=typeof performance==="object"&&performance.now?performance:Date,sZh=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};
Oy.prototype=tI.prototype={constructor:Oy,restart:function(C,x,A){if(typeof C!=="function")throw new TypeError("ze");A=(A==null?xI():+A)+(x==null?0:+x);this._next||qx===this||(qx?qx._next=this:GQS=this,qx=this);this._call=C;this._time=A;mq()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,mq())}};
var Jsw=t("start","end","interrupt"),x7C=[],gr$=ST.prototype.constructor,C$S=0,k_=ST.prototype;wt.prototype=function(C){return ST().transition(C)}.prototype={constructor:wt,
select:function(C){var x=this._name,A=this._id;typeof C!=="function"&&(C=v(C));for(var rG=this._groups,wG=rG.length,BZ=Array(wG),jG=0;jG<wG;++jG)for(var WU=rG[jG],Az=WU.length,eP=BZ[jG]=Array(Az),Fb,V8,wE=0;wE<Az;++wE)(Fb=WU[wE])&&(V8=C.call(Fb,Fb.__data__,wE,WU))&&("__data__"in Fb&&(V8.__data__=Fb.__data__),eP[wE]=V8,isZ(eP[wE],x,A,wE,eP,Wq(Fb,A)));return new wt(BZ,this._parents,x,A)},
filter:function(C){typeof C!=="function"&&(C=yXN(C));for(var x=this._groups,A=x.length,rG=Array(A),wG=0;wG<A;++wG)for(var BZ=x[wG],jG=BZ.length,WU=rG[wG]=[],Az,eP=0;eP<jG;++eP)(Az=BZ[eP])&&C.call(Az,Az.__data__,eP,BZ)&&WU.push(Az);return new wt(rG,this._parents,this._name,this._id)},
merge:function(C){if(C._id!==this._id)throw Error();var x=this._groups;C=C._groups;for(var A=x.length,rG=Math.min(A,C.length),wG=Array(A),BZ=0;BZ<rG;++BZ)for(var jG=x[BZ],WU=C[BZ],Az=jG.length,eP=wG[BZ]=Array(Az),Fb,V8=0;V8<Az;++V8)if(Fb=jG[V8]||WU[V8])eP[V8]=Fb;for(;BZ<A;++BZ)wG[BZ]=x[BZ];return new wt(wG,this._parents,this._name,this._id)},
selection:function(){return new gr$(this._groups,this._parents)},
transition:function(){for(var C=this._name,x=this._id,A=++C$S,rG=this._groups,wG=rG.length,BZ=0;BZ<wG;++BZ)for(var jG=rG[BZ],WU=jG.length,Az,eP=0;eP<WU;++eP)if(Az=jG[eP]){var Fb=Wq(Az,x);isZ(Az,C,A,eP,jG,{time:Fb.time+Fb.delay+Fb.duration,delay:0,duration:Fb.duration,ease:Fb.ease})}return new wt(rG,this._parents,C,A)},
call:k_.call,nodes:k_.nodes,node:k_.node,size:k_.size,empty:k_.empty,each:k_.each,on:function(C,x){var A=this._id;return arguments.length<2?Wq(this.node(),A).on.on(C):this.each(d7g(A,C,x))},
attr:function(C,x){var A=Q(C),rG=A==="transform"?fYC:Hsb;return this.attrTween(C,typeof x==="function"?(A.local?Vu1:PI$)(A,rG,zDZ(this,"attr."+C,x)):x==null?(A.local?hzw:sPl)(A):(A.local?KcC:HYg)(A,rG,x+""))},
attrTween:function(C,x){var A="attr."+C;if(arguments.length<2)return(A=this.tween(A))&&A._value;if(x==null)return this.tween(A,null);if(typeof x!=="function")throw Error();var rG=Q(C);return this.tween(A,(rG.local?iYu:Yqw)(rG,x))},
style:function(C,x,A){var rG=C==="transform"?nr$:Hsb;return x==null?this.styleTween(C,eSw(C,rG)).on("end.style."+C,tQS(C)):this.styleTween(C,typeof x==="function"?mWw(C,rG,zDZ(this,"style."+C,x)):bdw(C,rG,x+""),A)},
styleTween:function(C,x,A){var rG="style."+C;if(arguments.length<2)return(rG=this.tween(rG))&&rG._value;if(x==null)return this.tween(rG,null);if(typeof x!=="function")throw Error();return this.tween(rG,rtT(C,x,A==null?"":A))},
text:function(C){return this.tween("text",typeof C==="function"?RS$(zDZ(this,"text",C)):q8$(C==null?"":C+""))},
remove:function(){return this.on("end.remove",W5M(this._id))},
tween:function(C,x){var A=this._id;if(arguments.length<2){A=Wq(this.node(),A).tween;for(var rG=0,wG=A.length,BZ;rG<wG;++rG)if((BZ=A[rG]).name===C)return BZ.value;return null}return this.each((x==null?OYw:Mu$)(A,C,x))},
delay:function(C){var x=this._id;return arguments.length?this.each((typeof C==="function"?zzS:U7U)(x,C)):Wq(this.node(),x).delay},
duration:function(C){var x=this._id;return arguments.length?this.each((typeof C==="function"?LcC:E2T)(x,C)):Wq(this.node(),x).duration},
ease:function(C){var x=this._id;return arguments.length?this.each(AsT(x,C)):Wq(this.node(),x).ease}};
var aJL={time:null,delay:0,duration:250,ease:function(C){return((C*=2)<=1?C*C*C:(C-=2)*C*C+2)/2}};
ST.prototype.transition=function(C){var x;if(C instanceof wt){var A=C._id;C=C._name}else A=++C$S,(x=aJL).time=xI(),C=C==null?null:C+"";for(var rG=this._groups,wG=rG.length,BZ=0;BZ<wG;++BZ)for(var jG=rG[BZ],WU=jG.length,Az,eP=0;eP<WU;++eP)if(Az=jG[eP]){var Fb=Az,V8=C,wE=A,DQ=eP,xN=jG,B7;if(!(B7=x))a:{B7=void 0;for(var p_=A;!(B7=Az.__transition)||!(B7=B7[p_]);)if(!(Az=Az.parentNode)){B7=(aJL.time=xI(),aJL);break a}}isZ(Fb,V8,wE,DQ,xN,B7)}return new wt(rG,this._parents,C,A)};
["e","w"].map(UGR);["n","s"].map(UGR);"n e s w nw ne se sw".split(" ").map(UGR);LKG.prototype=function(){return new LKG}.prototype={constructor:LKG,
moveTo:function(C,x){this._+="M"+(this._x0=this._x1=+C)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(C,x){this._+="L"+(this._x1=+C)+","+(this._y1=+x)},
bezierCurveTo:function(C,x,A,rG,wG,BZ){this._+="C"+ +C+","+ +x+","+ +A+","+ +rG+","+(this._x1=+wG)+","+(this._y1=+BZ)},
rect:function(C,x,A,rG){this._+="M"+(this._x0=this._x1=+C)+","+(this._y0=this._y1=+x)+"h"+ +A+"v"+ +rG+"h"+-A+"Z"},
toString:function(){return this._}};
D5G.prototype=PSv.prototype={constructor:D5G,has:function(C){return" "+C in this},
get:function(C){return this[" "+C]},
set:function(C,x){this[" "+C]=x;return this},
remove:function(C){C=" "+C;return C in this&&delete this[C]},
clear:function(){for(var C in this)C[0]===" "&&delete this[C]},
keys:function(){var C=[],x;for(x in this)x[0]===" "&&C.push(x.slice(1));return C},
values:function(){var C=[],x;for(x in this)x[0]===" "&&C.push(this[x]);return C},
entries:function(){var C=[],x;for(x in this)x[0]===" "&&C.push({key:x.slice(1),value:this[x]});return C},
size:function(){var C=0,x;for(x in this)x[0]===" "&&++C;return C},
empty:function(){for(var C in this)if(C[0]===" ")return!1;return!0},
each:function(C){for(var x in this)x[0]===" "&&C(this[x],x.slice(1),this)}};
var IC=PSv.prototype;S0L.prototype=function(C,x){var A=new S0L;if(C instanceof S0L)C.each(function(BZ){A.add(BZ)});
else if(C){var rG=-1,wG=C.length;if(x==null)for(;++rG<wG;)A.add(C[rG]);else for(;++rG<wG;)A.add(x(C[rG],rG,C))}return A}.prototype={constructor:S0L,
has:IC.has,add:function(C){this[" "+C]=C;return this},
remove:IC.remove,clear:IC.clear,values:IC.keys,size:IC.size,empty:IC.empty,each:IC.each};var YU8={},EFS={},TuM=isU(",").parse,JnU=isU("\t").parse;zDU(TuM);zDU(JnU);var vw=function(C,x,A){x=new ABS(x==null?Iu$:x,A==null?auT:A,NaN,NaN,NaN,NaN);return C==null?x:x.addAll(C)}.prototype=ABS.prototype;
vw.copy=function(){var C=new ABS(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,A,rG;if(!x)return C;if(!x.length)return C._root=LKP(x),C;for(A=[{source:x,target:C._root=Array(4)}];x=A.pop();)for(var wG=0;wG<4;++wG)if(rG=x.source[wG])rG.length?A.push({source:rG,target:x.target[wG]=Array(4)}):x.target[wG]=LKP(rG);return C};
vw.add=function(C){var x=+this._x.call(null,C),A=+this._y.call(null,C);return UGy(this.cover(x,A),x,A,C)};
vw.addAll=function(C){var x,A,rG=C.length,wG,BZ,jG=Array(rG),WU=Array(rG),Az=Infinity,eP=Infinity,Fb=-Infinity,V8=-Infinity;for(A=0;A<rG;++A)isNaN(wG=+this._x.call(null,x=C[A]))||isNaN(BZ=+this._y.call(null,x))||(jG[A]=wG,WU[A]=BZ,wG<Az&&(Az=wG),wG>Fb&&(Fb=wG),BZ<eP&&(eP=BZ),BZ>V8&&(V8=BZ));Fb<Az&&(Az=this._x0,Fb=this._x1);V8<eP&&(eP=this._y0,V8=this._y1);this.cover(Az,eP).cover(Fb,V8);for(A=0;A<rG;++A)UGy(this,jG[A],WU[A],C[A]);return this};
vw.cover=function(C,x){if(isNaN(C=+C)||isNaN(x=+x))return this;var A=this._x0,rG=this._y0,wG=this._x1,BZ=this._y1;if(isNaN(A))wG=(A=Math.floor(C))+1,BZ=(rG=Math.floor(x))+1;else if(A>C||C>wG||rG>x||x>BZ){var jG=wG-A,WU=this._root,Az;switch(Az=(x<(rG+BZ)/2)<<1|C<(A+wG)/2){case 0:do{var eP=Array(4);eP[Az]=WU;WU=eP}while(jG*=2,wG=A+jG,BZ=rG+jG,C>wG||x>BZ);break;case 1:do eP=Array(4),eP[Az]=WU,WU=eP;while(jG*=2,A=wG-jG,BZ=rG+jG,A>C||x>BZ);break;case 2:do eP=Array(4),eP[Az]=WU,WU=eP;while(jG*=2,wG=A+jG,
rG=BZ-jG,C>wG||rG>x);break;case 3:do eP=Array(4),eP[Az]=WU,WU=eP;while(jG*=2,A=wG-jG,rG=BZ-jG,A>C||rG>x)}this._root&&this._root.length&&(this._root=WU)}else return this;this._x0=A;this._y0=rG;this._x1=wG;this._y1=BZ;return this};
vw.data=function(){var C=[];this.visit(function(x){if(!x.length){do C.push(x.data);while(x=x.next)}});
return C};
vw.extent=function(C){return arguments.length?this.cover(+C[0][0],+C[0][1]).cover(+C[1][0],+C[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
vw.find=function(C,x,A){var rG=this._x0,wG=this._y0,BZ,jG,WU,Az,eP=this._x1,Fb=this._y1,V8=[],wE=this._root,DQ;wE&&V8.push(new cw(wE,rG,wG,eP,Fb));A==null?A=Infinity:(rG=C-A,wG=x-A,eP=C+A,Fb=x+A,A*=A);for(;DQ=V8.pop();)if(!(!(wE=DQ.node)||(BZ=DQ.x0)>eP||(jG=DQ.y0)>Fb||(WU=DQ.x1)<rG||(Az=DQ.y1)<wG))if(wE.length){DQ=(BZ+WU)/2;var xN=(jG+Az)/2;V8.push(new cw(wE[3],DQ,xN,WU,Az),new cw(wE[2],BZ,xN,DQ,Az),new cw(wE[1],DQ,jG,WU,xN),new cw(wE[0],BZ,jG,DQ,xN));if(wE=(x>=xN)<<1|C>=DQ)DQ=V8[V8.length-1],V8[V8.length-
1]=V8[V8.length-1-wE],V8[V8.length-1-wE]=DQ}else if(DQ=C-+this._x.call(null,wE.data),xN=x-+this._y.call(null,wE.data),DQ=DQ*DQ+xN*xN,DQ<A){var B7=Math.sqrt(A=DQ);rG=C-B7;wG=x-B7;eP=C+B7;Fb=x+B7;B7=wE.data}return B7};
vw.remove=function(C){if(isNaN(Az=+this._x.call(null,C))||isNaN(eP=+this._y.call(null,C)))return this;var x,A=this._root,rG,wG=this._x0,BZ=this._y0,jG=this._x1,WU=this._y1,Az,eP,Fb,V8,wE,DQ,xN;if(!A)return this;if(A.length)for(;;){(wE=Az>=(Fb=(wG+jG)/2))?wG=Fb:jG=Fb;(DQ=eP>=(V8=(BZ+WU)/2))?BZ=V8:WU=V8;if(!(x=A,A=A[xN=DQ<<1|wE]))return this;if(!A.length)break;if(x[xN+1&3]||x[xN+2&3]||x[xN+3&3]){var B7=x;var p_=xN}}for(;A.data!==C;)if(!(rG=A,A=A.next))return this;(C=A.next)&&delete A.next;if(rG)return C?
rG.next=C:delete rG.next,this;if(!x)return this._root=C,this;C?x[xN]=C:delete x[xN];(A=x[0]||x[1]||x[2]||x[3])&&A===(x[3]||x[2]||x[1]||x[0])&&!A.length&&(B7?B7[p_]=A:this._root=A);return this};
vw.removeAll=function(C){for(var x=0,A=C.length;x<A;++x)this.remove(C[x]);return this};
vw.root=function(){return this._root};
vw.size=function(){var C=0;this.visit(function(x){if(!x.length){do++C;while(x=x.next)}});
return C};
vw.visit=function(C){var x=[],A,rG=this._root,wG,BZ,jG,WU,Az;for(rG&&x.push(new cw(rG,this._x0,this._y0,this._x1,this._y1));A=x.pop();)if(!C(rG=A.node,BZ=A.x0,jG=A.y0,WU=A.x1,Az=A.y1)&&rG.length){A=(BZ+WU)/2;var eP=(jG+Az)/2;(wG=rG[3])&&x.push(new cw(wG,A,eP,WU,Az));(wG=rG[2])&&x.push(new cw(wG,BZ,eP,A,Az));(wG=rG[1])&&x.push(new cw(wG,A,jG,WU,eP));(wG=rG[0])&&x.push(new cw(wG,BZ,jG,A,eP))}};
vw.visitAfter=function(C){var x=[],A=[],rG;for(this._root&&x.push(new cw(this._root,this._x0,this._y0,this._x1,this._y1));rG=x.pop();){var wG=rG.node;if(wG.length){var BZ,jG=rG.x0,WU=rG.y0,Az=rG.x1,eP=rG.y1,Fb=(jG+Az)/2,V8=(WU+eP)/2;(BZ=wG[0])&&x.push(new cw(BZ,jG,WU,Fb,V8));(BZ=wG[1])&&x.push(new cw(BZ,Fb,WU,Az,V8));(BZ=wG[2])&&x.push(new cw(BZ,jG,V8,Fb,eP));(BZ=wG[3])&&x.push(new cw(BZ,Fb,V8,Az,eP))}A.push(rG)}for(;rG=A.pop();)C(rG.node,rG.x0,rG.y0,rG.x1,rG.y1);return this};
vw.x=function(C){return arguments.length?(this._x=C,this):this._x};
vw.y=function(C){return arguments.length?(this._y=C,this):this._y};
var vVl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;NJz.prototype=dGQ.prototype;dGQ.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 dGr,WWB={"%":function(C,x){return(C*100).toFixed(x)},
b:function(C){return Math.round(C).toString(2)},
c:function(C){return C+""},
d:function(C){return Math.round(C).toString(10)},
e:function(C,x){return C.toExponential(x)},
f:function(C,x){return C.toFixed(x)},
g:function(C,x){return C.toPrecision(x)},
o:function(C){return Math.round(C).toString(8)},
p:function(C,x){return EFZ(C*100,x)},
r:EFZ,s:function(C,x){var A=BP2(C,x);if(!A)return C+"";var rG=A[0];A=A[1];A=A-(dGr=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1;var wG=rG.length;return A===wG?rG:A>wG?rG+Array(A-wG+1).join("0"):A>0?rG.slice(0,A)+"."+rG.slice(A):"0."+Array(1-A).join("0")+BP2(C,Math.max(0,x+A-1))[0]},
X:function(C){return Math.round(C).toString(16).toUpperCase()},
x:function(C){return Math.round(C).toString(16)}},NJk="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),x31;
(function(C){return x31=GXT(C)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});El.prototype={constructor:El,reset:function(){this.s=this.t=0},
add:function(C){e9r(yOZ,C,this.t);e9r(this,yOZ.s,this.s);this.s?this.t+=yOZ.t:this.s=yOZ.t},
valueOf:function(){return this.s}};
var yOZ=new El,wQ=Math.PI,Iw=wQ/2,nGe=wQ/4,OVg=wQ*2,wM2=wQ/180,uT=Math.abs,u8S=Math.atan,R9r=Math.atan2,aw=Math.cos,Ay=Math.sin,l2K=Math.sqrt;new El;new El;new El;var cXR=new El;(function(C,x,A,rG){return function(wG){function BZ(HX,w6){C(HX,w6)&&wG.point(HX,w6)}
function jG(HX,w6){wE.point(HX,w6)}
function WU(){o5.point=jG;wE.lineStart()}
function Az(){o5.point=BZ;wE.lineEnd()}
function eP(HX,w6){Ng.push([HX,w6]);xN.point(HX,w6)}
function Fb(){xN.lineStart();Ng=[]}
function V8(){eP(Ng[0][0],Ng[0][1]);xN.lineEnd();var HX=xN.clean(),w6=DQ.result(),zV=w6.length,Yw;Ng.pop();p_.push(Ng);Ng=null;if(zV)if(HX&1){if(zV=w6[0],(w6=zV.length-1)>0){B7||(wG.polygonStart(),B7=!0);wG.lineStart();for(HX=0;HX<w6;++HX)wG.point((Yw=zV[HX])[0],Yw[1]);wG.lineEnd()}}else zV>1&&HX&2&&w6.push(w6.pop().concat(w6.shift())),hE.push(w6.filter(oVl))}
var wE=x(wG),DQ=S89(),xN=x(DQ),B7=!1,p_,hE,Ng,o5={point:BZ,lineStart:WU,lineEnd:Az,polygonStart:function(){o5.point=eP;o5.lineStart=Fb;o5.lineEnd=V8;hE=[];p_=[]},
polygonEnd:function(){o5.point=BZ;o5.lineStart=WU;o5.lineEnd=Az;var HX=hE,w6=HX.length;var zV=-1;for(var Yw=0,jT,ap;++zV<w6;)Yw+=HX[zV].length;for(jT=Array(Yw);--w6>=0;)for(ap=HX[w6],zV=ap.length;--zV>=0;)jT[--Yw]=ap[zV];hE=jT;HX=p_;w6=rG[0];Yw=rG[1];var rl=Ay(Yw);zV=[Ay(w6),-aw(w6),0];ap=jT=0;cXR.reset();rl===1?Yw=Iw+1E-6:rl===-1&&(Yw=-Iw-1E-6);rl=0;for(var G1=HX.length;rl<G1;++rl)if(az=(xK=HX[rl]).length){var xK,az,yf=xK[az-1],em=yf[0],Th=yf[1]/2+nGe,jb9=Ay(Th),fJP=aw(Th);for(Th=0;Th<az;++Th,em=
vGG,jb9=gGB,fJP=vc,yf=Cpc){var Cpc=xK[Th],vGG=Cpc[0];vc=Cpc[1]/2+nGe;var gGB=Ay(vc),vc=aw(vc),pN=vGG-em,G0K=pN>=0?1:-1,DUz=G0K*pN,nKs=DUz>wQ;jb9*=gGB;cXR.add(R9r(jb9*G0K*Ay(DUz),fJP*vc+jb9*aw(DUz)));jT+=nKs?pN+G0K*OVg:pN;nKs^em>=w6^vGG>=w6&&(yf=bxe(t3y(yf),t3y(Cpc)),mUS(yf),em=bxe(zV,yf),mUS(em),em=(nKs^pN>=0?-1:1)*oKs(em[2]),Yw>em||Yw===em&&(yf[0]||yf[1]))&&(ap+=nKs^pN>=0?1:-1)}}HX=(jT<-1E-6||jT<1E-6&&cXR<-1E-6)^ap&1;hE.length?(B7||(wG.polygonStart(),B7=!0),BjT(hE,luM,HX,A,wG)):HX&&(B7||(wG.polygonStart(),
B7=!0),wG.lineStart(),A(null,null,1,wG),wG.lineEnd());B7&&(wG.polygonEnd(),B7=!1);hE=p_=null},
sphere:function(){wG.polygonStart();wG.lineStart();A(null,null,1,wG);wG.lineEnd();wG.polygonEnd()}};
return o5}})(function(){return!0},function(C){var x=NaN,A=NaN,rG=NaN,wG;
return{lineStart:function(){C.lineStart();wG=1},
point:function(BZ,jG){var WU=BZ>0?wQ:-wQ,Az=uT(BZ-x);if(uT(Az-wQ)<1E-6)C.point(x,A=(A+jG)/2>0?Iw:-Iw),C.point(rG,A),C.lineEnd(),C.lineStart(),C.point(WU,A),C.point(BZ,A),wG=0;else if(rG!==WU&&Az>=wQ){uT(x-rG)<1E-6&&(x-=rG*1E-6);uT(BZ-WU)<1E-6&&(BZ-=WU*1E-6);Az=x;var eP=A,Fb=BZ,V8,wE,DQ=Ay(Az-Fb);A=uT(DQ)>1E-6?u8S((Ay(eP)*(wE=aw(jG))*Ay(Fb)-Ay(jG)*(V8=aw(eP))*Ay(Az))/(V8*wE*DQ)):(eP+jG)/2;C.point(rG,A);C.lineEnd();C.lineStart();C.point(WU,A);wG=0}C.point(x=BZ,A=jG);rG=WU},
lineEnd:function(){C.lineEnd();x=A=NaN},
clean:function(){return 2-wG}}},function(C,x,A,rG){C==null?(A*=Iw,rG.point(-wQ,A),rG.point(0,A),rG.point(wQ,A),rG.point(wQ,0),rG.point(wQ,-A),rG.point(0,-A),rG.point(-wQ,-A),rG.point(-wQ,0),rG.point(-wQ,A)):uT(C[0]-x[0])>1E-6?(C=C[0]<x[0]?wQ:-wQ,A=A*C/2,rG.point(-C,A),rG.point(0,A),rG.point(C,A)):rG.point(x[0],x[1])},[-wQ,
-Iw]);new El;new El;new El;new El;WWG.prototype={constructor:WWG,point:function(C,x){this.stream.point(C,x)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
aw(30*wM2);(function(C){return function(x){var A=new WWG,rG;for(rG in C)A[rG]=C[rG];A.stream=x;return A}})({point:function(C,x){this.stream.point(C*wM2,x*wM2)}});
q4B(function(C){return l2K(2/(1+C))}).invert=Qs(function(C){return 2*oKs(C/2)});
q4B(function(C){return(C=C>1?0:C<-1?wQ:Math.acos(C))&&C/Ay(C)}).invert=Qs(function(C){return C});
l2K(3);Qs(u8S);Qs(oKs);Qs(function(C){return 2*u8S(C)});
Fo.prototype=QUU.prototype={constructor:Fo,count:function(){return this.eachAfter(ZdE)},
each:function(C){var x,A=[this],rG;do{var wG=A.reverse();for(A=[];x=wG.pop();)if(C(x),x=x.children){var BZ=0;for(rG=x.length;BZ<rG;++BZ)A.push(x[BZ])}}while(A.length);return this},
eachAfter:function(C){for(var x,A=[this],rG=[],wG,BZ;x=A.pop();)if(rG.push(x),x=x.children)for(wG=0,BZ=x.length;wG<BZ;++wG)A.push(x[wG]);for(;x=rG.pop();)C(x);return this},
eachBefore:function(C){for(var x,A=[this],rG;x=A.pop();)if(C(x),x=x.children)for(rG=x.length-1;rG>=0;--rG)A.push(x[rG]);return this},
sum:function(C){return this.eachAfter(function(x){for(var A=+C(x.data)||0,rG=x.children,wG=rG&&rG.length;--wG>=0;)A+=rG[wG].value;x.value=A})},
sort:function(C){return this.eachBefore(function(x){x.children&&x.children.sort(C)})},
path:function(C){var x=this;var A=x;var rG=C;if(A!==rG){var wG=A.ancestors(),BZ=rG.ancestors(),jG=null;A=wG.pop();for(rG=BZ.pop();A===rG;)jG=A,A=wG.pop(),rG=BZ.pop();A=jG}for(rG=[x];x!==A;)x=x.parent,rG.push(x);for(x=rG.length;C!==A;)rG.splice(x,0,C),C=C.parent;return rG},
ancestors:function(){for(var C=this,x=[C];C=C.parent;)x.push(C);return x},
links:function(){var C=this,x=[];C.each(function(A){A!==C&&x.push({source:A.parent,target:A})});
return x},
copy:function(){return QUU(this).eachBefore(p9g)}};
(function(C,x){this._=C;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(Fo.prototype);
var e9Q=new Date,t3R=new Date,Tfy=iU(function(){},function(C,x){C.setTime(+C+x)},function(C,x){return x-C});
Tfy.every=function(C){C=Math.floor(C);return isFinite(C)&&C>0?C>1?iU(function(x){x.setTime(Math.floor(x/C)*C)},function(x,A){x.setTime(+x+A*C)},function(x,A){return(A-x)/C}):Tfy:null};
iU(function(C){C.setTime(Math.floor(C/1E3)*1E3)},function(C,x){C.setTime(+C+x*1E3)},function(C,x){return(x-C)/1E3},function(C){return C.getUTCSeconds()});
iU(function(C){C.setTime(Math.floor(C/6E4)*6E4)},function(C,x){C.setTime(+C+x*6E4)},function(C,x){return(x-C)/6E4},function(C){return C.getMinutes()});
iU(function(C){var x=C.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);C.setTime(Math.floor((+C-x)/36E5)*36E5+x)},function(C,x){C.setTime(+C+x*36E5)},function(C,x){return(x-C)/36E5},function(C){return C.getHours()});
var IJP=iU(function(C){C.setHours(0,0,0,0)},function(C,x){C.setDate(C.getDate()+x)},function(C,x){return(x-C-(x.getTimezoneOffset()-C.getTimezoneOffset())*6E4)/864E5},function(C){return C.getDate()-1}),pqC=FK(0),mUL=FK(1);
FK(2);FK(3);var rXR=FK(4);FK(5);FK(6);iU(function(C){C.setDate(1);C.setHours(0,0,0,0)},function(C,x){C.setMonth(C.getMonth()+x)},function(C,x){return x.getMonth()-C.getMonth()+(x.getFullYear()-C.getFullYear())*12},function(C){return C.getMonth()});
var lP=iU(function(C){C.setMonth(0,1);C.setHours(0,0,0,0)},function(C,x){C.setFullYear(C.getFullYear()+x)},function(C,x){return x.getFullYear()-C.getFullYear()},function(C){return C.getFullYear()});
lP.every=function(C){return isFinite(C=Math.floor(C))&&C>0?iU(function(x){x.setFullYear(Math.floor(x.getFullYear()/C)*C);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,A){x.setFullYear(x.getFullYear()+A*C)}):null};
iU(function(C){C.setUTCSeconds(0,0)},function(C,x){C.setTime(+C+x*6E4)},function(C,x){return(x-C)/6E4},function(C){return C.getUTCMinutes()});
iU(function(C){C.setUTCMinutes(0,0,0)},function(C,x){C.setTime(+C+x*36E5)},function(C,x){return(x-C)/36E5},function(C){return C.getUTCHours()});
var XMk=iU(function(C){C.setUTCHours(0,0,0,0)},function(C,x){C.setUTCDate(C.getUTCDate()+x)},function(C,x){return(x-C)/864E5},function(C){return C.getUTCDate()-1}),ynE=XK(0),bx2=XK(1);
XK(2);XK(3);var q4G=XK(4);XK(5);XK(6);iU(function(C){C.setUTCDate(1);C.setUTCHours(0,0,0,0)},function(C,x){C.setUTCMonth(C.getUTCMonth()+x)},function(C,x){return x.getUTCMonth()-C.getUTCMonth()+(x.getUTCFullYear()-C.getUTCFullYear())*12},function(C){return C.getUTCMonth()});
var ZE=iU(function(C){C.setUTCMonth(0,1);C.setUTCHours(0,0,0,0)},function(C,x){C.setUTCFullYear(C.getUTCFullYear()+x)},function(C,x){return x.getUTCFullYear()-C.getUTCFullYear()},function(C){return C.getUTCFullYear()});
ZE.every=function(C){return isFinite(C=Math.floor(C))&&C>0?iU(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/C)*C);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,A){x.setUTCFullYear(x.getUTCFullYear()+A*C)}):null};
var FWU={"-":"",_:" ",0:"0"},d3=/^\s*\d+/,kD9=/^%/,$3g=/[\\^$*+?|[\]().{}]/g,f2K;(function(C){f2K=jt9(C);LZZ=f2K.utcFormat;Et8=f2K.utcParse;return f2K})({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||LZZ("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Et8("%Y-%m-%dT%H:%M:%S.%LZ");qY("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
qY("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");qY("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");qY("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");qY("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");qY("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");qY("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
qY("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");qY("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");qY("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");qY("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");qY("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MFg=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(qY);O0(MFg);var srl=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(qY);O0(srl);var h1g=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(qY);O0(h1g);var HVg=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(qY);
O0(HVg);var K6C=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(qY);O0(K6C);var PjT=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(qY);O0(PjT);var VFU=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(qY);O0(VFU);var iVl=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(qY);O0(iVl);var YXQ=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(qY);O0(YXQ);var z1C=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(qY);O0(z1C);var U3C=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(qY);O0(U3C);var L6Q=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(qY);O0(L6Q);var ErS=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(qY);O0(ErS);var Anw=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(qY);O0(Anw);var Nu$=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(qY);O0(Nu$);var d3w=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(qY);O0(d3w);var WD$=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(qY);O0(WD$);var e69=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(qY);O0(e69);var tou=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(qY);O0(tou);var bHS=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(qY);O0(bHS);var mRE=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(qY);O0(mRE);var rFC=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(qY);O0(rFC);var qxC=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(qY);O0(qxC);var R6g=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(qY);O0(R6g);var Q8g=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(qY);O0(Q8g);var FD1=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(qY);O0(FD1);var XhU=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(qY);O0(XhU);IJG(uh(300,.5,0),uh(-240,.5,1));IJG(uh(-100,.75,.35),uh(80,1.5,.8));IJG(uh(260,.75,.35),uh(80,1.5,.8));uh();kl();kQL(qY("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
kQL(qY("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
kQL(qY("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
kQL(qY("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
oGS.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(C,x){C=+C;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(C,x):this._context.moveTo(C,x);break;case 1:this._point=2;default:this._context.lineTo(C,x)}}};
(function(C){function x(A){return new lJv(C(A))}
x._curve=C;return x})(function(C){return new oGS(C)});
lJv.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(C,x){this._curve.point(x*Math.sin(C),x*-Math.cos(C))}};
QUZ.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:R9Q(this,this._t0,$UN(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(C,x){var A=NaN;C=+C;x=+x;if(C!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(C,x):this._context.moveTo(C,x);break;case 1:this._point=2;break;case 2:this._point=3;R9Q(this,$UN(this,A=Zx8(this,C,x)),A);break;default:R9Q(this,this._t0,A=Zx8(this,C,x))}this._x0=this._x1;this._x1=C;this._y0=this._y1;this._y1=x;this._t0=A}}};
(function(C){this._context=new k08(C)}.prototype=Object.create(QUZ.prototype)).point=function(C,x){QUZ.prototype.point.call(this,x,C)};
k08.prototype={moveTo:function(C,x){this._context.moveTo(x,C)},
closePath:function(){this._context.closePath()},
lineTo:function(C,x){this._context.lineTo(x,C)},
bezierCurveTo:function(C,x,A,rG,wG,BZ){this._context.bezierCurveTo(x,C,rG,A,BZ,wG)}};
wI.prototype={constructor:wI,scale:function(C){return C===1?this:new wI(this.k*C,this.x,this.y)},
translate:function(C,x){return C===0&x===0?this:new wI(this.k,this.x+this.k*C,this.y+this.k*x)},
apply:function(C){return[C[0]*this.k+this.x,C[1]*this.k+this.y]},
invert:function(C){return[(C[0]-this.x)/this.k,(C[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new wI(1,0,0);ukD=q9;XZ.svg=XZ.svg;XZ.xhtml=XZ.xhtml;XZ.xlink=XZ.xlink;XZ.xml=XZ.xml;XZ.xmlns=XZ.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 AcU="hammer_"+(Math.random()*1E6|0),NzB=function(){var W=document||document;if(!W[AcU]){var e=function(){(function(t,b,m,q){function Q(Zg,x9,KQ){return setTimeout(D(Zg,KQ),x9)}
function X(Zg,x9,KQ){return Array.isArray(Zg)?(I(Zg,KQ[x9],KQ),!0):!1}
function I(Zg,x9,KQ){var cU;if(Zg)if(Zg.forEach)Zg.forEach(x9,KQ);else if(Zg.length!==q){var rE=0;for(cU=Zg.length;rE<cU;rE++)x9.call(KQ,Zg[rE],rE,Zg)}else for(rE in Zg)Zg.hasOwnProperty(rE)&&x9.call(KQ,Zg[rE],rE,Zg)}
function u(Zg,x9,KQ){for(var cU=Object.keys(x9),rE=0,CO=cU.length;rE<CO;rE++)if(!KQ||KQ&&Zg[cU[rE]]===q)Zg[cU[rE]]=x9[cU[rE]];return Zg}
function c(Zg,x9){return u(Zg,x9,!0)}
function v(Zg,x9,KQ){x9=x9.prototype;var cU=Zg.prototype=Object.create(x9);cU.constructor=Zg;cU._super=x9;KQ&&u(cU,KQ)}
function D(Zg,x9){return function(){return Zg.apply(x9,arguments)}}
function B(Zg,x9){return typeof Zg=="function"?Zg.apply(x9?x9[0]||q:q,x9):Zg}
function k(Zg,x9,KQ){I(f(x9),function(cU){Zg.addEventListener(cU,KQ,!1)})}
function n(Zg,x9,KQ){I(f(x9),function(cU){Zg.removeEventListener(cU,KQ,!1)})}
function f(Zg){return Zg.trim().split(/\s+/g)}
function M(Zg,x9,KQ){if(Zg.indexOf&&!KQ)return Zg.indexOf(x9);for(var cU=0,rE=Zg.length;cU<rE;cU++)if(KQ&&Zg[cU][KQ]==x9||!KQ&&Zg[cU]===x9)return cU;return-1}
function K(Zg,x9,KQ){for(var cU=[],rE=[],CO=0,a$=Zg.length;CO<a$;CO++){var GZ=x9?Zg[CO][x9]:Zg[CO];M(rE,GZ)<0&&cU.push(Zg[CO]);rE[CO]=GZ}KQ&&(cU=x9?cU.sort(function(uh,Bu){return uh[x9]>Bu[x9]}):cU.sort());
return cU}
function U(Zg,x9){for(var KQ,cU=x9[0].toUpperCase()+x9.slice(1),rE=0,CO=qo.length;rE<CO;rE++)if(KQ=(KQ=qo[rE])?KQ+cU:x9,KQ in Zg)return KQ;return q}
function V(Zg,x9){var KQ=this;this.manager=Zg;this.callback=x9;this.element=Zg.element;this.target=Zg.options.inputTarget;this.domHandler=function(cU){B(Zg.options.enable,[Zg])&&KQ.handler(cU)};
this.evEl&&k(this.element,this.evEl,this.domHandler);this.evTarget&&k(this.target,this.evTarget,this.domHandler);this.evWin&&k(t,this.evWin,this.domHandler)}
function L(Zg){var x9;Ba?x9=iv:HF?x9=hz:q9?x9=ES:x9=fQ;return new x9(Zg,E)}
function E(Zg,x9,KQ){var cU=KQ.pointers.length,rE=KQ.changedPointers.length,CO=x9&1&&cU-rE===0;KQ.isFirst=!!CO;KQ.isFinal=!!(x9&12&&cU-rE===0);CO&&(Zg.session={});KQ.eventType=x9;x9=Zg.session;cU=KQ.pointers;rE=cU.length;x9.firstInput||(x9.firstInput=RR(KQ));rE>1&&!x9.firstMultiple?x9.firstMultiple=RR(KQ):rE===1&&(x9.firstMultiple=!1);CO=x9.firstInput;var a$=(rE=x9.firstMultiple)?rE.center:CO.center,GZ=KQ.center=uv(cU);KQ.timeStamp=y8();KQ.deltaTime=KQ.timeStamp-CO.timeStamp;KQ.angle=CQ(a$,GZ);KQ.distance=
k9(a$,GZ);CO=KQ.center;a$=x9.offsetDelta||{};GZ=x9.prevDelta||{};var uh=x9.prevInput||{};if(KQ.eventType===1||uh.eventType===4)GZ=x9.prevDelta={x:uh.deltaX||0,y:uh.deltaY||0},a$=x9.offsetDelta={x:CO.x,y:CO.y};KQ.deltaX=GZ.x+(CO.x-a$.x);KQ.deltaY=GZ.y+(CO.y-a$.y);KQ.offsetDirection=GS(KQ.deltaX,KQ.deltaY);rE?(CO=rE.pointers,CO=k9(cU[0],cU[1],kl)/k9(CO[0],CO[1],kl)):CO=1;KQ.scale=CO;rE?(rE=rE.pointers,cU=CQ(cU[1],cU[0],kl)-CQ(rE[1],rE[0],kl)):cU=0;KQ.rotation=cU;a$=x9.lastInterval||KQ;cU=KQ.timeStamp-
a$.timeStamp;KQ.eventType!=8&&(cU>25||a$.velocity===q)?(CO=a$.deltaX-KQ.deltaX,a$=a$.deltaY-KQ.deltaY,GZ=CO/cU||0,uh=a$/cU||0,cU=GZ,rE=uh,GZ=SP(GZ)>SP(uh)?GZ:uh,CO=GS(CO,a$),x9.lastInterval=KQ):(GZ=a$.velocity,cU=a$.velocityX,rE=a$.velocityY,CO=a$.direction);KQ.velocity=GZ;KQ.velocityX=cU;KQ.velocityY=rE;KQ.direction=CO;x9=Zg.element;a:{for(cU=KQ.srcEvent.target;cU;){if(cU==x9){cU=!0;break a}cU=cU.parentNode}cU=!1}cU&&(x9=KQ.srcEvent.target);KQ.target=x9;Zg.emit("hammer.input",KQ);Zg.recognize(KQ);
Zg.session.prevInput=KQ}
function RR(Zg){for(var x9=[],KQ=0;KQ<Zg.pointers.length;KQ++)x9[KQ]={clientX:ST(Zg.pointers[KQ].clientX),clientY:ST(Zg.pointers[KQ].clientY)};return{timeStamp:y8(),pointers:x9,center:uv(x9),deltaX:Zg.deltaX,deltaY:Zg.deltaY}}
function uv(Zg){var x9=Zg.length;if(x9===1)return{x:ST(Zg[0].clientX),y:ST(Zg[0].clientY)};for(var KQ=0,cU=0,rE=0;rE<x9;rE++)KQ+=Zg[rE].clientX,cU+=Zg[rE].clientY;return{x:ST(KQ/x9),y:ST(cU/x9)}}
function GS(Zg,x9){return Zg===x9?1:SP(Zg)>=SP(x9)?Zg>0?2:4:x9>0?8:16}
function k9(Zg,x9,KQ){KQ||(KQ=HU);var cU=x9[KQ[0]]-Zg[KQ[0]];Zg=x9[KQ[1]]-Zg[KQ[1]];return Math.sqrt(cU*cU+Zg*Zg)}
function CQ(Zg,x9,KQ){KQ||(KQ=HU);return Math.atan2(x9[KQ[1]]-Zg[KQ[1]],x9[KQ[0]]-Zg[KQ[0]])*180/Math.PI}
function fQ(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function iv(){this.evEl=KP;this.evWin=Pi;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function hz(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function ES(){V.apply(this,arguments);var Zg=D(this.handler,this);this.touch=new hz(this.manager,Zg);this.mouse=new fQ(this.manager,Zg)}
function Wu(Zg,x9){this.manager=Zg;this.set(x9)}
function pr(Zg){if(Zg.indexOf("none")>-1)return"none";var x9=Zg.indexOf("pan-x")>-1,KQ=Zg.indexOf("pan-y")>-1;return x9&&KQ?"pan-x pan-y":x9||KQ?x9?"pan-x":"pan-y":Zg.indexOf("manipulation")>-1?"manipulation":"auto"}
function ay(Zg){this.id=I$++;this.manager=null;this.options=c(Zg||{},this.defaults);Zg=this.options.enable;this.options.enable=Zg===q?!0:Zg;this.state=1;this.simultaneous={};this.requireFail=[]}
function PU(Zg){return Zg==16?"down":Zg==8?"up":Zg==2?"left":Zg==4?"right":""}
function cu(Zg,x9){return(x9=x9.manager)?x9.get(Zg):Zg}
function LQ(){ay.apply(this,arguments)}
function sB(){LQ.apply(this,arguments);this.pY=this.pX=null}
function z1(){LQ.apply(this,arguments)}
function FD(){ay.apply(this,arguments);this._input=this._timer=null}
function DD(){LQ.apply(this,arguments)}
function nr(){LQ.apply(this,arguments)}
function UB(){ay.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function ZD(Zg,x9){x9=x9||{};var KQ=x9.recognizers;x9.recognizers=KQ===q?ZD.defaults.preset:KQ;return new US(Zg,x9)}
function US(Zg,x9){x9=x9||{};this.options=c(x9,ZD.defaults);this.options.inputTarget=this.options.inputTarget||Zg;this.handlers={};this.session={};this.recognizers=[];this.element=Zg;this.input=L(this);this.touchAction=new Wu(this,this.options.touchAction);Ha(this,!0);I(x9.recognizers,function(KQ){var cU=this.add(new KQ[0](KQ[1]));KQ[2]&&cU.recognizeWith(KQ[2]);KQ[3]&&cU.requireFailure(KQ[2])},this)}
function Ha(Zg,x9){var KQ=Zg.element;I(Zg.options.cssProps,function(cU,rE){KQ.style[U(KQ.style,rE)]=x9?cU:""})}
function zZ(Zg,x9){var KQ=b.createEvent("Event");KQ.initEvent(Zg,!0,!0);KQ.gesture=x9;x9.target.dispatchEvent(KQ)}
var qo=" webkit moz MS ms o".split(" "),sS=b.createElement("div"),ST=Math.round,SP=Math.abs,y8=Date.now,I$=1,Rm=/mobile|tablet|ip(ad|hone|od)|android/i,q9="ontouchstart"in t,Ba=U(t,"PointerEvent")!==q,HF=q9&&Rm.test(navigator.userAgent),HU=["x","y"],kl=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&n(this.element,this.evEl,this.domHandler);this.evTarget&&n(this.target,this.evTarget,this.domHandler);this.evWin&&n(t,this.evWin,this.domHandler)}};
var WR={mousedown:1,mousemove:2,mouseup:4};v(fQ,V,{handler:function(Zg){var x9=WR[Zg.type];x9&1&&Zg.button===0&&(this.pressed=!0);x9&2&&Zg.which!==1&&(x9=4);this.pressed&&this.allow&&(x9&4&&(this.pressed=!1),this.callback(this.manager,x9,{pointers:[Zg],changedPointers:[Zg],pointerType:"mouse",srcEvent:Zg}))}});
var mf={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ch={2:"touch",3:"pen",4:"mouse",5:"kinect"},KP="pointerdown",Pi="pointermove pointerup pointercancel";t.MSPointerEvent&&(KP="MSPointerDown",Pi="MSPointerMove MSPointerUp MSPointerCancel");v(iv,V,{handler:function(Zg){var x9=this.store,KQ=!1,cU=Zg.type.toLowerCase().replace("ms","");cU=mf[cU];var rE=Ch[Zg.pointerType]||Zg.pointerType;cU&1&&(Zg.button===0||rE=="touch")?x9.push(Zg):cU&12&&(KQ=!0);var CO=M(x9,Zg.pointerId,"pointerId");
CO<0||(x9[CO]=Zg,this.callback(this.manager,cU,{pointers:x9,changedPointers:[Zg],pointerType:rE,srcEvent:Zg}),KQ&&x9.splice(CO,1))}});
var Sh={touchstart:1,touchmove:2,touchend:4,touchcancel:8};v(hz,V,{handler:function(Zg){var x9=Sh[Zg.type];var KQ=Array.prototype.slice.call(Zg.touches,0);var cU=this.targetIds;if(x9&3&&KQ.length===1)cU[KQ[0].identifier]=!0,cU=[KQ,KQ];else{var rE,CO=Array.prototype.slice.call(Zg.targetTouches,0),a$=Array.prototype.slice.call(Zg.changedTouches,0),GZ=[];if(x9===1)for(KQ=0,rE=CO.length;KQ<rE;KQ++)cU[CO[KQ].identifier]=!0;KQ=0;for(rE=a$.length;KQ<rE;KQ++)cU[a$[KQ].identifier]&&GZ.push(a$[KQ]),x9&12&&
delete cU[a$[KQ].identifier];cU=GZ.length?[K(CO.concat(GZ),"identifier",!0),GZ]:void 0}cU&&this.callback(this.manager,x9,{pointers:cU[0],changedPointers:cU[1],pointerType:"touch",srcEvent:Zg})}});
v(ES,V,{handler:function(Zg,x9,KQ){var cU=KQ.pointerType=="mouse";if(KQ.pointerType=="touch")this.mouse.allow=!1;else if(cU&&!this.mouse.allow)return;x9&12&&(this.mouse.allow=!0);this.callback(Zg,x9,KQ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var XY=U(sS.style,"touchAction"),oM=XY!==q;Wu.prototype={set:function(Zg){Zg=="compute"&&(Zg=this.compute());oM&&(this.manager.element.style[XY]=Zg);this.actions=Zg.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Zg=[];I(this.manager.recognizers,function(x9){B(x9.options.enable,[x9])&&(Zg=Zg.concat(x9.getTouchAction()))});
return pr(Zg.join(" "))},
preventDefaults:function(Zg){if(!oM){var x9=Zg.srcEvent;Zg=Zg.offsetDirection;if(this.manager.session.prevented)x9.preventDefault();else{var KQ=this.actions,cU=KQ.indexOf("none")>-1,rE=KQ.indexOf("pan-y")>-1;KQ=KQ.indexOf("pan-x")>-1;if(cU||rE&&KQ||rE&&Zg&6||KQ&&Zg&24)return this.preventSrc(x9)}}},
preventSrc:function(Zg){this.manager.session.prevented=!0;Zg.preventDefault()}};
ay.prototype={defaults:{},set:function(Zg){u(this.options,Zg);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Zg){if(X(Zg,"recognizeWith",this))return this;var x9=this.simultaneous;Zg=cu(Zg,this);x9[Zg.id]||(x9[Zg.id]=Zg,Zg.recognizeWith(this));return this},
dropRecognizeWith:function(Zg){if(X(Zg,"dropRecognizeWith",this))return this;Zg=cu(Zg,this);delete this.simultaneous[Zg.id];return this},
requireFailure:function(Zg){if(X(Zg,"requireFailure",this))return this;var x9=this.requireFail;Zg=cu(Zg,this);M(x9,Zg)===-1&&(x9.push(Zg),Zg.requireFailure(this));return this},
dropRequireFailure:function(Zg){if(X(Zg,"dropRequireFailure",this))return this;Zg=cu(Zg,this);Zg=M(this.requireFail,Zg);Zg>-1&&this.requireFail.splice(Zg,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Zg){return!!this.simultaneous[Zg.id]},
emit:function(Zg){function x9(rE){KQ.manager.emit(KQ.options.event+(rE?cU&16?"cancel":cU&8?"end":cU&4?"move":cU&2?"start":"":""),Zg)}
var KQ=this,cU=this.state;cU<8&&x9(!0);x9();cU>=8&&x9(!0)},
tryEmit:function(Zg){if(this.canEmit())return this.emit(Zg);this.state=32},
canEmit:function(){for(var Zg=0;Zg<this.requireFail.length;Zg++)if(!(this.requireFail[Zg].state&33))return!1;return!0},
recognize:function(Zg){Zg=u({},Zg);B(this.options.enable,[this,Zg])?(this.state&56&&(this.state=1),this.state=this.process(Zg),this.state&30&&this.tryEmit(Zg)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
v(LQ,ay,{defaults:{pointers:1},attrTest:function(Zg){var x9=this.options.pointers;return x9===0||Zg.pointers.length===x9},
process:function(Zg){var x9=this.state,KQ=Zg.eventType,cU=x9&6;Zg=this.attrTest(Zg);return cU&&(KQ&8||!Zg)?x9|16:cU||Zg?KQ&4?x9|8:x9&2?x9|4:2:32}});
v(sB,LQ,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Zg=this.options.direction;if(Zg===30)return["none"];var x9=[];Zg&6&&x9.push("pan-y");Zg&24&&x9.push("pan-x");return x9},
directionTest:function(Zg){var x9=this.options,KQ=!0,cU=Zg.distance,rE=Zg.direction,CO=Zg.deltaX,a$=Zg.deltaY;rE&x9.direction||(x9.direction&6?(rE=CO===0?1:CO<0?2:4,KQ=CO!=this.pX,cU=Math.abs(Zg.deltaX)):(rE=a$===0?1:a$<0?8:16,KQ=a$!=this.pY,cU=Math.abs(Zg.deltaY)));Zg.direction=rE;return KQ&&cU>x9.threshold&&rE&x9.direction},
attrTest:function(Zg){return LQ.prototype.attrTest.call(this,Zg)&&(this.state&2||!(this.state&2)&&this.directionTest(Zg))},
emit:function(Zg){this.pX=Zg.deltaX;this.pY=Zg.deltaY;var x9=PU(Zg.direction);x9&&this.manager.emit(this.options.event+x9,Zg);this._super.emit.call(this,Zg)}});
v(z1,LQ,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Zg){return this._super.attrTest.call(this,Zg)&&(Math.abs(Zg.scale-1)>this.options.threshold||this.state&2)},
emit:function(Zg){this._super.emit.call(this,Zg);Zg.scale!==1&&this.manager.emit(this.options.event+(Zg.scale<1?"in":"out"),Zg)}});
v(FD,ay,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Zg){var x9=this.options,KQ=Zg.pointers.length===x9.pointers,cU=Zg.distance<x9.threshold,rE=Zg.deltaTime>x9.time;this._input=Zg;if(!cU||!KQ||Zg.eventType&12&&!rE)this.reset();else if(Zg.eventType&1)this.reset(),this._timer=Q(function(){this.state=8;this.tryEmit()},x9.time,this);
else if(Zg.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Zg){this.state===8&&(Zg&&Zg.eventType&4?this.manager.emit(this.options.event+"up",Zg):(this._input.timeStamp=y8(),this.manager.emit(this.options.event,this._input)))}});
v(DD,LQ,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Zg){return this._super.attrTest.call(this,Zg)&&(Math.abs(Zg.rotation)>this.options.threshold||this.state&2)}});
v(nr,LQ,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return sB.prototype.getTouchAction.call(this)},
attrTest:function(Zg){var x9=this.options.direction;if(x9&30)var KQ=Zg.velocity;else x9&6?KQ=Zg.velocityX:x9&24&&(KQ=Zg.velocityY);return this._super.attrTest.call(this,Zg)&&x9&Zg.direction&&SP(KQ)>this.options.velocity&&Zg.eventType&4},
emit:function(Zg){var x9=PU(Zg.direction);x9&&this.manager.emit(this.options.event+x9,Zg);this.manager.emit(this.options.event,Zg)}});
v(UB,ay,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Zg){var x9=this.options,KQ=Zg.pointers.length===x9.pointers,cU=Zg.distance<x9.threshold,rE=Zg.deltaTime<x9.time;this.reset();if(Zg.eventType&1&&this.count===0)return this.failTimeout();if(cU&&rE&&KQ){if(Zg.eventType!=4)return this.failTimeout();KQ=this.pTime?Zg.timeStamp-this.pTime<x9.interval:!0;cU=!this.pCenter||k9(this.pCenter,Zg.center)<x9.posThreshold;this.pTime=Zg.timeStamp;this.pCenter=Zg.center;cU&&KQ?this.count+=1:this.count=1;this._input=Zg;if(this.count%x9.taps===0)return this.hasRequireFailures()?
(this._timer=Q(function(){this.state=8;this.tryEmit()},x9.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Q(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))}});
ZD.VERSION="2.0.2";ZD.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[DD,{enable:!1}],[z1,{enable:!1},["rotate"]],[nr,{direction:6}],[sB,{direction:6},["swipe"]],[UB],[UB,{event:"doubletap",taps:2},["tap"]],[FD]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};US.prototype={set:function(Zg){u(this.options,Zg);return this},
stop:function(Zg){this.session.stopped=Zg?2:1},
recognize:function(Zg){var x9=this.session;if(!x9.stopped){this.touchAction.preventDefaults(Zg);var KQ=this.recognizers,cU=x9.curRecognizer;if(!cU||cU&&cU.state&8)cU=x9.curRecognizer=null;for(var rE=0,CO=KQ.length;rE<CO;rE++){var a$=KQ[rE];x9.stopped===2||cU&&a$!=cU&&!a$.canRecognizeWith(cU)?a$.reset():a$.recognize(Zg);!cU&&a$.state&14&&(cU=x9.curRecognizer=a$)}}},
get:function(Zg){if(Zg instanceof ay)return Zg;for(var x9=this.recognizers,KQ=0;KQ<x9.length;KQ++)if(x9[KQ].options.event==Zg)return x9[KQ];return null},
add:function(Zg){if(X(Zg,"add",this))return this;var x9=this.get(Zg.options.event);x9&&this.remove(x9);this.recognizers.push(Zg);Zg.manager=this;this.touchAction.update();return Zg},
remove:function(Zg){if(X(Zg,"remove",this))return this;var x9=this.recognizers;Zg=this.get(Zg);x9.splice(M(x9,Zg),1);this.touchAction.update();return this},
on:function(Zg,x9){var KQ=this.handlers;I(f(Zg),function(cU){KQ[cU]=KQ[cU]||[];KQ[cU].push(x9)});
return this},
off:function(Zg,x9){var KQ=this.handlers;I(f(Zg),function(cU){x9?KQ[cU].splice(M(KQ[cU],x9),1):delete KQ[cU]});
return this},
emit:function(Zg,x9){this.options.domEvents&&zZ(Zg,x9);var KQ=this.handlers[Zg]&&this.handlers[Zg].slice();if(KQ&&KQ.length){x9.type=Zg;x9.preventDefault=function(){x9.srcEvent.preventDefault()};
Zg=0;for(var cU=KQ.length;Zg<cU;Zg++)KQ[Zg](x9)}},
destroy:function(){this.element&&Ha(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
u(ZD,{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:US,Input:V,TouchAction:Wu,Recognizer:ay,AttrRecognizer:LQ,Tap:UB,Pan:sB,Swipe:nr,Pinch:z1,Rotate:DD,Press:FD,on:k,off:n,each:I,merge:c,extend:u,inherit:v,bindFn:D,prefixed:U});
t[m]=ZD})(window,document,"Hammer");
return window.Hammer}.call({});
e.DOCUMENT=W;W[AcU]=e}return W[AcU]};/*

 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 dNb=function(W,e){if(W.length!==e.length)return!1;for(var t=0;t<W.length;++t)if(W[t]!==e[t])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var WuU=_.R(["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"]),eme=WuU.next();!eme.done;eme=WuU.next()){var tgb=eme.value,b4r=document.createElement("link");b4r.rel="stylesheet";b4r.href=tgb;document.head.appendChild(b4r)};var WcG,tug,m7R,AiG,ezL,N02,Lzs,EBR;WcG={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};tug={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:"*"};m7R={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};AiG=/[a-z0-9*]/;ezL=/U\+/;N02=/^arrow/;Lzs=/^space(bar)?/;EBR=/^escape$/;_.ZJ={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(W,e){this._imperativeKeyBindings[W]=e;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(W,e){e=qqZ(e);for(var t=0;t<e.length;++t)if(bYG(e[t],W))return!0;return!1},
_collectKeyBindings:function(){var W=this.behaviors.map(function(e){return e.keyBindings});
W.indexOf(this.keyBindings)===-1&&W.push(this.keyBindings);return W},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(t){for(var b in t)this._addKeyBinding(b,t[b])},this);
for(var W in this._imperativeKeyBindings)this._addKeyBinding(W,this._imperativeKeyBindings[W]);for(var e in this._keyBindings)this._keyBindings[e].sort(function(t,b){t=t[0].hasModifiers;return t===b[0].hasModifiers?0:t?-1:1})},
_addKeyBinding:function(W,e){qqZ(W).forEach(function(t){this._keyBindings[t.event]=this._keyBindings[t.event]||[];this._keyBindings[t.event].push([t,e])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(W){var e=this._onKeyBindingEvent.bind(this,this._keyBindings[W]);this._boundKeyHandlers.push([this.keyEventTarget,W,e]);this.keyEventTarget.addEventListener(W,e)},this)},
_unlistenKeyEventListeners:function(){for(var W,e,t;this._boundKeyHandlers.length;)W=this._boundKeyHandlers.pop(),e=W[0],t=W[1],W=W[2],e.removeEventListener(t,W)},
_onKeyBindingEvent:function(W,e){this.stopKeyboardEventPropagation&&e.stopPropagation();if(!e.defaultPrevented)for(var t=0;t<W.length;t++){var b=W[t][0],m=W[t][1];if(bYG(b,e)&&(this._triggerKeyHandler(b,m,e),e.defaultPrevented))break}},
_triggerKeyHandler:function(W,e,t){var b=Object.create(W);b.keyboardEvent=t;W=new CustomEvent(W.event,{detail:b,cancelable:!0});this[e].call(this,W);W.defaultPrevented&&t.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
*/
_.yQ({is:"iron-a11y-keys",_template:null,behaviors:[_.ZJ],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(W){this.keyEventTarget=W},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(W){this.fire("keys-pressed",W.detail,{})}});_.$G={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(W){this._setFocused(W.type==="focus")},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false");this.style.pointerEvents=W?"none":"";W?(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 kG={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(W){this._detectKeyboardFocus(W);W||this._setPressed(!1)},
_detectKeyboardFocus:function(W){this._setReceivedFocusFromKeyboard(!this.pointerDown&&W)},
_userActivate:function(W){this.active!==W&&(this.active=W,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(W){W=W.detail.keyboardEvent;var e=_.ZZ(W).localTarget;this.isLightDescendant(e)||(W.preventDefault(),W.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(W){W=_.ZZ(W.detail.keyboardEvent).localTarget;this.isLightDescendant(W)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(W,e){e&&e!=W&&this.hasAttribute(e)&&this.removeAttribute(e)},
_activeChanged:function(W){this.toggles?this.setAttribute(this.ariaActiveAttribute,W?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},mkb=[_.ZJ,
kG];_.px={IronButtonState:mkb,IronButtonStateImpl:kG};_.y6={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.j3=function(W){_.j3[" "](W);this.type=W&&W.type||"default";this.key=W&&W.key;W&&"value"in W&&(this.value=W.value)};
_.j3.prototype.byKey=function(W){this.key=W;return this.value};
_.Ec.Object.defineProperties(_.j3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W=this.type,e=this.key;if(W&&e)return Cx[W]&&Cx[W][e]},
set:function(W){var e=this.type,t=this.key;e&&t&&(e=Cx[e]=Cx[e]||{},W==null?delete e[t]:e[t]=W)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var W=Cx[this.type];return W?Object.keys(W).map(function(e){return Cx[this.type][e]},this):[]}}});
_.j3[" "]=function(){};
var Cx={};_.yQ({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(W,e,t){W=new _.j3({type:W,key:e});t!==void 0&&t!==W.value?W.value=t:this.value!==W.value&&(this.value=W.value);return W},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(W){W&&(this.value=this)},
byKey:function(W){return(new _.j3({type:this.type,key:W})).value}});var r_8;r_8=null;_.nx={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){r_8=new _.j3({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return r_8&&r_8.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(W){this.invalid=W===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(W);return!this.invalid},
_getValidity:function(W){return this.hasValidator()?this._validator.validate(W):!0}};var qDe={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"}},Rm8=[_.y6,
_.nx,qDe];_.yQ({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 _.j3({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(W){return this.name+":"+W},this)},
applyIcon:function(W,e){this.removeIcon(W);if(e=this._cloneIcon(e,this.rtlMirroring&&this._targetIsRTL(W))){var t=_.ZZ(W.root||W);t.insertBefore(e,t.childNodes[0]);return W._svgIcon=e}return null},
removeIcon:function(W){W._svgIcon&&(_.ZZ(W.root||W).removeChild(W._svgIcon),W._svgIcon=null)},
_targetIsRTL:function(W){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(W&&W.nodeType!==Node.ELEMENT_NODE&&(W=W.host),this.__targetIsRTL=W&&window.getComputedStyle(W).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 W=Object.create(null);_.ZZ(this).querySelectorAll("[id]").forEach(function(e){W[e.id]=e});
return W},
_cloneIcon:function(W,e){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[W],this.size,e)},
_prepareSvgClone:function(W,e,t){if(W){W=W.cloneNode(!0);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");e=W.getAttribute("viewBox")||"0 0 "+e+" "+e;var m="pointer-events: none; display: block; width: 100%; height: 100%;";t&&W.hasAttribute("mirror-in-rtl")&&(m+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");b.setAttribute("viewBox",e);b.setAttribute("preserveAspectRatio","xMidYMid meet");b.setAttribute("focusable","false");b.style&&(b.style.cssText=
m);b.appendChild(W).removeAttribute("id");return b}return null}});var QoN=function(W){this.multi=!1;this.selection=[];this.selectCallback=W};
_.r=QoN.prototype;_.r.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.r.clear=function(W){this.selection.slice().forEach(function(e){(!W||W.indexOf(e)<0)&&this.setItemSelected(e,!1)},this)};
_.r.isSelected=function(W){return this.selection.indexOf(W)>=0};
_.r.setItemSelected=function(W,e){if(W!=null&&e!==this.isSelected(W)){if(e)this.selection.push(W);else{var t=this.selection.indexOf(W);t>=0&&this.selection.splice(t,1)}this.selectCallback&&this.selectCallback(W,e)}};
_.r.select=function(W){this.multi?this.toggle(W):this.get()!==W&&(this.setItemSelected(this.get(),!1),this.setItemSelected(W,!0))};
_.r.toggle=function(W){this.setItemSelected(W,!this.isSelected(W))};_.PG={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 QoN(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.ZZ(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(W){return this.items?this.items.indexOf(W):-1},
select:function(W){this.selected=W},
selectPrevious:function(){var W=this.items.length,e=W-1;this.selected!==void 0&&(e=(Number(this._valueToIndex(this.selected))-1+W)%W);this.selected=this._indexToValue(e)},
selectNext:function(){var W=0;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(W)},
selectIndex:function(W){this.select(this._indexToValue(W))},
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(W){this.listen(this,W,"_activateHandler")},
_removeListener:function(W){this.unlisten(this,W,"_activateHandler")},
_activateEventChanged:function(W,e){this._removeListener(e);this._addListener(W)},
_updateItems:function(){var W=_.ZZ(this).queryDistributedElements(this.selectable||"*");W=Array.prototype.filter.call(W,this._bindFilterItem);this._setItems(W)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var W=this._valueToItem(this.selected);W?this._selection.select(W):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(W){return!this._excludedLocalNames[W.localName]},
_valueToItem:function(W){return W==null?null:this.items[this._valueToIndex(W)]},
_valueToIndex:function(W){if(this.attrForSelected)for(var e=0,t;t=this.items[e];e++){if(this._valueForItem(t)==W)return e}else return Number(W)},
_indexToValue:function(W){if(this.attrForSelected){if(W=this.items[W])return this._valueForItem(W)}else return W},
_valueForItem:function(W){if(!W)return null;if(!this.attrForSelected)return W=this.indexOf(W),W===-1?null:W;var e=W[RQ(this.attrForSelected)];return e!=void 0?e:W.getAttribute(this.attrForSelected)},
_applySelection:function(W,e){this.selectedClass&&this.toggleClass(this.selectedClass,e,W);this.selectedAttribute&&this.toggleAttribute.call(W,this.selectedAttribute,e);this._selectionChange();this.fire("iron-"+(e?"select":"deselect"),{item:W})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(W){return _.ZZ(W).observeNodes(function(e){this._updateItems();this._updateSelected();this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(W){W=W.target;for(var e=this.items;W&&W!=this;){var t=e.indexOf(W);if(t>=0){e=this._indexToValue(t);this._itemActivate(e,W);break}W=W.parentNode}},
_itemActivate:function(W,e){this.fire("iron-activate",{selected:W,item:e},{cancelable:!0}).defaultPrevented||this.select(W)}};var FuN={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(W){this.multi?this._toggleSelected(W):this.selected=W},
multiChanged:function(W){this._selection.multi=W;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(W){return this._indexToValue(this.indexOf(W))},this).filter(function(W){return W!=null},this)):_.PG._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(W){W=W||[];W=(this._valuesToItems(W)||[]).filter(function(t){return t!==null&&t!==void 0});
this._selection.clear(W);for(var e=0;e<W.length;e++)this._selection.setItemSelected(W[e],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var W=this._selection.get();this.multi?(this._setSelectedItems(W),this._setSelectedItem(W.length?W[0]:null)):W!==null&&W!==void 0?(this._setSelectedItems([W]),this._setSelectedItem(W)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(W){var e=this.selectedValues.indexOf(W);e<0?this.push("selectedValues",W):this.splice("selectedValues",e,1)},
_valuesToItems:function(W){return W==null?null:W.map(function(e){return this._valueToItem(e)},this)}},Xgb=[_.PG,
FuN];var Ijk;
_.fx={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(W){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var e=this._valueToItem(W);e&&e.hasAttribute("disabled")||(this._setFocusedItem(e),FuN.select.apply(this,arguments))},
_resetTabindices:function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(e){e.setAttribute("tabindex",e===W?"0":"-1");e.setAttribute("aria-selected",this._selection.isSelected(e))},this)},
_updateMultiselectable:function(W){W?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(W){if(this._MODIFIER_KEYS.indexOf(W.key)===-1){this.cancelDebouncer("_clearSearchText");var e=this._searchText||"";e+=(W.key&&W.key.length==1?W.key:String.fromCharCode(W.keyCode)).toLocaleLowerCase();W=e.length;for(var t=0,b;b=this.items[t];t++)if(!b.hasAttribute("disabled")){var m=this.attrForItemTitle||"textContent";m=(b[m]||b.getAttribute(m)||"").trim();if(!(m.length<W)&&m.slice(0,W).toLocaleLowerCase()==e){this._setFocusedItem(b);break}}this._searchText=e;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var W=this.items.length,e=Number(this.indexOf(this.focusedItem)),t=1;t<W+1;t++){var b=this.items[(e-t+W)%W];if(!b.hasAttribute("disabled")){var m=_.ZZ(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.ZZ(m).activeElement==b)break}}},
_focusNext:function(){for(var W=this.items.length,e=Number(this.indexOf(this.focusedItem)),t=1;t<W+1;t++){var b=this.items[(e+t)%W];if(!b.hasAttribute("disabled")){var m=_.ZZ(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.ZZ(m).activeElement==b)break}}},
_applySelection:function(W,e){e?W.setAttribute("aria-selected","true"):W.setAttribute("aria-selected","false");_.PG._applySelection.apply(this,arguments)},
_focusedItemChanged:function(W,e){e&&e.setAttribute("tabindex","-1");!W||W.hasAttribute("disabled")||this.disabled||(W.setAttribute("tabindex","0"),W.focus())},
_onIronItemsChanged:function(W){W.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");_.fx._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);_.fx._shiftTabPressed=!1},1)},
_onFocus:function(W){!_.fx._shiftTabPressed&&(W=_.ZZ(W).rootTarget,W===this||typeof W.tabIndex==="undefined"||this.isLightDescendant(W))&&(this._defaultFocusAsync=this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);e?this._setFocusedItem(e):this.items[0]&&this._focusNext()}))},
_onUpKey:function(W){this._focusPrevious();W.detail.keyboardEvent.preventDefault()},
_onDownKey:function(W){this._focusNext();W.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var W=this.focusedItem;W&&W.blur()},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down esc")||this._focusWithKeyboardEvent(W);W.stopPropagation()},
_activateHandler:function(W){_.PG._activateHandler.call(this,W);W.stopPropagation()},
_disabledChanged:function(W){W?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Ijk=[Xgb,_.ZJ,_.fx];_.ajN={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
_onDownKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(W){return W.ctrlKey||W.shiftKey||W.altKey||W.metaKey},
_onLeftKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),W.detail.keyboardEvent.preventDefault())},
_onRightKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),W.detail.keyboardEvent.preventDefault())},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down left right esc")||this._focusWithKeyboardEvent(W)}};
_.wgN=[Ijk,_.ajN];var u1B;u1B=new Set;_.gf={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):(u1B.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},this),this._fireResize())},
assignParentResizable:function(W){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=W)&&W._interestedResizables.indexOf(this)===-1&&(W._interestedResizables.push(this),W._subscribeIronResize(this))},
stopResizeNotificationsFor:function(W){var e=this._interestedResizables.indexOf(W);e>-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(W))},
_subscribeIronResize:function(W){W.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(W){W.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(W){this._notifyingDescendant?W.stopPropagation():xS||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(W){var e=_.ZZ(W).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),W.stopPropagation())},
_parentResizableChanged:function(W){W&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(W){this.isAttached&&(this._notifyingDescendant=!0,W.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var W=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function t(){document.removeEventListener("readystatechange",t);W()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(u1B.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?u1B.delete(this):u1B.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
*/
_.c_U={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(W,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);e&&(W==="document"?this.scrollTarget=this._doc:typeof W==="string"?this.scrollTarget=(e=this.domHost)&&e.$?e.$[W]:_.ZZ(this.ownerDocument).querySelector("#"+W):this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W)))},
_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(W){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
W)},set _scrollLeft(W){this.scrollTarget===this._doc?window.scrollTo(W,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=W)},scroll:function(W,e){if(typeof W==="object"){var t=W.left;e=W.top}else t=W;t=t||0;e=e||0;this.scrollTarget===this._doc?window.scrollTo(t,e):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t,this.scrollTarget.scrollTop=e)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(W,e){e=e===this._doc?window:e;W?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),e.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(e.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(W){this._shouldHaveListener=W;this._toggleScrollListener(W,this.scrollTarget)}};_.yQ({is:"iron-selector",_template:null,behaviors:[Xgb]});var T0={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(W){if(W.timing)for(var e in W.timing)this.animationTiming[e]=W.timing[e];return this.animationTiming},
setPrefixedProperty:function(W,e,t){for(var b={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[e],m,q=0;m=b[q];q++)W.style[m]=t;W.style[e]=t},
complete:function(){}};_.yQ({is:"fade-in-animation",_template:null,behaviors:[T0],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(W))}});_.yQ({is:"fade-out-animation",_template:null,behaviors:[T0],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(W))}});var v5o=[{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(W,e){for(var t in e)W[t]=e[t]},
_cloneConfig:function(W){var e={isClone:!0};this._copyProperties(e,W);return e},
_getAnimationConfigRecursive:function(W,e,t){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var b=W?this.animationConfig[W]:this.animationConfig;Array.isArray(b)||(b=[b]);if(b)for(var m,q=0;m=b[q];q++)if(m.animatable)m.animatable._getAnimationConfigRecursive(m.type||W,e,t);else if(m.id){var Q=e[m.id];
Q?(Q.isClone||(e[m.id]=this._cloneConfig(Q),Q=e[m.id]),this._copyProperties(Q,m)):e[m.id]=m}else t.push(m)}},
getAnimationConfig:function(W){var e={},t=[];this._getAnimationConfigRecursive(W,e,t);for(var b in e)t.push(e[b]);return t}},
{_configureAnimations:function(W){var e=[],t=[];if(W.length>0)for(var b,m=0;b=W[m];m++){var q=document.createElement(b.name);if(q.isNeonAnimation){var Q=null;q.configure||(q.configure=function(){return null});
Q=q.configure(b);t.push({result:Q,config:b})}else console.warn(this.is+":",b.name,"not found!")}for(W=0;W<t.length;W++){Q=t[W].result;b=t[W].config;try{typeof Q.cancel!="function"&&(Q=document.timeline.play(Q))}catch(X){Q=null,console.warn("Couldnt play","(",b.name,").",X)}Q&&e.push({neonAnimation:q,config:b,animation:Q})}return e},
_shouldComplete:function(W){for(var e=!0,t=0;t<W.length;t++)if(W[t].animation.playState!="finished"){e=!1;break}return e},
_complete:function(W){for(var e=0;e<W.length;e++)W[e].neonAnimation.complete(W[e].config);for(e=0;e<W.length;e++)W[e].animation.cancel()},
playAnimation:function(W,e){var t=this.getAnimationConfig(W);if(t){this._active=this._active||{};this._active[W]&&(this._complete(this._active[W]),delete this._active[W]);var b=this._configureAnimations(t);if(b.length==0)this.fire("neon-animation-finish",e,{bubbles:!1});else for(this._active[W]=b,t=0;t<b.length;t++)b[t].animation.onfinish=function(){this._shouldComplete(b)&&(this._complete(b),delete this._active[W],this.fire("neon-animation-finish",e,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var W in this._active){var e=this._active[W],t;for(t in e)e[t].animation&&e[t].animation.cancel&&e[t].animation.cancel()}this._active={}}}];var aB=function(W,e){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.arg=e;this.name=this.constructor.name;this.constructor=aB;this.__proto__=aB.prototype};
_.Z(aB,Error);var GfP=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e.prototype._marshalArgs=function(t,b,m){b=W.prototype._marshalArgs.call(this,t,b,m);if(this._legacyUndefinedCheck&&b.length>1)for(m=0;m<b.length;m++)if(b[m]===void 0||t[m].wildcard&&b[m].base===void 0)throw t=t[m].name,new aB("Argument '"+t+"' is undefined.",t);return b};
e.prototype._addPropertyEffect=function(t,b,m){return W.prototype._addPropertyEffect.call(this,t,b,RzL(m,m&&m.info&&m.info.methodName))};
e._addTemplatePropertyEffect=function(t,b,m){return W._addTemplatePropertyEffect.call(this,t,b,RzL(m))};
return e}),DkU=_.yQ.Class;
_.yQ.Class=function(W,e){return DkU(W,function(t){return e?e(GfP(t)):GfP(t)})};
var SDe=Aq(function(W){var e=GfP(W);W=function(){return e.apply(this,arguments)||this};
_.Z(W,e);_.Ec.Object.defineProperties(W.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return W}),BAP=Mn.mixin;
Mn.mixin=BAP?function(W){return SDe(BAP(W))}:SDe;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.JX=_.px.IronButtonState;var EIL=JA;/*

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 ljb;_.o5S="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");ljb=function(){var W=[],e;var t=t||_.o5S.length;for(e=0;e<8;e++)W[e]=_.o5S[0|Math.random()*t];return W.join("")};var IIS=function(){return Math.random().toString(36).substring(7).split("").join(".")},XbD="@@redux/INIT"+IIS(),uiK="@@redux/REPLACE"+IIS();var csG=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Z4h=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var $kZ="top right bottom left width height size weight".split(" "),kfS=typeof MutationObserver!=="undefined",pgy=Z4h&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,y_B=function(){this.mutationEventsAdded_=this.JSC$9710_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=v2R(this.refresh.bind(this))},jok=function(W,
e){var t=W.observers_;
e=t.indexOf(e);~e&&t.splice(e,1);!t.length&&W.JSC$9710_connected_&&Z4h&&W.JSC$9710_connected_&&(document.removeEventListener("transitionend",W.onTransitionEnd_),window.removeEventListener("resize",W.refresh),W.mutationsObserver_&&(W.mutationsObserver_.disconnect(),pgy&&(HTMLElement.prototype.attachShadow=pgy)),W.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",W.refresh),W.mutationsObserver_=null,W.mutationEventsAdded_=!1,W.JSC$9710_connected_=!1)};
y_B.prototype.refresh=function(){CLo(this)&&this.refresh()};
var CLo=function(W){W=W.observers_.filter(function(e){return n58(e),e.activeObservations_.length>0});
W.forEach(function(e){return fjb(e)});
return W.length>0},g5b=function(W){if(Z4h&&!W.JSC$9710_connected_){document.addEventListener("transitionend",W.onTransitionEnd_);
window.addEventListener("resize",W.refresh);if(kfS){W.mutationsObserver_=new MutationObserver(W.refresh);var e={attributes:!0,childList:!0,characterData:!0,subtree:!0};W.mutationsObserver_.observe(document,e);pgy&&(function m(b){var q=b.shadowRoot;q&&(W.mutationsObserver_.observe(q,e),m(q));for(b=b.firstElementChild;b;)m(b),b=b.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var b=pgy.apply(this,_.$N.apply(0,arguments));
W.mutationsObserver_.observe(b,e);return b})}else document.addEventListener("DOMSubtreeModified",W.refresh),W.mutationEventsAdded_=!0;
W.JSC$9710_connected_=!0}};
y_B.prototype.onTransitionEnd_=function(W){var e=W.propertyName===void 0?"":W.propertyName;$kZ.some(function(t){return!!~e.indexOf(t)})&&this.refresh()};
var TAD=null;var J_v=function(W,e){for(var t=_.R(Object.keys(e)),b=t.next();!b.done;b=t.next())b=b.value,Object.defineProperty(W,b,{value:e[b],enumerable:!1,writable:!1,configurable:!0})};var xG=function(W){var e;return(W==null?void 0:(e=W.ownerDocument)==null?void 0:e.defaultView)||globalThis};var xkr={x:0,y:0,width:0,height:0},O4y=typeof SVGGraphicsElement!=="undefined"?function(W){return W instanceof xG(W).SVGGraphicsElement}:function(W){return W instanceof xG(W).SVGElement&&typeof W.getBBox==="function"};var MgN=function(W){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=W};
MgN.prototype.isActive=function(){var W=this.target;if(Z4h)if(O4y(W)){var e=W.getBBox();e={x:0,y:0,width:e.width,height:e.height}}else{var t=W.clientWidth,b=W.clientHeight;if(t||b){var m=xG(W).getComputedStyle(W);e=uk(m["padding-top"]);var q=uk(m["padding-left"]),Q=q+uk(m["padding-right"]),X=e+uk(m["padding-bottom"]),I=uk(m.width),u=uk(m.height);m.boxSizing==="border-box"&&(Math.round(I+Q)!==t&&(I-=G9L(m,"left","right")+Q),Math.round(u+X)!==b&&(u-=G9L(m,"top","bottom")+X));W!==xG(W).document.documentElement&&
(W=Math.round(I+Q)-t,b=Math.round(u+X)-b,Math.abs(W)!==1&&(I-=W),Math.abs(b)!==1&&(u-=b));e={x:q,y:e,width:I,height:u}}else e=xkr}else e=xkr;this.contentRect_=e;return e.width!==this.broadcastWidth||e.height!==this.broadcastHeight};var soZ=function(W,e){var t=e.x;var b=e.y;var m=e.width;e=e.height;var q=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);J_v(q,{x:t,y:b,width:m,height:e,top:b,right:t+m,bottom:e+b,left:t});J_v(this,{target:W,contentRect:q})};var hme=function(W,e){var t=TAD;this.activeObservations_=[];this.observations_=new Map;if(typeof W!=="function")throw new TypeError("Qe");this.callback_=W;this.controller_=t;this.callbackCtx_=e};
hme.prototype.observe=function(W){if(W===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof xG(W).Element))throw new TypeError("Se");var e=this.observations_;e.has(W)||(e.set(W,new MgN(W)),W=this.controller_,~W.observers_.indexOf(this)||W.observers_.push(this),W.JSC$9710_connected_||g5b(W),this.controller_.refresh())}};
hme.prototype.unobserve=function(W){if(W===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof xG(W).Element))throw new TypeError("Se");var e=this.observations_;e.has(W)&&(e.delete(W),e.size||jok(this.controller_,this))}};
hme.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();jok(this.controller_,this)};
var n58=function(W){W.activeObservations_.splice(0);W.observations_.forEach(function(e){e.isActive()&&W.activeObservations_.push(e)})},fjb=function(W){if(W.activeObservations_.length>0){var e=W.callbackCtx_,t=W.activeObservations_.map(function(b){var m=b.target,q=b.contentRect_;
b.broadcastWidth=q.width;b.broadcastHeight=q.height;return new soZ(m,q)});
W.callback_.call(e,t,e);W.activeObservations_.splice(0)}};var O4=function(W){if(!(this instanceof O4))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");TAD||(TAD=new y_B);this.observer_=new hme(W,this)};
O4.prototype.observe=function(W){this.observer_.observe(W)};
O4.prototype.unobserve=function(W){this.observer_.unobserve(W)};
O4.prototype.disconnect=function(){this.observer_.disconnect()};var Fqc=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:O4;var k9z="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(" "),$7s={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},ZYR=null,D7s=null;var pbc={},ysv=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 JsK={text:1},n2L={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var H4r=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Ku8={CONSTANT:{isUnwrappable:function(W){return W instanceof Om},
unwrap:PvN},JAVASCRIPT:{isUnwrappable:function(W){return W instanceof _.OV},
unwrap:sV},HTML:{isUnwrappable:function(W){return W instanceof j5},
unwrap:function(W){return nF(W)}},
RESOURCE_URL:{isUnwrappable:function(W){return W instanceof QE},
unwrap:_.Xh},STRING:{isUnwrappable:function(W){return W instanceof Object},
unwrap:function(W){return String(W)}},
STYLE:{isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W}},
URL:{isUnwrappable:function(W){return c7(W)},
unwrap:_.v7}},PLB={CONSTANT:x7Q,JAVASCRIPT:x7Q,HTML:function(W){W=W instanceof j5?W:CF(String(W).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return nF(W)},
RESOURCE_URL:x7Q,STRING:String,STYLE:x7Q,URL:function(W,e){W=H4r.test(W)?W:void 0;return W===void 0?e:W}};var zzz=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,OYK=/[\t\n\f\r ]+/,sP9=/[\t\n\f\r ,]+/g,HYv=function(W,e,t){return t},DZ={},Vgo=function(){var W=function(){var b={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",b):b}(),e=W.createHTML(""),t=W.createScript("");
W=W.createScriptURL("");return{INNOCUOUS_STRING:e,INNOCUOUS_SCRIPT:t,INNOCUOUS_URL:W}}(),G4=Vgo.INNOCUOUS_STRING,YqK=Vgo.INNOCUOUS_SCRIPT,iYZ=Vgo.INNOCUOUS_URL;var i4P=function(W){var e=U72(W);return function(t,b,m,q){return q?e(q,b,m,t):G4}}({reportHandler:function(W,e){if(W)try{throw Error(e);
}catch(t){_.gQ(t)}},
safeTypesBridge:function(W,e,t){var b=Ku8[e];return b.isUnwrappable(W)&&(b=b.unwrap(W,t),b!==t)?b:(0,PLB[e])(String(W),t)},
allowedIdentifierPrefixes:[""]});if(Do!==void 0)throw Error("Ue");Do=i4P;if(Do!==i4P)throw Error("Ve");SV("Injectable",[]);var BjG=SV("Inject",[["token",void 0]]),lug=SV("Optional",[]);SV("Injectable",[]);var ZdG=SV("Self",[]),$Wg=SV("SkipSelf",[]);SV("Host",[]);var YDU={},zmB=function(){};
zmB.prototype.resolve=function(){throw Error("Xe");};
zmB.prototype.addProvider=function(){throw Error("Xe");};var DWS=Function;var UkB=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,LuD=function(){this._reflect=window.Reflect};
_.r=LuD.prototype;_.r.factory=function(W){return function(){return new (Function.prototype.bind.apply(W,[null].concat(_.kP(_.$N.apply(0,arguments)))))}};
_.r._zipTypesAndAnnotations=function(W,e){var t=typeof W==="undefined"?Array(e.length):Array(W.length);for(var b=0;b<t.length;b++)t[b]=typeof W==="undefined"?[]:W[b]!=Object?[W[b]]:[],e&&E2G(e[b])&&(t[b]=t[b].concat(e[b]));return t};
_.r._ownParameters=function(W,e){if(UkB.exec(W.toString()))return null;if(W.parameters&&W.parameters!==e.parameters)return W.parameters;var t=W.ctorParameters;return t&&t!==e.ctorParameters?(e=typeof t==="function"?t():t,W=e.map(function(b){return b&&b.type}),e=e.map(function(b){return b&&N22(b.decorators)}),this._zipTypesAndAnnotations(W,e)):E2G(this._reflect)&&E2G(this._reflect.getOwnMetadata)&&(e=this._reflect.getOwnMetadata("parameters",W),(t=this._reflect.getOwnMetadata("design:paramtypes",W))||
e)?this._zipTypesAndAnnotations(t,e):Array(W.length).fill(void 0)};
_.r.parameters=function(W){if(!W.prototype)return[];var e=Object.getPrototypeOf(W.prototype).constructor;(W=this._ownParameters(W,e))||e===Object||(W=this.parameters(e));return W||[]};
_.r._ownAnnotations=function(W,e){if(W.annotations&&W.annotations!==e.annotations)return W=W.annotations,typeof W==="function"&&W.annotations&&(W=W.annotations),W;if(W.decorators&&W.decorators!==e.decorators)return N22(W.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",W)};
_.r.annotations=function(W){var e=Object.getPrototypeOf(W.prototype).constructor;W=this._ownAnnotations(W,e)||[];return(e!==Object?this.annotations(e):[]).concat(W)};
_.r._ownPropMetadata=function(W,e){if(W.propMetadata&&W.propMetadata!==e.propMetadata)return W=W.propMetadata,typeof W==="function"&&W.propMetadata&&(W=W.propMetadata),W;if(W.propDecorators&&W.propDecorators!==e.propDecorators){var t=W.propDecorators,b={};Object.keys(t).forEach(function(m){b[m]=N22(t[m])});
return b}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",W)};
_.r.propMetadata=function(W){var e=Object.getPrototypeOf(W.prototype).constructor,t={};if(e!==Object){var b=this.propMetadata(e);Object.keys(b).forEach(function(q){t[q]=b[q]})}var m=this._ownPropMetadata(W,e);
m&&Object.keys(m).forEach(function(q){var Q=[];t.hasOwnProperty(q)&&Q.push.apply(Q,_.kP(t[q]));Q.push.apply(Q,_.kP(m[q]));t[q]=Q});
return t};
_.r.getter=function(W){return function(e){return e[W]}};
_.r.method=function(W){return function(e,t){if(!e[W])throw Error("Ye`"+W);return e[W].apply(e,t)}};var E5P=function(){};var A_B=function(W){this.reflectionCapabilities=W};
_.Z(A_B,E5P);_.r=A_B.prototype;_.r.factory=function(W){return this.reflectionCapabilities.factory(W)};
_.r.parameters=function(W){return this.reflectionCapabilities.parameters(W)};
_.r.annotations=function(W){return this.reflectionCapabilities.annotations(W)};
_.r.propMetadata=function(W){return this.reflectionCapabilities.propMetadata(W)};
_.r.getter=function(W){return this.reflectionCapabilities.getter(W)};
_.r.method=function(W){return this.reflectionCapabilities.method(W)};var RSR=new A_B(new LuD);var MU=function(W,e){this.token=W;this.id=e;if(W===void 0||W===null)throw Error("cf");};
_.Ec.Object.defineProperties(MU.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return BF(this.token)}}});
_.Ec.Object.defineProperties(MU,{JSC$9752_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return lk.JSC$9756_numberOfKeys}}});
var NAv=function(){this._allKeys=new Map};
NAv.prototype.get=function(W){if(W instanceof MU)return W;if(this._allKeys.has(W))return this._allKeys.get(W);var e=new MU(W,MU.JSC$9752_numberOfKeys);this._allKeys.set(W,e);return e};
_.Ec.Object.defineProperties(NAv.prototype,{JSC$9756_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var lk=new NAv;var kXZ=function(W,e,t){this.key=W;this.optional=e;this.visibility=t},F5z=function(W){return new kXZ(W,!1,null)},IuR=[],uL9=function(W,e,t){this.key=W;
this.resolvedFactories=e;this.multiProvider=t},auG=function(W,e,t,b){this.factory=W;
this.dependencies=e;this.providerClass=t;this.providerValue=b};var s4={},hX=function(W,e){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=e===void 0?null:e;W=_.R(W);for(e=W.next();!e.done;e=W.next())this.addProvider(e.value)};
_.r=hX.prototype;_.r.addProvider=function(W){this.keyIdToIndex.set(W.key.id,this.keyIds.length);this.providers.push(W);this.keyIds.push(W.key.id);this.objs.push(s4)};
_.r.resolve=function(W,e){e=e===void 0?YDU:e;return this._getByKey(lk.get(oB(W)),null,e)};
_.r._new=function(W){if(this.constructedKeyIds[W.key.id])throw mWK(this,W.key);this.constructedKeyIds[W.key.id]=!0;return this._instantiateProvider(W)};
_.r._instantiateProvider=function(W){if(W.multiProvider){for(var e=Array(W.resolvedFactories.length),t=0;t<W.resolvedFactories.length;++t)e[t]=this._instantiate(W,W.resolvedFactories[t]);return e}return this._instantiate(W,W.resolvedFactories[0])};
_.r._instantiate=function(W,e){var t=this,b=e.factory;try{var m=e.dependencies.map(function(Q){return t._getByReflectiveDependency(Q)})}catch(Q){throw Q.addKey&&Q.addKey(this,W.key),Q;
}try{var q=b.apply(null,_.kP(m))}catch(Q){throw rtG(this,Q,W.key);}return q};
_.r._getByReflectiveDependency=function(W){return this._getByKey(W.key,W.visibility,W.optional?null:YDU)};
_.r._getByKey=function(W,e,t){return W===dkr?this:e instanceof ZdG?this._getByKeySelf(W,t):this._getByKeyDefault(W,t,e)};
_.r._getObjByKeyId=function(W){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===W)return this.objs[e]===s4&&(this.objs[e]=this._new(this.providers[e])),this.objs[e];return s4};
_.r._throwOrNull=function(W,e){if(e!==YDU)return e;throw bdK(this,W);};
_.r._getByKeySelf=function(W,e){var t=this._getObjByKeyId(W.id);return t!==s4?t:this._throwOrNull(W,e)};
_.r._getByKeyDefault=function(W,e,t){for(var b=t=t instanceof $Wg?this.parent:this;t instanceof hX;){var m=t._getObjByKeyId(W.id);if(m!==s4)return m;t=t.parent}m=void 0;if(t!==null)try{var q=t.resolve(W.token,e);if(q!==s4)return q}catch(Q){m=Q}if(!(b instanceof hX&&ytD(W.token))){if(m)throw m;return this._throwOrNull(W,e)}for(q=b;q.parent instanceof hX;)q=q.parent;q.addProvider(ctZ({provide:W.token,useClass:W.token}));return q.resolve(W.token,e)};
_.r.toString=function(){return this.displayName};
_.Ec.Object.defineProperties(hX.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+p9v(this,function(W){return' "'+W.key.displayName+'" '}).join(", ")+"])"}}});
var dkr=lk.get(oB(zmB));(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 WMU=window.XRegExp;var eKN=-1,tN8=function(W){addEventListener("pageshow",function(e){e.persisted&&(eKN=e.timeStamp,W(e))},!0)};var mAe=function(W,e,t){var b=bae,m,q;return function(Q){if(e.value>=0&&(Q||t)){var X;if((q=e.value-((X=m)!=null?X:0))||m===void 0)m=e.value,e.delta=q,Q=e.value,e.rating=Q>b[1]?"poor":Q>b[0]?"needs-improvement":"good",W(e)}}};var rpr=function(W){requestAnimationFrame(function(){return requestAnimationFrame(function(){return W()})})};var qZr=function(){var W=performance.getEntriesByType("navigation")[0];if(W&&W.responseStart>0&&W.responseStart<performance.now())return W};var RKS=function(){var W,e;return(e=(W=qZr())==null?void 0:W.activationStart)!=null?e:0};var Q5B=function(){var W=W===void 0?-1:W;var e=qZr(),t="navigate";eKN>=0?t="back-forward-cache":e&&(document.prerendering||RKS()>0?t="prerender":document.wasDiscarded?t="restore":e.type&&(t=e.type.replace(/_/g,"-")));return{name:"LCP",value:W,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:t}};var CDG=new WeakMap;var FMS=function(W){var e=e===void 0?{}:e;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var t=new PerformanceObserver(function(b){Promise.resolve().then(function(){W(b.getEntries())})});
t.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},e));return t}}catch(b){}};var Xe8=function(W){var e=!1;return function(){e||(W(),e=!0)}};var HM=-1,ITr=function(W){document.visibilityState==="hidden"&&HM>-1&&(HM=W.type==="visibilitychange"?W.timeStamp:0,removeEventListener("visibilitychange",ITr,!0),removeEventListener("prerenderingchange",ITr,!0))},aTv=function(){addEventListener("visibilitychange",ITr,!0);
addEventListener("prerenderingchange",ITr,!0)},weP=function(){if(HM<0){var W=RKS(),e,t;
HM=(t=document.prerendering?void 0:(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(b){return b.name==="hidden"&&b.startTime>W})[0])==null?void 0:e.startTime)!=null?t:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
aTv();tN8(function(){setTimeout(function(){HM=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;aTv()})})}return{get firstHiddenTime(){return HM}}};var u6e=function(W){document.prerendering?addEventListener("prerenderingchange",function(){return W()},!0):W()};var cpr=function(W){var e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?W():(W=Xe8(W),document.addEventListener("visibilitychange",W,{once:!0}),e(function(){W();document.removeEventListener("visibilitychange",W)}))};var jts=function(){};
jts.prototype._processEntry=function(W){var e;(e=this._onBeforeProcessingEntry)==null||e.call(this,W)};var bae=[2500,4E3],m0c=function(W){var e=e===void 0?{}:e;u6e(function(){var t=weP(),b=Q5B(),m=nVG(e),q=function(v){e.reportAllChanges||(v=v.slice(-1));v=_.R(v);for(var D=v.next();!D.done;D=v.next())D=D.value,m._processEntry(D),D.startTime<t.firstHiddenTime&&(b.value=Math.max(D.startTime-RKS(),0),b.entries=[D],X())},Q=FMS(q);
if(Q){var X=mAe(W,b,e.reportAllChanges);for(var I=Xe8(function(){q(Q.takeRecords());Q.disconnect();X(!0)}),u=_.R(["keydown",
"click","visibilitychange"]),c=u.next();!c.done;c=u.next())addEventListener(c.value,function(){return cpr(I)},{capture:!0,
once:!0});tN8(function(v){b=Q5B();X=mAe(W,b,e.reportAllChanges);rpr(function(){b.value=performance.now()-v.timeStamp;X(!0)})})}})};var vDD;var G2D;_.N=function(){return G2D!==void 0?G2D:G2D=document.createElement("template")};
document.head.appendChild(_.N().content);var DAD;_.yQ({_template:function(){if(DAD!==void 0)return DAD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;vDD===void 0&&(vDD=document.createElement("template"));var b=vDD;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return DAD=W},
is:"tp-yt-app-toolbar"});var SZS;var Bdr;_.Kx=function(){};
_.Kx=_.yQ({_template:function(){if(Bdr!==void 0)return Bdr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;SZS===void 0&&(SZS=document.createElement("template"));var b=SZS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Bdr=W},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Kx.instance||(_.Kx.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(W){this._text===W&&(W+="\u00a0");this._text="";this.async(function(){this._text=W},this.timeout)},
_onIronAnnounce:function(W){W.detail&&W.detail.text&&this.announce(W.detail.text)}});
_.Kx.instance=null;_.Kx.requestAvailability=function(){_.Kx.instance||(_.Kx.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Kx.instance):document.addEventListener("load",function(){document.body.appendChild(_.Kx.instance)})};var oDZ;var lT8;/*

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

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

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 s5P=new _.j3({type:"iconset"});
_.yQ({_template:function(){if(MNo!==void 0)return MNo;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Oar===void 0&&(Oar=document.createElement("template"));
var b=Oar;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return MNo=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.ZZ(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=s5P.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.ZZ(this.root).appendChild(this._img)}});var hKB;var Hah;_.yQ({_template:function(){if(Hah!==void 0)return Hah;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;hKB===void 0&&(hKB=document.createElement("template"));var b=hKB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Hah=W},
is:"tp-yt-iron-input",behaviors:[_.nx],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(){_.Kx.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.ZZ(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.ZZ(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,e){e&&(W===void 0?e.value=null:W!==e.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var e=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&e)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var e=this._patternRegExp;if(e&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var t=String.fromCharCode(W.charCode);this._isPrintable(W)&&!e.test(t)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+t+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var e=0;e<this.inputElement.value.length;e++)if(!W.test(this.inputElement.value[e]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.nx.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var KMS;var Pte;var VNU=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),iaB=VNU&&VNU[1]>=8;
_.yQ({_template:function(){if(Pte!==void 0)return Pte;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;KMS===void 0&&(KMS=document.createElement("template"));var b=KMS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Pte=W},
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:[AxG,_.gf,_.c_U,m2o],_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 _.ZZ(_.ZZ(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var e=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(t,b){e+=this._getPhysicalSizeIncrement(t);if(e>this._scrollPosition)return this.grid?b-b%this._itemsPerRow:b;if(this.grid&&this._virtualCount-1===b)return b-b%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var e=this._physicalTop+this._scrollOffset;this._iterateItems(function(t,b){e<this._scrollBottom&&(W=b);e+=this._getPhysicalSizeIncrement(t)})}this._lastVisibleIndexVal=W}return W},
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,_.ye);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.ye)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=W-this._scrollPosition,t=e>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(e)>this._physicalSize&&this._physicalSize>0?(e-=this._scrollOffset,t=Math.round(e/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(t),t?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,t?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),gs))},
_getReusables:function(W){var e=[],t=this._hiddenContentSize*this._ratio,b=this._virtualStart,m=this._virtualEnd,q=this._physicalCount,Q=this._physicalTop+this._scrollOffset;var X=this._physicalBottom+this._scrollOffset;var I=this._scrollPosition,u=this._scrollBottom;if(W){var c=this._physicalStart;X=I-Q}else c=this._physicalEnd,X-=u;for(;;){var v=this._getPhysicalSizeIncrement(c);X-=v;if(e.length>=q||X<=t)break;if(W){if(m+e.length+1>=this._virtualCount)break;if(Q+v>=I-this._scrollOffset)break;e.push(c);
Q+=v;c=(c+1)%q}else{if(b-e.length<=0)break;if(Q+this._physicalSize-v<=u)break;e.push(c);Q-=v;c=c===0?q-1:c-1}}return{indexes:e,physicalTop:Q-this._scrollOffset}},
_update:function(W,e){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(e)for(;e.length;)W=e.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var e,t=Array(W);for(e=0;e<W;e++){var b=this.stamp(null);t[e]=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}return t},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var e=W%this._itemsPerRow;e&&W-e<=this._physicalCount&&(W+=this._itemsPerRow);W-=e}W-=this._physicalCount;e=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){e=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var t=0;t<W;t++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-e)/W;e=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||e===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,e)),hrv):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,e),gs))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,e){typeof e!=="undefined"&&(this.notifyResize(),_.wJ(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.ye);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(t){return t.addedCount>0||t.removed.length>0})){var e=this._getActiveElement();
this.contains(e)&&e.blur()}W=W.value.indexSplices.some(function(t){return t.index+t.addedCount>=this._virtualStart&&t.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.ye)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,e){W=W.slice(6);var t=W.indexOf(".");t===-1&&(t=W.length);var b,m=this.modelForElement(this._offscreenFocusedItem),q=parseInt(W.substring(0,t),10);if(b=this._isIndexRendered(q)){var Q=this._getPhysicalIndex(q);var X=this.modelForElement(this._physicalItems[Q])}else m&&(X=m);X&&X[this.indexAs]===q&&(W=W.substring(t+1),W=this.as+(W?"."+W:""),X._setPendingPropertyOrPath(W,e,!1,!0),X._flushProperties&&X._flushProperties(),b&&(this._updateMetrics([Q]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(e){e.removed.forEach(this._removeItem,this);e.index<this._virtualStart&&(e=Math.max(e.addedCount-e.removed.length,e.index-this._virtualStart),this._virtualStart+=e,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=e))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,e){var t,b;if(arguments.length===2&&e)for(b=0;b<e.length;b++){var m=e[b];var q=this._computeVidx(m);if((t=W.call(this,m,q))!=null)return t}else{m=this._physicalStart;for(q=this._virtualStart;m<this._physicalCount;m++,q++)if((t=W.call(this,m,q))!=null)return t;for(m=0;m<this._physicalStart;m++,q++)if((t=W.call(this,m,q))!=null)return t}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(e,t){var b=this._physicalItems[e],m=this.items&&this.items[t];if(m!=null){var q=this.modelForElement(b);q.__key__=null;this._forwardProperty(q,this.as,m);this._forwardProperty(q,this.selectedAs,this.$.selector.isSelected(m));this._forwardProperty(q,this.indexAs,t);this._forwardProperty(q,"tabIndex",this._focusedVirtualIndex===t?0:-1);this._physicalIndexForKey[q.__key__]=e;q._flushProperties&&q._flushProperties(!0);b.removeAttribute("hidden")}else b.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.wJ();var e=0,t=0,b=this._physicalAverageCount,m=this._physicalAverage;this._iterateItems(function(q){t+=this._physicalSizes[q];this._physicalSizes[q]=this._physicalItems[q].offsetHeight;e+=this._physicalSizes[q];this._physicalAverageCount+=this._physicalSizes[q]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(t=this._itemsPerRow===1?t:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+e-t,this._itemsPerRow=1);this._physicalAverageCount!==b&&(this._physicalAverage=Math.round((m*b+e)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var W=this._physicalTop;if(this.grid){var e=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(t,b){var m=Math.floor(b%this._itemsPerRow*this._itemWidth+e);this._isRTL&&(m*=-1);this.translate3d(m+"px",W+"px",0,this._physicalItems[t]);this._shouldRenderNextRow(b)&&(W+=this._rowHeight)})}else this._iterateItems(function(t){this.translate3d(0,W+"px",0,this._physicalItems[t]);
W+=this._physicalSizes[t]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var e=this._scrollPosition;!iaB&&e>0&&this._resetScrollPosition(e-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.wJ(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var e=this._physicalStart,t=this._virtualStart,b=0,m=this._hiddenContentSize;t<W&&
b<=m;)b+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+b);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.ye)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var e=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);e&&(e[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var e=this.modelForElement(W.target);if(e){var t=_.ZZ(W).path[0];W=this._getActiveElement();var b=this._physicalItems[this._getPhysicalIndex(e[this.indexAs])];if(t.localName!=="input"&&t.localName!=="button"&&t.localName!=="select"){t=e.tabIndex;e.tabIndex=-100;var m=W?W.tabIndex:-1;e.tabIndex=t;W&&b!==W&&b.contains(W)&&m!==-100||this.toggleSelectionForItem(e[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var e=this._physicalItems[this._getPhysicalIndex(W)],t=this.modelForElement(e),b;t.tabIndex=-100;e.tabIndex===-100&&(b=e);b||(b=_.ZZ(e).querySelector('[tabindex="-100"]'));t.tabIndex=0;this._focusedVirtualIndex=W;b&&b.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var e=this.stamp(null);this._focusBackfillItem=e.root.querySelector("*");this._itemsParent.appendChild(e.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),e=this._physicalItems[W];if(e){var t=this.modelForElement(e),b=this.modelForElement(this._offscreenFocusedItem);t[this.as]===b[this.as]?(this._focusBackfillItem=e,t.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var e=this.modelForElement(this._focusedItem),t=this._offscreenFocusedItem!==null,b=this._focusedVirtualIndex;W&&(e===W?this._isIndexVisible(b)||this.scrollToIndex(b):(this._restoreFocusedItem(),e&&(e.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=b=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(b),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],t&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,e,t){return Math.min(t,Math.max(e,W))},
_debounce:function(W,e,t){this._debouncers=this._debouncers||{};this._debouncers[W]=_.Qy(this._debouncers[W],t,e.bind(this));_.FI(this._debouncers[W])},
_forwardProperty:function(W,e,t){W._setPendingProperty(e,t)},
_forwardHostPropV2:function(W,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&this.modelForElement(t).forwardHostProp(W,e)},this)},
_notifyInstancePropV2:function(W,e,t){Pt2(this.as,e)&&(W=W[this.indexAs],e==this.as&&(this.items[W]=t),this.notifyPath(aQ(this.as,"items."+W,e),t))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,e,t){e.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+e.slice(this.as.length+1),t)},
_forwardParentPath:function(W,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&this.modelForElement(t).notifyPath(W,e)},this)},
_forwardParentProp:function(W,e){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(t){t&&(this.modelForElement(t)[W]=e)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.ZZ(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,e){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(e)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var t,b;this.scrollTarget=(e=(b=(t=this.domHost)==null?void 0:t.polymerController)!=null?b:this.domHost)&&e.$?e.$[W]:_.ZZ(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var YZD;var zKZ;var UAb=function(W,e,t,b){W-=t;e-=b;return Math.sqrt(W*W+e*e)},LMS=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Odg.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var MQL=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new Odg(W.element)};
stv.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=LMS()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?LMS()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/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<.01&&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 W=this.radius/(this.containerMetrics.size/2);var e=this.xNow-this.containerMetrics.width/2;var t=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+e+"px, "+t+"px)";this.waveContainer.style.transform="translate3d("+e+"px, "+t+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var e=this.containerMetrics.width/2,t=this.containerMetrics.height/2;MQL(this);this.mouseDownStart=LMS();this.center?(this.xStart=e,this.yStart=t):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=e,this.yEnd=t);W=this.containerMetrics;e=this.xStart;t=this.yStart;this.maxRadius=Math.max(UAb(e,t,0,0),UAb(e,t,
W.width,0),UAb(e,t,0,W.height),UAb(e,t,W.width,W.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=LMS())},
remove:function(){_.ZZ(_.ZZ(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.yQ({_template:function(){if(zKZ!==void 0)return zKZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;YZD===void 0&&(YZD=document.createElement("template"));var b=YZD;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return zKZ=W},
is:"tp-yt-paper-ripple",behaviors:[_.ZJ],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(){_.ZZ(this).parentNode.nodeType==11?this.keyEventTarget=_.ZZ(this).getOwnerRoot().host:this.keyEventTarget=_.ZZ(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(e){e.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var e=this.ripples[W];e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new stv(this);_.ZZ(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var e=this.ripples.indexOf(W);e<0||(this.ripples.splice(e,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var e=this.ripples[W];e.draw();this.$.background.style.opacity=e.outerOpacity;e.isOpacityFullyDecayed&&!e.isRestingAtMaxRadius&&this.removeRipple(e)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(W,e){e!==void 0&&(W?this.downAction():this.upAction())}});var U4={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){kG._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var e=this._rippleContainer||this.root;e&&_.ZZ(e).appendChild(this._ripple);if(W){e=_.ZZ(this._rippleContainer||this);var t=_.ZZ(W).rootTarget;e.deepContains(t)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var ED8={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){kG._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){kG._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},Ap8=[mkb,
_.$G,U4,ED8];_.Nde={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=U4._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.dAb=[mkb,_.$G,U4,_.Nde];_.Wgv=[_.dAb,Rm8,{_checkedChanged:function(){qDe._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){U4._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var exh;var tXP;var bUP=function(){};
_.r=bUP.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._buttonStateChanged=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._createRipple=function(){};
_.r._noinkChanged=function(){};
_.r._computeKeyboardClass=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
_.r._setElevation=function(){};
bUP=_.yQ({_template:function(){if(tXP!==void 0)return tXP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;exh===void 0&&(exh=document.createElement("template"));var b=exh;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return tXP=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Ap8],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ED8._calculateElevation.apply(this):this._setElevation(0)}});var mVe;var rvb;var qQ8={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(W){_.S("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.S("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,e){e&&(W?(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(W){W?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var e=_.ZZ(W).path,t=0,b,m=e.indexOf((b=this.hostElement)!=null?b:this);t<m;t++)if(b=e[t],b.hasAttribute&&(b.hasAttribute("dialog-dismiss")||b.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(b.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},Rx8=[_.z0,
qQ8];var Qvk=document.createElement("template");_.p(Qvk,'<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(Qvk.content);var FgZ=document.createElement("template");_.p(FgZ,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(FgZ.content);_.yQ({_template:function(){if(rvb!==void 0)return rvb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;mVe===void 0&&(mVe=document.createElement("template"));var b=mVe;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return rvb=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Rx8,v5o],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 XSb;var I_S;_.yQ({_template:function(){if(I_S!==void 0)return I_S;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;XSb===void 0&&(XSb=document.createElement("template"));var b=XSb;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return I_S=W},
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 W,e,t;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((e=window.ShadyDOM)==null?void 0:e.noPatch)!=="on-demand"||((t=this.__shady_parentNode)==null?void 0:t.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(qQ8)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var a_8=_.Nw(['<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>']),wSP=_.F$h(a_8);wSP.setAttribute("style","display: none;");document.head.appendChild(wSP.content);var uXZ;var cvb;var vbk;var Gzb;_.yQ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[T0],configure:function(W){var e=W.node,t=e.getBoundingClientRect().height;return this._effect=new KeyframeEffect(e,[{height:t/2+"px"},{height:t+"px"}],this.timingFromConfig(W))}});
_.yQ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[T0],configure:function(W){var e=W.node,t=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:t/2+"px"},{width:t+"px"}],this.timingFromConfig(W))}});
_.yQ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[T0],configure:function(W){var e=W.node,t=e.getBoundingClientRect().width;return this._effect=new KeyframeEffect(e,[{width:t+"px"},{width:t-t/20+"px"}],this.timingFromConfig(W))}});
_.yQ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[T0],configure:function(W){var e=W.node,t=e.getBoundingClientRect().height;this.setPrefixedProperty(e,"transformOrigin","0 0");return this._effect=new KeyframeEffect(e,[{height:t+"px",transform:"translateY(0)"},{height:t/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var Lx={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},DVo=function(){};
_.r=DVo.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._focusBlurHandler=function(){};
_.r._changedControlState=function(){};
_.r._setFocused=function(){};
DVo=_.yQ({_template:function(){if(Gzb!==void 0)return Gzb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;vbk===void 0&&(vbk=document.createElement("template"));var b=vbk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Gzb=W},
is:"tp-yt-paper-menu-button",behaviors:[_.ZJ,_.$G],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:Lx.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Lx.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:Lx.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 W=_.ZZ(this.$.content).getDistributedNodes(),e=0,t=W.length;e<t;e++)if(W[e].nodeType===Node.ELEMENT_NODE)return W[e]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(W,e){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):e!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.$G._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var e=this.$.trigger;_.ZZ(W.detail).path.indexOf(e)>-1&&W.preventDefault()}});
Object.keys(Lx).forEach(function(W){DVo[W]=Lx[W]});var SQN=_.px.IronButtonState,BNZ=(0,_.lS)(HTMLElement);
_.yQ({_template:function(){if(cvb!==void 0)return cvb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;uXZ===void 0&&(uXZ=document.createElement("template"));var b=uXZ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return cvb=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[SQN,_.$G,U4,_.y6,_.nx],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(W){var e=(0,_.Gk)(this);e.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});e.shadowRoot.appendChild(W);return BNZ.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.ZZ(this.$.content).getDistributedNodes(),e=0,t=W.length;e<t;e++)if(W[e].nodeType===Node.ELEMENT_NODE)return W[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var e="";W?e=W.label||W.getAttribute("label")||W.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(W,e){return e?e:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,e,t){var b="label";if(W)t&&(b+=" label-is-hidden");else if(t||e)b+=" label-is-floating";return b},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var obh;var l_U;_.yQ({is:"tp-yt-paper-icon-button",_template:function(){if(l_U!==void 0)return l_U;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;obh===void 0&&(obh=document.createElement("template"));var b=obh;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return l_U=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.dAb],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,e){var t=this.getAttribute("aria-label");t&&e!=t||this.setAttribute("aria-label",W)}});var ZUB;var $VN;_.E4=[mkb,_.$G,{hostAttributes:{role:"option",tabindex:"0"}}];_.yQ({_template:function(){if($VN!==void 0)return $VN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;ZUB===void 0&&(ZUB=document.createElement("template"));var b=ZUB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return $VN=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.E4]});var kzk;var pSe;var yve={attached:function(){this.fire("addon-attached")},
update:function(){}};var jvN=1,CJk=1,nbh=1,f_h=[_.$G,_.ZJ,{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();!eA&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,e){W?W=W+" "+e:W=e;return W},
_onAddonAttached:function(W){W=_.ZZ(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var e="paper-input-add-on-"+CJk++;W.id=e;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.$G._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var e=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=e;this.inputElement.selectionEnd=e}catch(t){this.value=W}},
_computeAlwaysFloatLabel:function(W,e){return e||W},
_updateAriaLabelledBy:function(){var W=_.ZZ(this.root).querySelector("label");if(W){if(W.id)var e=W.id;else e="paper-input-label-"+jvN++,W.id=e;this._ariaLabelledBy=e}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+nbh++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var gbP;var TNy;_.yQ({_template:function(){if(TNy!==void 0)return TNy;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;gbP===void 0&&(gbP=document.createElement("template"));var b=gbP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return TNy=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[yve],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var e=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(e+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=e}}});var JvU;var xVk;_.yQ({_template:function(){if(xVk!==void 0)return xVk;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;JvU===void 0&&(JvU=document.createElement("template"));var b=JvU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return xVk=W},
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 RQ(this.attrForValue)},get _inputElement(){return _.ZZ(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var e=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,e.value===void 0||e.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var e=this._inputElementValue;e||e===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:e,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var e,t=0;e=this._addons[t];t++)e.update(W)},
_computeInputContentClass:function(W,e,t,b,m){var q="input-content";W?(m&&(q+=" label-is-hidden"),b&&!this.noUnfloatedLabelError&&(q+=" is-invalid")):(W=this.querySelector("label"),e||m?(q+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",b?q+=" is-invalid":t&&(q+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),b&&!this.noUnfloatedLabelError&&(q+=" is-invalid")));t&&(q+=" focused");return q},
_computeUnderlineClass:function(W,e){var t="underline";e?t+=" is-invalid":W&&(t+=" is-highlighted");return t},
_computeAddOnContentClass:function(W,e){var t="add-on-content";e?t+=" is-invalid":W&&(t+=" is-highlighted");return t}});var OUb;var MXe;_.yQ({_template:function(){if(MXe!==void 0)return MXe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;OUb===void 0&&(OUb=document.createElement("template"));var b=OUb;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return MXe=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[yve],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.yQ({is:"tp-yt-paper-input",_template:function(){if(pSe!==void 0)return pSe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;kzk===void 0&&(kzk=document.createElement("template"));var b=kzk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return pSe=W},
behaviors:[f_h,_.y6],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 svv;var hxS;_.yQ({_template:function(){if(hxS!==void 0)return hxS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=
W.content,t=e.insertBefore;svv===void 0&&(svv=document.createElement("template"));var b=svv;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return hxS=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.E4]});var HUk;var Kgh;_.yQ({_template:function(){if(Kgh!==void 0)return Kgh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;HUk===void 0&&(HUk=document.createElement("template"));var b=HUk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Kgh=W},
is:"tp-yt-paper-item-body"});var PJN;var VXv;var iUr=function(){};
_.r=iUr.prototype;_.r.indexOf=function(){};
_.r.selectPrevious=function(){};
_.r.selectNext=function(){};
_.r.selectIndex=function(){};
_.r.forceSynchronousItemUpdate=function(){};
_.r._checkFallback=function(){};
_.r._addListener=function(){};
_.r._removeListener=function(){};
_.r._activateEventChanged=function(){};
_.r._updateItems=function(){};
_.r._selectSelected=function(){};
_.r._filterItem=function(){};
_.r._valueToItem=function(){};
_.r._valueToIndex=function(){};
_.r._indexToValue=function(){};
_.r._valueForItem=function(){};
_.r._observeItems=function(){};
_.r._itemActivate=function(){};
_.r.multiChanged=function(){};
_.r._updateAttrForSelected=function(){};
_.r._updateSelected=function(){};
_.r._selectMulti=function(){};
_.r._selectionChange=function(){};
_.r._toggleSelected=function(){};
_.r._valuesToItems=function(){};
_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r.select=function(){};
_.r._resetTabindices=function(){};
_.r._updateMultiselectable=function(){};
_.r._focusWithKeyboardEvent=function(){};
_.r._clearSearchText=function(){};
_.r._focusPrevious=function(){};
_.r._focusNext=function(){};
_.r._applySelection=function(){};
_.r._focusedItemChanged=function(){};
_.r._onIronItemsChanged=function(){};
_.r._onShiftTabDown=function(){};
_.r._onFocus=function(){};
_.r._onUpKey=function(){};
_.r._onDownKey=function(){};
_.r._onEscKey=function(){};
_.r._onKeydown=function(){};
_.r._activateHandler=function(){};
_.r._disabledChanged=function(){};
_.r._setSelectedItem=function(){};
_.r._setItems=function(){};
_.r._setSelectedItems=function(){};
_.r._setFocusedItem=function(){};
iUr=_.yQ({_template:function(){if(VXv!==void 0)return VXv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;PJN===void 0&&(PJN=document.createElement("template"));var b=PJN;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return VXv=W},
is:"tp-yt-paper-listbox",behaviors:[Ijk],hostAttributes:{role:"listbox"}});var YQ8;var zxe;var UVy={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,e){return[W||e?"active":"",e?"cooldown":""].join(" ")},
__activeChanged:function(W,e){this.__setAriaHidden(!W);this.__coolingDown=!W&&e},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.yQ({_template:function(){if(zxe!==void 0)return zxe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;YQ8===void 0&&(YQ8=document.createElement("template"));var b=YQ8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return zxe=W},
is:"tp-yt-paper-spinner",behaviors:[UVy]});var LgS;var Ebv;_.yQ({_template:function(){if(Ebv!==void 0)return Ebv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;LgS===void 0&&(LgS=document.createElement("template"));var b=LgS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Ebv=W},
is:"tp-yt-paper-spinner-lite",behaviors:[UVy]});var Av8;var NNS;_.yQ({_template:function(){if(NNS!==void 0)return NNS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Av8===void 0&&(Av8=document.createElement("template"));var b=Av8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return NNS=W},
is:"tp-yt-paper-tab",behaviors:[_.$G,_.px.IronButtonState,U4],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 W=_.ZZ(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var e=this.queryEffectiveChildren("a");e&&W.target!==e&&e.click()}}});var dVe;var WFe;var el8=_.Nw(['<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>']),tSv=_.F$h(el8);document.head.appendChild(tSv.content);_.yQ({_template:function(){if(WFe!==void 0)return WFe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;dVe===void 0&&(dVe=document.createElement("template"));var b=dVe;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return WFe=W},
is:"tp-yt-paper-tabs",behaviors:[_.gf,_.wgN],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(W){_.ZZ(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,e,t,b){return!e||t?"hidden":W?b?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,e){var t="tabs-content";W&&(t+=" scrollable");if(!W||e)t+=" fit-container";return t},
_computeSelectionBarClass:function(W,e){var t="selection-bar";W?t+=" hidden":e&&(t+=" align-bottom");return t},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.fx._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,e){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,e)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,e){this.scrollable&&this._affectScroll(e&&-e.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,e){if(W){var t=this.$.tabsContent.getBoundingClientRect(),b=t.width,m=W.getBoundingClientRect();t=m.left-t.left;this._pos={width:this._calcPercent(m.width,b),left:this._calcPercent(t,b)};if(this.noSlide||e==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var q=e.getBoundingClientRect();e=this.items.indexOf(e);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=e<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(m.left+m.width-q.left,b)-5,this._left):this._positionBar(this._calcPercent(q.left+q.width-m.left,b)-5,this._calcPercent(t,b)+5);this.scrollable&&this._scrollToSelectedIfNeeded(m.width,t)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,e){e-=this.$.tabsContainer.scrollLeft;e<0?this.$.tabsContainer.scrollLeft+=e:(e+=W-this.$.tabsContainer.offsetWidth,e>0&&(this.$.tabsContainer.scrollLeft+=e))},
_calcPercent:function(W,e){return 100*W/e},
_positionBar:function(W,e){W=W||0;e=e||0;this._width=W;this._left=e;this.transform("translateX("+e+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var bv8;var mZZ;_.yQ({_template:function(){if(mZZ!==void 0)return mZZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;bv8===void 0&&(bv8=document.createElement("template"));var b=bv8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return mZZ=W},
is:"tp-yt-paper-textarea",behaviors:[f_h,_.y6],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var r3U;var qRB;/*

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 Rlk=function(){};
_.r=Rlk.prototype;_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._focusedChanged=function(){};
_.r.registered=function(){};
_.r._invalidChanged=function(){};
_.r.hasValidator=function(){};
_.r.validate=function(){};
_.r._getValidity=function(){};
_.r._requiredChanged=function(){};
_.r._valueChanged=function(){};
_.r._checkedChanged=function(){};
_.r._buttonStateChanged=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
Rlk=_.yQ({is:"tp-yt-paper-toggle-button",_template:function(){if(qRB!==void 0)return qRB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;r3U===void 0&&(r3U=document.createElement("template"));var b=r3U;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return qRB=W},
behaviors:[_.Wgv],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");_.Uc(this,function(){_.f1(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=U4._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var Qwo;var FFo;_.yQ({_template:function(){if(FFo!==void 0)return FFo;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Qwo===void 0&&(Qwo=document.createElement("template"));var b=Qwo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return FFo=W},
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 W=_.ZZ(this).parentNode,e=_.ZZ(this).getOwnerRoot(),t;this.for?t=_.ZZ(e).querySelector("#"+this.for):t=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?e.host:W;return t},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.ZZ(this).textContent.trim()===""){for(var W=!0,e=_.ZZ(this).getEffectiveChildNodes(),t=0;t<e.length;t++)if(e[t].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var e=this.offsetParent.getBoundingClientRect(),t=this._target.getBoundingClientRect(),b=this.getBoundingClientRect(),m=(t.width-b.width)/2,q=(t.height-b.height)/2,Q=t.left-e.left,X=t.top-e.top;switch(this.position){case "top":var I=Q+m;var u=X-b.height-W;break;case "bottom":I=Q+m;u=X+t.height+W;break;case "left":I=Q-b.width-W;u=X+q;break;case "right":I=Q+t.width+
W,u=X+q}this.fitToVisibleBounds?(e.left+I+b.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,I)+"px",this.style.right="auto"),e.top+u+b.height>window.innerHeight?(this.style.bottom=e.height+"px",this.style.top="auto"):(this.style.top=Math.max(-e.top,u)+"px",this.style.bottom="auto")):(this.style.left=I+"px",this.style.top=u+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var e=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":e+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":e+
"ms"})}return this.animationConfig[W][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 XLe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(XLe,_.Ow);var IHk=_.NS(XLe,[0,_.N7]);var AX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(AX,_.Ow);var aHP=[3,4],wLP=[5,6];var uZZ=[0,aHP,wLP,_.IMv,-1,_.As,_.aMP,-1,rfv,qGG];var c3b=_.NS(AX,uZZ),vLe=_.dl(uZZ);var G_B=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(G_B,_.Ow);var DZy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(DZy,_.Ow);var SRr=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(SRr,_.Ow);var BkS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(BkS,_.Ow);var oLy=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(oLy,_.Ow);var NU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(NU,_.Ow);NU.prototype.getSource=function(){return _.Js(this,1)};
NU.prototype.getMessage=function(){return _.T9(this,4)};
NU.prototype.getData=function(){return _.mx(this,oLy,8)};var lHb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(lHb,_.Ow);var df=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(df,_.Ow);var Wz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Wz,_.Ow);var eO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(eO,_.Ow);eO.prototype.getUrl=function(){return _.T9(this,1)};
eO.prototype.setUrl=function(W){return _.Ga(this,1,W)};
eO.prototype.hasUrl=function(){return _.Hu(_.oP(this,1))!=null};var Zvb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Zvb,_.Ow);var $ZN=[3];var k_k=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(k_k,_.Ow);var tr=function(W){var e=new k_k;return _.rT(e,2,W)};
k_k.prototype.getLanguage=function(){return Oq(this,4,by)};
var pL8=function(W){var e=tr(1);return _.mT(e,6,by,W)},by=[3,
4,5,6];var y3B=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(y3B,_.Ow);var mO=function(W){var e=new y3B;return _.rT(e,1,W)},rv=function(W,e){return _.mT(W,2,jw8,e)},jw8=[2,
3,4,5];var C0h=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(C0h,_.Ow);var qd=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(qd,_.Ow);var nLk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(nLk,_.Ow);var fHZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(fHZ,_.Ow);var gLU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gLU,_.Ow);var TkS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(TkS,_.Ow);var J3k=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(J3k,_.Ow);var R7=function(W){return _.mx(W,Wz,5)};var xZ8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(xZ8,_.Ow);xZ8.prototype.getValue=function(){return fY(this,1)};var Ov8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Ov8,_.Ow);var Q9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Q9,_.Ow);Q9.prototype.getMetadata=function(){return _.M7(this,gLU,7,FQ)};
Q9.prototype.hasMetadata=function(){return _.ZI(this,gLU,7,FQ)};
var MSN=_.W7(Q9),FQ=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var XQ=function(W){this.JSC$9977_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
XQ.prototype.getName=function(){return this.JSC$9977_name_};var a7=function(W,e){this.callback_=e;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new XQ("");swo(this,W,this.rootDirectory_);I7(this)},swo=function(W,e,t){for(var b=0;b<e.length;b++){var m=e[b];
m.isFile?(W.fileOps_++,m.file((0,_.p3)(W.handleFileSuccess_,W,t),(0,_.p3)(W.handleFileError_,W))):W.unscannedDirectories_.push(new hlk(m,t))}},I7=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var e=W.unscannedDirectories_.shift(),t=e.entry,b=new XQ(t.name);e=e.parent;e.directoryMap_[b.getName()]=b;e.directories_.push(b);t=t.createReader();t.readEntries((0,_.p3)(W.handleDirectorySuccess_,W,t,b),(0,_.p3)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
a7.prototype.handleDirectorySuccess_=function(W,e,t){swo(this,t,e);t.length==0?(this.directoryOps_--,I7(this)):W.readEntries((0,_.p3)(this.handleDirectorySuccess_,this,W,e),(0,_.p3)(this.handleDirectoryError_,this))};
a7.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;I7(this)};
a7.prototype.handleFileSuccess_=function(W,e){W.files_.push(e);this.fileOps_--;I7(this)};
a7.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;I7(this)};
var hlk=function(W,e){this.entry=W;this.parent=e};var wv=function(W){_.ZY.call(this);_.p4(W,"drop",this.onObjectsDropped_,!1,this);_.p4(W,"dragenter",this.onFilesDragged_,!1,this);_.p4(W,"dragover",this.onFilesDragged_,!1,this);_.p4(W,"dragleave",this.onDragLeave_,!1,this);_.p4(W,"dragend",this.onDragLeave_,!1,this)};
_.QP(wv,_.ZY);var HvD=function(W,e){_.DY.call(this,"f");this.files=W;this.directories=e};
_.QP(HvD,_.DY);var KFB=function(){_.DY.call(this,"h")};
_.QP(KFB,_.DY);var P0r=function(){_.DY.call(this,"i")};
_.QP(P0r,_.DY);var VSb=function(){_.DY.call(this,"g")};
_.QP(VSb,_.DY);wv.prototype.onObjectsDropped_=function(W){var e=this;W.preventDefault();var t=W.event_.dataTransfer;if((W=t&&t.items)&&W.length>0&&W[0].webkitGetAsEntry){t=[];for(var b=[],m=0;m<W.length;m++){var q=W[m].webkitGetAsEntry();q?t.push(q):b.push(W[m])}new a7(t,function(Q,X,I){I?e.dispatchEvent(new VSb("Error occurred while reading from the file system.")):e.dispatchEvent(new HvD(Q,X,b))})}else(W=t&&t.files)&&this.dispatchEvent(new HvD(Array.from(W),[]))};
wv.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new KFB);W.preventDefault()};
wv.prototype.onDragLeave_=function(){this.dispatchEvent(new P0r)};var ivD=function(W,e){this.JSC$10000_name_=W;this.inputElement_=e};
ivD.prototype.getName=function(){return this.JSC$10000_name_};
ivD.prototype.getInputElement=function(){return this.inputElement_};var uy=function(W,e,t){e=e===void 0?"single_file":e;t=t===void 0?[]:t;_.ZY.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.DA("scotty-overlay-parent");this.selectorType_=e;this.acceptTypes_=t;this.overlay_=YRS(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.Z(uy,_.ZY);
var YRS=function(W,e,t,b){var m=document.createElement("input");m.setAttribute("type","file");m.setAttribute("name","Filedata");_.p4(m,"change",W.onFilesSelected_,!1,W);t==="multiple_file"&&(m.multiple="true");t==="single_directory"&&(m.webkitdirectory="true");b.length>0&&m.setAttribute("accept",b.join(","));m.style.position="absolute";m.style.overflow="hidden";m.style.height="0px";m.style.width="0px";m.style.opacity="0";m.setAttribute("aria-hidden","true");m.setAttribute("tabIndex",-1);if(W.overlayTarget_!=
null)return m.style.height=e.offsetHeight+"px",m.style.width=e.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.gj(m,e),s8(m,new _.jH(e.offsetLeft,e.offsetTop)),m;W.parentOverlay_.appendChild(m);return m};
uy.prototype.click=function(){this.overlay_.click()};
uy.prototype.onFilesSelected_=function(W){a:{try{var e=(new XMLHttpRequest).upload!==void 0;break a}catch(u){}e=!1}if(e){var t;W=Array.from((t=W.target.files)!=null?t:[]);t=[];if(this.selectorType_==="single_directory"&&(_.uI||Ei||_.w2)){t=new XQ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(e=0;e<W.length;e++)for(var b=W[e],m=b.webkitRelativePath.split("/"),q=t,Q=0;Q<m.length;Q++){var X=m[Q];if(Q==m.length-1){X!="."&&q.files_.push(b);break}var I=q.directoryMap_[X];I==void 0&&(X=
I=new XQ(X),q.directoryMap_[X.getName()]=X,q.directories_.push(X));q=I}t=t.directories_}this.dispatchEvent(new zlB(W,t,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new zlB([],[],new ivD(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=YRS(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var zlB=function(W,e){_.DY.call(this,"j");this.files=W;this.directories=e};
_.Z(zlB,_.DY);var UZy=function(W){this.uploadUrl_=W};var LFo=function(){_.ZY.call(this)};
_.QP(LFo,_.ZY);var cz=function(W){_.DY.call(this,W)};
_.QP(cz,_.DY);var vz=function(W){_.DY.call(this,W)};
_.QP(vz,_.DY);var ELb=function(W,e,t,b,m){_.ZY.call(this);t=document.createElement("form");t.setAttribute("method",e);t.setAttribute("enctype","multipart/form-data");t.setAttribute("encoding","multipart/form-data");e=document.createElement("input");e.setAttribute("type","hidden");e.setAttribute("name","metadata");e.setAttribute("value",m);t.appendChild(e);t.appendChild(b);this.JSC$10017_form_=t;W=new _.UT(W);_.UJ(W,"upload_protocol","multipart");this.JSC$10017_url_=W.toString();this.JSC$10017_request_=new tX;this.state_=
"Ready";this.JSC$10017_errorDescription_=null;this.JSC$10017_eventHandler_=new _.bk(this);_.w$(this,this.JSC$10017_eventHandler_);this.JSC$10017_eventHandler_.listen(this.JSC$10017_request_,"success",this.onTransferSuccess_);this.JSC$10017_eventHandler_.listen(this.JSC$10017_request_,"error",this.onTransferError_)};
_.Z(ELb,LFo);_.r=ELb.prototype;_.r.run=function(){this.state_="Transferring";var W=this.JSC$10017_request_,e=this.JSC$10017_form_;if(W.JSC$9435_active_)throw Error("oe");var t=new _.UT(this.JSC$10017_url_||e.action);W.JSC$9435_form_=e;e=W.JSC$9435_form_;t=_.pF(t.toString());t!==void 0&&(e.action=t);$ub(W)};
_.r.getResponseCode=function(){return null};
_.r.getResponseText=function(){return this.JSC$10017_request_&&this.JSC$10017_request_.getResponseText()||null};
_.r.JSC$25966_getErrorDescription=function(){return this.JSC$10017_errorDescription_};
_.r.cancel=function(){this.JSC$10017_request_&&this.JSC$10017_request_.abort();this.state_="Cancelled";this.dispatchEvent(new cz("o"))};
_.r.pause=function(){};
_.r.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new cz("l"))};
_.r.onTransferError_=function(){this.JSC$10017_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new cz("n"))};var Gr=function(){_.fV.call(this)};
_.Z(Gr,_.fV);Gr.prototype.createXhr=function(){var W=_.fV.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.p3)(this.onProgress_,this));return W};
Gr.prototype.onProgress_=function(W){this.dispatchEvent(W)};var A38=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},dZD=function(W,e){var t=W.attempt_+1;
if(W.maxAttempts_>0&&t>W.maxAttempts_)return!1;t==0?e():W.delayCallId_=jF(function(){W.delayCallId_=null;e()},Nke(W),W);
W.attempt_=t;return!0};
A38.prototype.reset=function(){this.delayCallId_&&_.tz.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Nke=function(W){var e=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(e=Math.min(e,W.maxDelayMs_));return e};var Hdv=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Dh=function(){_.ZY.call(this);this.JSC$10027_request_=this.state_=null;this.JSC$10027_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10027_bytesTransferred_=0;this.retryIterator_=new A38;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10027_errorDescription_=null;this.JSC$10027_eventHandler_=new _.bk(this);_.w$(this,this.JSC$10027_eventHandler_);this.JSC$10027_url_=this.blob_=null;this.JSC$10027_method_=void 0;this.chunkSize_=this.JSC$10027_metadata_=
this.JSC$10027_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10027_responseText_=this.JSC$10027_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.QP(Dh,LFo);_.r=Dh.prototype;_.r.run=function(){SO(this)};
_.r.getResponseCode=function(){return this.JSC$10027_responseCode_};
_.r.getResponseText=function(){return this.JSC$10027_responseText_};
_.r.JSC$25966_getErrorDescription=function(){return this.JSC$10027_errorDescription_};
_.r.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10027_eventHandler_.removeAll();this.JSC$10027_request_&&this.JSC$10027_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new Gr,W.JSC$7842_withCredentials_=this.JSC$10027_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10027_bytesTransferred_=
0;this.dispatchEvent(new cz("o"))}};
_.r.pause=function(){this.pauseRequested_=!0};
var SO=function(W){var e=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=e,W.state_="Paused"):dZD(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$10027_request_=new Gr;var t=_.kJ.clone(W.JSC$10027_headers_);W.blob_.size!=null&&(t["Content-Length"]=W.blob_.size);t=K5G(t);t["X-Goog-Upload-Protocol"]="resumable";t["X-Goog-Upload-Command"]="start";W.JSC$10027_eventHandler_.removeAll();W.JSC$10027_eventHandler_.listen(W.JSC$10027_request_,"complete",W.onStartComplete_);
W.JSC$10027_request_.JSC$7842_withCredentials_=W.JSC$10027_withCredentials_;W.JSC$10027_request_.send(W.JSC$10027_url_,W.JSC$10027_method_,W.JSC$10027_metadata_,t);W.lastCommandResponseCode_=null;W.dispatchEvent(new vz("q"));break;case "Upload":t=W.transferHandle_.uploadUrl_;var b=W.blob_.size;if(FnU()){var m=W.chunkSize_;var q=W.offset_+m>=b;b=Q_D(W.blob_,W.offset_,q?b:W.offset_+m)}else W.offset_=0,b=W.blob_,q=!0;W.JSC$10027_request_=new Gr;W.JSC$10027_request_.JSC$7842_withCredentials_=W.JSC$10027_withCredentials_;
W.JSC$10027_eventHandler_.removeAll();W.JSC$10027_eventHandler_.listen(W.JSC$10027_request_,"progress",W.onUploadProgress_);m=(0,_.p3)(W.JSC$10029_onUploadComplete_,W,W.offset_+b.size,q);W.JSC$10027_eventHandler_.listen(W.JSC$10027_request_,"complete",m);W.lastCommandResponseCode_=null;W.dispatchEvent(new vz("q"));q=Object.assign({},W.JSC$10027_headers_||{},{"X-Goog-Upload-Command":"upload"+(q?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$10027_request_.send(t,"POST",b,q);break;case "Query":W.JSC$10027_request_=
new Gr;W.JSC$10027_eventHandler_.removeAll();W.JSC$10027_eventHandler_.listen(W.JSC$10027_request_,"complete",W.onQueryComplete_);t=Object.assign({},W.JSC$10027_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$10027_request_.send(W.transferHandle_.uploadUrl_,"POST","",t);W.lastCommandResponseCode_=null;W.dispatchEvent(new vz("q"));break;default:throw Error("df");}})||Bz(W,"Transfer encountered too many consecutive failures.")},Bz=function(W,e){W.state_="Error";
W.JSC$10027_errorDescription_=e;W.dispatchEvent(new cz("n"))};
Dh.prototype.onStartComplete_=function(W){var e=W.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new vz("r"));if(WzZ(e))eHb(this,e);else if(tjP(e)){W=Nc(W.target.getAllResponseHeaders());for(var t in W)_.m2(t.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new cz("m"));t=k4(W,"X-Goog-Upload-URL");W=(W=k4(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;t===void 0||isNaN(W)||W<=0?Bz(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new UZy(t),this.dispatchEvent(new cz("p")),this.state_="Upload",this.retryIterator_.reset(),SO(this))}else SO(this)};
Dh.prototype.onUploadProgress_=function(W){this.JSC$10027_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new cz("k"))};
Dh.prototype.JSC$10029_onUploadComplete_=function(W,e,t){var b=this,m,q;return _.F(function(Q){switch(Q.nextAddress){case 1:m=t.target;b.lastCommandResponseCode_=m.getStatus();b.dispatchEvent(new vz("r"));if(bnv(m)||m.getStatus()==404)return b.JSC$10027_bytesTransferred_=W,eHb(b,m),Q.return();if(tjP(m)){Q.jumpTo(2);break}if(!(q=b.detectCorruptedBlobEnabled_)){Q.jumpTo(3);break}return _.a(Q,mwB(b),4);case 4:q=Q.yieldResult;case 3:if(q)return Bz(b,"Blob has been modified or corrupted."),Q.return();
b.requireUploadRequestModification_=m.getStatus()==400;b.state_="Query";SO(b);return Q.return();case 2:if(e)return Bz(b,"Got a non-final success response after issuing a finalize command."),Q.return();b.JSC$10027_bytesTransferred_=W;b.offset_=W;b.retryIterator_.reset();SO(b);return Q.return()}})};
Dh.prototype.onQueryComplete_=function(W){var e=W.target;this.lastCommandResponseCode_=e.getStatus();this.dispatchEvent(new vz("r"));WzZ(e)?(e.getStatus()===200&&(this.JSC$10027_bytesTransferred_=this.blob_.size),eHb(this,e)):tjP(e)?(W=Nc(W.target.getAllResponseHeaders()),W=parseInt(k4(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?Bz(this,"Server did not respond with current offset."):W<this.offset_?Bz(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?Bz(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$10027_bytesTransferred_=W,this.state_="Upload",SO(this))):SO(this)};
var eHb=function(W,e){W.JSC$10027_responseCode_=e.getStatus();var t=Nc(e.getAllResponseHeaders());PDs(t);W.JSC$10027_responseText_=e.getResponseText();W.state_="Response received";W.dispatchEvent(new cz("l"))},tjP=function(W){var e=W.getStatus();
W=Nc(W.getAllResponseHeaders());W=k4(W,"X-Goog-Upload-Status");return e===200&&W==="active"},bnv=function(W){W=Nc(W.getAllResponseHeaders());
return k4(W,"X-Goog-Upload-Status")==="final"},WzZ=function(W){if(bnv(W))return!0;
W=W.getStatus();return W>=400&&W<500},mwB=function(W){var e;
return _.F(function(t){if(t.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return t.return(!1);if(W.blob_.size!==W.originalBlobSize_)return t.return(!0);_.Qh(t,2);if(e=Q_D(W.blob_,0,1)){var b=new hB,m=HeP(b);b.reader_.readAsBinaryString(e);t=_.a(t,m,4)}else t=t.return(!0);return t}if(t.nextAddress!=2)return t.return(W.blob_.size!==W.originalBlobSize_);_.w9(t);return t.return(!0)})};var riZ=function(W,e,t,b,m,q){_.ZY.call(this);this.payload_=b;this.JSC$10030_url_=W;this.JSC$10030_method_=e;this.JSC$10030_headers_=t;this.JSC$10030_metadata_=m;this.encoding_=q||"binary";W=new _.$F;this.boundary_="uploader-"+iQ()+"-"+W.JSC$9284_toIsoString();this.JSC$10030_responseText_=this.JSC$10030_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10030_errorDescription_=null;this.JSC$10030_eventHandler_=new _.bk(this);_.w$(this,this.JSC$10030_eventHandler_)};
_.Z(riZ,LFo);_.r=riZ.prototype;
_.r.run=function(){var W=_.kJ.clone(this.JSC$10030_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=K5G(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Gr;this.JSC$10030_eventHandler_.removeAll();this.JSC$10030_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10030_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10030_url_,this.JSC$10030_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10030_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",W)};
_.r.getResponseCode=function(){return this.JSC$10030_responseCode_};
_.r.getResponseText=function(){return this.JSC$10030_responseText_};
_.r.JSC$25966_getErrorDescription=function(){return this.JSC$10030_errorDescription_};
_.r.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10030_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new cz("o")))};
_.r.pause=function(){};
_.r.onTransferProgress_=function(){this.dispatchEvent(new cz("k"))};
_.r.onTransferComplete_=function(W){var e=W.target.getStatus();e===void 0||e===-1?(this.JSC$10030_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new cz("n"))):(this.JSC$10030_responseCode_=e,W=W.target,e=Nc(W.getAllResponseHeaders()),PDs(e),this.JSC$10030_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new cz("l")))};_.qlb=function(W,e,t,b){b=b===void 0?!1:b;if(t instanceof ivD)return new ELb(W,"POST",e,t.getInputElement(),"");if(typeof t==="string"||t instanceof String)return new riZ(W,"POST",e,t,"");var m=new Dh(void 0);m.JSC$10027_url_=W;m.JSC$10027_method_="POST";m.JSC$10027_headers_=e;m.blob_=t;m.originalBlobSize_=t.size;m.JSC$10027_metadata_="";b&&(m.JSC$10027_withCredentials_=b);m.state_="Start";return m};var o7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(o7,_.Ow);_.r=o7.prototype;_.r.getEnableSsEngine=function(){return _.nY(this,2)};
_.r.getEnableAwr=function(){return _.nY(this,3)};
_.r.getAlohaAutoGaRollout=function(){return _.nY(this,5)};
_.r.getEnableConfigurator=function(){return _.nY(this,6)};
_.r.getEnableMweb=function(){return _.nY(this,7)};
var Q4B=function(){var W=RHk();return _.y5(W,7,!0)};
o7.prototype.getEnableCtlConsentCheckbox=function(){return _.nY(this,8)};
o7.prototype.getEnableIframe=function(){return _.nY(this,9)};
var RHk=function(){var W=new o7;W=_.y5(W,5,!0);W=_.y5(W,2,!0);W=_.y5(W,4,!1);W=_.y5(W,8,!0);return _.y5(W,9,!0)};
o7.prototype.getEnableScreenshotNudge=function(){return _.nY(this,10)};
var FzB=function(){var W=Q4B();return _.y5(W,10,!0)};
o7.prototype.getEnableWebStartupConfigEndpoint=function(){return _.nY(this,11)};
o7.prototype.getEnableJunkNudge=function(){return _.nY(this,12)};
var QrD=function(){var W=FzB();return _.y5(W,12,!0)};
_.r=o7.prototype;_.r.getEnableConfiguratorLocale=function(){return _.nY(this,13)};
_.r.getEnableTinyNoPointer=function(){return _.nY(this,14)};
_.r.getEnableSupportSessionLogging=function(){return _.nY(this,15)};
_.r.getEnableFileUploadForScreenshot=function(){return _.nY(this,16)};
_.r.getEnableDirectDeflectionForSingleCategory=function(){return _.nY(this,17)};
_.r.getEnableImageSanitization=function(){return _.nY(this,18)};
_.r.getEnableAlohaBinarySplit=function(){return _.nY(this,19)};
_.r.getEnableDbFeedbackIntents=function(){return _.nY(this,20)};
_.r.getEnableMarkMandatoryFieldsWithRequired=function(){return _.nY(this,21)};
_.r.getEnableFeedbackCategoryCustomUi=function(){return _.nY(this,22)};
_.r.getEnableRealtimeCtl=function(){return _.nY(this,23)};var R1Z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(R1Z,_.Ow);var VQZ=[/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 Y89="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 zS9=_.Nw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),UWD=_.Nw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var EVS,dWc,Atc,W6Q;var XNk,Iny;
XNk=function(W,e,t){W.timeOfStartCall=(new Date).getTime();var b=t||_.tz,m=b.document,q=W.nonce||_.JK(b.document);q&&!W.nonce&&(W.nonce=q);if(W.flow=="help"){var Q=_.HO("document.location.href",b);!W.helpCenterContext&&Q&&(W.helpCenterContext=Q.substring(0,1200));Q=!0;if(e&&JSON&&JSON.stringify){var X=JSON.stringify(e);(Q=X.length<=1200)&&(W.psdJson=X)}Q||(e={invalidPsd:!0})}e=[W,e,t];b.GOOGLE_FEEDBACK_START_ARGUMENTS=e;t=W.feedbackServerUri||"//www.google.com/tools/feedback";if(Q=b.GOOGLE_FEEDBACK_START)Q.apply(b,e);
else{b=t+"/load.js?";for(var I in W)e=W[I],e==null||_.tk(e)||(b+=encodeURIComponent(I)+"="+encodeURIComponent(e)+"&");W=vK(m).createElement("SCRIPT");q&&W.setAttribute("nonce",q);_.H7(W,_.Fh(b));m.body.appendChild(W)}};
Iny=function(W,e,t,b){var m,q;_.F(function(Q){m=t||_.tz;var X=W.serverEnvironment==="DEV",I=t||_.tz;I=W.nonce||_.JK(I.document);X={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:X,nonce:I,useNightlyRelease:X,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};e&&(I=new Map(Object.entries(e)),X.extraData.productSpecificData=I);q=X;return _.a(Q,m3L(q,b,m),0)})};
_.ano=function(W,e,t){try{if(W.flow==="help"){var b=W.helpCenterPath.replace(/^\//,"");_.Ty(t||window,"https://support.google.com/"+b)}else W.flow==="submit"?XNk(W,e,t):F6D(W.productId,W.feedbackServerUri).then(function(m){m=_.mx(m,o7,1);var q=!kjc||(m==null?void 0:m.getEnableMweb()),Q=!W.tinyNoPointer||(m==null?void 0:m.getEnableTinyNoPointer());!m||m.getAlohaAutoGaRollout()&&q&&Q?Iny(W,e,t,m):XNk(W,e,t)},function(m){m&&m.name!=="DuplicateFormError"&&XNk(W,e,t)})}catch(m){Iny(W,e,t,null)}};
_.Nz("userfeedback.api.startFeedback",_.ano);var Xq9=/https?:\/\/\S+\.\S+/,IYz=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],aYv=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var XyG=function(W){var e=W.split(""),t=[-263237435,15,e,function(b,m,q){var Q=m.length;q.forEach(function(X,I,u){this.push(u[I]=m[(m.indexOf(X)-m.indexOf(this[I])+I+Q--)%m.length])},b.split(""))},
function(b,m){b=(b%m.length+m.length)%m.length;m.splice(-b).reverse().forEach(function(q){m.unshift(q)})},
"response",function(){for(var b=64,m=[];++b-m.length-32;){switch(b){case 58:b-=14;case 91:case 92:case 93:continue;case 123:b=47;case 94:case 95:case 96:continue;case 46:b=95}m.push(String.fromCharCode(b))}return m},
null,12,1540023973,65941107,null,e,function(b,m){for(b=(b%m.length+m.length)%m.length;b--;)m.unshift(m.pop())},
695603893,function(b){for(var m=b.length;m;)b.push(b.splice(--m,1)[0])},
"'[;'[(",function(b,m){b.push(m)},
null,function(b,m,q,Q,X){return m(q,Q,X)},
"continuation",e,function(b,m){if(b.length!=0){m=(m%b.length+b.length)%b.length;var q=b[0];b[0]=b[m];b[m]=q}},
function(){for(var b=64,m=[];++b-m.length-32;){switch(b){case 91:b=44;continue;case 123:b=65;break;case 65:b-=18;continue;case 58:b=96;continue;case 46:b=95}m.push(String.fromCharCode(b))}return m},
'"),/]];'];t[7]=t;t[11]=t;t[18]=t;try{(((0,t[15])(t[21]),t[22])(t[11],t[9]),t[22])(t[new Date("1970-01-01T04:30:12.000+04:30")/1E3],t[1]),((0,t[22])(t[11],t[23]),t[4])(t[10],t[18]),(0,t[20])(t[21],t[14])<<(0,t[17])(t[18],t[1]),(0,t[4])(t[8],t[21]),(0,t[19])((0,t[19])((0,t[17])(t[7],t[9]),t[3],t[20],(0,t[6])(),t[2]),t[3],t[5],(0,t[15])(),t[2])}catch(b){return"aTlOUOubTO4AP____8P_"+W}return e.join("")};_.wNv=new _.z("runAttestationCommand");var uqr=new _.z("verifyCommand");_.ly=new _.z("accessibilityContext");var ciP=new _.z("accessibilityData");var vBv=new _.z("profileCardCommand");var oC9=new _.z("signInEndpoint");var BKR=new _.z("signOutEndpoint");var DwP;_.GLr=new _.z("accountItemSectionRenderer");DwP=new _.z("accountItemRenderer");_.SlN=new _.z("saveCommandToSessionStorageAction");var B08=new _.z("crossAccountChannelTransferEndpoint");var v_g=new _.z("getAccountMenuEndpoint");_.GsG=new _.z("getAccountSwitcherEndpoint");var cYs=new _.z("getAccountsListEndpoint");var oBB=new _.z("getAccountsListInnertubeEndpoint");_.Zh=new _.z("addToToastAction");var lnr=new _.z("hideEnclosingAction");_.$i=new _.z("replaceEnclosingAction");var Zno=new _.z("buttonRefreshAction");var $w8=new _.z("adsControlFlowOpportunityReceivedCommand");var kLy=new _.z("openAdAllowlistInstructionCommand");var pNr=new _.z("videoMastheadAdPrimaryVideoRenderer");var yir=new _.z("displayAdRenderer");var YuD=new _.z("instreamVideoAdRenderer");_.j4U=new _.z("inFeedAdLayoutRenderer");var CCN=new _.z("sequenceItemInPlayerAdLayoutRenderer");_.nBy=new _.z("adSlotRenderer");var fn8=new _.z("adAvatarViewModel");var gBB=new _.z("adBadgeViewModel");var T0P=new _.z("adImageViewModel");var JlR=new _.z("reelsAdCardButtonedViewModel");var JiU=new _.z("reelsPlayerOverlayLayoutViewModel");var xwv=new _.z("showSchedulingPanelCommand");var Onr=new _.z("backstageCommentsRenderer");var MjU=new _.z("backstageImageRenderer");var s4r=new _.z("backstagePostRenderer");var hHe=new _.z("postRenderer");var HnB=new _.z("sharedPostRenderer");var Kzy=new _.z("createBackstagePostEndpoint");var PCv=new _.z("getPostVideoPreviewEndpoint");var Vjr=new _.z("updateBackstagePostEndpoint");var inS=new _.z("filterChipTransformCommand");var YlS=new _.z("insertRichSectionCommand");var QnD=new _.z("talkToRecsDeselectCommand");var zHk=new _.z("talkToRecsNextCommand");var RvZ=new _.z("talkToRecsSelectCommand");var UwZ=new _.z("talkToRecsUpdateTextCommand");_.Sf=new _.z("browseEndpoint");_.Lzo=new _.z("confirmDialogEndpoint");var EBy=new _.z("expandOnHoverCardRenderer");var AiB=new _.z("lumiereShelfDetailsRenderer");var N0e=new _.z("revealBusinessEmailCommand");var dwr=new _.z("validateChannelHandleCommand");var WcB=new _.z("channelCreationFormEndpoint");var ezS=new _.z("aboutChannelViewModel");var tuD=new _.z("channelThumbnailWithLinkRenderer");var bYB=new _.z("channelCreationServiceEndpoint");var m7y=new _.z("updateChannelPageSettingsEndpoint");var ki=function(W){this.delegate=W},pf=function(){ki.apply(this,arguments)};
_.Z(pf,ki);_.Ec.Object.defineProperties(pf.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var rsS=function(){pf.apply(this,arguments)};
_.Z(rsS,pf);rsS.prototype.getAssociations=function(){return[]};var CHD=new _.z("webThumbnailDetailsExtensionData");var G8D=new _.z("commandContext");var qqU=new _.z("addVideoLinkAction");var RzS=new _.z("createPollAction");var QPe=new _.z("hideIdentityChipAction");var FcZ=new _.z("openUpdateCommentDialogAction");var y9=new _.z("updateBackstagePollAction");var Xbb=new _.z("updateCommentVoteAction");var IIZ=new _.z("commentThreadRenderer");var aIU=function(){pf.apply(this,arguments)};
_.Z(aIU,pf);aIU.prototype.getAssociations=function(){return[]};_.wbe=new _.z("commentDialogRenderer");var ui8=new _.z("reloadCommentsCommand");var csB=new _.z("updateCommentsSettingsEndpoint");var v2y=new _.z("commentViewModel");var G9S=new _.z("triStateButtonViewModel");var D7o=new _.z("voiceReplyContainerViewModel");_.wy=new _.z("commandExecutorCommand");var J_=new _.z("emoji");var SqN=new _.z("updateCreatorChannelInnertubeCommand");_.B28=new _.z("appendContinuationItemsAction");_.o28=new _.z("changeEngagementPanelVisibilityAction");_.hp=new _.z("continuationCommand");var lIZ=new _.z("listMutationCommand");_.jO=new _.z("openPopupAction");var ZYy=new _.z("persistSubscriptionsDisplayPreferencesCommand");var fIr;_.$7o=new _.z("playlistRemoveVideosAction");_.k9k=new _.z("updatePlaylistAction");_.pbN=new _.z("addToPlaylistCommand");_.ysh=new _.z("endPlaylistCommand");_.jPy=new _.z("recoverPlaylistCommand");_.CIU=new _.z("refreshPlaylistCommand");_.n2S=new _.z("refreshFormCommand");fIr=new _.z("openOnePickAddVideoModalCommand");_.ZNG=new _.z("reloadContinuationItemsCommand");_.g28=new _.z("scrollToEngagementPanelCommand");var T2B=new _.z("selectCountryCommand");var Js8=new _.z("showReloadUiCommand");var x7r=new _.z("undoFeedbackAction");var OY8=new _.z("updateButtonAction");var Muy=new _.z("updateSubscribeButtonAction");var sPv=new _.z("updateToggleAction");var hz8=new _.z("webNativeShareCommand");_.ez=new _.z("webCommandMetadata");_.Cf=new _.z("webHandleServiceEndpointExtension");var lp9=new _.z("webNavigationEndpointData");var HYh=new _.z("copyLinkCommand");var Kcb=new _.z("playlistVotingRefreshPopupCommand");var PIy=new _.z("selectChipCommand");var VuZ=new _.z("setCookieCommand");var iYU=new _.z("setLocalStorageCommand");var Yq8=new _.z("setPrefStorageEntryCommand");var E2P;_.zzk=new _.z("settingsUpdateCheckboxCommand");_.U7e=new _.z("settingsUpdateTextCommand");_.Lcr=new _.z("settingsUpdateOptionsCommand");E2P=new _.z("settingsUpdateSwitchCommand");_.AsP=new _.z("settingsUpdateConnectedAppRendererCommand");var N2e=new _.z("updateTextInputFormFieldRendererCommand");var d7h=new _.z("updateToggleButtonStateCommand");var W5D=new _.z("updateUrlParamCommand");var eS8=new _.z("webSubmitFormCommand");var tQk=new _.z("channelSwitcherPageRenderer"),bd8=new _.z("updateChannelSwitcherPageAction");_.Q$=new _.z("continuationItemRenderer");_.nf=new _.z("richItemRenderer");var mW8=new _.z("richSectionRenderer");_.rtP=new _.z("richShelfRenderer");_.q8y=new _.z("metadataBadgeRenderer");_.RSy=new _.z("multiPageMenuNotificationSectionRenderer");_.QtZ=new _.z("playlistLoopButtonStateRenderer");var F5k=new _.z("claimLegacyYoutubeChannelEndpoint");var X9P=new _.z("getNotificationMenuEndpoint");var Iuy=new _.z("getSearchInVideoCommand");_.auP=new _.z("getTranscriptEndpoint");_.c6=new _.z("signalServiceEndpoint");var w98=new _.z("verifyAgeEndpoint");var wyD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(wyD,_.Ow);wyD.prototype.getPath=function(){return _.T9(this,1)};
wyD.prototype.getValue=function(){return _.T9(this,2)};var uLv=[0,_.LY,-1];var ctU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ctU,_.Ow);var aPz=_.NS(ctU,[0,_.Eq,uLv]);var vVv=new _.z("dismissalEndpoint");var GXP=new _.z("elementsCommand");_.OD=new _.z("innertubeCommand");var DWZ=new _.z("multipleInlinePlaybackCommand");var qsG=new _.z("loggingDirectives");var S8o=new _.z("acknowledgeChannelTouStrikeCommand");var BjP=function(){pf.apply(this,arguments)};
_.Z(BjP,pf);BjP.prototype.getAssociations=function(){return[]};var oVv=function(){pf.apply(this,arguments)};
_.Z(oVv,pf);oVv.prototype.getAssociations=function(){return[]};var EZ=new _.z("entityBatchUpdate");_.luD=new _.z("entityUpdateCommand");var ZdB=function(){pf.apply(this,arguments)};
_.Z(ZdB,pf);ZdB.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.kP(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.kP(new Set(W)))};var $WD=function(){pf.apply(this,arguments)};
_.Z($WD,pf);$WD.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.kP(new Set(W)))};
var kXU=function(){pf.apply(this,arguments)};
_.Z(kXU,pf);kXU.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var e=_.R(this.delegate.entries),t=e.next();!t.done;t=e.next())W.push.apply(W,_.kP((new p9h(t.value)).getAssociations()));return[].concat(_.kP(new Set(W)))};
var p9h=function(){ki.apply(this,arguments)};
_.Z(p9h,ki);p9h.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.kP(new Set(W)))};var ytb=function(){pf.apply(this,arguments)};
_.Z(ytb,pf);ytb.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.kP(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.kP(new Set(W)))};
var jto=function(){pf.apply(this,arguments)};
_.Z(jto,pf);jto.prototype.getAssociations=function(){return[]};var CDB=new _.z("fantasyRosterViewModel");var nVB=new _.z("addFollowUpSurveyCommand");var fuv=new _.z("getSurveyCommand");var gVb=new _.z("ratingSurveyOptionRenderer");_.Ol=new _.z("feedbackEndpoint");var Tjy=new _.z("reportHistoryTableCellRenderer"),Jt8=new _.z("reportHistoryTableTextCellRenderer"),xWo=new _.z("reportHistoryTableReasonCellRenderer");_.OdD=new _.z("flagEndpoint");var MQS=new _.z("getFlowCommand");var sth=new _.z("submitFormWithValidationFlowCommand");var hSD=function(){pf.apply(this,arguments)};
_.Z(hSD,pf);hSD.prototype.getAssociations=function(){return[]};var Hdh=new _.z("flowFormState");var K5P=new _.z("gameCardRenderer");var PDo=new _.z("accountLinkingStateChangedCommand");var VQU=function(){pf.apply(this,arguments)};
_.Z(VQU,pf);VQU.prototype.getAssociations=function(){return[]};var idr=new _.z("changeMiniAppPlayStateCommand");var Y8v=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Y8v,_.Ow);var ff=[1,2,3];var zSv=[0,ff,WCg,_.ejL,zXD];var UWb=_.NS(Y8v,zSv),L5e=_.dl(zSv);var EVZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(EVZ,_.Ow);var AtN=[0,_.Y2,_.LY];var Njr=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Njr,_.Ow);var dWN=[0,_.LY,_.Y2,-1];var gv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gv,_.Ow);var W6r=function(W,e){return _.rT(W,3,e)};var e1y=_.dl([0,1,AtN,_.N7,dWN]);var tFh=new _.z("miniAppScoreChallengeViewModel");var bVo=new _.z("miniGameCardViewModel");var m3S=new _.z("teaserCardViewModel");var rnS=function(){pf.apply(this,arguments)};
_.Z(rnS,pf);rnS.prototype.getAssociations=function(){return[]};_.qXe=new _.z("feedbackItemRenderer");var R1U=function(){pf.apply(this,arguments)};
_.Z(R1U,pf);R1U.prototype.getAssociations=function(){return[]};_.Qrb=new _.z("playerInterstitialRenderer");var F6b=new _.z("getKidsBlocklistPickerCommand");_.Xqv=new _.z("updateKidsBlacklistEndpoint");_.UR=new _.z("likeEndpoint");var IYk,aYh,wqh;IYk=new _.z("addChatItemAction");aYh=new _.z("removeChatItemAction");wqh=new _.z("markChatItemAsDeletedAction");_.upv=new _.z("setLiveChatCollapsedStateAction");var cnv=function(){pf.apply(this,arguments)};
_.Z(cnv,pf);cnv.prototype.getAssociations=function(){return[]};var vre=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(vre,_.Ow);var GDZ=_.NS(vre,[0,1,_.Y2]);var D3D=new _.z("liveChatEndpoint");var SXS=new _.z("liveChatItemContextMenuEndpoint");var Bu8=new _.z("liveChatReplayEndpoint");_.orB=new _.z("emojiPickerRenderer");var lYb=new _.z("liveChatAuthorBadgeViewModel");var ZVk=new _.z("deleteLiveChatMessageCommand");var $3h=new _.z("liveChatActionEndpoint");var kDo=new _.z("createLiveChatPollEndpoint");var pqr=new _.z("manageLiveChatUserEndpoint");var ynB=new _.z("moderateLiveChatEndpoint");_.jrv=new _.z("sendLiveChatMessageEndpoint");var Cjv=new _.z("sendLiveChatVoteEndpoint");var nry=new _.z("clearLocationCommand");var fYb=new _.z("resolveLocationCommand");var gry=new _.z("interactionLoggingCommandMetadata");var hRK=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(hRK,_.Ow);var ssR=function(W,e){return _.Rh(W,1,e)};var TuD=[0,_.Uq];var Myv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Myv,_.Ow);var Obg=function(W,e){return SI(W,1,hRK,e)};Myv.prototype.JSC$10122_serializeBinary=eyK([0,_.Eq,TuD]);var grR={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 Jne={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"},
x3Z={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 MG2={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"};_.zA9=new _.z("logFlowLoggingEventCommand");_.Bg=new _.z("loggingContext");var OVh=new _.z("captionLanguageSelectActionCommand");var MFh=new _.z("showCaptionLanguageSelectActionCommand");var srv=new _.z("dismissDialogEndpoint");var h1h=new _.z("hideItemSectionVideosByIdCommand");var HVh=new _.z("showMiniplayerCommand");var K6b=function(){pf.apply(this,arguments)};
_.Z(K6b,pf);K6b.prototype.getAssociations=function(){return[]};var PjP=function(){pf.apply(this,arguments)};
_.Z(PjP,pf);PjP.prototype.getAssociations=function(){return[]};var VFe=function(){pf.apply(this,arguments)};
_.Z(VFe,pf);VFe.prototype.getAssociations=function(){return[]};var iVv=function(){pf.apply(this,arguments)};
_.Z(iVv,pf);iVv.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.kP(new Set(W)))};var YXN=function(){pf.apply(this,arguments)};
_.Z(YXN,pf);YXN.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var e=_.R(this.delegate.downloads),t=e.next();!t.done;t=e.next())W.push.apply(W,_.kP((new z1r(t.value)).getAssociations()));return[].concat(_.kP(new Set(W)))};
var z1r=function(){ki.apply(this,arguments)};
_.Z(z1r,ki);z1r.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.kP(new Set(W)))};var U3r=function(){pf.apply(this,arguments)};
_.Z(U3r,pf);U3r.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.kP(this.delegate.localImageEntities));return[].concat(_.kP(new Set(W)))};var L6N=function(){pf.apply(this,arguments)};
_.Z(L6N,pf);L6N.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.kP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kP(new Set(W)))};var Erk=function(){pf.apply(this,arguments)};
_.Z(Erk,pf);Erk.prototype.getAssociations=function(){return[]};var An8=function(){pf.apply(this,arguments)};
_.Z(An8,pf);An8.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.kP(this.delegate.fakeChildren));return[].concat(_.kP(new Set(W)))};var Nuy=function(){pf.apply(this,arguments)};
_.Z(Nuy,pf);Nuy.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.kP(new Set(W)))};var d38=function(){pf.apply(this,arguments)};
_.Z(d38,pf);d38.prototype.getAssociations=function(){return[]};var WDy=function(){pf.apply(this,arguments)};
_.Z(WDy,pf);WDy.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.kP(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.kP(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.kP(new Set(W)))};var e6o=function(){pf.apply(this,arguments)};
_.Z(e6o,pf);e6o.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.kP(new Set(W)))};var toU=function(){ki.apply(this,arguments)};
_.Z(toU,ki);toU.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.kP((new bHk(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.kP(new Set(W)))};
var bHk=function(){ki.apply(this,arguments)};
_.Z(bHk,ki);bHk.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.kP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kP(new Set(W)))};var mRB=function(){ki.apply(this,arguments)};
_.Z(mRB,ki);mRB.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.kP(new Set(W)))};var rFr=function(){pf.apply(this,arguments)};
_.Z(rFr,pf);rFr.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.kP((new mRB(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.kP((new toU(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.kP(new Set(W)))};var qxb=function(){pf.apply(this,arguments)};
_.Z(qxb,pf);qxb.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.kP(new Set(W)))};var R6h=function(){pf.apply(this,arguments)};
_.Z(R6h,pf);R6h.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.kP(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.kP(new Set(W)))};var bfv=new _.z("downloadsPageSmartDownloadsOptInBannerParams");var Q8h=new _.z("downloadsPageUpsellBannerParams");var FDZ=function(){pf.apply(this,arguments)};
_.Z(FDZ,pf);FDZ.prototype.getAssociations=function(){return[]};var Xhe=function(){pf.apply(this,arguments)};
_.Z(Xhe,pf);Xhe.prototype.getAssociations=function(){return[]};var I6U=function(){pf.apply(this,arguments)};
_.Z(I6U,pf);I6U.prototype.getAssociations=function(){return[]};var a6S=function(){pf.apply(this,arguments)};
_.Z(a6S,pf);a6S.prototype.getAssociations=function(){return[]};var whP=function(){pf.apply(this,arguments)};
_.Z(whP,pf);whP.prototype.getAssociations=function(){return[]};var uHN=function(){pf.apply(this,arguments)};
_.Z(uHN,pf);uHN.prototype.getAssociations=function(){return[]};var cFU=function(){pf.apply(this,arguments)};
_.Z(cFU,pf);cFU.prototype.getAssociations=function(){return[]};var vZN=function(){pf.apply(this,arguments)};
_.Z(vZN,pf);vZN.prototype.getAssociations=function(){return[]};var GRy=function(){pf.apply(this,arguments)};
_.Z(GRy,pf);GRy.prototype.getAssociations=function(){return[]};_.Jv=new _.z("dislikeButtonViewModel");_.Tz=new _.z("likeButtonViewModel");var DRU=new _.z("videoSummaryContentViewModel");var Sxo=new _.z("videoSummaryParagraphViewModel");var BUB=new _.z("changeTimelyActionVisibilityCommand");var oZb=new _.z("hideEngagementPanelEndpoint");var l6y=new _.z("refreshPanelEndpoint");var ZHZ=new _.z("scrollToSectionEndpoint");var $Rk=new _.z("seekToVideoTimestampCommand");_.xB=new _.z("showEngagementPanelEndpoint");var kRe=new _.z("showTransientPlayerScrimOverlayCommand");var phr=new _.z("toggleEngagementPanelCommand");_.yFU=new _.z("createBroadcastCommand");var j8v=new _.z("metadataUpdateCommand");var CzU=function(){pf.apply(this,arguments)};
_.Z(CzU,pf);CzU.prototype.getAssociations=function(){return[]};var nZb=function(){pf.apply(this,arguments)};
_.Z(nZb,pf);nZb.prototype.getAssociations=function(){return[]};var f6b=function(){pf.apply(this,arguments)};
_.Z(f6b,pf);f6b.prototype.getAssociations=function(){return[]};_.gZB=new _.z("merchandiseShelfRenderer");var TUP=new _.z("gridMovieRenderer");_.JFU=new _.z("movieRenderer");var xRe=function(){pf.apply(this,arguments)};
_.Z(xRe,pf);xRe.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.kP(this.delegate.trackDownloadMetadatas));return[].concat(_.kP(new Set(W)))};var OHS=function(){pf.apply(this,arguments)};
_.Z(OHS,pf);
OHS.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.kP(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.kP(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.kP(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.kP(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.kP(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.kP(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.kP(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.kP(this.delegate.metadataOnlyTracks));return[].concat(_.kP(new Set(W)))};var MoN=function(){pf.apply(this,arguments)};
_.Z(MoN,pf);MoN.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.kP(this.delegate.trackDownloadMetadatas));return[].concat(_.kP(new Set(W)))};var s8B=function(){pf.apply(this,arguments)};
_.Z(s8B,pf);s8B.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.kP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kP(new Set(W)))};var h6h=function(){pf.apply(this,arguments)};
_.Z(h6h,pf);
h6h.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.kP(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.kP(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.kP(new Set(W)))};
var HHZ=function(){pf.apply(this,arguments)};
_.Z(HHZ,pf);HHZ.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.kP(this.delegate.tracks));return[].concat(_.kP(new Set(W)))};
var KDD=function(){pf.apply(this,arguments)};
_.Z(KDD,pf);KDD.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.kP(new Set(W)))};var Pze=function(){pf.apply(this,arguments)};
_.Z(Pze,pf);Pze.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.kP(new Set(W)))};
var Voe=function(){pf.apply(this,arguments)};
_.Z(Voe,pf);Voe.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.kP(new Set(W)))};
var iHk=function(){pf.apply(this,arguments)};
_.Z(iHk,pf);iHk.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.kP(new Set(W)))};var YxB=function(){pf.apply(this,arguments)};
_.Z(YxB,pf);YxB.prototype.getAssociations=function(){return[]};var z6S=function(){pf.apply(this,arguments)};
_.Z(z6S,pf);z6S.prototype.getAssociations=function(){return[]};var URU=function(){pf.apply(this,arguments)};
_.Z(URU,pf);
URU.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.kP(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.kP((new LDU(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.kP(new Set(W)))};
var LDU=function(){ki.apply(this,arguments)};
_.Z(LDU,ki);LDU.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.kP(new Set(W)))};var EZ8=function(){pf.apply(this,arguments)};
_.Z(EZ8,pf);EZ8.prototype.getAssociations=function(){return[]};var AFU=function(){pf.apply(this,arguments)};
_.Z(AFU,pf);
AFU.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.kP(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.kP(new Set(W)))};
var NUP=function(){pf.apply(this,arguments)};
_.Z(NUP,pf);NUP.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.kP(new Set(W)))};
var dR8=function(){pf.apply(this,arguments)};
_.Z(dR8,pf);dR8.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.kP(new Set(W)))};var mz=new _.z("musicResponsiveListItemRenderer");var yYg=new _.z("addToPlaylistEndpoint");var Wme=new _.z("captionPickerEndpoint");var eIr=new _.z("suggestStats");var tLh=new _.z("backstageImageUploadEndpoint");var bMB=new _.z("createBackstagePostDialogEndpoint");_.m_k=new _.z("createCommentReplyDialogEndpoint");_.rqU=new _.z("updateCommentDialogEndpoint");_.q5D=new _.z("updateCommentReplyDialogEndpoint");var RIN=new _.z("menuEndpoint");var SsZ=new _.z("modalEndpoint");var Q3D=new _.z("playlistEditorEndpoint");var Fme=new _.z("copyTextEndpoint");var X_e,I5v;X_e=new _.z("shareEndpoint");I5v=new _.z("shareEntityEndpoint");_.a5B=new _.z("shareEntityServiceEndpoint");_.h0Z=new _.z("userFeedbackEndpoint");_.z4=new _.z("watchEndpoint");var b7s=new _.z("watchPlaylistEndpoint");var w_N=new _.z("addUpcomingEventReminderEndpoint");_.Tr=new _.z("getCommentsFromInboxCommand");var uRB=new _.z("notificationOptOutEndpoint");var cqh=new _.z("recordNotificationInteractionsEndpoint");var vce=new _.z("removeUpcomingEventReminderEndpoint");var kss=new _.z("getDownloadActionCommand");_.GMr=new _.z("offlineOrchestrationActionCommand");var D_S=function(){pf.apply(this,arguments)};
_.Z(D_S,pf);D_S.prototype.getAssociations=function(){return[]};var S5v=function(){pf.apply(this,arguments)};
_.Z(S5v,pf);S5v.prototype.getAssociations=function(){return[]};var BLU=function(){pf.apply(this,arguments)};
_.Z(BLU,pf);BLU.prototype.getAssociations=function(){return[]};var ocP=function(){pf.apply(this,arguments)};
_.Z(ocP,pf);ocP.prototype.getAssociations=function(){return[]};var l5P=function(){pf.apply(this,arguments)};
_.Z(l5P,pf);l5P.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.kP(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.kP(new Set(W)))};var ZM8=function(){pf.apply(this,arguments)};
_.Z(ZM8,pf);ZM8.prototype.getAssociations=function(){return[]};var $_N=function(){pf.apply(this,arguments)};
_.Z($_N,pf);$_N.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.kP(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.kP(this.delegate.captionTrack));return[].concat(_.kP(new Set(W)))};var kMN=function(){pf.apply(this,arguments)};
_.Z(kMN,pf);kMN.prototype.getAssociations=function(){return[]};var p_B=new _.z("showMoreDrawerCommand");var yqD=new _.z("updateEngagementPanelContentCommand");var j3B=new _.z("getPdgBuyFlowCommand");var C9h=new _.z("liveChatPurchaseMessageEndpoint");var nc8=new _.z("openSuperStickerBuyFlowCommand");var f5h=new _.z("updatePdgFeatureEnablementCommand");var gcr=function(){pf.apply(this,arguments)};
_.Z(gcr,pf);gcr.prototype.getAssociations=function(){return[]};var TLS=function(){pf.apply(this,arguments)};
_.Z(TLS,pf);TLS.prototype.getAssociations=function(){return[]};_.JqU=new _.z("pdgCommentChipRenderer");_.x_y=new _.z("permissionRoleBottomBarRenderer");_.OM8=new _.z("updatePermissionRoleCommand");var MLZ=new _.z("prefetchWatchCommand");var s3r=new _.z("updatePlayerErrorMessageCommand");var D4z=new _.z("toggleCaptionsVisibilityCommand");_.hIh=new _.z("quickActionsViewModel");var HMr=new _.z("playerResponse");var KmD=new _.z("playlistRenderer");_.P9P=new _.z("playlistVideoListRenderer");_.Jr=new _.z("playlistEditEndpoint");var VLN=new _.z("createImagePollCommand");var iMh=new _.z("createQuizCommand");var Y5U=new _.z("quizRenderer");var zIo=new _.z("uploadedVideoRenderer");var U_h=new _.z("decorateMessageEndpoint");var LmN=new _.z("lpOfferCardOptionViewModel");var EcN=new _.z("sfvAudioItemPlaybackCommand");var AqD=function(){pf.apply(this,arguments)};
_.Z(AqD,pf);AqD.prototype.getAssociations=function(){return[]};_.xi=new _.z("reelNonVideoContentEndpoint");_.Za=new _.z("reelWatchEndpoint");_.OW=new _.z("reelItemRenderer");_.NLr=new _.z("reelMetapanelViewModel");_.d_N=new _.z("reelNonVideoContentRenderer");_.WKS=new _.z("reelPlayerOverlayRenderer");var eDZ=new _.z("shortsLockupViewModel");var tAy=new _.z("sponsorButtonViewModel");var bsr=new _.z("reelItemWatchResponse");var mGU=new _.z("textBadgeRenderer");_.Md=new _.z("buttonRenderer");_.sW=new _.z("toggleButtonRenderer");var liZ=new _.z("switchButtonViewModel");_.rBB=new _.z("confirmDialogRenderer");var qUh;qUh=new _.z("menuRenderer");_.RD8=new _.z("menuFlexibleItemRenderer");var QZb=new _.z("pollRenderer");_.FKy=new _.z("backgroundPromoRenderer");var Ick;_.XQh=new _.z("chipCloudRenderer");Ick=new _.z("chipCloudChipRenderer");var acy=new _.z("dropdownRenderer");var wQB=new _.z("gridVideoRenderer");_.uIb=new _.z("itemSectionRenderer");_.cBo=new _.z("messageRenderer");var vFN=new _.z("sortFilterHeaderRenderer");_.hr=new _.z("videoRenderer");var Gho=new _.z("resolveUrlCommandMetadata");var DGe=function(){pf.apply(this,arguments)};
_.Z(DGe,pf);DGe.prototype.getAssociations=function(){return[]};_.SUy=new _.z("getAnswerCommand");_.Bw=new _.z("searchEndpoint");var BJr=new _.z("genAiRichTextViewModel");var $4s=new _.z("overviewAnswerViewModel");var oFU=new _.z("addToPlaylistServiceEndpoint");var lcB=new _.z("clearSearchHistoryEndpoint");var ZsB=new _.z("clearWatchHistoryEndpoint");var $GD=new _.z("webSerializedServiceEndpointExtension");_.khe=new _.z("createCommentEndpoint");var pQ8=new _.z("createCommentReplyEndpoint");var yB8=new _.z("performCommentActionEndpoint");var jZ8=new _.z("updateCommentEndpoint");var CS8=new _.z("updateCommentReplyEndpoint");_.Hz=new _.z("createPlaylistServiceEndpoint");var JXe=new _.z("deletePlaylistEndpoint");var xU8=new _.z("deleteVideoEndpoint");var pER=new _.z("getReportFormEndpoint");var OxZ=new _.z("modifyChannelNotificationPreferenceEndpoint");var Psc;_.vS=new _.z("offlinePlaylistEndpoint");Psc={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 VkL;_.cS=new _.z("offlineVideoEndpoint");VkL={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 M3h=new _.z("pingingEndpoint");_.sUe=new _.z("selectActiveIdentityEndpoint");var h9v=new _.z("setSettingEndpoint");var FQS=new _.z("undoFeedbackEndpoint");var HxB=new _.z("unsubscribeEndpoint");_.KWP=new _.z("updatedMetadataEndpoint");var P$y=function(){pf.apply(this,arguments)};
_.Z(P$y,pf);P$y.prototype.getAssociations=function(){return[]};_.V38=new _.z("updateLocalAppSettingCommand");var ixB=new _.z("saveImageToDeviceEndpoint");var Y4y=new _.z("shareImageCommand");var z9b=new _.z("sharingProviderDataCommand");var UUZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(UUZ,_.Ow);var LWv=[0,_.LY,-1];UUZ.prototype.JSC$10323_serializeBinary=eyK(LWv);var EGy=_.dl(LWv);var AXh=new _.z("userMentionSuggestionRenderer");var Nfk=new _.z("liveChatTunnelCommand");var dUB=new _.z("showSponsorshipsGiftOfferDialogCommand");var WON=new _.z("sponsorshipsScrollableShelfViewModel");var ekr=new _.z("updateUpcomingEventReminderButtonStateCommand");var tOU=new _.z("upcomingEventReminderButtonStateRenderer");var bfh=new _.z("subscribeEndpoint");var mdS=new _.z("registerTasksCommand");var rrU=new _.z("hideSnackbarCommand");var qWP=new _.z("showDialogCommand");_.BS=new _.z("showSheetCommand");var RkU=new _.z("showSnackbarCommand");var Q7v=function(){pf.apply(this,arguments)};
_.Z(Q7v,pf);Q7v.prototype.getAssociations=function(){return[]};var FOr=function(){pf.apply(this,arguments)};
_.Z(FOr,pf);FOr.prototype.getAssociations=function(){return[]};_.LU=new _.z("avatarViewModel");var Xzb=new _.z("badgeViewModel");_.kb=new _.z("buttonViewModel");_.Kf=new _.z("chipViewModel");var gpL=new _.z("collectionThumbnailViewModel");var Ihe=new _.z("contentPreviewImageViewModel");var ahv=new _.z("decoratedAvatarViewModel");var Edz=new _.z("downloadButtonViewModel");_.ygL=new _.z("engagementBarViewModel");_.wzB=new _.z("imageBannerViewModel");var k5Z=new _.z("lockupContentMetadataRowExtension");var uQb=new _.z("lockupMetadataViewModel");_.crb=new _.z("lockupViewModel");var viB=new _.z("avatarStackViewModel");var GrD=function(){pf.apply(this,arguments)};
_.Z(GrD,pf);GrD.prototype.getAssociations=function(){return[]};_.Dde=new _.z("pageHeaderViewModel");var SWb=new _.z("snackbarViewModel");var Bvr=new _.z("thumbnailHoverOverlayToggleActionsViewModel");_.pU=new _.z("toggleButtonViewModel");var oih=function(){pf.apply(this,arguments)};
_.Z(oih,pf);oih.prototype.getAssociations=function(){return[]};_.jOz=new _.z("votingViewModel");var lhB=new _.z("sectionHeaderViewModel");var ZfS=new _.z("notifyDropdownOptionSelectedCommand");var xlc=new _.z("listViewModel");_.ov=new _.z("listItemViewModel");var $dv=new _.z("dialogHeaderViewModel");var krU=function(){pf.apply(this,arguments)};
_.Z(krU,pf);krU.prototype.getAssociations=function(){return[]};var pzb=function(){pf.apply(this,arguments)};
_.Z(pzb,pf);pzb.prototype.getAssociations=function(){return[]};var yrb=function(){pf.apply(this,arguments)};
_.Z(yrb,pf);yrb.prototype.getAssociations=function(){return[]};_.j78=new _.z("transcriptSubmitCaptionCorrectionCommand");var CyU=function(){pf.apply(this,arguments)};
_.Z(CyU,pf);CyU.prototype.getAssociations=function(){return[]};var RJR=new _.z("unpluggedStringRunImage");var nir=new _.z("tabViewModel");var fhU=new _.z("tabbedViewModel");var gir=function(){pf.apply(this,arguments)};
_.Z(gir,pf);gir.prototype.getAssociations=function(){return[]};_.Tvh=new _.z("updateDescriptionAction");var JrS=new _.z("updateToggleButtonTextAction");_.xdb=new _.z("autoplaySwitchButtonRenderer");var sl;_.Ofr=new _.z("multiMarkersPlayerBarRenderer");sl=new _.z("chapterRenderer");var MOo=new _.z("heatMarkerRenderer");var oYc=new _.z("heatmapRenderer");var s7B=new _.z("smartSkipPlayerScrimOverlayRenderer");var hkv=new _.z("timedMarkerDecorationRenderer");var coZ=new _.z("postWebToNativeMessageCommand");var Hfh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Hfh,_.Ow);var KOU=_.NS(Hfh,[0,_.LY,-2]);var Pyy=new _.z("whitelistEditEndpoint");var VOB=new _.z("clearUrlParamCommand");var ify=new _.z("commerceActionCommand");_.YWy=new _.z("getPaymentInstrumentsParamsCommand");var zkP=new _.z("getPaymentsClientTokenCommand");var Udy=new _.z("googlePaymentBillingCommand");var LOP=new _.z("googlePaymentPurchaseManagerCommand");_.EiU=new _.z("logGtmCommand");var ArZ=new _.z("updateCardItemOnClickCommand");_.NvD=new _.z("ypcPauseSubscriptionCommand");_.dde=new _.z("ypcResumeSubscriptionCommand");var WwD=function(){pf.apply(this,arguments)};
_.Z(WwD,pf);WwD.prototype.getAssociations=function(){return[]};var eYo=function(){pf.apply(this,arguments)};
_.Z(eYo,pf);eYo.prototype.getAssociations=function(){return[]};var t8b=function(){pf.apply(this,arguments)};
_.Z(t8b,pf);t8b.prototype.getAssociations=function(){return[]};var b5r=function(){pf.apply(this,arguments)};
_.Z(b5r,pf);b5r.prototype.getAssociations=function(){return[]};var mr8=function(){pf.apply(this,arguments)};
_.Z(mr8,pf);mr8.prototype.getAssociations=function(){return[]};var aFS=new _.z("ypcOffersEndpoint");var r2h=new _.z("cardItemRenderer"),qjb=new _.z("cardItemTextRenderer");var RYS=new _.z("commerceCartItemQuantityPickerRenderer");var Q0e=new _.z("linkCardRenderer");var FS9=new _.z("quantityIncrementerButtonViewModel");var FwP=new _.z("quantityIncrementerViewModel");var X2B=new _.z("themedImageViewModel");_.IBo=new _.z("ypcCancelRecurrenceEndpoint");var aBe=new _.z("ypcCompleteTransactionEndpoint");_.w2v=new _.z("ypcGetCartEndpoint");_.Rw=new _.z("ypcGetOffersEndpoint");_.Pz=new _.z("ypcHandleTransactionEndpoint");var uWB=new _.z("ypcLogWalletAnalyticDataEndpoint");_.c2P=new _.z("ypcRedeemCodeEndpoint");var v0D=new _.z("ypcUpdateFopEndpoint");rv(mO(1),tr(4));JfS((new MessageChannel).port2);var G3y=function(){this.register=new Map},Jn2=function(W,e,t){W=W+"_"+e;
V9.register.has(W)?t=V9.register.get(W):(t=t(),V9.register.set(W,t));return t},DrU=function(W){W=_.R(W.register.values());
for(var e=W.next();!e.done;e=W.next())_.GL(e.value,"ABORTED")};
G3y.prototype.clear=function(){DrU(this);this.register.clear()};
var V9=new G3y;var cn9=Date.now().toString();var GDS,SjP=_.tz.ytLoggingDocDocumentNonce_;SjP||(SjP=jV(16),_.Nz("ytLoggingDocDocumentNonce_",SjP));GDS=SjP;var kDs={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 BSD;BSD=1;_.Cc=function(W){this.veData=W};
_.$5=function(W){return new _.Cc({trackingParams:W})};
_.na=function(W,e,t,b,m,q){var Q=BSD++;return new _.Cc({veType:W,veCounter:Q,elementIndex:t,dataElement:e,youtubeData:b,jspbYoutubeData:m,loggingDirectives:q})};
_.r=_.Cc.prototype;
_.r.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.r.getAsJspb=function(){var W=new Uzh;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.sq(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.sq(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.sq(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Rh(W,5,!0));if(this.veData.dataElement!==void 0){var e=this.veData.dataElement.getAsJspb();_.bF(W,7,e)}this.veData.youtubeData!==void 0&&_.bF(W,8,this.veData.jspbYoutubeData);
return W};
_.r.toString=function(){return JSON.stringify(this.getAsJson())};
_.r.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.r.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Nz("yt_logging_screen.getRootVeType",lYD);_.Nz("yt_logging_screen.getCurrentCsn",_.fc);_.Nz("yt_logging_screen.getCttAuthInfo",g3);_.Nz("yt_logging_screen.setCurrentScreen",_.T4);var o0k=function(){this.events=new Map},lBB=function(W){var e=[];
W=_.R(W.events.values());for(var t=W.next();!t.done;t=W.next())e.push(t.value);return e};
o0k.prototype.clear=function(){this.events.clear()};var $rN=function(){this.logTransport=new Z5y;this.loggedEventRegister=new o0k;this.unloggedEventRegister=new o0k;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10380_flushTimer=new _.tj(this.flushInterval);this.JSC$10380_flushTimer.listen("tick",this.flush,!1,this)};
$rN.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:lBB(this.loggedEventRegister),unloggedEvents:lBB(this.unloggedEventRegister)};if(_.S("export_player_version_to_ytconfig")){var e;(e=_.Ot("PLAYER_CLIENT_VERSION"))?(e=e.split("-")[0].replace(/\./g,""),e=isNaN(Number(e))?"0":e):e="";var t=_.Ot("PLAYER_CLIENT_VERSION");if(t){t=t.split("-");var b="";t.length>1&&(b=t[t.length-1]);t=up9(b.startsWith("canary_experiment")?"canary":b.startsWith("canary_control")?"control":"none")}else t=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:e,playerCanaryState:t}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10380_flushTimer.enabled&&this.JSC$10380_flushTimer.stop()}};
var k3B=function(W){iy==null&&(iy=new $rN);var e=iy;var t=e.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.fc()||"";var b=jr9(W.dimensions).join(";");if(W.records!=null)if(t.events.has(b)){var m;(m=t.events.get(b).records)==null||m.push.apply(m,_.kP(W.records))}else t.events.set(b,W);e.JSC$10380_flushTimer.enabled||e.JSC$10380_flushTimer.start();e.eventsCount++;e.eventsCount>=100&&e.flush()};var Z5y=function(){};
Z5y.prototype.flush=function(W,e){_.S("enable_client_sli_logging")&&_.nJ("sliEventBatch",W,{sendIsolatedPayload:!!e})};var iy;var y2Z;y2Z=function(W){var e=p28;W=W===void 0?{}:W;e=e.name;var t=Tug("SUCCESS");k3B({dimensions:W,records:[{name:e,state:"SLI_STATE_END",status:t}]})};
_.x3S=function(W,e,t,b){this.name=W;this.sliId=e;this.timeoutMs=t;this.statusOnTimeout=b;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.x3S.prototype.getId=function(){return this.sliId};
_.vN=function(W,e){e=e===void 0?{}:e;W.ongoing||(W.ongoing=!0,W.dimensions=e,W.logSliId=ljb(),k3B({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.GL(W,W.statusOnTimeout)},W.timeoutMs)))};
_.GL=function(W,e){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,e={dimensions:W.dimensions,records:[{name:W.name,status:Tug(e),state:"SLI_STATE_END",sliId:W.logSliId}]},V9.register.delete(W.name+"_"+W.sliId),k3B(e))};var p28=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var j0h=function(){pf.apply(this,arguments)};
_.Z(j0h,pf);j0h.prototype.getAssociations=function(){return[]};var zJS=new _.z("highlightTextDecoratorColorMapExtension");var ijR=new _.z("styleRunColorMapExtension");var PjG=_.Nw(["data-"]),YXc={};var U3Q={};var Yi=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$10412_value_=null};
Yi.prototype.then=function(W,e,t){return this.wrappedPromise_?this.wrappedPromise_.then(W,e,t):this.state_===1&&W?(W=W.call(t,this.JSC$10412_value_))&&typeof W.then==="function"?W:_.zr(W):this.state_===2&&e?(W=e.call(t,this.JSC$10412_value_))&&typeof W.then==="function"?W:_.C6P(W):this};
Yi.prototype.getValue=function(){return this.JSC$10412_value_};
Yi.prototype.isRejected=function(){return this.state_==2};
VKB(Yi);_.C6P=function(W){var e=new Yi;W=W===void 0?null:W;e.state_=2;e.JSC$10412_value_=W===void 0?null:W;return e};
_.zr=function(W){var e=new Yi;W=W===void 0?null:W;e.state_=1;e.JSC$10412_value_=W===void 0?null:W;return e};var FDS="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var n0h=["load","abort","error"],UW=function(W,e,t){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10432_maxAspectRatio_=W;this.disableAnimation_=e===void 0?!1:e;this.disableExifRotation_=t===void 0?!1:t;this.JSC$10432_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10432_reject_=this.resolve_=null};
UW.prototype.transform=function(W){var e=this;this.mime_=W.type;LV(PcB(W),this.dataUrlRead_,this.readError_,this);LV(K1P(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(t,b){e.resolve_=t;e.JSC$10432_reject_=b})};
UW.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&fBP(this)};
UW.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var e=2,t=W.byteLength;e<t;){var b=W.getUint16(e),m=W.getUint16(e+2);if(b===65505){e+=4;b=W.getUint32(e);m=W.getUint16(e+4);if(b!==1165519206||m!==0)break;e+=6;b=W.getUint16(e)===18761;e+=W.getUint32(e+4,b);m=W.getUint16(e,b);e+=2;for(var q=0;q<m;q++){if(W.getUint16(e,b)===274){e+=8;W=W.getUint16(e,b);break a}e+=12}}else if(b>>8!==255)break;
else e+=m+2}W=-1}switch(W){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&&fBP(this)};
UW.prototype.readError_=function(){this.JSC$10432_reject_()};
var fBP=function(W){lL(W.JSC$10432_image_,n0h,W.completeTransform_,!1,W);W.JSC$10432_image_.src=_.lF(W.dataUrl_).toString();W.JSC$10432_image_.src!=om.toString()&&W.JSC$10432_image_.src.substr(0,11)==="data:image/"||W.JSC$10432_reject_()};
UW.prototype.completeTransform_=function(){if(this.JSC$10432_image_.src!=om.toString()){var W=_.lF(this.dataUrl_),e=this.JSC$10432_image_.naturalHeight?this.JSC$10432_image_.naturalWidth/this.JSC$10432_image_.naturalHeight:null;this.invalidAspectRatio=e>this.JSC$10432_maxAspectRatio_||e<1/this.JSC$10432_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var t=this.JSC$10432_image_.naturalWidth,b=this.JSC$10432_image_.naturalHeight,m=e=0,q=this.JSC$10432_image_.naturalHeight?this.JSC$10432_image_.naturalWidth/
this.JSC$10432_image_.naturalHeight:null;q>this.JSC$10432_maxAspectRatio_?(t=this.JSC$10432_maxAspectRatio_*b,e=(t-this.JSC$10432_image_.naturalWidth)/2,this.cropped=!0):q<1/this.JSC$10432_maxAspectRatio_?(b=this.JSC$10432_maxAspectRatio_*t,m=(b-this.JSC$10432_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)q=t,t=b,b=q,q=e,e=m,m=q;switch(this.angle_){case 90:m-=t;break;case 180:e-=t;m-=b;break;case 270:e-=
b}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=t||1,W.height=b||1,this.JSC$10432_image_.naturalWidth&&this.JSC$10432_image_.naturalHeight&&(t=W.getContext("2d"),t.rotate(Math.PI/180*this.angle_),t.drawImage(this.JSC$10432_image_,e,m,this.JSC$10432_image_.naturalWidth,this.JSC$10432_image_.naturalHeight)),this.transformedData=_.lF(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var Lf=function(W,e){_.DY.call(this,W);this.value=e};
_.Z(Lf,_.DY);
var EW=function(W,e,t,b,m,q,Q){Q=Q===void 0?!1:Q;_.ZY.call(this);var X=this;this.JSC$10437_url_=W;this.channelId_=e;this.maxFileSizeMb_=t;this.JSC$10437_maxAspectRatio_=b;this.dropZoneEl_=m;this.rejectInvalidAspectRatio_=Q;this.selectButtonEl_=q;this.JSC$10437_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new wv(this.dropZoneEl_);this.selectOverlay_=new uy(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10437_image_=this.transfer_=null;this.handler_=new _.bk(this);_.w$(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(q,"click",function(){X.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.Z(EW,_.ZY);EW.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.ZY.prototype.disposeInternal.call(this)};
EW.prototype.uploadPromise=function(){if(this.JSC$10437_image_==null)return null;this.uploadPromise_||g0b(this);return this.uploadPromise_};
EW.prototype.cancel=function(){TSS(this);this.JSC$10437_image_=null};
var TSS=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$10437_reject_=null},g0b=function(W){TSS(W);
W.transfer_=_.qlb(W.JSC$10437_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$10437_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$10439_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(e,t){W.resolve_=e;W.JSC$10437_reject_=t})};
_.r=EW.prototype;_.r.onChange_=function(W){W.files.length&&(this.JSC$10437_image_=W.files[0],this.JSC$10437_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10437_image_=null,this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(g0b(this),(new UW(this.JSC$10437_maxAspectRatio_)).transform(this.JSC$10437_image_).then((0,_.p3)(this.onPreview_,this),(0,_.p3)(this.onPreviewError_,this))))};
_.r.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10437_image_=null),this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.r.onPreviewError_=function(){this.JSC$10437_image_=null;this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.r.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new Lf("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.r.JSC$10439_onUploadComplete_=function(){var W=(0,_.uhb)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.r.onUploadError_=function(){this.JSC$10437_reject_();TSS(this)};var J2S=function(W){W=W||{};var e={},t={};this.url=W.url||"";this.args=W.args||_.kJ.clone(e);this.assets=W.assets||{};this.attrs=W.attrs||_.kJ.clone(t);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
J2S.prototype.clone=function(){var W=new J2S,e;for(e in this)if(this.hasOwnProperty(e)){var t=this[e];W[e]=_.ug(t)=="object"?_.kJ.clone(t):t}return W};var xrr,O5r,M8S,bC,hYU,H5h,KwS,P6e,V8e,i5b,YjU,zYk,UrS,LwU,E0b,A2B,NSN,drN,Wy8,ede,t1P,bTS,mQe,rhN,qu8,RdZ,Qeo,Fyb,X1o,ZZG,IUS,aUN,w1e,u_r,chk,v6e,GIy,DQN,Suh,Bto,o6S,lUB,ZTP,$Qh,kIr,p1o,yhk,jeh,CTS,n6b,fUZ,g6P,Ttk,JhB,xQS,OTZ,Ar,M1Z,seD,hdD,HTU,KyB,PTh,V1P,iTh,Yub,zdP,UQo,Lyk,E6k,Ah8,NtN,dQU,WIN,e8S,o8v,t$Z,b7o,mMk,rHk,qPo,R8y,QjU,FID,X4U,IzZ,azy,w4B,uNZ,cH8,vyN,Gev,DMB,SPN,BqB,oyb,lzZ,Z7P,$MZ,keh,p4k;xrr=["account/accounts_list"];O5r=["acknowledge_channel_tou_strike"];M8S=["notification/add_upcoming_event_reminder"];
_.s0B=["att/get"];bC=["browse","music/browse","unplugged/browse"];hYU=["channel/claim_legacy_youtube_channel"];H5h=["history/clear_search_history"];KwS=["history/clear_watch_history"];P6e=["comment/perform_comment_action"];V8e=["comment/get_comment_replies"];i5b=["ypc/commerce_action"];YjU=["backstage/create_post"];zYk=["live/create_broadcast"];UrS=["channel/create_channel"];LwU=["comment/create_comment_reply"];E0b=["comment/create_comment"];A2B=["live_chat/create_poll"];NSN=["playlist/create"];
drN=["decorate_message"];Wy8=["live_chat/delete_message"];ede=["playlist/delete"];t1P=["video/delete"];bTS=["like/dislike"];mQe=["dismissal/dismiss"];rhN=["flag/flag"];qu8=["flow"];RdZ=["account/account_menu"];Qeo=["playlist/get_add_to_playlist"];Fyb=["get_answer"];X1o=["channel/get_channel_creation_form"];ZZG=["offline/get_download_action"];IUS=["kids/get_kids_blocklist_picker"];aUN=["live_chat/get_item_context_menu"];w1e=["live_chat/get_live_chat_message_buy_flow"];u_r=["live_chat/get_live_chat_replay"];
chk=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];v6e=["live_chat/get_live_chat_super_sticker_buy_flow"];GIy=["notification/get_notification_menu"];DQN=["playlist/get_settings_editor"];Suh=["backstage/get_post_video_preview"];Bto=["account/get_profile_card"];o6S=["share/get_share_panel"];lUB=["share/get_sharing_provider_data"];ZTP=["get_survey"];$Qh=["notification/get_unseen_count"];kIr=["get_user_mention_suggestions"];p1o=["get_watch"];yhk=["guide"];
jeh=["feedback"];CTS=["kids/update_blacklist"];n6b=["like/like"];fUZ=["live_chat/live_chat_action"];g6P=["live_chat/manage_user"];Ttk=["video_manager/metadata_update"];JhB=["live_chat/moderate"];xQS=["notification/modify_channel_preference"];OTZ=["notification/opt_out"];Ar=["get_panel","get_posts_by_host_panel"];M1Z=["player"];seD=["browse/edit_playlist"];hdD=["notification/record_interactions"];HTU=["reel/reel_item_watch"];KyB=["reel/reel_watch_sequence"];PTh=["like/removelike"];V1P=["notification/remove_upcoming_event_reminder"];
iTh=["flag/get_form"];Yub=["miniapp/report_value"];zdP=["navigation/resolve_url"];UQo=["channel/reveal_business_email"];Lyk=["in_video/search"];E6k=["search","sfv/search","unplugged/search"];Ah8=["live_chat/send_message"];NtN=["live_chat/send_live_chat_vote"];dQU=["account/set_setting"];WIN=["submit_caption_correction"];e8S=["subscription/subscribe"];o8v=["get_transcript"];t$Z=["resolve_location","unplugged/resolve_location"];b7o=["subscription/unsubscribe"];mMk=["backstage/update_post"];rHk=["channel_edit/update_channel_page_settings"];
qPo=["comment/update_comment_reply"];R8y=["comment/update_comment"];QjU=["comment/update_comments_settings"];FID=["creator/update_creator_channel"];X4U=["pdg/update_enablement"];IzZ=["updated_metadata"];azy=["channel_edit/validate_channel_handle"];w4B=["verify_age"];uNZ=["next","unplugged/watch_next"];cH8=["whitelist/edit"];vyN=["ypc/cancel_recurrence"];Gev=["ypc/complete_transaction"];DMB=["ypc/get_cart"];SPN=["ypc/get_fix_instrument_params"];BqB=["ypc/get_offers"];oyb=["ypc/get_payment_instruments_params"];
lzZ=["ypc/handle_transaction"];Z7P=["ypc/log_payment_server_analytics"];$MZ=["ypc/pause_subscription"];keh=["ypc/redeem_code"];p4k=["ypc/resume_subscription"];var yHB=[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,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,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,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,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,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,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,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,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,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,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,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,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var v6=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Nz("yt.msgs_",v6);var Nd=new _.W_("ACTION_ROUTER_TOKEN");_.dv=function(){this.autonavState_=_.S("kevlar_is_pupi_enabled")?2:oZD()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.dv.prototype.getState=function(){return this.autonavState_};
_.dv.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.dv.prototype.setState=function(W,e,t){e&&(this.autoplayChangedByUser=!0);e=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.l6R(W==2),W=_.S("kevlar_is_pupi_enabled")?t||e:!0,_.P3.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,t))};
_.dv.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.q7(_.dv);var W2=function(){this.hasRun=!1};var e8={},TUG=(e8.auto_search="LATENCY_ACTION_AUTO_SEARCH",e8.ad_to_ad="LATENCY_ACTION_AD_TO_AD",e8.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",e8.app_startup="LATENCY_ACTION_APP_STARTUP",e8.browse="LATENCY_ACTION_BROWSE",e8.cast_splash="LATENCY_ACTION_CAST_SPLASH",e8.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",e8.channels="LATENCY_ACTION_CHANNELS",e8.chips="LATENCY_ACTION_CHIPS",e8.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",e8.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
e8.editor="LATENCY_ACTION_EDITOR",e8.embed="LATENCY_ACTION_EMBED",e8.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",e8.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",e8.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",e8.explore="LATENCY_ACTION_EXPLORE",e8.favorites="LATENCY_ACTION_FAVORITES",e8.home="LATENCY_ACTION_HOME",e8.inboarding="LATENCY_ACTION_INBOARDING",e8.landing="LATENCY_ACTION_LANDING",e8.library="LATENCY_ACTION_LIBRARY",e8.live=
"LATENCY_ACTION_LIVE",e8.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",e8.management="LATENCY_ACTION_MANAGEMENT",e8.mini_app="LATENCY_ACTION_MINI_APP_PLAY",e8.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",e8.onboarding="LATENCY_ACTION_ONBOARDING",e8.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",e8.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",e8.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",e8.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
e8.prebuffer="LATENCY_ACTION_PREBUFFER",e8.prefetch="LATENCY_ACTION_PREFETCH",e8.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",e8.profile_switcher="LATENCY_ACTION_LOGIN",e8.projects="LATENCY_ACTION_PROJECTS",e8.reel_watch="LATENCY_ACTION_REEL_WATCH",e8.results="LATENCY_ACTION_RESULTS",e8.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",e8.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",e8.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",e8.review="LATENCY_ACTION_REVIEW",e8.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",e8.search_ui="LATENCY_ACTION_SEARCH_UI",e8.search_suggest="LATENCY_ACTION_SUGGEST",e8.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",e8.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",e8.seek="LATENCY_ACTION_PLAYER_SEEK",e8.settings="LATENCY_ACTION_SETTINGS",e8.store="LATENCY_ACTION_STORE",e8.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",e8.tenx="LATENCY_ACTION_TENX",e8.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",e8.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
e8.watch="LATENCY_ACTION_WATCH",e8.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",e8["watch,watch7"]="LATENCY_ACTION_WATCH",e8["watch,watch7_html5"]="LATENCY_ACTION_WATCH",e8["watch,watch7ad"]="LATENCY_ACTION_WATCH",e8["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",e8.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",e8.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",e8.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",e8.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",e8.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",e8.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",e8.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",e8.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",e8),LDZ=0;var eIQ=function(W,e){kc.call(this,1,arguments);this.timer=e};
_.Z(eIQ,kc);var Wm2=new wmG("aft-recorded",eIQ);var Moc=_.tz.ytLoggingGelSequenceIdObj_||{};_.Nz("ytLoggingGelSequenceIdObj_",Moc);var t2=_.tz.ytLoggingLatencyUsageStats_||{};_.Nz("ytLoggingLatencyUsageStats_",t2);var b6=function(){this.cleanupJob=0},HHS=function(){b6.instance||(b6.instance=new b6);
return b6.instance};
_.r=b6.prototype;_.r.baseline=function(W,e,t){mw(this,"baseline_"+W)||_.nJ("latencyActionBaselined",{clientActionNonce:W},{timestamp:e,cttAuthInfo:t})};
_.r.tick=function(W,e,t,b){mw(this,"tick_"+W+"_"+e)||_.nJ("latencyActionTicked",{tickName:W,clientActionNonce:e},{timestamp:t,cttAuthInfo:b})};
_.r.info=function(W,e,t){var b=Object.keys(W).join("");mw(this,"info_"+b+"_"+e)||(W=Object.assign({},W),W.clientActionNonce=e,_.nJ("latencyActionInfo",W,{cttAuthInfo:t}))};
_.r.jspbInfo=function(W,e,t){for(var b="",m=0;m<bn(W).length;m++)bn(W)[m]!==void 0&&(b=m===0?b.concat(""+m):b.concat("_"+m));mw(this,"info_"+b+"_"+e)||(_.Ga(W,2,e),e={cttAuthInfo:t},t=_.S("jspb_sparse_encoded_pivot")?new $M([{}]):new $M,_.mT(t,7,FGh,W),s8G("latencyActionInfo",t,e))};
_.r.span=function(W,e,t){var b=Object.keys(W).join("");mw(this,"span_"+b+"_"+e)||(W.clientActionNonce=e,_.nJ("latencyActionSpan",W,{cttAuthInfo:t}))};
var mw=function(W,e){t2[e]=t2[e]||{count:0};var t=t2[e];t.count++;t.time=(0,_.eJ)();W.cleanupJob||(W.cleanupJob=_.kM(_.Tm,function(){var b=(0,_.eJ)(),m;for(m in t2)t2[m]&&b-t2[m].time>6E4&&delete t2[m];W&&(W.cleanupJob=0)},5E3));
return t.count>5?(t.count===6&&Math.random()*1E5<1&&(t=new _.o_("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||_.JC(t)),!0):!1};var jjh,CwP;jjh=window;CwP=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.kh=jjh.performance||jjh.mozPerformance||jjh.msPerformance||jjh.webkitPerformance||new CwP;var dRK=!1,Pz2=!1,tLv=(0,_.p3)(_.kh.clearResourceTimings||_.kh.webkitClearResourceTimings||_.kh.mozClearResourceTimings||_.kh.msClearResourceTimings||_.kh.oClearResourceTimings||_.SQ,_.kh);var nyS=window;nyS.ytcsi&&(nyS.ytcsi.infoGel=_.fe,nyS.ytcsi.tick=_.Tv);var uRG=function(W){kc.call(this,1,arguments);this.csn=W};
_.Z(uRG,kc);var Df2=new wmG("screen-created",uRG),ncK=[],w_c=C9v,f5v=0,s6=new Map,cqv=new Map,vc2=new Map;var y5Q=Symbol("vf"),E6=new WeakMap;var rS=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},oo=function(){rS.instance||(rS.instance=new rS);
return rS.instance};
_.r=rS.prototype;_.r.setClient=function(W){this.client=W};
_.r.JSC$10518_newScreen=function(){this.clear();this.csn=_.fc()};
_.r.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.r.reportShown=function(W,e,t){var b=this.JSC$10518_getTrackingParams(W),m=W.visualElement?W.visualElement:b;e=this.shownElements.has(m);var q=this.visibleState.get(m);this.shownElements.add(m);this.visibleState.set(m,!0);W.impressionLog&&!e&&W.impressionLog();if(b||W.visualElement)if(t=fzy(this,W,t))if(m=gyD(this,W),qr(this,W)||m){b=W.visualElement?W.visualElement:_.$5(b);var Q=W.interactionLoggingClientData;m||e?qr(this,W)&4?q||$_c(this.client,t,b,Q):qr(this,W)&1&&!e&&ocG(this.client,t,b,Q):ocG(this.client,
t,b,Q)}};
_.r.reportHidden=function(W,e,t){var b=this.JSC$10518_getTrackingParams(W),m=W.visualElement?W.visualElement:b;e=this.hiddenElements.has(m);var q=this.visibleState.get(m);this.hiddenElements.add(m);this.visibleState.set(m,!1);if(q===!1)return!0;if(!b&&!W.visualElement)return!1;t=fzy(this,W,t);if(!t||!qr(this,W)&&gyD(this,W))return!1;b=W.visualElement?W.visualElement:_.$5(b);qr(this,W)&8?kMc(this.client,t,b):qr(this,W)&2&&!e&&(W=this.client,e=M2({cttAuthInfo:g3(t)||void 0},t),b={csn:t,ve:b.getAsJson(),
eventType:2},t==="UNDEFINED_CSN"?H6("visualElementHidden",e,b):W?jI("visualElementHidden",b,W,e):_.nJ("visualElementHidden",b,e));return!0};
_.r.JSC$10518_getTrackingParams=function(W){var e=this.getData(W),t,b;if(_.S("il_use_view_model_logging_context")&&(e==null?0:(t=e.context)==null?0:(b=t.loggingContext)==null?0:b.loggingDirectives))return e.context.loggingContext.loggingDirectives.trackingParams||"";var m,q;if(e==null?0:(m=e.rendererContext)==null?0:(q=m.loggingContext)==null?0:q.loggingDirectives)return e.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(e==null?0:e.loggingDirectives)return e.loggingDirectives.trackingParams||
"";var Q;return((Q=W.veContainer)==null?0:Q.trackingParams)?W.veContainer.trackingParams:(e==null?void 0:e.trackingParams)||""};
_.r.JSC$10518_elementShouldLogGesture=function(W,e){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&e)};
_.r.JSC$10518_getNearestParentVe=function(W){var e=this.JSC$10518_getTrackingParams(W);return W.visualElement?W.visualElement:e?_.$5(e):W.parentElement?this.JSC$10518_getNearestParentVe(W.parentElement):null};
var fzy=function(W,e,t){var b=_.fc(t);return W.csn===null||b===W.csn||t?b:(W=new _.o_("VisibilityLogger called before newScreen",{caller:e.tagName,previous_csn:W.csn,current_csn:b}),_.JC(W),null)};
rS.prototype.getData=function(W){var e,t=W.data||((e=W.props)==null?void 0:e.data);if(!t||W.isWebComponentWrapper){var b;t=(b=E6.get(W))==null?void 0:b[y5Q]}return t};
var gyD=function(W,e){var t;return!((t=W.getData(e))==null||!t.loggingDirectives)},qr=function(W,e){W=W.getData(e);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var R0;R0=function(){};
_.Gf=function(){R0.instance||(R0.instance=new R0);return R0.instance};
R0.prototype.setClient=function(W){_.hJ(oo().setClient).bind(oo())(W)};
_.TqU=function(){_.Gf();_.hJ(oo().JSC$10518_newScreen).bind(oo())()};
R0.prototype.clear=function(){_.hJ(oo().clear).bind(oo())()};
R0.prototype.reportShown=function(W,e,t){_.hJ(oo().reportShown).bind(oo())(W,e,t)};
R0.prototype.reportHidden=function(W,e,t){return _.hJ(oo().reportHidden).bind(oo())(W,e,t)};
var P7L=function(W,e){return _.hJ(oo().JSC$10518_getTrackingParams).bind(oo())(e)},jsZ=function(W,e){return _.hJ(oo().JSC$10518_getNearestParentVe).bind(oo())(e)};var Qn,JHB;Qn=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};
_.Sg=function(){Qn.instance||(Qn.instance=new Qn);return Qn.instance};
Qn.prototype.setClient=function(W){this.client=W};
JHB=function(W,e,t){t=t===void 0?{}:t;_.hJ(function(){var b,m,q,Q=((b=_.l(e==null?void 0:e.commandMetadata,_.ez))==null?void 0:b.rootVe)||((m=_.l(e==null?void 0:e.commandMetadata,gry))==null?void 0:(q=m.screenVisualElement)==null?void 0:q.uiType);if(Q){b=_.l(e==null?void 0:e.commandMetadata,Gho);if(b==null?0:b.parentTrackingParams){var X=_.$5(b.parentTrackingParams);if(b.parentCsn)var I=b.parentCsn}else t.clickedVisualElement?X=t.clickedVisualElement:e.clickTrackingParams&&(X=_.$5(e.clickTrackingParams));
a:{b=_.l(e,_.z4);m=_.l(e,b7s);if(b){if(m=ZHS(b,"VIDEO")){b={token:m,videoId:b.videoId};break a}}else if(m&&(b=ZHS(m,"PLAYLIST"))){b={token:b,playlistId:m.playlistId};break a}b=void 0}t=Object.assign({},{cttAuthInfo:b,parentCsn:I},t);if(_.S("expectation_logging")){var u;t.loggingExpectations=((u=_.l(e==null?void 0:e.commandMetadata,gry))==null?void 0:u.loggingExpectations)||void 0}_.FW(W,Q,X,t)}else _.JC(new _.o_("Error: Trying to create a new screen without a rootVeType",e))})()};
_.FW=function(W,e,t,b){b=b===void 0?{}:b;_.hJ(function(){yHB.includes(e)||(_.JC(new _.o_("createClientScreen() called with a non-page VE",e)),e=83769);b.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:e,key:b.key||""}));W.graftQueue=[];W.stateChangedQueue=[];b.dataPromises?xMP(W,e,t,b):O7D(W,e,t,b)})()};
_.M$U=function(W,e,t){t=t===void 0?0:t;_.hJ(function(){e.then(function(b){W.pendingScreenCreation.has(t)&&W.pendingScreenFn&&W.pendingScreenFn();var m=_.fc(t),q=_.nc(t);if(m&&q){var Q;(b==null?0:(Q=b.response)==null?0:Q.trackingParams)&&hy(W.client,m,q,_.$5(b.response.trackingParams));var X;(b==null?0:(X=b.playerResponse)==null?0:X.trackingParams)&&hy(W.client,m,q,_.$5(b.playerResponse.trackingParams))}})})()};
Qn.prototype.graftServerVe=function(W,e,t){var b=this;return _.hJ(function(){var m=_.$5(W);_.XW(b,m,e,t);return m})()};
_.CdK=function(W,e,t,b){return _.S("enable_client_ve_spec")&&e.clientVeSpec?(e=_.na(e.clientVeSpec.uiType,void 0,e.clientVeSpec.elementIndex,e.clientVeSpec.clientYoutubeData,void 0,e),_.XW(W,e,t,b)?e:null):e.trackingParams?W.graftServerVe(e.trackingParams,t,b):null};
_.Dj=function(W,e,t,b){return _.hJ(function(){if(!e.veType)return _.TT(new _.o_("Error: Trying to graft a client VE without a veType.")),null;if(e.visibilityTypes){var m=e.visibilityTypes.reduce(function(q,Q){return q|Q});
m={visibility:{types:String(m)}}}m=_.na(e.veType,e.visualElement,e.elementIndex,e.clientYouTubeData,void 0,m);return _.XW(W,m,t,b)?m:null})()};
_.XW=function(W,e,t,b){b=b===void 0?0:b;return _.hJ(function(){if(W.pendingScreenCreation.has(b))return W.graftQueue.push([e,t]),!0;var m=_.fc(b),q=t||_.nc(b);if(m&&q){if(_.S("combine_ve_grafts")){var Q=W.cachedVisualElements.get(q.toString());Q?Q.push(e):(W.cachedRootVisualElements.set(q.toString(),q),W.cachedVisualElements.set(q.toString(),[e]));W.attachTimeout||(W.attachTimeout=_.kM(_.Tm,function(){sje(W,m)},1200))}else hy(W.client,m,q,e);
return!0}return!1})()};
_.I0=function(W,e,t){t=t===void 0?0:t;var b=W.recurringGrafts.get(t)||new Map;if(_.S("smarter_ve_dedupping"))for(var m=Array.from(b.keys()),q=0;q<m.length;q++){var Q=void 0,X=void 0;var I=e;var u=m[q];u.isClientVe()&&I.isClientVe()?(Q=I.getAsJson(),X=u.getAsJson(),I=Q.veType!==X.veType||Q.elementIndex!==X.elementIndex||Q.dataElement!==X.dataElement||I.getLoggingDirectives()!==u.getLoggingDirectives()?!1:!0):I=u.veData.trackingParams!==void 0&&I.veData.trackingParams!==void 0?((X=I.veData)==null?void 0:
X.trackingParams)===((Q=u.veData)==null?void 0:Q.trackingParams):!1;if(I)return}else if(b.has(e))return;b.set(e,void 0);W.recurringGrafts.set(t,b);_.fc(t)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(t)||_.XW(W,e,void 0,t)};
_.a0=function(W,e,t,b){b=_.fc(b===void 0?0:b);if(!b)return!1;yqg(W.client,b,e,t);return!0};
_.wS=function(W,e,t,b){if(!e)return!1;b=_.fc(b===void 0?0:b);if(!b)return!1;yqg(W.client,b,_.$5(e),t);return!0};
_.Pe=function(W,e){var t=e.getScreenLayer&&e.getScreenLayer();if(e.visualElement)return _.a0(W,e.visualElement,void 0,t);e=P7L(_.Gf(),e);return _.wS(W,e,void 0,t)};
Qn.prototype.clickCommand=function(W,e,t){return _.wS(this,W.clickTrackingParams,e,t===void 0?0:t)};
Qn.prototype.stateChanged=function(W,e,t){this.visualElementStateChanged(_.$5(W),e,t===void 0?0:t)};
Qn.prototype.visualElementStateChanged=function(W,e,t){t=t===void 0?0:t;t===0&&this.pendingScreenCreation.has(t)?this.stateChangedQueue.push([W,e]):this.logStateChanged(W,e,t)};
Qn.prototype.logStateChanged=function(W,e,t){t=t===void 0?0:t;var b=_.fc(t);W=W||_.nc(t);return b&&W?(j3G(this.client,b,W,e),!0):!1};
var xMP=function(W,e,t,b){b=b===void 0?{}:b;W.pendingScreenCreation.add(b.layer||0);W.pendingScreenFn=function(){O7D(W,e,t,b);var Q=_.nc(b.layer);if(Q){for(var X=_.R(W.graftQueue),I=X.next();!I.done;I=X.next())I=I.value,_.XW(W,I[0],I[1]||Q,b.layer);Q=_.R(W.stateChangedQueue);for(X=Q.next();!X.done;X=Q.next())X=X.value,W.logStateChanged(X[0],X[1])}};
t||_.fc(b.layer)||W.pendingScreenFn();if(b.dataPromises)for(var m=_.R(b.dataPromises),q=m.next();!q.done;q=m.next())_.M$U(W,q.value,b.layer);else _.gQ(Error("wf"))},O7D=function(W,e,t,b){b=b===void 0?{}:b;
var m=void 0;b.layer||(b.layer=0);m=b.parentLayer!==void 0?b.parentLayer:b.layer;var q=_.fc(m);m=_.nc(m);var Q=t||m,X;Q&&(b.parentCsn!==void 0?X={clientScreenNonce:b.parentCsn,visualElement:Q}:q&&q!=="UNDEFINED_CSN"&&(X={clientScreenNonce:q,visualElement:Q}));var I,u=_.Ot("EVENT_ID");q==="UNDEFINED_CSN"&&u&&(I={servletData:{serializedServletEventId:u}});_.S("combine_ve_grafts")&&q&&sje(W,q);_.S("no_client_ve_attach_unless_shown")&&Q&&q&&BLZ(Q,q);try{var c=_.GMQ(W.client,e,X,b.csnToClone,b.cttAuthInfo,
I,b.implicitGestureType,void 0,b.loggingExpectations)}catch(B){_.xM(B,{rootVeType:e,rootVe:m,parentVisualElement:t,currentCsn:q,parentEl:X,csnToClone:b.csnToClone});_.gQ(B);return}_.T4(c,e,b.layer,b.cttAuthInfo);q&&q!=="UNDEFINED_CSN"&&m&&!pqQ(q)&&kMc(W.client,q,m,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=c||"");_.fe({clientScreenNonce:c});_.TqU();var v=_.nc(b.layer);q&&q!=="UNDEFINED_CSN"&&
v&&(_.S("web_mark_root_visible")||_.S("music_web_mark_root_visible"))&&_.Vx(c,v);W.pendingScreenCreation.delete(b.layer||0);W.pendingScreenFn=void 0;var D;(D=W.recurringGrafts.get(b.layer))==null||D.forEach(function(B,k){B?_.XW(W,k,B,b.layer):v&&_.XW(W,k,v,b.layer)});
h8N(W)},h8N=function(W){for(var e=0;e<W.afterNewScreenOneOffJobs.length;e++){var t=W.afterNewScreenOneOffJobs[e];
try{t()}catch(b){_.gQ(b)}}for(e=W.afterNewScreenOneOffJobs.length=0;e<W.afterNewScreenRecurringJobs.length;e++){t=W.afterNewScreenRecurringJobs[e];try{t()}catch(b){_.gQ(b)}}},sje=function(W,e){if(e===void 0)for(var t=$3v(),b=0;b<t.length;b++)t[b]!==void 0&&sje(W,t[b]);
else W.cachedVisualElements.forEach(function(m,q){(q=W.cachedRootVisualElements.get(q))&&D_L(W.client,e,q,m)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var u6=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.alm=(W.response=!1,W.playerResponse=!1,W)};
_.Z(u6,W2);u6.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
u6.prototype.handle=function(W){var e=_.Sg(),t=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.alm.response&&(e.graftServerVe(W.data.response.trackingParams,void 0,t),this.alm.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.alm.playerResponse&&(e.graftServerVe(W.data.playerResponse.trackingParams,void 0,t),this.alm.playerResponse=!0)};var c2=function(){this.kq=_.UZ();this.qe=[];this.rhS=0};
c2.prototype.processChunk=function(W){if(W){for(var e=_.R(this.qe),t=e.next();!t.done;t=e.next())t=t.value,t.validate(W)&&(t.handle(W),t.hasRun=!0);_.Tv("np"+this.rhS);this.rhS++}};var N2;var XnR,H78,V$8;_.uL=function(W,e,t,b,m,q,Q){Q=Q===void 0?[]:Q;this.buildCommandPayload=W;this.navigate=e;this.handleServiceRequest=t;this.sendAction=b;this.JSC$10559_screenManager=m;this.commandResolverMap=q;this.autoLogResolverAllowlist=Q;this.pendingCommands=new Set;this.isTracingEnabled=!1;H78(this)};
XnR=function(W,e,t){var b=E7R,m=A$s,q=_.Sg(),Q=KID;t=t===void 0?[]:t;_.uL.instance=new _.uL(W,e,b,m,q,Q,t)};
H78=function(W){if(!W.isTracingEnabled&&TLL("command")){var e=W.resolveCommand;W.resolveCommand=function(t,b){a:{for(m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var m={commandType:m};break a}m={}}return OMK("command",m,e.bind(this,t,b))};
W.isTracingEnabled=!0}};
V$8=function(W,e,t){if(!W.commandResolverMap)return!1;var b=HMQ(e,W.commandResolverMap);return b?((W.autoLogResolverAllowlist.some(function(m){return!!_.l(e,m)})||(t==null?0:t.forceClickLogging))&&Pwh(W,e,t),b instanceof Promise?b.then(function(m){m.resolve(e,t)}):b.resolve(e,t),!0):!1};
_.uL.prototype.resolveCommand=function(W,e){var t=this,b=i7y(W);if(V$8(this,W,e))return!0;if(b)return YPN(this,W,e);if(!this.buildCommandPayload)return MLS(W,"Unhandled command by buildCommandPayload"),!1;var m=this.buildCommandPayload(W,e);if(e==null?0:e.commandController)m.commandController=e.commandController;if(m.type===0){if(!this.navigate)return s3Q(W,"navigate"),!1;if(!z8v(m.command))return MLS(W,"Page requests need to specify a url"),!1;_.S("logging_avoid_blocking_during_navigation")&&_.em2().transition("application_navigating");
W=this.navigate(m)||[];Aer(W).then(function(){t.pendingCommands.delete(m.command)});
return!0}if(m.type===1){if(!this.handleServiceRequest)return s3Q(W,"handleServiceRequest"),!1;(e==null?0:e.forceClickLogging)&&Pwh(this,m.command,e);W=this.handleServiceRequest(m);Aer(W).then(function(){t.pendingCommands.delete(m.command)});
return!0}if(m.type===2){if(!this.sendAction)return s3Q(W,"sendAction"),!1;Pwh(this,m.command,e);this.sendAction(m);return!0}return!1};
var Pwh=function(W,e,t){if((t==null||!t.disableClickTracking)&&W.JSC$10559_screenManager)if(e.clickTrackingParams&&_.S("log_click_with_layer_from_element_in_command_handler")){var b;t=t==null?void 0:(b=t.form)==null?void 0:b.element;W.JSC$10559_screenManager.clickCommand(e,null,t&&t.getScreenLayer&&t.getScreenLayer())}else e.clickTrackingParams?W.JSC$10559_screenManager.clickCommand(e):!_.S("disable_clicked_visual_element_in_command_handler")&&(t==null?0:t.clickedVisualElement)&&_.a0(W.JSC$10559_screenManager,
t.clickedVisualElement)},i7y=function(W){var e=!!_.l(W,_.wy),t;
W=((t=_.l(W,_.c6))==null?void 0:t.signal)==="CLIENT_SIGNAL";return e||W},YPN=function(W,e,t){var b=_.l(e,_.wy);
if(b)var m=(b==null?void 0:b.commands)||[];else{var q;if(((q=_.l(e,_.c6))==null?void 0:q.signal)==="CLIENT_SIGNAL"){var Q;m=((Q=_.l(e,_.c6))==null?void 0:Q.actions)||[]}}if(m){e=_.R(m);for(m=e.next();!m.done;m=e.next()){m=m.value;try{W.resolveCommand(m,t)}catch(X){X instanceof Error&&_.gQ(X)}}return!0}MLS(e,"Could not handle the meta command");return!1},z8v=function(W){var e;
return!((e=_.l(W==null?void 0:W.commandMetadata,_.ez))==null||!e.url)};var v2=function(){W2.apply(this,arguments)};
_.Z(v2,W2);v2.prototype.validate=function(W){var e,t;return!this.hasRun&&!!((e=W.data.response)==null?0:(t=e.onResponseReceivedEndpoints)==null?0:t.length)};
v2.prototype.handle=function(W){var e=_.uL.instance;W=_.R(W.data.response.onResponseReceivedEndpoints);for(var t=W.next();!t.done;t=W.next())e.resolveCommand(t.value)};var UMS,LIy,Eyv;
UMS=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=_.aT();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.G3=function(){LIy||(LIy=new UMS);return LIy};
Eyv=function(){var W=_.G3();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.AHe=function(){var W=_.G3(),e=W.mediaSessionPipActivation,t=W.watchPipActivation,b=W.watchWhileActivation,m=W.playlistWatchPageActivation,q=W.lockupActivation,Q=W.showMiniplayerCommandActivation,X=W.navigatingAwayFromWatchDeletedVideo,I=W.shortsPipActivation,u=W.playlistSuggestionsShelfActivation,c=W.productDetailsPageActivation,v=W.miniAppPageActivation,D=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!m&&!u&&!c&&!v&&!D&&!q&&!Q&&!e&&!t&&!b&&!I||X};var CiS;_.DB=Wm("FEwhat_to_watch","/",3854);_.nTL=Wm("FEdownloads","/feed/downloads",42352);CiS=Wm("FEmusic_offline","browse/FEmusic_offline",42352);var LG=function(W,e){e=e===void 0?[]:e;var t=t===void 0?[]:t;e=QP2.apply(null,[FcS.apply(null,_.kP(e))].concat(_.kP(t)));this.store=wb2(W,void 0,e)};
LG.prototype.getState=function(){return this.store.getState()};
LG.prototype.dispatch=function(W){return this.store.dispatch(W)};
LG.prototype.subscribe=function(W){return this.store.subscribe(W)};
LG.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
LG.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.S8=function(W,e,t){var b=e(W.getState());return W.subscribe(function(){var m=e(W.getState());if(m!==b){var q=b;b=m;t(m,q)}})};var fcQ;_.SX=function(W,e,t){return _.rO({type:"REPLACE_ENTITY",payload:{entityPayload:t,entityType:W,key:e}})};
fcQ=function(W){return _.rO({type:"REPLACE_ENTITIES",payload:W})};
_.gN=function(W,e,t,b){return _.rO({type:"UPDATE_ENTITY",payload:{entityPayload:t,entityType:W,key:e,mergeOption:b}})};var WKL=function(W){var e=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(t){e.append(t)})};
_.r=WKL.prototype;_.r.getLength=function(){return this.totalLength};
_.r.append=function(W){var e=this.arrays.length===0?!1:(e=this.arrays[this.arrays.length-1])&&e.buffer===W.buffer&&e.byteOffset+e.length===W.byteOffset;e?(e=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(e.buffer,e.byteOffset,e.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.r.split=function(W){for(var e=new WKL,t=new WKL,b=_.R(this.arrays),m=b.next();!m.done;m=b.next())m=m.value,W>=m.length?(e.append(m),W-=m.length):W?(e.append(new Uint8Array(m.buffer,m.byteOffset,W)),t.append(new Uint8Array(m.buffer,m.byteOffset+W,m.length-W)),W=0):t.append(m);return{headView:e,tailView:t}};
_.r.extract=function(W,e){return this.split(W).tailView.split(e).headView};
_.r.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.r.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Nqy=function(W,e){W.focus(e);return W.arrays[W.arrayIdx][e-W.arrayPos]};(function(){var W=function(b){return new Uint8Array(b)},e=function(b){for(var m=new Uint8Array(b.length),q=0;q<b.length;q++)m[q]=b[q];
return m},t=new Uint8Array([1]);
return t.length===1&&t[0]===1?W:e})();
var U_v=Array(1024),zIs=window.TextDecoder?new TextDecoder:void 0,Ecc=window.TextEncoder?new TextEncoder:void 0;var d_c=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},qf=function(W){var e=Nqy(W.arrayView,W.pos);
++W.pos;if(e<128)return e;for(var t=e&127,b=1;e>=128;)e=Nqy(W.arrayView,W.pos),++W.pos,b*=128,t+=(e&127)*b;return t},eDS=function(W,e){var t=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){t<0&&(t=qf(W));var b=t>>3,m=t&7;if(b===e)return!0;if(b>e){W.pendingTagAndType=t;break}t=-1;switch(m){case 0:qf(W);break;case 1:W.pos+=8;break;case 2:b=qf(W);W.pos+=b;break;case 5:W.pos+=4}}return!1};var bsQ=function(){this.pos=0;this.submessagePosStack=[];this.buf=NLQ(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},F4=function(W,e){e=W.pos+e;
if(!(W.buf.length>=e)){for(var t=W.buf.length*2;t<e;)t*=2;W.buf=NLQ(t,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},QJ=function(W,e){if(e>268435455){F4(W,4);
for(var t=e&1073741823,b=0;b<4;b++)W.view.setUint8(W.pos,t&127|128),t>>=7,W.pos+=1;e=Math.floor(e/268435456)}for(F4(W,4);e>127;)W.view.setUint8(W.pos,e&127|128),e>>=7,W.pos+=1;W.view.setUint8(W.pos,e);W.pos+=1};for(var mGZ={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,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},tAR={},dMr=_.R(Object.entries(mGZ)),WtB=dMr.next();!WtB.done;WtB=dMr.next()){var egD=_.R(WtB.value),t_b=egD.next().value,bu8=egD.next().value,m$e=t_b,rNh=bu8;rNh&&(tAR[rNh]=m$e)};var qUv=function(W,e){W=W===void 0?{}:W;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(b,m){var q,Q=(q=m.options)==null?void 0:q.persistenceOption;if(Q&&Q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return b;if(!m.entityKey)return _.gQ(Error("Af")),b;if(m.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!m.payload)return m=new _.o_("REPLACE entity mutation is missing a payload",{entityKey:m.entityKey}),_.gQ(m),b;var X=(0,_.kJ.getAnyKey)(m.payload);
return QZD(b,X,m.entityKey,m.payload[X])}if(m.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{m=m.entityKey;try{var I=_.R1(m).entityType;X=QZD(b,I,m);break a}catch(v){if(v instanceof Error){m=new _.o_("Failed to deserialize entity key",{entityKey:m,originalMessage:v.message});_.gQ(m);X=b;break a}throw v;}X=void 0}return X}if(m.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!m.payload)return m=new _.o_("UPDATE entity mutation is missing a payload",{entityKey:m.entityKey}),_.gQ(m),b;X=(0,_.kJ.getAnyKey)(m.payload);
var u,c;return FKR(b,X,m.entityKey,m.payload[X],(u=m.fieldMask)==null?void 0:(c=u.mergeOptions)==null?void 0:c.repeatedFieldsMergeOption)}return b},W);
case "REPLACE_ENTITY":var t=e.payload;return QZD(W,t.entityType,t.key,t.entityPayload);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(b,m){var q=e.payload[m];return Object.keys(q).reduce(function(Q,X){return QZD(Q,m,X,q[X])},b)},W);
case "UPDATE_ENTITY":return t=e.payload,FKR(W,t.entityType,t.key,t.entityPayload,t.mergeOption);default:return W}};var XQv;var qpy=!1,B2,o0,l6,ZB,$0,RgP=function(W){_.ka.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!qpy){var e,t=new Uint8Array(256),b=new Uint8Array(256);var m=1;for(e=0;e<256;e++)t[m]=e,b[e]=m,m^=m<<1^(m>>7&&283);B2=new Uint8Array(256);o0=a1(256);l6=a1(256);ZB=a1(256);$0=a1(256);for(var q=0;q<256;q++){m=q?b[255^t[q]]:0;m^=m<<1^m<<2^m<<3^m<<4;m=m&255^m>>>8^99;B2[q]=m;e=m<<1^(m>>7&&283);var Q=e^m;o0[q]=e<<24|m<<16|m<<8|Q;l6[q]=Q<<24|o0[q]>>>8;ZB[q]=m<<24|l6[q]>>>
8;$0[q]=m<<24|ZB[q]>>>8}qpy=!0}m=a1(44);for(t=0;t<4;t++)m[t]=W[4*t]<<24|W[4*t+1]<<16|W[4*t+2]<<8|W[4*t+3];for(b=1;t<44;t++)W=m[t-1],t%4||(W=(B2[W>>16&255]^b)<<24|B2[W>>8&255]<<16|B2[W&255]<<8|B2[W>>>24],b=b<<1^(b>>7&&283)),m[t]=m[t-4]^W;this.key=m};
_.Z(RgP,_.ka);
RgP.prototype.encrypt=function(W){var e=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+e));for(var t=this.cipherBlock,b=0;b<e&&this.blockOffset<16;)W[b++]^=t[this.blockOffset++];for(var m=e-(e-b)%16;b<m;)QES(this),W[b++]^=t[0],W[b++]^=t[1],W[b++]^=t[2],W[b++]^=t[3],W[b++]^=t[4],W[b++]^=t[5],W[b++]^=t[6],W[b++]^=t[7],W[b++]^=t[8],W[b++]^=t[9],W[b++]^=t[10],W[b++]^=t[11],W[b++]^=t[12],W[b++]^=t[13],W[b++]^=t[14],W[b++]^=t[15];if(b<e)for(QES(this),this.blockOffset=0;b<e;)W[b++]^=
t[this.blockOffset++];return W};
var QES=function(W){for(var e=W.key,t=W.counter[0]^e[0],b=W.counter[1]^e[1],m=W.counter[2]^e[2],q=W.counter[3]^e[3],Q=3;Q>=0&&!(W.counter[Q]=-~W.counter[Q]);Q--);for(var X,I,u=4;u<40;)Q=o0[t>>>24]^l6[b>>16&255]^ZB[m>>8&255]^$0[q&255]^e[u++],X=o0[b>>>24]^l6[m>>16&255]^ZB[q>>8&255]^$0[t&255]^e[u++],I=o0[m>>>24]^l6[q>>16&255]^ZB[t>>8&255]^$0[b&255]^e[u++],q=o0[q>>>24]^l6[t>>16&255]^ZB[b>>8&255]^$0[m&255]^e[u++],t=Q,b=X,m=I;W=W.cipherBlock;Q=e[40];W[0]=B2[t>>>24]^Q>>>24;W[1]=B2[b>>16&255]^Q>>16&255;W[2]=
B2[m>>8&255]^Q>>8&255;W[3]=B2[q&255]^Q&255;Q=e[41];W[4]=B2[b>>>24]^Q>>>24;W[5]=B2[m>>16&255]^Q>>16&255;W[6]=B2[q>>8&255]^Q>>8&255;W[7]=B2[t&255]^Q&255;Q=e[42];W[8]=B2[m>>>24]^Q>>>24;W[9]=B2[q>>16&255]^Q>>16&255;W[10]=B2[t>>8&255]^Q>>8&255;W[11]=B2[b&255]^Q&255;Q=e[43];W[12]=B2[q>>>24]^Q>>>24;W[13]=B2[t>>16&255]^Q>>16&255;W[14]=B2[b>>8&255]^Q>>8&255;W[15]=B2[m&255]^Q&255};var Ftb=!1;(function(){var W=function(b){return new Uint8Array(b)},e=function(b){for(var m=new Uint8Array(b.length),q=0;q<b.length;q++)m[q]=b[q];
return m},t=new Uint8Array([1]);
return t.length===1&&t[0]===1?W:e})();
var k0;var aSN=function(W){a:{if(!Ftb&&!Ei){if(k0){var e=k0;break a}k0=(e=window.crypto)==null?void 0:e.subtle;var t,b,m;if(((t=k0)==null?0:t.importKey)&&((b=k0)==null?0:b.sign)&&((m=k0)==null?0:m.encrypt)){e=k0;break a}k0=void 0}e=void 0}e&&(this.nativeEncryptor=new XlS(W,e));this.encryptorPolyfill=new ISv(W)};
aSN.prototype.encrypt=function(W,e){var t=this,b;return _.F(function(m){switch(m.nextAddress){case 1:if(!t.nativeEncryptor){m.jumpTo(2);break}_.Qh(m,3);return _.a(m,t.nativeEncryptor.encrypt(W,e),5);case 5:return m.return(m.yieldResult);case 3:b=_.w9(m),_.JC(b),Ftb=!0,t.nativeEncryptor=void 0;case 2:return m.return(t.encryptorPolyfill.encrypt(W,e))}})};
var XlS=function(W,e){this.JSC$10631_aesKey=W;this.subtleCrypto=e};
XlS.prototype.encrypt=function(W,e){var t=this,b;return _.F(function(m){if(m.nextAddress==1)return _.Qh(m,2),_.a(m,wlN(t,W,e),4);if(m.nextAddress!=2)return m.return(m.yieldResult);b=_.w9(m);_.JC(b);Ftb=!0;throw b;})};
var wlN=function(W,e,t){var b,m;return _.F(function(q){switch(q.nextAddress){case 1:if(W.cryptoKey){q.jumpTo(2);break}return _.a(q,W.subtleCrypto.importKey("raw",W.JSC$10631_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=q.yieldResult;case 2:return b={name:"AES-CTR",counter:t,length:128},_.a(q,W.subtleCrypto.encrypt(b,W.cryptoKey,e),4);case 4:return m=q.yieldResult,q.return(new Uint8Array(m))}})},ISv=function(W){this.JSC$10634_aesKey=W};
ISv.prototype.encrypt=function(W,e){this.encryptor||(this.encryptor=new RgP(this.JSC$10634_aesKey));for(var t=this.encryptor,b=0;b<4;b++)t.counter[b]=e[b*4]<<24|e[b*4+1]<<16|e[b*4+2]<<8|e[b*4+3];t.blockOffset=16;return this.encryptor.encrypt(W)};var uyo={},wQG=WH("yt-idb-pref-storage",{objectStores:(uyo.prefs={addedAtVersion:1},uyo),shared:!1,upgrade:function(W,e){e(1)&&K_(HH(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.p5=function(W){this.token=W};
_.p5.getInstance=function(){return _.F(function(W){return W.return(new Promise(function(e){_.d8().then(function(t){t?(_.p5.instance||(_.p5.instance=new _.p5(t)),e(_.p5.instance)):e(void 0)})}))})};
_.p5.prototype.get=function(W){var e=this,t,b,m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,uID(e.token),2);if(q.nextAddress!=3)return t=q.yieldResult,_.a(q,t.get("prefs",W),3);b=q.yieldResult;if(!b)return q.return();m=(0,_.eJ)();return b.expirationTimestampMs<=m?q.return():q.return(b.value)})};
_.p5.prototype.set=function(W,e,t){t=t===void 0?31536E3:t;var b=this,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return m=(0,_.eJ)(),q={key:W,value:e,expirationTimestampMs:m+t*1E3},_.a(X,uID(b.token),2);Q=X.yieldResult;return _.a(X,Q.put("prefs",q),0)})};
_.p5.prototype.remove=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,uID(e.token),2);t=b.yieldResult;return _.a(b,t.delete("prefs",W),0)})};var yn={},cNZ=(yn.INVALID_ENCODER_VERSION="Invalid encoder version",yn.KEY_CREATION_FAILED="Failed to create encoder key",yn.UNKNOWN_DECODE_ERROR="Failed to decode PES data",yn.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",yn.WRONG_DATA_TYPE="Encoder cannot process the data type",yn),wO=function(W,e){e=e===void 0?{}:e;_.o_.call(this,cNZ[W],Object.assign({},{name:"PESEncoderError",type:W},e));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,wO.prototype)};
_.Z(wO,_.o_);var vOv=function(){},Gxr=function(W,e,t){try{return W.encodeImpl(e,t)}catch(b){DG2(b,vFc)}},D$B=function(W,e,t){var b;
return _.F(function(m){if(m.nextAddress==1)return _.Qh(m,2),_.a(m,W.decodeAsyncImpl(e,t),4);if(m.nextAddress!=2)return m.return(m.yieldResult);b=_.w9(m);DG2(b,Ghs);_.u8(m)})};
vOv.prototype.decodeAsyncImpl=function(W,e){return Promise.resolve(this.decodeImpl(W,e))};var j8=function(W,e){this.aesEncryptor=W;this.aesEncryptorAsync=e};
_.Z(j8,vOv);j8.prototype.encodeImpl=function(W,e){e=SUR(e);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,e)};
j8.prototype.decodeImpl=function(W,e){if(!(W instanceof Uint8Array))throw cBs(1);var t=new TextDecoder;e=SUR(e);W=this.aesEncryptor.encrypt(W,e);return JSON.parse(t.decode(W))};
j8.prototype.decodeAsyncImpl=function(W,e){var t=this,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){if(!(W instanceof Uint8Array))throw cBs(1);b=new TextDecoder;m=SUR(e);return _.a(Q,t.aesEncryptorAsync.encrypt(W,m),2)}q=Q.yieldResult;return Q.return(JSON.parse(b.decode(q)))})};var BJQ={accountLinkStatusEntity:VQU,booleanEntity:BjP,buttonEntity:CyU,captionTrack:D_S,channelHandle:rsS,chipEntity:Q7v,commerceAcquisitionClientPayloadEntity:WwD,commerceCartListEntity:eYo,contextNoteFeedEntityPayload:aIU,continuationTokenEntity:d38,downloadQualityPickerEntity:K6b,downloadsPageRefreshTokenEntity:VFe,downloadsPageViewConfigurationEntity:FDZ,downloadStatusEntity:PjP,dismissState:FOr,sfvAudioItemCurrentlyPlayingEntity:AqD,emojiFountainDataEntity:pzb,emojiCustomizationSetEntity:krU,
fakeChannel:ZdB,fakePlaylist:$WD,fakePlaylistEntryCollection:kXU,fakeVideo:ytb,fakeVideoDescription:jto,featuredProductsEntity:CzU,flowStateEntity:hSD,iconBadgeEntity:t8b,interstitialInteractionStateEntity:R1U,likeButtonAnimationEntity:Xhe,liveChatPollStateEntity:cnv,liveViewerLeaderboardChatEntryPointStateEntity:gcr,liveViewerLeaderboardPointsEntity:TLS,liveReactionsDataEntity:yrb,logoEntity:rnS,macroMarkerEntity:I6U,mainDownloadsLibraryEntity:iVv,mainDownloadsListEntity:YXN,mainPlaylistDownloadStateEntity:U3r,
mainPlaylistEntity:WDy,mainPlaylistVideoEntity:e6o,mainVideoDownloadStateEntity:L6N,mainVideoEntity:rFr,markersEngagementPanelSyncEntity:a6S,markersVisibilityOverrideEntity:whP,musicAlbumReleaseDetail:HHZ,musicAlbumReleaseDownloadMetadataEntity:xRe,musicAlbumRelease:h6h,musicAlbumReleaseUserDetail:KDD,musicArtistDetail:Voe,musicArtist:Pze,musicArtistUserDetail:iHk,musicDownloadsLibraryEntity:OHS,musicLibraryEdit:YxB,musicLibraryStatusEntity:z6S,musicPlaylist:URU,musicPlaylistDownloadMetadataEntity:MoN,
musicShare:EZ8,musicTrackDetail:NUP,musicTrackDownloadMetadataEntity:s8B,musicTrack:AFU,musicTrackUserDetail:dR8,offlineOrchestrationActionWrapperEntity:S5v,offlineVideoPolicy:BLU,offlineVideoStreams:ocP,offlineabilityEntity:Erk,orchestrationWebSamplingEntity:An8,pageHeaderEntity:GrD,pdpStateEntity:b5r,pinnedProductEntity:nZb,playbackData:l5P,playerStateEntity:uHN,quantityIncrementerEntity:mr8,refresh:ZM8,saveToPlaylistListEntity:DGe,selectedChipIndexEntityPayload:cFU,settingEntity:P$y,stringEntity:oVv,
suggestedFeedbackChipStateEntity:vZN,transfer:$_N,trendingOfferEntity:f6b,videoDownloadContextEntity:kMN,videoOverviewAsyncDataEntity:j0h,videoPlaybackPositionEntity:gir,votingEntity:oih,ytMainChannelEntity:qxb,youchatPendingResponseEntity:GRy,ytMainDownloadedVideoEntity:Nuy,ytMainVideoEntity:R6h};var Sp8,oOh,DN,jZK,CSK,$$v,plo,kxb,Zur;Sp8=function(W,e){this.JSC$10653_wrapped=W;this.JSC$10653_encoderRegistry=e;this.changedKeys={}};
oOh=function(W,e){a:{W=BW8(W.JSC$10653_encoderRegistry,e.version);try{var t=W.decodeImpl(e.data,e.key);break a}catch(b){DG2(b,Ghs)}t=void 0}return t};
_.lSk=function(W,e,t){return W.JSC$10653_wrapped.objectStore("EntityStore").get(e).then(function(b){if(b){if(t&&b.entityType!==t)throw Error("Bf");return oOh(W,b)}})};
DN=function(W,e,t){return t?(t=t.map(function(b){return _.lSk(W,b,e)}),Oi.all(t)):W.JSC$10653_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(e)).then(function(b){return b.map(function(m){return oOh(W,m)})})};
_.yBK=function(W,e,t){var b=rBG(e),m=BW8(W.JSC$10653_encoderRegistry,1),q=Object.assign({},e);return W.JSC$10653_wrapped.objectStore("EntityStore").get(b).then(function(Q){if(Q){if(Q.entityType!==t)throw Error("Bf");q.entityMetadata||(Q=oOh(W,Q),q.entityMetadata=Q.entityMetadata)}}).then(function(){var Q={key:b,
entityType:t,data:Gxr(m,q,b),version:1};return Oi.all([W.JSC$10653_wrapped.objectStore("EntityStore").put(Q),Zur(W,q,t)])}).then(function(){$$v(W,b,t);
return b})};
jZK=function(W,e){var t=_.R1(e).entityType;return Oi.all([W.JSC$10653_wrapped.objectStore("EntityStore").delete(e),kxb(W,e)]).then(function(){$$v(W,e,t)})};
CSK=function(W,e,t,b){var m=BW8(W.JSC$10653_encoderRegistry,1);return _.lSk(W,e,b).then(function(q){if(q){q=Y5Z(q,t);var Q={key:e,entityType:b,data:Gxr(m,q,e),version:1};return Oi.all([W.JSC$10653_wrapped.objectStore("EntityStore").put(Q),Zur(W,q,b)])}}).then(function(){$$v(W,e,b);
return e})};
$$v=function(W,e,t){var b=W.changedKeys[t];b||(b=new Set,W.changedKeys[t]=b);b.add(e)};
plo=function(W,e,t){var b=rBG(e);t=oFZ(t);if(!t)return Oi.resolve([]);t=new t(e);W=W.JSC$10653_wrapped.objectStore("EntityAssociationStore");e=[];t=_.R(t.getAssociations());for(var m=t.next();!m.done;m=t.next())e.push(W.put({parentEntityKey:b,childEntityKey:m.value}));return Oi.all(e).then(function(q){return q.map(function(Q){return Q[1]})})};
kxb=function(W,e){return W.JSC$10653_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(e))};
Zur=function(W,e,t){var b=rBG(e);return kxb(W,b).then(function(){return plo(W,e,t)})};var yNP=function(){};
_.Z(yNP,vOv);yNP.prototype.encodeImpl=function(W){return W};
yNP.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw cBs(0);return W};var $Gg=function(){this.cacheMap={};this.cacheMap[0]=new yNP;if(!_.S("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var e=_.Se();var t=SUR(e);var b=new j8(new ISv(t),new aSN(t))}catch(m){throw W=m instanceof Error?new wO("KEY_CREATION_FAILED",{originalMessage:m.message}):new wO("KEY_CREATION_FAILED"),_.gQ(W),W;}W[1]=b}},BW8=function(W,e){e=e===void 0?0:e;
W=W.cacheMap[e];if(!W)throw e=new wO("INVALID_ENCODER_VERSION",{encoderVersion:e}),_.gQ(e),e;return W};var cm=function(W,e){_.ka.call(this);this.token=W;this.JSC$10667_encoderRegistry=e;this.observers=[];W=new _.tz.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Se());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.Z(cm,_.ka);_.Gq=function(W,e,t){var b,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return _.a(X,acR(W.token),2);if(X.nextAddress!=3)return b=X.yieldResult,_.a(X,_.zJ(b,["EntityStore","EntityAssociationStore"],e,function(I){m=new Sp8(I,W.JSC$10667_encoderRegistry);return t(m)}),3);
q=X.yieldResult;m&&(Q=m.changedKeys,Object.keys(Q).length>0&&(W.channel.postMessage(Q),jEr(W,Q)));return X.return(q)})};
cm.prototype.observe=function(W){var e=this;this.observers.push(W);return function(){var t=e.observers.indexOf(W);t>=0&&e.observers.splice(t,1)}};
var xxK=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,_.Gq(W,{mode:"readonly",enableRetries:!0},function(b){return b.JSC$10653_wrapped.objectStore("EntityStore").getAll()}),2);
e=t.yieldResult;return t.return(Promise.all(e.filter(function(b){return!!b}).map(function(b){var m,q;
return _.F(function(Q){if(Q.nextAddress==1){m=b.key;q=b.entityType;var X=D$B(BW8(W.JSC$10667_encoderRegistry,b.version),b.data,b.key);return _.a(Q,X,2)}return Q.return({key:m,entityType:q,data:Q.yieldResult})})})))})};
cm.prototype.handleMessage=function(W){jEr(this,W.data)};
var jEr=function(W,e){W=_.R(W.observers);for(var t=W.next();!t.done;t=W.next())t=t.value,t(e)};
cm.prototype.disposeInternal=function(){this.channel.close()};
var lcG;var C5,nON,k0K;C5={};_.CZb=(C5.mainVideoEntity="mainVideoEntityActionMetadata",C5.mainPlaylistEntity="mainPlaylistEntityActionMetadata",C5.musicTrack="musicTrackEntityActionMetadata",C5.musicPlaylist="musicPlaylistEntityActionMetadata",C5);nON=new _.W_("DOWNLOADS_ENTITY_TYPE_MAP");_.pG=_.X4("","downloadsPageViewConfigurationEntity");k0K=_.X4("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.rrZ=_.X4("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.X4("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.X4("SMART_DOWNLOADS_ENABLED","settingEntity");_.X4("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var JBQ=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var KKQ=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var z9D={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var n5,PyR,vQy,xm9;n5=window;_.hm=n5.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.Wwg=n5.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Yg;PyR=n5.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Cv;vQy=n5.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||c8e;_.fSD=n5.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.ggD;xm9=n5.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||xfe;VJ({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 b5Q=VOG(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),Ldv=VOG(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),UdR=new Map;var r2v=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],dd2;var gOy=function(W){return _.rO({type:"SET_EPHEMERAL_ACTION",payload:W})};var TWv={ephemeralAction:null};var JNh={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var y2S={sharedUi:function(W,e){W=W===void 0?JNh:W;switch(e.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:e.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:e.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:e.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:e.payload});default:return W}},
a11y:w3({ephemeralAction:function(W,e){W=W===void 0?TWv.ephemeralAction:W;switch(e.type){case "SET_EPHEMERAL_ACTION":return e.payload;default:return W}}})};var IBs={playlistId:"",inviteLinkURL:""};var x$U={};var SjG=w3({continuationCommand:function(W,e){W=W===void 0?x$U:W;switch(e.type){case "SET_CONTINUATION_COMMAND":return e.payload.continuationCommand;default:return W}}});var w29={currentFormId:"",commandsMap:{}};var BSg=w3({isLeaderTab:function(W,e){W=W===void 0?!0:W;switch(e.type){case "SET_IS_LEADER_TAB":var t,b;return(b=e==null?void 0:(t=e.payload)==null?void 0:t.isLeaderTab)!=null?b:W;default:return W}}});var OuB=function(W){return _.rO({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};var p2K=w3({isDesktopSmallWidth:function(W,e){switch(e.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return e.payload.isDesktopSmallWidth;default:return W===void 0?!1:W}},
isShortsActive:function(W,e){switch(e.type){case "SET_IS_SHORTS_ACTIVE":return e.payload.isShortsActive;default:return W===void 0?!1:W}},
isWatchWhileMode:function(W,e){switch(e.type){case "SET_IS_WATCH_WHILE_MODE":return e.payload.isWatchWhileMode;default:return W===void 0?!1:W}},
playerState:function(W,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return W===void 0?-1:W}},
isFullscreen:function(W,e){switch(e.type){case "SET_IS_FULLSCREEN":return e.payload.isFullscreen;default:return W===void 0?!1:W}},
isSmallScreenSqueezeback:function(W,e){switch(e.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return e.payload.isSmallScreenSqueezeback;default:return W===void 0?!1:W}},
isShortsPipActive:function(W,e){switch(e.type){case "SET_IS_SHORTS_PIP_ACTIVE":return e.payload.isShortsPipActive;default:return W===void 0?!1:W}},
isPlaybackStarted:function(W,e){switch(e.type){case "SET_IS_PLAYBACK_STARTED":return e.payload.isPlaybackStarted;default:return W===void 0?!1:W}}});var C6G=function(){return function(W){return function(e){var t=W(e);_.RT(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[e],!0);return t}}};var M_S,JdS;M_S=new _.Xu;_.Rv=new _.W_("WATCH_PLAYER_PROMISE_TOKEN");_.sEU=new _.Xu;_.hge=new _.W_("SHORTS_PLAYER_PROMISE_TOKEN");JdS=new _.W_("");var n0v=function(){return function(W){return function(e){e.type==="ENTITY_LOADED"&&_.ee().resolve(_.Rv).then(function(t){var b;(b=t.dispatchReduxAction)==null||b.call(t,e)});
return W(e)}}};var HuZ={};var o0z=w3({additionalContext:function(W,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var t;return(t=e.payload)!=null?t:"";default:return W===void 0?"":W}},
impersonatedChannelUrl:function(W,e){switch(e.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var t;return(t=e.payload)!=null?t:"";default:return W===void 0?"":W}},
selectedVideoIds:function(W,e){W=W===void 0?HuZ:W;switch(e.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var t={};return Object.assign({},W,(t[e.payload]=!0,t));case "VIDEO_UNSELECTED":return e=e.payload,W=Object.assign({},W),delete W[e],W;default:return W}}});var lBG=w3({parentClickTrackingParams:function(W,e){switch(e.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return e.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W===void 0?"":W}}});var Kth=function(W){return _.rO({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};var PZb={};var Z5R=w3({stepStates:function(W,e){W=W===void 0?PZb:W;switch(e.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var t=W,b=e.payload,m,q,Q;W={};e={selectionStates:Object.assign({},(Q=(m=t[b.stepId])==null?void 0:m.selectionStates)!=null?Q:{},(W[b.token]={isSelected:b.isSelected},W)),userQuery:(q=t[b.stepId])==null?void 0:q.userQuery};m={};return Object.assign({},t,(m[b.stepId]=e,m));case "TALK_TO_RECS_UPDATE_USER_QUERY":return m=W,q=e.payload,Q={selectionStates:Object.assign({},
(b=(t=m[q.stepId])==null?void 0:t.selectionStates)!=null?b:{}),userQuery:{userQuery:q.userQuery,token:q.userQueryToken}},t={},Object.assign({},m,(t[q.stepId]=Q,t));default:return W}}});var V_v,iuZ,zgv;V_v=function(W){return _.rO({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
iuZ=function(W){return _.rO({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.TL=function(W){return _.rO({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.YpS=function(W){return _.rO({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};
zgv=function(W){return _.rO({type:"SET_CHIP_BAR_IS_STICKY",payload:W})};var c2G={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"};_.U$P=function(W){return _.rO({type:"SET_PLAYER_STATE",payload:{playerState:W}})};var LtS=[],EOb={width:0,height:0};var $rc=w3({isTheaterMode:function(W,e){W=W===void 0?_.S("kevlar_disable_theater_mode_persistence")?!1:_.MD("START_IN_THEATER_MODE"):W;switch(e.type){case "SET_IS_THEATER_MODE":return e.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,e){switch(e.type){case "SET_IS_WATCH_ACTIVE":return e.payload.isWatchActive;default:return W===void 0?!1:W}},
isLearningJourneyActive:function(W,e){switch(e.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return e.payload.isLearningJourneyActive;default:return W===void 0?!1:W}},
isWatchFullscreen:function(W,e){switch(e.type){case "SET_IS_WATCH_FULLSCREEN":return e.payload.isWatchFullscreen;default:return W===void 0?!1:W}},
isWatchNarrowWidth:function(W,e){switch(e.type){case "SET_IS_WATCH_NARROW_WIDTH":return e.payload.isWatchNarrowWidth;default:return W===void 0?!1:W}},
isWatchRetroMode:function(W,e){switch(e.type){case "SET_IS_WATCH_RETRO_MODE":return e.payload.isWatchRetroMode;default:return W===void 0?!1:W}},
isLiveChatCollapsed:function(W,e){switch(e.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return e.payload.isLiveChatCollapsed;default:return W===void 0?!1:W}},
openEngagementPanels:function(W,e){W=W===void 0?LtS:W;var t=[].concat(_.kP(W));switch(e.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return t.push(e.payload.panelToAdd),t;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return t.splice(t.indexOf(e.payload.panelToRemove),1),t;default:return W}},
playerState:function(W,e){switch(e.type){case "SET_PLAYER_STATE":return e.payload.playerState;default:return W===void 0?-1:W}},
watchScrollTop:function(W,e){switch(e.type){case "SET_WATCH_SCROLL_TOP":return e.payload.watchScrollTop;default:return W===void 0?0:W}},
watchWindowSize:function(W,e){W=W===void 0?EOb:W;switch(e.type){case "SET_WATCH_WINDOW_SIZE":return e.payload.watchWindowSize;default:return W}}});var ANy={feedbackTokens:[]};var k3G=w3({surveyFeedbackData:function(W,e){W=W===void 0?ANy:W;switch(e.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return e.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,e.payload);default:return W}}});var G3R={};var g0D=void 0;_.S("web_enable_redux_store_on_demand")||(g0D=fBG());var NWb=function(W,e,t){var b=this;this.listId=W;this.JSC$10801_updateCallback=e;this.isOfflineVideoCallback=t;_.Eb().subscribe(function(){b.handleUpdate()})};
NWb.prototype.getPlaylistData=function(){var W=_.Eb().getState().entities;if(this.listId&&this.listId!=="PPSV"){var e=xUK(W,this.listId,!0),t=_.X4(this.listId,"mainPlaylistEntity"),b,m;W=W==null?void 0:(b=W.mainPlaylistEntity)==null?void 0:(m=b[t])==null?void 0:m.title;return TSL(e,W,this.listId)}e=_.S4R(FOQ(W));W=_.S4R(_.yJ(W));return TSL(e.concat(W))};
NWb.prototype.getPlaylistId=function(){return this.listId};
NWb.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10801_updateCallback(this.listId,this.getPlaylistData(),{})};var f5=function(W,e,t,b){b=b===void 0?[]:b;this.JSC$10804_playlistNetworkManager=W;this.listId=e;this.JSC$10804_updateCallback=t;this.videoIds=b;this.pendingUpdates=[];this.currentIndex=0};
f5.prototype.JSC$10804_setCurrentIndex=function(W){this.currentIndex=W};
f5.prototype.setListId=function(W){this.listId=W};
var d$e=function(W,e){W.currentCreateRequest&&W.currentCreateRequest.cancel(e);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(e);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(e)};
f5.prototype.delete=function(){d$e(this,"PROXY DELETED")};
f5.prototype.addVideos=function(W,e,t){var b=this;t!==void 0?this.videoIds.splice.apply(this.videoIds,[t,0].concat(_.kP(W))):this.videoIds.push.apply(this.videoIds,_.kP(W));this.listId||this.currentCreateRequest?(W.forEach(function(m,q){m={addedVideoId:m,action:"ACTION_ADD_VIDEO"};t&&(m.addedVideoPosition=t+q);b.pendingUpdates.push(m)}),gS(this)):WjU(this,e.onCreateListCommand)};
var e7Z=function(W,e,t,b,m){ZQQ(W.videoIds,e,t);e>W.currentIndex&&t<=W.currentIndex?W.JSC$10804_setCurrentIndex(W.currentIndex+1):e===W.currentIndex?W.JSC$10804_setCurrentIndex(t):e<W.currentIndex&&t>=W.currentIndex&&W.JSC$10804_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:b,movedSetVideoIdPredecessor:m});gS(W)},WjU=function(W,e){d$e(W,"OBSOLETE");
W.currentCreateRequest=ttS(W.JSC$10804_playlistNetworkManager,e,W.videoIds);_.yd(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(t){W.setListId(t.playlistId);
W.pendingUpdates.length>0?gS(W):b2k(W)})},gS=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var e=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$10804_playlistNetworkManager.updatePlaylist(W.listId,e);_.yd(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?gS(W):b2k(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.kP(e))})}},b2k=function(W){W.currentRefreshRequest=_.mv8(W.JSC$10804_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.yd(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(e){W.JSC$10804_updateCallback(e.playlistId,e.playlistPanelRenderer,e.autoplayRenderer)})};
f5.prototype.size=function(){return this.videoIds.length};var rxv=function(W,e,t,b){b=b===void 0?[]:b;f5.call(this,W,e,t,b);this.JSC$10804_playlistNetworkManager=W;this.listId=e;this.JSC$10804_updateCallback=t;this.videoIds=b};
_.Z(rxv,f5);_.T3=function(W,e,t,b,m,q,Q){m=m===void 0?[]:m;Q=Q===void 0?Rr:Q;f5.call(this,W,e,t,m);this.JSC$10804_playlistNetworkManager=W;this.listId=e;this.JSC$10804_updateCallback=t;this.onAuthChange=b;this.videoIds=m;this.storage=q;this.cookieReader=Q;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.F6(_.Tm,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Z(_.T3,f5);_.r=_.T3.prototype;_.r.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.F6(_.Tm,this.checkLoggedInStatusChange.bind(this),1E3)};
_.r.JSC$10804_setCurrentIndex=function(W){f5.prototype.JSC$10804_setCurrentIndex.call(this,W);this.store()};
_.r.delete=function(){_.Tm.cancelJob(this.queueSapisIdJob);f5.prototype.delete.call(this)};
_.r.setListId=function(W){f5.prototype.setListId.call(this,W);this.store()};
_.r.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var qy8=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],R7P=["playerResponse","videoDetails"],QLk=["response","currentVideoEndpoint","watchEndpoint","videoId"],Fj8=["response","currentVideoEndpoint","watchEndpoint","playlistId"],XCe=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],I4e=["response","contents","twoColumnWatchNextResults","playlist","playlist"],a48=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
wCk=["response","contents","twoColumnWatchNextResults"];var J2={},s0G=(J2.WEB_UNPLUGGED="^unplugged/",J2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",J2.WEB_UNPLUGGED_OPS="^unplugged/",J2.WEB_UNPLUGGED_PUBLIC="^unplugged/",J2.WEB_CREATOR="^creator/",J2.WEB_KIDS="^kids/",J2.WEB_EXPERIMENTS="^experiments/",J2.WEB_MUSIC="^music/",J2.WEB_REMIX="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",J2);var oyD,ttS;oyD=function(W,e){this.networkManager=W;this.innertubeTransportService=e};
ttS=function(W,e,t){if(!_.l(e,_.Hz))return _.jg(Error("Ff"));_.l(e,_.Hz).videoIds=t;t={create_playlist_title:_.Gv("QUEUE",void 0,"Queue")};return O5Q(_.z2(W.innertubeTransportService,e,t),J2L)};
_.mv8=function(W,e,t,b){e={videoId:b,playlistId:e,playlistIndex:t};t=_.Am(uNZ);return O5Q(_.x0(W.innertubeTransportService,e,t),M8L)};
oyD.prototype.updatePlaylist=function(W,e){return O5Q(_.z2(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:e}}),xrQ)};var uaP=function(W){this.storage=W},cxN;
uaP.prototype.store=function(W,e){e=e===void 0?0:e;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(e)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(t){}};
uaP.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
uaP.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(e){}return W};var P62=["navigationEndpoint","watchEndpoint","videoId"],KwL=["nextButtonVideo","watchEndpoint","videoId"];_.Ti=new _.W_("NETWORK_TOKEN");_.WS=new _.W_("PAGE_TOKEN");_.Oj=new _.W_("PLAYLIST_TOKEN");var vIZ;vIZ=new _.W_("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.J8=new _.W_("INNERTUBE_TRANSPORT_TOKEN");var GCv,Mr,SyB,BFr,l48,Z2S;GCv=new Set(["ci","cr","carml"]);Mr=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10851_parkedJobs=new Map;this.parkedProcessors=new Map};
_.sj=function(){Mr.instance||(Mr.instance=new Mr);return Mr.instance};
Mr.prototype.onAny=function(W){return _.Dvk(this,W,2)};
Mr.prototype.parkOrScheduleJob=function(W,e,t,b,m){_.h2(this,t)?_.g0().addJob(W,e,b):(m&&(W=SyB(W),BFr(this,W,e,t,m)),m=this.JSC$10851_parkedJobs.get(t),m||(this.JSC$10851_parkedJobs.set(t,[]),m=this.JSC$10851_parkedJobs.get(t)),m.push({job:W,priority:e,delay:b}))};
Mr.prototype.addListener=function(W,e,t){t&&(e=SyB(e),BFr(this,e,0,W,t));t=this.parkedProcessors.get(W);t||(this.parkedProcessors.set(W,[]),t=this.parkedProcessors.get(W));t.push(e)};
Mr.prototype.processSignal=function(W){if(!_.h2(this,W)){this.inProgressSignals.add(W);var e=this.JSC$10851_parkedJobs.get(W);if(e){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,_.g0().addJob(t.job,t.priority,t.delay);this.JSC$10851_parkedJobs.delete(W)}if(e=this.parkedProcessors.get(W)){e=_.R(e);for(t=e.next();!t.done;t=e.next())t=t.value,t();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.h2=function(W,e){return GCv.has(e)||_.MD("IS_HOMEPAGE_COLD")||_.MD("IS_RESULTS_PAGE_COLD")||_.MD("IS_WATCH_PAGE_COLD")?W.signals.indexOf(e)>=0:!0};
SyB=function(W){var e=!1;return function(){e||(e=!0,W())}};
BFr=function(W,e,t,b,m){if(oIh.has(b))_.g0().addJob(e,t,m);else{var q=W.compoundSignals.get(b);q&&_.g0().addJob(function(){_.h2(W,b)||(q.isTimeoutConditionSatisfied?_.g0().addJob(e,t):q.timeoutConditionObservers.push(function(){_.g0().addJob(e,t)}))},t,m)}};
_.Dvk=function(W,e,t){if(e.length>1){var b=[],m=Object.create(null);e=_.R(e);for(var q=e.next();!q.done;q=e.next())q=q.value,m[q]||(b.push(q),m[q]=!0);e=b}if(e.length===1)return e[0];q=e;b="";m=t===2?"|":"&";q.sort();q=_.R(q);for(var Q=q.next();!Q.done;Q=q.next())b+=Q.value+m;if(!W.compoundSignals.get(b)){m=0;q=[];Q=_.R(e);for(var X=Q.next();!X.done;X=Q.next())X=X.value,m++,_.h2(W,X)||q.push(X);(t=t===2)&&m>q.length||!t&&!q.length?W.signals.push(b):l48(W,b,t,e,q)}return b};
l48=function(W,e,t,b,m){var q=m.length,Q=function(){t||--q===0?W.processSignal(e):Z2S(W,e)};
m=_.R(m);for(var X=m.next();!X.done;X=m.next())W.addListener(X.value,Q);W.compoundSignals.set(e,{signals:b,isOnAny:t,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Z2S(W,e)};
Z2S=function(W,e){if(!_.h2(W,e)){var t=W.compoundSignals.get(e);if(t&&!t.isTimeoutConditionSatisfied){for(var b=!1,m=0,q=0,Q=_.R(t.signals),X=Q.next();!X.done;X=Q.next()){var I=X.value;X=!_.h2(W,I);oIh.has(I)?b=!0:(I=W.compoundSignals.get(I))?X&&!I.isTimeoutConditionSatisfied&&(q++,t.isInitialized||I.timeoutConditionObservers.push(function(){Z2S(W,e)})):X&&m++}t.isInitialized=!0;
t.isOnAny?b&&(t.isTimeoutConditionSatisfied=!0):m===0&&q===0&&(t.isTimeoutConditionSatisfied=!0);if(t.isTimeoutConditionSatisfied)for(t=_.R(t.timeoutConditionObservers),b=t.next();!b.done;b=t.next())b=b.value,b()}}};
Mr.prototype.processSignal=Mr.prototype.processSignal;Mr.prototype.parkOrScheduleJob=Mr.prototype.parkOrScheduleJob;Mr.prototype.onAny=Mr.prototype.onAny;_.Nz("ytsignals.getInstance",_.sj);Mr.prototype.onAny=Mr.prototype.onAny;Mr.prototype.parkOrScheduleJob=Mr.prototype.parkOrScheduleJob;Mr.prototype.processSignal=Mr.prototype.processSignal;var oIh=new Set(["eop","eocs","dl","pcl"]);_.Kn=new _.W_("MINIPLAYER_SERVICE");var H2,$vD,kCh;H2=function(W,e,t){var b=_.P3.getInstance();if(!cxN){var m=new G42;var q=void 0,Q=_.Ot("ID_TOKEN");Q&&m.isAvailable()&&(q=new kw(m,"yt-queue"+Q));cxN=new uaP(q)}m=cxN;q=_.sj();this.JSC$10858_actionRouter=b;this.pageManager=W;this.playlistManager=e;this.JSC$10858_playlistNetworkManager=t;this.storage=m;this.signals=q;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.K5=function(){if(!$vD){var W=_.ee(),e=W.resolve(_.Wi(_.WS)),t=W.resolve(_.Wi(_.Ti)),b=W.resolve(_.Wi(_.Oj));W=W.resolve(_.J8);$vD=new H2(e,b,new oyD(t,W))}return $vD};
kCh=function(W,e,t){if(t){var b;if(((b=W.responsePlaylistData)==null?void 0:b.playlistId)!==t)return}W.responsePlaylistData&&(t=LwZ(e,W.responsePlaylistData),W.responsePlaylistData=(0,_.kJ.unsafeClone)(W.responsePlaylistData),A2G(W.responsePlaylistData,t));t=W.temporaryItems.findIndex(function(m){return m.videoId===e});
t>-1&&W.temporaryItems.splice(t,1);_.P2(W,_.Vn(W,W.response?W.response.autoplayRenderer:void 0))};
_.pCZ=function(W,e){if(W.responsePlaylistData){var t=E0D(e,W.responsePlaylistData);A2G(W.responsePlaylistData,t);if(W.queueProxy){var b=W.queueProxy;t<0||(b.videoIds.splice(t,1),t<b.currentIndex&&b.JSC$10804_setCurrentIndex(b.currentIndex-1),b.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:e}),gS(b))}}_.P2(W,_.Vn(W,W.response?W.response.autoplayRenderer:void 0))};
H2.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.P2(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
H2.prototype.setPlaylistData=function(W,e,t){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=e;_.P2(this,_.Vn(this,t))};
var yxb=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},jL8=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:TfR(_.Eb().getState().entities,W.playlistId):!1};
H2.prototype.isPlayingOfflineVideo=function(){return this.response?jL8(this.response):!1};
H2.prototype.closeMiniplayer=function(W){var e=this.queueProxy&&this.queueProxy.size()<=1,t=_.ee().resolve(_.Kn);if(!this.queueProxy||e)this.queueProxy&&this.clearQueue(),t.close(!0);else{t.pipController.getWindow()&&window.focus();e=this.responsePlaylistData;var b=this.temporaryItems.length+(e&&e.contents?e.contents.length:0);e=_.Gv("QUEUE_CLEARED_UNPLURALIZED")||_.D8("QUEUE_CLEARED",b);e=_.dO(e);t=_.Gv("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");b=_.Gv("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.D8("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",b);var m=_.Gv("MINIPLAYER_CLOSE",void 0,"Close"),q=_.Gv("CANCEL",void 0,"Cancel");_.xc(this.JSC$10858_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.zq(t),dialogMessages:[_.zq(b)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zq(m),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
e]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.zq(q)}}}}}}],W)}};
_.Vn=function(W,e){var t={},b=W.response;t.autoplayRenderer=e;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!b||!b.hasRelatedVideoData&&_.S("kevlar_prefetch_data_augments_network_data")||(t.playerData={rvs:b.relatedVideoArgs,endScreenRenderer:b.endScreenRenderer}),t;t.playerData={};if(W.index===void 0)return _.gQ(Error("Hf")),t;t.panel=W.responsePlaylistData?(0,_.kJ.unsafeClone)(W.responsePlaylistData):{titleText:_.zq(_.Gv("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
e=t.panel;if(e.contents)for(var m=_.R(W.temporaryItems),q=m.next();!q.done;q=m.next())e.contents.push({playlistPanelVideoRenderer:q.value});W.queueProxy&&b&&b.playingVideo&&b.playingVideoId&&!UrL(b.playingVideoId,t.panel)&&(e=b.playingVideo,m=t.panel,q=W.index,m.contents&&m.contents.splice(q===void 0?0:q,0,{playlistPanelVideoRenderer:e}));b&&b.playingVideoId&&(e=W.index,m=t.panel,e=!m.contents||e>=m.contents.length?void 0:m.contents[e].playlistPanelVideoRenderer,e&&e.videoId===b.playingVideoId||(e=
LwZ(b.playingVideoId,t.panel),W.index=e!==-1?e:W.index?W.index-1:0));e=zYz(W.index+1,t.panel);m=void 0;W.index>0&&(m=zYz(W.index-1,t.panel));if(m||e)t.autoplayRenderer=V82(e,m,t.autoplayRenderer);!e&&(b==null?0:b.relatedVideoArgs)&&(t.playerData.rvs=b.relatedVideoArgs);b=b?b.playlistIndexOffset:0;W.queueProxy?WyK(t.panel,W.index,b,YjZ,!0,!0,!0):WyK(t.panel,W.index,b);t.playerData.playlistPanelRenderer=t.panel;return t};
H2.prototype.openToast=function(W){_.ee().resolve(_.Kn).openToast(W,_.Gv("ADDED_TO_QUEUE",void 0,"Added to queue"))};
H2.prototype.isMiniplayerActive=function(){return _.ee().resolve(_.Kn).isMiniplayerActive()};
_.P2=function(W,e){W.playlistManager.setAutoplayRenderer(e.autoplayRenderer||null);W.playlistManager.setPlaylistData(e.panel||null);e.playerData&&W.playlistManager.setPlayerPlaybackControlData(e.playerData)};var t1G="#";var CRk={},nIP={},f4v={},gIv={},TFB={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:(CRk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",CRk),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:(nIP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",nIP),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:(f4v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",f4v),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:(gIv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",gIv),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 M1S=[{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:TFB},{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:TFB}}];var yhz;_.Fu=[[["NjYwa2luZCNhaGZnamE0NWE=","dmFsdWUjNnQ4NDZkeTk1cDRm"],"U1RBUlQjdzEwNGY3NzA2NWpyQURfUExBQ0VNRU5UX0tJTkRf"]];
yhz=[[["eSM1bDdtNHE3cjZtbW5wcmltYXI=",null,null],[null,["enhseXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIja2YzeHppMjk3","bDEzaDZoc3R5bGUtc2NvcGUjNHhqd21h"],null],["a21kMGQ0bWFzdGhlYWQtYWQjMTVrYzh1",["bmRlcmVyIzlkb2VjZDJtaXBjcXl0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyIzdjaTRvN3BxdDExZ3l0ZC1yaWNoLWdyaWQtcmU=","aG50OG5pc3R5bGUtc2NvcGUjdHVjeWUw"],null],[null,["cmVyI2p1YWFuOTFsb3NmY3l0ZC1iYW5uZXItcHJvbW8tcmVuZGU=","ZWR2amN6c3R5bGUtc2NvcGUjb3JvMG9r"],null],[null,["cmVuZGVyZXIjN2czNmh1a3Rnb3V4eXRkLWFkLXNsb3Qt"],
null]],[["N250d2hreGFwbGF5ZXItYWRzIzV0YzI=",null,null]]];_.QI=["b2JhbENhbGxiYWNrcyNmcTluN2JhczAycWNnbA==","ZXRlY3RlZCN2Znh6Zmc3YWZ2b3dvbkFibm9ybWFsaXR5RA==","ZTF3eDY5dmN5Mmg0b25BZFNraXAj","X3Jlc3BvbnNlI2xzNGV2c3dsdm5kdHJhd19wbGF5ZXI=","cyNuYmI2Z3M3bGdrb3hhZFNsb3Q="];_.i6="b2JhbENhbGxiYWNrcyNmcTluN2JhczAycWNnbA== ZXRlY3RlZCN2Znh6Zmc3YWZ2b3dvbkFibm9ybWFsaXR5RA== ZTF3eDY5dmN5Mmg0b25BZFNraXAj X3Jlc3BvbnNlI2xzNGV2c3dsdm5kdHJhd19wbGF5ZXI= bGVsejN3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjb3RyMHh5Yg== aGJ5azB2d2xtM3FxYWJfc2FfZWYj cyNuYmI2Z3M3bGdrb3hhZFNsb3Q=".split(" ");var Y0;Y0=function(W,e,t){this.xgB=W;this.isAsync=e;this.nbm=t};
_.E6z=[new Y0("b.f_",!1,0),new Y0("j.s_",!1,2),new Y0("r.s_",!1,4),new Y0("e.h_",!1,6),new Y0("i.s_",!0,8),new Y0("s.t_",!1,10),new Y0("p.h_",!1,12),new Y0("s.i_",!1,14),new Y0("f.i_",!1,16),new Y0("a.b_",!1,18),new Y0("a.o_",!1),new Y0("g.o_",!1,22),new Y0("p.i_",!1,24),new Y0("p.m_",!1),new Y0("n.k_",!0,20),new Y0("i.f_",!1),new Y0("a.s_",!0),new Y0("m.c_",!1),new Y0("n.h_",!1,26),new Y0("o.p_",!1),new Y0("m.p_",!0,28),new Y0("o.a_",!1),new Y0("d.p_",!1),new Y0("e.i_",!1)].reduce(function(W,e){W[e.xgB]=
e;return W},{});var JxZ=function(){};
JxZ.prototype.flush=function(W,e){W=W===void 0?[]:W;e=e===void 0?!1:e;if(_.S("enable_client_streamz_web")){W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=HCv(t.value),this.rootSpec&&_.bF(t,2,this.rootSpec),t={serializedIncrementBatch:_.eK(t.JSC$7653_serializeBinary())},_.nJ("streamzIncremented",t,{sendIsolatedPayload:e})}};
var quK=function(){};
_.Z(quK,JxZ);var xvP=function(W){var e=new TEv;var t=new nlD;t=_.Ga(t,1,"botguard");W=_.Ga(t,2,W);this.rootSpec=_.mT(e,1,JSB,W)};
_.Z(xvP,JxZ);var rD,O2r=new Map;var fUS,Qes,GIR,IUL,u_Q,kIQ,Ttz,ZTG;fUS=2;Qes=2;GIR=2;IUL=2;u_Q=2;kIQ=2;Ttz=2;ZTG=new OPv;var sLZ,h7v,H2B;sLZ=function(){this.ongoingFlowNonces=new Map};
_.wD=function(){h7v||(h7v=new sLZ);return h7v};
_.IX=function(W,e,t){return{eventType:{flowEventNamespace:W,flowEventType:e},metadata:t,statusCode:void 0,csn:void 0,can:void 0}};
_.Ntc=function(W,e){var t=_.wD(),b=H2B(t,e,!0);_.aX(t,W,e,b)};
_.aX=function(W,e,t,b){W={flowNonce:b||H2B(W,t),flowType:t,flowEventType:e.eventType};e.metadata&&(W.flowMetadata=e.metadata);e.statusCode!==void 0&&(W.flowEventStatus=e.statusCode);e.csn&&(W.csn=e.csn);e.can&&(W.can=e.can);_.nJ("flowEvent",W,void 0)};
H2B=function(W,e,t){t=t===void 0?!1:t;var b=W.ongoingFlowNonces.get(e);if(!b||t)b=jV(16),W.ongoingFlowNonces.set(e,b);return b};_.Kjo=new xYZ;var t$S={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 z3=function(W,e,t,b,m,q,Q){t=t===void 0?!1:t;b=b===void 0?!1:b;q=q===void 0?_.K5():q;this.hasRun=!1;this.dJq=W;this.zD0=e;this.b8y=t;this.fromHistory=b;this.previousVideoId=m;this.gid=q;this.tempData=Q;this.wJa=new _.Md8};
_.Z(z3,W2);z3.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="learning_journey_watch"&&W.data.page!=="shorts"||this.hasRun)};
z3.prototype.handle=function(W){var e=this,t=_.l(W.endpoint,_.z4),b=_.l(W.endpoint,_.Za);if(_.S("kevlar_continue_playback_without_player_response")&&(t==null?0:t.videoId)&&this.previousVideoId&&(t==null?void 0:t.videoId)===this.previousVideoId&&(t==null?0:t.continuePlayback)&&!this.fromHistory)this.dJq.resolve();else{var m={};t?m.watch_endpoint=t:b&&(m.watch_endpoint=b,b.endTimeSeconds&&(m.end=b.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.b8y||(_.Jy("cfg"),_.P3.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(m,PRZ(this,W.endpoint)),_.S("enable_masthead_quartile_ping_fix")&&Object.assign(m,Vto(this)),Object.assign(m,void 0),W.data.forceExternalPlaylist&&(m.external_list=!0)):W.data.page==="shorts"?_.P3.getInstance().triggerAction("yt-start-loading-shorts"):W.data.page==="learning_journey_watch"&&_.P3.getInstance().triggerAction("yt-start-loading-learning-journey");if(t=this.zD0()){try{t.loadVideoWithPlayerResponse(W.data.playerResponse,m),t.getPlayerPromise().then(this.dJq.resolve)}catch(q){_.gQ(q),
this.dJq.resolve()}this.hasRun=!0;t.getPlayerPromise().then(function(q){q.addEventListener("onAbnormalityDetected",function(){var Q=W.data.playerResponse,X=q.getVideoData().cpn;Ttz=0;_.MtD=X;if(X=Lyz(Q))e.wJa.increment("IN_PLAYER"),_.um(5),_.S("ab_st_vid_ks")?q.pauseVideo(!0):q.stopVideo(),Q.playabilityStatus=Object.assign({},Q.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:X}}),Q.videoDetails=void 0,_.P3.getInstance().triggerOptionalAction("yt-updated-playability-status",
Q.playabilityStatus)})})}else _.JC(Error("Kf"))}};
var PRZ=function(W,e){var t=_.l(e,_.z4);if(e&&t&&t.playlistId&&t.videoId&&(W=W.gid,W.queueProxy?(W=W.queueProxy,t=W.listId===t.playlistId?W.attributionData.get(t.videoId):void 0):t=void 0,t))return{queue_info:t}},Vto=function(W){var e;
if((e=W.tempData)==null?0:e.adpings)return{adpings:W.tempData.adpings}};var Uj=function(W,e,t){this.hasRun=!1;this.ulK=W;this.jU2=e;this.swA=t};
_.Z(Uj,W2);Uj.prototype.validate=function(W){return!!_.kJ.getValueByKeys.apply(null,[W.data].concat(_.kP(wCk)))};
Uj.prototype.handle=function(W){var e=this;this.ulK.promise.then(function(){var t=W.data;var b=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(qy8))),m=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(I4e))),q=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(QLk)));var Q=(Q=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(R7P))))?{videoId:Q.videoId,thumbnail:Q.thumbnail,title:Q.title?_.zq(Q.title):void 0,shortBylineText:Q.author?_.zq(Q.author):void 0}:void 0;var X=void 0;_.S("web_get_playlist_id_from_current_endpoint_ks")||
(X=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(Fj8))));var I=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(a48))),u=_.kJ.getValueByKeys.apply(null,[t].concat(_.kP(XCe))),c=!!I||!!u&&!!u.results&&u.results.length>0,v=0;m&&m.currentIndex&&m.localCurrentIndex&&(v=m.currentIndex-m.localCurrentIndex);m&&m.playlistId&&(X=m.playlistId);t={rawResponse:t,autoplayRenderer:b,hasRelatedVideoData:c,playingVideo:Q,playingVideoId:q,playlistPanelRenderer:m,playlistId:X,playlistIndex:m&&m.currentIndex,relatedVideoArgs:I,
endScreenRenderer:u,playlistIndexOffset:v};a:{b=e.swA;m=e.jU2;b.response=t;if(jL8(t))b.downloadPlaylistProxy&&b.downloadPlaylistProxy.getPlaylistId()===yxb(t)||(b.downloadPlaylistProxy=new NWb(yxb(t),b.setPlaylistData.bind(b),b.isPlayingOfflineVideo.bind(b))),b.responsePlaylistData=b.downloadPlaylistProxy.getPlaylistData(),b.listId=yxb(t),b.index=0;else if(t.playlistPanelRenderer&&t.playlistId&&t.autoplayRenderer)t.playlistId.startsWith("TLPQ")?b.queueProxy?b.listId===t.playlistId?(b.index=t.playlistIndex,
b.responsePlaylistData=t.playlistPanelRenderer,b.queueProxy.JSC$10804_setCurrentIndex(b.index)):t.playingVideoId&&b.index!==void 0&&m.clientParams.autoSaveToQueue&&(b.index+=1,b.queueProxy.JSC$10804_setCurrentIndex(b.index),b.queueProxy.addVideos([t.playingVideoId],{},b.index)):(b.queueProxy=new _.T3(b.JSC$10858_playlistNetworkManager,t.playlistId,b.setPlaylistData.bind(b),b.clearQueue.bind(b),_.NSc(t.playlistPanelRenderer),b.storage),b.responsePlaylistData=t.playlistPanelRenderer,b.listId=t.playlistId,
b.index=t.playlistIndex):(b.index=t.playlistIndex,b.listId!==t.playlistId&&b.clearQueue(),b.responsePlaylistData=t.playlistPanelRenderer,b.listId=t.playlistId,b.playlistProxy=new rxv(b.JSC$10858_playlistNetworkManager,t.playlistId,b.setPlaylistData.bind(b),_.NSc(t.playlistPanelRenderer)));else if(!b.queueProxy)b.responsePlaylistData=void 0;else if(t.playingVideoId&&m.clientParams.autoSaveToQueue){if(b.index===void 0){_.gQ(Error("Gf"));b.clearQueue();break a}b.queueProxy.videoIds.includes(t.playingVideoId)||
(b.index+=1,b.queueProxy.JSC$10804_setCurrentIndex(b.index),b.queueProxy.addVideos([t.playingVideoId],{},b.index))}_.P2(b,_.Vn(b,b.response.autoplayRenderer))}})};var i2b=function(W,e){e=e===void 0?_.K5():e;c2.call(this);this.qe.push(new Uj(this.kq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},e));this.qe.push(new z3(this.kq,W,!1,!1));_.S("web_response_commands_chunk_processor")&&this.qe.push(new v2)};
_.Z(i2b,c2);i2b.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.kq.resolve();c2.prototype.processChunk.call(this,W)};var L5=function(W,e){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.iCj=e};
_.Z(L5,W2);L5.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
L5.prototype.handle=function(W){var e=_.Sg(),t,b,m=(b=_.l((t=W.endpoint)==null?void 0:t.commandMetadata,_.ez))==null?void 0:b.rootVe;this.iCj&&m?_.FW(e,m,this.iCj,this.createScreenConfig):JHB(e,W.endpoint,this.createScreenConfig);this.hasRun=!0};var Ej=function(W,e){this.hasRun=!1;this.pJy=W;this.previousVideoId=e};
_.Z(Ej,W2);Ej.prototype.validate=function(W){return _.S("kevlar_continue_playback_without_player_response")&&(W=_.l(W.endpoint,_.z4),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.pJy.rhS===0};
Ej.prototype.handle=function(W){_.P3.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var Yyo=function(W){W=W===void 0?{layer:0}:W;c2.call(this);this.qe.push(new Ej(this));this.qe.push(new L5(W));this.qe.push(new u6(W))};
_.Z(Yyo,c2);var z7P=function(){this.hasRun=this.hasRun=!1};
_.Z(z7P,W2);z7P.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
z7P.prototype.handle=function(W){this.hasRun=!0;_.T4(W.data.csn,W.data.rootVe,3)};var Uvv=function(){W2.apply(this,arguments)};
_.Z(Uvv,W2);Uvv.prototype.validate=function(W){return!!W.data.preconnect};
Uvv.prototype.handle=function(W){_.Tv("bc");W=_.R(W.data.preconnect);for(var e=W.next();!e.done;e=W.next())e=e.value,(new Image).src=e};var LjP=function(W,e,t){t=t===void 0?{layer:0}:t;c2.call(this);this.qe.push(new z3(this.kq,W));this.qe.push(new L5(t));this.qe.push(new u6(t))};
_.Z(LjP,c2);var EIS=function(W,e,t,b,m){t=t===void 0?{layer:0}:t;b=b===void 0?_.K5():b;c2.call(this);var q=!!e&&!!e.clientParams&&!!e.clientParams.miniplayer;q&&this.qe.push(new z7P);this.qe.push(new Uj(this.kq,e,b));this.qe.push(new Uvv);var Q,X;this.qe.push(new z3(this.kq,W,q,!((Q=e.clientParams)==null||!Q.fromHistory),(X=e.clientParams)==null?void 0:X.previousVideoId,b,e.tempData));var I;this.qe.push(new Ej(this,(I=e.clientParams)==null?void 0:I.previousVideoId));var u;(u=e.clientParams)!=null&&u.fromHistory||
(t.layer||(t=Object.assign({},t,{layer:q?3:0})),this.qe.push(new L5(t,m)),this.qe.push(new u6(t)));_.S("web_response_commands_chunk_processor")&&this.qe.push(new v2)};
_.Z(EIS,c2);var A2,dvo;A2={};
_.AxP=(A2["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},A2["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},A2["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},A2["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A2["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A2["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A2["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},A2);_.Nr=new _.sH("yt-edu");_.NFP=function(){this.JSC$10959_eduDisplayedThisLoad_={}};
dvo=function(W){var e=_.NFP.getInstance();var t=_.mn("kevlar_tooltip_impression_cap");e=t&&parseInt(_.Nr.get(W+"-impression")||0,10)>=t||_.Nr.get(W+"-dismissed")?!1:(t=_.AxP[W])&&!e.JSC$10959_eduDisplayedThisLoad_[t.setKey||W]&&(t.titleText&&_.Gv(t.titleText)||t.bodyText&&_.Gv(t.bodyText))?!0:!1;if(!e)return null;e=_.AxP[W];if(!e)return null;t=e.bodyText?_.Gv(e.bodyText):void 0;var b=e.titleText?_.Gv(e.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:e.position,popup:{bubbleHintRenderer:{text:b?
_.zq(b):void 0,detailsText:t?_.zq(t):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.zq(_.Gv("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.q7(_.NFP);var dQZ=!1;for(var W4P="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),eUP=[],dS=6;dS>=1;dS--)eUP.push({columnCount:dS,query:dS==1?0:dS*2*107-4+32,className:"grid-"+dS+"-columns",width:dS*2*107+"px"});_.bzr=function(W){this.actionRouter_=W=W===void 0?_.P3.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.tUb(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.tUb=function(W){var e=W.miniGuideVisible_?72:0,t=W.documentWidth_-(W.guidePersistentAndVisible_?240:e);return eUP.find(function(b){return t>b.query})};
_.q7(_.bzr);var mXZ=function(){var W=this;this.JSC$10971_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$10971_keyboardInUse=!1})},raP;
mXZ.prototype.isKeyBoardInUse=function(){return this.JSC$10971_keyboardInUse};
mXZ.prototype.onKeydown=function(){this.JSC$10971_keyboardInUse=!0};var qvy,th;_.W1=new _.sH("yt-mentions");_.e1=function(){};
qvy=function(W,e){return th(e,"drag-to-reorder-edu-displayed")};
th=function(W,e,t,b,m,q){t=t===void 0?"OPEN_POPUP_POSITION_TOP":t;if(e){if(_.W1.get(e))return;_.W1.set(e,!0,b)}if(m&&q!==void 0){e=Number(_.W1.get(m)||0);if(e>=q)return;_.W1.set(m,e+1)}return[{openPopupAction:{popupType:"HINT",position:t,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.q7(_.e1);var RUk,QVb,F4Z;RUk=function(W,e,t,b){this.JSC$10981_taskManager_=W;this.onFulfilled_=typeof e==="function"?e:null;this.onRejected_=typeof t==="function"?t:null;this.JSC$10981_context_=b};
QVb=function(W,e){W.onFulfilled_&&_.lJ(W.JSC$10981_taskManager_,function(){W.onFulfilled_.call(W.JSC$10981_context_,e)})};
F4Z=function(W,e){W.onRejected_&&_.lJ(W.JSC$10981_taskManager_,function(){W.onRejected_.call(W.JSC$10981_context_,e)})};
_.bT=function(W){this.JSC$10984_taskManager_=W;this.callbacks_=[]};
_.bT.prototype.then=function(W,e,t){this.callbacks_.push(new RUk(this.JSC$10984_taskManager_,W,e,t));return this};
_.bT.prototype.onSuccess=function(W){this.callbacks_.forEach(function(e){QVb(e,W)})};
_.bT.prototype.onFailure=function(W){this.callbacks_.forEach(function(e){F4Z(e,W)})};
_.bT.prototype.cancel=function(){this.callbacks_.length=0};
VKB(_.bT);_.mMz=null;_.gd=new _.W_("ACTIVITY_TOKEN");var my=function(W,e){this.serviceId=new PQB(W,e)};
my.prototype.toString=function(){return this.serviceId.toString()};var XAN=function(){this.internalMap={}};
_.r=XAN.prototype;_.r.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.r.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.r.set=function(W,e){this.internalMap[W]=e};
_.r.getKeys=function(){return Object.keys(this.internalMap)};
_.r.remove=function(W){delete this.internalMap[W]};var rt=function(){this.mappings=new XAN;this.errorCallbacks=new Set};
rt.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
rt.prototype.get=function(W){var e=this.mappings.get(W.toString());return I7v(this,e,W)};
rt.prototype.getMultipleAsync=function(){var W=_.$N.apply(0,arguments),e=this,t=W.map(function(I){return e.getModuleId(I)}),b=W.map(function(I){return e.mappings.get(I.toString())}).filter(function(I){return I});
if(b.length===W.length)return _.aT(b.map(function(I,u){return I7v(e,I,W[u])}));
var m=f3().loadMultiple(t);b=_.pV(t.map(function(I){return m[I]}));
var q=document.hidden,Q=-1,X=_.mn("get_async_timeout_ms",-1);X>-1&&(Q=setTimeout(function(){_.JC(new _.o_("Module timeout.",t,q,document.hidden))},X));
return _.yd(b.then(function(){return W.map(function(I){return I7v(e,e.mappings.get(I.toString()),I)})}).thenCatch(function(I){for(var u=_.R(e.errorCallbacks),c=u.next();!c.done;c=u.next())c=c.value,c(I);
throw I;}),function(){clearTimeout(Q)})};
rt.prototype.registerService=function(W,e){this.mappings.set(W.toString(),{type:"mapping",value:e});return W};
var I7v=function(W,e,t){switch(e.type){case "mapping":return e.value;case "factory":return e=e.value(),W.mappings.set(t.toString(),{type:"mapping",value:e}),e;default:return _.Qw(e)}};
rt.prototype.onLoadError=function(W){var e=this;this.errorCallbacks.add(W);return function(){e.errorCallbacks.delete(W)}};
_.qQ=new rt;var FIg=/^[a-zA-Z0-9_\-]{11}$/;var X4Z=_.B9(function(){var W,e;return(e=(W=window).matchMedia)==null?void 0:e.call(W,"(prefers-reduced-motion: reduce)").matches});var a7r=_.B9(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 W=_.HO("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.DA("VIDEO"),_.Nz("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var vyc=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Re;Re=function(){this.tokenJars={};if(this.cookiesEnabled=_.DK()){var W=_.vi.get("CONSISTENCY",void 0);W&&wAo(this,{encryptedTokenJarContents:W})}};
_.DMG=function(){Re.instance||(Re.instance=new Re);return Re.instance};
Re.prototype.handleResponse=function(W,e){if(!e)throw Error("Qf");var t,b;e=((t=e.innerTubeRequest.context)==null?void 0:(b=t.request)==null?void 0:b.consistencyTokenJars)||[];var m;(W=(m=W.responseContext)==null?void 0:m.consistencyTokenJar)&&this.replace(e,W)};
Re.prototype.replace=function(W,e){W=_.R(W);for(var t=W.next();!t.done;t=W.next())delete this.tokenJars[t.value.encryptedTokenJarContents];wAo(this,e)};
var wAo=function(W,e){if(e.encryptedTokenJarContents&&(W.tokenJars[e.encryptedTokenJarContents]=e,typeof e.expirationSeconds==="string")){var t=Number(e.expirationSeconds);setTimeout(function(){delete W.tokenJars[e.encryptedTokenJarContents]},t*1E3);
W.cookiesEnabled&&_.GJ("CONSISTENCY",e.encryptedTokenJarContents,t,void 0,!0)}};var uVB,QN;uVB=window.location.hostname.split(".").slice(-2).join(".");_.fB=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.Ot("LOCATION_PLAYABILITY_TOKEN");_.Ot("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=car(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.fB.getInstance=function(){QN=_.HO("yt.clientLocationService.instance");QN||(QN=new _.fB,_.Nz("yt.clientLocationService.instance",QN));return QN};
_.fB.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.fB.prototype.handleResponse=function(W){var e;W=(e=W.responseContext)==null?void 0:e.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.Ot("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=car(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.GJ("YT_CL",JSON.stringify({loctok:W}),15552E3,uVB,!0))};
var car=function(W){return W.localStorage===void 0?new _.sH("yt-client-location"):W.localStorage};
_.fB.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=car(this))&&this.localStorage.remove("yt-location-playability-token"):_.F$v("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.fB.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Rf"));var e=!1,t=1E4;_.Ot("INNERTUBE_CLIENT_NAME")==="MWEB"&&(e=!0,t=15E3);return new Promise(function(b,m){navigator.geolocation.getCurrentPosition(function(q){W.mostRecentPosition=q;b(q)},function(q){m(q)},{enableHighAccuracy:e,
maximumAge:0,timeout:t})})};
_.fB.prototype.createUnpluggedLocationInfo=function(W){var e={};W=W.coords;if(W==null?0:W.latitude)e.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)e.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)e.locationRadiusMeters=Math.round(W.accuracy);return e};
_.fB.prototype.createLocationInfo=function(W){var e={};W=W.coords;if(W==null?0:W.latitude)e.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)e.longitudeE7=Math.floor(W.longitude*1E7);return e};var vo8=function(){};
_.r=vo8.prototype;
_.r.JSC$11051_getRequest=function(W,e,t){e=e===void 0?{}:e;t=t===void 0?Lno:t;var b=e;if(this.isNavigationCommand()){var m,q=(m=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:m.url;b=_.SPc(W.clickTrackingParams,!0,!1,q,this.JSC$11051_getClientScreen(b))}else b=_.SPc(W.clickTrackingParams,!1,this.includeCsn);b={context:b};if(m=this.getExtension(W))return this.JSC$11051_buildRequest(b,m,e),m=this.getApiUrl(W),q=Object.assign({},{command:W},this.getRequestConfig(W,e)),b={input:m,requestShell:ik(m),
innerTubeRequest:b,config:q},b.config.authStrategy?b.config.authStrategy.identity=t:b.config.authStrategy={identity:t},(W=this.JSC$11051_getRequestKey(W,e))&&!b.config.requestKey&&(b.config.requestKey=W),b;W=new _.o_("Error: Failed to create Request from Command.",W);_.gQ(W)};
_.r.getApiUrl=function(W){var e=_.Am(this.getApiPaths(W)),t;(W=(t=_.l(W.commandMetadata,_.ez))==null?void 0:t.apiUrl)&&(e=W);return d3K(NuR(e))};
_.r.isNavigationCommand=function(){return!1};
_.r.JSC$11051_getClientScreen=function(){};
_.r.JSC$11051_getRequestKey=function(){};
_.r.getRequestConfig=function(){};
_.Ec.Object.defineProperties(vo8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var F_=function(){};
_.Z(F_,vo8);F_.prototype.JSC$11058_getStoreKey=function(){};
F_.prototype.JSC$11051_getRequestKey=function(W,e){e=e===void 0?{}:e;return this.JSC$11058_getStoreKey(W,e)};var DXv;_.X_=function(W,e,t){var b=t&&t>0?t:0;t=b?Date.now()+b*1E3:0;if((b=b?(0,_.GPN)():DXv())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{b.set(W,e,t)}catch(m){b.remove(W)}}};
_.Ie=function(W){var e=DXv(),t=(0,_.GPN)();if(!e&&!t||!window.JSON)return null;try{var b=e.get(W)}catch(m){}if(typeof b!=="string")try{b=t.get(W)}catch(m){}if(typeof b!=="string")return null;try{b=JSON.parse(b,void 0)}catch(m){}return b};
_.ae=function(W){try{var e=DXv(),t=(0,_.GPN)();e&&e.remove(W);t&&t.remove(W)}catch(b){}};
_.GPN=_.B9(function(){try{var W=new v4v;var e=W.isAvailable()?W:null}catch(t){return null}return e?new _.r3(e):null});
DXv=_.B9(function(){var W=new G42;return W.isAvailable()?new _.r3(W):null});var w0=new _.W_("ENTITY_STATE_TOKEN"),c1=new _.W_("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var SvU=XMLHttpRequest.prototype.fetch,Brb=SvU&&SvU.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Ei?!0:!1;var v1=function(W){this.JSC$11063_storeWithEntities=W};
_.Z(v1,F_);_.r=v1.prototype;_.r.getApiPaths=function(){return M1Z};
_.r.getExtension=function(W){return _.l(W,_.z4)||_.l(W,_.Za)||_.l(W,MLZ)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$11058_getStoreKey=function(W){if((_.S("kevlar_cache_on_ttl_player")||_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("mweb_use_new_history_manager")||_.S("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var e={videoId:W.videoId};W.playlistId&&(e.playlistId=W.playlistId);W.playerParams&&(e.params=W.playerParams);return _.Y4("player",e)}};
_.r.JSC$11051_getClientScreen=function(W){var e;return((e=W.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.r.JSC$11051_buildRequest=function(W,e,t){if(_.S("enable_interstitial_entity_check")){var b=this.JSC$11063_storeWithEntities;if(e.videoId)for(var m=_.R(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),q=m.next();!q.done;q=m.next()){q=q.value;var Q;var X=void 0,I=void 0,u=e.videoId,c=q;(Q=b)?(u=_.X4(u+c,"interstitialInteractionStateEntity"),Q=(X=(I=_.I1(Q.getState().entities,"interstitialInteractionStateEntity",u))==null?void 0:I.primaryButtonClicked)!=null?X:!1):Q=!1;if(Q)switch(q){case "CONTENT_CHECK_REQUIRED":e.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":e.racyCheckOk=!0}}}e.videoId&&(W.videoId=e.videoId);e.playlistId&&(W.playlistId=e.playlistId);e.index!==void 0&&(W.playlistIndex=e.index+1);e.playerParams&&(W.params=e.playerParams);"startTimeSeconds"in e&&e.startTimeSeconds&&(_.S("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(e.startTimeSeconds):W.startTimeSecs=e.startTimeSeconds);t.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:t.contentPlaybackContext});t.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:t.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});b=a7r();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!b,supportXhr:Brb};t.overrideMutedAtStart&&(W.overrideMutedAtStart=t.overrideMutedAtStart);W.racyCheckOk=!!e.racyCheckOk;W.contentCheckOk=!!e.contentCheckOk;!_.S("captions_prefs_killswitch")&&(t=(t=_.Ie("yt-player-caption-language-preferences"))?
t:[],t==null?0:t.length)&&(W.captionParams={viewerSelectedCaptionLangs:t})};
_.r.getRequestConfig=function(W){W=this.JSC$11058_getStoreKey(W);var e;W&&(e={storeStrategy:{storeKey:W}});_.S("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="ps_s",e.responseTick="ps_r");return e};
v1[dU]=[w0];var GI=function(){};
_.Z(GI,F_);_.r=GI.prototype;_.r.getApiPaths=function(){return uNZ};
_.r.getExtension=function(W){return _.l(W,_.z4)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$11058_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var e={videoId:W.videoId};W.playlistId&&(e.playlistId=W.playlistId);W.index&&(e.index=W.index);W.params&&(e.params=W.params);return _.Y4("next",e)}};
_.r.JSC$11051_getClientScreen=function(W){var e;return((e=W.contentPlaybackContext)==null?void 0:e.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.r.JSC$11051_buildRequest=function(W,e,t){e.videoId&&(W.videoId=e.videoId);e.playlistId&&(W.playlistId=e.playlistId);e.params&&(W.params=e.params);e.index!==void 0&&(W.playlistIndex=e.index);W.racyCheckOk=!(!t.racyCheckOk&&!e.racyCheckOk);W.contentCheckOk=!!e.contentCheckOk;t.contentPlaybackContext&&(W.autonavState=t.contentPlaybackContext.autonavState,W.playbackContext={vis:t.contentPlaybackContext.vis,lactMilliseconds:t.contentPlaybackContext.lactMilliseconds});t.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.S("captions_hats_killswitch")||(e=_.B6().getFlag(65),e=e!=null?!e:!1,t=!!_.Ie("yt-player-sticky-caption"),W.captionsRequested=e&&t)};
_.r.getRequestConfig=function(W){W=this.JSC$11058_getStoreKey(W);var e;W&&(e={storeStrategy:{storeKey:W}});_.S("web_log_player_watch_next_ticks")&&(e=e||{},e.requestTick="wn_s",e.responseTick="wn_r");return e};
var DU=function(){};
_.Z(DU,F_);DU.prototype.getApiPaths=function(){return uNZ};
DU.prototype.getExtension=function(W){return _.l(W,_.hp)};
DU.prototype.JSC$11051_buildRequest=function(W,e){e.token&&(W.continuation=e.token)};var S1=function(W,e){this.playerRequestBuilder=W;this.watchNextRequestBuilder=e};
_.Z(S1,F_);S1.prototype.getApiPaths=function(){return p1o};
S1.prototype.getExtension=function(W){return _.l(W,_.z4)};
S1.prototype.isNavigationCommand=function(){return!0};
S1.prototype.JSC$11051_buildRequest=function(W,e,t){W.playerRequest={};this.playerRequestBuilder.JSC$11051_buildRequest(W.playerRequest,e,t);_.S("web_streaming_watch")&&(W.watchNextRequest={},this.watchNextRequestBuilder.JSC$11051_buildRequest(W.watchNextRequest,e,t))};
S1[dU]=[v1,GI];var ooh;_.B1=new _.W_("SHORTS_CONTROLLER_TOKEN");ooh=new _.W_("SHORTS_STATE_STORE_TOKEN");var oe=function(W,e){var t=_.$N.apply(2,arguments);W=W===void 0?0:W;_.o_.call(this,e,t);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(oe,_.o_);var l7B,Zzo,kPB,WQg,iC,Gts,C4S,jVD,xXy,gob,f7h;l7B=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
Zzo=RegExp(".*\\?.*playnext=1.*");_.lT=function(W,e,t,b){this.watchEndpointMap=W;this.reelWatchEndpointMap=e;this.innerTubeTransportService=t;this.fetchPbj=b};
kPB=function(W,e,t){var b=_.ee().resolve(_.Wi($XD));_.lT.instance=new _.lT(W,e,t,b)};
_.pAr=function(W,e){var t=_.mn("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;var b;if((b=_.l(e.commandMetadata,_.ez))==null||!b.rootVe)return t&&_.JC(Error("Tf")),!1;var m;b=(m=_.l(e.commandMetadata,_.ez))==null?void 0:m.url;if(!b)return t&&_.JC(Error("Uf")),!1;if(Zzo.test(b))return!0;if(l7B.test(b))return t&&_.JC(Error("Vf`"+b)),!1;if(_.l(e,_.z4)){if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.S("kevlar_fetch_initial_data_op_watch_client")))return t&&_.JC(Error("Mf")),!1;
W=_.mn("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.l(e,_.z4)?R8R(e)?e=!0:(W&&_.JC(Error("Nf")),e=!1):(W&&_.JC(Error("Mf")),e=!1);return e}if(_.l(e,_.Za))return QjZ(e);if(_.l(e,_.xi))return!0;W=_.YD(W.innerTubeTransportService,e);!W&&t&&_.gQ(Error("Wf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(e)});return W};
WQg=function(W,e,t,b,m,q){e={url:e};if(t==null?0:t.itct)e.parentTrackingParams=t.itct;var Q=_.Am(zdP);return _.x0(W.innerTubeTransportService,e,Q).then(function(X){(X=X.endpoint)||(X=_.DB);(t==null?0:t.itct)&&X&&!X.trackingParams&&(X.trackingParams=t.itct);var I=oX(X);return iC(W,X,t,b,I,m,q)})};
iC=function(W,e,t,b,m,q,Q,X){X=X===void 0?{}:X;if(W.fetchPbj&&!_.pAr(W,e)&&!_.S("force_one_platform")){X=W.fetchPbj(e);var I=_.aT(X.then(function(V){if(!V)throw Error("Xf");Q(I)||q(e,V);return V}));
return I}var u,c,v={rootVe:(u=_.l(e.commandMetadata,_.ez))==null?void 0:u.rootVe,url:(c=_.l(e.commandMetadata,_.ez))==null?void 0:c.url,endpoint:e,page:m};if(_.l(e,_.z4)){var D,B={contentPlaybackContext:_.pB(t,(D=_.l(e.commandMetadata,_.ez))==null?void 0:D.url,b)},k=_.UZ();_.S("web_streaming_watch")&&window.TextDecoderStream?(X=ya8(W.innerTubeTransportService,e,B,function(V){!v.response&&V.content&&(v.response=V.content);!v.playerResponse&&V.player&&(v.playerResponse=V.player);q(e,v)}),u=WDR(e),u.length&&
(v.preconnect=u,q(e,v)),jVD(X,k,v).catch(function(V){V instanceof oe&&V.errorType===2&&C4S(W,e,B,v,q,Q,k)})):C4S(W,e,B,v,q,Q,k);
return k.promise}if(_.l(e,_.Za)){var n;if(((n=_.l(e,_.Za))==null?void 0:n.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f=_.UZ();_.noB(_.ee().resolve(_.B1),e).then(function(V){f7h(W,t,b,m,q,f,V)});
return f.promise}X=_.aT();var M;u={contentPlaybackContext:_.pB(t,(M=_.l(e.commandMetadata,_.ez))==null?void 0:M.url,b)};(M=W.reelWatchEndpointMap.player)&&(M=M().JSC$11051_getRequest(e,u))&&(X=_.x0(W.innerTubeTransportService,M.innerTubeRequest,M.input,e.clickTrackingParams,M.config));M=_.aT();(c=W.reelWatchEndpointMap.reelItemWatch)&&(c=c().JSC$11051_getRequest(e))&&(M=_.x0(W.innerTubeTransportService,c.innerTubeRequest,c.input,e.clickTrackingParams,c.config));c=_.aT();(D=W.reelWatchEndpointMap.reelWatchSequence)&&
_.l(e,_.Za).sequenceParams&&(u=D().JSC$11051_getRequest(e,u))&&(c=_.x0(W.innerTubeTransportService,u.innerTubeRequest,u.input,e.clickTrackingParams,u.config));u=_.aT(v);D=_.UZ();gob(e,u,X,M,c,q,Q,D);return D.promise}var K;if(_.l(e,b7s)&&((K=_.l(e.commandMetadata,_.ez))==null?0:K.url))return X=Ge9(_.Ya(C8().location.href),_.Ya(_.l(e.commandMetadata,_.ez).url)).toString(),WQg(W,X,t,b,q,function(){return!1});
if(_.l(e,_.xi))return q(e,v),_.aT(v);if(_.YD(W.innerTubeTransportService,e)){X=Object.assign({},{tempData:t,disableCache:t.disableCache},X);var U=_.z2(W.innerTubeTransportService,e,X).then(function(V){v.response=V;Q(U)||q(e,v);return v});
return U}return _.aT(v)};
_.Jak=function(W,e,t,b){if(_.l(e,_.z4)||_.l(e,_.Za)&&(_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("kevlar_enable_shorts_prefetch_in_sequence"))||_.l(e,MLZ)&&_.S("web_enable_prefetching_videos_on_home")){var m,q={contentPlaybackContext:_.pB(t,(m=_.l(e.commandMetadata,_.ez))==null?void 0:m.url,b),prefetchPlaybackContext:azR(t)},Q,X,I;if(((Q=_.l(e,_.z4))==null?void 0:(X=Q.watchEndpointSupportedPrefetchConfig)==null?void 0:(I=X.prefetchHintConfig)==null?void 0:I.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(t=
W.watchEndpointMap.watchNext)if(q=t().JSC$11051_getRequest(e,q))return Promise.resolve(_.x0(W.innerTubeTransportService,q.innerTubeRequest,q.input,void 0,q.config).then(function(v){return v}))}else if(_.l(e,_.Za)&&_.S("web_prefetch_riw_for_next_video")){if(t=W.reelWatchEndpointMap.reelItemWatch)if((t=t().JSC$11051_getRequest(e,q))&&_.x0(W.innerTubeTransportService,t.innerTubeRequest,t.input,void 0,t.config).then(function(v){return v}),t=W.reelWatchEndpointMap.player)if(q=t().JSC$11051_getRequest(e,
q))return Promise.resolve(_.x0(W.innerTubeTransportService,q.innerTubeRequest,q.input,void 0,q.config).then(function(v){return v}))}else if(t=W.watchEndpointMap.player)if(q=t().JSC$11051_getRequest(e,q))return Promise.resolve(_.x0(W.innerTubeTransportService,q.innerTubeRequest,q.input,void 0,q.config).then(function(v){return v}))}else if(_.YD(W.innerTubeTransportService,e)){var u={tempData:t},c=TrS(W.innerTubeTransportService,e);
return c?new Promise(function(v,D){var B,k;return _.F(function(n){if(n.nextAddress==1)return _.a(n,c,2);if(n.nextAddress!=4)return B=n.yieldResult,B.JSC$11058_getStoreKey(e,u)?_.a(n,_.z2(W.innerTubeTransportService,e,u),4):(D(new _.o_("Prefetching request builder with no store key.",e)),n.jumpTo(0));k=n.yieldResult;v(k);_.u8(n)})}):Promise.reject(new _.o_("Prefetching unregistered request builder.",e))}return Promise.reject(new _.o_("No request builder available to prefetch endpoint.",e))};
Gts=function(W,e){var t,b,m;if(_.l(e,_.z4)){var q=W.watchEndpointMap.watchNext;q&&(t=q());(W=W.watchEndpointMap.player)&&(b=W())}else if(_.l(e,_.Za))(q=W.reelWatchEndpointMap.reelItemWatch)&&(t=q()),(q=W.reelWatchEndpointMap.player)&&(b=q()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(m=W());else{a:{W=m4Z(e,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.gQ(new _.o_("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",e));else break a;
W=void 0}W&&(t=W)}var Q,X,I;return{content:(Q=t)==null?void 0:Q.JSC$11058_getStoreKey(e),player:(X=b)==null?void 0:X.JSC$11058_getStoreKey(e),reelSequence:(I=m)==null?void 0:I.JSC$11058_getStoreKey(e)}};
C4S=function(W,e,t,b,m,q,Q){var X=_.aT(),I=W.watchEndpointMap.player;_.S("web_streaming_player")&&(I=kQ(S1));I&&(I=I().JSC$11051_getRequest(e,t))&&(X=_.x0(W.innerTubeTransportService,I.innerTubeRequest,I.input,e.clickTrackingParams,I.config));I=_.aT();var u=W.watchEndpointMap.watchNext;u&&(t=u().JSC$11051_getRequest(e,t))&&(I=_.x0(W.innerTubeTransportService,t.innerTubeRequest,t.input,e.clickTrackingParams,t.config));W=_.aT(b);xXy(e,W,X,I,m,q,Q)};
jVD=function(W,e,t){return _.F(function(b){if(b.nextAddress==1)return _.a(b,W,2);e.resolve(t);_.u8(b)})};
xXy=function(W,e,t,b,m,q,Q){var X,I,u,c,v;_.F(function(D){switch(D.nextAddress){case 1:return _.a(D,e,2);case 2:X=D.yieldResult;if(q(Q.promise))return Q.resolve(X),D.return();m(W,X);I=WDR(W);if(!I.length){D.jumpTo(3);break}return _.a(D,e,4);case 4:X.preconnect=I,m(W,X);case 3:return _.Qh(D,5),_.a(D,t,7);case 7:u=D.yieldResult;_.Hi(D,6);break;case 5:return c=_.w9(D),Q.reject(c),D.return();case 6:if(u===void 0)return X.reload=!0,m(W,X),Q.resolve(X),D.return();if(q(Q.promise))return Q.resolve(X),D.return();
X.playerResponse=u;m(W,X);_.Qh(D,8);return _.a(D,b,10);case 10:v=D.yieldResult;_.Hi(D,9);break;case 8:_.w9(D);case 9:if(v===void 0)return X.response={responseContext:{}},Q.resolve(X),D.return();if(q(Q.promise))return Q.resolve(X),D.return();X.response=v;m(W,X);Q.resolve(X);_.u8(D)}})};
gob=function(W,e,t,b,m,q,Q,X){var I,u,c,v,D,B;_.F(function(k){switch(k.nextAddress){case 1:return _.a(k,e,2);case 2:I=k.yieldResult;if(Q(X.promise))return X.resolve(I),k.return();q(W,I);u=WDR(W);if(!u.length){k.jumpTo(3);break}return _.a(k,e,4);case 4:I.preconnect=u,q(W,I);case 3:return _.Qh(k,5),_.a(k,t,7);case 7:c=k.yieldResult;_.Hi(k,6);break;case 5:return v=_.w9(k),X.reject(v),k.return();case 6:if(c===void 0)return I.reload=!0,q(W,I),X.resolve(I),k.return();if(Q(X.promise))return X.resolve(I),
k.return();I.playerResponse=c;q(W,I);_.Qh(k,8);return _.a(k,b,10);case 10:D=k.yieldResult;_.Hi(k,9);break;case 8:_.w9(k);case 9:if(D===void 0)return I.response={responseContext:{}},X.resolve(I),k.return();if(Q(X.promise))return X.resolve(I),k.return();I.response=D;q(W,I);_.Qh(k,11);return _.a(k,m,13);case 13:B=k.yieldResult;_.Hi(k,12);break;case 11:_.w9(k);case 12:if(Q(X.promise))return X.resolve(I),k.return();I.reelWatchSequenceResponse=B;q(W,I);X.resolve(I);_.u8(k)}})};
f7h=function(W,e,t,b,m,q,Q){var X,I,u,c,v,D;_.F(function(B){if((X=Q)==null||!X.replacementEndpoint)return q.reject(),B.return();I=Q.replacementEndpoint;(u=_.l(I,_.Za))?(Q.sequenceContinuation&&(u.sequenceParams=Q.sequenceContinuation),c=_.ee().resolve(_.B1),v=u.sequenceParams,Ozk(c,I)&&delete u.sequenceParams,D=iC(W,I,e,t,b,m,function(){return!1}),D.then(function(k){return _.F(function(n){if(n.nextAddress==1)return MUo(c,{reelWatchEndpoint:{sequenceParams:v}},k),_.a(n,0,2);
q.resolve(k);_.u8(n)})})):q.reject();
_.u8(B)})};_.sVU=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var e=[],t=_.R(W.validatedFragments_),b=t.next();!b.done;b=t.next()){b=_.R(W.fragmentConfiguration_[b.value].graftedKeys);for(var m=b.next();!m.done;m=b.next())(m=W.prefetchedData_[m.value].trackingParams)&&e.push(m)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:e})}return W.mergedPrefetchedData_};var hUo;_.ZU=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
hUo=function(W,e,t){if(_.rHz(e))return W.prefetchCache_.get(_.qPs(e,t))};_.$6=new _.W_("NAVIGATION_TOKEN");var Hzk=function(W){var e=this;var t=t===void 0?lzS():t;var b=b===void 0?_.ee().resolve(_.$6):b;this.onePickCommand=W;this.JSC$11161_playlistNetworkManager=t;this.navigationManager=b;this.videoPickerBuilder=_.BqG("yt-addtoplaylist");_.FJS(teU(bKU(eZr(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(rOb()).addView(m58())).addView("youtube"),W.selectButtonLabel)),function(m){e.handleAction(m)})};
Hzk.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Hzk.prototype.handleAction=function(W){var e=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var t=[];W.docs.forEach(function(b){t.push({addedVideoId:b.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11161_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,t).then(function(){_.S("playlist_add_video_hard_reload_killswitch")?e.navigationManager.reload():K4k(e.navigationManager)})}};var P4N=function(){if(this.constructor===P4N)throw new TypeError("Yf");};
_.r=P4N.prototype;_.r.dispose=function(){};
_.r.disconnect=function(){};
_.r.reconnect=function(){};
_.r.observe=function(W,e,t){return{element:W,option:t}};
_.r.unobserveByKey=function(){};var Z7G=function(W,e){e=e===void 0?0:e;P4N.call(this);this.viewroot=W;this.defaultPrescanHeight=e;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.Z(Z7G,P4N);_.r=Z7G.prototype;_.r.dispose=function(){this.disconnect();this.handlers.clear()};
_.r.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.R(this.prescanObservers.values());for(var e=W.next();!e.done;e=W.next())e.value.disconnect()};
_.r.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.R(this.handlers),e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;var b=t.next().value;t=!1;b=_.R(b.keys());for(var m=b.next();!m.done;m=b.next())if((m=m.value)&&m.state==="prescan"){t=!0;break}t&&VUe(this,e).observe(e);this.observer.observe(e)}}};
_.r.handleObserveEvent=function(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=this.handlers.get(e.target);if(t){var b=e.isIntersecting;t=_.R(t);for(var m=t.next();!m.done;m=t.next()){var q=_.R(m.value);m=q.next().value;q=q.next().value;m&&(m.state==="visible"&&b||m.state==="hidden"&&!b)&&(q(e.target,m.state),m.calledOnce&&this.unobserveByKey({element:e.target,option:m}))}}}};
_.r.handlePrescanEvent=function(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=this.handlers.get(e.target);if(t&&e.isIntersecting){t=_.R(t);for(var b=t.next();!b.done;b=t.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;b&&b.state==="prescan"&&(m(e.target,b.state),b.calledOnce&&this.unobserveByKey({element:e.target,option:b}))}}}};
_.r.observe=function(W,e,t){var b=(b=this.handlers.get(W))&&b.has(t)?{element:W,option:t}:void 0;if(b)return b;b={element:W,option:t};this.handlers.has(W)||this.handlers.set(W,new Map);var m=this.handlers.get(W);m&&!m.has(t)&&m.set(t,e);this.pauseObservingUntilReconnect||(t.state==="prescan"&&VUe(this,W).observe(W),this.observer.observe(W));return b};
_.r.unobserveByKey=function(W){var e=this.handlers.get(W.element);if(e&&e.has(W.option)){e.delete(W.option);if(W&&W.option.state==="prescan")for(var t=_.R(this.prescanObservers.values()),b=t.next();!b.done;b=t.next())b.value.unobserve(W.element);e.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var VUe=function(W,e){var t=W.defaultPrescanHeight;e.hasAttribute("prescan-height")&&(e=Number(e.getAttribute("prescan-height")),isNaN(e)||(t=e));if(W.prescanObservers.has(t))return W.prescanObservers.get(t);e="-0.1px -0.1px "+t+"px -0.1px";e=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:e}:{rootMargin:e});W.prescanObservers.set(t,e);return e};var ize=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Yvr=function(){var W,e=this;this.JSC$11178_actionRouter=W=W===void 0?_.P3.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return e.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return e.visibilityObservedElementHandlerKeys}}},zUb,L4U,Nrb;
Yvr.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.S("kevlar_use_vimio_behavior")&&_.Ot("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=$MS())};
Yvr.prototype.dispose=function(){this.visibilityMonitor&&_.lj(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Yvr.prototype.handleVisibilityRefreshed=function(){for(var W=_.R(this.targetMap.entries()),e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;_.UXU(this,e,t)}};
_.Aav=function(W,e,t){L4U(W,t);var b=_.Eoo(W,e);b.element=t;W.targetedElements.set(t,e);_.UXU(W,e,b)};
L4U=function(W,e){var t=W.targetedElements.get(e);if(t){var b=W.targetMap.get(t);b&&(delete b.element,W.targetMap.set(t,b));W.targetedElements.delete(e);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(t=W.visibilityObservedElementHandlerKeys.get(e))&&(W.visibilityObserver.unobserveByKey(t),W.visibilityObservedElementHandlerKeys.delete(e))}};
_.UXU=function(W,e,t){var b=t.action,m=t.element;m&&b&&(ize.includes(e)||_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(m)?Nrb(W,e,t):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),b=W.visibilityObserver.observe(m,function(){Nrb(W,e,t);W.visibilityObservedElementHandlerKeys.delete(m)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(m,b)))};
Nrb=function(W,e,t){var b=t.action;(t=t.element)&&b&&(_.xc(W.JSC$11178_actionRouter,[b],t),W.targetMap.delete(e),W.targetedElements.delete(t),W.triggeredTargets.add(e))};
_.Eoo=function(W,e){var t=W.targetMap.get(e);t||(t={},W.targetMap.set(e,t));return t};
_.k6=function(){zUb||(zUb=new Yvr);return zUb};var dXN=document.createElement("div");dXN.style.touchAction="pan-down";var kev=dXN.style.touchAction==="pan-down";var W3U,e$h;W3U=function(){this.hammerFn=NzB();this.JSC$11186_screenManager=_.Sg();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.na(83615);_.I0(this.JSC$11186_screenManager,this.ve);p4z()};
_.pT=function(){e$h||(e$h=new W3U);return e$h};
W3U.prototype.registerTouchEvents=function(W,e,t){var b=_.$N.apply(3,arguments),m=this.hammerFn(W,{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}]]});t&&m.set({touchAction:t});this.nodeManagerMapping.set(W,m);var q=
yHG(e);b=_.R(b);for(var Q=b.next();!Q.done;Q=b.next()){Q=Q.value;if(Q.includes("swipe")||Q.includes("pinch")||Q.includes("pan"))Q.includes("swipe")?m.get("swipe").set({enable:!0,direction:q,velocity:.2}):Q.includes("pinch")?m.get("pinch").set({enable:!0}):Q.includes("pan")&&(m.get("pan").set({enable:!0,direction:q}),m.get("swipe").set({enable:!0,direction:q,velocity:.2}),m.get("swipe").recognizeWith("pan"));t2b(this,W,m,Q)}};
var t2b=function(W,e,t,b){t.on(b,function(m){if(b.includes("pinch"))W.lastPinchTime=Date.now();else if(b.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;m.pointerType!=="mouse"&&(m=b==="doubletap"?{coordinates:m.center}:b.includes("pan")?m:b.includes("swipe")?{target:m.target}:{},e.dispatchEvent(new CustomEvent(b,{bubbles:!0,composed:!0,detail:m})))})};
W3U.prototype.unregisterTouchEvents=function(W){var e=_.$N.apply(1,arguments),t=this.nodeManagerMapping.get(W);if(t){e=_.R(e);for(var b=e.next();!b.done;b=e.next())t.off(b.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var byU=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var jjv=null;var miD=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},z89=function(){miD.instance||(miD.instance=new miD);
return miD.instance},UML=function(W){var e=W.networkEvents;
W.networkEvents=[];return _.S("enable_network_monitoring")?e:[]};var rMD;rMD={};_.qeo=WH("yt-serviceworker-metadata",{objectStores:(rMD.auth={addedAtVersion:1},rMD["resource-manifest-assets"]={addedAtVersion:2},rMD),shared:!0,upgrade:function(W,e){e(1)&&HH(W,"resource-manifest-assets");e(2)&&HH(W,"auth")},
version:2});var JHG=self.location.origin+"/";xMG([/\.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\//]);xMG([/purge_shell=1/]);var R$y=void 0;R$y=R$y===void 0?[]:R$y;for(var QCo=[],F3Z=_.R(Knr),XBS=F3Z.next();!XBS.done;XBS=F3Z.next())QCo.push({key:XBS.value});for(var Iq8=_.R(R$y),aqv=Iq8.next();!aqv.done;aqv=Iq8.next())QCo.push(aqv.value);var wBh,xQ=_.tz==null?void 0:(wBh=_.tz.performance)==null?void 0:wBh.memory,sj2=!1,LIR={},KIg={},Or={},Mu=navigator;var yN=function(W){this.JSC$11230_expiringStorage=new ZK(W)};
yN.prototype.set=function(W,e,t){t=t!==void 0?Date.now()+t:void 0;this.JSC$11230_expiringStorage.set(W,e,t)};
yN.prototype.get=function(W){return this.JSC$11230_expiringStorage.get(W)};
yN.prototype.remove=function(W){this.JSC$11230_expiringStorage.remove(W)};var buK=_.Nw(["https://www.youtube.com/",""]),m$2=_.Nw(["https://studio.youtube.com/",""]),FtD="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",qpR=null,uys;var uKk=_.Nw(["https://www.youtube.com/iframe_api"]),j1=function(){this.playerResolver_=_.UZ();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.SQ;this.playbackDurationSeconds_=0},cMD=function(W){var e=function(){return window.YT&&typeof window.YT.ready==="function"};
if(e())return _.aT(window.YT);var t=_.UZ(),b=_.DA("SCRIPT");b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||(b.onload=_.SQ,b.onreadystatechange=_.SQ,b.onerror=_.SQ,e()?t.resolve(window.YT):t.reject(new _.o_("Failed to load the iframe player library","script.onload",b.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
b.onerror=function(m){b.onload=_.SQ;b.onreadystatechange=_.SQ;b.onerror=_.SQ;t.reject(new _.o_("Failed to load the iframe player library","script.onerror",m&&m.target&&m.target.src))};
_.H7(b,_.bN(uKk));W.insertBefore(b,W.firstChild);return t.promise},veo=function(W,e,t){var b,m;
_.F(function(q){switch(q.nextAddress){case 1:return W.playbackEndedCallback_=t,_.Qh(q,2),_.a(q,cMD(e.parentElement||null),4);case 4:b=q.yieldResult;_.Hi(q,3);break;case 2:return m=_.w9(q),m instanceof _.o_&&m.args&&m.args[0]=="script.onerror"?_.JC(m):_.gQ(m),q.return();case 3:b.ready(function(){return new b.Player(e,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.u8(q)}})};
_.r=j1.prototype;_.r.getPlayerPromise=function(){return this.playerPromise_};
_.r.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.r.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var e=W.getCurrentTime();W.addCueRange("playback",e,e+this.playbackDurationSeconds_)}};
_.r.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.r.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var GpZ=function(W){W.playerVars_&&W.playerPromise_.then(function(e){typeof e.cueVideoByPlayerVars!="function"?_.JC(new _.o_("vmh: player API not ready","cueVideoByPlayerVars",typeof e.cueVideoByPlayerVars)):e.cueVideoByPlayerVars(W.playerVars_)})};
j1.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(e){typeof e.loadVideoByPlayerVars!="function"?(e=new _.o_("vmh: player API not ready","loadVideoByPlayerVars",typeof e.loadVideoByPlayerVars),_.gQ(e)):e.loadVideoByPlayerVars(W.playerVars_)})};
var Dih=function(W,e,t,b,m){e&&(t===void 0&&(t=0),b===void 0&&(b=0),W.playbackDurationSeconds_=b/1E3,W.playerVars_={adformat:"17_8",videoId:e,suggestedQuality:"hd720",startSeconds:t/1E3,player_params:m})};
j1.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
j1.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var SeD=function(W,e){var t=Mg();W||(W="unknown");e||(e="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in Jne||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");e="MAIN_APP_WEB_REQUEST_TYPE_"+e.toUpperCase();e in x3Z||(e="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.vN(t,{mainAppWeb:{pageType:W,requestType:e,isShellLoad:_.MD("IS_SHELL_LOAD",!1)}})},BcD={start:function(){_.vN(MFv(),{mainAppWeb:_.im()})},
success:function(){_.GL(MFv(),"SUCCESS")},
failure:function(){_.GL(MFv(),"FAILURE")},
cancelled:function(){_.GL(MFv(),"CANCELLED")}};var oer,lqr,lSz;oer=_.Nw(["/sw.js"]);lqr=_.Nw(["/sw.js?0"]);_.Zye=_.bN(oer);lSz=_.bN(lqr);var $ih=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.Z($ih,Error);_.Ur.prototype.load=function(W){this.megabloxUrl_=_.Ot("YPC_MB_URL");_.sT(this.megabloxUrl_,(0,_.p3)(function(){W&&W()},this))};
_.Fvv=function(W,e,t,b,m,q,Q,X,I,u,c){_.$$9(I);W.load((0,_.p3)(function(){try{var v=q?q:_.Ot("HL"),D=_.Ot("SESSION_INDEX");_.vZc("client",function(){EPy("59",{helpCenterPath:"/youtube",locale:v,window:window}).JSC$8021_loadChatSupport({authuser:String(D)})})}catch(B){throw YQ(10,c,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),m&&m(B),_.gQ(B),B;
}kpo(this,e,t,b,m,q,Q,X,I,u,c)},W))};
_.Ur.prototype.openFixFlowDialog=function(W,e,t,b){this.load((0,_.p3)(function(){try{pBh(this,_.HO("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(e).load(t,b)}catch(m){throw _.gQ(m),m;}},this))};
var pBh=function(W,e,t,b){var m=e.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.S("enable_window_constrained_buy_flow_dialog")&&(m=m.usingPopupStyle(_.HO("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));b&&(m=m.usingCloseCallback(b));e.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=e.bootstrap.asMashupMode(m);t=t?t:_.Ot("HL");W.usingGaiaIndex(_.Ot("SESSION_INDEX")).usingLocale(t).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.S("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},kpo=function(W,e,t,b,m,q,Q,X,I,u,c){try{var v=_.HO("payments.business.integration");
if(!v)throw new $ih("payments.business.integration is undefined");var D=v.standaloneContextAuthId.forUserId(),B=pBh(W,v,q,function(){pls(!1);X&&X()});
Q&&B.usingServerAnalyticsEventHandler(Q);var k=B.inStandaloneContext(D).buyFlow(function(n){if(n&&(!n.integratorData||n.integratorData===""||n.error))if(n.error!=null)if(String(n.error)==="-1")_.kxD(I);else{var f=String(n.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";YQ(10,c,f,n.debugCode);_.zi(f,I,n.debugCode);f=new _.o_("PAYMENT_ERROR_MESSAGE::"+n.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+n.internalErrorDetails);
_.gQ(f)}else YQ(10,c,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.zi("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",I,"EMPTY_INTEGRATOR_DATA"),_.gQ(Error("cg"));t&&(pls(!1),t(n))}).withEncryptedParameters(e);
u&&k.withClientParameters(qf2(_.IP9(u)));k.load(function(){YQ(24,c);_.xh("ttc",void 0,"commerce_transaction");rqZ("commerce_transaction");b&&(pls(!0),b())},function(n){if(n==null?0:n.debugCode)var f=n==null?void 0:n.debugCode;
else if(!n||(n==null?0:n.debugCode))f="EMPTY_LOAD_FAILURE_ERROR",_.gQ(Error(f));else{f="EMPTY_LOAD_FAILURE_DEBUG_CODE";var M=new _.o_("LOAD_FAILURE:"+n.message," DEBUG_CODE:"+f);_.gQ(M)}YQ(10,c,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f);_.zi("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I,f);_.gQ(n);m&&m(n)})}catch(n){throw n instanceof $ih&&(YQ(10,c,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),m&&m(n)),_.gQ(n),n;
}};var yMe;yMe=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.qKL=function(W,e){e=e===void 0?!1:e;W=yMe.test(W)?_.Fh(W):null;!e&&window.payments||!W?(W=_.UZ(),e=W.promise,W.resolve()):e=_.TPP(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return e};var jCb;jCb=_.Nw(["//www.googletagmanager.com/gtm.js?id=",""]);_.CT=function(W,e){_.mg(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:e}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Ot("GL")}),e=_.DA("SCRIPT"),e.async=!0,_.H7(e,_.bN(jCb,W)),e.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(e):(W=W[0],W.parentNode.insertBefore(e,W)))};
_.nT=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var CO8,nee;CO8=_.Nw(["https://clients2.google.com/gr/gr_sync.js"]);_.mxK=function(){};
_.mxK.prototype.init=function(){if(nee()){var W=_.UZ();W.resolve();return W.promise}return _.TPP(_.bN(CO8)).then(function(){if(!nee())throw Error("dg");},function(){throw Error("eg");
})};
_.rVL=function(){if(!nee())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
nee=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.O=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Z(_.O,PolymerFakeBaseClassWithoutHtml);_.D0=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.Z(_.D0,PolymerFakeBaseClassWithoutHtml);var yNG=window.ShadyDOM;var QLz,qyK,XC2,I42,wCz,uaG,fT,mZ;QLz=_.S("enable_shadydom_free_scoped_query_methods");qyK=_.S("enable_shadydom_free_scoped_node_methods");XC2=_.S("enable_shadydom_free_scoped_readonly_properties_batch_one");I42=_.S("enable_shadydom_free_parent_node");wCz=_.S("enable_shadydom_free_children");uaG=_.S("enable_shadydom_free_last_child");fT=window.ShadyDOM;_.FB=fT&&fT.noPatch&&fT.wrap?fT.wrap:fT?function(W){return fT.patch(W)}:function(W){return W};
mZ=function(W){if(W instanceof ShadowRoot)this.host=(0,_.FB)(W.host),this.root=W;else if(W.$$){this.host=(0,_.FB)(W);var e;this.root=(e=W.root)!=null?e:this.host}else if(W.polymerController){this.host=(0,_.FB)(W);var t;this.root=(t=this.host.shadowRoot)!=null?t:this.host}else this.root=this.host=(0,_.FB)(W)};
R7G();FjK();cxc();vIS();a4K();var fqS={querySelector:function(W,e){e=CZD(e,Nu(W));W=_.dD(W);return WG(W).prototype.querySelector.call(W,e)},
querySelectorAll:function(W,e){e=CZD(e,Nu(W));W=_.dD(W);return WG(W).prototype.querySelectorAll.call(W,e)}},geb={appendChild:function(W,e){var t=Nu(W),b=_.A8(e);
return _.mvK(_.dD(W),t?_.tc(e,t,b):e)},
cloneNode:function(W,e){var t=_.A8(W);W=_.dD(W);e=WG(W).prototype.cloneNode.call(W,e);return t?bl(e,t):e},
contains:function(W,e){var t=Nu(W),b=_.A8(e);return t!==b?!1:rx9(W,e)},
insertBefore:function(W,e,t){var b=Nu(W),m=_.A8(e);W=_.dD(W);e=b?_.tc(e,b,m):e;return WG(W).prototype.insertBefore.call(W,e,t)},
removeChild:function(W,e){var t=Nu(W);W=_.dD(W);e=t?bl(e,t):e;return WG(W).prototype.removeChild.call(W,e)},
replaceChild:function(W,e,t){var b=Nu(W),m=_.A8(e);e=b?_.tc(e,b,m):m?bl(e,m):e;t=b?bl(t,b):t;W=_.dD(W);return WG(W).prototype.replaceChild.call(W,e,t)},
getRootNode:function(W,e){e=e===void 0?{composed:!0}:e;var t;if(((t=e)!=null?t:{}).composed)W=HuS(W);else{e=W;for(W=fSg(W);W;)e=W,W=TW9(W);W=e}return W}},Dvz=XC2?{firstChild:NWD,
nextSibling:LtL,previousSibling:ANR,firstElementChild:d$2,lastElementChild:e7S,nextElementSibling:U$G,previousElementSibling:EOD,childNodes:ttL}:{};I42&&(Dvz.parentNode=zg9);wCz&&(Dvz.children=b2z);uaG&&(Dvz.lastChild=WjZ);QLz&&GC9(fqS);qyK&&GC9(geb);SyG();var BFQ=function(W){this.node=W instanceof ShadowRoot?W.host:W};
oIv();l4K();var kCv=new WeakMap;var yxD=Symbol("wd");var gI9=new Set(["tap","track","down","up"]),TFG=_.S("pbcm_fi_query_decorators");var gt=function(){return _.D0.apply(this,arguments)||this};
_.Z(gt,_.D0);_.r=gt.prototype;_.r.getState=function(){return this.store.getState()};
_.r.dispatch=function(W){this.store.dispatch(W)};
_.r.beforeRegister=function(){if(this&&typeof this==="object"){var W;var e=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else e=!1;if(!e&&this.properties)for(e=_.R(Object.keys(this.properties)),W=e.next();!W.done;W=e.next()){var t=W.value;W=this.properties[t];if(W.selector){if(W.computed)throw Error("kg");t=["reduxPropertiesRecomputeTrigger",'"'+t+'"'].concat(_.kP(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+t+")"}}};
_.r.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.S("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.r.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.r.recomputeReduxSelector=function(W,e){var t=_.$N.apply(2,arguments),b=this.properties[e].selector;if(!b)throw Error("ig`"+e);return b.apply(null,[this.store.getState()].concat(_.kP(t)))};
_.r.select=function(W){var e=_.$N.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.kP(e)))};
_.Ec.Object.defineProperties(gt.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
gt.prototype.recomputeReduxSelector=gt.prototype.recomputeReduxSelector;_.P([_.J(),_.Y("design:type",Number)],gt.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.P([_.SB()],gt);var TI=[],Mtg={},fD=function(){return Nn.apply(this,arguments)||this};
_.Z(fD,Nn);fD.prototype._addPropertyEffect=function(W,e,t){if(e==="__observeEffects"&&t){var b,m=(b=t.info.method)!=null?b:t.info.methodName;if(m){var q=this[m];this[m]=function(){TI.push(m);try{q==null||q.apply(this,arguments)}finally{TI.pop()}}}}_.Zc._addPropertyEffect.apply(this,[W,
e,t])};
fD.prototype._setPendingProperty=function(W,e,t){if(TI.length){var b=TI[TI.length-1],m;(m=Mtg[this.is])!=null&&m.has(b)||(sLS(this.is,b),_.nJ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:b}))}return _.Zc._setPendingProperty.apply(this,[W,e,t])};
_.P([oBG()],fD);var h79=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Kjs,ll={};_.S("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=ll);var kt=function(){return _.D0.apply(this,arguments)||this};
_.Z(kt,_.D0);kt.prototype._setUnmanagedPropertyToNode=function(W,e,t){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(t!==W[e]||typeof t==="object")W[e]=t;W.is&&W.polymerController&&W.polymerController!==W&&Z0(W.is,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
_.P([_.SB()],kt);H2G()&&(Oc.prototype._setUnmanagedPropertyToNode=(new kt)._setUnmanagedPropertyToNode);_.tUD={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var nD=function(){var W=Nn.apply(this,arguments)||this;W.json=function(){};
return W};
_.Z(nD,Nn);nD.prototype.equals=function(W,e){return W===e};
nD.prototype.isEmpty=function(W){return!W||_.Ns(W)&&W.length===0};
_.P([oBG()],nD);var Tck=function(W){W=GXG(W);hX.call(this,W)};
_.Z(Tck,hX);Tck.prototype.addProvider=function(W){W=W.key?W:GXG([W])[0];var e=this.keyIdToIndex.get(W.key.id);if(e){if(z7G(W,this.providers[e]))throw Error("lg`"+W.key.displayName);}else hX.prototype.addProvider.call(this,W)};
var JMv=new Tck([]);var xiN=!1;var dvs={};xiN||(NFG(),xiN=!0);
dvs.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var e=GXG(W),t=_.R(e),b=t.next();!b.done;b=t.next())JMv.addProvider(b.value);var m=new Set;Uv9(this.behaviors||[],m);e={};for(var q=_.R(m),Q=q.next();!Q.done;Q=q.next()){var X=Q.value;X.inject&&Object.assign(e,X.inject)}this.inject&&Object.assign(e,this.inject);for(var I=_.R(Object.keys(e)),u=I.next();!u.done;u=I.next()){var c=u.value,v=e[c];try{this[c]=JMv.resolve(v)}catch(D){throw D;}}}catch(D){throw Error(D.message);
}}};var eUG;var bzQ=/\bclass\b/.test(function(){}.toString()),qvR=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var OyU=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$11359_getImpl=W[0],this.JSC$11359_setImpl=W[1]):this.JSC$11359_getImpl=W};
_.r=OyU.prototype;_.r.getWithPath=function(W){return F4S(this.JSC$11359_getImpl(),W)};
_.r.setWithPath=function(W,e){var t=this;if(W.length)throw Error("mg");if(!this.JSC$11359_setImpl)throw Error("ng");Bf(function(){t.JSC$11359_setImpl(e)})};
_.r.notifyPath=function(){throw Error("og");};
_.r.notifySplices=function(){throw Error("pg");};
_.r.getChangeRecordSignal=function(W,e){var t=this;if(W.length)throw Error("qg");return function(){var b=t.getWithPath(W);return{path:e!=null?e:"",base:b,value:b}}};
_.r.getSplicesSignal=function(){throw Error("rg");};
_.r.getPathMutationSignal=function(){throw Error("sg");};
_.r.pop=function(){throw Error("tg");};
_.r.push=function(){throw Error("ug");};
_.r.splice=function(){throw Error("vg");};
_.r.unshift=function(){throw Error("wg");};var Jh=function(W){var e=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$11364_getImpl=W[0],this.JSC$11364_setImpl=W[1]):this.JSC$11364_getImpl=W;this.wasDefined=!1;ab(function(){e.wasDefined=e.JSC$11364_getImpl()!==void 0})};
Jh.prototype.getWithPath=function(W){return F4S(this.JSC$11364_getImpl(),W)};
Jh.prototype.setWithPath=function(W,e){var t=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){if(W.length===0){if(!this.JSC$11364_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=e!==void 0);Bf(function(){t.JSC$11364_setImpl(e)})}else{for(var b=ab(function(){return t.getWithPath([])}),m=0;m<W.length-1;m++){if(!b)return;
b=b[W[m]]}m=W[W.length-1];b&&(b[m]=e);this.wasDefined||(this.wasDefined=W.length>1||e!==void 0)}M2e(this,W,{pathComponents:W,value:e})}};
Jh.prototype.notifyPath=function(W,e){W.length===0?e&&this.setWithPath(W,e.value):M2e(this,W,{pathComponents:W,value:e==null?void 0:e.value,fallbackWhenUndefined:e==null?void 0:e.value})};
var M2e=function(W,e,t,b){if(W.setMutationSignal){var m=++W.mutationIndex,q=[W.observedPath],Q=W.observedPath,X;e.length===0&&(X=Q);for(var I=0;I<e.length;I++){var u=Q.subPaths[e[I]];if(!u)break;q.push(u);Q=u;I===e.length-1&&(X=u)}for(e=!1;q.length;)Q=q.shift(),Q.data={index:m,mutation:t,spliceMutationIndex:b},e||(e=Q===X),e&&q.push.apply(q,_.kP(Object.values(Q.subPaths)));Bf(function(){W.setMutationSignal(m)})}};
Jh.prototype.notifySplices=function(W,e){var t=this,b=ab(function(){return t.getWithPath(W)}),m=[].concat(_.kP(W),["splices"]);
M2e(this,m,{pathComponents:m,value:{indexSplices:e}});if(b==null?0:b.length)e=this.mutationIndex,m=[].concat(_.kP(W),["length"]),M2e(this,m,{pathComponents:m,value:b.length},e)};
var sCb=function(W,e,t,b,m,q){W.notifySplices(t,[{index:b,addedCount:m,removed:q,object:e,type:"splice"}])},h$e=function(W,e){W=W.observedPath;
for(var t=0;t<e.length;t++){var b=e[t],m=W.subPaths[b];m||(m={pathComponents:e.slice(0,t+1),subPaths:{}},W.subPaths[b]=m);W=m}},K3P=function(W,e,t){h$e(W,e);
if(!W.getMutationSignal){var b=_.R(_.up(W.mutationIndex,void 0,"HavCgf"));W.getMutationSignal=b.next().value;W.setMutationSignal=b.next().value}var m=W.getMutationSignal;return _.SC(function(){m();return t(HyP(W,e))},void 0,"BYaPo")};
Jh.prototype.getChangeRecordSignal=function(W,e){var t=this,b=this.mutationIndex,m;return K3P(this,W,function(q){if(q&&q.index>b){var Q=q.mutation;b=q.index;m=void 0}q=ab(function(){return t.getWithPath(W)});
if(Q){var X=Q.pathComponents[Q.pathComponents.length-1],I=[].concat(_.kP(Q.pathComponents));if(X==="splices"||X==="length")return{base:q,path:(e?[e].concat(_.kP(I)):I).join("."),value:Q.value};var u=W.length>I.length?W:I,c;return{base:q!=null?q:Q.fallbackWhenUndefined,path:(e?[e].concat(_.kP(u)):u).join("."),value:(c=ab(function(){return t.getWithPath(u)}))!=null?c:Q.fallbackWhenUndefined}}m||(m={base:q,
path:(e?[e].concat(_.kP(W)):W).join("."),value:q});return m})};
Jh.prototype.getSplicesSignal=function(W){var e=this.mutationIndex,t;return K3P(this,W,function(b){if(b&&b.index>e&&b.spliceMutationIndex!==e){var m=b.mutation;e=b.index;t=void 0}return m&&m.pathComponents[m.pathComponents.length-1]==="splices"?t=b=m.value:t})};
Jh.prototype.getPathMutationSignal=function(W){var e=this;h$e(this,W);if(!this.getMutationSignal){var t=_.R(_.up(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=t.next().value;this.setMutationSignal=t.next().value}var b=this.getMutationSignal,m=this.mutationIndex,q;return _.SC(function(){b();var Q=HyP(e,W);if(Q&&Q.index>m&&Q.mutation&&XAc(Q.mutation.pathComponents,W)){var X=Q.mutation;m=Q.index}if(!q||m!==q.index){var I,u;Q=(u=ab(function(){return e.getWithPath(W)}))!=null?u:(I=X)==null?
void 0:I.fallbackWhenUndefined;
q={index:m,value:Q}}return q},void 0,"Aumsyf")};
var HyP=function(W,e){W=W.observedPath;e=_.R(e);for(var t=e.next();!t.done;t=e.next())W=W.subPaths[t.value];return W.data};
Jh.prototype.pop=function(W){var e=this,t=ab(function(){return e.getWithPath(W)});
if(!(t instanceof Array))throw Error("yg");var b=t.length>0,m=t.pop();b&&sCb(this,t,W,t.length,0,[m]);return m};
Jh.prototype.push=function(W){var e=_.$N.apply(1,arguments),t=this,b=ab(function(){return t.getWithPath(W)});
if(!(b instanceof Array))throw Error("zg");var m=b.length,q=b.push.apply(b,_.kP(e));e.length&&sCb(this,b,W,m,e.length,[]);return q};
Jh.prototype.splice=function(W,e,t){var b=_.$N.apply(3,arguments),m=this,q=ab(function(){return m.getWithPath(W)});
if(!(q instanceof Array))throw Error("Ag");e<0?e=q.length-Math.floor(-e):e&&(e=Math.floor(e));var Q=q.splice.apply(q,[e,t].concat(_.kP(b)));(b.length||Q.length)&&sCb(this,q,W,e,b.length,Q);return Q};
Jh.prototype.unshift=function(W){var e=_.$N.apply(1,arguments),t=this,b=ab(function(){return t.getWithPath(W)});
if(!(b instanceof Array))throw Error("Bg");var m=b.unshift.apply(b,_.kP(e));e.length&&sCb(this,b,W,0,e.length,[]);return m};var POr=!0,V2h=!1,Yez=!1,iyo=!1,x6=!1,Yek=0;iyo=!1;Yek=0;POr=!0;x6=V2h=Yez=!1;var Ou=function(W,e,t){this.model=W;this.unknownSignalResolver=e;this.options=t;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];e=_.R(SvZ());W=e.next().value;e=e.next().value;this.owner=W;this.disposeImpl=e};
Ou.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.R(this.childSignalProxies),e=W.next();!e.done;e=W.next())e.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var z$e=function(W,e){W=_.eC(W.owner);try{e()}finally{_.eC(W)}};
Ou.prototype.effect=function(W){z$e(this,function(){_.JO(W)})};
var UiS=function(W,e){W.options!=null||(W.options={});var t;(t=W.options).immutableProps!=null||(t.immutableProps=new Set);W.options.immutableProps.add(e)},iz2=function(W,e){e=""+e;
L3h(W,e);var t,b;if((t=W.options)==null?0:(b=t.immutableProps)==null?0:b.has(e))return!0;var m;if((m=W.model.__signalCache)==null?0:m.has(e))t=W.model.__signalCache.get(e),Array.isArray(t)&&UiS(W,e);var q,Q,X;return(X=(q=W.options)==null?void 0:(Q=q.immutableProps)==null?void 0:Q.has(e))!=null?X:!1},Eek=function(W,e){var t;
W.unknownSignalResolver&&(t=W.unknownSignalResolver(e));var b,m;((b=W.options)==null?0:(m=b.immutableProps)==null?0:m.has(e))?t!=null||(t=new OyU(_.up(W.model[e],void 0,"bgwlkd"))):t!=null||(t=new Jh(_.up(W.model[e],void 0,"V1hou")));var q=W.model.hostElement;Object.defineProperty(W.model,e,{get:function(){Vts(q,e);return t.getWithPath([])},
set:function(Q){$t(q,e);W.setWithPath([e],Q)},
configurable:!0});return t},L3h=function(W,e){var t,b,m;
((t=W.model.__signalCache)==null||!t.has(e))&&((b=W.options)==null?0:(m=b.externalSignalProps)==null?0:m.has(e))&&W.model[e]},xt=function(W,e){e=""+e;
var t=W.signalCache[e];if(t!==void 0)return t;t=!1;L3h(W,e);var b;if((b=W.model.__signalCache)==null?0:b.has(e))if(t=W.model.__signalCache.get(e),Array.isArray(t))t=!0,UiS(W,e);else return W.signalCache[e]=W.model.__signalCache.get(e).signal,W.signalCache[e];var m,q;b=(q=(m=W.options)==null?void 0:m.reactivityMode)!=null?q:0;var Q,X;if(!((Q=W.options)==null?0:(X=Q.reactiveProps)==null?0:X.has(e))&&!t&&b===1)throw Error("Cg`"+e);m=t?AMh(W,e):Eek(W,e);return W.signalCache[e]=m},AMh=function(W,e){var t=
Object.getOwnPropertyDescriptor(W.model.constructor.prototype,e),b=function(){return W.model[e]};
return new OyU(t&&t.get&&!t.set?b:[b,function(m){W.model[e]=m}])};
Ou.prototype.getWithPath=function(W){var e=_.R(W);W=e.next().value;e=AE(e);Vts(this.model.hostElement,""+W);return xt(this,W).getWithPath(e)};
Ou.prototype.setWithPath=function(W,e){if(W.length){$t(this.model.hostElement,W.join("."));var t=_.R(W);W=t.next().value;t=AE(t);xt(this,W).setWithPath(t,e)}};
Ou.prototype.getPathMutationSignal=function(W){var e=_.R(W);W=e.next().value;e=AE(e);return xt(this,W).getPathMutationSignal(e)};
Ou.prototype.notifyPath=function(W,e){var t=_.R(W);W=t.next().value;t=AE(t);xt(this,W).notifyPath(t,e)};
var NcN=function(W,e){if(e.type==="literal")return function(){return{rootWasDefined:!0,value:e.value}};
var t=TF(e.path),b=_.R(t),m=b.next().value;b=AE(b);var q,Q;if(e.type==="path"&&(t.length===1||((q=W.options)==null?0:(Q=q.immutableProps)==null?0:Q.has(m))))return function(){var v=W.getWithPath(t.slice(0,1)),D=F4S(v,t.slice(1));v=v!==void 0;x6&&(v=xt(W,t[0]).wasDefined);return{rootWasDefined:v,value:D}};
var X=xt(W,m);if(e.type==="path"){var I=X.getPathMutationSignal(b);return function(){var v=x6?X.wasDefined:M5(W.owner,function(){return X.getWithPath([])})!==void 0;
var D,B=(D=I())==null?void 0:D.value;return{rootWasDefined:v,value:B}}}if(e.type==="splices"){var u=X.getSplicesSignal(b);
return function(){var v=u();return{rootWasDefined:x6?X.wasDefined:v!==void 0,value:v}}}var c=X.getChangeRecordSignal(b,""+m);
return function(){var v=c();return{rootWasDefined:x6?X.wasDefined:v!==void 0,value:v}}},voK=function(W,e,t){var b=t.map(function(X){return NcN(W,X)}),m=t.length===0,q=[],Q=t.length!==1||t[0].type!=="path"?!1:!0;
W.effect(function(){for(var X=b.length,I=[],u=!!q.length,c=0;c<X;c++){var v=b[c](),D=v.rootWasDefined;v=v.value;m||(m=D);I[c]=v;Q&&(I[c+X]=u?q[c]:I[c],q[c]=v)}m&&M5(W.owner,function(){return void e.apply(null,_.kP(I))})})},I79=function(W,e,t,b,m){var q=xt(W,e);
m!==void 0&&q.setWithPath([],m);voK(W,function(){var Q=_.$N.apply(0,arguments);$t(W.model.hostElement,e,!0);q.setWithPath([],t.apply(null,_.kP(Q)))},b)};
Ou.prototype.arrayPush=function(W){var e=_.$N.apply(1,arguments),t=_.R(W),b=t.next().value;t=AE(t);b=xt(this,b);return b.push.apply(b,[t].concat(_.kP(e)))};
Ou.prototype.arraySplice=function(W,e,t){var b=_.$N.apply(3,arguments),m=_.R(W),q=m.next().value;m=AE(m);q=xt(this,q);return q.splice.apply(q,[m,e,t].concat(_.kP(b)))};
Ou.prototype.arrayUnshift=function(W){var e=_.$N.apply(1,arguments),t=_.R(W),b=t.next().value;t=AE(t);b=xt(this,b);return b.unshift.apply(b,[t].concat(_.kP(e)))};
Ou.prototype.notifySplices=function(W,e){var t=_.R(W);W=t.next().value;t=AE(t);xt(this,W).notifySplices(t,e)};var kPG=/([^\s]+?)\(([\s\S]*)\)/,l7G=/\.([^.]+)$/,yaK=/\\,/g,BrD=/&comma;/g,oov=/\\(.)/g,pAQ=[],Zzs={"*":"wildcard",splices:"splices"};var MUs=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"),TrL=/[A-Z]/,diP=["class","hidden","id","on-dom-change"],hUs=new Set([].concat(_.kP(diP),
["if","notify-dom-change","restamp"])),Hzz=new Set([].concat(_.kP(diP),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),K4z=new Set(["restamp"]);var huL=new Set(["className","id"]);var zUD=Symbol(),W3Z=window;var QCs=window;var cMg=0,IqK=0,Oz=[],uKz=0,XBL=!1,wBv=document.createTextNode("");(new window.MutationObserver(aq9)).observe(wBv,{characterData:!0});var sz=new Map,MN=0,WaS=function(W){this.mappedHandleId=W},GpS=function(W,e,t,b){this.mappedHandleId=W;
var m=this;this.mappedHandleId=W;this.callback=e;this.waitTime=t;this.schedulerPriority=b;this.handleId=_.Tm.addJob(function(){m.callback();sz.delete(m.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.Z(GpS,WaS);GpS.prototype.cancel=function(){_.Tm.cancelJob(this.handleId);sz.delete(this.mappedHandleId)};
var Div=function(W,e){this.mappedHandleId=W;var t=this;this.mappedHandleId=W;this.callback=e;this.handleId=ves(function(){t.callback();sz.delete(t.mappedHandleId)})};
_.Z(Div,WaS);Div.prototype.cancel=function(){var W=this.handleId-IqK;W<0||Oz.length<=W||(Oz[W]=null);sz.delete(this.mappedHandleId)};var lqQ=function(){};
lqQ.prototype.cancel=function(){this.jobHandle!==void 0&&(Seg(this.jobHandle),this.jobHandle=void 0)};
lqQ.prototype.run=function(W,e,t){var b=this;this.cancel();this.callback=W;this.jobHandle=_.hc(function(){W();b.callback=void 0},e,t)};
lqQ.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Bcg=new WeakMap;var euv=Aq(function(W){for(var e=W,t=0;t<3;t++)e=Object.getPrototypeOf(e);delete e.prototype.connectedCallback;var b=function(){return W.apply(this,arguments)||this};
_.Z(b,W);b.prototype._attachDom=function(m){if(!m)return null;var q=(0,_.FB)(this.hostElement);q.attachShadow({mode:"open",shadyUpgradeFragment:m});q.shadowRoot.appendChild(m);return q.shadowRoot};
b.prototype._takeAttributes=function(){for(var m=this.hostElement.attributes,q=0;q<m.length;q++){var Q=m[q],X=void 0,I=void 0;(I=(X=this).__attributeReaction)==null||I.call(X,Q.name,null,Q.value)}};
b.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
b.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.Ec.Object.defineProperties(b,{template:{configurable:!0,enumerable:!0,get:function(){return b.prototype._template}}});
return b}),bLe=Aq(function(W){var e=function(){return W.apply(this,arguments)||this};
_.Z(e,W);e.prototype.created=function(){if(this.__notifyEffects)for(var t=_.R(Object.values(this.__notifyEffects)),b=t.next();!b.done;b=t.next()){b=_.R(b.value);for(var m=b.next();!m.done;m=b.next())m.value.fn=pBv}if(this.__reflectEffects)for(t=_.R(Object.values(this.__reflectEffects)),b=t.next();!b.done;b=t.next())for(b=_.R(b.value),m=b.next();!m.done;m=b.next())m.value.fn=yM2};
e.prototype._addEventListenerToNode=function(t,b,m){t=KD(t);C1(t,b,m)||W.prototype._addEventListenerToNode.call(this,t,b,m)};
e.prototype._removeEventListenerFromNode=function(t,b,m){t=KD(t);n1(t,b,m)||W.prototype._removeEventListenerFromNode.call(this,t,b,m)};
e.prototype._propertiesChanged=function(t,b,m){if(this.__dataToNotify&&this.__notifyEffects)for(var q=_.R(Object.keys(this.__dataToNotify)),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var X=kps(Q);this.__notifyEffects[X]||delete this.__dataToNotify[Q]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,t,b,m)};
e.prototype.fire=function(t,b,m){b=b===void 0?{}:b;var q;return _.q2(KD((q=m==null?void 0:m.node)!=null?q:this),t,b,m)};
e.prototype._ensureAttribute=function(t,b){var m=KD(this);m.hasAttribute(t)||Jc(m,b,t)};
e.prototype.isLightDescendant=function(t){var b=KD(this);return KD(b)!==t&&_.rz(b).contains(t)&&_.rz(b).getRootNode()===_.rz(t).getRootNode()};
return e});
_.$G.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var e;((e=this.hostElement)!=null?e:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.gf._subscribeIronResize=function(W){var e;((e=W.hostElement)!=null?e:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.gf._unsubscribeIronResize=function(W){var e;((e=W.hostElement)!=null?e:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var ne2=[Array,Boolean,Date,Number,Object,String],VQ=function(W,e,t,b){this.polySiInfo=W;this.polySiParams=e;this.polySiContext=t;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;b||this instanceof HTMLElement&&(b=this);if(!b)throw Error("Jg");this.allowedProps=e.allowedProps;this.hostElement=b;this.is=W.is;this.upgradeDisabled=!!e.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(e.reactiveSchemas.filter(function(m){return m.type!==
"observe"}).map(function(m){return m.propertyKey}));
this.signalProxy=new Ou(this,void 0,{reactiveProps:W,reactivityMode:e.reactivityMode});this.__dataHasAccessor={};e=_.R(e.reactiveSchemas);for(W=e.next();!W.done;W=e.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||mES(this)};
VQ.prototype.getExtraMethodsToForward=function(){return[]};
var mES=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=F3S(W.polySiParams.templateGetter,W.polySiParams.is)));rUh(W);var e=W.hostElement;e.loggingStatus!=null||(e.loggingStatus={});e.loggingStatus.isInitializing=!0;ab(function(){return void W.created()});
e.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&q3U(W)},q3U=function(W){W.didCallReady||(ab(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.r=VQ.prototype;_.r.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||q3U(this)};
_.r.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.r.attributeChangedCallback=function(W,e,t){if(this.upgradeDisabled)W==="disable-upgrade"&&t===null&&(this.upgradeDisabled=!1,mES(this));else if(e!==t){var b=_.vF(W),m=this.polySiContext.typesForSignals[b];if(m&&(!this.reflecting||_.S("polysi_attribute_changed_serializing_killswitch"))){switch(m){case Object:try{var q=JSON.parse(t)}catch(X){q=t}break;case Array:try{q=JSON.parse(t)}catch(X){q=null}break;case Date:q=isNaN(t)?String(t):Number(t);q=new Date(q);break;case Boolean:q=t!==null;break;case Number:q=
Number(t);break;default:q=t}this[b]=q}b=_.R(this.polySiParams.behaviors);for(m=b.next();!m.done;m=b.next())q=void 0,(q=m.value.attributeChanged)==null||q.call(this,W,e,t);var Q;(Q=this.attributeChanged)==null||Q.call(this,W,e,t)}};
_.r.attributeChangedCallbackWrapper=function(W,e,t){this.attributeChangedCallback(W,e,t)};
_.r.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var e=this.hostElement.attributes[W];(e.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(e.name))&&this.attributeChangedCallback(e.name,null,e.value)}};
_.r.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.R(this.polySiParams.reactiveSchemas);for(var e=W.next();!e.done;e=W.next())e=e.value,e.type==="signal"&&(this.mutablePropNames.add(e.propertyKey),xt(this.signalProxy,e.propertyKey));COK(this,this.polySiInfo,this.polySiParams.behaviors);W=_.R(this.polySiParams.reactiveSchemas);for(e=W.next();!e.done;e=W.next())e=e.value,e.type==="signal"&&e.value!==void 0&&(this.signalProxy.model[e.propertyKey]=
typeof e.value==="function"?e.value.call(this):e.value);if(this.polySiParams.signalProperties)for(W=_.R(this.polySiParams.signalProperties),e=W.next();!e.done;e=W.next()){e=e.value;var t=void 0;((t=this.__signalCache)==null?0:t.has(e))||(this.signalProxy.model[e]=void 0)}iyo||Rur(this);jCD(this);W=_.R(this.polySiParams.behaviors);for(e=W.next();!e.done;e=W.next())t=void 0,(t=e.value.created)==null||t.call(this);var b;(b=this.polySiInfo.created)==null||b.call(this)};
_.r.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var e=Object.getPrototypeOf(this);e.addReactiveSchema=function(X){W.polySiParams.reactiveSchemas.push(X)};
for(var t=_.R(this.polySiParams.behaviors),b=t.next();!b.done;b=t.next()){var m=void 0;(m=b.value.beforeRegister)==null||m.call(e)}var q;(q=this.polySiInfo.beforeRegister)==null||q.call(e);e.addReactiveSchema=geD;t=_.R(this.polySiParams.behaviors);for(b=t.next();!b.done;b=t.next())m=void 0,(m=b.value.registered)==null||m.call(e);var Q;(Q=this.polySiInfo.registered)==null||Q.call(e)};
_.r.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);iyo&&Rur(this);var e;if(W=(e=this.polySiContext.finalizedTemplate)==null?void 0:e.processedTemplate){W=R$R(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});e=W.nodesById;W=W.root;var t=this.hostElement;var b=b===void 0?!1:b;t=(0,_.FB)(t);if(!t.attachShadow)throw Error("Cd");if(!t.shadowRoot||b)t.attachShadow({mode:"open",shadyUpgradeFragment:W}),t.shadowRoot.appendChild(W);
this.root=t.shadowRoot;this.$=e}Qu8(this);b=_.R(this.polySiParams.behaviors);for(e=b.next();!e.done;e=b.next())W=void 0,(W=e.value.ready)==null||W.call(this);var m;(m=this.polySiInfo.ready)==null||m.call(this)};
_.r.attached=function(){for(var W=_.R(this.polySiParams.behaviors),e=W.next();!e.done;e=W.next()){var t=void 0;(t=e.value.attached)==null||t.call(this)}var b;(b=this.polySiInfo.attached)==null||b.call(this)};
_.r.detached=function(){for(var W=_.R(this.polySiParams.behaviors),e=W.next();!e.done;e=W.next()){var t=void 0;(t=e.value.detached)==null||t.call(this)}var b;(b=this.polySiInfo.detached)==null||b.call(this)};
var rUh=function(W){for(var e=_.R(W.polySiParams.behaviors),t=e.next();!t.done;t=e.next())if(t=t.value,t.listeners)for(var b in t.listeners)qes(W,W.hostElement,b,t.listeners[b]);if(W.polySiInfo.listeners)for(var m in W.polySiInfo.listeners)qes(W,W.hostElement,m,W.polySiInfo.listeners[m])},qes=function(W,e,t,b,m){W=QVD(W,b,m);
C1(e,t,W)||e.addEventListener(t,W);return W},Rur=function(W){for(var e=_.R(W.polySiParams.reactiveSchemas),t=e.next();!t.done;t=e.next())t=t.value,t.type==="compute"||t.type==="computeWithMethod"?a7Q(W.signalProxy,t,W):t.type==="redux"?caQ(W.signalProxy,t,W.store):t.type==="signal"&&t.readOnly&&uVG(W.signalProxy,t)},Qu8=function(W){for(var e=_.R(W.polySiParams.reactiveSchemas),t=e.next(),b={};!t.done;b={schema$jscomp$12:void 0},t=e.next())b.schema$jscomp$12=t.value,b.schema$jscomp$12.type==="notify"?
GPc(W.signalProxy,b.schema$jscomp$12,W.hostElement):b.schema$jscomp$12.type==="observe"?DX9(W.signalProxy,b.schema$jscomp$12,W):b.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(q){return function(){var Q=W.signalProxy.getWithPath([q.schema$jscomp$12.propertyKey]);
W.reflecting=!0;C4L(W.hostElement,q.schema$jscomp$12.propertyKey,Q,!0);W.reflecting=!1}}(b));
if(W.reflectedAttributes)for(e=_.R(Object.entries(W.reflectedAttributes)),b=e.next(),t={};!b.done;t={key$jscomp$881:void 0,value$jscomp$8884:void 0},b=e.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;t.key$jscomp$881=b;t.value$jscomp$8884=m;W.signalProxy.effect(function(q){return function(){W.reflecting=!0;C4L(W.hostElement,q.key$jscomp$881,(0,q.value$jscomp$8884)(),!0);W.reflecting=!1}}(t))}};
_.r=VQ.prototype;_.r._setPendingProperty=function(W,e){this.set(W,e);return!1};
_.r._enableProperties=function(){};
_.r._setPendingPropertyOrPath=function(W,e){this.notifyPath(W,e);return!1};
_.r._addPropertyEffect=function(){};
_.r._stampTemplate=function(){throw Error("Kg");};
_.r.fire=function(W,e,t){e=e===void 0?{}:e;t=t===void 0?{}:t;var b,m,q={bubbles:(b=t.bubbles)!=null?b:!0,cancelable:!!t.cancelable,composed:(m=t.composed)!=null?m:!0},Q;return _.q2(Tcz((Q=t.node)!=null?Q:this.hostElement),W,e,q)};
_.r.get=function(W,e){var t=TF(W);return e?F4S(e,t):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(t)};
_.r.linkPaths=function(){};
_.r.listen=function(W,e,t){W=Tcz(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var b=this.boundListeners.get(W);b||(b={},this.boundListeners.set(W,b));var m=e+t;b[m]||(b[m]=qes(this,W,e,t))};
_.r.notifyPath=function(W,e){this.signalProxy.notifyPath(TF(W),arguments.length===2?{value:e}:void 0)};
_.r.canNotifyPath=function(W){return this.mutablePropNames.has(W)&&!iz2(this.signalProxy,W)};
_.r.notifySplices=function(W,e){this.signalProxy.notifySplices(TF(W),e)};
_.r.pop=function(W){var e=this.signalProxy;W=TF(W);var t=_.R(W);W=t.next().value;t=AE(t);return xt(e,W).pop(t)};
_.r.push=function(W){var e=_.$N.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[TF(W)].concat(_.kP(e)))};
_.r.set=function(W,e,t){if(t)throw Error("Lg");W==="hidden"?this.hostElement.hidden=!!e:this.signalProxy.setWithPath(TF(W),e)};
_.r.setProperties=function(W){W=_.R(Object.entries(W));for(var e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;this[e]=t}};
_.r.splice=function(W,e,t){var b=_.$N.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[TF(W),e,t].concat(_.kP(b)))};
_.r.unlinkPaths=function(){};
_.r.unlisten=function(W,e,t){W=Tcz(W);if(this.boundListeners){var b=this.boundListeners.get(W);if(b){t=e+t;var m=b[t];m&&(n1(W,e,m)||W.removeEventListener(e,m),delete b[t])}}};
_.r.unshift=function(W){var e=_.$N.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[TF(W)].concat(_.kP(e)))};
_.Ec.Object.defineProperties(VQ.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 iys=[Array,Boolean,Date,Number,Object,String];var UiL=!1;var MQ=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$11472_didCallConnected=!1;W.JSC$11472_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=il()?void 0:_.up(!1,void 0,"zLXz1e");var e;W.getDisableTemplateUpdate=(e=W.disableTemplateUpdateSignalImpl)==null?void 0:e[0];var t;W.setDisableTemplateUpdate=(t=W.disableTemplateUpdateSignalImpl)==null?void 0:t[1];return W};
_.Z(MQ,HTMLElement);var FaN=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new Jh(_.up(!1,void 0,"wcuOQ")));return W.conditionSignalImpl};
_.r=MQ.prototype;_.r.showHideChildren=function(W){XVD(this,W,this.if)};
_.r.attributeChangedCallback=function(W,e,t){if(this.JSC$11472_didCallConnected)throw Error("Pg`"+W);W==="notify-dom-change"?this.notifyDomChange=t!==null:W==="restamp"&&(this.restamp=t!==null)};
_.r.debounceRender=function(){this.JSC$11472_renderDebouncer=_.Qy(this.JSC$11472_renderDebouncer,gs,this.JSC$11472_renderImpl.bind(this));_.FI(this.JSC$11472_renderDebouncer)};
_.r.disconnectedCallback=function(){var W=(0,_.FB)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&IGS(this)};
_.r.connectedCallback=function(){var W=this;this.JSC$11472_didCallConnected=!0;POr?L3v():this.style.display="none";this.parentSignalProxy.effect(function(){FaN(W).getWithPath([]);W.debounceRender()})};
_.r.render=function(){_.wJ()};
_.r.JSC$11472_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if;if(W){a:{var e=(0,_.FB)(this).parentNode;if(this.hasInstance()){var t=this.instance.children;if((t==null?0:t.length)&&(0,_.FB)(this).previousSibling!==t[t.length-1])for(var b=0;b<t.length;b++)(0,_.FB)(e).insertBefore(t[b],this)}else{if(!e){e=!1;break a}aGD(this,e)}e=!0}if(!e)return}else this.restamp&&IGS(this);XVD(this,!1,W);W&&wVU(this);V2h&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.r.hasInstance=function(){return!!this.instance};
var aGD=function(W,e){var t=W.parentSignalProxy;if(il()){var b=_.R(_.up(!0,void 0,"wXzgnc"));var m=b.next().value;b=b.next().value;t=W.parentSignalProxy}else{var q;var Q=new Ou((q=uSr(W))!=null?q:{},function(I){var u=xt(W.parentSignalProxy,I).getChangeRecordSignal([]);I=_.up(void 0,void 0,"mryEkc");var c=new Jh(I);Q.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var v=u();c.notifyPath(TF(v.path),{value:v.value})}});
return c});
W.parentSignalProxy.childSignalProxies.push(Q);var X=t=Q}t=R$R(W.templateInfo,W.templateInfo.nodeInfoList,t,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:il()?m:void 0,getModel:function(){return uSr(W)}}).root;
W.instance={root:t,children:[],hidden:!1,signalProxy:X,getTemplateUpdatesEnabled:m,setTemplateUpdatesEnabled:b};X=_.R(t.childNodes);for(m=X.next();!m.done;m=X.next())W.instance.children.push(m.value);(0,_.FB)(e).insertBefore(W.instance.root,W)},uSr=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var e={},t;
for(t in W)W.hasOwnProperty(t)&&(e[t]=W[t]);return e}},IGS=function(W){if(W.instance){var e=W.instance.children;
if(e.length){var t=(0,_.FB)(e[0]).parentNode;if(t){t=(0,_.FB)(t);for(var b=0;b<e.length;b++)t.removeChild(e[b])}}il()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},XVD=function(W,e,t){e=e||!t;
W.instance&&W.instance.hidden!==e&&(W.instance.hidden=e,z$2(e,W.instance.children))},wVU=function(W){if(il()){var e=W.instance;
e&&M5(W.parentSignalProxy.owner,function(){return!e.getTemplateUpdatesEnabled()})&&e.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.Ec.Object.defineProperties(MQ.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return M5(this.parentSignalProxy.owner,function(){return FaN(W).getWithPath([])})},
set:function(W){W||(il()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));FaN(this).setWithPath([],!!W)}}});
_.Ec.Object.defineProperties(MQ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",MQ);var cUZ=[],su=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$11479_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$11479_didCallConnected=!1;return W};
_.Z(su,HTMLElement);var vWD=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new Jh(_.up(cUZ,void 0,"YBrqgf")));return W.itemSignalImpl},G7P=function(W,e){Array.isArray(e)||(e=cUZ);
vWD(W).setWithPath([],e)};
_.r=su.prototype;_.r.showHideChildren=function(W){for(var e=_.R(this.instances),t=e.next();!t.done;t=e.next())z$2(W,t.value.children)};
_.r.notifyPath=function(W,e){W=TF(W);W[0]==="items"&&(W.length===1?G7P(this,e):vWD(this).setWithPath(W.slice(1),e))};
_.r.canNotifyPath=function(W){return W==="items"};
_.r.attributeChangedCallback=function(W,e,t){if(this.JSC$11479_didCallConnected)throw Error("Qg`"+W);W==="as"?this.as=t:W==="index-as"?this.indexAs=t:W==="items-index-as"?this.itemsIndexAs=t:W==="initial-count"?this.initialCount=Number(t):W==="notify-dom-change"?this.notifyDomChange=t!==null:W==="target-framerate"&&(this.targetFramerate=Number(t))};
_.r.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)DEh(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.r.connectedCallback=function(){var W=this,e=vWD(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var m=e(),q=TF(m.path);if(q[0]===void 0||q[0]==="splices"||q[0]==="length")W.debounceRender();else{var Q=q[0];if(Q=W.instances[typeof Q==="string"?Math.floor(Number(Q)):Q])q=[W.as].concat(_.kP(q.slice(1))),Q.signalProxy.notifyPath(q,m)}});
this.JSC$11479_didCallConnected=!0;POr?L3v():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var t=(0,_.FB)((0,_.FB)(this).parentNode),b=0;b<this.instances.length;b++)t.insertBefore(this.instances[b].root,this);this.chunkingId&&this.render()}};
_.r.debounceRender=function(){this.JSC$11479_renderDebouncer=_.Qy(this.JSC$11479_renderDebouncer,gs,this.JSC$11479_renderImpl.bind(this));_.FI(this.JSC$11479_renderDebouncer)};
_.r.render=function(){this.debounceRender();_.wJ()};
_.r.JSC$11479_renderImpl=function(){var W=this,e=this.items,t=S3D(this,e.length);BXr(this,e,t);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var b=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/b*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
V2h&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var S3D=function(W,e){var t=e,b=W.instances.length;if(W.initialCount){if(W.chunkCount){var m=Math.min(Math.max(e-b,0),W.chunkCount);t=Math.min(b+m,e)}else t=Math.min(e,W.initialCount),m=Math.max(t-b,0),W.chunkCount=m||1;W.shouldMeasureChunk=m===W.chunkCount;W.shouldContinueChunking=t<e;W.renderStartTime=performance.now()}return t},BXr=function(W,e,t){for(var b=0;b<t;b++){var m=W.instances[b],q=e[b];
m?(m.signalProxy.setWithPath([W.as],q),m.signalProxy.setWithPath([W.indexAs],b)):oWv(W,q,b)}for(e=W.instances.length-1;e>=b;e--)t=W,m=e,DEh(t,m),_.R(t.instances.splice(m,1)).next().value.signalProxy.dispose()},DEh=function(W,e){W=W.instances[e];
e=(0,_.FB)(W.root);for(var t=0;t<W.children.length;t++)e.appendChild(W.children[t])},oWv=function(W,e,t){var b={};
e=Object.assign({},lGS(W),(b[W.as]=e,b[W.indexAs]=t,b[W.itemsIndexAs]=t,b));var m=new Ou(e,function(Q){if(Q!==W.as&&Q!==W.indexAs){if(Q===W.itemsIndexAs)return xt(m,W.indexAs);var X=xt(W.parentSignalProxy,Q).getChangeRecordSignal([]);Q=_.up(void 0,void 0,"Mu2Bwb");var I=new Jh(Q);m.effect(function(){var u=X();I.notifyPath(TF(u.path),{value:u.value})});
return I}});
W.parentSignalProxy.childSignalProxies.push(m);b=R$R(W.templateInfo,W.templateInfo.nodeInfoList,m,{eventListenerHost:W.eventListenerHost,getModel:function(){var Q={};return Object.assign({},lGS(W),(Q[W.as]=m.model[W.as],Q[W.indexAs]=m.model[W.indexAs],Q[W.itemsIndexAs]=m.model[W.indexAs],Q))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:Yek,enabledSignal:W.stampingEnabled}).root;e={root:b,children:[],signalProxy:m};b=_.R(b.childNodes);for(var q=b.next();!q.done;q=b.next())e.children.push(q.value);b=(b=W.instances[t+1])?b.children[0]:W;(0,_.FB)((0,_.FB)(W).parentNode).insertBefore(e.root,b);W.instances[t]=e},lGS=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var e={},t;
for(t in W)W.hasOwnProperty(t)&&(e[t]=W[t]);return e}};
su.prototype.itemForElement=function(W){var e=this,t=this.instances.find(function(b){return b.children.includes(W)});
if(t)return M5(this.parentSignalProxy.owner,function(){return t.signalProxy.getWithPath([e.as])})};
su.prototype.indexForElement=function(W){var e=this.instances.findIndex(function(t){return t.children.includes(W)});
return e>=0?e:void 0};
_.Ec.Object.defineProperties(su.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return M5(this.parentSignalProxy.owner,function(){return vWD(W).getWithPath([])})},
set:function(W){G7P(this,W)}},
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}}});
_.Ec.Object.defineProperties(su,{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",su);var ZLB,$Er;_.hh=new _.W_("STATE_STORE_TOKEN");ZLB=new _.W_("SELECT_TOKEN");$Er=new _.W_("DISPATCH_TOKEN");var eu9={getSelectFn:function(){var W;return(W=_.ee().resolve(_.Wi(ZLB)))!=null?W:Eez},
getDispatchFn:function(){var W;return(W=_.ee().resolve(_.Wi($Er)))!=null?W:_.Yt().dispatch.bind(_.Yt())},
getAppStore:function(){return _.ee().resolve(_.hh)}},AMv,WaL=!1;var Ac={traceAllComponents:_.S("web_tracing_all_components"),exportToCsi:_.S("web_tracing_export_to_csi"),exportBreadcrumbs:_.S("web_enable_tracing"),bufferSize:_.mn("web_max_tracing_events"),enabledSpansArray:_.qz("web_tracing_enabled_spans")};var QuK=function(){};var rUv=void 0;var k7B=function(){};
k7B.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var e,t;return(t=(e=this.hostElement)==null?void 0:e.hasAttribute("disable-upgrade"))!=null?t:!1}throw Error("Rg`"+W);};
k7B.prototype.attributeChangedCallbackWrapper=function(W,e,t){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&t===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var b;((b=this.hostElement)!=null?b:this).isConnected&&this.connectedCallback()}else e===t||this.__isReflecting||this.attributeChangedCallback(W,e,t)};
k7B.prototype.getExtraMethodsToForward=function(){for(var W=this,e=[],t=_.R(pVN),b=t.next(),m={};!b.done;m={tagName$jscomp$53:void 0,name$jscomp$532:void 0},b=t.next())m.name$jscomp$532=b.value,b=void 0,m.name$jscomp$532==="_setPendingProperty"?(m.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),b=function(q){return function(Q,X,I){Z0(q.tagName$jscomp$53,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(Q,X,I)}}(m)):b=function(q){return function(){return W[q.name$jscomp$532].apply(W,
_.kP(_.$N.apply(0,arguments)))}}(m),e.push([m.name$jscomp$532,
b]);return e};
for(var IGL=bLe(euv((0,_.lS)(k7B))),cUS=["disabled","disable-upgrade"],yUZ=(0,_.lS)(function(){}),jue=new Set(Object.getOwnPropertyNames(yUZ.prototype)),BXQ=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.kP(jue))),G7G=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),pVN=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),CBe=new Set([].concat(_.kP(G7G),_.kP(pVN),_.kP(jue))),nWv=_.R(CBe),fGe=nWv.next();!fGe.done;fGe=nWv.next())h79.add(fGe.value);var S3g={created:function(){jCD(this);this.initializeInjection()}};var CB2=!1,t_=window.ShadyDOM,Mrs=["appendChild","insertBefore","removeChild","replaceChild"],OLQ=[Node];t_&&OLQ.push(t_.Wrapper);var Vr2,iLv,UEL={};var rA=new Set,bL="",Lav="";var mu,qk=new Set;var mKc=new Set("context didCallReady is info params signalProxy".split(" ")),q2R="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),RA2="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var gWr=w3({entities:RDK}),TXN=new LG(gWr);var JUN=function(){return _.D0.apply(this,arguments)||this};
_.Z(JUN,_.D0);_.Ec.Object.defineProperties(JUN.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return TXN}}});
_.P([_.SB()],JUN);_.H1=[gt.prototype,JUN.prototype];_.KT={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,e={};setTimeout(function(){var t;return _.q2((t=W.hostElement)!=null?t:W,"yt-live-chat-add-tooltip-target",e)},0);
this.handler_=e.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.wA=new _.W_("ICON_MANAGER_TOKEN");var xES=[48,20,18,16,15,13,12],C7c=new Map,ZAD=new Set,BgG=new Set,ly9=new Set,S2S=new Set,oRQ=new Set,kYK=new Promise(function(W){var e=!1,t=!1,b=!1,m=[],q=function(Q){if("detail"in Q)if(Q=Q.detail,Q.name==="yt-icons")$K9(Q),e=!0;else if(Q.name==="yt-sys-icons")$K9(Q),t=!0;else{var X;((X=Q.name)==null?0:X.includes("yt-sys-icons"))&&Q.size!==24&&($K9(Q,!0),m.push(Q.size),m.length===xES.length&&(b=!0))}e&&t&&b&&(window.removeEventListener("iron-iconset-added",q),W())};
window.addEventListener("iron-iconset-added",q)}),ybL=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"]]);_.P1={};_.P1.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Ub,computeHref_:function(W,e){e=e===void 0?!1:e;if(!W||W.commandExecutorCommand)return null;var t=PLG(W,e);return e||t!==null?t?_.S("enable_polymer_resin")?_.lF(t).toString():t:null:(_.JC(new _.o_("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?TAg(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.ao(W.iconType):""},
resolveCommand:function(W,e,t){e=e===void 0?{}:e;return _.cg(W,this.hostElement,e,t===void 0?!1:t)}};var Mro,VN;_.OLr={};Mro=null;
VN={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_=$MS(this.viewroot));_.hc(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.S("kevlar_vimio_use_shared_monitor"))Jbv(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var e=[];this.visibilityOptionVisible_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&e.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=e}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){nRQ(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 W=_.JD(this.parentNode,function(t){var b,m=(b=t.polymerController)!=null?b:t;return!!m.getVisibilityObserverForChild&&m.getVisibilityObserverForChild()},!0);
if(W){var e;this.localVisibilityObserver_=((e=W.polymerController)!=null?e:W).getVisibilityObserverForChild()}else Mro||(Mro=$MS()),this.localVisibilityObserver_=Mro;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.S("kevlar_use_vimio_behavior")||(VN={});VN&&!_.S("kevlar_use_vimio_behavior")&&(delete VN.attached,delete VN.detached);_.OLr.YtVisibilityObserverBehavior=[VN];var suy={};suy.YtVisualElementBehavior=[_.OLr.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.S("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportShown(this,void 0,W)}},
onHidden:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.S("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),e=this.getVisibilityLogger();e&&e.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.S("kevlar_use_vimio_behavior")?_.Gf():null},
shouldSkipLogging:function(){if(_.Ot("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var e,t=(e=W.polymerController)!=null?e:W;if(!t.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var b;e=(b=t.data)==null?void 0:b.trackingParams;var m,q;e=((m=t.data)==null?0:m.loggingDirectives)?(q=t.data)==null?void 0:q.loggingDirectives.trackingParams:e;return W&&e&&W===
e}}];var MsR=new Map,k5;var pjZ=function(W){this.layer=W},OQ=function(W){return W.layer!==void 0?W.layer:W.parent?OQ(W.parent):W.layer=0};var VsR;_.d={};VsR=0;_.d.YtRendererBehavior=[_.P1.YtComponentBehavior,suy.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_:_.S("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,e;(e=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||e.removeEventListener("scroll",_.aH(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();xKg(this.hostElement);L4U(_.k6(),this.hostElement);E6.delete(this.hostElement)},
registerRenderer:function(W){var e;((e=W.polymerController)!=null?e:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,e=this.getParentRenderer();if(e){var t,b,m;(b=(t=(m=e.polymerController)!=null?m:e).registerRenderer)==null||b.call(t,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var q,Q;(Q=(q=this.monitorScrollElement)!=null?q:this.hostElement)==null||Q.addEventListener("scroll",_.aH(this,this.onScroll))}_.Tm.addJob(function(){sSL(W.hostElement)},8);
t=new pjZ(this.screenLayer||void 0);(e=E6.get(e))&&e.layerNode&&(t.parent=e.layerNode);e={};gcQ(this.hostElement,(e.isRenderer=!0,e.layerNode=t,e[y5Q]=this.data,e))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,e,t;W&&((e=E6.get(W))==null||!e.isRenderer)&&!((t=W.polymerController)!=null?t:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.S("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.MD("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.S("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(t){_.gQ(t)}if(W){var e=rjK(W,1);e!==void 0&&(this.hostElement.dataset.veIndex=String(e));W=rjK(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.S("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.$5(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Dj(_.Sg(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.Aav(_.k6(),W,this.hostElement)}else L4U(_.k6(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.S("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():iAL(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=E6.get(W))&&W.layerNode)return OQ(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.kP(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var e,t;(W==null?0:(e=W.commandMetadata)==null?0:(t=e.webCommandMetadata)==null?0:t.sendPost)?_.X5(this.hostElement,[W,{impression:!0}]):_.IT(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var e=_.fc(this.getScreenLayer());if(e){var t,b=(t=W.polymerController)!=null?t:W;W=b.visualElement;b=b.trackingParams||b.clickTrackingParams;!W&&b&&(W=_.$5(b));W&&_.zv(e,W)}}}];var huS={},iT=function(){return _.D0.apply(this,arguments)||this};
_.Z(iT,_.D0);iT.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
iT.prototype.onPdgItemBehaviorClick=iT.prototype.onPdgItemBehaviorClick;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iT.prototype,"data",void 0);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iT.prototype,"onPdgItemBehaviorClick",null);_.P([_.SB()],iT);huS.YtPdgLiveChatItemBehavior=[iT.prototype,_.d.YtRendererBehavior];var HLS;var Kav;_.Y6={};_.Y6.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var zI=function(){var W=Nn.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.Z(zI,Nn);zI.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Lo2(this),_.Zy2(this,"doRender"),this.doRender())};
zI.prototype.debounceRender=function(){this.templatingFn&&_.HG(this,"doRender",this.doRender)};
zI.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.gQ(Error("ah"))};
zI.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.P([oBG()],zI);var PBe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Uu={},dKS=(Uu[1]={filterString:null,isUnwrappable:null,unwrap:null},Uu[2]={filterString:function(W,e,t){return XX(t)},
isUnwrappable:function(W){return W instanceof j5},
unwrap:function(W){return nF(W)}},Uu[3]={filterString:function(W,e,t){return PBe.test(t)?t:om.toString()},
isUnwrappable:function(W){return c7(W)},
unwrap:function(W){return _.v7(W)}},Uu[4]={filterString:function(){return om.toString()},
isUnwrappable:function(W){return W instanceof QE},
unwrap:function(W){return _.Xh(W).toString()}},Uu[5]={filterString:function(W,e,t){return t},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},Uu[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.OV},
unwrap:function(W){return sV(W)}},Uu[8]={filterString:function(W,e,t){t=String(t).toLowerCase();
return c7G(W,e,t)?t:"zClosurez"},
isUnwrappable:null,unwrap:null},Uu[10]={filterString:null,isUnwrappable:null,unwrap:null},Uu);Nq[Hf["default"]]=eJD;var taR=[];var GdZ=meG("A"),Dyz=meG("BUTTON"),yp=meG("DIV"),Sac=meG("LABEL");(function(){var W=N5;N5=function(e){W==null||W(e);C4(function(){for(var t=0;t<e.length;t++)bjG(e[t])})}})();var Vre=function(){var W=_.D0.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.Z(Vre,_.D0);_.r=Vre.prototype;_.r.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.gQ(Error("$g")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,NgL(this))};
_.r.attached=function(){};
_.r.detached=function(){bjG(this.hostElement)};
_.r.renderIdom=function(){throw Error("ch");};
_.r.doIdomRender=function(){var W=this;eKc(this.hostElement,function(){W.renderIdom()})};
_.P([_.SB()],Vre);var iLh=[zI.prototype,Vre.prototype];var Y3y,zuh=function(){return Y3y!==void 0?Y3y:Y3y=document.createElement("template")};
document.head.appendChild(zuh().content);var UES;var Lah,EWU=function(){return Lah!==void 0?Lah:Lah=document.createElement("template")};
document.head.appendChild(EWU().content);var AUv;var NXb=document.head,dEv=NXb.appendChild,Wob;if(AUv===void 0){var eAU=document.createElement("template");_.p(eAU,"\x3c!--css-build:shady--\x3e");eAU.content.insertBefore(EWU().content.cloneNode(!0),eAU.content.firstChild);AUv=eAU}Wob=AUv;dEv.call(NXb,Wob.content);var tsN,bAy=function(){return tsN!==void 0?tsN:tsN=document.createElement("template")};
document.head.appendChild(bAy().content);var mKN;var rbo=document.head,q2y=rbo.appendChild,RAe;if(mKN===void 0){var QSh=document.createElement("template");_.p(QSh,"\x3c!--css-build:shady--\x3e");QSh.content.insertBefore(bAy().content.cloneNode(!0),QSh.content.firstChild);mKN=QSh}RAe=mKN;q2y.call(rbo,RAe.content);var Foh=document.head,XvN=Foh.appendChild,IyS;if(UES===void 0){var ayU=document.createElement("template");_.p(ayU,"\x3c!--css-build:shady--\x3e");ayU.content.insertBefore(zuh().content.cloneNode(!0),ayU.content.firstChild);UES=ayU}IyS=UES;XvN.call(Foh,IyS.content);var wvb,ukb=function(){return wvb!==void 0?wvb:wvb=document.createElement("template")};
document.head.appendChild(ukb().content);var cbU;_.zf=new _.W_("DARK_THEME_TOKEN");var LHG=new _.z("accessibilityProperties");var UeK=new _.z("layoutProperties");var EuQ=new _.z("imageType");var vRS={};if("ytAttributedStringLinkHoverColor"in vRS)throw Error("fh`ytAttributedStringLinkHoverColor");(function(W,e){vRS[W]="value"in e&&"unit"in e?FHL(W,e):function(t){try{return e(t)}catch(b){throw Error("dh`"+W+"`"+b.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var GYD=function(W){var e=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(t){var b=new CustomEvent("LONG_PRESS"),m;(m=t.changedTouches[0].target)==null||m.dispatchEvent(b)};
this.ontouchstart=function(t){e.longPressTimeout=_.CU(_.Tm,function(){e.onlongpress(t);e.longPressOccurred=!0},e.holdTime)};
this.ontouchmove=function(){_.Tm.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!0};
this.ontouchend=function(t){if(e.longPressTimeout&&!e.longPressOccurred&&!e.moveOccurred){var b;(b=t.changedTouches[0].target)==null||b.dispatchEvent(new Event("click"))}_.Tm.cancelJob(e.longPressTimeout);e.longPressTimeout=NaN;e.longPressOccurred=!1;e.moveOccurred=!1}};var nug=function(W,e){GYD.call(this,e);var t=this;this.callback=W;this.onlongpress=function(b){var m;(m=t.callback)==null||m.call(t,b)}};
_.Z(nug,GYD);var fpz=function(W,e){var t=Object.assign({},e);W=_.R(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var b=W.next(),m={};!b.done;m={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},b=W.next()){var q=_.R(b.value);b=q.next().value;q=q.next().value;m.eventName$jscomp$85=b;m.eventHandler$jscomp$1=q;e[m.eventName$jscomp$85]=function(Q){return function(X){var I;(I=t[Q.eventName$jscomp$85])==null||I.call(t,X);(0,Q.eventHandler$jscomp$1)(X)}}(m)}};_.tQ=new _.W_("COMMAND_HANDLER_TOKEN");var IpR=new _.z("parallelCommand");var unG=new _.z("performOnceCommand");var wWK=new _.z("serialCommand");var c1R=void 0;var DK8=function(){this.data=[];this.consumer=null};
DK8.prototype.push=function(W){this.consumer?this.consumer(W):this.data.push(W)};var qZ={};_.up(qZ,void 0,"sgPmTd");_.up(null,void 0,"jypsq");var a9G=new DK8;var ZjD=[Z6K,$Bz,k6L,yZD,pxs,lr9,jfL,C_g];var Ysc=new _.z("bracketTextDecorator");var iL=new _.z("highlightTextDecorator");_.L4=new _.W_("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Hjz=function(){},S2Z;
(S2Z=window.requestIdleCallback)==null||S2Z.bind(window);var Pf9={calledOnce:!1,state:"visible"},KH2={calledOnce:!1,state:"hidden"};var BgB=new _.W_("ICON_WIZ_COMPONENT_TOKEN");_.kD=_.NN(function(W){var e=W.icon;var t=W.active;var b=W.className;var m=W.style;var q=W.dataSelected;var Q=W.dataDisabled;var X=W.role;var I=W.animateIcon;var u=W.themeOverride;var c=W.ariaHidden;var v=W.ariaExpanded;var D=W.ariaLabel;var B=W.tabindex;var k=W.id;var n=W.size;var f=W.iconFilter;return _.w(_.G,{cond:e,then:function(){var M=_.ee().resolve(BgB);return _.w(M,{icon:e,dataSelected:q,dataDisabled:Q,animateIcon:I,themeOverride:u,ariaExpanded:v,tabindex:B,id:k,active:t,size:n,role:X,className:b,
ariaHidden:c,ariaLabel:D,style:function(){return m!=null&&m()||n==null||!n()?m==null?void 0:m():"width: "+(n==null?void 0:n())+"px;height: "+((n==null?void 0:n())+"px;")},
iconFilter:f})}})},"b");
_.kD.idomCompat=!0;var amG=window.devicePixelRatio||1;var vAK=new Map([["yt_outline_bag_black_24","bag"]]);var LT=function(W){var e=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){e.requestScan()});
window.addEventListener("touchend",function(){e.requestScan()});
window.addEventListener("updateui",function(){e.requestScan()});
var t=new _.eS((0,_.p3)(this.requestScan,this),100);window.addEventListener("scroll",function(){t.fire()},!0);
window.addEventListener("resize",(0,_.p3)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){e.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.p3)(this.requestScan,this))};
LT.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
LT.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(e){return e!==W})};
LT.prototype.requestScan=function(){var W=this;this.scanRequested||(C4(function(){oRr(W)}),this.scanRequested=!0)};
var oRr=function(W){var e=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(t){var b=t.getBoundingClientRect();(b=e>b.top&&!!b.height)&&W.whenInViewportWithMargin(t);return!b&&t.parentNode});
W.scanRequested=!1};
LT.prototype.disconnect=function(){this.observationTargets=[]};var lyv,$Kv;lyv=_.R(_.up(oAQ(),void 0,"O3X2wd"));_.ZAb=lyv.next().value;$Kv=lyv.next().value;window.addEventListener("resize",function(){$Kv(oAQ())});var kY8={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},pvo=void 0,ybS=window.innerWidth,jSU=window.innerHeight;window.addEventListener("resize",function(){pvo=void 0});var C7N;if("IntersectionObserver"in window)C7N=$PG();else{if(pvo===void 0){var nRr;nRr="matchMedia"in window?window.matchMedia(kY8.landscape+","+kY8.portrait).matches:void 0;pvo=nRr!==void 0?nRr:ybS>=930&&jSU>=550||ybS>=550&&jSU>=930}C7N=pvo?{observe:function(W){C4(function(){var e;(e=W.onViewportEntered)==null||e.call(W)})},
unobserve:function(){}}:new LT(function(W){C4(function(){var e;
(e=W.onViewportEntered)==null||e.call(W)})})}var lmG=C7N;var fyP=_.NN(function(W){var e=!1,t=_.zT("img",function(b){_.fh(function(){e=!0;b.onload=null})});
_.nh(function(){var b,m=(b=W.data)==null?void 0:b.call(W),q,Q=(q=W.getSrc)==null?void 0:q.call(W).cb,X;b=(X=W.config)==null?void 0:X.call(W);if(X=t.value)if(q=function(u,c){if(!e)return Q?Q(u,c):u},yT9(X,b),_.S("web_image_dont_reload_same_src")&&p$G(X,m,q))_.S("web_image_dont_reload_same_src_simulate_load")&&X.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var I;kwL(X,m||null,q,b,(I=W.lazy)==null?void 0:I.call(W))}},"v0I2p");
return _.w("img",{el:t})},"c");
fyP.idomCompat=!0;_.A_=_.NN(function(W){var e=function(){var t,b=W.data(),m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv,GS,k9,CQ,fQ,iv,hz,ES,Wu;var pr={contentMode:(m=W.contentMode)==null?void 0:m.call(W),loadedClass:(q=W.loadedClass)==null?void 0:q.call(W),isPreloaded:(Q=W.isPreloaded)==null?void 0:Q.call(W),notifyOnLoaded:(X=W.notifyOnLoaded)==null?void 0:X.call(W),notifyOnUnloaded:(I=W.notifyOnUnloaded)==null?void 0:I.call(W),preferredThumbnail:(u=W.preferredThumbnail)==null?void 0:u.call(W),preserveHeight:(c=W.preserveHeight)==
null?void 0:c.call(W),preserveWidth:(v=W.preserveWidth)==null?void 0:v.call(W),objectPosition:(D=W.objectPosition)==null?void 0:D.call(W),targetWidth:(B=W.targetWidth)==null?void 0:B.call(W),targetHeight:(k=W.targetHeight)==null?void 0:k.call(W),shouldShowPlaceholder:(n=W.shouldShowPlaceholder)==null?void 0:n.call(W),useWidth:(f=W.useWidth)==null?void 0:f.call(W),isToggled:(M=W.isToggled)==null?void 0:M.call(W),alt:(K=W.alt)==null?void 0:K.call(W),className:(U=W.className)==null?void 0:U.call(W),
onerror:W.onerror,onload:W.onload,style$:((V=W.style$)==null?void 0:V.call(W))||((L=W.style)==null?void 0:L.call(W)),color:(E=W.color)==null?void 0:E.call(W),width:(RR=W.width)==null?void 0:RR.call(W),height:(uv=W.height)==null?void 0:uv.call(W),"aria-hidden$":(ES=(GS=W["aria-hidden$"])==null?void 0:GS.call(W))!=null?ES:(k9=W.ariaHidden)==null?void 0:k9.call(W),draggable:(CQ=W.draggable)==null?void 0:CQ.call(W),"data-disabled$":(Wu=(fQ=W["data-disabled$"])==null?void 0:fQ.call(W))!=null?Wu:(iv=W.dataDisabled)==
null?void 0:iv.call(W),size:(hz=W.size)==null?void 0:hz.call(W)};return nAv(b,pr,(t=W.hideOn404)==null?void 0:t.call(W))};
return _.w(_.kq,null,_.w(_.Zb,{when:function(){var t;return((t=e())==null?void 0:t.type)==="image"}},function(){return _.w(fyP,{data:function(){return e().image},
getSrc:{cb:function(t,b){var m=e().image.sources,q=e().config.isPreloaded,Q=e().config.useWidth,X=e().config.targetWidth,I=e().config.targetHeight,u=e().config.preferredThumbnail;return _.w$S(b,m,q,Q,X,I,u)||""}},
config:function(){var t=e().config,b;for(b in t)t[b]===void 0&&delete t[b];return t},
lazy:W.renderLazy})}),_.w(_.Zb,{when:function(){var t;
return((t=e())==null?void 0:t.type)==="icon"}},function(){return _.w(_.kD,{icon:function(){return e().iconName},
role:function(){return e().config.role},
className:function(){return e().config.className},
style:function(){return e().config.style$+";width: "+(e().config.width+"px;height: ")+(e().config.height+"px;color: ")+(e().config.color+";")},
ariaLabel:function(){return e().config["aria-label$"]},
ariaHidden:function(){return e().config["aria-hidden$"]},
dataDisabled:function(){return e().config["data-disabled$"]},
active:function(){return e().config.isToggled},
size:function(){return e().config.size}})}))},"d");
_.A_.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var gRZ=function(W){return function(e){return _.w(DAg,null,function(){var t=e.data(),b=_.TQ(e.config);return _.w(Em,null,function(){return void W(t,b)})})}}(JTv),gAs=_.NN(function(W){var e=function(b){var m,q=_.dA(function(D){m=gP(function(){for(var B=_.R(c()),k=B.next();!k.done;k=B.next()){k=xP9(k.value);
k=typeof k==="string"?document.createTextNode(k):k;if(!(k instanceof Node)){B=new _.o_("Part is not a node",k,typeof k);_.gQ(B);break}D.appendChild(k)}})}),Q=We(function(){return NZz(b())},{isEqual:fmv}),X=_.LD(W.config),I=function(){var D,B=Q();
return!((D=X())==null||!D.ariaLabel)||!(B.commandRuns&&B.commandRuns.length!==0||B.paragraphStyleRuns&&B.paragraphStyleRuns.length!==0)},u=We(X,{isEqual:MMG}),c=function(){var D=A1g(Q(),u());
WXD(D,u());return Q().content?qo9(Q().content,D).parts:[]},v=!0;
_.nh(function(){Q();u();if(v)v=!1;else{var D=c();Promise.resolve().then(function(){var B=q.value;if(B){B.innerText="";var k;(k=m)==null||k();m=_.yZ(B,function(){return _.w(O$s,{parts:D})})}})}},"YlhjWd");
return _.w("span",{el:q,class:function(){return Q()&&Ojz(Q(),X())},
dir:function(){var D;return((D=X())==null?0:D.userInput)?"auto":void 0},
"aria-label":function(){var D;return I()?(D=X())==null?void 0:D.ariaLabel:void 0},
role:function(){return I()?"text":void 0}})},t;
return((t=W.config)==null?0:t.renderedFromFormattedString)?e(W.text):_.w(_.G,{cond:W.text,then:e})},"e");
gAs.idomCompat=!0;_.WL=_.NN(function(W){var e=_.LD(W.text),t=sNZ(W);W.renderedFromFormattedString!==void 0&&(t.renderedFromFormattedString=!0);return _.S("attr_string_reactive")?_.w(gAs,{text:e,config:t}):_.w(_.G,{cond:function(){var b;return e()&&((b=NZz(e()))==null?void 0:b.content)},
then:function(){return _.w(gRZ,{data:W.text,config:t})},
debugInstance:"Apcuac"})},"f");
_.WL.idomCompat=!0;var H$D=function(W,e,t){e=e===void 0?"unknown":e;t=t===void 0?{}:t;_.o_.call(this,W+" ("+e+")",Object.assign({},{name:"YtWcwError",tagName:e},t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.Z(H$D,_.o_);_.z2c=new WeakMap;_.YoR=!1;var i$2,UPZ,VMv;_.Eu=Symbol("hh");_.bt=Symbol("ih");i$2=Symbol("jh");UPZ=new Set(Object.getOwnPropertyNames(Element.prototype));VMv=Symbol("kh");var Tgk=_.NN(function(W){return _.w("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.w(_.WL,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns}))},"g");
_.S("web_wiz_attributed_string")&&_.mM(Tgk,"yt-attributed-string",{props:{ariaHidden:_.Eu,ariaLabel:_.Eu,className:_.Eu,ellipsisTruncate:_.Eu,isOverlay:_.Eu,linkInheritColor:_.Eu,noEndpoints:_.Eu,noStyleRuns:_.Eu,noLinkColor:_.Eu,noPreWrap:_.Eu,noWrap:_.Eu,skipOnClick:_.Eu,userInput:_.Eu,headerRuns:_.Eu,id:_.Eu,data:_.Eu,hidden:_.Eu,forceDefaultStyle:_.Eu,text:_.bt,stopPropagation:_.bt,disableUpgrade:_.bt,disable:_.bt,slot:_.bt}});var Ah=function(){return _.O.apply(this,arguments)||this};
_.Z(Ah,_.O);Ah.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},JTv(this.data,this.config))};
_.P([_.y(iLh),_.Y("design:type",Object)],Ah.prototype,"ytIdomTemplatingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ah.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ah.prototype,"ariaLabel",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"disable",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"ellipsisTruncate",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"isOverlay",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"linkInheritColor",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"noPreWrap",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"noWrap",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"userInput",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ah.prototype,"noEndpoints",void 0);_.P([_.J(),_.Y("design:type",Array)],Ah.prototype,"headerRuns",void 0);
_.P([_.gz({is:"yt-attributed-string",disableElementRegistration:!0})],Ah);
_.S("web_wiz_attributed_string")||_.H(Ah,"yt-attributed-string",function(){if(cbU===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(ukb().content.cloneNode(!0),W.content.firstChild);cbU=W}W=cbU;return W},{mode:2});var Jbh,xKD,eaG;Jbh=function(){this.firstThumbnailLoaded=!1};
_.OA8=function(){xKD||(xKD=new Jbh);return xKD};
eaG=function(W){var e=_.OA8();e.firstThumbnailLoaded||(e.firstThumbnailLoaded=!0,_.Tv("ftl",W))};
Jbh.prototype.reset=function(){this.firstThumbnailLoaded=!1};var EAR=0,W8G=new WeakMap,NbS=0,R5=new Set;var Msy,sSS=function(){return Msy!==void 0?Msy:Msy=document.createElement("template")};
document.head.appendChild(sSS().content);var hAo;var r6L,Ra2,NQ;_.X6=_.tz.caches;NQ=function(){};
NQ.prototype.open=function(W){return _.X6.open(HAr(W))};
NQ.prototype.has=function(W){return _.X6.has(HAr(W))};
NQ.prototype.delete=function(W){return _.X6.delete(HAr(W))};
NQ.prototype.match=function(W,e){var t=this,b,m,q,Q,X,I;return _.F(function(u){switch(u.nextAddress){case 1:return _.a(u,t.keys(),2);case 2:b=u.yieldResult,m=_.R(b),q=m.next();case 3:if(q.done){u.jumpTo(5);break}Q=q.value;return _.a(u,t.open(Q),6);case 6:return X=u.yieldResult,_.a(u,X.match(W,e),7);case 7:if(I=u.yieldResult)return u.return(I);q=m.next();u.jumpTo(3);break;case 5:return u.return()}})};
var Qxc=function(){};
_.Z(Qxc,NQ);var HAr=function(W){if(W.includes(":"))throw Error("nh`"+W);return W+":"+_.Se("CacheStorage get")};
Qxc.prototype.keys=function(){var W,e,t,b,m,q,Q,X,I;return _.F(function(u){if(u.nextAddress==1)return W=[],e=_.Se("CacheStorage keys"),_.a(u,_.X6.keys(),2);t=u.yieldResult;b=_.R(t);for(m=b.next();!m.done;m=b.next())q=m.value,Q=_.m6L(q),X=Q.originalName,I=Q.datasyncId,I===e&&W.push(X);return u.return(W)})};var dt=function(){var W=_.O.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.Z(dt,_.O);_.r=dt.prototype;_.r.renderIdom=function(){blZ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&jNK(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.r.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.r.logThumbnailFailureVe=function(){var W=_.na(197497);_.XW(_.Sg(),W);var e=_.fc();e&&W&&e&&_.ic(e,[W])};
_.r.loadImageFromCacheIfExists=function(W){var e=this,t=W.target;(t==null?0:t.src)&&XYD(t.src).then(function(b){e.objectURL=_.Z1(b).toString();e.setSrc(t,e.objectURL)}).catch(function(){})};
_.r.onError=function(W){var e=this;if(_.S("web_use_cache_for_image_fallback")){var t=W.target;t&&XYD(t.src).then(function(b){e.objectURL=_.Z1(b).toString();e.setSrc(t,e.objectURL)}).catch(function(){_.S("kevlar_woffle_log_thumbnail_failure_ve")&&e.logThumbnailFailureVe();
_.S("kevlar_woffle_fallback_image")&&e.setSrc(t,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.r.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.r.setConfig=function(){var W=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(e){W.loadImageFromCacheIfExists(e);W.revokeObjectURL();tYz(W.hostElement)},
onerror:function(e){W.onError(e)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.S("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.r.setSrc=function(W,e){e&&(W.src=e)};
_.P([_.y(iLh),_.Y("design:type",Object)],dt.prototype,"ytIdomTemplatingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dt.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],dt.prototype,"alt",void 0);_.P([_.J(),_.Y("design:type",Boolean)],dt.prototype,"ftlEligible",void 0);_.P([_.J(),_.Y("design:type",Number)],dt.prototype,"height",void 0);_.P([_.J(),_.Y("design:type",Boolean)],dt.prototype,"notifyOnLoaded",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],dt.prototype,"notifyOnUnloaded",void 0);_.P([_.J(),_.Y("design:type",String)],dt.prototype,"objectFit",void 0);_.P([_.J(),_.Y("design:type",String)],dt.prototype,"objectPosition",void 0);_.P([_.J(),_.Y("design:type",String)],dt.prototype,"preferredThumbnail",void 0);_.P([_.J(),_.Y("design:type",Boolean)],dt.prototype,"preserveHeight",void 0);_.P([_.J(),_.Y("design:type",Boolean)],dt.prototype,"preserveWidth",void 0);
_.P([_.J({value:!0}),_.Y("design:type",Boolean)],dt.prototype,"useWidth",void 0);_.P([_.J({value:function(){return!_.MD("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Y("design:type",Boolean)],dt.prototype,"shouldRenderLazy",void 0);_.P([_.J(),_.Y("design:type",Number)],dt.prototype,"width",void 0);_.P([_.gz({is:"yt-image",disableElementRegistration:!0})],dt);
_.H(dt,"yt-image",function(){if(hAo===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(sSS().content.cloneNode(!0),W.content.firstChild);
hAo=W}W=hAo;return W},{mode:2});var W4=function(){return _.O.apply(this,arguments)||this};
_.Z(W4,_.O);W4.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.Mk(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],W4.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],W4.prototype,"ytVisibilityBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],W4.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],W4);
_.H(W4,"yt-bumper-user-edu-content-view-model",function(){if(Kav===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;HLS===void 0&&(HLS=document.createElement("template"));var b=HLS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Kav=W}W=Kav;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var KoP;var P7S,Vsy=function(){if(P7S!==void 0)return P7S;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;KoP===void 0&&(KoP=document.createElement("template"));var b=KoP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return P7S=W};var iAS;_.e$={};iAS=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"]);_.e$.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.Tm},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.q2(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return iAS.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var vXK,Y2e,UKh,zAv;_.tH=function(W){var e=Y2e.get(W);if(e&&(e=e.pop()))return zAv++,e;UKh++;try{var t=document.createElement(W)}catch(b){throw new _.o_("ElementPool failed to create element",W,b.message);}return t};
vXK=function(W){var e=W.is;if(e){var t=Y2e.get(e);t||(t=[],Y2e.set(e,t));var b=_.Ot("ELEMENT_POOL_CONFIG")||{};t.length>=(b[e]!==void 0?b[e]:_.Ot("ELEMENT_POOL_DEFAULT_CAP",0))||t.push(W)}else _.JC(new _.o_("Element pool should only handle custom elements:",W.nodeName))};
Y2e=new Map;UKh=0;zAv=0;var I5=new WeakMap,c6Z=new WeakMap;var ERe;_.bw=function(W,e,t){t=t===void 0?_.g0():t;this.JSC$11743_defaultPriority=W;this.signal=e;this.scheduler=t;this.nextJobDescriptor=0;this.JSC$11743_parkedJobs=[];this.scheduledJobs=new Map};
_.mI=function(W,e){if(e){var t=_.sj();W.signal&&!_.h2(t,W.signal)?(t.addListener(W.signal,function(){W.processSignal()}),W.JSC$11743_parkedJobs.push({job:e,
priority:void 0})):Loe(W,e)}};
ERe=function(W,e){if(e!==W.JSC$11743_defaultPriority){W.JSC$11743_defaultPriority=e;for(var t=_.R(W.scheduledJobs.values()),b=t.next();!b.done;b=t.next())b=b.value,W.scheduler.cancelJob(b.jobId),b.jobId=W.scheduler.addJob(b.jobWrapper,e)}};
_.bw.prototype.flushJobs=function(){ERe(this,10);this.processSignal()};
_.bw.prototype.cancel=function(){for(var W=_.R(this.scheduledJobs),e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;this.scheduler.cancelJob(t.jobId);this.scheduledJobs.delete(e)}this.JSC$11743_parkedJobs=[]};
_.bw.prototype.processSignal=function(){for(var W=_.R(this.JSC$11743_parkedJobs),e=W.next();!e.done;e=W.next())e=e.value,Loe(this,e.job,e.priority);this.JSC$11743_parkedJobs=[]};
var Loe=function(W,e,t){t=t||W.JSC$11743_defaultPriority;if(t===10)Qp(e);else{var b=W.nextJobDescriptor++,m=function(){e();W.scheduledJobs.delete(b)},q=W.scheduler.addJob(m,t);
W.scheduledJobs.set(b,{jobWrapper:m,jobId:q,priority:t})}};_.tA(B7S);var oXD={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};oMD({beforeVisit:function(W){if(rA.has(W.type)){var e;(e=W.props).idomKey!=null||(e.idomKey=W.type)}else W.type.TAG_NAME&&(bL=W.type.TAG_NAME)},
afterRender:function(W,e){var t;bL=(t=e==null?void 0:e.type)!=null?t:""},
didPatch:function(){bL=""}});var Abe;_.rq={};Abe={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.rq.YtRendererstamperBehavior=[_.e$.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 W in this.stampDom){var e=this.stampDom[W];e&&e.id&&this.addReactiveSchema({type:"observe",method:{methodName:asZ(e.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(e in this.stampDom){var t=this.stampDom[e];t&&t.id&&W.push(asZ(t.id)+"("+e+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var e=this.stampDom[W];e.id?(this[asZ(e.id)]=this.rendererStamperObserver_.bind(this,W,e.id),this.hasDataPath_[W]=!1):(e=new _.o_("Bad rendererstamper config",this.is+":"+W),_.gQ(e))}},
rendererStamperObserver_:function(W,e,t){if(t.path==W){if(t.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=t.value!==void 0}this.rendererStamperApplyChangeRecord_(W,e,t)},
rendererStamperApplyChangeRecord_:function(W,e,t){var b=this.renderJobsMap_[e],m=null;W==t.path?(t=t.value,_.Ns(t)||(t=t===void 0||t===null?[]:[t]),W=this.stampDom[W],W.mapping&&(m=this.stampDomArray_.bind(this,t,e,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),b&&b.cancel(),t=W.usePageScheduler?this.getTaskManager():void 0,b||W.initialRenderPriority==void 0)?W.renderPriority==void 0||b||(b=new _.bw(W.renderPriority,W.waitForSignal,t),this.renderJobsMap_[e]=b):(b=new _.bw(W.initialRenderPriority,
W.waitForSignal,t),this.renderJobsMap_[e]=b,m=function(q,Q){q();ERe(Q,10)}.bind(this,m,b)):m=W+".splices"==t.path?this.stampDomArraySplices_.bind(this,W,e,t.value):this.forwardRendererStamperChanges_.bind(this,W,e,t);
b?_.mI(b,m):m()},
forwardRendererStamperChanges_:function(W,e,t){var b=t.path.slice(W.length+1),m=this.getStampContainer_(e),q=b.indexOf("."),Q=b.substring(0,q),X=!1,I=0,u=parseInt(Q,0);if(Q[0]=="#"){X=parseInt(Q.substring(1),0);u=this.get(W);var c=this.get([W,Q]);u[X]==c?I=X:I=u.indexOf(c);X=!0}else isNaN(u)||(I=u,X=!0);X&&(b=b.substring(Q.length+1),q=b.indexOf("."));Q=_.ZZ(m).children[I];var v;if(m=(v=Q==null?void 0:Q.polymerController)!=null?v:Q)b="data"+b.slice(q),typeof m.notifyPath!=="function"?_.JC(new _.o_("notifyPath missing",
this.is+": "+W+", "+e)):t.value?m.notifyPath(b,t.value):m.notifyPath(b)},
stampDomArraySplices_:function(W,e,t){if(t&&t.indexSplices){var b=this.getStampContainer_(e);if(b){for(var m=_.ZZ(b),q=uMZ(this.stampDom[W].reuseComponents),Q=t.indexSplices.length,X=0;X<Q;X++){for(var I=t.indexSplices[X],u=m.children[I.index],c=I.removed.length;c>0;c--)u&&u.parentElement&&(_.ZZ(u.parentElement).removeChild(u),q&&vXK(u),u=m.children[I.index]);c=this.stampDom[W].mapping;for(var v=I.index+I.addedCount,D=document.createDocumentFragment(),B=q,k=I.index;k<v;k++){var n=I.object[k],f=IsG(c,
n);if(f){var M=c[f];n=n[f];f=this.getComponentName_(M,n);var K=u?I5.has(u):!1;B&&u&&u.is==f&&K?(f=u,this.telemetry_.reuse++,u=u.nextElementSibling):B&&u&&K?(f=this.createComponent_(M,n,q),K=_.ZZ(u).nextElementSibling,m.insertBefore(f,K),D6v(this.is,m,u,q),u=K):(B=!1,f=this.createComponent_(M,n,q),D.appendChild(f));this.deferRenderStamperBinding_(f,M,n)}else M=new _.o_("Unimplemented type",W,e,b.tagName,Object.keys(n)[0]),_.gQ(M)}m.insertBefore(D,u)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.q2(this.hostElement,"yt-rendererstamper-finished",{container:b})}else W=new _.o_("Container object not found",e,this.hostElement?this.hostElement.is:""),_.gQ(W)}},
stampDomArray_:function(W,e,t,b,m,q){var Q=this.getStampContainer_(e);if(Q)if(e=_.ZZ(Q),b=uMZ(b),W){var X=0,I=0,u;if(q=q===void 0?_.MD("STAMPER_STABLE_LIST",!1):q||!1)for(u=e.firstElementChild;u&&!I5.has(u)&&W.length>I;){q=W[I];var c=IsG(t,q);if(c){if(this.getComponentName_(t[c],q[c])!=u.is){var v=this.createComponent_(t[c],q[c],b),D=_.ZZ(u).nextElementSibling;D?e.insertBefore(v,D):e.appendChild(v);D6v(this.is,e,u,b);u=v}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(u,t[c],q[c]);X++;
I++;u=_.ZZ(u).nextElementSibling}else I++}SFg(this.is,e,X,b);X=u;if(W.length>I){q=document.createDocumentFragment();for(c=W.length;I<c;I++)if(v=W[I],D=IsG(t,v))u=this.createComponent_(t[D],v[D],b),this.deferRenderStamperBinding_(u,t[D],v[D]),q.appendChild(u);X&&_.ZZ(X).parentNode&&u&&!I5.has(u)?e.insertBefore(q,X):e.appendChild(q)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();m&&_.q2(this.hostElement,"yt-rendererstamper-finished",{container:Q})}else SFg(this.is,e,0,
b);else W=new _.o_("Container object not found",e,this.hostElement?this.hostElement.is:""),_.gQ(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.rz(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,e){return typeof W==="string"?W:W.matcher?W.matcher.call(this,e):W.component},
createComponent_:function(W,e,t){W=this.getComponentName_(W,e);try{var b=qk.has(W)||rA.has(W);if(t&&!b){var m=_.tH(W);try{_.XB(m)}catch(q){t="Failed to clear styles for "+W+".",q.message&&(t+=" Original error: "+q.message),_.JC(new _.o_(t))}}else m=document.createElement(W)}catch(q){return m="YtRendererStamperBehavior failed to create "+W+".",q.message&&(m+=" Original description: "+q.message),q.message="YtRendererStamperBehavior failed to create element",_.xM(q,m),Abe.hasOwnProperty(W)?_.JC(q):_.gQ(q),
document.createElement("SPAN")}this.telemetry_.create++;return m},
deferRenderStamperBinding_:function(W,e,t){this.deferredBindingTasks_.push({component:W,typeOrConfig:e,data:t})},
flushRenderStamperComponentBindings_:function(){for(var W=0,e=this.deferredBindingTasks_.length;W<e;W++){var t=this.deferredBindingTasks_[W];if(!t)break;var b=void 0,m=void 0,q=void 0,Q=void 0,X=t.component,I=t.typeOrConfig;t=t.data;var u=(Q=X.polymerController)!=null?Q:X;Q=X.loggingStatus;try{Q&&(Q.isRendererStamper=!0);if(typeof I!=="string"){for(q in I.attributes)I.attributes[q]===!0?X.setAttribute(q,""):I.attributes[q]===!1?X.removeAttribute(q):X.setAttribute(q,I.attributes[q]);for(m in I.params)u[m]=
I.params[m],X!==u&&Z0(X.localName,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(b in I.properties){var c=I.properties[b];if(c){var v=wYZ(c);u[b]=this.get(v);X!==u&&Z0(X.localName,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(b==="on-tap"||b==="on-click"){var D=this.get(v);X.addEventListener("click",D);c6Z.set(X,{property:b,listener:{type:"element",eventName:"click",handler:D}})}}else{var B=new _.o_("Undefined property binding",b);_.gQ(B)}}}if(I.classListBinding){var k=wYZ(I.classListBinding),
n=k?this[k]:null;if(n)for(b=0;b<n.length;b++)_.RH(X,n[b],!0)}u.data=t}finally{Q&&(Q.isRendererStamper=!1)}if(b=I5.get(X))X.hidden=!1,I5.delete(X),_.Tm.cancelJob(b)}this.deferredBindingTasks_.length=0}}];_.qM={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var e=_.P3.getInstance(),t=_.R(Object.keys(W)),b=t.next();!b.done;b=t.next()){var m=b.value;b=W[m];if(this&&this[b]){var q=e.actionRoutingMap.get(m);q||(q=new Map,e.actionRoutingMap.set(m,q));e.registerActionHandler(this,m,this[b].bind(this),q)}else m=Error("id"),m.params=b,_.st(m)}},
unregisterActionMap:function(W){_.ie(_.P3.getInstance(),W,this)}}]};var ut=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_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"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:79,lazyLoad:!1}]]);var wd;var ce=new Map;var T7S=window.matchMedia("(forced-colors: active)").matches;var NgS;var dKZ;var MYc=new _.W_("LOTTIE_LOADER_TOKEN");_.mM(_.NN(function(W){return _.w("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.w(_.G2,{data:W.data,animationName:function(){var e;return((e=W.data().animationConfig)==null?void 0:e.name)||""},
animationRef:function(){return W.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.Eu,
id:_.Eu,hidden:_.Eu,className:_.Eu,ariaLabel:_.Eu}});var Rj=function(){var W=_.O.apply(this,arguments)||this;W.animationRef={};return W};
_.Z(Rj,_.O);_.r=Rj.prototype;
_.r.handlePropertyChange=function(){var W=this.animatedIcon,e=this.active,t=this.isDarkTheme;if(W){var b=this.previousActive!==e;this.previousActive=e;this.animationRef.lottieEl?b&&this.toggleAnimation(e,W.totalFrames):e?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,t)}};
_.r.computeLottiePlayerProps=function(W,e){var t=this.deepCloneLottiePlayerProps(W);e?(e=W.nameDarkTheme,W=W.pathDarkTheme):(e=W.name,W=W.path);t.animationConfig.name=e;(e=ce.get(W))?t.animationConfig.animationData=e:t.animationConfig.path=W;return t};
_.r.initializeAnimationAsToggled=function(W,e){W.animationConfig.initialSegment=[e-1,e]};
_.r.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.r.toggleAnimation=function(W,e){if(W){var t;(t=this.animationRef.lottieEl)==null||t.playSegments([0,e],!0)}else{var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,1],!0)}};
_.r.deepCloneLottiePlayerProps=function(W){var e=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=e;return W};
Rj.prototype.handlePropertyChange=Rj.prototype.handlePropertyChange;_.P([_.J(),_.Y("design:type",Object)],Rj.prototype,"animatedIcon",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Rj.prototype,"active",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Rj.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Rj.prototype,"animatedIconType",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Rj.prototype,"previousActive",void 0);
_.P([_.J(),_.Y("design:type",Object)],Rj.prototype,"lottiePlayerProps",void 0);_.P([_.J(),_.Y("design:type",Object)],Rj.prototype,"animationRef",void 0);_.P([_.ul("animatedIcon","active","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rj.prototype,"handlePropertyChange",null);_.P([_.gz({is:"yt-animated-icon",disableElementRegistration:!0})],Rj);
_.H(Rj,"yt-animated-icon",function(){if(dKZ===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;NgS===void 0&&(NgS=document.createElement("template"));var b=NgS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);dKZ=W}W=dKZ;return W},{mode:2});var WHe;var eJb;var HlR=_.NN(function(W){var e=_.Um("span"),t=ft(function(){return{value:null}});
_.fh(function(){var m;(m=t.value)==null||m.cancel()});
var b=_.SC(W.data,{equals:function(m,q){return m.iconName===q.iconName&&m.iconStyle===q.iconStyle&&m.iconSize===q.iconSize&&m.iconSetName===q.iconSetName&&m.iconSelected===q.iconSelected}},"aoiXAb");
_.nh(function(){var m,q=(m=W.options)==null?void 0:m.call(W);haL(e,t,b(),q)},"QXgxJd");
return _.w("span",{class:"yt-icon-shape",el:e})},"i");
HlR.idomCompat=!0;var fPc=["youtube_fill","youtube_outline"];var tay=new _.j3({type:"iconset",value:void 0}),Q2=function(){var W=_.O.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.up(void 0,void 0,"RQ9kUb");W.renderingOptionsSignal=_.up({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"qtx8Ef");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(Q2,_.O);Q2.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
Q2.prototype.handlePropertyChange=function(){var W=this,e,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M;return _.F(function(K){switch(K.nextAddress){case 1:if(e=!W.icon&&!W.iconName||!W.isAttached)return K.return();t=W;b=t.icon;m=t.size;q=t.defaultToFilled;Q=t.active;X=t.targetContainer;W.toggleContainerClass(X);_.S("kevlar_use_wil_icons")&&b&&(I=DKK(b),W.iconType=I.length?I[1]:null);if(b){K.jumpTo(2);break}W.iconsetName="";W.iconName="";return _.a(K,W.renderIcon(X,b),3);case 3:return K.return();case 2:u=bjB(b);
c=DKK(u);c.length&&(W.iconsetName=c[0],W.iconName=c[1]);if(!_.S("kevlar_use_wil_icons")){K.jumpTo(4);break}v=Q2;D=meP;B=W.iconType;k=W.active;n=W.defaultToFilled;f=W.size;M=W.iconsetName;return _.a(K,r1B(),6);case 6:return _.a(K,D.call(v,B,k,n,f,M,K.yieldResult),5);case 5:W.iconShapeData=K.yieldResult;case 4:if(W.shouldRenderIconShape(X)){K.jumpTo(7);break}return _.a(K,W.determineIconSet(u,Q,q,m,X),7);case 7:return _.a(K,W.renderIcon(X,b),0)}})};
Q2.prototype.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var bjB=function(W){return!_.S("default_to_innertube_icon")||W.indexOf(":")>0?W:_.ao(W)};
_.r=Q2.prototype;_.r.determineIconSet=function(W,e,t,b){var m=this;return _.F(function(q){return q.nextAddress==1?_.S("kevlar_system_icons")||_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.a(q,m.switchToYtSysIconset(W,e,t,b),3):q.jumpTo(2):q.nextAddress!=2?q.return():_.a(q,m.useYtSysIconsetForMissingIcons(W,e,t,b),0)})};
_.r.switchToYtSysIconset=function(W,e,t,b){var m=this,q,Q,X,I,u,c,v;return _.F(function(D){switch(D.nextAddress){case 1:if(!W||m.iconsetName!=="yt-icons"&&m.iconsetName!=="yt-sys-icons"){D.jumpTo(0);break}q=DKK(W);Q=q[1];Q=_.jSZ(Q);_.S("enable_polymer_icons_replace_underscores_dash")&&Q.includes("_filled")&&(Q=Q.replace(/_filled/g,"-filled"));return _.a(D,Io(Q,!0),3);case 3:return X=D.yieldResult,_.a(D,Io(Q,!1),4);case 4:if((I=D.yieldResult)||e&&X)m.iconsetName="yt-sys-icons";m.iconName=m.getIconName(Q,
e,t,I,X);if(b===24){D.jumpTo(0);break}u="yt-sys-icons"+b+":"+m.iconName;return _.a(D,Io(u,!1,!0),6);case 6:return c=D.yieldResult,_.a(D,Io(u,!0,!0),7);case 7:v=D.yieldResult;m.iconName=m.getIconName(Q,e,t,c,v);if(!e&&c||e&&v)m.iconsetName="yt-sys-icons"+b;_.u8(D)}})};
_.r.getIconName=function(W,e,t,b,m){W.includes("-filled")&&(W=W.replace("-filled",""));return m&&(e||t)?W+"-filled":W};
_.r.useYtSysIconsetForMissingIcons=function(W,e,t,b){var m=this,q,Q;return _.F(function(X){if(X.nextAddress==1)return m.iconsetName!=="yt-icons"?X.jumpTo(0):_.a(X,Io(m.iconName,!1,!1,!0),3);if(X.nextAddress!=4)return q=X.yieldResult,_.a(X,Io(m.iconName,!1),4);Q=X.yieldResult;if(q||!Q)return X.jumpTo(0);m.iconsetName="yt-sys-icons";return _.a(X,m.switchToYtSysIconset(W,e,t,b),0)})};
_.r.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var r1B=function(){return _.F(function(W){try{return W.return(_.ee().resolve(_.wA))}catch(e){return W.return(new Promise(function(t){_.sj().parkOrScheduleJob(function(){t(_.ee().resolve(_.wA))},2,"ci")}))}})},meP=function(W,e,t,b,m,q){b=b===void 0?24:b;
if(W){W=W.toLowerCase();var Q=W.endsWith("_filled")||W.endsWith("-filled");e={iconName:W,iconStyle:(e===void 0?0:e)||(t===void 0?0:t)||Q?"youtube_fill":"youtube_outline",iconSize:b,iconSetName:m===void 0?"yt-icons":m};t=!!q.resolveIcon(e);t||(e.iconSize=void 0,t=!!q.resolveIcon(e));!t&&Q&&(e.iconName=W.substring(0,W.length-7),e.iconSize=b,t=!!q.resolveIcon(e),t||(e.iconSize=void 0,t=!!q.resolveIcon(e)));t||(e.iconStyle=void 0,t=!!q.resolveIcon(e));t||_.JC(new _.o_("Icon not supported",{iconName:e.iconName,
iconStyle:e.iconStyle,iconSize:e.iconSize,iconType:W}));return t?e:void 0}};
_.r=Q2.prototype;_.r.shouldRenderIconShape=function(W){if(!_.S("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!J6G(W,this.icon)};
_.r.renderIcon=function(W,e){var t=this,b,m,q,Q,X,I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:if(e&&t.icon!==e)return v.return();b=t.getContainer(W);m=J6G(b,t.icon);if(t.shouldRenderIconShape(W)&&t.iconType)return t.applyIconShape(m,b),v.return();t.removeIconShape();if(!b)return v.return();t.iconName===""&&t.iconset&&b&&(t.removeStaticIcon(t.iconset,b),m&&t.removeAnimatedIcon(b));if(t.iconName===""&&t.iconset||!t.iconsetName||!tay)return v.return();t.iconset=tay.byKey(t.iconsetName);
if(!t.iconset)return t.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.aH(t,t.onIconsetAdded)),v.return();t.missingIconSet&&(t.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.aH(t,t.onIconsetAdded)));Q=(q=m||t.isAnimatedIcon?gXG(t.icon):void 0)&&!q.lazyLoad;I=q&&((X=q)==null?void 0:X.lazyLoad)&&(q.lottiePlayerProps.animationConfig.animationData?!0:ce.get(t.isDarkTheme?q.pathDarkTheme:q.path)?!0:!1);if(Q||I)return t.applyAnimatedIcon(b,q,t.iconset),v.return();if(I||
(u=q)==null||!u.lazyLoad){v.jumpTo(2);break}c=Olc(q,t.isDarkTheme);t.applyStaticIcon(t.iconset,b,t.iconName,W,m);return _.a(v,c,3);case 3:return _.a(v,t.renderIcon(t.targetContainer,t.icon),4);case 4:return v.return();case 2:t.applyStaticIcon(t.iconset,b,t.iconName,W,m),_.u8(v)}})};
_.r.getContainer=function(W){var e,t=(e=HuS(this.hostElement))==null?void 0:e.host;e=!!t&&!!t.polymerController;if(!W||e)return W?this.getTargetContainer(W,t):this.hostElement};
_.r.getTargetContainer=function(W,e){var t=_.rz(e).querySelector("#"+W);t||(W=new _.o_("yt-icon container missing",e.is,W),_.gQ(W));return t};
_.r.applyStaticIcon=function(W,e,t,b,m){m&&this.removeAnimatedIcon(e);this.removeIconShape();m=m&&!!this.iconType&&!!this.iconShapeData&&_.S("kevlar_use_wil_icons");try{m?this.applyIconShape(!1,e):W.applyIcon(e,t)}catch(q){this.handleError(q,b,e)}};
_.r.applyIconShape=function(W,e){this.iconset&&e&&(this.removeStaticIcon(this.iconset,e),W&&this.removeAnimatedIcon(e));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var t=_.R(this.iconShapeDataSignal);e=t.next().value;t=t.next().value;var b=_.R(this.renderingOptionsSignal),m=b.next().value;b=b.next().value;t(this.iconShapeData);b(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.R(K8L(e,m)).next().value;W.firstChild;)_.rz(this.hostElement).appendChild(W.firstChild)};
_.r.removeIconShape=function(){if(_.S("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.r.removeStaticIcon=function(W,e){W.removeIcon(e)};
_.r.applyAnimatedIcon=function(W,e,t){this.removeStaticIcon(t,W);this.removeIconShape();var b;t=this.animatedIconElement&&((b=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:b.type)===e.type;if(this.animatedIconElement&&t){this.animatedIconElement.polymerController.animatedIcon=e;var m;((m=this.animatedIconElement)==null?void 0:m.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=e,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.S("kevlar_use_wil_icons")?W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.rz(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.r.removeAnimatedIcon=function(W){_.S("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.rz(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.r.handleError=function(W,e,t){_.xM(W,this.iconName,e,t);e=J6G(t,this.icon);var b=!1;window.location.href.includes("JpymaW6Lh2w")?b=!0:t._svgIcon&&(t=(t=t._svgIcon.parentNode)?t.tagName:"unknown",_.xM(W,t),t==="YT-ICON"&&W.name==="NotFoundError"?b=!0:W.name==="NotFoundError"&&e&&(b=!0));b?_.JC(W):_.gQ(W)};
_.Ec.Object.defineProperties(Q2,{template:{configurable:!0,enumerable:!0,get:function(){if(eJb===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;
WHe===void 0&&(WHe=document.createElement("template"));var b=WHe;t.call(e,b.content.cloneNode(!0),W.content.firstChild);eJb=W}W=eJb;return W}}});
Q2.prototype.handlePropertyChange=Q2.prototype.handlePropertyChange;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Q2.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",String)],Q2.prototype,"icon",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Q2.prototype,"active",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Q2.prototype,"defaultToFilled",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Q2.prototype,"isAnimatedIcon",void 0);
_.P([_.J({value:24}),_.Y("design:type",Number)],Q2.prototype,"size",void 0);_.P([_.J({value:""}),_.Y("design:type",String)],Q2.prototype,"targetContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Q2.prototype,"animatedIconElement",void 0);_.P([_.J(),_.Y("design:type",Object)],Q2.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Q2.prototype,"ariaHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Q2.prototype,"ariaLabel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Q2.prototype,"role",void 0);_.P([_.J(),_.Y("design:type",String)],Q2.prototype,"style",void 0);_.P([_.J(),_.Y("design:type",String)],Q2.prototype,"iconFilter",void 0);_.P([_.ul("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Q2.prototype,"handlePropertyChange",null);_.P([_.gz({is:"yt-icon",noInjection:!0})],Q2);var qsP;var RJy=function(){var W=document.body,e=W.appendChild;if(qsP===void 0){var t=document.createElement("template");_.p(t,'\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>');
qsP=t}t=qsP;e.call(W,t.content)};
document.body?RJy():window.addEventListener("DOMContentLoaded",RJy);var QJS,FHS=function(){return QJS!==void 0?QJS:QJS=document.createElement("template")};
document.head.appendChild(FHS().content);var XW8,Ipy=function(){return XW8!==void 0?XW8:XW8=document.createElement("template")};
document.head.appendChild(Ipy().content);var aph;_.FN=new _.W_("KEY_MANAGER_TOKEN");var zaz={duration:1E3,easing:"ease",fill:"forwards"};_.tA(YFG);var L89={duration:1E3,easing:"ease",fill:"forwards"},c1y=_.NN(function(W){var e=_.zT("animated-rolling-character"),t=void 0,b=function(){var m,q;return Lc((m=W.character)==null?void 0:m.call(W))||Lc((q=W.previousCharacter)==null?void 0:q.call(W))};
_.nh(function(){if(W.marginMultiplier()){var m;(m=t)==null||m.cancel();if(b()){var q;m=((q=W.previousCharacter)==null?0:q.call(W))?Number(W.previousCharacter())+10:W.rollUp()?0:30;var Q;if((Q=W.shouldAnimate)==null||!Q.call(W)){var X,I;m-=U6R((X=W.character)==null?void 0:X.call(W),(I=W.previousCharacter)==null?void 0:I.call(W),W.rollUp(),m)}}else{m=W.rollUp()?0:2;var u;(u=W.shouldAnimate)!=null&&u.call(W)||(q=m,Q=W.rollUp()?-1:1,m=q-Q)}e.value.style.marginTop="-"+m*W.marginMultiplier()+"px";var c;
if((c=W.shouldAnimate)==null?0:c.call(W)){var v,D;t=EXD(e.value,(v=W.character)==null?void 0:v.call(W),(D=W.previousCharacter)==null?void 0:D.call(W),W.rollUp(),m,b(),W.marginMultiplier())}else{var B;e.value.style.display=((B=W.character)==null?0:B.call(W))?"":"none"}}},"vt9b9b");
return _.w("animated-rolling-character",{el:e,class:"animated-rolling-character-wiz"},_.w(_.G,{cond:b,then:function(){return _.w(wW8,null)},
else:function(){return _.w(unP,{character:W.character})}}))},"j");
c1y.idomCompat=!0;var A6K=_.S("web_enable_sink_animated_rolling_character_and_number")?c1y:YFG,vuN=_.S("web_enable_sink_animated_rolling_character_and_number")?c1y:_.SN(YFG),wW8=_.NN(function(){for(var W=[],e=1;e<30;e++)W.push(_.w("div",null,e%10));return _.w(_.qD,null,_.w("div",null,"\u00a0"),W,_.w("div",null,"\u00a0"))},"k"),unP=_.NN(function(W){var e=W.character;
return _.w(_.qD,null,_.w("div",null,"\u00a0"),_.w(_.G,{cond:function(){return!(e==null?0:e())||_.QK(e==null?void 0:e())},
then:function(){return _.w("div",null,"\u00a0")},
else:function(){return _.w("div",null,e)}}),_.w("div",null,"\u00a0"))},"l");_.tA(N72);var GNb=_.NN(function(W){var e=void 0,t=void 0,b=function(){var q;return((q=W.fontSizeMultiplier)==null?0:q.call(W))?W.heightPx()*W.fontSizeMultiplier():W.heightPx()},m=_.SC(function(){if(!W.numberText())return[];
var q,Q,X=((q=W.forceRollUp)==null?void 0:q.call(W))||!t||!((Q=W.numberValue)==null?0:Q.call(W))||t<W.numberValue(),I,u=W.numberText();q=b();Q=!((I=W.shouldAnimate)==null||!I.call(W));I=[];var c=0,v=0,D=(e?e.replace(/\D/g,"").length:0)-(u?u.replace(/\D/g,"").length:0),B=e?e.split(/(\d)/).filter(Boolean):[];for(u=u.split(/(\d)/).filter(Boolean);D<0;){var k=u[v];I.push({character:k,rollUp:X,marginMultiplier:q,shouldAnimate:Q});v++;Lc(k)&&D++}for(;c<D;)k=B[c],I.push({previousCharacter:k,rollUp:X,marginMultiplier:q,
shouldAnimate:Q}),c++,Lc(k)||D++;for(;v<u.length;)D=u[v],k=B[c],Lc(D)===Lc(k)?(v++,c++):Lc(D)?(c++,D=void 0):Lc(k)&&(v++,k=void 0),I.push({character:D,previousCharacter:k,rollUp:X,marginMultiplier:q,shouldAnimate:Q});e=W.numberText();var n;t=(n=W.numberValue)==null?void 0:n.call(W);return I},void 0,"B9AmNd");
return _.w("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return W.numberText()?["height: "+b()+"px;","line-height: "+W.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.w(_.lV,{each:m,keyBy:"INDEX"},function(q){return _.w(vuN,{character:function(){return q().character},
previousCharacter:function(){return q().previousCharacter},
marginMultiplier:function(){return q().marginMultiplier},
rollUp:function(){return q().rollUp},
shouldAnimate:function(){return q().shouldAnimate}})}))},"m");
GNb.idomCompat=!0;_.vkL=_.S("web_enable_sink_animated_rolling_character_and_number")?GNb:N72;_.DeZ=_.S("web_enable_sink_animated_rolling_character_and_number")?GNb:_.SN(N72);var d6G={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"};_.XN=_.NN(function(W){var e=_.zT("a",W.ref),t=W.aTagConfig?W.aTagConfig:_.SC(function(){var b,m,q,Q,X,I;var u=(I=_.Mk((Q=W.command)==null?void 0:Q.call(W)))!=null?I:(X=W.command)==null?void 0:X.call(W);return _.h_({innertubeCommand:u,skipOnClick:(b=W.skipOnClick)==null?void 0:b.call(W),stopPropagation:(m=W.dangerousStopPropagation)==null?void 0:m.call(W),defaultTarget:(q=W.target)==null?void 0:q.call(W)})||{}},void 0,"gnrRge");
_.nh(function(){e.value._data=t()._data;e.value.params=t().params},"dcjvAe");
return _.w("a",{el:e,href:function(){return t().href$},
rel:function(){return t().rel$},
class:function(){var b,m;return(m=t().className)!=null?m:(b=W.className)==null?void 0:b.call(W)},
style:function(){var b;if((b=W.style)==null?0:b.call(W))return W.style();var m;return((m=W.disabled)==null?0:m.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!t()["aria-haspopup$"]},
"force-new-state":lt(function(){return t()["force-new-state$"]}),
title:lt(function(){var b,m;return(m=t().title$)!=null?m:(b=W.title)==null?void 0:b.call(W)}),
role:lt(function(){return t().role$}),
target:lt(function(){return t().target$}),
dir:lt(function(){var b;return((b=W.dir)==null?0:b.call(W))?W.dir():t().dir}),
tabindex:function(){var b;return t().tabindex$?Number(t().tabindex$):(b=W.tabIndex)==null?void 0:b.call(W)},
"aria-hidden":function(){var b,m;return(m=t()["aria-hidden$"])!=null?m:(b=W.ariaHidden)==null?void 0:b.call(W)},
"aria-label":function(){var b,m;return(m=t()["aria-label$"])!=null?m:(b=W.ariaLabel)==null?void 0:b.call(W)},
"aria-current":W.ariaCurrent,"aria-disabled":W.disabled,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":_.Be(function(b){var m,q;return void((q=(m=t()).onpointerdown)==null?void 0:q.call(m,b))}),
"on:click":_.Be(function(b){var m,q;return void((q=(m=t()).onclick)==null?void 0:q.call(m,b))})},W.children)},"n");var SsU=function(W,e){this.fillAnimation=new Animation(bS2(W),document.timeline);this.strokeAnimation=new Animation(myc(e),document.timeline)};
SsU.prototype.play=function(){var W,e;(e=(W=this.fillAnimation).play)==null||e.call(W);var t,b;(b=(t=this.strokeAnimation).play)==null||b.call(t)};
SsU.prototype.cancel=function(){var W,e;(e=(W=this.fillAnimation).cancel)==null||e.call(W);var t,b;(b=(t=this.strokeAnimation).cancel)==null||b.call(t)};_.jN=_.NN(function(W){var e=W.model;var t=W.pointerDownEvent;var b=W.pointerUpEvent;var m=W.pointerLeaveEvent;W=_.zT("div");var q=_.$D({"border-radius":function(){return e().borderRadius}}),Q=_.zT("div"),X=_.zT("div"),I=_.R(_.ZT(function(){return(b==null?0:b())||(m==null?0:m())?!1:!(t==null||!t())||!1})),u=I.next().value,c=I.next().value,v=void 0,D=function(){!v&&X.value&&Q.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(v=new SsU(X.value,Q.value));
var K;(K=v)==null||K.play()},B=function(){var K;
(K=v)==null||K.cancel()},k=function(){var K;
(K=v)==null||K.cancel()};
_.nh(function(){(b==null?0:b())&&D()},"YjVIpd");
_.nh(function(){(t==null?0:t())&&B()},"UrXvqb");
_.nh(function(){(m==null?0:m())&&k()},"QK6L8b");
I=_.Be(function(){D();c(!1)});
var n=_.Be(function(){B();c(!0)}),f=_.Be(function(){k();
c(!1)});
_.fh(function(){if(v){var K;(K=v)==null||K.cancel();v=void 0}});
var M={};u=_.ve("yt-spec-touch-feedback-shape",function(){return rLL(e().color)},(M["yt-spec-touch-feedback-shape--focused"]=function(){return!!e().focused&&!e().disabled},M["yt-spec-touch-feedback-shape--circular"]=function(){return!!e().circular},M["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!e().isExtended},M["yt-spec-touch-feedback-shape--down"]=u,M["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!e().triggerEvents},M));
return _.w("yt-touch-feedback-shape",{style:_.$D({"border-radius":"inherit"})},_.w("div",{el:W,class:u,style:_.$D({"margin-top":function(){return e().customTopExtend?"-"+e().customTopExtend+"px":void 0}}),
"on:mousedown":n,"on:mouseup":I,"on:pointerleave":f,"on:touchstart":n,"on:touchend":I,"aria-hidden":!0},_.w("div",{class:"yt-spec-touch-feedback-shape__stroke",style:q,el:Q}),_.w("div",{class:"yt-spec-touch-feedback-shape__fill",style:q,el:X})))},"o");
_.jN.idomCompat=!0;var BZb={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 Ij=_.vZ();Ij=Ij.toLowerCase();if(_.XD(Ij,"android")){var ouv=Ij.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);ouv&&parseFloat(ouv[1])<100||Ij.match("("+Object.keys(BZb).join("|")+")")};var lpv=_.NN(function(W){return _.w(_.G,{cond:W.aTagConfig,then:function(e){return _.w(_.XN,{aTagConfig:e,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var t,b;return((t=W.toggleable)==null?void 0:t.call(W))&&((b=W.toggled)==null?void 0:b.call(W))}},W.children)},
else:function(){return _.w("button",{"on:click":_.Be(function(e){var t;return(t=W.onClick)==null?void 0:t.call(W,e)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var e,t;return((e=W.toggleable)==null?0:e.call(W))?!((t=W.toggled)==null||!t.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"p"),$eP=_.NN(function(W){var e=W.data;
var t=W.hasIconLeading;var b=W.hasIconLeadingTrailing;var m=W.hasIconTrailing;var q=W.iconButton;var Q=W.iconClassName;var X=W.secondaryIconClassName;var I=W.icon;var u=W.secondaryIcon;var c=W.textContentClassName;return _.w(aj,{className:"",style:"display: inherit; justify-content: center"},_.w(_.G,{debugInstance:"V4z1Uc",cond:function(){return I&&(t()||b()||(q==null?void 0:q()))},
then:function(){return _.w(aj,null,_.w("div",{class:Q,"aria-hidden":"true"},I==null?void 0:I()))}}),_.w(_.G,{debugInstance:"ok3btb",
cond:function(){return(e().buttonText||e().animatedTextProps||e().formattedButtonText)&&!(q==null?0:q())},
then:function(){return _.w(aj,null,_.w(Zjb,{className:c,iconPosition:function(){return e().iconPosition},
text:function(){return e().buttonText},
oneOffCustomTextWrap:function(){return e().oneOffCustomTextWrap},
formattedButtonText:function(){return e().formattedButtonText},
animatedTextProps:function(){return e().animatedTextProps}}))}}),_.w(_.G,{debugInstance:"DO5Rz",
cond:m,then:function(){return _.w(aj,null,_.w("div",{class:Q},I==null?void 0:I()))}}),_.w(_.G,{debugInstance:"bnojSc",
cond:b,then:function(){return _.w(aj,null,_.w("div",{class:X},u==null?void 0:u()))}}),_.w(_.G,{debugInstance:"HN3kad",
cond:function(){return!e().disabled&&!0},
then:function(){return _.w(_.jN,{model:function(){return{color:XJz(e())}}})}}))},"q"),Zjb=_.NN(function(W){var e=function(){var t,b;
return((t=W.iconPosition)==null?void 0:t.call(W))==="icon-with-label"||((b=W.oneOffCustomTextWrap)==null?void 0:b.call(W))};
return _.w("div",{class:W.className,"aria-hidden":function(){var t,b,m;return((t=W.ariaHidden)==null?void 0:t.call(W))&&(!((b=W.animatedTextProps)==null||!b.call(W))||!((m=W.formattedButtonText)==null||!m.call(W)))}},_.w(_.kq,null,_.w(_.Zb,{when:function(){var t;
return(t=W.animatedTextProps)==null?void 0:t.call(W)}},function(){return _.w(_.DeZ,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.w(_.Zb,{when:function(){var t;
return(t=W.formattedButtonText)==null?void 0:t.call(W)}},function(){return _.w(_.WL,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:e()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:e()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!e()}})}),_.w(_.Zb,{when:function(){var t,b;
return((t=W.iconPosition)==null?void 0:t.call(W))==="icon-with-label"&&((b=W.text)==null?void 0:b.call(W))}},function(){return _.w(_.WL,{text:function(){return{content:W.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.w(_.$q,null,function(){return W.text})))},"r"),kN8=_.NN(function(W){return _.w(_.G,{debugInstance:"kM7Sgc",
cond:W.hasLabel,then:function(){var e;return _.w("label",{class:W.className},W.children,(e=W.textContent)==null?void 0:e.call(W))},
else:function(){return W.children}})},"s"),aj=_.NN(function(W){return W.children},"t");var weG=tO("stamper-context");var t3=_.NN(function(W){var e=W.data;var t=W.icon;var b=W.iconName;var m=W.secondaryIcon;var q=W.secondaryIconName;var Q=W.focusedOverride;ok9();var X=qaG(e),I=X.size,u=X.style;W=X.disabled;var c=X.onTap,v=X.alignByText,D=X.aTagConfig,B=X.customColors,k=X.segmentedPosition,n=X.toggled,f=X.toggleable,M=X.accessibilityLabel,K=X.onToggle,U=X.iconPosition,V=X.oneOffCustomTextWrap,L=X.disableTextEllipsis,E=X.disableBackdropFilter,RR=X.tooltipText,uv=X.ariaHidden,GS=X.tabIndex,k9=X.buttonText,CQ=X.formattedButtonText,
fQ=X.animatedTextProps,iv=FPZ(e,t,m,b,q,Q),hz=iv.type;t=iv.shouldFocus;b=iv.hasIconLeading;m=iv.hasIconTrailing;var ES=iv.hasIconLeadingTrailing,Wu=iv.hasIconOnly;q=iv.hasIconOnly40;var pr=iv.hasIconWithLabel;Q=iv.iconButton;var ay=iv.visiblyDisabled;X=iv.overrideSmallSizeIcon;var PU=iv.iconToRender;iv=iv.secondaryIconToRender;var cu={},LQ={};return _.w(kN8,{className:_.ve("yt-spec-button-shape-with-label",(cu["yt-spec-button-shape-with-label--is-overlay"]=function(){return u()==="overlay"||u()===
"overlay-dark"},cu)),
hasLabel:pr,textContent:function(){return _.w(Zjb,{text:k9,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:V,iconPosition:U,formattedButtonText:CQ,animatedTextProps:fQ})}},_.w(lpv,{aTagConfig:D,
className:_.ve("yt-spec-button-shape-next",function(){return avZ(hz())},function(){return ay()?void 0:wJv(u())},function(){return ufc(I())},(LQ["yt-spec-button-shape-next--disabled"]=ay,LQ["yt-spec-button-shape-next--focused"]=t,LQ["yt-spec-button-shape-next--icon-trailing"]=m,LQ["yt-spec-button-shape-next--icon-leading"]=b,LQ["yt-spec-button-shape-next--icon-leading-trailing"]=ES,LQ["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return ES()&&!(k9()||CQ())},LQ["yt-spec-button-shape-next--icon-button"]=
function(){return Wu()||pr()},LQ["yt-spec-button-shape-next--icon-only-default"]=q,LQ["yt-spec-button-shape-next--align-by-text"]=v,LQ["yt-spec-button-shape-next--segmented-start"]=function(){return k()==="start"},LQ["yt-spec-button-shape-next--segmented-end"]=function(){return k()==="end"},LQ["yt-spec-button-shape-next--override-small-size-icon"]=X,LQ["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=V,LQ["yt-spec-button-shape-next--disable-text-ellipsis"]=L,LQ["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!E()&&IvD()},LQ)),
style:function(){return cLs(B()).style},
onClick:function(sB){c==null||c(sB);f()&&(K==null||K(sB))},
disabled:W,ariaLabel:M,toggleable:f,toggled:n,title:function(){var sB;return(sB=RR())!=null?sB:""},
visiblyDisabled:ay,ariaHidden:uv,tabIndex:GS},_.w($eP,{data:e,hasIconLeading:b,hasIconLeadingTrailing:ES,hasIconTrailing:m,iconButton:Q,icon:PU,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:iv})))},"u");
t3.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var pWN=_.NN(function(W){var e=W.data;var t=W.id;var b=W.hidden;var m=W.className;var q=W.iconName;var Q=W.secondaryIconName;W=_.R(_.up(!1,void 0,"RyKHFc"));var X=W.next().value,I=W.next().value,u=function(){var v=_.ee().resolve(_.Wi(_.FN));v&&I(v.isKeyBoardInUse())},c=function(){I(!1)};
W=_.zT("yt-button-shape",function(v){if(_.ee().resolve(_.Wi(_.FN)))return v.addEventListener("focusin",u),v.addEventListener("focusout",c),function(){v.removeEventListener("focusin",u);v.removeEventListener("focusout",c)}});
return _.w("yt-button-shape",{el:W,id:t,class:m,hidden:b},_.w(_.G,{cond:e,then:function(){return _.w(t3,{data:e,iconName:q,secondaryIconName:Q,focusedOverride:X})}}))},"v");
_.S("web_wiz_button_shape")&&_.mM(pWN,"yt-button-shape",{props:{data:_.Eu,id:_.Eu,hidden:_.Eu,className:_.Eu,iconName:_.Eu,secondaryIconName:_.Eu},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var wq=function(){var W=_.O.apply(this,arguments)||this;W.keyboardFocused=!1;return W};
_.Z(wq,_.O);wq.prototype.onFocus=function(){var W=_.ee().resolve(_.Wi(_.FN));W&&(this.keyboardFocused=W.isKeyBoardInUse())};
wq.prototype.onBlur=function(){this.keyboardFocused=!1};
wq.prototype.renderIdom=function(){var W=this;if(this.data){var e=pa(this.data,!!this.iconName),t=QkS(this.data);this.data.focused=this.keyboardFocused;BYs(this.data,function(){var b;f4("yt-icon",{icon:W.iconName,active:(b=W.data)==null?void 0:b.toggled,size:e,style:"width: "+e+"px; height: "+e+"px;",iconFilter:t},Lh)},function(){var b;
f4("yt-icon",{icon:W.secondaryIconName,active:(b=W.data)==null?void 0:b.toggled,size:e,style:"width: "+e+"px; height: "+e+"px;",iconFilter:t},Lh)});
_.q2(this.hostElement,"yt-renderidom-finished")}};
_.Ec.Object.defineProperties(wq,{template:{configurable:!0,enumerable:!0,get:function(){if(aph===void 0){var W=document.createElement("template");_.p(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_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.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(Ipy().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(FHS().content.cloneNode(!0),W.content.firstChild);aph=W}W=aph;return W}}});
wq.prototype.onBlur=wq.prototype.onBlur;wq.prototype.onFocus=wq.prototype.onFocus;_.P([_.y(iLh),_.Y("design:type",Object)],wq.prototype,"ytIdomTemplatingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wq.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],wq.prototype,"iconName",void 0);_.P([_.J(),_.Y("design:type",String)],wq.prototype,"secondaryIconName",void 0);_.P([_.J(),_.Y("design:type",Object)],wq.prototype,"keyboardFocused",void 0);
_.P([_.wz("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"onFocus",null);_.P([_.wz("focusout"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"onBlur",null);_.P([_.gz({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.S("web_wiz_button_shape")})],wq);_.mM(_.NN(function(W){function e(){t().seconds&&q(MOs({seconds:Number(t().seconds)-Date.now()/1E3}))}
var t=W.targetTimestamp;W=W.className;var b=_.R(_.up("",void 0,"U1Q8Ae")),m=b.next().value,q=b.next().value;_.jm(function(){e();var Q=setInterval(function(){e()},1E3);
_.fh(function(){clearInterval(Q)})});
return _.w("yt-countdown",{class:_.ve("ytCountDownHost",W)},_.w("div",null,m))},"w"),"yt-countdown",{props:{targetTimestamp:_.Eu,
className:_.bt}});_.MV=_.NN(function(W){var e=W.data;var t=W.className;var b=W.style;var m=W.useOutlinedIcon;var q=W.buttonOverrides;var Q=W.animatedTextProps;var X=W.onClick;var I=_.zT("button-view-model",function(f){f.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var M=e().targetId;M&&_.Aav(_.k6(),M,f);return function(){L4U(_.k6(),f)}}),u=function(){return e().iconName},c,v=(c=_.ee().resolve(_.Wi(_.zf)))==null?void 0:c(),D=function(){var f=e();
var M=q==null?void 0:q(),K=Q==null?void 0:Q();if(f){var U=kdG(f.type);var V=!!f.title||!!f.titleFormatted;var L=!(!f.iconName&&!f.iconImage);V=L&&!V?"icon-only":L?f.iconTrailing||f.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;V==="icon-only-40"&&(U="text");var E,RR=(E=M==null?void 0:M.disabled)!=null?E:f.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||f.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";E=Object;L=E.assign;var uv=f.title,GS=f.titleFormatted;K=K&&K.numberText&&
!isNaN(Number(K.numberValue))?K:void 0;var k9=f.accessibilityText,CQ=$y2(f.style),fQ=pJS(f.state),iv=yLg(f.buttonSize),hz=ZSS(f,I,RR,X);RR=RR&&!f.onDisabledTap;var ES=_.h_({elementsCommand:f.onTap,forceNewState:!0});ES=Hg(ES)?ES:void 0;var Wu=f.customFontColor,pr=f.customBackgroundColor;var ay=f.customBorderColor;var PU=f.customDarkThemeFontColor,cu=f.customDarkThemeBackgroundColor,LQ=f.customDarkThemeBorderColor;Wu=v&&PU?PU:Wu;pr=v&&cu?cu:pr;ay=v&&LQ?LQ:ay;ay={color:Wu?_.h8(Wu):void 0,backgroundColor:pr?
_.h8(pr):void 0,borderColor:ay?_.h8(ay):void 0};f=L.call(E,{},{buttonText:uv,formattedButtonText:GS,animatedTextProps:K,accessibilityLabel:k9,style:CQ,type:U,state:fQ,size:iv,iconPosition:V,onTap:hz,disabled:RR,aTagConfig:ES,customColors:ay,tooltipText:f.tooltip},M)}else f={style:"mono",type:"text",state:"active",size:"M"};f.focused=n();return f},B=function(){return pa(D(),!!e().iconName)};
W=_.R(_.up(!1,void 0,"vxWDPb"));c=W.next().value;var k=W.next().value,n=c;W=_.Be(function(){var f=_.ee().resolve(_.Wi(_.FN));f&&k(f.isKeyBoardInUse());return!1});
c=_.Be(function(){k(!1);return!1});
_.nh(function(){var f,M=_.l(e==null?void 0:(f=e())==null?void 0:f.onVisible,_.OD);M&&_.sD(M,{disableClickTracking:!0})},"x3DHkf");
return _.w("button-view-model",{el:I,class:_.ve("yt-spec-button-view-model",t),"on:focusin":W,"on:focusout":c},_.w(_.G,{cond:function(){var f;return(e==null?0:(f=e())==null?0:f.iconImage)?{sources:[e().iconImage]}:void 0},
then:function(f){return _.w(t3,{data:D,icon:function(){return _.w(_.A_,{data:f,alt:"",targetWidth:B,targetHeight:B,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.w(t3,{data:D,icon:function(){return _.w(_.kD,{icon:u,active:function(){return(m==null?0:m())?!1:D().toggled},
animateIcon:function(){var f;return!!(b==null?0:(f=b())==null?0:f.animateIcon)},
size:B})}})}}))},"x");
_.MV.idomCompat={callbacks:{onClick:!0}};_.mM(_.NN(function(W){return _.w("yt-button-view-model",{id:W.id,class:_.ve(W.scopingClassName,W.classes),icon:function(){var e;return(e=W.icon)==null?void 0:e.call(W)},
"dialog-dismiss":function(){var e;return((e=W.dialogDismiss)==null?0:e.call(W))?"":void 0}},_.w(_.MV,{data:function(){var e;
return(e=W.data)==null?void 0:e.call(W)},
className:function(){var e;return(e=W.className)==null?void 0:e.call(W)},
style:function(){var e;return(e=W.style)==null?void 0:e.call(W)},
useOutlinedIcon:function(){var e;return(e=W.useOutlinedIcon)==null?void 0:e.call(W)},
buttonOverrides:function(){var e;return(e=W.buttonOverrides)==null?void 0:e.call(W)},
animatedTextProps:function(){var e;return(e=W.animatedTextProps)==null?void 0:e.call(W)},
onClick:function(e){var t;return(t=W.onClick)==null?void 0:t.call(W,e)}}))},"y"),"yt-button-view-model",{props:{data:_.Eu,
className:_.Eu,style:_.Eu,useOutlinedIcon:_.Eu,buttonOverrides:_.Eu,animatedTextProps:_.Eu,onClick:_.bt,scopingClassName:_.Eu,id:_.Eu,icon:_.Eu,dialogDismiss:_.Eu,classes:_.Eu}});var uw=function(){var W=_.O.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.Z(uw,_.O);uw.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
uw.prototype.progressBarChanged=function(){var W=_.rz(this.hostElement).querySelector("#progress-bar-progress"),e,t,b,m=(b=Number((e=this.creatorGoalState)==null?void 0:e.currentGoalCount)/Number((t=this.creatorGoalState)==null?void 0:t.totalGoalCount)*100)!=null?b:0,q;W.style.width=((q=Math.min(m,100))!=null?q:0)+"%"};
uw.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var e;W={"--yt-progress-bar-color":Y22((e=this.creatorGoalState)==null?void 0:e.progressBarColor)};_.XB(this.hostElement,W)};
uw.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Ec.Object.defineProperties(uw.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var e;W=Number((e=this.creatorGoalState)==null?void 0:e.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var e;W=_.l((e=this.creatorGoalState)==null?void 0:e.themedTargetImage,X2B);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.Ec.Object.defineProperties(uw,{template:{configurable:!0,enumerable:!0,get:function(){return Vsy()}}});
uw.prototype.goalStateChanged=uw.prototype.goalStateChanged;uw.prototype.progressBarChanged=uw.prototype.progressBarChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],uw.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);
_.P([_.J({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,e){return _.I1(W.entities,"creatorGoalEntity",e)}}),
_.Y("design:type",Object)],uw.prototype,"creatorGoalState",void 0);_.P([_.J(),_.Y("design:type",Object)],uw.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],uw.prototype,"isGoalActive",void 0);_.P([_.T("creatorGoalState","isGoalActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uw.prototype,"shouldShowCountdown",null);_.P([_.T("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uw.prototype,"endTimestamp",null);
_.P([_.T("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uw.prototype,"targetIconThemedImage",null);_.P([_.ul("creatorGoalState.currentGoalCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uw.prototype,"progressBarChanged",null);_.P([_.ul("creatorGoalState.creatorGoalState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uw.prototype,"goalStateChanged",null);
_.P([_.gz({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],uw);_.H(uw,"yt-creator-goal-progress-flow-view-model",function(){return Vsy()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var y1b;var jJU;var c4=function(){return _.O.apply(this,arguments)||this};
_.Z(c4,_.O);c4.prototype.attached=function(){var W,e,t;if(this==null?0:(W=this.data)==null?0:(e=W.pdgPurchasedBumperLoggingDirectives)==null?0:(t=e.loggingDirectives)==null?0:t.trackingParams){var b,m,q;nkG(this==null?void 0:(b=this.data)==null?void 0:(m=b.pdgPurchasedBumperLoggingDirectives)==null?void 0:(q=m.loggingDirectives)==null?void 0:q.trackingParams)}};
c4.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],c4.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],c4);
_.H(c4,"yt-live-chat-item-bumper-view-model",function(){if(jJU===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;y1b===void 0&&(y1b=document.createElement("template"));var b=y1b;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jJU=W}W=jJU;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var CfD;var nuD;_.Ap=function(W,e){this.data=W;this.actions=e;this.data=W;this.actions=e};
_.Ka=function(){};_.v4={};_.v4.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,e){fvz(this.hostElement,W,e)},
getNavigationEndpointPopupAction:function(W){return gkc(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,e){TYz(this.hostElement,W,e,this.openPopupConfig)}};var VE9=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Ge={};
_.Ge.YtEndpointBehavior=[_.v4.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Ot("openPopupConfig");(this.useClickHandler=_.MD("useClickHandler",!1))?this.hostElement.addEventListener("click",IH(this,this.onEndpointClick_)):(C1(this.hostElement,"tap",IH(this,this.onEndpointTap_)),C1(this.hostElement,"touchend",IH(this,this.onEndpointTouchEnd_)));C1(this.hostElement,"touchstart",IH(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
IH(this,this.onEndpointTapStart_))},
onEndpointClick_:function(W){OSL(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var e=this.hostElement,t=this.openPopupConfig,b=this.disableCommandHandlerOverride;b=b===void 0?!1:b;var m=JLL(W);if(m){m.href&&Pw(m.href);var q=W.detail;var Q=q.sourceEvent;q=q.preventer;Q=Q.button!==void 0?Q.button===0&&!fa(Q):q?!fa(q):!0;m.data&&Q&&xyR(e,m,W,t,b)}},
onEndpointTouchEnd_:function(W){fa(W)||JLL(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){KPL(W)}}];var iSz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),z0s=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var fpk={};fpk.YtPlaintextBehavior=[_.ZJ,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.G9&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var guy;var TZ8;var Dz=function(){var W=_.O.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.Ot("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.Z(Dz,_.O);_.r=Dz.prototype;_.r.created=function(){this.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.Ot("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.r.ready=function(){_.Ot("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_()};
_.r.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.r.detached=function(){this.unobserveIOObservers_()};
_.r.clearContents_=function(){for(var W=this.getRoot(),e=W.lastChild;e&&e.tagName!=="STYLE";){try{W.removeChild(e)}catch(t){break}e=W.lastChild}};
_.r.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.R(this.ytFormattedStringObserverHandlerKeys_),e=W.next();!e.done;e=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(e.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.r.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.r.resetForFormattedString=function(){var W=this.getRoot(),e=W.querySelector("yt-attributed-string");e&&(this.ytAttributedStringElementRef=W.removeChild(e))};
_.r.textChanged=function(){this.textChanged_(this.text)};
_.r.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.S("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var e=this.hostElement.firstChild;e&&e.nodeName==="FONT";){var t=e;e=e.nextSibling;this.hostElement.removeChild(t)}e=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
t=W.simpleText;var b;!t&&((b=W.runs)==null?void 0:b.length)===1&&this.isSimpleString_(W.runs[0])&&(t=W.runs[0].text);t!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Ot("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(t!==void 0){try{e.textContent=t}catch(m){}e.textContent||(this.isEmpty=!0)}else W=W.runs,t!==void 0&&(W=[{text:t}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
e.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.r.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)};
_.r.computeAriaLabel_=function(W){return W};
_.r.computeEllipsisTruncateStyling=function(W,e){return W&&!e};
_.r.computeUseAttributedString=function(W){return _.S("web_replace_formatted_with_attributed_string")&&QJL(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.r.setNodeStyle_=function(W,e){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.S("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?e.removeAttribute("dir"):e.setAttribute("dir","auto");e.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");e.style.color="";var t=null;this.noStyles||(W.bold&&(e.classList.add("bold"),t="bold"),W.deemphasize&&(e.classList.add("deemphasize"),t="deemphasize"),W.italics&&e.classList.add("italic"),
W.strikethrough&&e.classList.add("strikethrough"),W.errorUnderline&&(e.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&e.classList.add("bracket"),W.textColor&&(e.style.color=_.sr(W.textColor)));t!==e.getAttribute("style-target")&&(t?e.setAttribute("style-target",t):e.removeAttribute("style-target"))};
_.r.setUpVisibilityLogging_=function(W,e){var t=this;this.setNodeTrackingParams_(W,e);var b;((b=e.data)==null?0:b.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(e,function(m){var q=t.ytRendererBehavior.getVisibilityLogger();q&&q.reportShown(m)},this.ytRendererBehavior.visibilityOptionVisible_),e=this.ytRendererBehavior.visibilityObserver.observe(e,function(m){var q=t.ytRendererBehavior.getVisibilityLogger();
q&&q.reportHidden(m)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(e))};
_.r.setNodeTrackingParams_=function(W,e){e.data||(e.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||e.data.trackingParams)e.data.trackingParams=W};
_.r.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.r.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.rz(_.rz(this.hostElement,W).querySelector("[contenteditable]")):_.rz(this.hostElement,W)};
_.r.fixContenteditableScope=function(){var W=function(e){e&&(e.nodeType===1&&e.classList&&(e.classList.add("style-scope"),e.classList.add("yt-formatted-string")),e.childNodes&&e.childNodes.forEach(function(t){W(t)}))};
W(this.getRoot())};
_.r.updateText_=function(W){for(var e=W.length,t=this.getRoot(),b=t.firstChild;b&&b.nodeName==="STYLE";)b=b.nextSibling;for(var m=0;m<e&&b;){var q=W[m],Q=_.S("remove_cr_char")&&q.text?q.text.replace("\r",""):q.text;if(this.isSimpleString_(q)&&!this.useMixedDirectionFormattedStrings)if(b.nodeName==="#text"){b.textContent!=Q&&(b.textContent=Q);m++;b=b.nextSibling;continue}else break;if(_.l(q,J_))break;else if(!this.noEndpoints&&q.navigationEndpoint){if(b.nodeName!=="A")break;this.setDataOnAnchor_(b,
q.navigationEndpoint)}else if(b.nodeName!=="SPAN")break;this.setNodeStyle_(q,b);this.setUpVisibilityLogging_(q,b);b.textContent!=Q&&(b.textContent=Q);m++;b=b.nextSibling}if(b)for(q=t.lastChild,b=m?b.previousSibling:null;q&&q!=b;){try{t.removeChild(q)}catch(X){break}q=t.lastChild}m!==e&&this.addTextNodes_(W,m)};
_.r.addTextNodes_=function(W,e){for(var t=document.createDocumentFragment(),b=W.length;e<b;e++){var m=W[e],q=_.S("remove_cr_char")&&m.text?m.text.replace("\r",""):m.text;if(this.isSimpleString_(m)&&!this.useMixedDirectionFormattedStrings)t.appendChild(document.createTextNode(q));else{var Q=_.l(m,J_);if(Q){if(Q.image){var X=document.createElement("img");Q.isCustomEmoji||X.classList.add("small-emoji");X.classList.add("emoji");Q.isCustomEmoji&&(X.dataset.emojiId=Q.emojiId);X.src=_.rd(Q.image.thumbnails,
this.emojiSize);(m=this.get("image.accessibility.accessibilityData.label",Q))?X.alt=m:Q.shortcuts&&Q.shortcuts.length>0?X.alt=Q.shortcuts[0]:Q.emojiId&&(X.alt=Q.emojiId);t.appendChild(X);this.hasEmoji=!0}}else!this.noEndpoints&&m.navigationEndpoint?(X=document.createElement("a"),X.classList.add("yt-simple-endpoint"),X.setAttribute("spellcheck","false"),this.setDataOnAnchor_(X,m.navigationEndpoint)):X=document.createElement("span"),this.setNodeStyle_(m,X),this.setUpVisibilityLogging_(m,X),X.appendChild(document.createTextNode(q)),
t.appendChild(X)}}this.getRoot().appendChild(t)};
_.r.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.l(W,J_)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.r.getRawText=function(){return _.Ub(this.text)};
_.r.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.r.setFirstRunText=function(W){var e;((e=this.text)==null?0:e.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.r.setDataOnAnchor_=function(W,e){var t=this;!_.S("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(e)||this.isSignalServiceEndpoint_(e)?(W.onclick=this.serviceEndpointHandler_(e),yE(W,"#")):fjD({text:this.text,command:e},function(){Vgs(W,e,t.target)})};
_.r.isServiceEndpoint_=function(W){var e;return!((e=_.l(W==null?void 0:W.commandMetadata,_.ez))==null||!e.sendPost)};
_.r.isSignalServiceEndpoint_=function(W){return!!_.l(W,_.c6)};
_.r.serviceEndpointHandler_=function(W){var e=this;return function(t){_.X5(e.hostElement,[W]);t.preventDefault()}};
_.r.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.r.enableContentEditableChanged_=function(){var W=this,e=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),e=_.rz(this.hostElement,e),!e.lastChild||e.lastChild instanceof HTMLElement&&e.lastChild.id!=="contenteditable-root"){var t=document.createElement("div");t.id="contenteditable-root";t.setAttribute("contenteditable","true");t.setAttribute("dir","auto");t.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
e.appendChild(t);this.overrideAriaLabel&&t.setAttribute("aria-label",this.overrideAriaLabel)}}else t=_.qN(this.hostElement).firstChild,t instanceof HTMLElement&&t.id==="contenteditable-root"&&_.rz(this.hostElement,e).removeChild(t)};
_.r.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.r.getNodesForVisibilityLogging_=function(){return _.Xi(this.getRoot().childNodes,function(W){var e;return!((e=W.data)==null||!e.trackingParams)})};
_.r.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.r.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(e){W.reportShown(e)})}};
_.r.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(e){W.reportHidden(e)})}};
_.Ec.Object.defineProperties(Dz.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.S("enable_mixed_direction_formatted_strings")}}});
Dz.prototype.enableContentEditableChanged_=Dz.prototype.enableContentEditableChanged_;Dz.prototype.overrideAriaLabelChanged_=Dz.prototype.overrideAriaLabelChanged_;Dz.prototype.ellipsisTruncateChanged_=Dz.prototype.ellipsisTruncateChanged_;Dz.prototype.textChanged=Dz.prototype.textChanged;_.P([_.y(fpk.YtPlaintextBehavior),_.Y("design:type",Object)],Dz.prototype,"ytPlaintextBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dz.prototype,"text",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"noEndpoints",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"noStyles",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dz.prototype,"isDarkTheme",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Dz.prototype,"splitLines",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dz.prototype,"forceDefaultStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dz.prototype,"ellipsisTruncate",void 0);_.P([_.J(),_.Y("design:type",Object)],Dz.prototype,"ignoreShadyDom",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Y("design:type",Boolean)],Dz.prototype,"ellipsisTruncateStyling",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Y("design:type",String)],Dz.prototype,"ariaLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dz.prototype,"isEmpty",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Y("design:type",Boolean)],Dz.prototype,"hasLinkOnly_",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"hasEmoji",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"disableAttributedString",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"isOverlay",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"linkInheritColor",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"noPreWrap",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"userInput",void 0);_.P([_.J({value:16}),_.Y("design:type",Number)],Dz.prototype,"emojiSize",void 0);_.P([_.J(),_.Y("design:type",String)],Dz.prototype,"target",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"enableContentEditable",void 0);_.P([_.J(),_.Y("design:type",String)],Dz.prototype,"overrideAriaLabel",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"respectHtmlDir",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dz.prototype,"respectLangDir",void 0);_.P([_.T("plaintextOnly"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Dz.prototype,"useMixedDirectionFormattedStrings",null);_.P([_.J({computed:"computeUseAttributedString(text)"}),_.Y("design:type",Boolean)],Dz.prototype,"useYtAttributedString",void 0);
_.P([_.ul("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dz.prototype,"textChanged",null);_.P([_.ul("ellipsisTruncate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dz.prototype,"ellipsisTruncateChanged_",null);_.P([_.ul("overrideAriaLabel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dz.prototype,"overrideAriaLabelChanged_",null);
_.P([_.ul("enableContentEditable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dz.prototype,"enableContentEditableChanged_",null);_.P([_.gz({is:"yt-formatted-string",disableElementRegistration:!0})],Dz);
_.H(Dz,"yt-formatted-string",function(){if(TZ8===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;guy===void 0&&(guy=document.createElement("template"));var b=guy;t.call(e,b.content.cloneNode(!0),W.content.firstChild);TZ8=W}W=TZ8;return W});var J1U;var xeB;var Ojk;var MaS;var S$=function(){var W=_.O.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.Z(S$,_.O);S$.prototype.triggerDown=function(){if(!this.disabled){_.RH(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
S$.prototype.triggerUp=function(){if(!this.disabled){_.RH(this.hostElement,"down",!1);var W=this.fillElement;var e=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([bS2(W),myc(e)]),W=new Animation(W,document.timeline)):W=new SsU(W,e);this.currentAnimation=W;var t;(t=this.currentAnimation)==null||t.play()}};
_.P([_.vG(".stroke"),_.Y("design:type",HTMLElement)],S$.prototype,"strokeElement",void 0);_.P([_.vG(".fill"),_.Y("design:type",HTMLElement)],S$.prototype,"fillElement",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],S$.prototype,"focused",void 0);_.P([_.J(),_.Y("design:type",Object)],S$.prototype,"disabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],S$.prototype,"isOverlay",void 0);_.P([_.gz({is:"yt-interaction",disableElementRegistration:!0})],S$);
_.H(S$,"yt-interaction",function(){if(MaS===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Ojk===void 0&&(Ojk=document.createElement("template"));var b=Ojk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MaS=W}W=MaS;return W},{mode:2});var B4=function(){return _.O.apply(this,arguments)||this};
_.Z(B4,_.O);_.r=B4.prototype;_.r.ready=function(){var W=this,e=_.rz(this.hostElement).querySelector("#button");e.addEventListener("focus",function(){raP||(raP=new mXZ);W.keyboardFocused=raP.isKeyBoardInUse()});
e.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.r.computeTabIndex_=function(W){return W?-1:0};
_.r.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.r.rippleDown_=function(){_.rz(this.hostElement).querySelector("#interaction").triggerDown()};
_.r.rippleUp_=function(){_.rz(this.hostElement).querySelector("#interaction").triggerUp()};
_.r.onPressedChanged_=function(){var W=_.qN(_.rz(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.qN(_.rz(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
B4.prototype.onPressedChanged_=B4.prototype.onPressedChanged_;B4.prototype.rippleUp_=B4.prototype.rippleUp_;B4.prototype.rippleDown_=B4.prototype.rippleDown_;_.P([_.J(),_.Y("design:type",String)],B4.prototype,"label",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],B4.prototype,"disabled",void 0);_.P([_.J(),_.Y("design:type",Boolean)],B4.prototype,"pressed",void 0);_.P([_.J(),_.Y("design:type",Object)],B4.prototype,"toggleable",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],B4.prototype,"untabbable",void 0);_.P([_.J(),_.Y("design:type",Boolean)],B4.prototype,"keyboardFocused",void 0);_.P([_.wz("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B4.prototype,"rippleDown_",null);_.P([_.wz("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B4.prototype,"rippleUp_",null);
_.P([_.ul("pressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B4.prototype,"onPressedChanged_",null);_.P([_.gz({is:"yt-icon-button",disableElementRegistration:!0})],B4);
_.H(B4,"yt-icon-button",function(){if(xeB===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;J1U===void 0&&(J1U=document.createElement("template"));var b=J1U;t.call(e,b.content.cloneNode(!0),W.content.firstChild);xeB=W}W=xeB;return W},{mode:2});var sJb=_.Nw(["aria-"]),oj={};oj.YtRenderButtonBehavior=[_.d.YtRendererBehavior,_.Ge.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!!_.ee().resolve(_.Wi(_.FN))&&_.S("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 W=this.computeHref_(this.endpoint,!0);W?yE(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.R(W);for(var e=W.next();!e.done;e=W.next())e=e.value,_.RH(this.hostElement,e,!0),this.elements_.button&&_.RH(this.elements_.button,e,!0),this.elements_.text&&_.RH(this.elements_.text,e,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.P7([_.eH(sJb)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.ee().resolve(_.Wi(_.FN));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.tH("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,_.ZZ(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.ZZ(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,e){if(e)for(W=e.split(" "),W=_.R(W),e=W.next();!e.done;e=W.next())e=e.value,_.RH(this.hostElement,e,!1),this.elements_.button&&_.RH(this.elements_.button,e,!1),this.elements_.text&&_.RH(this.elements_.text,e,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.ZZ(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.QQ(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.ZZ(this.elements_.button).appendChild(this.elements_.icon):_.ZZ(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.QQ(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var e=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":e=!0;_.RH(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.ZZ(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.ZZ(this.elements_.endpoint).appendChild(this.elements_.button);_.ZZ(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.tH("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;_.ZZ(this.elements_.button).appendChild(this.elements_.text);_.ZZ(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":e=!0,this.elements_.button=this.getYtIconButton_(),W=_.ZZ(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.ZZ(this.elements_.endpoint).appendChild(this.elements_.button)}_.QQ(this.hostElement,"is-icon-button",e);_.QQ(this.hostElement,"is-paper-button",!e);_.QQ(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 t;_.rz((t=this.container.hostElement)!=null?t:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.ZZ(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.S("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.T2(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.X5(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.S("handle_service_request_actions")||_.X5(this.hostElement,[this.serviceEndpoint]),
_.q2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.S("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.IT(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.X5(this.hostElement,[W]):_.IT(this.hostElement,[W],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 W,e=_.rz((W=this.container.hostElement)!=null?W:this.container);e.lastChild&&e.lastChild.tagName!="STYLE";)try{e.removeChild(e.lastChild)}catch(t){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.tH("yt-icon-button"):document.createElement("yt-icon-button"),e=_.ZZ(W).firstElementChild;if(e&&e.is!="yt-icon"){for(e=_.ZZ(W);e.lastChild;)e.removeChild(e.lastChild);e=null}e||(e=this.getIcon_(),this.setIconActive_(e),_.ZZ(W).appendChild(e));return W},
reuseEnabled_:function(){return _.S("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.tH("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.tH("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.hJr={};
_.hJr.YtButtonBehavior=[oj.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var e;if((e=this.elements_)==null?0:e.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var e=W&&W.navigationEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.url"),b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:W&&W.command&&W.command.modalEndpoint?W.command:t&&!b&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var e=W&&W.serviceEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:t&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.ao(W.icon.iconType):null},
computeButtonText_:function(W,e){return!e&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var e=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";e+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(e+="palette-with-border");return e.trim()}}];var Jp={};var Hjk;var KHe;var Pfv,Vah=function(){return Pfv!==void 0?Pfv:Pfv=document.createElement("template")};
document.head.appendChild(Vah().content);var ijy;var YsN,zJZ=function(){return YsN!==void 0?YsN:YsN=document.createElement("template")};
document.head.appendChild(zJZ().content);var Ue8;var LHB,Eur=function(){return LHB!==void 0?LHB:LHB=document.createElement("template")};
document.head.appendChild(Eur().content);var A1D;var NZk=document.head,deh=NZk.appendChild,WXb;if(A1D===void 0){var e2h=document.createElement("template");_.p(e2h,"\x3c!--css-build:shady--\x3e");e2h.content.insertBefore(Eur().content.cloneNode(!0),e2h.content.firstChild);A1D=e2h}WXb=A1D;deh.call(NZk,WXb.content);var tMb=document.head,b$y=tMb.appendChild,mPv;if(Ue8===void 0){var rT8=document.createElement("template");_.p(rT8,"\x3c!--css-build:shady--\x3e");rT8.content.insertBefore(zJZ().content.cloneNode(!0),rT8.content.firstChild);Ue8=rT8}mPv=Ue8;b$y.call(tMb,mPv.content);var qov=document.head,R2S=qov.appendChild,QNy;if(ijy===void 0){var FXv=document.createElement("template");_.p(FXv,"\x3c!--css-build:shady--\x3e");FXv.content.insertBefore(Vah().content.cloneNode(!0),FXv.content.firstChild);ijy=FXv}QNy=ijy;R2S.call(qov,QNy.content);var X$v;_.xD("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");X$v=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.lw=function(){return _.O.apply(this,arguments)||this};
_.Z(_.lw,_.O);_.lw.prototype.created=function(){this.openPopupConfig=_.Ot("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.lw.prototype.onYtNavigate_=function(W){var e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);e&&(this.ytOpenPopupBehavior.openPopup(e),W.stopPropagation(),W.preventDefault())};
_.Ec.Object.defineProperties(_.lw,{template:{configurable:!0,enumerable:!0,get:function(){if(KHe===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;Hjk===void 0&&(Hjk=document.createElement("template"));var b=Hjk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);KHe=W}W=KHe;return W}}});
_.lw.prototype.onYtNavigate_=_.lw.prototype.onYtNavigate_;_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],_.lw.prototype,"ytOpenPopupBehavior",void 0);_.P([_.y(_.hJr.YtButtonBehavior),_.Y("design:type",Object)],_.lw.prototype,"ytButtonBehavior",void 0);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.lw.prototype,"onYtNavigate_",null);
_.P([_.gz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:X$v})],_.lw);var Imo;var amB=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live"),Zz=function(){var W=_.O.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(e){_.q2(W.hostElement,"yt-service-request-sent-button-renderer",e)};
return W};
_.Z(Zz,_.O);_.r=Zz.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.r.onClick=function(W){var e,t=this.disabled||((e=this.data)==null?void 0:e.isDisabled);e=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");t&&e&&W.stopPropagation()};
_.r.computeIcon=function(){var W,e,t=(W=this.data)==null?void 0:(e=W.icon)==null?void 0:e.iconType;if(t)return _.ao(t)};
_.r.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.r.handleUpdateButtonAction=function(W){W=_.l(W,OY8);var e=_.l(W==null?void 0:W.updatedButton,_.Md);if(this.data&&W&&e){var t=this.data;t.targetId&&W.targetId&&t.targetId===W.targetId&&(this.data=e)}};
_.Ec.Object.defineProperties(Zz.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var e=dys({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.q2(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.q2(W.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});e.alignByText=this.alignByText;return e}}}});
_.Ec.Object.defineProperties(Zz,{template:{configurable:!0,enumerable:!0,get:function(){if(Imo===void 0){var W=document.createElement("template");_.p(W,'\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>');Imo=W}W=Imo;return W}}});
Zz.prototype.onClick=Zz.prototype.onClick;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Zz.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"isPressed",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"forceIconButton",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"forceIconOnly",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"forceModernIconButton",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"skipCommandHandling",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"alignByText",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"buttonTooltipPosition",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"fitToVisibleBounds",void 0);_.P([_.J({computed:"computeTooltip(data)"}),_.Y("design:type",Object)],Zz.prototype,"tooltip",void 0);_.P([_.J(),_.Y("design:type",Object)],Zz.prototype,"overrides",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Zz.prototype,"disabled",void 0);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Zz.prototype,"onClick",null);
_.P([_.T("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zz.prototype,"computedButtonShape",null);_.P([_.gz({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!amB,cssBuildOptOut:!0}),_.gz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!amB,cssBuildOptOut:!0})],Zz);var w$Z;var uPB;var $y=function(){var W=_.O.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.Z($y,_.O);_.r=$y.prototype;_.r.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.r.ready=function(){var W=this.shouldShowPlaceholder_();_.RH(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.r.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.r.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.r.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||cTv};
_.r.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.rd(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.r.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.r.thumbnailChanged_=function(){var W=_.R([this.thumbnail,this.oldThumbnail_]),e=W.next().value;W=W.next().value;this.oldThumbnail_=e;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(e)===W))return;_.S("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(e)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):e&&_.MD("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Uc(this,this.onReload_):_.Uc(this,this.onShow_):this.resetImage_();e&&(this.hostElement.style.opacity=""+e.opacity)}};
_.r.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.r.setSrc_=function(W){W?(_.rz(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.rz(this.hostElement).querySelector("#img").src=W):(_.rz(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.r.resetImage_=function(){blZ(this.hostElement);this.empty_=!0;this.setSrc_(cTv);this.ytRendererBehavior.invalidate(!1)};
_.r.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.sr(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.r.onLoad_=function(){_.rz(this.hostElement).querySelector("#img").src&&_.rz(this.hostElement).querySelector("#img").src!==cTv&&(tYz(this.hostElement),this.notifyOnLoaded&&_.q2(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.r.onError_=function(){var W=this;if(_.S("web_use_cache_for_image_fallback"))XYD(_.rz(this.hostElement).querySelector("#img").src).then(function(e){W.objectURL_=_.Z1(e).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.S("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.r.onPrescanVisible=function(){this.onShow_()};
_.r.onVisible=function(){if(_.S("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.r.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.rz(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.r.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.rz(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.r.shouldShowPlaceholder_=function(){return _.S("kevlar_thumbnail_bg")};
$y.prototype.observePlaceholderColor_=$y.prototype.observePlaceholderColor_;$y.prototype.delayedSrcChanged_=$y.prototype.delayedSrcChanged_;$y.prototype.thumbnailChanged_=$y.prototype.thumbnailChanged_;_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"alt",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$y.prototype,"ariaHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"ariaLabel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"id",void 0);_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],$y.prototype,"ytVisibilityBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",String)],$y.prototype,"delayedSrc",void 0);
_.P([_.J(),_.Y("design:type",Object)],$y.prototype,"thumbnail",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"loaded",void 0);_.P([_.J(),_.Y("design:type",Boolean)],$y.prototype,"notifyOnLoaded",void 0);_.P([_.J(),_.Y("design:type",Number)],$y.prototype,"height",void 0);_.P([_.J(),_.Y("design:type",Number)],$y.prototype,"width",void 0);_.P([_.J({value:function(){return"width"}}),
_.Y("design:type",String)],$y.prototype,"dimension",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"fit",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"fitHeight",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"fitWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"objectFit",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"objectPosition",void 0);_.P([_.J(),_.Y("design:type",String)],$y.prototype,"preferredThumbnail",void 0);_.P([_.J({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Y("design:type",String)],$y.prototype,"alt_",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],$y.prototype,"sharedTooltipText",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],$y.prototype,"ftlEligible",void 0);_.P([_.J({value:void 0}),_.Y("design:type",String)],$y.prototype,"observeHiddenOption",void 0);_.P([_.J({value:"observe_once"}),_.Y("design:type",String)],$y.prototype,"observePrescanOption",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$y.prototype,"roundedContainer",void 0);
_.P([_.BG("thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$y.prototype,"thumbnailChanged_",null);_.P([_.BG("delayedSrc"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$y.prototype,"delayedSrcChanged_",null);_.P([_.ul("thumbnail.placeholderColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$y.prototype,"observePlaceholderColor_",null);
_.P([_.gz({is:"yt-img-shadow",disableElementRegistration:!0})],$y);var cTv=_.MD("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Ro()($y,"yt-img-shadow",function(){if(uPB===void 0){var W=document.createElement("template");_.p(W,'\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">');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;w$Z===void 0&&(w$Z=document.createElement("template"));var b=w$Z;t.call(e,b.content.cloneNode(!0),W.content.firstChild);uPB=W}W=uPB;return W},{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 tWL;_.ky=new _.W_("SCREEN_MANAGER_TOKEN");tWL=new _.W_("LOG_INITIAL_SCREEN_TOKEN");_.fU=_.NN(function(W){function e(RR){return _.l(RR,_.kb)}
function t(){var RR=b().isTogglingDisabled||D()?n():!n();f(RR);K(!1);if(!b().isTogglingDisabled){var uv;(uv=Q)==null||uv(!!RR)}var GS;((GS=q)==null?0:GS())||_.wS(_.ee().resolve(_.ky),b().trackingParams);var k9;if(!RR||!e(b().defaultButtonViewModel)||(k9=q)!=null&&k9()){var CQ;!e(b().toggledButtonViewModel)||((CQ=q)==null?0:CQ())||_.wS(_.ee().resolve(_.ky),e(b().toggledButtonViewModel).trackingParams)}else _.wS(_.ee().resolve(_.ky),e(b().defaultButtonViewModel).trackingParams)}
var b=W.data,m=W.buttonShapeOverrides,q=W.disableExplicitClickLogging,Q=W.onToggle,X=W.style,I=W.useOutlinedIcon,u=W.className,c=function(){var RR,uv;return n()?(RR=W.animatedTextPropsToggled)==null?void 0:RR.call(W):(uv=W.animatedTextPropsDefault)==null?void 0:uv.call(W)},v=_.SC(function(){return c()?Object.assign({},c(),{shouldAnimate:M()}):void 0},void 0,"ZKEa0b"),D=function(){var RR;
return((RR=L())==null?void 0:RR.isToggled)!==void 0},B=_.R(_.ZT(function(){var RR,uv,GS;
return D()?(RR=L())==null?void 0:RR.isToggled:(GS=m==null?void 0:(uv=m())==null?void 0:uv.toggled)!=null?GS:b().isToggled})),k=B.next().value;
B=B.next().value;var n=k,f=B;B=_.R(_.ZT(function(){var RR,uv;return(RR=W.animatedTextPropsToggled)==null?void 0:(uv=RR.call(W))==null?void 0:uv.shouldAnimate}));
k=B.next().value;B=B.next().value;var M=k,K=B;k=_.R(_.up(!1,void 0,"S11hid"));var U=k.next().value,V=k.next().value,L=_.MA(function(RR){var uv;a:{var GS=b().entityKey,k9=b().toggledStateEntitySelectorType;if(k9&&GS)switch(k9){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var CQ;RR=(CQ=_.I1(RR.entities,"sfvAudioItemCurrentlyPlayingEntity",GS))!=null?CQ:void 0;CQ=(uv=RR==null?void 0:RR.sfvAudioItemPlaybackState)!=null?uv:void 0;if(CQ==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){uv={isToggled:!0};
break a}if(CQ){uv={isToggled:!1};break a}break;default:_.JC(new _.o_("Error: entitySelectorType defined but not matched in selector.",RR,k9))}uv=void 0}return uv}),E=function(){return Object.assign({},m==null?void 0:m(),{onToggle:t,
toggleable:!0,toggled:n(),focused:U()})};
return _.w("toggle-button-view-model",{"on:focusin":_.Be(function(){var RR=_.ee().resolve(_.Wi(_.FN));RR&&V(RR.isKeyBoardInUse());return!1}),
"on:focusout":_.Be(function(){V(!1);return!1}),
class:u},_.w(_.G,{cond:function(){return n()?e(b().toggledButtonViewModel):e(b().defaultButtonViewModel)},
then:function(RR){return _.w(_.MV,{data:RR,className:u,style:X,useOutlinedIcon:I,buttonOverrides:E,animatedTextProps:v})}}))},"z");
_.fU.idomCompat={callbacks:{onToggle:!0}};_.mM(_.NN(function(W){return _.w("yt-toggle-button-view-model",{class:function(){var e;return(e=W.scopingClassName)==null?void 0:e.call(W)}},_.w(_.fU,{data:function(){var e;
return(e=W.data)==null?void 0:e.call(W)},
buttonShapeOverrides:function(){var e;return(e=W.overrides)==null?void 0:e.call(W)},
animatedTextPropsDefault:function(){var e;return(e=W.animatedTextPropsDefault)==null?void 0:e.call(W)},
animatedTextPropsToggled:function(){var e;return(e=W.animatedTextPropsToggled)==null?void 0:e.call(W)},
disableExplicitClickLogging:function(){var e;return(e=W.disableExplicitClickLogging)==null?void 0:e.call(W)},
onToggle:function(e){var t;return(t=W.onToggle)==null?void 0:t.call(W,e)},
style:function(){var e;return(e=W.style)==null?void 0:e.call(W)},
useOutlinedIcon:function(){var e;return(e=W.useOutlinedIcon)==null?void 0:e.call(W)},
className:function(){var e;return(e=W.className)==null?void 0:e.call(W)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.Eu,
buttonShapeOverrides:_.Eu,overrides:_.Eu,animatedTextPropsDefault:_.Eu,animatedTextPropsToggled:_.Eu,disableExplicitClickLogging:_.Eu,onToggle:_.bt,style:_.Eu,useOutlinedIcon:_.Eu,className:_.Eu,scopingClassName:_.Eu}});var p7=function(){return _.O.apply(this,arguments)||this};
_.Z(p7,_.O);p7.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.gN("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.SX("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.Ec.Object.defineProperties(p7.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.l(this.data.toggleButton,_.pU),e;if(Number(((e=this.likeCountState)==null?void 0:e.likeCountIfIndifferentNumber)||"0")===0){var t;e=((t=this.data.likeCountPlaceholder)==null?void 0:t.content)||""}else{var b,m,q;e=((b=this.likeCountState)==null?void 0:(m=b.likeCountIfIndifferent)==null?void 0:m.content)||((q=this.data.likeCountPlaceholder)==null?void 0:q.content)||""}var Q,X;t=((Q=this.likeCountState)==null?void 0:(X=
Q.likeCountIfLiked)==null?void 0:X.content)||"1";Q=_.l(W.toggledButtonViewModel,_.kb);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.l(W.defaultButtonViewModel,_.kb),{title:e})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Q,{title:t})}})}}}});
p7.prototype.onTap=p7.prototype.onTap;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],p7.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],p7.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.likeCountEntityKey"],selector:WNG}),_.Y("design:type",Object)],p7.prototype,"likeCountState",void 0);_.P([_.J({selectorArgs:["data.engagementStateKey"],selector:jkD}),_.Y("design:type",Object)],p7.prototype,"engagementState",void 0);_.P([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],p7.prototype,"isLiked",null);
_.P([_.T("data","likeCountState","isLiked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p7.prototype,"toggleButton",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],p7.prototype,"onTap",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],p7);
_.H(p7,"yt-live-chat-like-button-view-model",function(){if(nuD===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;CfD===void 0&&(CfD=document.createElement("template"));var b=CfD;t.call(e,b.content.cloneNode(!0),W.content.firstChild);nuD=W}W=nuD;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var vA8;var GwP;var y2=function(){return _.O.apply(this,arguments)||this};
_.Z(y2,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],y2.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],y2);
_.H(y2,"yt-live-chat-paid-message-footer-renderer",function(){if(GwP===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;vA8===void 0&&(vA8=document.createElement("template"));var b=vA8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);GwP=W}W=GwP;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DPD;var Soe;var Bbb;var oAr,lmP=function(){if(oAr!==void 0)return oAr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Bbb===void 0&&(Bbb=document.createElement("template"));var b=Bbb;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return oAr=W};var j$=function(){return _.O.apply(this,arguments)||this};
_.Z(j$,_.O);j$.prototype.onTap=function(W){W.stopPropagation()};
_.Ec.Object.defineProperties(j$.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.l(this.data.replyButton,_.kb),e,t,b,m,q,Q,X,I=Number(((e=this.replyCountState)==null?void 0:e.replyCountNumber)||"0")===0?(t=this.data)==null?void 0:(b=t.replyCountPlaceholder)==null?void 0:b.content:((m=this.replyCountState)==null?void 0:(q=m.replyCount)==null?void 0:q.content)||((Q=this.data)==null?void 0:(X=Q.replyCountPlaceholder)==null?void 0:X.content)||"",u;return Object.assign({},
W,{title:I,accessibilityText:(u=this.replyCountState)==null?void 0:u.replyButtonAccessibilityText})}}}});
_.Ec.Object.defineProperties(j$,{template:{configurable:!0,enumerable:!0,get:function(){return lmP()}}});
j$.prototype.onTap=j$.prototype.onTap;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],j$.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],j$.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],j$.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.replyCountEntityKey"],selector:function(W,e){return _.I1(W.entities,"replyCountEntity",e)}}),
_.Y("design:type",Object)],j$.prototype,"replyCountState",void 0);_.P([_.T("data","replyCountState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j$.prototype,"buttonViewModel",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],j$.prototype,"onTap",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],j$);
_.H(j$,"yt-live-chat-reply-button-view-model",function(){return lmP()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Z$k;var $PB;var C7=function(){var W=_.O.apply(this,arguments)||this;W.ariaLabel="";return W};
_.Z(C7,_.O);
C7.prototype.dataChanged=function(){for(var W=(0,_.FB)(_.rz(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var e=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(e.polymerController.icon="yt-sys-icons:shield-filled",e.polymerController.defaultToFilled=!0):e.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(e)}else if(this.data.customThumbnail){e=document.createElement("img");
var t=_.LXG(this.data.customThumbnail.thumbnails,16);t?(e.src=t,W.appendChild(e),e.setAttribute("alt",this.hostElement.ariaLabel||"")):_.JC(new _.o_("Could not compute URL for thumbnail",this.data.customThumbnail))}};
C7.prototype.identity=function(W){return W};
C7.prototype.computeType=function(W){return F1(W||void 0)};
C7.prototype.dataChanged=C7.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],C7.prototype,"data",void 0);_.P([_.J({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Y("design:type",Object)],C7.prototype,"ariaLabel",void 0);_.P([_.J({computed:"computeType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],C7.prototype,"type",void 0);
_.P([_.J({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Y("design:type",String)],C7.prototype,"sharedTooltipText",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("live_chat_enable_new_moderator_badge")}}),
_.Y("design:type",Boolean)],C7.prototype,"enableNewModeratorBadge",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C7.prototype,"dataChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],C7);
_.H(C7,"yt-live-chat-author-badge-renderer",function(){if($PB===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Z$k===void 0&&(Z$k=document.createElement("template"));var b=Z$k;t.call(e,b.content.cloneNode(!0),W.content.firstChild);$PB=W}W=$PB;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kwS;var p$P;var n7=function(){return _.O.apply(this,arguments)||this};
_.Z(n7,_.O);_.r=n7.prototype;_.r.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"}}}}};
_.r.computeBadgesInsideChip=function(W){return W?W.filter(function(e){return F1(e.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.r.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(e){e=F1(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"})};
_.r.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(e){e=F1(e.liveChatAuthorBadgeRenderer);return e!=="verified"&&e!=="owner"}):[]};
_.r.computeIsHighlighted=function(W,e){var t=!!Xvc(W,"owner"),b=!!Xvc(W,"verified");W=!!Xvc(W,"moderator");return(t||b&&!W)&&!e};
_.r.computeAuthorType=function(W){return Fov(W)};
_.r.computeAuthorClass=function(W,e){return e?(W?W+" ":"")+"single-line":W};
_.r.onSeedColorChanged=function(){_.S("live_chat_author_name_color_usernames")||_.S("live_chat_seed_color_usernames")||_.S("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):_.S("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
n7.prototype.onSeedColorChanged=n7.prototype.onSeedColorChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],n7.prototype,"authorName",void 0);_.P([_.J(),_.Y("design:type",Array)],n7.prototype,"authorBadges",void 0);
_.P([_.J({computed:"computeAuthorType(authorBadges)"}),_.Y("design:type",String)],n7.prototype,"authorType",void 0);_.P([_.J({computed:"computeAuthorClass(authorType, singleLine)"}),_.Y("design:type",String)],n7.prototype,"authorClass",void 0);_.P([_.J({computed:"computeBadgesInsideChip(authorBadges)"}),_.Y("design:type",Array)],n7.prototype,"badgesInsideChip",void 0);_.P([_.J({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Y("design:type",Array)],n7.prototype,"badgesOutsideChip",void 0);
_.P([_.J({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Y("design:type",Array)],n7.prototype,"badgesBeforeChip",void 0);_.P([_.J({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],n7.prototype,"isHighlighted",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],n7.prototype,"singleLine",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],n7.prototype,"disableHighlighting",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],n7.prototype,"dashboardMoneyFeed",void 0);_.P([_.J({value:_.S("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],n7.prototype,"prependChatBadges",void 0);_.P([_.J(),_.Y("design:type",String)],n7.prototype,"authorNameColor",void 0);_.P([_.vG("#author-name"),_.Y("design:type",HTMLDivElement)],n7.prototype,"username",void 0);
_.P([_.ul("authorNameColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n7.prototype,"onSeedColorChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],n7);
_.H(n7,"yt-live-chat-author-chip",function(){if(p$P===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;kwS===void 0&&(kwS=document.createElement("template"));var b=kwS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);p$P=W}W=p$P;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var yTv;var jN8;var f7=function(){var W=_.O.apply(this,arguments)||this;W.debounceCommand=_.ot(function(e){W.ytComponentBehavior.resolveCommand(e)},1500);
return W};
_.Z(f7,_.O);f7.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",e,t,b=this.isHearted?(e=this.data)==null?void 0:e.unheartCommand:(t=this.data)==null?void 0:t.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.gN("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.Mk(b))&&this.debounceCommand(W)}};
_.Ec.Object.defineProperties(f7.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,e;if(!((W=this.data)==null?0:(e=W.creatorThumbnail)==null?0:e.sources))return{};W={thumbnails:[]};e={};e.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(e);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.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}}});
f7.prototype.onTap=f7.prototype.onTap;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],f7.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],f7.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],f7.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.engagementStateKey"],selector:jkD}),_.Y("design:type",Object)],f7.prototype,"engagementState",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f7.prototype,"thumbnailDetails",null);_.P([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f7.prototype,"isHearted",null);_.P([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f7.prototype,"isEditable",null);
_.P([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f7.prototype,"showCreatorView",null);_.P([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f7.prototype,"showButton",null);_.P([_.T("data","isHearted"),_.Y("design:type",String),_.Y("design:paramtypes",[])],f7.prototype,"label",null);_.P([_.T("data","isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f7.prototype,"heartHoverText",null);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f7.prototype,"onTap",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],f7);
_.H(f7,"yt-live-chat-creator-heart-view-model",function(){if(jN8===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;yTv===void 0&&(yTv=document.createElement("template"));var b=yTv;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jN8=W}W=jN8;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var gq=function(){};
_.Z(gq,F_);gq.prototype.JSC$11051_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:ik("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
gq.prototype.getApiPaths=function(){return[]};
gq.prototype.getExtension=function(){};
gq.prototype.JSC$11051_buildRequest=function(){};var CHb={},nAh=(CHb.GET_DATASYNC_IDS=$Q(gq),CHb);var fmh,gAo,Tbo,ya8,Te,O$o,TrS,xPv,JTh;fmh="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");gAo=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Vp=function(W,e,t,b,m,q,Q,X,I){this.endpointMap=W;this.networkManager=e;this.authService=t;this.responseProcessorMap=b;this.innertubeResponseStore=m;this.contextProcessors=q;this.asyncContextProcessors=Q;this.localInnertubeRouter=X;this.requestSequencer=I;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},nAh,W.signalEndpointMap)};
Tbo=function(W,e,t,b,m,q,Q,X,I){if(_.Vp.instance!==void 0){if(b=_.Vp.instance,W=[W!==b.endpointMap,e!==b.networkManager,t!==b.authService,m!==b.innertubeResponseStore,q!==b.contextProcessors,Q!==b.asyncContextProcessors,X!==b.localInnertubeRouter],W.some(function(u){return u}))throw new _.o_("InnerTubeTransportService is already initialized",W);
}else _.Vp.instance=new _.Vp(W,e,t,b,m,q,Q,X,I)};
_.z2=function(W,e,t){var b=b===void 0?Lno:b;var m=TrS(W,e);return m?new _.c3(function(q,Q){var X,I,u,c,v;return _.F(function(D){switch(D.nextAddress){case 1:return _.a(D,m,2);case 2:X=D.yieldResult;I=X.JSC$11051_getRequest(e,t,b);if(!I){Q(new _.o_("Error: Failed to build request for command.",e));D.jumpTo(0);break}Pw(I.input);c=((u=I.requestShell)==null?void 0:u.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){v=JTh(I.config,c);D.jumpTo(4);break}return _.a(D,xPv(I.config,c),5);case 5:v=
D.yieldResult;case 4:q(O$o(W,I,v)),_.u8(D)}})}):_.jg(new _.o_("Error: No request builder found for command.",e))};
ya8=function(W,e,t,b){var m=m===void 0?Lno:m;var q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E;return _.F(function(RR){switch(RR.nextAddress){case 1:q=bNG(e,W.endpointMap);if(!q)throw new _.o_("Error: No streaming request builder found for command",e);Q=q.JSC$11051_getRequest(e,t,m);if(!Q)throw new _.o_("Failed to build YtRequest for streaming Command",e);if((X=W.localInnertubeRouter)==null||!X.shouldPreferLocalResponse(Q.input,Q.innerTubeRequest)){RR.jumpTo(2);break}return _.a(RR,W.localInnertubeRouter.localInnertubeResponse(Q.input,
Q.innerTubeRequest),3);case 3:return I=RR.yieldResult,u={},I.playerResponse&&(Te(W,I.playerResponse,Q),u.player=I.playerResponse,(c=b)==null||c(u,I)),I.watchNextResponse&&(Te(W,I.watchNextResponse,Q),u.content=I.watchNextResponse,(v=b)==null||v(u,I)),RR.return(u);case 2:B=((D=Q.requestShell)==null?void 0:D.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){k=JTh(Q.config,B);RR.jumpTo(4);break}return _.a(RR,xPv(Q.config,B),5);case 5:k=RR.yieldResult;case 4:return M=(f=(n=Q.requestShell)==null?
void 0:n.headers)!=null?f:{},Q.requestShell=Object.assign({},Q.requestShell,{headers:Object.assign({},M,k)}),K=Object.assign({},Q.requestShell),U=JSON.stringify(Q.innerTubeRequest),Q.requestShell.method==="POST"&&(K=Object.assign({},K,{body:U})),V=function(uv,GS){Te(W,GS.playerResponse||GS.watchNextResponse||GS.reelItemWatchResponse||GS.reelWatchSequenceResponse,Q);b==null||b(uv,GS)},L={},_.a(RR,MMB(W.networkManager,Q.input,K,V),6);
case 6:return L=RR.yieldResult,((E=Q.config)==null?0:E.responseTick)&&_.Tv(Q.config.responseTick),RR.return(L)}})};
_.x0=function(W,e,t,b,m){m=m===void 0?{authStrategy:{identity:Lno}}:m;var q=q===void 0?!0:q;var Q=function(){};
Q=a5G(X_2(t));e.context||(e.context=_.SPc(b,q));return new _.c3(function(X){var I,u,c,v,D;return _.F(function(B){if(B.nextAddress==1)return I=NuR(t),u=_.V5(I),W.authService.syncHeaders?(c=JTh(m,u),B.jumpTo(2)):_.a(B,xPv(m,u),3);B.nextAddress!=2&&(c=B.yieldResult);v=d3K(NuR(t));D={input:v,requestShell:ik(v),innerTubeRequest:e,config:m};X(O$o(W,D,c,Q));_.u8(B)})})};
Te=function(W,e,t){var b;if(e&&!(e==null?0:(b=e.sequenceMetaData)==null?0:b.skipProcessing)&&W.responseProcessorMap){b=_.R(fmh);for(var m=b.next();!m.done;m=b.next())m=m.value,W.responseProcessorMap[m]&&W.responseProcessorMap[m].handleResponse(e,t)}};
O$o=function(W,e,t,b){b=b===void 0?function(){}:b;
var m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv,GS,k9,CQ,fQ,iv,hz,ES,Wu,pr,ay,PU,cu,LQ,sB,z1,FD,DD,nr,UB;return _.F(function(ZD){switch(ZD.nextAddress){case 1:Q=(m=e.config)==null?void 0:(q=m.storeStrategy)==null?void 0:q.storeKey;if(!(Q&&W.innertubeResponseStore&&W.innertubeResponseStore.has(Q))||((X=e.config)==null?0:(I=X.storeStrategy)==null?0:I.disableCache)){ZD.jumpTo(2);break}return _.a(ZD,W.innertubeResponseStore.get(Q),3);case 3:if((u=ZD.yieldResult)&&!u.isExpired())return ZD.return(Promise.resolve(_.I4(u)));
case 2:if(!((c=e)==null?0:(v=c.innerTubeRequest)==null?0:v.context)){ZD.jumpTo(4);break}D=e.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){ZD.jumpTo(5);break}B=[];k=_.R(W.asyncContextProcessors);for(n=k.next();!n.done;n=k.next())f=n.value,M=f.processContext(e),M.wrappedPromise_&&B.push(M.wrappedPromise_);if(!(B.length>0)){ZD.jumpTo(5);break}return _.a(ZD,Promise.all(B),5);case 5:K=_.R(W.contextProcessors||[]),U=K.next();case 8:if(U.done){ZD.jumpTo(4);break}V=
U.value;return _.a(ZD,V.processContext(D),9);case 9:U=K.next();ZD.jumpTo(8);break;case 4:if((L=W.localInnertubeRouter)==null||!L.shouldPreferLocalResponse(e.input,e.innerTubeRequest)){ZD.jumpTo(12);break}return _.a(ZD,W.localInnertubeRouter.localInnertubeResponse(e.input,e.innerTubeRequest),13);case 13:return E=ZD.yieldResult,Te(W,E,e),ZD.return(E);case 12:return(GS=(uv=e.config)==null?void 0:uv.requestKey)&&W.inflightRequests.has(GS)?RR=W.inflightRequests.get(GS):(k9=JSON.stringify(e.innerTubeRequest),
iv=(fQ=(CQ=e.requestShell)==null?void 0:CQ.headers)!=null?fQ:{},e.requestShell=Object.assign({},e.requestShell,{headers:Object.assign({},iv,t)}),hz=Object.assign({},e.requestShell),e.requestShell.method==="POST"&&(hz=Object.assign({},hz,{body:k9})),((ES=e.config)==null?0:ES.requestTick)&&_.Tv(e.config.requestTick),Wu=function(){return W.networkManager.fetch(e.input,hz,e.config)},RR=W.requestSequencer?sNU(W.requestSequencer,e,Wu):Wu(),GS&&W.inflightRequests.set(GS,RR)),_.a(ZD,RR,14);
case 14:(pr=ZD.yieldResult)&&_.S("web_streaming_player")&&Array.isArray(pr)&&(pr=pr[0].playerResponse);if(pr&&"error"in pr&&((ay=pr)==null?0:(PU=ay.error)==null?0:PU.details))for(cu=pr.error.details,LQ=_.R(cu),sB=LQ.next();!sB.done;sB=LQ.next())z1=sB.value,(FD=z1["@type"])&&gAo.indexOf(FD)>-1&&(delete z1["@type"],pr=z1);GS&&W.inflightRequests.has(GS)&&W.inflightRequests.delete(GS);((DD=e.config)==null?0:DD.responseTick)&&_.Tv(e.config.responseTick);if(pr||(nr=W.localInnertubeRouter)==null||!nr.canProvideFallbackResponse(e.input,
e.innerTubeRequest)){ZD.jumpTo(15);break}return _.a(ZD,W.localInnertubeRouter.localFallbackInnertubeResponse(e.input,e.innerTubeRequest),16);case 16:pr=ZD.yieldResult;case 15:return Te(W,pr,e),((UB=e.config)==null?0:UB.processorTick)&&_.Tv(e.config.processorTick),b(),ZD.return(pr||void 0)}})};
_.YD=function(W,e){return t02(e,W.endpointMap)};
TrS=function(W,e){W=m4Z(e,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
xPv=function(W,e){var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){m=(t=W)==null?void 0:(b=t.authStrategy)==null?void 0:b.sessionIndex;var X=_.aT($2z({sessionIndex:m}));return _.a(Q,X,2)}q=Q.yieldResult;return Q.return(Promise.resolve(Object.assign({},rYG(e),q)))})};
JTh=function(W,e){var t;W=W==null?void 0:(t=W.authStrategy)==null?void 0:t.sessionIndex;t=$2z({sessionIndex:W});return Object.assign({},rYG(e),t)};var h2e,H$b,KXU,PH8,VMh,i$e,UPU,LXB,OP,EAy,ATU,z2N,NbZ;h2e=0;H$b=/tone[1-5]/;KXU=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");PH8="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
VMh=Number.MAX_SAFE_INTEGER;i$e=RegExp("\ufe0f","g");_.JH=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.Yoy(this,W)};
_.Yoy=function(W,e){try{_.a_(e,{context:W,onSuccess:function(b,m){Array.isArray(m)?W.load(m):(b=new _.o_("Emoji manager JSON response was not an array!",{response:m}),_.gQ(b))},
onError:function(b){b=new _.o_("Failed to retrieve emoji manager initial JSON data!",{url:e,statusCode:_.R_(b).toString()});_.JC(b)}})}catch(b){var t=new _.o_("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:e});
_.JC(t)}};
_.JH.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.JH.prototype.load=function(W,e){if(e)if(W.length)W=W.concat(e.emojis);else{this.emojis=e.emojis;this.emojiMap=e.emojiMap;this.emojiShortcutMap=e.emojiShortcutMap;this.emojiShortcutCharMap=z2N(e);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=e.emojiRegex;return}this.emojis=[].concat(_.kP(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(e=0;e<this.emojis.length;e++){var t=this.emojis[e];if(t.emojiId){this.emojiMap[t.emojiId]=t;this.emojiMap[t.emojiId].index=
e;for(var b=0;t.shortcuts&&b<t.shortcuts.length;b++)this.emojiShortcutMap[t.shortcuts[b].toLocaleLowerCase()]=t;W[e]=t.isCustomEmoji&&t.shortcuts?t.shortcuts[0]:t.emojiId}}W.sort(function(m,q){return q.length-m.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(m){this.emojiRegex=/$./}else this.emojiRegex=/$./};
UPU=function(W,e){e=_.R(e);for(var t=e.next();!t.done;t=e.next()){var b=t.value;if(b.emojiId&&W.emojiMap[b.emojiId]){t=Object.assign({},W.emojiMap[b.emojiId],b);W.emojiMap[b.emojiId]=t;var m=void 0;t.index&&((m=W.emojis[t.index])==null?void 0:m.emojiId)===b.emojiId&&(W.emojis[t.index]=t);b=void 0;if((b=t.shortcuts)==null?0:b.length)for(W.hasInitializedShortcutCharMap=!1,b=_.R(t.shortcuts),m=b.next();!m.done;m=b.next())W.emojiShortcutMap[m.value.toLocaleLowerCase()]=t}}};
LXB=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,_.p5.getInstance(),2);if(b.nextAddress!=3)return(e=b.yieldResult)?_.a(b,e.get("ytlc-emoji-pref"),3):b.return();(t=b.yieldResult)&&UPU(W,Object.keys(t).map(function(m){return{emojiId:m,stickyPrefId:t[m]}}).filter(function(m){return!!m.emojiId&&!!m.stickyPrefId}));
_.u8(b)})};
_.xy=function(W,e,t){return(W=W.emojiMap[e])&&(!W.isLocked||t!==void 0&&t)?W:void 0};
OP=function(W,e,t){t=_.xy(W,e,t===void 0?!1:t);var b=e.match("\u200d");t&&W.skinTone!==0&&(W=(b==null?void 0:b.length)===1?_.xy(W,e.replace("\u200d",KXU[W.skinTone]+"\u200d")):_.xy(W,e+KXU[W.skinTone]))&&(t=W);return t};
EAy=function(W,e){var t=W.emojiMap[e];return(t==null?0:t.stickyPrefId)?W.emojiMap[t.stickyPrefId]:OP(W,e)};
_.l0=function(W,e){W=W.emojiShortcutMap[e.toLocaleLowerCase()];return!W||W.isLocked?null:W};
ATU=function(W,e,t){return z2N(W,t===void 0?!1:t)[e]||{}};
z2N=function(W,e){e=e===void 0?!1:e;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var t=0;t<W.emojis.length;t++){var b=W.emojis[t];if(!(b.isLocked||e&&b.isCustomEmoji&&b.emojiId&&!W.pickerCustomEmojiIds.includes(b.emojiId)))for(var m=0;b.shortcuts&&m<b.shortcuts.length;m++){var q=b.shortcuts[m];q.startsWith(":_")&&b.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][q]=b);if(!(q.length<3||
!b.isCustomEmoji&&H$b.test(q))){var Q=q.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[Q]==null&&(W.emojiShortcutCharMap[Q]=Object.create(null));W.emojiShortcutCharMap[Q][q]=b}}}}return W.emojiShortcutCharMap};
_.JH.prototype.createEmoji=function(W,e){e=e===void 0?!0:e;var t=document.createElement("img");W.isCustomEmoji||t.classList.add("small-emoji");t.classList.add("emoji");t.classList.add("yt-formatted-string");t.src=W.image?_.rd(W.image.thumbnails,this.emojiSize)||"":"";var b=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(b=W.image.accessibility.accessibilityData.label);t.alt=b?b:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(t.dataset.emojiId=
W.emojiId);_.aP&&(t.setAttribute("contenteditable","false"),t.setAttribute("unselectable","on"));e&&(W.shortcuts&&W.shortcuts.length&&t.setAttribute("shared-tooltip-text",W.shortcuts[0]),t.id="emoji-"+h2e++);return t};
_.JH.prototype.createDocumentFragment=function(W,e,t,b){e=e===void 0?!1:e;t=t===void 0?!0:t;b=b===void 0?!1:b;W=W.replace(i$e,"");for(var m=document.createDocumentFragment(),q=0,Q,X=0;(Q=this.emojiRegex.exec(W))!=null;){var I=_.xy(this,Q[0])||_.l0(this,Q[0]);!I||I.isCustomEmoji&&!e||(I=this.createEmoji(I,t),q!==Q.index&&m.appendChild(document.createTextNode(W.substring(q,Q.index))),m.appendChild(I),q=Q.index+Q[0].length,X++)}if(!b||X)return m.appendChild(document.createTextNode(W.substr(q))),m};
NbZ=function(W,e,t){var b,m,q,Q,X,I,u,c,v;return _.F(function(D){if(D.nextAddress==1){if(!e.emojiId||!W.emojiMap[e.emojiId])return D.return();b=Object.assign({},W.emojiMap[e.emojiId],{stickyPrefId:t});W.emojiMap[e.emojiId]=b;e.index&&((m=W.emojis[e.index])==null?void 0:m.emojiId)===e.emojiId&&(W.emojis[e.index]=b);if((q=e.shortcuts)==null?0:q.length)for(W.hasInitializedShortcutCharMap=!1,Q=_.R(e.shortcuts),X=Q.next();!X.done;X=Q.next())I=X.value,W.emojiShortcutMap[I.toLocaleLowerCase()]=b;return _.a(D,
_.p5.getInstance(),2)}if(D.nextAddress!=4)return(u=D.yieldResult)?_.a(D,u.get("ytlc-emoji-pref"),4):D.jumpTo(0);v=(c=D.yieldResult)!=null?c:{};v[e.emojiId]=t;return _.a(D,u.set("ytlc-emoji-pref",v,VMh),0)})};
_.MM=new _.JH;var eaP;_.sP={};
eaP={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.S("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:_.S("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 iX(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 W=_.rz(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.rz(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.aH(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.aH(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.aH(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.aH(this,this.onMenuButtonBlur_)))},
identity:_.sL,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return W},
computeMenuVisible_:function(W,e){return W||e},
computeHasInlineActionButtons:function(W){if(!W)return!1;var e,t;return!((e=W.inlineActionButtons)==null||!e.length)||!((t=W.additionalInlineActionButtons)==null||!t.length)},
createDocumentFragmentFromString:function(W){var e=_.MM.createDocumentFragment.bind(_.MM),t;if((t=this.participantsManager)==null||!t.viewerRegex)return e(W);t=document.createDocumentFragment();for(var b=0,m;(m=this.participantsManager.viewerRegex.exec(W))!=null;){if(m.index>0){var q=":"+m[0]+":";if((_.xy(_.MM,q)||_.l0(_.MM,q))&&W.indexOf(q)===m.index-1)continue}t.appendChild(e(W.substring(b,m.index)));b=document.createElement("span");b.appendChild(e(m[0]));b.classList.add("mention");t.appendChild(b);
b=m.index+m[0].length}t.appendChild(e(W.substring(b)));return t},
createDocumentFragment:function(W){var e=document.createDocumentFragment();if(W.simpleText)return e.appendChild(this.createDocumentFragmentFromString(W.simpleText)),e;if(!W.runs)return e;for(var t=0;t<W.runs.length;t++){var b=W.runs[t];if(b.emoji)e.appendChild(_.MM.createEmoji(b.emoji));else if(b.text)if(b.navigationEndpoint){var m=document.createElement("a");m.classList.add("yt-simple-endpoint");Vgs(m,b.navigationEndpoint);_.rz(m).appendChild(this.createDocumentFragmentFromString(b.text));e.appendChild(m)}else e.appendChild(this.createDocumentFragmentFromString(b.text))}return e},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(e){return(e=e instanceof Element?e:null)?e.tagName&&(e.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||e.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.S("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return Y22(W)},
markAsDeleted:function(W,e){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",e)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var e=_.ee().resolve(_.Ti),t=this.data.contextMenuEndpoint,b;(b=_.Vp.instance)&&_.YD(b,t)?(e=dPh(e,t),b=_.x0(b,{},e)):b=_.W8B(e,t);b.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var e=_.Vp.instance;e&&_.YD(e,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.RT(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var e=W;_.gQ(new _.o_("Error encountered calling GetLiveChatItemContextMenu",e))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.q2(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.q2(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.sP.YtLiveChatItemBehavior=[eaP,_.P1.YtComponentBehavior,_.v4.YtOpenPopupBehavior];_.hH=function(){};var tYk;var blU;var m6S;var r6S;var H4=function(){var W=_.O.apply(this,arguments)||this;W.active=!1;W.identity=_.sL;return W};
_.Z(H4,_.O);H4.prototype.dataChanged=function(){this.active=!1};
H4.prototype.onClick=function(){_.q2(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
H4.prototype.dataChanged=H4.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],H4.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],H4.prototype,"active",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H4.prototype,"dataChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],H4);
_.H(H4,"yt-live-chat-text-input-field-suggestion",function(){if(r6S===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;m6S===void 0&&(m6S=document.createElement("template"));var b=m6S;t.call(e,b.content.cloneNode(!0),W.content.firstChild);r6S=W}W=r6S;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});_.K7=function(W,e,t){return CustomEvent.call(this,W,{detail:{value:e,path:t}})||this};
_.Z(_.K7,CustomEvent);_.P4=function(){var W=_.O.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.Z(_.P4,_.O);_.r=_.P4.prototype;_.r.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.r.addParticipant=function(W){var e=_.o9K(this.participants,W,function(b,m){b=b[Object.keys(b)[0]];m=m[Object.keys(m)[0]];b=String(_.Ub(b.authorName)).toLowerCase();m=String(_.Ub(m.authorName)).toLowerCase();return b<m?-1:b==m?0:1}.bind(this));
if(e>=0){var t=this.participants[e];t[Object.keys(t)[0]].timestampUsec&&this.splice("participants",e,1,W)}else this.splice("participants",-e-1,0,W);W=W[Object.keys(W)[0]];e=_.Ub(W.authorName).toLocaleLowerCase();t=e.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(t)||(this.allParticipantsCharMap_[t]={});this.allParticipantsCharMap_[t][e]=W};
_.r.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.r.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var e=W.indexOf("@")===0&&_.S("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(e+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.r.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&Seg(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.hc(function(){W.checkForStaleParticipants_()},3E4))};
_.r.onChatMessage_=function(W){var e=this,t=Date.now()*1E3;W.forEach(function(b){if(b=_.l(b,IYk)){b=b.item;var m=Object.keys(b)[0];e.SUPPORTED_ITEM_TYPES_.indexOf(m)!=-1&&b[m].timestampUsec>=t-e.PARTICIPANT_TIME_USEC_&&e.addParticipant(b)}},this);
this.checkForStaleParticipants_()};
_.r.trimOldParticipants_=function(){for(var W=Date.now()*1E3,e=this.participants.length-1;e>=0;e--){var t=this.participants[e];t=t[Object.keys(t)[0]];t.timestampUsec&&t.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",e,1)}};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],_.P4.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],_.P4.prototype,"viewerName",void 0);_.P([_.J({computed:"computeViewerRegex_(viewerName)"}),_.Y("design:type",Object)],_.P4.prototype,"viewerRegex",void 0);_.P([_.J({value:function(){return[]},
notify:!0}),_.Y("design:type",Array)],_.P4.prototype,"participants",void 0);_.P([_.gz({is:"yt-live-chat-participants-manager",noInjection:!0})],_.P4);var qFo=/.*([:@#].*?)$/,V2=/\u00a0/g,Rae=String.fromCharCode(160),QxN={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"},iw=function(){var W=_.O.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.MM;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$12049_lastSuggestionRange=null;return W};
_.Z(iw,_.O);_.r=iw.prototype;_.r.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.r.attached=function(){_.w2&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.r.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.r.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,e={},t;for(t in QxN)this.data&&this.data.hasOwnProperty(t)&&(e[QxN[t]]=this.colorFromDecimal(this.data[t]),W=!0);W&&_.XB(this.hostElement,e)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.r.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.r.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.r.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.r.preventResize=function(W){W.returnValue=!1};
_.r.onInputChange=function(){var W=this.characterCount,e=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&e&&e.remove();if(!e&&this.characterCount>this.maxCharacterLimit){var t=window.getSelection();if(t){var b=t.getRangeAt(0);t.removeAllRanges();t.addRange(b)}}if(t=this.getCurrentRange())b=this.calculateTextBeforeRange(t),this.completeEmojisInRange(t,b,!0)||this.updateSuggestions(t,b);b=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(b);
_.q2(this.hostElement,"yt-live-chat-message-input-change",b);e&&this.characterCount===0&&e.remove();t&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):t&&!t.collapsed&&t.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.r.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.r.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.r.mergeOverflowText=function(W){if(W){var e=document.createRange();e.selectNodeContents(W);e=e.extractContents();this.input.insertBefore(e,W)}};
_.r.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var e=_.rz(this.hostElement).querySelector("#overflow-text"),t=document.createRange();e&&e.previousSibling?e.previousSibling instanceof HTMLImageElement?t.selectNode(e.previousSibling):t.selectNodeContents(e.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?t.selectNode(this.input.lastChild):t.selectNodeContents(this.input.lastChild));t.collapse(!1);return t.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.r.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var e=_.rz(this.hostElement).querySelector("#overflow-text"),t=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(e);for(var b,m=0,q=0,Q,X=this.input.childNodes,I=0;I<X.length;I++){var u=X[I];u instanceof Text?(q+=u.textContent.length,q>this.maxCharacterLimit&&(b=u,m=this.maxCharacterLimit+u.textContent.length-q)):u instanceof HTMLImageElement&&
(b=void 0,q=u.dataset.emojiId&&((b=this.data)==null?0:b.emojiCharacterCount)?q+this.data.emojiCharacterCount:q+u.alt.length,b=this.input,m=I);if(q>this.maxCharacterLimit&&b){Q=document.createRange();Q.collapse(!1);e?(q=this.input.lastChild.previousSibling,q instanceof Text?Q.setEnd(this.input.lastChild.previousSibling,q.textContent.length):q instanceof HTMLImageElement&&Q.setEnd(this.input,this.input.childNodes.length-1)):Q.selectNodeContents(this.input);Q.setStart(b,m);break}}Q&&(b=!1,t&&(W=Q.isPointInRange(t.startContainer,
t.startOffset-1)),e||(e=document.createElement("span"),e.id="overflow-text",e.textContent="",e.setAttribute("contenteditable","true"),_.rz(_.rz(this.hostElement).querySelector("#input")).appendChild(e),b=!0),e&&(t=Q.extractContents(),e.insertBefore(t,e.firstChild),W&&e.firstChild&&(t=document.createRange(),b?t.setStartAfter(e.lastChild):t.setStartAfter(e.firstChild),t.collapse(!0),e=window.getSelection(),e.removeAllRanges(),e.addRange(t))))}};
_.r.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var e=this.input.childNodes[W];if(e.nodeName==="SPAN"){var t=document.createRange();t.selectNodeContents(e);t=t.extractContents();this.input.insertBefore(t,e);e.remove()}}this.handleOverflowText(!0)};
_.r.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.r.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var e=W.commonAncestorContainer,t=!1,b=_.rz(this.hostElement).querySelector("#input");e;){if(e===b){t=!0;break}e=e.parentNode}t||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.r.getRangeAtEnd=function(){var W=document.createRange(),e=_.rz(this.hostElement).querySelector("#input").lastChild;!e||e.nodeName!=="#text"&&e.nodeName!=="SPAN"?(W.selectNodeContents(_.rz(this.hostElement).querySelector("#input")),W.collapse(!1)):e.nodeName==="#text"?W.setStart(e,e.textContent.length):W.setStart(e,e.childNodes.length);return W};
_.r.getChatParticipantSuggestions=function(W,e,t,b){var m=_.S("live_chat_enable_handles_web_text_input_update");if(e)for(var q in e)if(q.indexOf(W)===0||m&&q.indexOf(t+W)===0){var Q=e[q],X=_.Ub(Q.authorName);b.push({suggestion:{author:!0,authorType:t,image:Q.authorPhoto,alt:X,text:X}});if(b.length>=64)break}};
_.r.getSuggestions=function(W){var e=[],t=W.substring(0,3),b=ATU(_.MM,t,!0);if(b)for(var m in b)if(m.toLocaleLowerCase().indexOf(W)===0){var q=b[m];if(q&&q.emojiId){if(q=EAy(_.MM,q.emojiId)){var Q=void 0,X=void 0,I=void 0,u=void 0,c=((Q=q.image)==null?0:(X=Q.accessibility)==null?0:(I=X.accessibilityData)==null?0:I.label)||q.isCustomEmoji?(u=q.shortcuts)==null?void 0:u[0]:q.emojiId;e.push({suggestion:{emoji:!0,image:q.image,alt:c,text:m,textToInsertWhenSelected:q.isCustomEmoji?m:c}})}if(e.length>=
64)break}}if(!this.participantsManager)return null;if(t.indexOf("@")===0||t.indexOf("#")===0)b=t.charAt(0),W=W.substring(1),m=_.S("live_chat_enable_handles_web_text_input_update"),t.indexOf("@")===0&&m&&(m=this.participantsManager.getAuthorsFromPrefix(t.substring(0,2)),this.getChatParticipantSuggestions(W,m,b,e)),t=t.substring(1),t=this.participantsManager.getAuthorsFromPrefix(t),this.getChatParticipantSuggestions(W,t,b,e);return e?e.sort(function(v,D){return D.suggestion.text<v.suggestion.text?-1:
D.suggestion.text===v.suggestion.text?0:1}):null};
_.r.insertSuggestion=function(W){var e=_.S("live_chat_enable_handles_web_text_input_update"),t=W.authorType;e=W.text.indexOf(t)===0&&e?W.text+Rae:t+W.text+Rae;W.emoji?this.insertTextAtRange(this.JSC$12049_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$12049_lastSuggestionRange,e)};
_.r.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.r.offsetStartOfRangeBy=function(W,e){for(;e>0;)if(W.startOffset-e>=0){W.setStart(W.startContainer,W.startOffset-e);break}else{e=W.startContainer instanceof HTMLImageElement?e-W.startContainer.alt.length:e-W.startOffset;var t=W.startContainer.previousSibling;if(!t){W.setStart(W.startContainer,0);break}if(_.S("live_chat_require_space_for_autocomplete_emoji")){var b=void 0,m=void 0;W.setStart(t,((b=t)==null?void 0:(m=b.textContent)==null?void 0:m.length)||0)}else W.setStart(t,t.childNodes.length||
0)}};
_.r.updateSuggestions=function(W,e){var t=this;this.JSC$12049_lastSuggestionRange&&(this.JSC$12049_lastSuggestionRange.detach(),this.JSC$12049_lastSuggestionRange=null);if((e=qFo.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2&&(this.offsetStartOfRangeBy(W,e.length),this.JSC$12049_lastSuggestionRange=W,(W=this.getSuggestions(e))&&W.length))){this.suggestions=W;_.Uc(this,function(){_.rz(t.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.r.completeEmojisInRange=function(W,e,t){var b=e.replace(/[\s\xa0]+$/,"");e=e.length-b.length;b=b.split(" ");b=b[b.length-1].trim().toLocaleLowerCase();var m=b.lastIndexOf(":");if(t&&!e&&m!==b.length-1)return!1;m!==-1&&(t=b.lastIndexOf(":",m-1),t!==-1&&(b=b.substring(t)));if((t=_.l0(_.MM,b))&&t.emojiId){t=EAy(_.MM,t.emojiId)||null;this.offsetStartOfRangeBy(W,b.length+e);var q,Q,X,I;b=(((q=t)==null?0:q.isCustomEmoji)?(Q=t)==null?void 0:(X=Q.shortcuts)==null?void 0:X[0]:(I=t)==null?void 0:I.emojiId)||
"";e&&(b+=Rae);this.insertTextAtRange(W,b);this.dropdown.opened=!1;return!0}return!1};
_.r.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.r.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.q2(this.hostElement,"yt-live-chat-send-message"))};
_.r.completeEmojis=function(){var W=document.createRange(),e=_.rz(this.hostElement).querySelector("#input").lastChild;e?W.setStart(e,e.childNodes.length):(W.selectNodeContents(_.rz(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.S("live_chat_require_space_for_autocomplete_emoji"))};
_.r.maybePreventTextFormatting=function(W){!_.G9||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.r.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.r.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.aP)this.onInputChange()};
_.r.changeSuggestionIndex=function(W){if(this.dropdown.opened){var e=_.rz(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<e.children.length&&(e.children[this.suggestionIndex].active=!1);var t=this.suggestions.length;this.suggestionIndex=(W+t)%t;W=e.children[this.suggestionIndex];W.active=!0;e.scrollTop=W.offsetTop}};
_.r.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.r.onFocus=function(){this._setFocused(!0)};
_.r.onBlur=function(){this._setFocused(!1)};
_.r.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.r.insertTextAtRange=function(W,e){if(W&&(W.collapsed||W.deleteContents(),e=_.MM.createDocumentFragment(e,!0,!1))){for(var t=_.R((e==null?void 0:e.childNodes)||[]),b=t.next();!b.done;b=t.next()){b=b.value;var m=void 0,q=void 0,Q=void 0,X=void 0,I=void 0;(Q=(m=window)==null?void 0:(q=m.ShadyCSS)==null?void 0:q.ScopingShim)==null||(I=(X=Q).scopeNode)==null||I.call(X,b,this.hostElement.localName)}t=e.lastChild;W.insertNode(e);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(t);
W.collapse(!1);if(e=window.getSelection())e.removeAllRanges(),e.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.q2(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.r.setLiveChatRichMessageInput=function(W){_.rz(_.rz(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var e=0;e<W.textSegments.length;e++){var t=W.textSegments[e];t.text?_.rz(_.rz(this.hostElement).querySelector("#input")).appendChild(_.MM.createDocumentFragment(t.text,!0,!1)):t.emojiId&&(t=_.xy(_.MM,t.emojiId))&&_.rz(_.rz(this.hostElement).querySelector("#input")).appendChild(_.MM.createEmoji(t,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.r.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.r.calculateTextBeforeRange=function(W){var e="",t=W.startContainer;if(t&&t instanceof Text){var b;e=((b=t.textContent)==null?void 0:b.substring(0,W.startOffset))||"";t=t.previousSibling}for(;t&&t instanceof Text;)e=t.textContent+e,t=t.previousSibling;return e.replace(V2," ")};
_.r.calculateLiveChatRichMessageInput=function(){for(var W=[],e="",t=_.rz(_.rz(this.hostElement).querySelector("#input")).childNodes,b=0;b<t.length;b++){var m=t[b];m instanceof Text?e+=m.textContent:m instanceof HTMLImageElement&&(m.dataset.emojiId?(e&&(W.push({text:e.replace(V2," ")}),e=""),W.push({emojiId:m.dataset.emojiId})):e+=m.alt)}e&&W.push({text:e.replace(V2," ")});if(t=_.rz(this.hostElement).querySelector("#overflow-text")){e="";t=t.childNodes;for(b=0;b<t.length;b++)m=t[b],m instanceof Text?
e+=m.textContent:m instanceof HTMLImageElement&&(m.dataset.emojiId?(e&&(W.push({text:e.replace(V2," ")}),e=""),W.push({emojiId:m.dataset.emojiId})):e+=m.alt);e&&W.push({text:e.replace(V2," ")})}return{textSegments:W}};
_.r.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var e=0,t=0;t<W.textSegments.length;t++){var b=W.textSegments[t];if(b.text)e+=b.text.length;else if(b.emojiId){var m=void 0;if((m=this.data)==null?0:m.emojiCharacterCount)e+=this.data.emojiCharacterCount;else{var q=m=void 0,Q=void 0;e+=((q=_.xy(_.MM,(m=b)==null?void 0:m.emojiId))==null?void 0:(Q=q.shortcuts)==null?void 0:Q[0].length)||0}}}return e};
_.r.characterCountChanged=function(){_.q2(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.r.focusedChanged=function(){this.hostElement.dispatchEvent(new _.K7("focused-changed",this.focused))};
_.r.focus=function(){this.setFocus(!1)};
_.r.focusAtEnd=function(){this.setFocus(!0)};
_.r.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.rz(this.hostElement).querySelector("#input").focus();var e=window.getSelection();e&&(e.removeAllRanges(),e.addRange(W))};
_.r.insertEmoji=function(W){var e,t=((W==null?0:W.isCustomEmoji)?(e=W.shortcuts)==null?void 0:e[0]:W==null?void 0:W.emojiId)||"";this.insertText(t)};
_.r.computeText=function(W){if(!W||!W.textSegments)return"";for(var e="",t=0;t<W.textSegments.length;t++){var b=W.textSegments[t];if(b.text)e+=b.text;else if(b.emojiId){var m=void 0,q=void 0,Q=void 0;e+=((q=_.xy(_.MM,(m=b)==null?void 0:m.emojiId))==null?void 0:(Q=q.shortcuts)==null?void 0:Q[0])||""}}return e};
_.r.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Ec.Object.defineProperties(iw.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
iw.prototype.focusedChanged=iw.prototype.focusedChanged;iw.prototype.characterCountChanged=iw.prototype.characterCountChanged;iw.prototype.onSuggestion=iw.prototype.onSuggestion;iw.prototype.onMessageSet=iw.prototype.onMessageSet;iw.prototype.dataChanged=iw.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],iw.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iw.prototype,"disabled",void 0);_.P([_.T("disabled"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],iw.prototype,"inputTabIndex",null);_.P([_.T("data.maxCharacterLimit"),_.J({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],iw.prototype,"maxCharacterLimit",null);
_.P([_.T("liveChatRichMessageInput"),_.J({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],iw.prototype,"characterCount",null);_.P([_.T("maxCharacterLimit, characterCount"),_.J({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],iw.prototype,"remainingCharacterCount",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iw.prototype,"isChatMessageInput",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iw.prototype,"inputExpanded",void 0);_.P([_.J({readOnly:!0,notify:!0}),_.Y("design:type",Object)],iw.prototype,"liveChatRichMessageInput",void 0);_.P([_.J(),_.Y("design:type",Object)],iw.prototype,"messageInput",void 0);_.P([_.J(),_.Y("design:type",Boolean)],iw.prototype,"ignoreColorMapping",void 0);_.P([_.T("characterCount"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iw.prototype,"hasText",null);
_.P([_.J(),_.Y("design:type",Object)],iw.prototype,"isValidWithNoInputText",void 0);_.P([_.T("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.J(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iw.prototype,"isInputValid",null);_.P([_.J({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],iw.prototype,"focused",void 0);_.P([_.J(),_.Y("design:type",Array)],iw.prototype,"suggestions",void 0);
_.P([_.J(),_.Y("design:type",_.JH)],iw.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",_.P4)],iw.prototype,"participantsManager",void 0);_.P([_.J(),_.Y("design:type",Boolean)],iw.prototype,"noUnderline",void 0);_.P([_.J(),_.Y("design:type",Object)],iw.prototype,"inputMethodEditorActive",void 0);_.P([_.vG("#dropdown"),_.Y("design:type",Object)],iw.prototype,"dropdown",void 0);_.P([_.vG("#input"),_.Y("design:type",HTMLElement)],iw.prototype,"input",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iw.prototype,"dataChanged",null);_.P([_.ul("messageInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iw.prototype,"onMessageSet",null);_.P([_.wz("yt-live-chat-select-suggestion"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iw.prototype,"onSuggestion",null);
_.P([_.ul("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iw.prototype,"characterCountChanged",null);_.P([_.ul("focused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iw.prototype,"focusedChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],iw);
_.F8P=_.H(iw,"yt-live-chat-text-input-field-renderer",function(){if(blU===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;tYk===void 0&&(tYk=document.createElement("template"));var b=tYk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);blU=W}W=blU;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Yy=function(){var W=_.O.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.S("web_button_rework_with_live");W.noPadding=!1;return W};
_.Z(Yy,_.O);_.r=Yy.prototype;_.r.shouldSupportInlineActionButtons=function(){return!0};
_.r.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"}}}}};
_.r.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.r.attached=function(){this.allowAnimations=!1};
_.r.dataChanged=function(){if(this.data){var W={"--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)};_.XB(this.hostElement,W);this.allowAnimations=!0}};
_.r.messageChanged=function(){var W,e=(W=this.data)==null?void 0:W.message;W=_.rz(_.rz(this.hostElement).querySelector("#message"));W.textContent="";e&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.r.computeShowOnlyHeader=function(W,e){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,e)&&!W.footer};
_.r.computeShowFooterDivider=function(W,e,t){return W?!!W.footer&&!this.isEmpty(W,e)&&!t:!1};
_.r.computeIsUserEditable=function(W){return!!W.inputField};
_.r.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.r.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var e=W.headerOverlayImage.thumbnails[0],t,b;if((t=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(b=t.loggingDirectives)==null?0:b.trackingParams){var m,q;nkG((m=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(q=m.loggingDirectives)==null?void 0:q.trackingParams)}return e.width||0}return 0};
_.r.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.r.inputFocus=function(){var W=_.rz(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.r.inputInsertEmoji=function(W){var e=_.rz(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.insertEmoji(W)};
_.r.inputMessage=function(){var W=_.rz(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),e;return W&&((e=this.data)==null?0:e.inputField)?(W.completeEmojis(),_.He(W.liveChatRichMessageInput)):null};
_.r.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.r.isEmpty=function(W,e){return W?W.empty||!(W.message||W.inputField||e):!0};
_.r.onLowerBuyButtonClick=function(){var W,e=_.l((W=this.data)==null?void 0:W.buyButton,_.Md);e&&e.trackingParams&&!UKv(e.command)&&(W=_.$5(e.trackingParams))&&(e=_.fc())&&_.zv(e,W)};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.Ec.Object.defineProperties(Yy.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Yy.prototype.isDeletedChanged=Yy.prototype.isDeletedChanged;Yy.prototype.messageChanged=Yy.prototype.messageChanged;Yy.prototype.dataChanged=Yy.prototype.dataChanged;_.P([_.y(huS.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],Yy.prototype,"ytPdgLiveChatItemBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],Yy.prototype,"ytLiveChatReduxBehavior",void 0);
_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],Yy.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yy.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:jkD}),_.Y("design:type",Object)],Yy.prototype,"engagementState",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Y("design:type",Boolean)],Yy.prototype,"isUserEditable",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Y("design:type",Boolean)],Yy.prototype,"hasHeartButton",void 0);_.P([_.J({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yy.prototype,"showOnlyHeader",void 0);
_.P([_.J({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yy.prototype,"showFooterDivider",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],Yy.prototype,"allowAnimations",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yy.prototype,"dashboardMoneyFeed",void 0);_.P([_.J({computed:"computeNoveltyImage(data)"}),_.Y("design:type",Number)],Yy.prototype,"noveltyWidth",void 0);
_.P([_.J({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],Yy.prototype,"authorPhotoSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Yy.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Yy.prototype,"noPadding",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yy.prototype,"dataChanged",null);
_.P([_.ul("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yy.prototype,"messageChanged",null);_.P([_.T("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Yy.prototype,"hideLowerBumper",null);_.P([_.ul("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yy.prototype,"isDeletedChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Yy);
_.H(Yy,"yt-live-chat-paid-message-renderer",function(){if(Soe===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;DPD===void 0&&(DPD=document.createElement("template"));var b=DPD;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Soe=W}W=Soe;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var XYb;var IsB;var ze=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.Z(ze,_.D0);ze.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Ot("openPopupConfig")};
_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],ze.prototype,"ytOpenPopupBehavior",void 0);_.P([_.SB()],ze);_.UP=[_.v4.YtOpenPopupBehavior,ze.prototype];var asU;var La=[_.Sf,WcB,_.Jr,_.Bw,_.z4,_.auP,_.Za,_.SUy,_.Ol,kss];_.S("web_watch_get_updated_metadata_response_processing")&&La.push(_.KWP);_.S("web_continuation_response_processing")&&La.push(_.hp);var ZEg=new _.W_("RESPONSE_RECEIVED_COMMANDS"),o_D=new _.W_("RESPONSE_RECEIVED_COMMANDS");var ulR="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),wEc=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],aEL=["GET_UNSEEN_NOTIFICATION_COUNT"];var L7=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.Z(L7,_.D0);L7.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(e,t,b,m){var q;return IEc(W.hostElement,e,t,b,m,W.serviceEndpointHandlers,(q=W.onEntitiesUpdated)==null?void 0:q.bind(W))}}};
L7.prototype.attached=function(){_.Vo(_.P3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
L7.prototype.detached=function(){_.ie(_.P3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.P([_.SB()],L7);_.wYU=[L7.prototype];var uMU,c6U=function(){return uMU!==void 0?uMU:uMU=document.createElement("template")};
document.head.appendChild(c6U().content);var vX8;var Gbk=document.head,D6h=Gbk.appendChild,SFD;if(vX8===void 0){var B7Z=document.createElement("template");_.p(B7Z,"\x3c!--css-build:shady--\x3e");B7Z.content.insertBefore(c6U().content.cloneNode(!0),B7Z.content.firstChild);vX8=B7Z}SFD=vX8;D6h.call(Gbk,SFD.content);var oXb,lsr=function(){return oXb!==void 0?oXb:oXb=document.createElement("template")};
document.head.appendChild(lsr().content);var Zlk;var $6b=document.head,kbr=$6b.appendChild,pYU;if(Zlk===void 0){var y6U=document.createElement("template");_.p(y6U,"\x3c!--css-build:shady--\x3e");y6U.content.insertBefore(lsr().content.cloneNode(!0),y6U.content.firstChild);Zlk=y6U}pYU=Zlk;kbr.call($6b,pYU.content);var jxe;_.xD("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.xD("sharingRendererButtons","buttonRenderer","ytd-button-renderer");jxe=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live");_.EP=function(){var W=_.O.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.Z(_.EP,_.O);_.r=_.EP.prototype;_.r.created=function(){this.showTooltips=!0};
_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.onHintIdChanged=function(){var W=this,e,t,b=(e=this.ytButtonBehavior.data)==null?void 0:(t=e.hint)==null?void 0:t.hintRenderer;if(b&&b.hintId){e=_.Qx(this.hostElement,"yt-get-opened-popups-action");e=(e&&e.length===1?e[0]:[]).length>0;var m=null;b.hintId!=="sponsor-pre-purchase"||e?b.hintId.startsWith("sponsor-post-purchase")&&!e?m=dvo("membership-manage"):b.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!e&&(m=dvo("membership-freebie-join")):m=dvo("membership-join");m&&_.Tm.addLowPriorityJob(function(){for(var q=
_.R(m),Q=q.next();!Q.done;Q=q.next())W.ytComponentBehavior.resolveCommand(Q.value)})}};
_.r.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.r.onYtNavigate=function(W){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);e&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.r.onYtServiceRequestSent=function(W,e){this.handleServiceRequestActions(e);_.q2(this.hostElement,"yt-service-request-sent-button-renderer")};
_.r.onServiceRequestCompleted=function(W,e){this.handleServiceRequestActions(e);_.q2(this.hostElement,"yt-service-request-completed-button-renderer")};
_.r.updateButton=function(W){var e;if(W=(e=_.l(W,OY8))==null?void 0:e.updatedButton)this.ytButtonBehavior.data=_.l(W,_.Md)};
_.r.handleUpdateButtonAction=function(W){var e=this.ytButtonBehavior.data;e.targetId&&W.updateButtonAction.targetId&&e.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.r.handleServiceRequestActions=function(W){if(W=W.actions)for(var e=0;e<W.length;e++)this.updateButton(W[e])};
_.Ec.Object.defineProperties(_.EP,{template:{configurable:!0,enumerable:!0,get:function(){if(asU===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);asU=W}W=asU;return W}}});
_.EP.prototype.onServiceRequestCompleted=_.EP.prototype.onServiceRequestCompleted;_.EP.prototype.onYtServiceRequestSent=_.EP.prototype.onYtServiceRequestSent;_.EP.prototype.onYtNavigate=_.EP.prototype.onYtNavigate;_.EP.prototype.onPressedStateChanged=_.EP.prototype.onPressedStateChanged;_.EP.prototype.onHintIdChanged=_.EP.prototype.onHintIdChanged;_.P([_.J(),_.Y("design:type",Object)],_.EP.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],_.EP.prototype,"isPressed",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],_.EP.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.hJr.YtButtonBehavior),_.Y("design:type",Object)],_.EP.prototype,"ytButtonBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],_.EP.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],_.EP.prototype,"ytComponentBehavior",void 0);
_.P([_.y(oj.YtRenderButtonBehavior),_.Y("design:type",Object)],_.EP.prototype,"ytRenderButtonBehavior",void 0);_.P([_.ul("data.hint.hintRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.EP.prototype,"onHintIdChanged",null);_.P([_.ul("isPressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.EP.prototype,"onPressedStateChanged",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.EP.prototype,"onYtNavigate",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],_.EP.prototype,"onYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],_.EP.prototype,"onServiceRequestCompleted",null);_.P([_.h({is:"ytd-button-renderer",disableElementRegistration:jxe})],_.EP);var AH=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.Z(AH,_.O);_.r=AH.prototype;_.r.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"}}}}};
_.r.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.r.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.rd(this.data.sticker.thumbnails,this.stickerWidth);W||_.jW2(W).thenCatch(function(){_.JC(new _.o_("Failed to load Super Sticker with url",W))})}};
_.r.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.r.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.r.onStickerLoaded=function(W){var e,t,b;(e=_.Er(W))==null||(t=e.parentNode)==null||(b=t.classList)==null||b.add("sticker-loaded")};
_.r.computeNoveltyImageWidth=function(W){var e,t;if(W==null?0:(e=W.headerOverlayImage)==null?0:(t=e.thumbnails)==null?0:t.length){e=W.headerOverlayImage.thumbnails[0];var b,m;if((b=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(m=b.loggingDirectives)==null?0:m.trackingParams){var q,Q;nkG((q=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Q=q.loggingDirectives)==null?void 0:Q.trackingParams)}return e.width||0}return 0};
_.r.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.r.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.XB(this.hostElement,W))};
_.r.onBuyButtonClick=function(){var W,e=_.l((W=this.data)==null?void 0:W.buyButton,_.Md);e&&!UKv(e.command)&&this.ytRendererBehavior.logExplicitClick(e)};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.Ec.Object.defineProperties(AH.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
AH.prototype.updateStickerStyles=AH.prototype.updateStickerStyles;AH.prototype.isDeletedChanged=AH.prototype.isDeletedChanged;AH.prototype.onStickerLoaded=AH.prototype.onStickerLoaded;AH.prototype.dataChanged=AH.prototype.dataChanged;_.P([_.y(huS.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],AH.prototype,"ytPdgLiveChatItemBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],AH.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],AH.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],AH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],AH.prototype,"data",void 0);
_.P([_.J({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],AH.prototype,"authorPhotoSize",void 0);_.P([_.J(),_.Y("design:type",Boolean)],AH.prototype,"isDeleted",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],AH.prototype,"dashboardMoneyFeed",void 0);_.P([_.J({computed:"computeNoveltyImageWidth(data)"}),_.Y("design:type",Number)],AH.prototype,"noveltyWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AH.prototype,"modern",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Y("design:type",Boolean)],AH.prototype,"isV2Style",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AH.prototype,"dataChanged",null);_.P([_.wz("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],AH.prototype,"onStickerLoaded",null);
_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],AH.prototype,"stickerWidth",null);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],AH.prototype,"stickerHeight",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AH.prototype,"hasHeartButton",null);_.P([_.T("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AH.prototype,"hideLowerBumper",null);
_.P([_.ul("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AH.prototype,"isDeletedChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AH.prototype,"updateStickerStyles",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],AH);
_.H(AH,"yt-live-chat-paid-sticker-renderer",function(){if(IsB===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;XYb===void 0&&(XYb=document.createElement("template"));var b=XYb;t.call(e,b.content.cloneNode(!0),W.content.firstChild);IsB=W}W=IsB;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var CAZ;var nXy;var fsS,gXP=function(){return fsS!==void 0?fsS:fsS=document.createElement("template")};
document.head.appendChild(gXP().content);var T7Z,J6B=function(){return T7Z!==void 0?T7Z:T7Z=document.createElement("template")};
document.head.appendChild(J6B().content);var x6S;var OlN,MYN=function(){return OlN!==void 0?OlN:OlN=document.createElement("template")};
document.head.appendChild(MYN().content);var sxB;var haS=document.head,Hly=haS.appendChild,K8S;if(sxB===void 0){var PAN=document.createElement("template");_.p(PAN,"\x3c!--css-build:shady--\x3e");PAN.content.insertBefore(MYN().content.cloneNode(!0),PAN.content.firstChild);sxB=PAN}K8S=sxB;Hly.call(haS,K8S.content);var VYh=document.head,ilk=VYh.appendChild,YFP;if(x6S===void 0){var NM=document.createElement("template");_.p(NM,"\x3c!--css-build:shady--\x3e");NM.content.insertBefore(J6B().content.cloneNode(!0),NM.content.firstChild);NM.content.insertBefore(gXP().content.cloneNode(!0),NM.content.firstChild);x6S=NM}YFP=x6S;ilk.call(VYh,YFP.content);var dq=function(){var W=_.D0.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.Z(dq,_.D0);dq.prototype.emojiUrl=function(W){W=_.xy(this.emojiManager,W);if(!W)return"";var e;W=(e=W.image)==null?void 0:e.thumbnails;return _.rd(W,24)||""};
var zak=function(W){var e;W.emojiVariants&&(e=W.data)!=null&&e.target&&_.Uc(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var t=_.rz(W.hostElement).querySelector("img");t&&t.focus()})};
_.r=dq.prototype;_.r.onKeyboardEnter=function(){};
_.r.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.r.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.r.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.r.onYtEmojiSelect=function(W){var e=this,t,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return b=(t=e.data)==null?void 0:t.emoji,Q=((m=b)==null?void 0:m.stickyPrefId)||((q=b)==null?void 0:q.emojiId),I=(X=W.detail)==null?void 0:X.emojiId,Q&&I&&Q!==I?_.a(c,(u=e.emojiManager)==null?void 0:NbZ(u,b,I),2):c.return();_.RT(e.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[b,I]);_.u8(c)})};
_.r.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.rz(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.Ec.Object.defineProperties(dq.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
dq.prototype.onYtEmojiSelect=dq.prototype.onYtEmojiSelect;dq.prototype.onKeyDown=dq.prototype.onKeyDown;dq.prototype.onEmojiVariantsChanged=dq.prototype.onEmojiVariantsChanged;dq.prototype.onVerticalOffsetOrPositionTargetChanged=dq.prototype.onVerticalOffsetOrPositionTargetChanged;_.P([_.y(_.z0),_.Y("design:type",Object)],dq.prototype,"ironOverlayBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",_.JH)],dq.prototype,"emojiManager",void 0);
_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"emojiVariants",void 0);_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"focusedIndex",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dq.prototype,"positionTarget",null);_.P([_.J({reflectToAttribute:!0}),_.T("verticalOffset","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"isPositioned",null);_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"verticalOffset",void 0);
_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"verticalAlign",void 0);_.P([_.J(),_.Y("design:type",Object)],dq.prototype,"dynamicAlign",void 0);_.P([_.ul("verticalOffset","positionTarget"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dq.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.P([_.ul("emojiVariants"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dq.prototype,"onEmojiVariantsChanged",null);
_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],dq.prototype,"onKeyDown",null);_.P([_.wz("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],dq.prototype,"onYtEmojiSelect",null);_.P([_.SB()],dq);var U6y=[dq.prototype];var L8v;var EXb;var A68=/medium-light|medium-dark|light|medium|dark/,N7e=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,d6B=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Wl=function(){var W=_.O.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.Z(Wl,_.O);_.r=Wl.prototype;_.r.onClick=function(W){W=_.Er(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.r.selectOrUpdateEmoji=function(W){var e=W.getAttribute("selection");e&&(e==="default"?_.q2(this.hostElement,"yt-emoji-select",_.xy(this.emojiManager,W.id)):e==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):e==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):e==="user"&&this.userSelection.left&&this.userSelection.right&&_.q2(this.hostElement,"yt-emoji-select",_.xy(this.emojiManager,W.id)))};
_.r.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.r.onMultiSelectorThumbnailRowChanged=function(){var W,e,t;((W=this.data)==null?0:(e=W.emoji)==null?0:(t=e.multiSelectorThumbnailRow)==null?0:t.length)&&this.openSelector()};
_.r.getThumbnailFromEmojiRow=function(W){var e,t;return(W==null?void 0:(e=W.thumbnails)==null?void 0:(t=e[0])==null?void 0:t.url)||""};
_.r.getEmojiAltTextForPartialSelector=function(W){var e;return((e=this.getThumbnailFromEmojiRow(W).match(N7e))==null?void 0:e[0])||""};
_.r.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.r.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.r.getRowSelection=function(W){return["left","right"][W]};
_.r.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.r.getEmojiFromPartialSelections=function(W,e){if(!W&&!e)return null;var t,b,m=(t=this.data)==null?void 0:(b=t.emoji)==null?void 0:b.variantIds;if(!m||!m.length)return null;var q;W=(q=W.match(A68))==null?void 0:q[0];var Q;e=(Q=e.match(A68))==null?void 0:Q[0];if(!W||!e)return null;var X=d6B.get(W);Q=d6B.get(e);if(X===Q){Q=Array.from(d6B.values()).filter(function(u){return u!==X}).join("|");
var I=new RegExp("^((?!("+Q+")).)*"+X+"$")}else I=new RegExp(X+".*"+Q);return(m=m.find(function(u){return I.test(u)}))&&_.xy(this.emojiManager,m)||null};
_.r.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,e=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.rz(this.hostElement).querySelector('[selection="user"]').src.includes(e)||(this.isEmojiDraftInProgress=!0)}};
_.r.onDomChange=function(){zak(this.ytEmojiSelectorBehavior)};
_.r.getFocusableElements=function(){return _.rz(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.r.changeFocus=function(W){var e=this.getFocusableElements();e!=null&&e.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+e.length)%e.length,this.ytEmojiSelectorBehavior.focusedIndex<e.length&&(W=e[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.r.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Ec.Object.defineProperties(Wl.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t,b;return this.emojiManager&&((e=this.data)==null?0:(t=e.emoji)==null?0:(b=t.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(m){return!!m&&_.xy(W.emojiManager,m)}).filter(function(m){return!!m}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,e=(W=this.userSelection)==null?void 0:W.left,t;W=(t=this.userSelection)==null?void 0:t.right;return e&&W?this.getEmojiFromPartialSelections(e,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var e;W=(e=this.userSelection)==null?void 0:e.left;var t;e=(t=this.userSelection)==null?void 0:t.right;if(!W&&!e){var b;return this.ytEmojiSelectorBehavior.emojiUrl(((b=this.data.emoji)==null?void 0:b.emojiId)||"")}return W&&!e?W:!W&&e?e:""}}});
Wl.prototype.onMultiSelectorThumbnailRowChanged=Wl.prototype.onMultiSelectorThumbnailRowChanged;Wl.prototype.onClick=Wl.prototype.onClick;_.P([_.y(_.z0),_.Y("design:type",Object)],Wl.prototype,"ironOverlayBehavior",void 0);_.P([_.y(U6y),_.Y("design:type",Object)],Wl.prototype,"ytEmojiSelectorBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wl.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",_.JH)],Wl.prototype,"emojiManager",void 0);
_.P([_.J(),_.Y("design:type",Object)],Wl.prototype,"userSelection",void 0);_.P([_.J(),_.Y("design:type",Object)],Wl.prototype,"scrollAction",void 0);_.P([_.J(),_.Y("design:type",Object)],Wl.prototype,"isEmojiDraftInProgress",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wl.prototype,"emojiVariants",null);_.P([_.T("data","userSelection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wl.prototype,"composedEmojiSelection",null);
_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],Wl.prototype,"onClick",null);_.P([_.ul("data.emoji.multiSelectorThumbnailRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wl.prototype,"onMultiSelectorThumbnailRowChanged",null);_.P([_.T("data","userSelection","composedEmojiSelection"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Wl.prototype,"draftEmojiUrl",null);
_.P([_.gz({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Wl);
_.H(Wl,"yt-emoji-multi-person-selector",function(){if(EXb===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;L8v===void 0&&(L8v=document.createElement("template"));var b=L8v;t.call(e,b.content.cloneNode(!0),W.content.firstChild);EXb=W}W=EXb;return W},{mode:2});var WPy;var e0y;var e_=function(){var W=_.O.apply(this,arguments)||this;W.tooltip_=null;return W};
_.Z(e_,_.O);_.r=e_.prototype;_.r.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.rz(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.FB)(this.tooltip_).textContent=this.data.tooltip};
_.r.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.r.computeId_=function(W){return W};
_.r.computeIcon_=function(W){return _.ao(W)};
_.r.onTap_=function(){this.active=!this.active;_.q2(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.r.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("active-changed",this.active))};
_.Ec.Object.defineProperties(e_.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,e;if((W=this.data)==null?0:(e=W.icon)==null?0:e.iconType)return this.data.icon.iconType==="SUPER_STICKER";var t,b;return((t=this.data)==null?void 0:(b=t.icon)==null?void 0:b.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
e_.prototype.activeChangedForBinding=e_.prototype.activeChangedForBinding;e_.prototype.dataChanged_=e_.prototype.dataChanged_;_.P([_.y(_.KT.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],e_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],e_.prototype,"data",void 0);_.P([_.J({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Y("design:type",String)],e_.prototype,"id",void 0);
_.P([_.J({computed:"computeTargetId(data.targetId)"}),_.Y("design:type",String)],e_.prototype,"targetId",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],e_.prototype,"active",void 0);_.P([_.J({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Y("design:type",String)],e_.prototype,"icon",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e_.prototype,"dataChanged_",null);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e_.prototype,"iconFilled",null);_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e_.prototype,"activeChangedForBinding",null);_.P([_.gz({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],e_);
_.H(e_,"yt-emoji-picker-category-button-renderer",function(){if(e0y===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;WPy===void 0&&(WPy=document.createElement("template"));var b=WPy;t.call(e,b.content.cloneNode(!0),W.content.firstChild);e0y=W}W=e0y;return W},{mode:2});var tEh;var bSe;var tN=function(){var W=_.O.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$12114_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.Z(tN,_.O);_.r=tN.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.r.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.Sg(),e=0;e<this.emoji.length;e++){var t={veType:88013,elementIndex:e},b=this.emoji[e];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(t=_.Dj(W,t))&&(b.visualElement=t)}};
_.r.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.r.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.r.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.r.dataChanged=function(){this.data&&this.data.emojiData&&UPU(this.emojiManager,this.data.emojiData)};
_.r.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var e;W=(e=W.image)==null?void 0:e.thumbnails;return _.rd(W,24)||""};
_.r.emojiAlt=function(W){var e=this.get("image.accessibility.accessibilityData.label",W);return e?e:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.r.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.r.emojiAriaSelected=function(W,e,t){return W&&t==e?"true":"false"};
_.r.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?EAy(this.emojiManager,W):OP(this.emojiManager,W)};
_.r.computeId_=function(W){return W.categoryId||""};
_.r.computeEmoji=function(W){var e=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(t){return t?_.xy(e.emojiManager,t):null}).filter(CPL):W.emojiData?W.emojiData.map(function(t){var b=!!t.emojiId&&_.xy(e.emojiManager,t.emojiId);
return b?Object.assign({},b,t):null}).filter(CPL):[]:[]};
_.r.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.r.computeAriaLabel_=function(W){return _.Ub(W)};
_.r.computeAriaActivedescendant_=function(W,e){return W&&W[e]?W[e].emojiId||"":""};
_.r.handleLongPressEmojiWithVariants=function(W,e){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,e)};
_.r.onMouseDown=function(W){var e=this;this.hostElement!==document.activeElement&&(this.JSC$12114_ignoreNextFocus_=!0);if(W.button===0){var t=_.Er(W);if(t instanceof HTMLImageElement){var b=_.rz(this.hostElement).querySelector("#repeat").itemForElement(t);this.emojiContainsVariants(b)&&(this.longPressTimeoutId=setTimeout(function(){e.handleLongPressEmojiWithVariants(b,t)},500))}}};
_.r.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.r.onFocus=function(){this.JSC$12114_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12114_ignoreNextFocus_=!1};
_.r.onBlur_=function(){this.showFocus=!1};
_.r.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.r.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.Er(W);if(W instanceof HTMLImageElement){var e=W.id;this.changeFocusToEmoji(e,!1);var t=this.getEmoji(e),b;if(b=this.shouldUseStickyPreferences&&this.emojiContainsVariants(t)){var m;b=!((m=this.emojiManager.emojiMap[e])!=null&&m.stickyPrefId)}b?(m=_.rz(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(m,W)):_.q2(this.hostElement,"yt-emoji-select",t)}};
_.r.isActiveEmojiWithVariants=function(W,e){return W&&e?e.stickyPrefId?W===e.stickyPrefId:W===e.emojiId:!1};
_.r.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.r.onMouseOver_=function(W){W=_.Er(W);W instanceof HTMLImageElement&&_.q2(this.hostElement,"yt-emoji-hover",_.xy(this.emojiManager,W.id))};
_.r.changeFocus_=function(W,e){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],e&&(this.showFocus=!0,_.rz(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.q2(this.hostElement,"yt-emoji-hover",W)))};
_.r.changeFocusToEmoji=function(W,e){if(W){var t=this.emoji.findIndex(function(b){return b.emojiId===W});
t!==-1&&this.changeFocus_(t-this.focusedIndex,e)}};
_.r.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var e=this.emoji[this.focusedIndex];if(e&&e.emojiId){if(this.emojiContainsVariants(e)){var t=_.rz(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(e,t)}else _.q2(this.hostElement,"yt-emoji-select",OP(this.emojiManager,e.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),
W.preventDefault()}};
_.r.onEmojiStickyPreferenceChanged=function(W,e){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(e)&&this.activeEmojiWithVariantsId!==e&&this.setStickyEmojiPreference(W.emojiId,e)};
_.r.openVariantSelector=function(W,e){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.q2(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:e})};
_.r.setStickyEmojiPreference=function(W,e){if(this.data){var t=this.emoji.findIndex(function(m){return m.emojiId===W});
if(t!==-1){var b=this.emoji[t];b.stickyPrefId=e;this.set("emoji."+t,Object.assign({},b));this.activeEmojiWithVariantsId=e}}};
tN.prototype.onKeyDown_=tN.prototype.onKeyDown_;tN.prototype.onMouseOver_=tN.prototype.onMouseOver_;tN.prototype.onClick=tN.prototype.onClick;tN.prototype.onBlur_=tN.prototype.onBlur_;tN.prototype.onFocus=tN.prototype.onFocus;tN.prototype.onMouseUp=tN.prototype.onMouseUp;tN.prototype.onMouseDown=tN.prototype.onMouseDown;tN.prototype.dataChanged=tN.prototype.dataChanged;tN.prototype.disableIncrementalLoadingChanged_=tN.prototype.disableIncrementalLoadingChanged_;tN.prototype.emojiManagerChanged_=tN.prototype.emojiManagerChanged_;
tN.prototype.emojiChanged_=tN.prototype.emojiChanged_;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],tN.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tN.prototype,"data",void 0);_.P([_.J({computed:"computeId_(data)"}),_.Y("design:type",String)],tN.prototype,"id",void 0);_.P([_.J({computed:"computeEmoji(data)"}),_.Y("design:type",Array)],tN.prototype,"emoji",void 0);_.P([_.J(),_.Y("design:type",Number)],tN.prototype,"skinTone",void 0);
_.P([_.J(),_.Y("design:type",_.JH)],tN.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Boolean)],tN.prototype,"disableIncrementalLoading",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],tN.prototype,"focusedIndex",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],tN.prototype,"showFocus",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Y("design:type",Object)],tN.prototype,"ariaLabel",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Y("design:type",Object)],tN.prototype,"ariaActivedescendant",void 0);_.P([_.J({value:60}),_.Y("design:type",Number)],tN.prototype,"domRepeatTargetFramerate",void 0);_.P([_.J({value:1}),_.Y("design:type",Number)],tN.prototype,"domRepeatInitialCount",void 0);_.P([_.J({value:""}),_.Y("design:type",String)],tN.prototype,"activeEmojiWithVariantsId",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],tN.prototype,"shouldUseStickyPreferences",void 0);_.P([_.ul("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"emojiChanged_",null);_.P([_.ul("emojiManager"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"emojiManagerChanged_",null);
_.P([_.ul("disableIncrementalLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"disableIncrementalLoadingChanged_",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"dataChanged",null);_.P([_.wz("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],tN.prototype,"onMouseDown",null);
_.P([_.wz("mouseup"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"onMouseUp",null);_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"onFocus",null);_.P([_.wz("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tN.prototype,"onBlur_",null);
_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tN.prototype,"onClick",null);_.P([_.wz("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tN.prototype,"onMouseOver_",null);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tN.prototype,"onKeyDown_",null);
_.P([_.gz({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],tN);
_.H(tN,"yt-emoji-picker-category-renderer",function(){if(bSe===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;tEh===void 0&&(tEh=document.createElement("template"));var b=tEh;t.call(e,b.content.cloneNode(!0),W.content.firstChild);bSe=W}W=bSe;return W},{mode:2});var myN;var rLS;var qaP;var R0o;var bZ=function(){var W=_.O.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.Ub;W.JSC$12120_ignoreNextFocus_=!1;return W};
_.Z(bZ,_.O);_.r=bZ.prototype;_.r.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")};
_.r.emojiUrl=function(W){var e,t;W=(e=OP(this.emojiManager,W,!0))==null?void 0:(t=e.image)==null?void 0:t.thumbnails;return _.rd(W,24)||""};
_.r.emojiAlt=function(W){var e=this.get("image.accessibility.accessibilityData.label",W);return e?e:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.r.emojiId=function(W){return"emoji"+W};
_.r.computeId_=function(W){return W.categoryId||""};
_.r.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.r.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.Sg(),e=0;e<this.emoji.length;e++){var t={veType:88013,elementIndex:e},b=this.emoji[e];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(t=_.Dj(W,t))&&(b.visualElement=t)}};
_.r.computeEmoji_=function(W){var e=this;return this.emojiManager?W.emojiIds.map(function(t){return _.xy(e.emojiManager,t,!0)}).filter(n_K):[]};
_.r.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),e=_.rz(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-e.height));_.rz(this.hostElement).querySelector("#title").style.top=W+"px"};
_.r.onEmojiMouseOver_=function(W){_.q2(this.hostElement,"yt-emoji-hover",W.model.item)};
_.r.onEmojiTap_=function(W){this.data.command&&(W=skL(_.ee().resolve(_.Wi(H3)),this.data.command,W),_.q2(this.hostElement,"yt-navigate",W))};
_.r.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.r.emojiAriaSelected=function(W,e,t){return W&&t==e?"true":"false"};
_.r.changeFocus_=function(W,e){var t=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+t)%t;W=this.emoji[this.focusedIndex];if(e){var b;(b=_.rz(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||b.scrollIntoView(!1);_.q2(this.hostElement,"yt-emoji-hover",W)}};
_.r.onMouseDown_=function(){this.JSC$12120_ignoreNextFocus_=!0};
_.r.onFocus_=function(){this.JSC$12120_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12120_ignoreNextFocus_=!1};
_.r.onBlur_=function(){this.showFocus=!1};
_.r.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
bZ.prototype.onKeyDown_=bZ.prototype.onKeyDown_;bZ.prototype.onBlur_=bZ.prototype.onBlur_;bZ.prototype.onFocus_=bZ.prototype.onFocus_;bZ.prototype.onMouseDown_=bZ.prototype.onMouseDown_;bZ.prototype.onEmojiTap_=bZ.prototype.onEmojiTap_;bZ.prototype.titleOffsetChanged_=bZ.prototype.titleOffsetChanged_;bZ.prototype.emojiChanged_=bZ.prototype.emojiChanged_;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],bZ.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],bZ.prototype,"data",void 0);_.P([_.J({computed:"computeId_(data)"}),_.Y("design:type",String)],bZ.prototype,"id",void 0);_.P([_.J({computed:"computeEmoji_(data)"}),_.Y("design:type",Array)],bZ.prototype,"emoji",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],bZ.prototype,"titleOffset",void 0);_.P([_.J({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Y("design:type",Object)],bZ.prototype,"ariaLabel",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Y("design:type",Object)],bZ.prototype,"ariaActivedescendant",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],bZ.prototype,"showFocus",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],bZ.prototype,"focusedIndex",void 0);_.P([_.J(),_.Y("design:type",_.JH)],bZ.prototype,"emojiManager",void 0);
_.P([_.ul("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bZ.prototype,"emojiChanged_",null);_.P([_.ul("titleOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bZ.prototype,"titleOffsetChanged_",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],bZ.prototype,"onEmojiTap_",null);
_.P([_.wz("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bZ.prototype,"onMouseDown_",null);_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bZ.prototype,"onFocus_",null);_.P([_.wz("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bZ.prototype,"onBlur_",null);
_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],bZ.prototype,"onKeyDown_",null);_.P([_.gz({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],bZ);
_.H(bZ,"yt-emoji-picker-upsell-category-renderer",function(){if(R0o===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;qaP===void 0&&(qaP=document.createElement("template"));var b=qaP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);R0o=W}W=R0o;return W},{mode:2});var QkZ;var FPU;var mt=function(){var W=_.O.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.Z(mt,_.O);_.r=mt.prototype;_.r.onClick=function(W){W=_.Er(W);W instanceof HTMLImageElement&&_.q2(this.hostElement,"yt-emoji-select",_.xy(this.emojiManager,W.id))};
_.r.openSelector=function(){this.ironOverlayBehavior.open()};
_.r.onDomChange=function(){zak(this.ytEmojiSelectorBehavior)};
_.r.computeIsFamilySelector=function(W){var e;return(W==null?void 0:(e=W.emoji)==null?void 0:e.emojiId)==="\ud83d\udc6a"};
_.r.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.q2(this.hostElement,"yt-emoji-select",_.xy(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Ec.Object.defineProperties(mt.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t,b;return this.emojiManager&&((e=this.data)==null?0:(t=e.emoji)==null?0:(b=t.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(m){return!!m&&_.xy(W.emojiManager,m)}).filter(function(m){return!!m}):[]}}});
mt.prototype.onClick=mt.prototype.onClick;_.P([_.y(_.z0),_.Y("design:type",Object)],mt.prototype,"ironOverlayBehavior",void 0);_.P([_.y(U6y),_.Y("design:type",Object)],mt.prototype,"ytEmojiSelectorBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mt.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",_.JH)],mt.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Object)],mt.prototype,"scrollAction",void 0);_.P([_.J(),_.Y("design:type",Object)],mt.prototype,"verticalAlign",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Y("design:type",Boolean)],mt.prototype,"isFamilySelector",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mt.prototype,"emojiVariants",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],mt.prototype,"onClick",null);_.P([_.gz({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],mt);
_.H(mt,"yt-emoji-variant-selector",function(){if(FPU===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;QkZ===void 0&&(QkZ=document.createElement("template"));var b=QkZ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);FPU=W}W=FPU;return W},{mode:2});var XJk=/:/g,Ivb=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],rW=function(){var W=_.O.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.sL;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.Z(rW,_.O);_.r=rW.prototype;
_.r.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}}};
_.r.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.MM)};
_.r.attached=function(){_.aP&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&LXB(this.emojiManager)};
_.r.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var e=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.kP(PH8),_.kP(e))}};
_.r.getCustomEmojiIds=function(){var W,e=(W=this.data.categories)==null?void 0:W.find(function(q){var Q;return((Q=q.emojiPickerCategoryRenderer)==null?void 0:Q.categoryId)&&Ivb.includes(q.emojiPickerCategoryRenderer.categoryId)}),t;
W=(t=this.data.categories)==null?void 0:t.find(function(q){return q.emojiPickerUpsellCategoryRenderer});
var b,m;return[e==null?void 0:(b=e.emojiPickerCategoryRenderer)==null?void 0:b.emojiIds,W==null?void 0:(m=W.emojiPickerUpsellCategoryRenderer)==null?void 0:m.emojiIds].flat().filter(function(q){return!!q})};
_.r.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.r.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.r.updateCategoriesAndPlaceholderInternal=function(W,e){var t=this;W&&e&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.hc(function(){t.updateButtons_()}))};
_.r.computeId_=function(W){return W.id||""};
_.r.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.r.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.r.onShowEmojiVariantSelector=function(W){var e=W.detail.emojiData;e.variantIds&&e.variantIds.length&&(e.multiSelectorThumbnailRow&&e.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:e,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:e,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.r.onIronOverlayClosed=function(W){var e=EAy(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");e&&W.composedPath&&(W.composedPath().includes(_.rz(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.rz(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.RT(this.hostElement,"yt-close-emoji-variant-selector",[e.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.r.onEmojiVariantSelectorMouseup=function(W){var e=W.target.firstChild;this.variantSelectorOpened&&e&&_.hc(function(){e.noCancelOnOutsideClick=!1},100)};
_.r.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.r.onSelectCategory_=function(W){var e=this.search!="";this.search="";for(var t=_.rz(this.hostElement).querySelector("#categories").children,b=0;b<t.length;b++){var m=t[b];if(m.id==W.detail.categoryId){e?(_.rz(this.hostElement).querySelector("#categories").scrollTop=m.offsetTop,this.updateButtons_()):(this.animationStart_=_.rz(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=m.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.r.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.r.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.r.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.r.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.r.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.r.computeSearchCategory_=function(W){W=W.replace(XJk,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var e=[],t=this.emojiManager.emojis,b=0;b<t.length;b++){var m=t[b];if(m.searchTerms)for(var q=0;q<m.searchTerms.length;q++){for(var Q=m.searchTerms[q].toLocaleLowerCase(),X=!1,I=0;I<W.length;I++)if(Q.indexOf(W[I])!=-1){X=!0;break}if(X&&(!m.isCustomEmoji||!m.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(m.emojiId))){e.push(m.emojiId);
break}}}return{categoryId:-1,emojiIds:e}};
_.r.computeSearchEmptyMessage_=function(W,e){return W&&e&&e.emojiIds&&e.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.r.computeSearching_=function(W){return this.emojiManager&&W.replace(XJk,"").length>1};
_.r.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.r.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.r.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.r.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.r.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.r.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.RT(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.r.skinToneChanged_=function(){_.rz(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.rz(this.hostElement).querySelector("#dropdown-content").children,e=0;e<W.length;e++)e===this.skinTone?W[e].setAttribute("selected",""):W[e].removeAttribute("selected")};
_.r.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.rz(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.rz(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.r.searchChanged_=function(){this.updateButtons_()};
_.r.updateButtons_=function(){var W=null;if(!this.search)for(var e=_.rz(this.hostElement).querySelector("#categories").scrollTop,t=_.rz(this.hostElement).querySelector("#categories").children,b=0;b<t.length;b++){var m=t[b];m.offsetTop<=e&&(W=m.id)}e=_.rz(this.hostElement).querySelector("#category-buttons").children;for(t=0;t<e.length;t++)b=e[t],b.active=b.id===W};
rW.prototype.searchChanged_=rW.prototype.searchChanged_;rW.prototype.skinToneChanged_=rW.prototype.skinToneChanged_;rW.prototype.onEmojiHover_=rW.prototype.onEmojiHover_;rW.prototype.onSelectCategory_=rW.prototype.onSelectCategory_;rW.prototype.onShowEmojiVariantSelector=rW.prototype.onShowEmojiVariantSelector;rW.prototype.updateCategoriesAndPlaceholder_=rW.prototype.updateCategoriesAndPlaceholder_;rW.prototype.dataChanged=rW.prototype.dataChanged;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],rW.prototype,"data",void 0);_.P([_.J({value:function(){return[]}}),
_.Y("design:type",Array)],rW.prototype,"categories",void 0);_.P([_.J({value:function(){return[]}}),
_.Y("design:type",Array)],rW.prototype,"categoryButtons",void 0);_.P([_.J({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],rW.prototype,"disableScroll",void 0);_.P([_.J({computed:"computeId_(data)",reflectToAttribute:!0}),_.Y("design:type",String)],rW.prototype,"id",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],rW.prototype,"selected",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],rW.prototype,"disableIncrementalLoading",void 0);_.P([_.J(),_.Y("design:type",String)],rW.prototype,"placeholder",void 0);_.P([_.J({value:""}),_.Y("design:type",String)],rW.prototype,"search",void 0);_.P([_.J({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],rW.prototype,"searching",void 0);_.P([_.J({computed:"computeSearchCategory_(search)"}),_.Y("design:type",Object)],rW.prototype,"searchCategory",void 0);
_.P([_.J({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Y("design:type",Object)],rW.prototype,"searchEmptyMessage",void 0);_.P([_.J({computed:"identity(emojiManager.skinTone)"}),_.Y("design:type",Number)],rW.prototype,"skinTone",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],rW.prototype,"skinToneOpened",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rW.prototype,"variantSelectorOpened",void 0);
_.P([_.J({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Y("design:type",Boolean)],rW.prototype,"skinToneHidden",void 0);_.P([_.J(),_.Y("design:type",_.JH)],rW.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Object)],rW.prototype,"emojiVariantSelector",void 0);_.P([_.J(),_.Y("design:type",Object)],rW.prototype,"emojiMultiPersonSelector",void 0);
_.P([_.J({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Y("design:type",Boolean)],rW.prototype,"shouldUseStickyPreferences",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rW.prototype,"dataChanged",null);_.P([_.ul("data","selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rW.prototype,"updateCategoriesAndPlaceholder_",null);
_.P([_.wz("yt-show-emoji-variant-selector"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],rW.prototype,"onShowEmojiVariantSelector",null);_.P([_.wz("yt-emoji-picker-select-category"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],rW.prototype,"onSelectCategory_",null);_.P([_.wz("yt-emoji-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],rW.prototype,"onEmojiHover_",null);
_.P([_.ul("skinTone"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rW.prototype,"skinToneChanged_",null);_.P([_.ul("search"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rW.prototype,"searchChanged_",null);_.P([_.gz({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],rW);
_.H(rW,"yt-emoji-picker-renderer",function(){if(rLS===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;myN===void 0&&(myN=document.createElement("template"));var b=myN;t.call(e,b.content.cloneNode(!0),W.content.firstChild);rLS=W}W=rLS;return W},{mode:2});var q$=function(){var W=_.O.apply(this,arguments)||this;W.emojiManager=_.MM;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.Z(q$,_.O);_.r=q$.prototype;_.r.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.r.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Q8(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.r.updateSaveButtonState=function(W){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.SX("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.r.emojiUrl=function(W){W=_.xy(this.emojiManager,W);if(!W)return"";var e;W=(e=W.image)==null?void 0:e.thumbnails;return _.rd(W,24)||""};
_.r.emojiAlt=function(W){var e=_.xy(this.emojiManager,W);if(!e)return W;var t,b,m,q=(e==null?void 0:(t=e.image)==null?void 0:(b=t.accessibility)==null?void 0:(m=b.accessibilityData)==null?void 0:m.label)||"";return q?q:e.isCustomEmoji?e.shortcuts[0]:e.emojiId||W};
_.r.emojiAriaLabel=function(W){var e,t;return((e=_.xy(this.emojiManager,W))==null?void 0:(t=e.shortcuts)==null?void 0:t[0])||W};
_.r.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.r.onEmojiSelect=function(W){W=W.detail;var e,t;((e=this.data)==null?0:e.emojiCustomizationSetEntityKey)&&((t=this.emojiCustomizationSet)==null?0:t.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.SX("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.r.canEditEmoji=function(W,e,t){W=W.indexOf(e);return W===t||W===0||t===0?!1:!0};
_.r.getUpdatedEmojiIdList=function(W,e,t){var b=W.indexOf(e);W=[].concat(_.kP(W));b>=0&&(W[b]=W[t]);W[t]=e;return W};
_.Ec.Object.defineProperties(q$,{template:{configurable:!0,enumerable:!0,get:function(){if(nXy===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;CAZ===void 0&&(CAZ=document.createElement("template"));var b=CAZ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);nXy=W}W=nXy;return W}}});
q$.prototype.onEmojiSelect=q$.prototype.onEmojiSelect;_.P([_.y(_.H1),_.Y("design:type",Object)],q$.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.P([_.vG("yt-emoji-picker-renderer"),_.Y("design:type",Object)],q$.prototype,"emojiPickerRenderer",void 0);
_.P([_.J({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,e){return _.I1(W.entities,"emojiCustomizationSetEntity",e)},
observer:"emojiCustomizationSetChanged"}),_.Y("design:type",Object)],q$.prototype,"emojiCustomizationSet",void 0);_.P([_.J(),_.Y("design:type",Object)],q$.prototype,"originalEmojiSet",void 0);_.P([_.J(),_.Y("design:type",_.JH)],q$.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Object)],q$.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],q$.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],q$.prototype,"selectedIndex",void 0);
_.P([_.wz("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],q$.prototype,"onEmojiSelect",null);_.P([_.gz({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],q$);var avU;var wJh;var ufN;var cLo;var RE=function(){var W=_.O.apply(this,arguments)||this;W.authorBadges=[];return W};
_.Z(RE,_.O);_.r=RE.prototype;_.r.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.r.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]]"}}}}}};
_.r.dataChanged=function(){var W=Fov(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.r.updateMessage=function(){var W=this.data.message,e=_.rz(_.rz(this.hostElement).querySelector("#message"));e.textContent="";W&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.r.shouldSupportWholeItemClick=function(){return!0};
_.r.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.r.computeShowBar=function(W,e,t){return W&&e||t};
_.r.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.r.computeAuthorIsOwner=function(W){return!!Xvc(W.authorBadges,"owner")};
_.r.computeAuthorNameColor=function(W){var e;if(_.S("live_chat_author_name_color_usernames")&&(W==null?0:(e=W.authorName)==null?0:e.simpleText))return _.vRL(_.GYg(W.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.vRL(_.X1(W.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var t;return _.S("live_chat_simple_color_usernames")&&(W==null?0:(t=W.authorName)==null?0:t.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.X1(W.authorUsernameColorDark):_.X1(W.authorUsernameColorLight):""};
RE.prototype.updateMessage=RE.prototype.updateMessage;RE.prototype.dataChanged=RE.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],RE.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],RE.prototype,"data",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"showOriginal",void 0);_.P([_.J({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"isDimmed",void 0);_.P([_.J({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"showBar",void 0);
_.P([_.J({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],RE.prototype,"authorBadges",void 0);_.P([_.J({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"authorIsOwner",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"inCollapsedBanner",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"inBanner",void 0);
_.P([_.J({value:_.S("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],RE.prototype,"avatarHidden",void 0);_.P([_.J({computed:"computeAuthorNameColor(data)"}),_.Y("design:type",String)],RE.prototype,"authorNameColor",void 0);_.P([_.J(),_.Y("design:type",_.P4)],RE.prototype,"participantsManager",void 0);_.P([_.J({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Y("design:type",Object)],RE.prototype,"filledButtonOverrides",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RE.prototype,"dataChanged",null);_.P([_.ul("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RE.prototype,"updateMessage",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],RE);
_.H(RE,"yt-live-chat-text-message-renderer",function(){if(cLo===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ufN===void 0&&(ufN=document.createElement("template"));var b=ufN;t.call(e,b.content.cloneNode(!0),W.content.firstChild);cLo=W}W=cLo;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var QB=function(){var W=_.O.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.Z(QB,_.O);
QB.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]]"}}}}}};
QB.prototype.shouldSupportInlineActionButtons=function(){return!0};
QB.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Ec.Object.defineProperties(QB.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],QB.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],QB.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",_.P4)],QB.prototype,"participantsManager",void 0);
_.P([_.J(),_.Y("design:type",Object)],QB.prototype,"tonalButtonOverrides",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.infoDialogButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QB.prototype,"hasInfoDialogButton",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],QB);
_.H(QB,"yt-live-chat-auto-mod-message-renderer",function(){if(wJh===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;avU===void 0&&(avU=document.createElement("template"));var b=avU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);wJh=W}W=wJh;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var vkS;var GdU;var Dyk;var SaN=function(){return _.O.apply(this,arguments)||this};
_.Z(SaN,_.O);_.P([_.J(),_.Y("design:type",Object)],SaN.prototype,"data",void 0);_.P([_.h({is:"ytd-factoid-renderer",disableElementRegistration:!0})],SaN);
_.H(SaN,"ytd-factoid-renderer",function(){if(Dyk!==void 0)return Dyk;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Dyk=W},{mode:1});var Fy=function(){return _.O.apply(this,arguments)||this};
_.Z(Fy,_.O);Fy.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.P([_.J(),_.Y("design:type",Object)],Fy.prototype,"data",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Fy);
_.H(Fy,"yt-live-chat-channel-activity-reputation-renderer",function(){if(GdU===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;vkS===void 0&&(vkS=document.createElement("template"));var b=vkS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);GdU=W}W=GdU;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var BYo;var okv;var Xy=function(){return _.O.apply(this,arguments)||this};
_.Z(Xy,_.O);Xy.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Xy.prototype,"menuFocused",void 0);_.P([_.J(),_.Y("design:type",Object)],Xy.prototype,"data",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],Xy.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Xy);
_.H(Xy,"yt-live-chat-donation-announcement-renderer",function(){if(okv===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;BYo===void 0&&(BYo=document.createElement("template"));var b=BYo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);okv=W}W=okv;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var lvS;var ZSZ,$ye=function(){if(ZSZ!==void 0)return ZSZ;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;lvS===void 0&&(lvS=document.createElement("template"));var b=lvS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return ZSZ=W};var IE=function(){return _.O.apply(this,arguments)||this};
_.Z(IE,_.O);_.Ec.Object.defineProperties(IE,{template:{configurable:!0,enumerable:!0,get:function(){return $ye()}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IE.prototype,"data",void 0);_.P([_.gz({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],IE);_.H(IE,"yt-live-chat-empty-feed-view-model",function(){return $ye()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kdP;var pJZ;var aE=function(){return _.O.apply(this,arguments)||this};
_.Z(aE,_.O);aE.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"}}}}}};
_.Ec.Object.defineProperties(aE.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,e;return{runs:[{text:(W=this.data)==null?void 0:(e=W.channelName)==null?void 0:e.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],e;if((e=this.data)==null||!e.channelBadges)return W;var t;e=_.R((t=this.data)==null?void 0:t.channelBadges);for(t=e.next();!t.done;t=e.next()){t=_.l(t.value,lYb);var b=void 0,m=void 0;if((b=t)==null?0:(m=b.badgeImage)==null?0:m.sources)b=void 0,m={liveChatAuthorBadgeRenderer:{tooltip:t.tooltip,accessibility:{accessibilityData:{label:(b=_.l(t.rendererContext,_.ly))==null?void 0:b.label}}}},t.badgeImage.sources[0].clientResource?m.liveChatAuthorBadgeRenderer.icon=
{iconType:t.badgeImage.sources[0].clientResource.imageName}:m.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:t.badgeImage.sources},W.push(m)}return W}}});
_.P([_.J(),_.Y("design:type",Object)],aE.prototype,"data",void 0);_.P([_.T("data.channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aE.prototype,"channelName",null);_.P([_.T("data.channelBadges"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],aE.prototype,"channelBadges",null);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],aE);
_.H(aE,"yt-live-chat-identity-view-model",function(){if(pJZ===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;kdP===void 0&&(kdP=document.createElement("template"));var b=kdP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);pJZ=W}W=pJZ;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var yLD;var jkb;var CrZ;var nkB;var wW=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.Z(wW,_.O);wW.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
wW.prototype.dataChanged=function(W){var e=(0,_.FB)(_.rz(this.hostElement).querySelector("#detail-text"));e.textContent="";(W==null?0:W.detailText)&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],wW.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({observer:"dataChanged"}),_.Y("design:type",Object)],wW.prototype,"data",void 0);
_.P([_.J({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],wW.prototype,"hidden",void 0);_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],wW);
_.H(wW,"yt-live-chat-legacy-paid-message-renderer",function(){if(nkB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;CrZ===void 0&&(CrZ=document.createElement("template"));var b=CrZ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);nkB=W}W=nkB;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var fvk;var gkN;var TYk={},uZ=function(){return _.D0.apply(this,arguments)||this};
_.Z(uZ,_.D0);uZ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
uZ.prototype.onLiveChatMembershipItemBehaviorClick=uZ.prototype.onLiveChatMembershipItemBehaviorClick;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uZ.prototype,"data",void 0);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],uZ.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.P([_.SB()],uZ);
TYk.YtLiveChatMembershipItemBehavior=[uZ.prototype,_.d.YtRendererBehavior];var cl=function(){var W=_.O.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.S("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.Z(cl,_.O);_.r=cl.prototype;_.r.shouldSupportInlineActionButtons=function(){return!0};
_.r.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.r.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.r.messageChanged=function(){var W=this.data.message,e=(0,_.FB)(_.rz(this.hostElement).querySelector("#message"));e.textContent="";W&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.r.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.r.computeShowOnlyHeader=function(W,e){return this.isMessageEmpty(W,e)};
_.r.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.r.isMessageEmpty=function(W,e){return!W||W.empty?!0:!W.message&&!W.inputField&&!e};
_.r.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.r.getInputElement=function(){return _.rz(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.r.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.r.inputInsertEmoji=function(W){var e=this.getInputElement();e&&e.insertEmoji(W)};
_.r.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.He(W.liveChatRichMessageInput)):null};
_.r.onFooterButtonClick=function(){this.data.footerButton&&_.q2(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.r.shouldSupportWholeItemClick=function(){return!0};
cl.prototype.isDeletedChanged=cl.prototype.isDeletedChanged;cl.prototype.messageChanged=cl.prototype.messageChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],cl.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(TYk.YtLiveChatMembershipItemBehavior),_.Y("design:type",Object)],cl.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cl.prototype,"data",void 0);_.P([_.J({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],cl.prototype,"hasPrimaryHeaderText",void 0);_.P([_.J({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],cl.prototype,"showOnlyHeader",void 0);
_.P([_.J({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],cl.prototype,"authorBadges",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],cl.prototype,"modern",void 0);_.P([_.ul("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cl.prototype,"messageChanged",null);_.P([_.ul("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cl.prototype,"isDeletedChanged",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],cl);
_.H(cl,"yt-live-chat-membership-item-renderer",function(){if(gkN===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;fvk===void 0&&(fvk=document.createElement("template"));var b=fvk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);gkN=W}W=gkN;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var JLS;var xyy;var vl=function(){return _.O.apply(this,arguments)||this};
_.Z(vl,_.O);vl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vl.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],vl);
_.H(vl,"yt-live-chat-mode-change-message-renderer",function(){if(xyy===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;JLS===void 0&&(JLS=document.createElement("template"));var b=JLS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);xyy=W}W=xyy;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var OSS;var MES;var Gx=function(){return _.O.apply(this,arguments)||this};
_.Z(Gx,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],Gx.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gx.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Gx);
_.H(Gx,"yt-live-chat-moderation-message-renderer",function(){if(MES===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;OSS===void 0&&(OSS=document.createElement("template"));var b=OSS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MES=W}W=MES;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var skS;var h0U;var DS=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework");return W};
_.Z(DS,_.O);DS.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var e;_.uL.instance.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],DS.prototype,"modern",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],DS.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],DS.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],DS.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],DS);
_.H(DS,"yt-live-chat-offer-click-count-message-renderer",function(){if(h0U===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;skS===void 0&&(skS=document.createElement("template"));var b=skS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);h0U=W}W=h0U;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var HSy;var KPS=function(){return _.O.apply(this,arguments)||this};
_.Z(KPS,_.O);_.P([_.J(),_.Y("design:type",Object)],KPS.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],KPS);
_.H(KPS,"yt-live-chat-placeholder-item-renderer",function(){if(HSy===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);HSy=W}W=HSy;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Prk;var VEv;var iSk=new iX(7),S_=function(){var W=_.O.apply(this,arguments)||this;W.data={};return W};
_.Z(S_,_.O);S_.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.RH(this.hostElement,this.data.class,!0);var e;((e=this.oldData)==null?0:e.class)&&_.RH(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
S_.prototype.computeTimestampString=function(W){return iSk.format(new Date(W/1E3))};
S_.prototype.dataChanged=S_.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],S_.prototype,"data",void 0);_.P([_.J({computed:"computeTimestampString(data.timestampUsec)"}),_.Y("design:type",String)],S_.prototype,"timestampString",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S_.prototype,"dataChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],S_);
_.H(S_,"yt-live-chat-server-error-message",function(){if(VEv===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Prk===void 0&&(Prk=document.createElement("template"));var b=Prk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);VEv=W}W=VEv;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var YaP;var z0o;var Bl=function(){var W=_.O.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.Z(Bl,_.O);Bl.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
Bl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],Bl.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bl.prototype,"defaultToFilledIcon",void 0);_.P([_.J(),_.Y("design:type",Object)],Bl.prototype,"data",void 0);
_.P([_.J({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bl.prototype,"hasPrimaryColorIcon",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Bl);
_.H(Bl,"yt-live-chat-viewer-engagement-message-renderer",function(){if(z0o===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;YaP===void 0&&(YaP=document.createElement("template"));var b=YaP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);z0o=W}W=z0o;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var UyZ;var oE=function(){var W=_.O.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.Z(oE,_.O);oE.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
oE.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oE.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oE.prototype,"modernUpdate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],oE.prototype,"buttonStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],oE.prototype,"buttonType",void 0);
_.P([_.h({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],oE);
_.H(oE,"ytd-ad-hover-text-button-renderer",function(){if(UyZ!==void 0)return UyZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UyZ=W},{mode:1});var LPU;var lZ=function(){var W=_.O.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.S("web_button_rework");return W};
_.Z(lZ,_.O);lZ.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.q2(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
_.P([_.J(),_.Y("design:type",Object)],lZ.prototype,"buttonOverrides",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lZ.prototype,"modern",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lZ.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],lZ);
_.H(lZ,"ytd-live-chat-purchased-product-message-renderer",function(){if(LPU!==void 0)return LPU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LPU=W},{mode:1});var Ekr;var ALy;var ZS=function(){var W=_.O.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.Z(ZS,_.O);ZS.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
ZS.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))};
ZS.prototype.isContainerDeletedChanged=ZS.prototype.isContainerDeletedChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],ZS.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ZS.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ZS.prototype,"isContainerDeleted",void 0);
_.P([_.J(),_.Y("design:type",String)],ZS.prototype,"deletedStateMessage",void 0);_.P([_.ul("isContainerDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZS.prototype,"isContainerDeletedChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],ZS);
_.H(ZS,"ytd-sponsorships-live-chat-header-renderer",function(){if(ALy!==void 0)return ALy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ALy=W},{mode:1});var $O=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.Z($O,_.O);$O.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]]"}}}}}};
$O.prototype.onCtaButtonClick=function(){var W,e=_.l((W=this.data)==null?void 0:W.optInPrompt,_.Md);if(W=this.maybeGetButtonCommand(e)){var t;(t=_.Sg())==null||t.clickCommand(W)}};
$O.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.l(W.command,dUB)===void 0&&_.l(W.command,Nfk)===void 0?null:W.command};
$O.prototype.shouldHideOptinPrompt=function(W,e){return!W||e};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],$O.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$O.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$O.prototype,"modern",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],$O);
_.H($O,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Ekr!==void 0)return Ekr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ekr=W},{mode:1});var NYv;var kO=function(){return _.O.apply(this,arguments)||this};
_.Z(kO,_.O);kO.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
kO.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))};
kO.prototype.isDeletedChanged=kO.prototype.isDeletedChanged;_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],kO.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kO.prototype,"data",void 0);_.P([_.ul("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kO.prototype,"isDeletedChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],kO);
_.H(kO,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(NYv!==void 0)return NYv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return NYv=W},{mode:1});var pu=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.Z(pu,_.O);_.r=pu.prototype;
_.r.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"}}}};
_.r.handleLiveChatAction=function(W){_.l(W,wqh)?this.handleMarkChatItemAsDeletedAction(_.l(W,wqh)):_.l(W,aYh)&&this.handleRemoveChatItemAction(_.l(W,aYh))};
_.r.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.r.handleMarkChatItemAsDeletedAction=function(W){var e=this,t;((t=this.data)==null?0:t.items)&&this.data.items.forEach(function(b,m){var q=Object.keys(b)[0];Object.values(b)[0].id===W.targetItemId&&e.markAsDeleted("data.items",m,q,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.r.handleRemoveChatItemAction=function(W){var e=this,t;((t=this.data)==null?0:t.items)&&this.data.items.forEach(function(b,m){Object.values(b)[0].id===W.targetItemId&&e.splice("data.items",m,1)})};
_.r.markAsDeleted=function(W,e,t,b,m){W=[W,e,t].join(".");this.set(W+".deletedStateMessage",b);this.set(W+".showOriginalContentMessage",m)};
_.P([_.J(),_.Y("design:type",Object)],pu.prototype,"data",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],pu);
_.H(pu,"yt-live-chat-item-display-list-renderer",function(){if(jkb===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;yLD===void 0&&(yLD=document.createElement("template"));var b=yLD;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jkb=W}W=jkb;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var dyo;var WNP,eBr=function(){if(WNP!==void 0)return WNP;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;dyo===void 0&&(dyo=document.createElement("template"));var b=dyo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return WNP=W};var yB=function(){var W=_.O.apply(this,arguments)||this;W.isHeader=!1;return W};
_.Z(yB,_.O);yB.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Ec.Object.defineProperties(yB,{template:{configurable:!0,enumerable:!0,get:function(){return eBr()}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yB.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yB.prototype,"isHeader",void 0);_.P([_.gz({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],yB);_.H(yB,"yt-live-chat-item-display-renderer",function(){return eBr()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var t0e,bNP,QWN,RBZ;
t0e={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}};bNP={home:"eohps",search:"eosps",watch:"eowps"};_.m4U=["watch","search","home"];
_.j_=function(){this.JSC$12231_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12231_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Ot("PRECONSTRUCTION_DELAY",0);this.signals_=_.sj();this.targetPage_=""};
_.j_.prototype.init=function(W,e){W=W===void 0?"":W;e=e===void 0?null:e;if(this.JSC$12231_isInitialized_)this.abort();else if(this.JSC$12231_isInitialized_=!0,W&&_.rYB(this,W),e){var t=_.h2(this.signals_,"pcl")?0:10,b=function(){for(var m=0,q;q=_.m4U[m++];)q!=W&&q!=e&&this.pendingPages_.push(q);_.q1P(this)}.bind(this);
this.signals_.parkOrScheduleJob(b,t,"pcl")}};
_.j_.prototype.abort=function(){this.fragmentJobId_&&(_.Tm.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);RBZ(this)};
_.rYB=function(W,e){W.JSC$12231_isInitialized_&&!W.targetPage_&&(W.targetPage_=e,QWN(W,e),W.isInitialPass_=!1,QWN(W,e),W.signals_.processSignal(bNP[W.targetPage_]),RBZ(W),_.q1P(W))};
_.q1P=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.kM(_.Tm,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.rYB(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
QWN=function(W,e){if(e=t0e[e])for(var t in e){var b=!1,m=t;t.charAt(0)=="~"&&(b=!0,m=t.substring(1));var q=e[t];q=typeof q=="object"?q:{count:q};e[t]=q;q.componentName=m;q.count>0&&(W.isInitialPass_?b||W.isSeenDuringInitialPass_[m]||(W.JSC$12231_queue_.push({componentName:m,count:1,signals:q.signals}),W.isSeenDuringInitialPass_[m]=!0,q.count--):W.JSC$12231_queue_.push(q))}};
RBZ=function(W){W.JSC$12231_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.j_.getInstance=function(){return _.Fq(_.j_)};var FNh=function(){this.signals=_.sj();this.init()};
FNh.prototype.startPreconstruction=function(){_.j_.getInstance().init(_.MD("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
FNh.prototype.init=function(){XEZ(this);window.Polymer&&T8b&&WIc();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.tz.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.MD("IS_HOMEPAGE_COLD")||_.MD("IS_RESULTS_PAGE_COLD")||_.MD("IS_WATCH_PAGE_COLD"))){IEN(this);break a}vgL(Wm2,this.onNotifications,this)}};
var XEZ=function(W){var e=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.Kt(Error("th"),"WARNING"),e()):_.YrG(window,"load",e)};
FNh.prototype.onNotifications=function(W){W.timer||(_.MD("IS_HOMEPAGE_COLD")||_.MD("IS_RESULTS_PAGE_COLD")||_.MD("IS_WATCH_PAGE_COLD"))&&IEN(this)};
var IEN=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new FNh;var Cu,aES=function(){return _.D0.apply(this,arguments)||this};
_.Z(aES,_.D0);_.r=aES.prototype;_.r.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var e=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);if(!Cu){var t=_.mn("custom_active_view_tos_timeout_ms");Cu=t>0&&t!==36E5?new jgD(this.getVersion(),t):new jgD(this.getVersion())}n39(Cu,this.hostElement);fFs(Cu,this.hostElement,e,W)}};
_.r.stopActiveViewMeasurement=function(){Cu&&n39(Cu,this.hostElement)};
_.r.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.r.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.r.getVersion=function(){var W=_.Ot("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.r.getUrlPrefixesFromCommand=function(W){if(!W)return[];var e=[];W=_.R(W);for(var t=W.next();!t.done;t=W.next())if(t=t.value,t.loggingUrls){t=_.R(t.loggingUrls);for(var b=t.next();!b.done;b=t.next())b=b.value,b.baseUrl&&e.push(b.baseUrl)}return e};
_.P([_.SB()],aES);var nu=[aES.prototype];var wEN=function(){return _.D0.apply(this,arguments)||this};
_.Z(wEN,_.D0);_.Ec.Object.defineProperties(wEN.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_entity_store_from_dependency_injection")?_.Yt():_.Eb()}}});
_.P([_.SB()],wEN);_.fu=[gt.prototype,wEN.prototype];var uly=["ytd-rich-shelf-renderer"],gW=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.Z(gW,_.D0);_.r=gW.prototype;_.r.dismissibleItemIsDismissedChanged_=function(W){_.S("kevlar_fluid_dismiss")&&(W?_.q2(this.hostElement,"yt-dismissible-item-dismissed"):_.q2(this.hostElement,"yt-dismissible-item-undismissed"))};
_.r.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.r.dismissibleItemReset_=function(){var W=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 _.c3(function(e,t){W.followUpDialogPromiseResolve=e;W.followUpDialogPromiseReject=t});
_.q2(this.hostElement,"yt-enable-lockup-interaction")};
_.r.dismissibleItemOnYtServiceRequestSent_=function(W,e){e.actions&&this.dismissibleItemProcessActions(e.actions,W)};
_.r.dismissibleItemOnRequestSent=function(W){if(_.S("web_button_rework"))for(var e=_.R(W.detail),t=e.next();!t.done;t=e.next()){var b=void 0;(t=(b=_.l(t.value,_.c6))==null?void 0:b.actions)&&this.dismissibleItemProcessActions(t,W)}};
_.r.dismissibleItemOnCommandSent=function(W,e){e&&this.dismissibleItemProcessActions(e,W)};
_.r.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.r.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.r.dismissibleItemProcessActions=function(W,e){for(var t=0;t<W.length;t++){var b=W[t],m=void 0;((m=_.l(b,_.wy))==null?0:m.commands)&&this.dismissibleItemProcessActions(_.l(b,_.wy).commands,e);if(_.l(b,_.$i)){if(m=_.l(b,_.$i),!m.replaceParentSection||uly.includes(this.hostElement.nodeName.toLowerCase()))_.S("web_see_fewer_shorts_reactive_dismissal")&&m.groupDismissal&&fE2(this,m.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(m),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.SX("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:b})),b=void 0,(b=e)==null||b.stopPropagation()}else if(_.l(b,lnr))this.dismissibleItemHandleHideEnclosingAction_(),b=void 0,(b=e)==null||b.stopPropagation();else if(_.l(b,x7r))_.S("web_see_fewer_shorts_reactive_dismissal")&&(b=_.l(b,x7r),m=void 0,((m=b)==null?0:m.targetGroupId)&&fE2(this,{targetGroupId:b.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.SX("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),b=void 0,(b=e)==null||b.stopPropagation();else if(_.l(b,_.c6))(b=_.l(b,_.c6).actions)&&_.IT(this.hostElement,b,this.hostElement),b=void 0,(b=e)==null||b.stopPropagation();else{var q=m=void 0;((m=_.l(b,_.hC))==null?void 0:m.signal)!=="TELL_US_WHY"||((q=_.l(b,_.hC))==null?0:q.targetId)&&_.S("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),b=void 0,(b=e)==null||b.stopPropagation())}}};
_.r.dismissibleItemOnYtServiceRequestCompleted_=function(W,e){var t=this.get("feedbackResponses.0.followUpDialog",e.data);t?this.followUpDialogPromiseResolve(t):e.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(e.actions,W)};
_.r.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var e=null;(e=_.rz(this.hostElement).querySelector("#dismissed"))&&_.Uc(this,function(){_.EH(e)});
_.q2(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.r.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.r.dismissibleItemHandleUndoFeedbackAction_=function(){_.q2(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.r.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(e){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:e}})})};
gW.prototype.dismissibleItemOnYtServiceRequestCompleted_=gW.prototype.dismissibleItemOnYtServiceRequestCompleted_;gW.prototype.dismissibleItemOnCommandSent=gW.prototype.dismissibleItemOnCommandSent;gW.prototype.dismissibleItemOnRequestSent=gW.prototype.dismissibleItemOnRequestSent;gW.prototype.dismissibleItemOnYtServiceRequestSent_=gW.prototype.dismissibleItemOnYtServiceRequestSent_;gW.prototype.dismissibleItemDataChanged_=gW.prototype.dismissibleItemDataChanged_;
gW.prototype.dismissibleItemIsDismissedChanged_=gW.prototype.dismissibleItemIsDismissedChanged_;_.P([_.y(_.UP),_.Y("design:type",Object)],gW.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gW.prototype,"isDismissed",void 0);_.P([_.J(),_.Y("design:type",Object)],gW.prototype,"dismissedRenderer",void 0);
_.P([_.ul("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],gW.prototype,"dismissibleItemIsDismissedChanged_",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gW.prototype,"dismissibleItemDataChanged_",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],gW.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.P([_.wz("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],gW.prototype,"dismissibleItemOnRequestSent",null);
_.P([_.wz("yt-dismissible-item-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Array]),_.Y("design:returntype")],gW.prototype,"dismissibleItemOnCommandSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],gW.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.P([_.SB()],gW);_.Tx=[_.UP,_.fu,gW.prototype];var JN=function(){var W=_.D0.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.Z(JN,_.D0);JN.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Uc(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.RH(W,"grid",!0)}};
JN.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
JN.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.rz(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
JN.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.bzr.getInstance();var e=this.get("pageSubtype");W=e&&W4P.includes(e)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(e=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.RH(e,W,!0),this.currentGridClass&&_.RH(e,this.currentGridClass,!1),this.currentGridClass=W)};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],JN.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",String)],JN.prototype,"gridStateAwareSizingElementSelector",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],JN.prototype,"disableGridStateAware",void 0);_.P([_.SB()],JN);_.xO=[JN.prototype,_.qM.YtActionHandlerBehavior];_.Op=new _.W_("GUIDE_TOKEN");var sp;_.M$={};sp=function(){var W=_.D0.apply(this,arguments)||this;W.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 W};
_.Z(sp,_.D0);_.r=sp.prototype;_.r.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.r.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.ee().resolve(_.Wi(_.Op));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.r.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.r.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.r.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.r.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.r.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
sp.prototype.onActiveEndpointChange=sp.prototype.onActiveEndpointChange;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],sp.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sp.prototype,"guidePersistentAndVisible",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sp.prototype,"miniGuideVisible",void 0);_.P([_.J(),_.Y("design:type",Object)],sp.prototype,"activeEndpoint",void 0);
_.P([_.ul("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sp.prototype,"onActiveEndpointChange",null);_.P([_.J(),_.Y("design:type",Boolean)],sp.prototype,"guideOpened",void 0);_.P([_.SB()],sp);_.M$.YtdGuideStateAwareBehavior=[];_.M$.YtdGuideStateAwareBehavior.push(sp.prototype,_.qM.YtActionHandlerBehavior);var cYo=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],hN=function(){var W=_.D0.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$12262_touched=!1;return W};
_.Z(hN,_.D0);_.r=hN.prototype;_.r.created=function(){this.useExpandableTooltip=!cYo.includes(this.is)};
_.r.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.r.detached=function(){this.useExpandableTooltip=!1};
_.r.lockupOnDown=function(W){this.interactionElement&&!_.NA(_.LB(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.r.lockupOnUp=function(W){this.interactionElement&&!_.NA(_.LB(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.r.onTouchStart=function(){this.JSC$12262_touched=!0};
_.r.lockupOnMouseEnter=function(){var W=this,e=_.mn("kevlar_lockup_hover_delay",-1);this.JSC$12262_touched&&e>=0?(_.Tm.cancelJob(this.hoverJobId),this.hoverJobId=_.Tm.addJob(function(){W.lockupIsHovered=!0},8,e),this.JSC$12262_touched=!1):this.lockupIsHovered=!0};
_.r.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Tm.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.r.lockupOnPopupClosed=function(W,e){var t;((t=e.popupRenderer)==null?void 0:t.is)==="ytd-menu-popup-renderer"&&(W=e.popupRenderer.veData,e=_.fc(),W&&e&&_.Yh(e,[W]))};
_.r.lockupOnLockupRequested=function(W){var e=W.detail.videoIds[0],t;W.detail&&e===((t=this.data)==null?void 0:t.videoId)&&(W.detail.returnValue=[this.data])};
_.r.lockupOnYtServiceRequestSent=function(W,e){if(W=e.actions)for(var t=0;t<W.length;t++){var b=W[t];if(b.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&e.ajaxPromise){var m=void 0,q=(m=_.l(e.endpoint,_.Jr))==null?void 0:m.playlistId;m=void 0;b=(m=b.removedVideoId)!=null?m:"";kCh(_.K5(),b,q)}else b.action==="ACTION_REMOVE_VIDEO"&&e.ajaxPromise&&(q=void 0,b=(q=b.setVideoId)!=null?q:"",_.pCZ(_.K5(),b))}};
_.r.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.r.lockupOnLockupEnabled=function(){if(!this.$){var W=_.ee().resolve(_.WS).getCurrentPage(),e=this.getParentRenderer?this.getParentRenderer():void 0;_.JC(new _.o_("component not ready",this.is,this.isAttached,W==null?void 0:W.is,e==null?void 0:e.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
hN.prototype.lockupOnLockupEnabled=hN.prototype.lockupOnLockupEnabled;hN.prototype.lockupOnLockupDisabled=hN.prototype.lockupOnLockupDisabled;hN.prototype.lockupOnYtServiceRequestSent=hN.prototype.lockupOnYtServiceRequestSent;hN.prototype.lockupOnLockupRequested=hN.prototype.lockupOnLockupRequested;hN.prototype.lockupOnPopupClosed=hN.prototype.lockupOnPopupClosed;hN.prototype.lockupOnMouseLeave=hN.prototype.lockupOnMouseLeave;hN.prototype.lockupOnMouseEnter=hN.prototype.lockupOnMouseEnter;
hN.prototype.onTouchStart=hN.prototype.onTouchStart;hN.prototype.lockupOnUp=hN.prototype.lockupOnUp;hN.prototype.lockupOnDown=hN.prototype.lockupOnDown;_.P([_.J(),_.Y("design:type",Object)],hN.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],hN.prototype,"lockupIsHovered",void 0);_.P([_.J(),_.Y("design:type",Boolean)],hN.prototype,"lockupTouchTriggered",void 0);_.P([_.J(),_.Y("design:type",Boolean)],hN.prototype,"useExpandableTooltip",void 0);
_.P([_.vG("#interaction"),_.Y("design:type",Object)],hN.prototype,"interactionElement",void 0);_.P([_.wz("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hN.prototype,"lockupOnDown",null);_.P([_.wz("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hN.prototype,"lockupOnUp",null);
_.P([_.wz("touchstart"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hN.prototype,"onTouchStart",null);_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hN.prototype,"lockupOnMouseEnter",null);_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hN.prototype,"lockupOnMouseLeave",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],hN.prototype,"lockupOnPopupClosed",null);_.P([_.wz("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hN.prototype,"lockupOnLockupRequested",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],hN.prototype,"lockupOnYtServiceRequestSent",null);_.P([_.wz("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hN.prototype,"lockupOnLockupDisabled",null);
_.P([_.wz("yt-enable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hN.prototype,"lockupOnLockupEnabled",null);_.P([_.SB()],hN);_.Hl=[hN.prototype];_.v_D={YtdReduxBehavior:[]};_.v_D.YtdReduxBehavior.push.apply(_.v_D.YtdReduxBehavior,_.fu);var Ku=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.S("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.Z(Ku,_.D0);_.r=Ku.prototype;_.r.computeThumbnailOverlaySidePanelWidth_=function(W,e){return W-e};
_.r.computeSize=function(W,e){if(!this.disableRounding){if(!W&&!e)return"small";W=Math.max(W||0,e||0);return W>=256?"large":W>=96?"medium":"small"}};
_.r.computeFinalHoveredState_=function(W,e,t){return this.nowPlaying?!1:_.S("kevlar_thumbnail_fluid")&&W?e:t};
_.r.computeHoverOverlays_=function(W,e){return W&&e?e:void 0};
_.r.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.r.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.r.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.S("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.G3();var e=W.currentEndpoint;!this.disableNowPlaying&&e&&_.l(e,_.z4)&&this.data?(e=_.l(e,_.z4),this.nowPlaying=this.data.playlistId?e.playlistId===this.data.playlistId:e.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
Ku.prototype.checkMiniplayer_=Ku.prototype.checkMiniplayer_;Ku.prototype.onMouseLeave_=Ku.prototype.onMouseLeave_;Ku.prototype.onMouseEnter_=Ku.prototype.onMouseEnter_;Ku.prototype.computeHoverOverlays_=Ku.prototype.computeHoverOverlays_;Ku.prototype.computeFinalHoveredState_=Ku.prototype.computeFinalHoveredState_;Ku.prototype.computeSize=Ku.prototype.computeSize;Ku.prototype.computeThumbnailOverlaySidePanelWidth_=Ku.prototype.computeThumbnailOverlaySidePanelWidth_;
_.P([_.y(_.fu),_.Y("design:type",Object)],Ku.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],Ku.prototype,"height",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ku.prototype,"bottomSidePanel",void 0);_.P([_.J(),_.Y("design:type",Number)],Ku.prototype,"width",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"disableNowPlaying",void 0);
_.P([_.J({selector:_.gO}),_.Y("design:type",Boolean)],Ku.prototype,"miniplayerIsActive",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"disableTooltips",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"useHoveredProperty",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"hovered",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"isThumbnailHovered_",void 0);
_.P([_.J({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Y("design:type",Boolean)],Ku.prototype,"finalHoveredState_",void 0);_.P([_.J({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Y("design:type",Number)],Ku.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ku.prototype,"addBackground",void 0);
_.P([_.J({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Y("design:type",Object)],Ku.prototype,"hoverOverlays_",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ku.prototype,"nowPlaying",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ku.prototype,"isVideoPlaying",void 0);_.P([_.J(),_.Y("design:type",Object)],Ku.prototype,"disableRounding",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Y("design:type",Object)],Ku.prototype,"size",void 0);_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ku.prototype,"onMouseEnter_",null);_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ku.prototype,"onMouseLeave_",null);
_.P([_.ul("data","disableNowPlaying","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ku.prototype,"checkMiniplayer_",null);_.P([_.SB()],Ku);var GsP=[Ku.prototype];_.Pl={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,e){return W+":"+_.bh(e)},
getPlayerListener_:function(W,e,t){W=this.getPlayerListenerKey_(W,e);e=this.playerListeners_.get(W);t&&this.playerListeners_.delete(W);return e},
savePlayerListener_:function(W,e){var t=e.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,e),t);return t},
listenToPlayerEvent:function(W,e,t){t=this.savePlayerListener_(e,t);W.addEventListener(e,t)},
listenToPlayerEvents:function(W,e){e.forEach(function(t,b){this.listenToPlayerEvent(W,b,t)}.bind(this))},
unlistenFromPlayerEvent:function(W,e,t){t=this.getPlayerListener_(e,t,!0);W.removeEventListener(e,t)},
unlistenFromPlayerEvents:function(W,e){e.forEach(function(t,b){this.unlistenFromPlayerEvent(W,b,t)}.bind(this))}}};
_.VB=function(){};_.D4k=new _.W_("PLAYER_API_TOKEN");var sWS=!1,PPg,HNZ=!1,iNv;var rN=function(W,e,t,b,m){_.ka.call(this);var q=this;this.playerId=e;this.webPlayerContextConfig=b;this.n8I=m;this.kqs=!1;this.api={};this.e66=this.fgV=null;this.q1q=new _.uG;this.tD={};this.tDS=this.cgM=this.elementId=this.sNB=this.config=null;this.jbJ=!1;this.uD=this.e4W=null;this.c9S={};this.xJy=["onReady"];this.lastError=null;this.dDP=NaN;this.vgW={};this.ahJ=0;this.ku=this.targetElement=W;_.w$(this,this.q1q);S1N(this);t?this.ahJ=setTimeout(function(){q.loadNewVideoConfig(t)},0):b&&(BVP(this),
o_b(this))};
_.Z(rN,_.ka);rN.prototype.getId=function(){return this.playerId};
rN.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.ahJ&&(clearTimeout(this.ahJ),this.ahJ=0);var e=W||{};e instanceof J2S||(e=new J2S(e));this.config=e;this.setConfig(W);o_b(this);this.isReady()&&lEZ(this)}};
var BVP=function(W){var e;W.webPlayerContextConfig?e=W.webPlayerContextConfig.rootElementId:e=W.config.attrs.id;W.elementId=e||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var t;((t=W.ku)==null?void 0:t.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
rN.prototype.setConfig=function(W){this.sNB=W;this.config=ZNP(W);BVP(this);if(!this.cgM){var e;this.cgM=$4o(this,((e=this.config.args)==null?void 0:e.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var t;if((t=this.config)==null?0:t.attrs)W=this.config.attrs,(e=W.width)&&this.ku&&(this.ku.style.width=MW(Number(e)||e,!0)),(W=W.height)&&this.ku&&(this.ku.style.height=MW(Number(W)||W,!0))};
var lEZ=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var e;W.api.loadVideoByPlayerVars((e=W.config.args)!=null?e:null)}else W.api.cueVideoByPlayerVars(W.config.args)},pEy=function(W){var e=!0,t=W.getPlayerElement();
t&&W.config&&(e=t.dataset.version===kso(W));return e&&!!_.HO("yt.player.Application.create")},o_b=function(W){if(!W.isDisposed()&&!W.jbJ){var e=pEy(W);
if(e&&(W.getPlayerElement()?"html5":null)==="html5")W.tDS="html5",W.isReady()||yYD(W);else if(jWe(W),W.tDS="html5",e&&W.uD&&W.targetElement)W.targetElement.appendChild(W.uD),yYD(W);else{W.config&&(W.config.loaded=!0);var t=!1;W.e4W=function(){t=!0;var b=CPS(W,"player_bootstrap_method")?_.HO("yt.player.Application.createAlternate")||_.HO("yt.player.Application.create"):_.HO("yt.player.Application.create");var m=W.config?ZNP(W.config):void 0;b&&b(W.targetElement,m,W.webPlayerContextConfig,W.n8I);yYD(W)};
W.jbJ=!0;e?W.e4W():(_.sT(kso(W),W.e4W),(e=n_8(W))&&BUG(e||""),fEe(W)&&!t&&_.Nz("yt.player.Application.create",null))}}};
rN.prototype.getPlayerElement=function(){var W=_.mg(document,this.elementId);!W&&this.ku&&this.ku.querySelector&&(W=this.ku.querySelector("#"+this.elementId));return W};
var yYD=function(W){if(!W.isDisposed()){var e=W.getPlayerElement(),t=!1;e&&e.getApiInterface&&e.getApiInterface()&&(t=!0);if(t){W.jbJ=!1;if(!CPS(W,"html5_remove_not_servable_check_killswitch")){var b;if((e==null?0:e.isNotServable)&&W.config&&(e==null?0:e.isNotServable((b=W.config.args)==null?void 0:b.video_id)))return}g_b(W)}else W.dDP=setTimeout(function(){yYD(W)},50)}},g_b=function(W){S1N(W);
W.kqs=!0;var e=W.getPlayerElement();if(e){W.fgV=TVb(W,e,"addEventListener");W.e66=TVb(W,e,"removeEventListener");var t=e.getApiInterface();t=t.concat(e.getInternalApiInterface());for(var b=W.api,m=0;m<t.length;m++){var q=t[m];b[q]||(b[q]=TVb(W,e,q))}}for(var Q in W.tD)W.tD.hasOwnProperty(Q)&&W.fgV&&W.fgV(Q,W.tD[Q]);lEZ(W);W.cgM&&W.cgM(W.api);W.q1q.publish("onReady",W.api)},TVb=function(W,e,t){var b=e[t];
return function(){var m=_.$N.apply(0,arguments);try{return W.lastError=null,b.apply(e,m)}catch(q){if(t!=="sendAbandonmentPing")throw q.params=t,W.lastError=q,m=new _.o_("PlayerProxy error in method call",{error:q,method:t,playerId:W.playerId}),m.level="WARNING",m;}}},S1N=function(W){W.kqs=!1;
if(W.e66)for(var e in W.tD)W.tD.hasOwnProperty(e)&&W.e66(e,W.tD[e]);for(var t in W.vgW)W.vgW.hasOwnProperty(t)&&clearTimeout(Number(t));W.vgW={};W.fgV=null;W.e66=null;e=W.api;for(var b in e)e.hasOwnProperty(b)&&(e[b]=null);e.addEventListener=function(m,q){W.addEventListener(m,q)};
e.removeEventListener=function(m,q){W.removeEventListener(m,q)};
e.destroy=function(){W.dispose()};
e.getLastError=function(){return W.getLastError()};
e.getPlayerType=function(){return W.getPlayerType()};
e.getCurrentVideoConfig=function(){return W.sNB};
e.loadNewVideoConfig=function(m){W.loadNewVideoConfig(m)};
e.isReady=function(){return W.isReady()}};
rN.prototype.isReady=function(){return this.kqs};
rN.prototype.addEventListener=function(W,e){var t=this;this.isDisposed();var b=$4o(this,e);b&&(_.PZ(this.xJy,W)||this.tD[W]||(e=JYZ(this,W),this.fgV&&this.fgV(W,e)),this.q1q.subscribe(W,b),W==="onReady"&&this.isReady()&&setTimeout(function(){b(t.api)},0))};
rN.prototype.removeEventListener=function(W,e){this.isDisposed()||(e=$4o(this,e))&&this.q1q.unsubscribe(W,e)};
var $4o=function(W,e){var t=e;if(typeof e==="string"){if(W.c9S[e])return W.c9S[e];t=function(){var b=_.$N.apply(0,arguments),m=_.HO(e);if(m)try{m.apply(_.tz,b)}catch(q){throw b=new _.o_("PlayerProxy error when executing callback",{error:q}),b.level="ERROR",b;}};
W.c9S[e]=t}return t?t:null},JYZ=function(W,e){var t=function(b){var m=function(){W.isDisposed();
if(!W.isDisposed())try{W.q1q.publish(e,b!=null?b:void 0)}catch(X){var Q=new _.o_("PlayerProxy error when creating global callback",{error:X.message,event:e,playerId:W.playerId,data:b,originalStack:X.stack,componentStack:X.componentStack});Q.level="WARNING";throw Q;}};
if(CPS(W,"web_player_publish_events_immediately"))m();else{var q=setTimeout(function(){m();_.kJ.remove(W.vgW,String(q))},0);
_.kJ.add(W.vgW,String(q),!0)}};
return W.tD[e]=t};
rN.prototype.getPlayerType=function(){return this.tDS||(this.getPlayerElement()?"html5":null)};
rN.prototype.getLastError=function(){return this.lastError};
var jWe=function(W){W.cancel();S1N(W);W.tDS=null;W.config&&(W.config.loaded=!1);var e=W.getPlayerElement();e&&(pEy(W)||!fEe(W)?W.uD=e:(e&&e.destroy&&e.destroy(),W.uD=null));W.targetElement&&_.nd(W.targetElement)};
rN.prototype.cancel=function(){this.e4W&&_.L6c(kso(this),this.e4W);clearTimeout(this.dDP);this.jbJ=!1};
rN.prototype.disposeInternal=function(){jWe(this);if(this.uD&&this.config&&this.uD.destroy)try{this.uD.destroy()}catch(e){var W=new _.o_("PlayerProxy error during disposal",{error:e});W.level="ERROR";throw W;}this.c9S=null;for(W in this.tD)this.tD.hasOwnProperty(W)&&delete this.tD[W];this.sNB=this.config=this.api=null;delete this.targetElement;delete this.ku;_.ka.prototype.disposeInternal.call(this)};
var fEe=function(W){var e,t;W=(e=W.config)==null?void 0:(t=e.args)==null?void 0:t.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},kso=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},n_8=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},CPS=function(W,e){if(W.webPlayerContextConfig)var t=W.webPlayerContextConfig.serializedExperimentFlags;
else{var b;if((b=W.config)==null?0:b.args)t=W.config.args.fflags}return(t||"").split("&").includes(e+"=true")},ZNP=function(W){for(var e={},t=_.R(Object.keys(W)),b=t.next();!b.done;b=t.next()){b=b.value;
var m=W[b];e[b]=typeof m==="object"?_.kJ.clone(m):m}return e};var E_G={},LNR="player_uid_"+(Math.random()*1E9>>>0);var iZ=function(W,e,t,b,m,q){e=e===void 0?document.createElement("div"):e;this.webPlayerContextConfig=W;this.container=e;this.commandResolver=t;this.apiResolver=d4D();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Xu;b||q?x48(this):ONP(this);this.pendingPlayerResponse=b;this.pendingWatchNextResponse=m;this.pendingPlayerVars=q;M0D(this)};
iZ.prototype.loadVideoWithPlayerResponse=function(W,e,t){this.loadVideo(W,e,t)};
iZ.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
iZ.prototype.destroy=function(W){if(W=_.mg(document,W))W=LNR+"_"+_.bh(W),(W=E_G[W])&&W.dispose()};
var hBe=function(W,e){var t;_.F(function(b){if(b.nextAddress==1)return W.pendingWatchNextResponse=e,W.synchronousApi?(t=W.synchronousApi,b.jumpTo(2)):_.a(b,W.api,3);b.nextAddress!=2&&(t=b.yieldResult);sWZ(W,t);W.pendingWatchNextResponse&&(t.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.u8(b)})},sWZ=function(W,e){var t;
if(!(e==null?0:(t=e.isReady)==null?0:t.call(e))){var b;W=new _.o_("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:e===void 0,playerApiNull:e===null,playerApiReady:(e==null?void 0:(b=e.isReady)==null?void 0:b.call(e))===!0,playerApiMethods:e?Object.keys(e):[]});_.gQ(W)}},HNU=function(W,e){if(typeof W[e]==="function")return W[e]()},KNr=function(W){var e=window,t,b=(t=e.ytplayer)==null?void 0:t.bootstrapPlayerContainer;
if((t=b==null?void 0:b.firstElementChild)&&_.Vd(t,"html5-video-player")){var m,q,Q=(m=e.ytplayer)==null?void 0:(q=m.bootstrapWebPlayerContextConfig)==null?void 0:q.contextId;m=W.webPlayerContextConfig.contextId;if(Q&&Q===m){b!==W.container&&(b=!1,HNU(t,"getPlayerState")===2&&(b=!0),W.container.appendChild(t),b||HNU(t,"playVideo"));var X;if((X=e.ytplayer)==null?0:X.bootstrapPlayerResponse)W.bootstrapPlayerResponse=e.ytplayer.bootstrapPlayerResponse}}},M0D=function(W){var e,t,b,m,q;
_.F(function(Q){if(Q.nextAddress==1)return W.pageReadyOrDataAvailable?Q.jumpTo(2):_.a(Q,W.pageReadyOrDataAvailableResolver.promise,2);if(Q.nextAddress!=4)return!_.S("kevlar_player_unified_player_loading")||hB2()&&KNQ()?Q.jumpTo(4):_.a(Q,zBQ(),4);KNr(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)e=U4v(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(e.loaded=!0),W.bootstrapPlayerResponse=void 0;
t=NVg(W.container,e,W.webPlayerContextConfig);((b=e)==null?0:b.loaded)&&W.pendingWatchNextResponse?(hBe(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):PPD(W);m=function(X){t.removeEventListener("onReady",m);W.synchronousApi=X;W.apiResolver.resolve(X)};
t.addEventListener("onReady",m);W.commandResolver!==void 0&&(q=W.commandResolver,t.addEventListener("innertubeCommand",function(X){q(X)}));
_.u8(Q)})};
iZ.prototype.loadVideo=function(W,e,t){var b=this,m,q,Q,X,I,u,c,v,D;return _.F(function(B){if(B.nextAddress==1)return b.pendingPlayerResponse=W,b.pendingWatchNextResponse=e,b.pendingPlayerVars=t,x48(b),b.synchronousApi?(m=b.synchronousApi,B.jumpTo(2)):_.a(B,b.api,3);B.nextAddress!=2&&(m=B.yieldResult);sWZ(b,m);Q=new Promise(function(k){q=k});
X=function(){var k=m.getPlayerResponse();k&&(m.removeEventListener("onVideoDataChange",X),q(k))};
m.addEventListener("onVideoDataChange",X);if(b.pendingPlayerResponse||b.pendingPlayerVars)b.pendingPlayerResponse&&b.pendingPlayerResponse===b.bootstrapPlayerResponse?(q(b.pendingPlayerResponse),b.pendingWatchNextResponse&&hBe(b,b.pendingWatchNextResponse)):(I=U4v(b.pendingPlayerResponse,b.pendingWatchNextResponse,b.pendingPlayerVars),(D=(u=b.pendingPlayerResponse)==null?void 0:(c=u.playerConfig)==null?void 0:(v=c.playbackStartConfig)==null?void 0:v.startPaused)?m.cueVideoByPlayerVars(I.args):m.loadVideoByPlayerVars(I.args)),
PPD(b),b.bootstrapPlayerResponse=void 0;return B.return(Q)})};
var ONP=function(W){if(document.readyState==="complete"||document.readyState==="interactive")x48(W);else{var e=function(){document.removeEventListener("DOMContentLoaded",e);x48(W)};
document.addEventListener("DOMContentLoaded",e)}},x48=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},PPD=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.Ec.Object.defineProperties(iZ.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var YO=function(W){TM.call(this,W===void 0?"document_active":W);var e=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(t){e.transition("document_disposed",{event:t})});
window.addEventListener("beforeunload",function(t){e.transition("document_disposed_preventable",{event:t})});
window.addEventListener("unload",function(t){e.transition("document_disposed",{event:t});e.hasRun=new Map})};
_.Z(YO,TM);
YO.prototype.runPreventableDispose=function(W,e){if(!this.hasRun.get("document_disposed_preventable")){W(e==null?void 0:e.event);var t,b;if((e==null?0:(t=e.event)==null?0:t.defaultPrevented)||(e==null?0:(b=e.event)==null?0:b.returnValue)){e.event.returnValue||(e.event.returnValue=!0);e.event.defaultPrevented||e.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")};
YO.prototype.runDispose=function(W,e){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(e==null?void 0:e.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
YO.prototype.runFlush=function(W,e){W(e==null?void 0:e.event);this.transition("document_active")};
YO.prototype.runActive=function(){};var zx=function(W){TM.call(this,W===void 0?"document_visibility_unknown":W);var e=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(t){document.visibilityState==="visible"?e.transition("document_visible",{event:t}):e.transition("document_hidden",
{event:t})});
_.S("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(t){e.transition("document_backgrounded",{event:t})}),window.addEventListener("focus",function(t){e.transition("document_foregrounded",{event:t})}))};
_.Z(zx,TM);zx.prototype.runVisible=function(W,e){W(e==null?void 0:e.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
zx.prototype.runHidden=function(W,e){W(e==null?void 0:e.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
zx.prototype.runBackgrounded=function(W,e){W(e==null?void 0:e.event)};
zx.prototype.runForegrounded=function(W,e){W(e==null?void 0:e.event)};var Up=function(){this.teardownLifecycle=new YO;this.visibilityLifecycle=new zx};
Up.prototype.install=function(){var W=_.$N.apply(0,arguments),e=this;W.forEach(function(t){e.teardownLifecycle.install(t)});
W.forEach(function(t){e.visibilityLifecycle.install(t)})};var Lu=function(){Up.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.S("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.S("web_log_cfg_cee_ks")||_.kM(_.Tm,V0P)};
_.Z(Lu,Up);var WLG=function(){Lu.loggingInstance||(Lu.loggingInstance=new Lu);return Lu.loggingInstance};
Lu.prototype.logFinalPayload=function(){if(_.S("web_fp_via_jspb")){var W=new QzD,e=_.fc();e&&_.Ga(W,1,e);e=_.S("jspb_sparse_encoded_pivot")?new $M([{}]):new $M;_.mT(e,380,FGh,W);s8G("finalPayload",e);_.S("web_fp_via_jspb_and_json")&&_.nJ("finalPayload",{csn:_.fc()})}else _.nJ("finalPayload",{csn:_.fc()})};
Lu.prototype.abortSlisAndFlush=function(){DrU(V9);iy!=null&&iy.flush()};
Lu.prototype.flushInteractionLoggingAttachVes=function(){sje(_.Sg())};
var V0P=function(){var W=_.Ot("CLIENT_EXPERIMENT_EVENTS");if(W){var e=sRG();W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,e(t)&&_.nJ("genericClientExperimentEvent",{eventType:t});delete _.JJ.CLIENT_EXPERIMENT_EVENTS}};var iNh={};
iNh.YtPlayerBehavior=[_.Pl.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Xu;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;eqg(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.f1(this,"pan-down"),_.S("kevlar_pinch_fullscreen")&&_.pT().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.S("kevlar_pinch_fullscreen")&&_.pT().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,e,t){var b=this;qV(this.useUnifiedPlayer_());if(this.mainAppPlayer_)qV(!1,"MainAppPlayer already created.");else{var m=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.rz(this.hostElement).querySelector("#container");this.mainAppPlayer_=new iZ(this.getWebPlayerContextConfig_(),m,function(q){return _.cg(q,b.hostElement)},W,e,t);
this.mainAppPlayer_.api.then(function(q){b.player_=q;b.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&M_S.resolve(q)})}},
loadVideoWithPlayerResponse:function(W,e){var t=this;if(this.useUnifiedPlayer_()){var b=this.watchNextData,m,q=(m=W.videoDetails)==null?void 0:m.videoId,Q,X,I;(m=(Q=this.watchNextData)==null?void 0:(X=Q.currentVideoEndpoint)==null?void 0:(I=X.watchEndpoint)==null?void 0:I.videoId)&&q!=m&&(b=void 0,_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,b,e):this.createMainAppPlayer_(W,b,e);this.mainAppPlayer_.api.then(function(){_.q2(t.hostElement,
"yt-player-updated")})}else this.update(x4K(W,e))},
loadVideoWithPlayerVars:function(W){var e=this;this.useUnifiedPlayer_()?(_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.q2(e.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var e=this;if(this.useUnifiedPlayer_())qV(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var t=mRG(W.args);t&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==t&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(b){_.q2(e.hostElement,"yt-player-updated",_.S("kevlar_player_updated_obsolete_player_killswitch")?
b:void 0)})}_.TT(new _.o_("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.getPlayerPromise(),2);t=b.yieldResult;if(!t)throw Error("vh");W&&e.updatePlayerPlaylist_(W);_.u8(b)})},
acquireApi_:function(W){var e=this;if(this.useUnifiedPlayer_())qV(!1,"Invalid method call in kevlar_unified_player.");else return _.Tm.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(qV(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(t){e.shouldAutoplay_(W)?t.loadVideoByPlayerVars(W.args):t.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var e=this;if(this.useUnifiedPlayer_())qV(!1,"Invalid method call in kevlar_unified_player.");else return qV(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.JC(Error("wh")),qV(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.rz(this.hostElement).querySelector("#container"),zBQ().then(function(){var t=e.initPlayer_(W);e.playerResolver_.resolve(t);
return t})},
onPlayerReady_:function(W,e){this.useUnifiedPlayer_()?qV(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&M_S.resolve(W),e(W))},
maybeCallApiMethodOnElement_:function(W,e){if(typeof W[e]==="function")return W[e]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,e,t=(e=W.ytplayer)==null?void 0:e.bootstrapPlayerContainer;if((e=t==null?void 0:t.firstElementChild)&&e.classList.contains("html5-video-player")){var b,m,q=(b=W.ytplayer)==null?void 0:(m=b.bootstrapWebPlayerContextConfig)==null?void 0:m.contextId;b=this.getWebPlayerContextConfig_().contextId;if(q&&q===b){t!==this.playerContainer_&&(t=!1,this.maybeCallApiMethodOnElement_(e,"getPlayerState")===2&&(t=!0),this.playerContainer_.appendChild(e),t||this.maybeCallApiMethodOnElement_(e,
"playVideo"));var Q;if((Q=W.ytplayer)==null?0:Q.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var e=this;if(this.useUnifiedPlayer_())qV(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(t){e.maybeAdoptBootstrapPlayer_();var b=W?ONG(W):void 0;b&&b==e.bootstrapPlayerResponse_&&(W.loaded=!0);b=e.playerContainer_;var m=e.getWebPlayerContextConfig_();b=NVg(b,W,m);e.player_=b;e.onPlayerReadyEvent_=e.onPlayerReady_.bind(e,e.player_,t);e.player_.addEventListener("onReady",e.onPlayerReadyEvent_);e.player_.addEventListener("innertubeCommand",
e.onPlayerInnerTubeCommand_.bind(e));_.S("enable_web_shorts_captions_language_command")&&(e.player_.addEventListener("captionschanged",e.storePlayerCaptionLanguage_.bind(e)),e.player_.addEventListener("captionssettingschanged",e.storePlayerCaptionLanguage_.bind(e)),e.player_.addEventListener("onCaptionsTrackListChanged",e.storePlayerCaptionLanguage_.bind(e)))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.ee().resolve(_.WS).getCurrentPage();W&&W.getScrollTop()<=0?_.f1(this,"pan-down"):_.f1(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var e=this,t,b,m;return _.F(function(q){if(q.nextAddress==1)return t=_.ee().resolve(_.Wi(_.Oj)),b=!!(t&&t.playlistComponent&&t.playlistComponent.loopOn),_.a(q,e.getPlayerPromise(),2);var Q=m=q.yieldResult,X=Q.updatePlaylist,I=[];if(_.S("kevlar_player_playlist_use_local_index")){var u,c;var v=(c=(u=W.localCurrentIndex)!=null?u:W.currentIndex)!=null?c:0}else{var D;v=(D=W.currentIndex)!=null?D:0}if(W.contents)for(u=0;u<W.contents.length;u++)if((c=W.contents[u])&&c.playlistPanelVideoRenderer)if(i5D(c)){c=
c.playlistPanelVideoRenderer;D="";c.shortBylineText&&(D=_.Ub(c.shortBylineText));var B="";c.title?B=_.Ub(c.title):c.unplayableText&&(B=_.Ub(c.unplayableText));I.push({author:D,title:B,encrypted_id:c.videoId})}else u<v&&--v;X.call(Q,{index:v,list:W.playlistId?W.playlistId:"",loop:b,playlist_title:W.title,playlist_length:I.length,video:I,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.Ub(W.ownerName):void 0});_.u8(q)})},
focusOnPlayer:function(){_.Uc(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.Ep(_.ee().resolve(_.gd)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(e){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")e();else{var t=function(){document.removeEventListener("DOMContentLoaded",t);e()};
document.addEventListener("DOMContentLoaded",t)}})).then(function(){return zBQ()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.kM(_.Tm,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.TT(new _.o_("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?qV(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())qV(!1,"Invalid method call in kevlar_unified_player.");else{var e=this.get("args.el",W);return e&&e!="detailpage"&&this.isMiniplayerActive_()||e&&(e=="sponsorshipsoffer"||e=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=ONG(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.ee().resolve(_.Kn).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var e=W.getPlayerState();_.S("kevlar_player_check_ad_state_on_stop")&&(e=W.getPlayerState(W.getPresentingPlayerType()));e!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,e,t){t=t===void 0?!1:t;var b=this,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return e||(e=b.hostElement),m=b.useUnifiedPlayer_()?!!b.mainAppPlayer_:!!b.initPlayerPromise_,m?_.a(I,b.getPlayerPromise(),2):(t?W.insertBefore(e,W.firstChild):W.appendChild(e),I.return());q=I.yieldResult;Q=q.getPlayerState(q.getPresentingPlayerType());X=!1;if(Q==-1||Q==1||Q==3)X=!0;t?W.insertBefore(e,W.firstChild):W.appendChild(e);X&&q.playVideo();q.setSize(NaN,NaN);_.u8(I)})},
watchNextDataChanged_:function(W){var e=this;W&&(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&hBe(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(t){t.updateVideoData(e.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch"))qV(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.Ot("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.JC(Error("xh"));return W},
hasWebPlayerContextConfig_:function(){return!!_.Ot("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?qV(!1,"Invalid method call in kevlar_unified_player."):_.cg(W,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(W){var e=_.ee().resolve(_.B1);W=W==null?void 0:W.getOption("captions","track");var t=_.X4("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(W){var b,m=(b=_.D_(_.eBQ,t)())==null?void 0:b.value,q;b=typeof(W==null?void 0:W.translationLanguage)==="object"&&((q=W.translationLanguage)==null?void 0:q.languageName)||W.displayName||"";m!==b&&e.store.dispatch(_.SX("stringEntity",t,{key:t,value:b.toString()}))}else e.store.dispatch(_.SX("stringEntity",
t,{key:t,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var W=_.S("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.S("kevlar_unified_player")||W}}];var Y1P={};Y1P.YtPlaylistPanelBehavior=[_.d.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var e=W.playlistButtons.menuRenderer.topLevelButtons,t=e.length,b=0;b<t;b++)if(e[b].toggleButtonRenderer){var m=e[b].toggleButtonRenderer;m.defaultIcon.iconType=="LOOP"&&this.loopOn?m.isToggled=this.loopOn:m.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(m.isToggled=this.shuffleOn)}return W.playlistButtons}}];var zBr=function(W){m$.call(this,W,132);this.isDocument=W===document.documentElement};
_.Z(zBr,m$);zBr.prototype.calculateScrollDelta=function(W,e,t){var b=0;W<e?b=W<e-100?-48:-8:W>e+t&&(b=W>e+t+100?48:8);return b};
zBr.prototype.JSC$9349_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);m$.prototype.JSC$9349_onMouseMove.call(this,W)};var AN=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$12321_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(e){var t=e.JSC$9345_dragger;t.scrollTarget_=W.scrollElement;e=e.draggerEl;t&&e.menuOpened&&t.setEnabled(!1)};
W.onDragStart=function(e){var t=e.draggerEl;e=e.currDragItem;var b=Object.assign({},e==null?void 0:e.data);b.trackingParams=void 0;t.data=b;t.style.position="absolute";t.style.width=(e==null?void 0:e.clientWidth)+"px";t.style.zIndex="2030";t.onDrag&&t.onDrag();_.S("web_owner_document_fallback_killswitch")?(e=document.querySelector("ytd-app"))&&_.rz(e).appendChild(t):(e=_.n8(t),(b=e.querySelector("ytd-app"))?_.rz(b).appendChild(t):e.body.appendChild(t));W.dragScrollSupport=new zBr(W.scrollElement);
W.dragScrollSupport.horizontalScrolling_=!1;t=W.dragScrollSupport;t.constrainScroll_=!!t.margin_&&!1};
W.onDrop=function(e){W.handleDrop(e);W.dragScrollSupport&&(_.NL(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$12321_dragListGroup){var e=W.JSC$12321_dragListGroup;eoD(e,e.currDragItem_)}};
return W};
_.Z(AN,_.D0);AN.prototype.detached=function(){_.U4h(this)};
_.U4h=function(W){W.JSC$12321_dragListGroup&&(_.lj(W.JSC$12321_dragListGroup,Y6v,W.onDragStart),_.lj(W.JSC$12321_dragListGroup,EhN,W.onDragStart),W.JSC$12321_dragListGroup.dispose(),W.JSC$12321_dragListGroup=null);W.dragScrollSupport&&(_.NL(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.LNy=function(W,e,t,b){b=b===void 0?"":b;_.U4h(W);t&&(W.scrollElement=t);W.JSC$12321_dragListGroup=new HQ;W.JSC$12321_dragListGroup.hysteresisDistance_=2;NyD(W.JSC$12321_dragListGroup,e);W.JSC$12321_dragListGroup.draggerElClasses_=aR("dragging").split(" ");b&&d2b(W.JSC$12321_dragListGroup,function(m){var q=m||document,Q=null;q.getElementsByClassName?Q=q.getElementsByClassName(b)[0]:Q=VGb("*",b,m);return Q||m});
_.p4(W.JSC$12321_dragListGroup,Vze,W.onDraggerCreated);_.p4(W.JSC$12321_dragListGroup,Y6v,W.onDragStart);_.p4(W.JSC$12321_dragListGroup,EhN,W.onDrop);W.JSC$12321_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
AN.prototype.handleDrop=function(){};
_.Ec.Object.defineProperties(AN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.P([_.J({value:100}),_.Y("design:type",Number)],AN.prototype,"scrollMargin",void 0);_.P([_.SB()],AN);_.E_P=[AN.prototype];_.N$={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,e,t){var b=this.getClickTarget_(e);if(b&&this.isClickAllowed_(b)){e.preventDefault();W=(0,_.kJ.unsafeClone)(W);var m=this.getContainerBoundingRect();e=this.getRelativeClickXy_(e,m);this.expandEndpointUrlMacros_(W,{NX:e[0],NY:e[1],NB:b.code});t&&this.truncateWebCommendMetadataUrl_(W);_.q2(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.LB(W)||[];W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;if(e===_.rz(this.hostElement).querySelector("#menu"))break;if(e=this.clickTargetMap.get(e.id))return e}return null},
getRelativeClickXy_:function(W,e){var t=W.detail.x,b=W.detail.y;_.S("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(t=W.clientX,b=W.clientY);W=Math.round(t-e.left);e=Math.round(b-e.top);return W<0||e<0?[null,null]:[W,e]},
getContainerBoundingRect:function(){return _.rz(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,e){for(var t=_.R(W.loggingUrls||[]),b=t.next();!b.done;b=t.next())b=b.value,b.baseUrl&&(b.baseUrl=p8(b.baseUrl,e));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=p8(W.urlEndpoint.url,e));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=p8(W.commandMetadata.webCommandMetadata.url,e))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var e=W.commandMetadata.webCommandMetadata.url,t=e.indexOf("&pp=");if(t>0){var b=e.indexOf("&",t+1);W.commandMetadata.webCommandMetadata.url=b>t&&b<e.length?e.slice(0,t)+e.slice(b):e.slice(0,t)}}},
configureClickTargets:function(W,e,t){this.containerId=W;this.clickTargetMap=new Map;W=_.R(e);for(e=W.next();!e.done;e=W.next())if(e=e.value,e.location){var b=t.get(e.location);b&&(_.RH(_.rz(this.hostElement).querySelector("#"+b),"yt-simple-endpoint",this.isClickAllowed_(e)),this.clickTargetMap.set(b,e))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.dW={};
_.dW.YtLazyListBehavior=[_.e$.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(ERe(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var e=this;if(W){var t=W.value||[];if(this.itemsPath==W.path){var b=this.nonDeferredItemCount;W=0;b>-1&&t.length>b&&(W=_.Ot("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(b>0&&(b=t.slice(0,b),this.setInitialItemsOnDataChanged(b)),(b=this.renderElementsOutsideVisibleArea_)?b.cancel():(b=this.renderElementsOutsideVisibleArea_=new _.bw(2,"eocs"),_.YrG(window,"scroll",function(){return e.renderDeferredElements()})),_.mI(b,function(){e.setInitialItemsOnDataChanged(t)}),_.xq("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(t)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(t);
else b="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&b==="shownItems.length"||this.notifyPath(b,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var e=0,t=W.length;e<t;e++){var b=W[e];if(b.index<this.shownCount&&(b.removed&&this.splice("shownItems",b.index,b.removed.length),b.addedCount)){var m=b.object.slice(b.index,b.index+b.addedCount);b=["shownItems",b.index,0];b.push.apply(b,m);this.splice.apply(this,b)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.MD("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Uc(this,this.tryRenderChunk_)))},
fillRange_:function(W,e){this.canShowMore&&this.items_&&(W=this.items_.slice(W,e),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=e,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.HG(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.MD("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.lJ(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.Zy2(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.S("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var tx;_.WC={};
tx=function(){var W=_.D0.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$12332_onWheelScroll=function(e){if(W.isSearch&&
!W.disableWheelScroll&&_.S("desktop_enable_dmpanel_wheel_scroll")){var t=e.shiftKey?Math.abs(e.deltaY)>Math.abs(e.deltaX)?e.deltaY:e.deltaX:e.deltaX;t!==0&&(e.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=t,et(W),W.reposition_())}};
W.onPointerDown=function(e){AYh(W)&&(W.dragMouseStart=e.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(e){AYh(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(e.clientX-W.dragMouseStart),et(W),W.reposition_())};
W.onPointerUp=function(){AYh(W)&&(W.dragging=!1)};
return W};
_.Z(tx,_.D0);var NVD=function(W){var e=_.rz(W.hostElement).querySelector("#items").children;if(!e)return 0;var t=0;W=_.R(W.fullyVisibleItemsIndices);for(var b=W.next();!b.done;b=W.next())t+=e[b.value].clientWidth;return t},AYh=function(W){return W.isSearch&&_.S("desktop_enable_dmpanel_click_drag_scroll")};
tx.prototype.created=function(){this.cachedViewportWidth=_.Ot("initialInnerWidth")||window.innerWidth;this.JSC$12332_cachedViewportHeight=_.Ot("initialInnerHeight")||window.innerHeight;_.Ot("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.xq("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
tx.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();d4b(this)};
tx.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var e;(e=this.itemsObserver)==null||e.disconnect()};
var d4b=function(W){var e=_.rz(W.hostElement).querySelector("#scroll-container");if(e){if(!W.itemsVisibilityObserver){var t=window.getComputedStyle(e).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(b){WLB(W,b)},{root:e,
rootMargin:t,threshold:.98})}if(e=_.rz(W.hostElement).querySelector("#items"))W.itemsObserver=new g48(e,function(b){eqD(W,b)})}},eqD=function(W,e){tkD(W)&&(Array.from(e.addedNodes).filter(function(t){return t.nodeType===Node.ELEMENT_NODE}).forEach(function(t){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(t)}),Array.from(e.removedNodes).filter(function(t){return t.nodeType===Node.ELEMENT_NODE}).forEach(function(t){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(t)}))},
WLB=function(W,e){var t=new Set(W.fullyVisibleItemsIndices);
e=_.R(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;var m=b.target.parentElement;m?(m=Array.from(m.children).indexOf(b.target),b.isIntersecting?t.add(m):t.has(m)&&t.delete(m)):_.JC(new _.o_("Parent element not found",b.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(t).sort(function(q,Q){return q-Q});
t.size===0?_.JC(new _.o_("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},tkD=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.r=tx.prototype;_.r.addScrollEventListeners=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$12332_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.r.removeScrollEventListeners=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$12332_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.r.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Uc(this,this.setStartIndex,[this.initialStartIndex])};
_.r.reposition_=function(){var W=_.Ot("HTML_DIR")=="rtl"?"":"-",e=_.rz(this.hostElement).querySelector("#items");e&&(e.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.r.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Uc(this,this.setButtonsState_))};
_.r.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.rz(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=bXr(this,W));W=_.rz(this.hostElement).querySelector("#scroll-container").clientWidth;var e=_.rz(this.hostElement).querySelector("#items").clientWidth,t=this.get(this.ytLazyListBehavior.itemsPath,this);if(t){var b=Math.round(W/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+b,t.length)-1)}this.ytLazyListBehavior.canShowMore?e+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=e-20?!0:!1;this.atStart=this.offset<=20}};
_.r.setStartIndex=function(W){if(!this.minComponentWidth){var e=_.rz(this.hostElement).querySelector("#items").firstElementChild;if(!e)return;this.minComponentWidth=bXr(this,e)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;et(this);this.reposition_()};
_.r.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.wJ();var W=_.rz(this.hostElement).querySelector("#scroll-container").clientWidth;_.S("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=bXr(this,_.rz(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&mhS(this);this.offset+=tkD(this)?
NVD(this):W*this.minComponentWidth;et(this);this.reposition_();this.scrollCount++};
_.r.prevClick_=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=tkD(this)?NVD(this):this.minComponentWidth*this.scrollCount-1):this.offset-=tkD(this)?NVD(this):W*this.minComponentWidth;this.centerListItems&&mhS(this);et(this);this.reposition_()};
_.r.onIronResize_=function(){this.resizeSupportEnabled&&_.Uc(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.r.onItemsTransitionEnd_=function(W){_.Er(W)===_.rz(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.r.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var e=_.rz(this.hostElement).querySelector("#scroll-container");if(e.contains(W)){if(_.S("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+e.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.wJ(),this.offset=W.offsetLeft+W.clientWidth-e.clientWidth;else return;else{var t=_.rz(this.hostElement).querySelector("#items"),
b=_.Ot("HTML_DIR")==="rtl",m=b?t.clientWidth-W.offsetLeft:W.offsetLeft;t=b?t.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var q=b?m>this.offset+e.clientWidth:m<this.offset,Q=b?t<this.offset:t>this.offset+e.clientWidth,X=b?q:Q;if(b?Q:q)e=b?t:m,this.offset=Math.abs(e)<W.clientWidth?0:e;else if(X)this.ytLazyListBehavior.fillRemainingListItems(),_.wJ(),this.offset=(b?m:t)-e.clientWidth;else return}et(this);this.reposition_()}};
_.r.observeShownItems_=function(){this.reset()};
_.r.checkComponentWidthResize=function(){var W=_.rz(this.hostElement).querySelector("#items").firstElementChild;W&&(W=bXr(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&mhS(this),et(this),this.reposition_())};
var bXr=function(W,e){var t=window.getComputedStyle(e).marginRight;t=Math.floor(Number(t.replace("px","")));var b=window.getComputedStyle(e).marginLeft;b=Math.floor(Number(b.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=t,W.marginWidthLeft=b);return W.resizeSupportEnabled?e.getBoundingClientRect().width+t:e.offsetWidth+t},et=function(W){var e=_.rz(W.hostElement).querySelector("#scroll-container").clientWidth,t=_.rz(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+e>=t&&(W.offset=t-e)},mhS=function(W){W.offset-=(_.rz(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.Ec.Object.defineProperties(tx.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.Ot("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$12332_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.xq("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.Ot("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.xq("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.S("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
tx.prototype.observeShownItems_=tx.prototype.observeShownItems_;tx.prototype.onChildElementFocus_=tx.prototype.onChildElementFocus_;tx.prototype.onItemsTransitionEnd_=tx.prototype.onItemsTransitionEnd_;tx.prototype.onIronResize_=tx.prototype.onIronResize_;tx.prototype.prevClick_=tx.prototype.prevClick_;tx.prototype.nextClick_=tx.prototype.nextClick_;tx.prototype.setButtonsState_=tx.prototype.setButtonsState_;tx.prototype.requestButtonsStateUpdate_=tx.prototype.requestButtonsStateUpdate_;
tx.prototype.reposition_=tx.prototype.reposition_;tx.prototype.reset=tx.prototype.reset;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],tx.prototype,"ytLazyListBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tx.prototype,"atStart",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tx.prototype,"atEnd",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"startIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"endIndex",void 0);_.P([_.J({value:6}),_.Y("design:type",Number)],tx.prototype,"initialCount",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"scrollCount",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"initialStartIndex",void 0);
_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"disableScrollEventListener",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"supportComponentResize",void 0);_.P([_.J({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.Y("design:type",Function)],tx.prototype,"boundPrevClick",void 0);_.P([_.J({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.Y("design:type",Function)],tx.prototype,"boundNextClick",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"useFloorScrolling",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"isSearch",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"dragging",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"dragMouseStart",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"dragOffsetStart",void 0);
_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"disableWheelScroll",void 0);_.P([_.J(),_.Y("design:type",Object)],tx.prototype,"centerListItems",void 0);_.P([_.wz("iron-resize"),_.ul("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tx.prototype,"onIronResize_",null);_.P([_.wz("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tx.prototype,"onItemsTransitionEnd_",null);
_.P([_.wz("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tx.prototype,"onChildElementFocus_",null);_.P([_.ul("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tx.prototype,"observeShownItems_",null);_.P([_.SB()],tx);_.WC.YtdHorizontalListBehavior=[];_.WC.YtdHorizontalListBehavior.push(_.gf,_.d.YtRendererBehavior,_.dW.YtLazyListBehavior,_.M$.YtdGuideStateAwareBehavior,tx.prototype);var bXQ=["APP_STATE","PI"];var rdB=_.Nw(["about:blank"]),qOo={pushState:window.history.pushState,replaceState:window.history.replaceState};var bR=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
bR.prototype.init=function(){this.initialized=!0};
bR.prototype.pushState=function(W,e){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",e)};
bR.prototype.replaceState=function(W,e){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",e)};
bR.prototype.getState=function(){return this.history&&this.history.state};var Rqv=function(W){var e=function(){var t=W.apply(this,arguments)||this;t.boundHistoryPushState=!1;t.boundHistoryReplaceState=!1;t.debugInfo={};return t};
_.Z(e,W);e.prototype.init=function(){var t=_.DA("IFRAME");_.fF(t,_.bN(rdB));t.sandbox="allow-same-origin";t.style.display="none";this.iframe=t;document.body.appendChild(t);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
e.prototype.bindHistoryStateFunctions=function(){var t=this,b=[],m;this.iframe&&((m=this.iframe.contentWindow)==null?0:m.history)&&(m=this.iframe.contentWindow.history)&&(b.push(m),Object.getPrototypeOf(m)&&b.push(Object.getPrototypeOf(m)));window.history&&b.push(window.history);m=window.history;Object.getPrototypeOf(m)&&b.push(Object.getPrototypeOf(m));b.push(qOo);m=function(Q){for(var X=null,I=0;I<b.length;I++){var u=b[I][Q];if(typeof u==="function"){X=u.bind(window.history);t.debugInfo[Q]=I;break}}return X};
if(!this.boundHistoryReplaceState){var q=m("replaceState");q&&(this.internalReplaceState=q,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(m=m("pushState"))&&(this.internalPushState=m,this.boundHistoryPushState=!0)};
return e}(bR),Q2k=function(){return Rqv.call(this,window.history)||this};
_.Z(Q2k,Rqv);Q2k.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mj=function(W){this.browserHistory=W;this.initialized=!1};
mj.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mj.prototype.pushState=function(W,e){this.initialized||this.init();this.browserHistory.pushState(W,e)};
mj.prototype.replaceState=function(W,e){this.initialized||this.init();this.browserHistory.replaceState(W,e)};
mj.prototype.handlePopstate=function(W){return W.state};_.FLP=function(W,e,t,b,m){this.endpoint=W;this.forward=e;this.historyEntry=t;this.JSC$26667_savedComponentState=b;this.legacyBorder=m===void 0?!1:m};var X5b=function(W,e){this.rootData=W;this.scrollTop=e};var y$=new _.W_("PAGE_REQUEST_TOKEN"),$XD=new _.W_("FETCH_PBJ_TOKEN");_.rF=new _.W_("EPHEMERAL_STORE_TOKEN");_.qv=function(W){this.data=Object.assign({},W);var e;(e=this.data.innertubeResponse)==null||delete e.frameworkUpdates};
_.qv.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.eJ)()};
_.I4=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var IWD=function(){this.maxSize=100;this.timeToDataCache=new Map};
IWD.prototype.get=function(W){var e=this.timeToDataCache.get(W);e&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,e));if(e&&e.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var t=_.ee().resolve(_.rF),b=aWB(e),m=!!b;if(b){if(b.content){var q=RL(t,b.content);m&&q?e.rootData.response=_.I4(q):m=!1}b.player&&(q=RL(t,b.player),m&&q?e.rootData.playerResponse=_.I4(q):m=!1);b.reelSequence&&(t=RL(t,b.reelSequence),m&&t?e.rootData.reelWatchSequenceResponse=
_.I4(t):m=!1)}m||(this.timeToDataCache.delete(W),e=void 0)}return e};
IWD.prototype.set=function(W,e){if(e.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var t=aWB(e),b=Object.assign({},e.rootData);t&&(t.content&&e.rootData.response&&(w5e(this,t.content,e.rootData.response),b.response=null),t.player&&e.rootData.playerResponse&&(w5e(this,t.player,e.rootData.playerResponse),b.playerResponse=null),t.reelSequence&&e.rootData.reelWatchSequenceResponse&&(w5e(this,t.reelSequence,e.rootData.reelWatchSequenceResponse),b.reelWatchSequenceResponse=
null));e=new X5b(b,e.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(t=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(t.value));this.maxSize!==0&&this.timeToDataCache.set(W,e)};
IWD.prototype.clear=function(){this.timeToDataCache.clear()};
var aWB=function(W){var e=_.ee().resolve(_.Wi(y$)),t;if((t=W.rootData)==null?0:t.endpoint)return e==null?void 0:Gts(e,W.rootData.endpoint);var b;_.JC(new _.o_("History snapshot response data does not contain endpoint",(b=W.rootData)==null?void 0:b.url));return null},w5e=function(W,e,t){if(W.maxSize>0){var b;
(W=(b=t.responseContext)==null?void 0:b.maxAgeSeconds)&&Number(W)>0&&(b=_.ee().resolve(_.rF),t=FX(t,W),b.put(e,new _.qv(t)))}};var uES=function(W,e,t){this.endpoint=e;this.JSC$26672_savedComponentState=t===void 0?null:t;this.entryTime=W};var FLG=1;var QA=function(W){var e=function(){var t=W.apply(this,[].concat(_.kP(_.$N.apply(0,arguments))))||this;t.historyEntryTime=0;t.historySnapshotCache=t.createHistoryCache();return t};
_.Z(e,W);e.prototype.createHistoryCache=function(){return new IWD};
e.prototype.saveAndReplace=function(t,b,m){var q=window.location.href;var Q=Q===void 0?{}:Q;var X=(X=this.browserHistory.getState())&&X.entryTime?X.entryTime:X5D();t=this.createNewHistoryEntry(t,Q,X);this.saveSnapshot(X,b,m);this.replaceState(t,q||window.location.href)};
e.prototype.saveAndPush=function(t,b,m,q,Q){Q=Q===void 0?{}:Q;this.saveSnapshot(this.historyEntryTime,m,q);m=this.historySnapshotCache;q=this.historyEntryTime;var X=m.timeToDataCache.keys();X=_.R(X);for(var I=X.next();!I.done;I=X.next())I=I.value,I>q&&m.timeToDataCache.delete(I);b=this.createNewHistoryEntry(b,Q);this.pushState(b,t)};
e.prototype.saveSnapshot=function(t,b,m){this.historySnapshotCache.set(t,new X5b(b,m))};
e.prototype.createNewHistoryEntry=function(t,b,m){m=m===void 0?X5D():m;return new uES(m,t,b)};
e.prototype.handlePopstate=function(t){var b=W.prototype.handlePopstate.call(this,t),m=null,q=null,Q=!1,X=null;b&&b.entryTime&&(X=this.historySnapshotCache.get(b.entryTime)||null,Q=b.entryTime>this.historyEntryTime,this.historyEntryTime=b.entryTime,m=b.endpoint,q=b.JSC$26672_savedComponentState);this.handleHistoryCacheLoad(new _.FLP(m,Q,X,q),t);return b};
e.prototype.pushState=function(t,b){Number(t==null?void 0:t.entryTime)>=0&&(this.historyEntryTime=t.entryTime);W.prototype.pushState.call(this,t,b)};
e.prototype.replaceState=function(t,b){Number(t==null?void 0:t.entryTime)>=0&&(this.historyEntryTime=t.entryTime);W.prototype.replaceState.call(this,t,b)};
e.prototype.handleHistoryCacheLoad=function(){};
return e}(mj),cdh=function(){var W=QA.call(this,new Q2k)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.Z(cdh,QA);_.r=cdh.prototype;_.r.init=function(W){W=W===void 0?!0:W;QA.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.r.handlePopstate=function(W){var e=null;W.state||(e="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return QA.prototype.handlePopstate.call(this,W);var t=new CustomEvent("yt-history-pop",{cancelable:!0});_.RT(this.dispatchElement,"yt-history-pop",[t,{errorMsg:e}]);_.Qx(this.dispatchElement,"yt-close-all-popups-action");if(!t.defaultPrevented){t=_.ee().resolve(_.WS);e=t.getCurrentData();var b=t.getCurrentPage();t=0;b?(b=_.RT(this.dispatchElement,"yt-get-page-offset",
[b]),b.length>0&&(t=b[0])):_.JC(new _.o_("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:e?e.page:"undefined"}));e&&(e.csn=_.fc());this.saveSnapshot(this.historyEntryTime,e,t)}return QA.prototype.handlePopstate.call(this,W)};
_.r.handleHistoryCacheLoad=function(W,e){W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.R(_.Qx(this.dispatchElement,"yt-history-will-navigate",[e])).next().value||_.RT(this.dispatchElement,"yt-history-load",[e,W]))};
_.r.pushState=function(W,e){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var t=new _.o_("history.pushState is not a function",this.getDebugString());_.gQ(t)}QA.prototype.pushState.call(this,W,e)};
_.r.replaceState=function(W,e){if(!this.browserHistory.boundHistoryReplaceState){var t=new _.o_("history.replaceState is not a function",this.getDebugString());_.gQ(t)}QA.prototype.replaceState.call(this,W,e)};
_.r.saveAndPush=function(W,e,t,b,m){m=m===void 0?{}:m;t&&(t.csn=_.fc());QA.prototype.saveAndPush.call(this,W,e,t,b,m)};
_.r.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.Fa=function(W,e){W.init(!0);var t=W.browserHistory.getState();W.replaceState(t,Qv(e))};
cdh.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Xa=new _.W_("DESKTOP_HISTORY_MANAGER_TOKEN");var vCe=[10,20,30,40,50,60],IL=function(){this.currentPartitionIndex=0},GAe=function(W){y2Z({mainAppWeb:_.im(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Dhh=function(W){y2Z({mainAppWeb:_.im(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},SOv=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<vCe.length?vCe[W.currentPartitionIndex]:-1},BKy=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<vCe.length?vCe[W.currentPartitionIndex-1]:-1};
IL.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=BKy(this);W>0&&Dhh(W);W=SOv(this);W>0&&GAe(W);oCv(this)}};
var oCv=function(W){var e=SOv(W);if(e>0){var t=BKy(W);t<0&&(t=0);W.intervalId=_.Tm.addJob(function(){var b=BKy(W);b>0&&Dhh(b);b=SOv(W);b>0&&GAe(b);oCv(W)},3,(e-t)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var lWr=function(){this.skipNextNavigation=!1},ZXb=function(W,e,t){if(!e)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.l(t,_.KJ))return!1;var b,m,q;if((b=_.l(t,_.Sf))==null?0:(m=b.browseEndpointContextSupportedConfigs)==null?0:(q=m.browseEndpointContextMainConfig)==null?0:q.skipConfirmation)return!1;var Q;return((Q=_.l(e.commandMetadata,_.ez))==null?void 0:Q.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
lWr.prototype.showConfirmationDialog=function(W,e){this.navigateParams=e;this.customConfirmationCommand?_.ee().resolve(_.tQ).resolveCommand(this.customConfirmationCommand):(e={openPopupAction:{popup:{confirmDialogRenderer:{title:_.zq(_.Gv("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.zq(_.Gv("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.zq(_.Gv("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.zq(_.Gv("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.P3.getInstance().triggerAction("yt-open-popup-action",e,W))};
lWr.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var $hb=function(){},p5S=function(W,e,t,b,m,q,Q){t=t===void 0?{}:t;
Q=Q===void 0?{}:Q;var X=_.lT.instance,I,u=(I=_.l(e,_.KJ))==null?void 0:I.url;return u?WQg(X,u,t,window.location.href,function(c,v){kAB(W,c,v,!1,!0,t,q,b)},function(){return!1}):iC(X,e,t,window.location.href,oX(e),function(c,v){kAB(W,c,v,!1,!0,t,q,b)},m,Q)},kAB=function(W,e,t,b,m,q,Q,X){if(!W.JSC$12390_chunkHandler)if(t.page==="watch"||t.page==="learning_journey_watch")if(m||b){if(_.S("kevlar_continue_playback_without_player_response")){var I;
var u=(I=_.l(X,_.z4))==null?void 0:I.videoId}W.JSC$12390_chunkHandler=new EIS(_.tv,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:u},tempData:q},Q)}else W.JSC$12390_chunkHandler=new i2b(_.tv);else t.page==="shorts"&&m&&!b?W.JSC$12390_chunkHandler=new LjP(_.tv,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:q},Q):W.JSC$12390_chunkHandler=new Yyo(Q);W.JSC$12390_chunkHandler.processChunk({endpoint:e,data:t});return W.JSC$12390_chunkHandler.kq.promise},
ydZ=function(W,e,t,b,m){(t=_.sVU(t))&&kAB(W,e,t,!1,!0,b,void 0,m)};var j2U=function(){this.pendingNavigationPromise=null};
_.r=j2U.prototype;_.r.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.r.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.r.addEventListener=function(){throw Error("yh");};
_.r.dispatchEvent=function(){throw Error("yh");};
_.r.removeEventListener=function(){throw Error("yh");};var Csy=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],aL=function(){_.ZY.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];nCS(this)};
_.Z(aL,_.ZY);aL.prototype.verifyUser=function(){var W=nCS(this),e=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");e&&this.dispatchEvent("ytuserinvalid");return!1};
var nCS=function(W){var e=Csy.map(function(m){var q;return(q=_.vi.get(m))!=null?q:""}),t=e.some(function(m,q){return W.sessionCookies&&W.sessionCookies[q]!==""&&m===""}),b=e.some(function(m,q){return W.sessionCookies&&W.sessionCookies[q]!==m});
W.sessionCookies=e;return{logout:t,sessionChange:b}};
aL.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Tm.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var cdv=new _.W_("POSTMESSAGE_TUNNEL_TOKEN");var aWG=["/parent_tools","/file_download","/artist_roster"],Dhv=[Z6K,$Bz,k6L,yZD,pxs,lr9,jfL,C_g];var fWN=new _.W_("APP_ROOT");var wF=new _.W_("NAVIGATION_CONFIRMATION_SERVICE");var gCk="/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(" "),TKS=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
uR=function(W,e){this.pendingNavigationPromise=null;this.JSC$12408_clientRoot=W;this.historyManager=e;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new $hb;this.debugString=W.is;W={"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};_.Vo(_.P3.getInstance(),W,this.JSC$12408_clientRoot)},s2S,hqb,HXv,KLU,MkN;
_.Z(uR,j2U);uR.prototype.reload=function(){_.VI(window.location.href)};
var K4k=function(W){W.currentEndpoint&&_.l(W.currentEndpoint,_.Za)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
uR.prototype.navigate=function(W,e,t,b,m,q,Q,X){e=e===void 0?!1:e;t=t===void 0?{}:t;b=b===void 0?{}:b;var I=_.ee().resolve(wF),u;if(!Q&&ZXb(I,(u=this.currentEndpoint)!=null?u:void 0,W))return I.showConfirmationDialog(this.JSC$12408_clientRoot.parentElement,{endpoint:W,reload:e,params:t,tempData:b,requestType:m,createScreenConfig:q}),!1;var c=_.sj();_.h2(c,"eocs")||c.parkOrScheduleJob(function(){c.processSignal("eocs")},10,"eor");
Q=oX(W);I=b.autonav==="1";u=_.fc();aL.instance||(aL.instance=new aL);var v=aL.instance.verifyUser(),D;if(_.S("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),k=_.jf(!0)==="USER_INTERFACE_THEME_DARK";if(Q==="shorts"){if(!B)if(_.S("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var n;_.VI((n=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:n.url,void 0,void 0,window.top)}}else{var f;_.VI(_.zn((f=_.l(W==null?
void 0:W.commandMetadata,_.ez))==null?void 0:f.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.S("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var M;_.VI(_.zn((M=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:M.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(k!==B){var K;_.VI(_.zn((K=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:K.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Q==="watch"){if(JdZ(_.ee().resolve(_.Kn),
W)&&(v||_.S("fix_miniplayer_navigation_killswitch")))return!1;_.S("block_all_player_prefetch_requests")||(D=hUo(_.Fq(_.ZU),W,I))}else{var U,V=(U=_.l(this.currentEndpoint,_.z4))==null?void 0:U.videoId;V&&_.p5.getInstance().then(function(CQ){CQ&&CQ.set("yt-miniplayer-shown-video-id",V)})}D&&(t.frags=D.missingFragments_.join(","));
n=null;var L;f=(L=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:L.ignoreNavigation;if(!f)if(_.S("kevlar_command_url")){var E;n=(E=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?void 0:E.url}else n=_.g5D(W,t);if(n&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&n==this.lastNavigationUrl)return _.fe({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.GL(Mg(),"CANCELLED")}n&&(this.lastNavigationUrl=n);AhK();_.xq("IS_HOMEPAGE_COLD",
!1);_.xq("IS_RESULTS_PAGE_COLD",!1);_.xq("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(CQ){CQ.baseUrl&&_.Vf(CQ.baseUrl)});
_.lWQ(W,q?q.layer:0)&&_.S("kevlar_flush_logs_on_away_navigation")&&_.fJ();if(SO9(W))return!1;SeD(Q,m);if(!n)return f||_.JC(new _.o_("Can't construct url for endpoint",W)),_.GL(Mg(),"FAILURE"),!1;_.IWg();L=W&&_.l(W,_.Sf)&&_.l(W,_.Sf).browseId.startsWith("UC");t=(E=_.S("enable_dark_theme_only_on_shorts")&&Q==="shorts"?!1:_.CB()&&document.documentElement.hasAttribute("dark")!==_.yI())?{themeRefresh:1}:{};E&&!_.DK()&&_.jf()==="USER_INTERFACE_THEME_DARK"&&(t.theme="dark");L=E||xhZ(n)&&!L&&!_.S("kevlar_disable_url_allowlist");
v||(L=!0);if(L||_.Ot("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var RR;var uv=(RR=window.top)==null?void 0:RR.location.href}catch(CQ){var GS;uv=(GS=CQ)==null?void 0:GS.message}_.JC(new _.o_("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:uv}))}W=_.S("kevlar_redirect_on_window_killswitch")?window.top:window;Pw(n);_.VI(_.zn(n,t),void 0,void 0,W);_.GL(Mg(),"ABORTED");return!1}_.S("kevlar_early_popup_close")&&_.RT(this.JSC$12408_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12390_chunkHandler=void 0;var k9;uv=oX((k9=this.currentEndpoint)!=null?k9:void 0);(k9=Q==="shorts"&&uv==="shorts")||_.m_z();_.hJ(Vo2)("nr",void 0);I&&_.fe({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(b.itct=W.clickTrackingParams,b.csn=u);QEL(b);b.endpoint=JSON.stringify(W);_.S("enable_unknown_lact_fix_on_html5")&&(_.ee().resolve(_.gd),b.lact=_.be());_.kJ.isEmpty(b)||_.Aj(n,b);!_.S("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(q=Object.assign({},{layer:0},q,{parentLayer:3}));this.pendingNavigationPromise=q=p5S(this.pageFetcher,W,b,this.currentEndpoint,this.JSC$12408_isNetworkPromiseStale.bind(this),q,X);q=q.then(this.handleNavigateSuccess.bind(this,q,W,D,b),this.handleNavigateFail.bind(this,q,W));_.G3().navigationFinishPromise=q;e={endpoint:W,pageType:Q,url:Qv(n),reload:!!e,noProgressBar:k9};m&&(e.type=m);this.fireEvent("yt-navigate-start",e);D&&ydZ(this.pageFetcher,W,D,b,this.currentEndpoint);
return!0};
uR.prototype.JSC$12408_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var OXv=function(W,e,t,b,m){var q=oX(e);e={endpoint:e,pageType:q};m&&(e.errorMessage=m);_.JC(t);e.navigationDoneMs=_.Tv("nd");e.navigationErrorReason=b;W.fireEvent("yt-navigate-error",e)};
uR.prototype.handleNavigateFail=function(W,e,t){var b=void 0;t instanceof _.Lv&&(b=t,n5K(t));if(this.JSC$12408_isNetworkPromiseStale(W))return _.jg(b);_.GL(Mg(),"FAILURE");OXv(this,e,t,"101");return _.jg(t)};
uR.prototype.handleNavigateSuccess=function(W,e,t,b,m){if(this.JSC$12408_isNetworkPromiseStale(W))return _.aT();this.pendingNavigationPromise=null;if(!m)return e=new _.o_("Missing data in response for navigation endpoint",e),_.jg(e);if(m.reload)return window.location.reload(!0),_.aT();t&&(W={},_.kJ.extend(W,_.sVU(t),m),m=W);var q,Q;t=(q=m)==null?void 0:(Q=q.timing)==null?void 0:Q.responseStart;t!=null&&_.Tv("srt",t);_.Tv("pdc");var X,I;q=(X=m)==null?void 0:(I=X.timing)==null?void 0:I.info;q!=null&&
(X=_.hJ(_.URZ)(q),_.fe(X));_.GL(Mg(),"SUCCESS");MkN(this,e,m,1,b);return _.aT()};
var xhZ=function(W){var e=W;_.S("kevlar_no_redirect_to_classic_2_ks")||(e=(new _.UT(W)).getPath());if(e==="/"||e==="/red")return!1;var t=!0;gCk.forEach(function(b){W.indexOf(b)===0&&(t=!1)});
TKS.forEach(function(b){var m=b.url;_.S(b.expFlag)&&W.indexOf(m)===0&&(t=!1)});
return t};
uR.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
s2S=function(W,e,t,b,m,q){var Q=null;e.page!=="watch"&&e.page!=="learning_journey_watch"||b?e.filler||_.RT(W.JSC$12408_clientRoot,"yt-stop-old-player",[e]):Q=kAB(W.pageFetcher,m,e,t,!1,q,void 0,W.currentEndpoint);if(Q)return Q.then(W.publishPageData.bind(W,e));W.publishPageData(e);return _.aT()};
hqb=function(W,e,t){var b=null;if(!t)return b=new _.o_("Empty data",W.debugString,e);var m=t.response;if(!m)return b;var q={endpointType:oX(e)||"unknown"};m.responseContext?(m=m.responseContext.errors)&&(b=new _.o_("Errors in response context",W.debugString,e,m,q)):b=m.error||m.errorMetadata?new _.o_("Errors in response",W.debugString,e,m.error,m.errorMetadata,q):new _.o_("responseContext missing",W.debugString,e,Object.keys(m).sort().join(","),q);var Q,X,I,u;if(W=t==null?void 0:(Q=t.response)==null?
void 0:(X=Q.responseContext)==null?void 0:(I=X.webResponseContextExtensionData)==null?void 0:(u=I.webResponseContextDebugData)==null?void 0:u.debugErrorMessages)for(Q=0;Q<W.length;Q++);return b};
HXv=function(W){var e,t,b,m;return W==null?void 0:(e=W.response)==null?void 0:(t=e.responseContext)==null?void 0:(b=t.errors)==null?void 0:(m=b.error)==null?void 0:m["0"]};
KLU=function(W,e){var t;if(t=e.url&&!e.url.startsWith("/clip"))t=e.url,t=!_.S("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(t)||Mv2(t)?!0:!1;if(t)Mv2(e.url)&&_.Yq(window.location.href).themeRefresh?(e=_.W6(e.url,"themeRefresh"),_.Fa(W.historyManager,e)):e.url&&!Rq9(e.url)&&_.Fa(W.historyManager,e.url);else if(e.endpoint){var b,m,q;(t=(b=e.endpoint)==null?void 0:(m=b.commandMetadata)==null?void 0:(q=m.webCommandMetadata)==null?void 0:q.url)&&!Rq9(t)&&_.Fa(W.historyManager,
t);t&&e.url&&t!=e.url&&!e.url.match("playnext=1")&&new _.o_("Response url mismatch in response data",W.debugString,t,e.url)}};
_.PsN=function(W,e,t,b,m,q,Q,X){q=q===void 0?!1:q;var I=_.ee().resolve(wF),u;if(!X&&ZXb(I,(u=W.currentEndpoint)!=null?u:void 0,e))return I.showConfirmationDialog(W.JSC$12408_clientRoot.parentElement,{endpoint:e,data:t,navigationType:b,tempData:m,isMiniplayer:q,isForwardHistoryNavigation:Q==null?void 0:Q.forward}),_.aT();W.pageFetcher.JSC$12390_chunkHandler=void 0;return MkN(W,e,t,b,m,q)};
MkN=function(W,e,t,b,m,q){q=q===void 0?!1:q;W.isMiniplayerExpansion=q;var Q=b===2;W.currentEndpoint=e;W.numNavigations++;W.numNavigations&&(LIR.navigationCount=W.numNavigations);_.xq("NUM_NAV",W.numNavigations);var X=hqb(W,e,t);if(X)return OXv(W,e,X,"102",HXv(t)),_.jg(X);var I,u,c,v;X=t.rootVe||(t==null?void 0:(I=t.response)==null?void 0:(u=I.responseContext)==null?void 0:(c=u.webResponseContextExtensionData)==null?void 0:(v=c.ytConfigData)==null?void 0:v.rootVisualElementType);!Q&&t&&KLU(W,t);var D,
B;I=t==null?void 0:(D=t.response)==null?void 0:(B=D.responseContext)==null?void 0:B.maxAgeSeconds;if(!Q&&!isNaN(I)){var k;_.S("kevlar_use_response_ttl_to_invalidate_cache")?k=(0,_.eJ)()+1E3*I:_.S("kevlar_always_invalidate_cache")&&(k=0);isNaN(k)||(t.expirationTime=k)}_.S("html5_enable_ssap_entity_id")&&Q&&t.playerResponse&&(t.playerResponse.cacheMetadata={isCacheHit:!0});_.Fq(_.ZU).prefetchCache_.clear();Q||t.page!=="watch"||t.type!=="reduced"&&b!==1?b=s2S(W,t,Q,!!q,e,m):(W.publishPageData(t),b=_.aT());
m=b.then(function(){var n=oX(e);n={endpoint:e,pageType:n,fromHistory:Q,response:t};n.navigationDoneMs=_.Tv("nd");W.fireEvent("yt-navigate-finish",n)});
t.csn&&X&&t.clientSideGrafts&&b.then(W.attachClientSideGrafts.bind(W,t,_.nc()));return m};
_.r=uR.prototype;_.r.attachClientSideGrafts=function(W,e){W.clientSideGrafts&&e&&W.clientSideGrafts.forEach(function(t){if(e&&t){var b=_.$5(t);_.S("combine_ve_grafts")?_.Sg().graftServerVe(t,e):_.Ke(W.csn,e,b)}})};
_.r.handleSignalActionHistoryBack=function(){window.history.back()};
_.r.handleSignalActionCloseWindow=function(){window.close()};
_.r.handleSignalActionReloadPage=function(){this.reload()};
_.r.handleSignalActionSoftReloadPage=function(){K4k(this)};
_.r.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.r.fireEvent=function(W,e){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:e});this.dispatchEvent(W)};
_.r.addEventListener=function(W,e){this.JSC$12408_clientRoot.addEventListener(W,e)};
_.r.dispatchEvent=function(W){return this.JSC$12408_clientRoot.dispatchEvent(W)};
_.r.removeEventListener=function(W,e){this.JSC$12408_clientRoot.removeEventListener(W,e)};
uR[dU]=[fWN,_.Xa];_.mjQ=new my("browse","h8y2qb");_.rus=new my("search","JzFVk");_.q$9=new my("shorts","xwEKAe");_.REz=new my("watchFixie","nmfa2d");_.QlL=new my("watchFlexy","CF909");_.FpD=new my("watchGrid","Tm0L3c");_.XoS=new my("watchLearningJourney","L3n37");var VkS;var iXe=function(){return _.O.apply(this,arguments)||this};
_.Z(iXe,_.O);_.Ec.Object.defineProperties(iXe,{template:{configurable:!0,enumerable:!0,get:function(){if(VkS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);VkS=W}W=VkS;return W}}});
_.P([_.y(iNh.YtPlayerBehavior),_.Y("design:type",Object)],iXe.prototype,"ytPlayerBehavior",void 0);_.P([_.h({is:"ytd-player"})],iXe);var YOh;var zqS;var Uh8;var cC=function(){var W=_.O.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.Z(cC,_.O);cC.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]]"}}}}}};
cC.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.l(W,PDo)){var e,t=(e=this.data)==null?void 0:e.providerKey;e=W.providerKey;t&&e&&t.id===e.id&&t.subject===e.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.S("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
cC.prototype.setPlayerAccountLinkState=function(W){var e=new Myv;Obg(e,ssR(new hRK,W));var t=_.tv();t&&t.getPlayerPromise().then(function(b){b.setAccountLinkState(_.eK(e.JSC$10122_serializeBinary(),4));b.updateAccountLinkingConfig(W)})};
cC.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.uc([W],this.hostElement)};
_.Ec.Object.defineProperties(cC.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}}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],cC.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],cC.prototype,"overrides",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],cC.prototype,"forceModernIconButton",void 0);_.P([_.J({value:"bottom"}),_.Y("design:type",String)],cC.prototype,"buttonTooltipPosition",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],cC.prototype,"forceIconButton",void 0);_.P([_.J(),_.Y("design:type",Boolean)],cC.prototype,"disableTextTransform",void 0);
_.P([_.T("data","data.linked","data.isWarning"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cC.prototype,"button",null);_.P([_.h({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],cC);
_.H(cC,"ytd-account-link-button-renderer",function(){if(Uh8!==void 0)return Uh8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Uh8=W},{mode:1});var LLv;var ECh=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],vC=function(){return _.O.apply(this,arguments)||this};
_.Z(vC,_.O);vC.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
vC.prototype.updateButtonActiveState=function(){var W=this,e=!!ECh.find(function(t){return W.currentState===t});
this.button&&(this.button.isPressed=e)};
_.Ec.Object.defineProperties(vC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((e=this.data)==null?void 0:e.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,e;if(this.currentState&&((e=this.data)==null?0:e.states)){e=_.R(this.data.states);for(var t=e.next();!t.done;t=e.next()){t=_.l(t.value,_.QtZ);var b=void 0;if(((b=t)==null?void 0:b.state)===this.currentState){W=t;break}}}return W}}});
vC.prototype.updateButtonActiveState=vC.prototype.updateButtonActiveState;_.P([_.y(_.fu),_.Y("design:type",Object)],vC.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.CsR}),_.Y("design:type",Object)],vC.prototype,"playlistLoopStateEntity",void 0);_.P([_.J(),_.Y("design:type",Object)],vC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],vC.prototype,"forceIconOnly",void 0);_.P([_.vG("ytd-button-renderer"),_.Y("design:type",_.EP)],vC.prototype,"button",void 0);
_.P([_.T("data","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vC.prototype,"currentState",null);_.P([_.ul("currentButtonStateRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vC.prototype,"updateButtonActiveState",null);_.P([_.T("currentState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vC.prototype,"currentButtonStateRenderer",null);
_.P([_.h({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],vC);
_.H(vC,"ytd-playlist-loop-button-renderer",function(){if(LLv!==void 0)return LLv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LLv=W},
{mode:1});var AdP;var NKh=_.Gv("DOWNLOAD",{},"Download"),dhU=_.Gv("DOWNLOADING",{},"Downloading"),WRh=_.Gv("DOWNLOADED",{},"Downloaded"),ewr=_.Gv("RETRY",{},"Retry"),GC=function(){var W=_.O.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.Z(GC,_.O);_.r=GC.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.xg(_.Eb().getState(),this.videoId),this.updateButtonState(W))};
_.r.computeVideoId=function(W){return W};
_.r.showHideButton=function(){this.updateButtonVisibility()};
_.r.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};
_.r.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.r.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==dhU||!_.Bm(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=NKh;var e="OFFLINE_DOWNLOAD";var t="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=ewr;e="OFFLINE_DOWNLOAD";t="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=WRh;e="OFFLINE_PIN";t="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
dhU;e="OFFLINE_DOWNLOADING_ZERO";t="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=ewr;e="OFFLINE_DOWNLOAD";t="ACTION_RETRY";break;default:W=NKh,e="OFFLINE_DOWNLOAD",t="ACTION_ADD"}this.isVideoDeletedByUser&&(W=NKh,e="OFFLINE_DOWNLOAD",t="ACTION_ADD");var b=Object.assign({},this.data);b.text=_.zq(W);b.tooltip=W;b.icon={iconType:e};b.size="SIZE_DEFAULT";b.style="STYLE_DEFAULT";_.l(b.command,_.cS)&&(_.l(b.command,_.cS).action=t);this.set("data",b)}};
_.r.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var e;W!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.text=_.zq(dhU),e.tooltip=dhU,e.icon={iconType:W},_.l(e.command,_.cS)&&(_.l(e.command,_.cS).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
GC.prototype.updateProgress=GC.prototype.updateProgress;GC.prototype.onTransferStateChanged=GC.prototype.onTransferStateChanged;GC.prototype.showHideButton=GC.prototype.showHideButton;GC.prototype.dataChanged=GC.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"forceIconButton",void 0);
_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"forceIconOnly",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"overrides",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"buttonTooltipPosition",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"styleActionButton",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"disableTextTransform",void 0);
_.P([_.J({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Y("design:type",String)],GC.prototype,"videoId",void 0);_.P([_.J(),_.Y("design:type",Object)],GC.prototype,"data",void 0);_.P([_.J({selector:Mf,selectorArgs:["videoId"]}),_.Y("design:type",Object)],GC.prototype,"downloadProgress",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],GC.prototype,"isDownloadComplete",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],GC.prototype,"isHidden",void 0);_.P([_.J({selector:_.xg,selectorArgs:["videoId"]}),_.Y("design:type",String)],GC.prototype,"transferState",void 0);_.P([_.J({selector:_.giQ,selectorArgs:["videoId"]}),_.Y("design:type",Object)],GC.prototype,"isVideoDeletedByUser",void 0);_.P([_.J({selector:yrD,selectorArgs:["videoId"]}),_.Y("design:type",Object)],GC.prototype,"offlineabilityState",void 0);
_.P([_.J({value:!0}),_.Y("design:type",Boolean)],GC.prototype,"showTooltips",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],GC.prototype,"sendCommandWhenDisabled",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],GC.prototype,"disabled",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GC.prototype,"dataChanged",null);
_.P([_.BG("offlineabilityState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GC.prototype,"showHideButton",null);_.P([_.BG("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GC.prototype,"onTransferStateChanged",null);_.P([_.BG("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GC.prototype,"updateProgress",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],GC);
_.H(GC,"ytd-download-button-renderer",function(){if(AdP!==void 0)return AdP;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AdP=W},{mode:2});var tDN;var bwy,mlo=function(){if(bwy!==void 0)return bwy;var W=document.createElement("template");_.p(W,'\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 bwy=W};var rWe=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live"),qAr=_.mn("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,D4=function(){var W=_.O.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$12446_browserSupportsAnimation=_.S("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var e;if((e=W.data)==null||!e.defaultNavigationEndpoint){var t;e=!((t=W.data)==null?0:t.isToggled);var b;if((b=W.data)==null||!b.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.Tm.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.Tm.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},qAr);
var m;W.set("data.isToggled",!((m=W.data)==null?0:m.isToggled));t=W.getInnertubeIcon();b={toggled:e,actions:{}};t&&(b.actions[t.toLowerCase()]=e);_.q2(W.hostElement,"yt-toggle-button",b)}}};
return W};
_.Z(D4,_.O);_.r=D4.prototype;_.r.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Tm.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.toggle=function(W){var e;this.set("data.isToggled",W!==void 0?W:!((e=this.data)==null?0:e.isToggled))};
_.r.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.l(W,d7h);var e,t,b,m=(e=this.data)==null?void 0:(t=e.toggleButtonSupportedData)==null?void 0:(b=t.toggleButtonIdData)==null?void 0:b.id;m&&W&&m===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.r.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.l(W,JrS);var e,t,b,m=(e=this.data)==null?void 0:(t=e.toggleButtonSupportedData)==null?void 0:(b=t.toggleButtonIdData)==null?void 0:b.id;m&&W&&m===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.r.getInnertubeIcon=function(){var W=this.data;if(W){var e,t,b=((e=W.defaultIcon)==null?0:e.iconType)?(t=W.defaultIcon)==null?void 0:t.iconType:null,m,q;e=((m=W.toggledIcon)==null?0:m.iconType)?(q=W.toggledIcon)==null?void 0:q.iconType:b;return W.isToggled?e:b}};
_.r.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Ec.Object.defineProperties(D4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$12446_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var e=W.renderer;var t=W.element;var b=W.toggled;var m=W.onTapCallback;var q=W.commandClientArgs;var Q=W.overrides;var X=W.forceIcon;var I=W.forceModernIconButton;var u=W.forceDisabled;var c=W.useAnimatedText;var v=W.animatedTextProps;W=TKL(e,b);X=!e.defaultIcon||!X&&e.defaultText?e.defaultIcon?"leading":void 0:I?"icon-only":"icon-only-40";X==="icon-only-40"&&(W.type="text");var D;I=Object;var B=I.assign,k;a:switch((k=
e.style)==null?void 0:k.styleType){case "STYLE_COMPACT_GRAY":k={size:"S"};break a;default:k={size:"M"}}var n=!!b;var f=(f=b&&e.toggledText||e.defaultText)?_.Tf(f):void 0;c?(c=_.Ub(b&&e.toggledText||e.defaultText))&&v&&!isNaN(Number(v.numberValue))?(v.numberText=c,b&&(v.numberValue+=1),c=v):c=void 0:c=void 0;var M,K,U,V;var L=(v=((K=b?e.toggledAccessibilityData||((L=e.toggledText)==null?void 0:L.accessibility):e.accessibilityData||((M=e.defaultText)==null?void 0:M.accessibility))==null?void 0:(U=K.accessibilityData)==
null?void 0:U.label)||((V=e.accessibility)==null?void 0:V.label))?v:_.Ub(b&&e.toggledText||e.defaultText);u=u===void 0?e.isDisabled:u;t=gCz(e,b,m,t,q);b=fWc(e,b);b!=null&&b.length?(b=_.h_({innertubeCommand:ou9(b),forceNewState:!0}),b=Hg(b)?b:void 0):b=void 0;e=B.call(I,{},W,k,{iconPosition:X},Q,{focused:!1,toggled:n,toggleable:!0,formattedButtonText:f,animatedTextProps:c,accessibilityLabel:L,disabled:u,onTap:t,aTagConfig:b},UyS((D=e.colorData)==null?void 0:D.basicColorPaletteData));e.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(e.type="filled");return e}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.ao(W)}}});
D4.prototype.resetAnimation=D4.prototype.resetAnimation;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],D4.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"isPressed",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"forceIconButton",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"forceIconOnly",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"forceModernIconButton",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"alignByText",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"overrides",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],D4.prototype,"disabled",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"isShorts",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"buttonTooltipPosition",void 0);_.P([_.J(),_.Y("design:type",Object)],D4.prototype,"animatedText",void 0);_.P([_.J(),_.Y("design:type",String)],D4.prototype,"textNumberValue",void 0);_.P([_.J({computed:"computeTooltip(data, data.isToggled)"}),_.Y("design:type",Object)],D4.prototype,"tooltip",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D4.prototype,"resetAnimation",null);_.P([_.T("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D4.prototype,"computedButtonShape",null);_.P([_.T("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D4.prototype,"computedIcon",null);
_.P([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],D4);rWe&&_.H(D4,"ytd-toggle-button-renderer",mlo,{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var xb=_.NN(function(W){function e(u){var c;return _.F(function(v){if(v.nextAddress==1)return(c=!xhS(u,X())||!X().enabled)?v.jumpTo(2):_.a(v,HX9(),3);v.nextAddress!=2&&(c=v.yieldResult);if(c)return v.return();t();setTimeout(function(){Q(!1)},1500);
_.u8(v)})}
function t(){setTimeout(function(){Q(!0);var u;(u=b.lottieEl)==null||u.goToAndPlay(0)},150)}
var b=_.wN(),m=_.R(_.up(!1,void 0,"JJXzp")),q=m.next().value,Q=m.next().value,X=_.LD(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.nt(function(){var u,c;((u=W.settings)==null?void 0:(c=u.call(W))==null?void 0:c.uniqueId)==="this is not intended behavior"&&_.JC(new _.o_("Smartimation Settings is undefined"))});
_.nh(function(){X().experimentEnabled&&(X().enabled?OX9(e):(Q(!1),Mkc(e)),_.fh(function(){Mkc(e)}))},"FRiAUe");
_.nh(function(){X().timings.join("");X().experimentEnabled&&(s2L(X()),_.fh(function(){hqD(X())}))},"VKiJOe");
var I=_.SC(function(){var u=b,c=X().uniqueId+"-border",v,D;var B="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((D=(v=_.ee().resolve(_.Wi(_.zf)))==null?void 0:v())!=null&&D?"dark":"light")+"_v2.json";return{animationRef:u,animationConfig:{name:c,autoplay:!1,loop:!1,path:B}}},void 0,"tgykab");
m={};return _.w("yt-smartimation",{class:_.ve(W.className,"smartimation",(m["smartimation--experiment-enabled"]=function(){return X().experimentEnabled},m["smartimation--active-border"]=q,m["smartimation--enable-masking"]=KLZ(),m))},_.w(_.G,{cond:function(){return X().experimentEnabled},
then:function(){return _.w("div",{class:"smartimation__border"},_.w(_.G2,{className:"smartimation__border-gradient",data:I,animationName:function(){return I().animationConfig.name}}))}}),_.w("div",{class:"smartimation__content"},W.children))},"B");
xb.idomCompat=!0;_.mM(xb,"yt-smartimation",{props:{className:_.Eu,settings:_.Eu}});var St=function(){var W=_.O.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.Z(St,_.O);St.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
St.prototype.onDataChanged=function(){var W,e;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(e=W.timedAnimationData)==null?void 0:e.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
St.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.l(this.data.likeButton,_.sW),e=_.l(this.data.dislikeButton,_.sW);return!!((W==null?0:W.isToggled)||(e==null?0:e.isToggled))};
St.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]]"}}}}}};
_.Ec.Object.defineProperties(St.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,e,t=((W=this.data)==null?void 0:(e=W.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:this.shouldEnableSmartimation,experimentEnabled:t.length>0}}}});
St.prototype.onDataChanged=St.prototype.onDataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],St.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],St.prototype,"likeButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],St.prototype,"dislikeButtonOverride",void 0);
_.P([_.T("shouldEnableSmartimation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],St.prototype,"smartimationSettings",null);_.P([_.ul("data"),_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],St.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],St);
_.H(St,"ytd-segmented-like-dislike-button-renderer",function(){if(tDN!==void 0)return tDN;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return tDN=W},{mode:1});var Rwo;var QYN;(QYN=document.body)==null||QYN.setAttribute("rounded-container","");var FRo={};FRo.YtToggleButtonBehavior=[_.qM.YtActionHandlerBehavior,oj.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var e={toggled:this.data.isToggled,actions:{}};e.actions[this.buttonIcon]=this.data.isToggled;_.q2(this.hostElement,"yt-toggle-button",e)}e=this.data.defaultServiceEndpoint||null;var t=this.data.toggledServiceEndpoint||null;if(e&&t||e&&this.data.preventAutoToggle)W=W?t:e,e=this.disableCommandHandlerOverride,_.S("killswitch_toggle_button_behavior_resolve_command")||e?_.X5(this.hostElement,
[W]):_.cg(W,this.hostElement),_.q2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var e=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,e));this._setButtonText(this.computeButtonText_(W,e));this._setButtonAccessibility(this.computeAccessibility_(W,e));this._setButtonTooltip(this.computeTooltip_(W,e));this._setButtonClass(this.computeButtonClass_(W,e));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=e):this.elements_.button.setAttribute("aria-pressed",e));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=e)}},
shouldSetIconActiveState_:function(){return _.S("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.S("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var e,t;return!!((e=this.data)==null?0:(t=e.toggledServiceEndpoint)==null?0:t.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,e){var t=W&&W.defaultIcon?_.ao(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.ao(W.toggledIcon.iconType):t;return e?W:t},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,e){return W?e&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,e){return W?(e?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,e){return W?e&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,e){if(!W)return"";var t="",b=W.toggledStyle||W.style;if(e=e?b:W.style){e.styleType&&(e=e.styleType);try{t+=e.toLowerCase().replace(/_/g,"-")+" "}catch(m){_.xM(m,e,typeof e),_.JC(m)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{t+=W.toLowerCase().replace(/_/g,"-")+" "}catch(m){_.xM(m,W,typeof W),_.JC(m)}}return t.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var e=W&&W.serviceEndpoint,t=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return e?e:t&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.xD("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var XDo=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live"),BC=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.roundedContainer=!0;return W};
_.Z(BC,_.O);BC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
BC.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var e={toggled:!!this.data.isToggled,actions:{}};e.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var t,b;e.actions.playlistId=(t=this.data.defaultServiceEndpoint)==null?void 0:(b=t.playlistEditEndpoint)==null?void 0:b.playlistId;_.q2(this.hostElement,"yt-toggle-button",e)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
BC.prototype.onYtNavigate=function(W){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);e&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(e))};
_.Ec.Object.defineProperties(BC,{template:{configurable:!0,enumerable:!0,get:function(){if(Rwo===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);Rwo=W}W=Rwo;return W}}});
BC.prototype.onYtNavigate=BC.prototype.onYtNavigate;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],BC.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],BC.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(FRo.YtToggleButtonBehavior),_.Y("design:type",Object)],BC.prototype,"ytToggleButtonBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],BC.prototype,"data",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],BC.prototype,"showTooltips",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BC.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BC.prototype,"roundedContainer",void 0);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BC.prototype,"onYtNavigate",null);
_.P([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:XDo})],BC);var ICb;_.oL=new _.W_("PANEL_CONTROLLER_TOKEN");_.lR=new _.W_("SHEET_CONTROLLER_TOKEN");_.Z4=new _.W_("DIALOG_CONTROLLER_TOKEN");ICb=new _.W_("DIALOG_CONTAINER_TOKEN");var AdG=_.Gv("DOWNLOAD",{},"Download"),NKv=_.Gv("DOWNLOADING",{},"Downloading"),dhZ=_.Gv("DOWNLOADED",{},"Downloaded"),WRv=_.Gv("RETRY",{},"Retry");var tDc=[],bwR=!1;var aC8=_.NN(function(W){var e=aCK,t=function(){return""},b=QYc(W.data),m=FRs(W.data),q=XDs(W.data),Q=ICD(W.data);
e=function(){var X=W.data(),I=LL9(X,b(),m(),q(),Q()),u=!!X.videoId,c=I.text;return{title:u?c:void 0,tooltip:u?void 0:c,accessibilityText:c,onTap:I.onTap,iconName:I.iconType,style:X.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:I.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:X.buttonSize}};
t={};t=_.ve("ytDownloadButtonViewModelHost",(t.ytDownloadButtonViewModelIsHidden=function(){var X=W.data(),I=Q();return X.playlistId||I()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||I()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},t));
return _.w("download-button-view-model",{class:t},_.w(_.MV,{data:e}))},"C");
aC8.idomCompat=!0;var uvN=_.NN(function(W){var e=W.backgroundLottieRef;var t=W.foregroundLottieRef;var b=W.children;var m=W.wrapperClass;var q=W.disableAnimation;W=function(){return(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!(q==null?0:q())};
return _.w("yt-animated-action",{class:_.ve("animated-action__container",m)},_.w("div",{class:"animated-action__content-with-background"},_.w(_.G,{cond:W,then:function(){return _.w(wDo,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:e==null?void 0:e(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(wDs()?"dark":"light")+"_v5.json"}}}})}}),b),_.w(_.G,{cond:W,
then:function(){return _.w(wDo,{lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(wDs()?"dark":"light")+"_v4.json"}}}})}}))},"D");
uvN.idomCompat=!0;var wDo=_.NN(function(W){var e=W.wrapperClass;var t=W.lottieClass;var b=W.lottiePlayerProps;return _.w("div",{class:_.ve("animated-action__lottie",e),"aria-hidden":"true"},_.w(_.G2,{className:t,data:b,animationName:function(){return b().animationConfig.name}}))},"E");var uvc={isOpen:!1};var vdS={isAllowed:!1};var DlG={errorMessage:"",title:"",privacy:"",isDisabled:!0};var BxG={isOpen:!1};var lCG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var cW8={response:void 0};var $lK=function(W,e){W=W===void 0?cW8:W;switch(e.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:e.payload});default:return W}};var vdZ={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var kOs=function(W,e){W=W===void 0?vdZ:W;switch(e.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:e.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:e.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:e.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:e.payload});default:return W}};var GOZ={reportFormData:void 0,reportDetailsFormData:void 0};var pDK=function(W,e){W=W===void 0?GOZ:W;switch(e.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:e.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:e.payload});default:return W}};var DlP=void 0;_.S("mweb_enable_redux_store_on_demand")||(DlP=new LG(yWc()));var SAD=_.NN(function(W){W=_.Ez(W,{themeOverride:void 0,animationRef:{}});var e=W.animatedIconType,t=W.active,b=W.themeOverride,m=W.animationRef;W=W.staticIconFn;var q=_.R(_.up(void 0,void 0,"P5a72b")),Q=q.next().value,X=q.next().value,I=function(){a:{var f=e();var M=b==null?void 0:b();var K;M=(M==null?void 0:M.useDarkTheme)||((K=_.ee().resolve(_.Wi(_.zf)))==null?void 0:K());switch(f){case "LIKE":DlP||(DlP=new LG(yWc()));f=(f=jx2(DlP.getState()))&&f.animationLightUrl&&f.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:M?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:M?f.animationDarkUrl:f.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(f){M=f;break a}M="animated_like_icon_"+(M?"dark_v4":"light_v4");M={lottiePlayerProps:{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+M+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":M={lottiePlayerProps:{animationConfig:{name:M?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(M?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}M=void 0}return M},u=function(){var f,M;
return(M=(f=I())==null?void 0:f.lottiePlayerProps.animationConfig.name)!=null?M:""},c=function(){if(I()){var f=I().lottiePlayerProps.animationConfig.path;
return ce.get(f)||Q()}};
q=_.R(_.up(!1,void 0,"h6xR3c"));var v=q.next().value;q=q.next().value;var D=CWz(q),B=function(){var f=I(),M,K,U;return(U=f==null?void 0:(M=f.lottiePlayerProps.animationConfig)==null?void 0:(K=M.rendererSettings)==null?void 0:K.className)!=null?U:""},k=void 0,n=void 0;
_.nh(function(){var f=I(),M=u(),K=c(),U=v(),V=t();if(f&&(n!==M&&(n=M,k=V,M=m(),D.animationConfig=f.lottiePlayerProps.animationConfig,D.animationRef=M,K&&(D.animationConfig.animationData=K,D.animationConfig.path=void 0),M=f.lottiePlayerProps.animationConfig.path,!ce.get(M)&&f.lazyLoad&&M&&jYg(M,X)),!(U||f.lazyLoad&&!K))){if(K=!m().lottieEl)V?(U=f.totalFrames,D.animationConfig.initialSegment=[U-1,U]):D.animationConfig.initialSegment=void 0;if(k!==V&&!K)if(K=m(),V){var L;(L=K.lottieEl)==null||L.playSegments([0,
f.totalFrames],!0)}else{var E;(E=K.lottieEl)==null||E.playSegments([0,1],!0)}k=V}},"YCYOCe");
return _.w("animated-icon",{class:"ytAnimatedIconHost"},_.w(_.G,{cond:function(){var f,M;return!((f=I())==null||!f.lottiePlayerProps.animationConfig.path||((M=I())==null?0:M.lazyLoad)&&!c()||v())},
then:function(){return _.w(_.G2,{data:D,animationName:u,className:B,animationRef:m})},
else:W}))},"F");_.$I=_.NN(function(W){var e=_.zT("yt-subscribe-button-view-model"),t=_.zT("div"),b=_.zT("div"),m=_.wN(),q=_.wN(),Q=_.wN(),X=_.D_(ZXD,function(){return W.data().stateEntityStoreKey}),I=_.D_($hD,function(){var ay,PU;
return(PU=(ay=W.data().notificationStateEntityStoreKeys)==null?void 0:ay.subsNotificationStateKey)!=null?PU:""}),u=function(){return!W.data().enableSubscribeButtonPostClickAnimation},c=_.R(_.up(0,void 0,"eTsWvc")),v=c.next().value,D=c.next().value;
c=_.R(_.up(0,void 0,"dniDQ"));var B=c.next().value,k=c.next().value;c=_.R(_.up(!1,void 0,"EluPic"));var n=c.next().value,f=c.next().value;c=_.R(_.up(!1,void 0,"r0jnre"));var M=c.next().value,K=c.next().value;c=_.R(_.up(!1,void 0,"KMvoQe"));var U=c.next().value,V=c.next().value,L;c=_.R(_.up(!1,void 0,"aSENce"));var E=c.next().value,RR=c.next().value,uv=function(){K(!0);_.lJ(_.Tm,function(){K(!1)},1500)};
_.nh(function(){var ay=M();ab(function(){ay&&!u()&&X()&&hwL(m,q,Q)})},"LgmX6c");
_.nh(function(){var ay=X();ab(function(){if(!u()&&ay){var PU;((PU=W.animateWidth)==null?0:PU.call(W))&&sYG(e.value,!!ay.subscribed,v(),B());var cu,LQ;((cu=L)==null?0:cu.subscribed)||!ay.subscribed||ay.key!==((LQ=L)==null?void 0:LQ.key)||uv();L=ay}})},"iZzoUb");
c=_.SC(function(){var ay,PU,cu,LQ=W.data(),sB=!((ay=X())==null||!ay.subscribed);ay=!((PU=W.isOverlay)==null||!PU.call(W));PU=n()?e:void 0;var z1=(cu=I())==null?void 0:cu.state;cu=E();MDK(LQ,z1);return gdQ({model:LQ,subscribed:sB,isOverlay:ay,element:PU,notificationState:z1,disableTextEllipsis:!0,focused:cu})},void 0,"yGQGue");
var GS=function(){var ay;if(!u()&&((ay=W.animateWidth)==null?0:ay.call(W))&&(t==null?0:t.value)&&(b==null?0:b.value)&&!U()){ay=X();var PU=_.R((ay==null?0:ay.subscribed)?[t,b]:[b,t]),cu=PU.next().value;PU=PU.next().value;cu=Math.ceil(cu.value.getBoundingClientRect().width);PU=Math.ceil(PU.value.getBoundingClientRect().width);D(cu);k(PU);sYG(e.value,!(ay==null||!ay.subscribed),cu,PU);V(!0)}},k9=_.Be(function(ay){GS();
var PU=X();PU&&(ay.detail.endpoint.subscribeEndpoint||ay.detail.endpoint.unsubscribeEndpoint)&&JWs(e.value,!PU.subscribed,PU)}),CQ=function(){var ay=_.ee().resolve(_.Wi(_.FN));
ay&&RR(ay.isKeyBoardInUse())},fQ=function(){RR(!1)};
_.YM("yt-player-subscribe",function(ay){var PU=X();PU&&ay===W.data().channelId&&JWs(e.value,!0,PU)});
_.YM("yt-player-unsubscribe",function(ay){var PU=X();PU&&ay===W.data().channelId&&JWs(e.value,!1,PU)});
_.YM("yt-update-subscribe-button-action",function(ay){ay=_.l(ay,Muy);var PU=X();PU&&ay&&ay.channelId===W.data().channelId&&JWs(e.value,!!ay.subscribed,PU)});
_.nt(function(){e.value&&(e.value.addEventListener("focusin",CQ),e.value.addEventListener("focusout",fQ));var ay=_.kM(_.Tm,function(){GS()});
f(!0);_.fh(function(){_.Tm.cancelJob(ay);e.value&&(e.value.removeEventListener("focusin",CQ),e.value.removeEventListener("focusout",fQ))})});
var iv=function(){var ay,PU,cu;if(cu=!((ay=X())==null||!ay.subscribed))ay=!!W.data().disableNotificationBell,cu=(PU=I())==null?void 0:PU.state,cu=!ay&&!!cu;return cu},hz=function(){var ay;
return!((ay=X())==null?0:ay.subscribed)},ES=function(){var ay,PU;
if(PU=hz()){PU=!!W.data().disableNotificationBell;var cu=(ay=I())==null?void 0:ay.state;PU=!PU&&!!cu}return PU},Wu={},pr={};
return _.w("yt-subscribe-button-view-model",{class:_.ve(W.className,"yt-subscribe-button-view-model-wiz",(Wu["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var ay,PU;return!((ay=X())==null||!ay.subscribed)&&((PU=W.animateWidth)==null?void 0:PU.call(W))&&M()},Wu["yt-subscribe-button-view-model-wiz--hidden"]=function(){var ay;
return!((ay=X())==null?0:ay.subscribed)&&W.data().hideWhenUnsubscribed},Wu)),
el:e,"on:yt-service-request-sent":k9},_.w(uvN,{backgroundLottieRef:m,foregroundLottieRef:q,wrapperClass:_.ve("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(pr["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var ay;return((ay=W.animateWidth)==null?void 0:ay.call(W))&&M()},pr["yt-subscribe-button-view-model-wiz__static-width"]=function(){var ay;
return!((ay=W.animateWidth)==null?0:ay.call(W))},pr)),
disableAnimation:u},_.w("div",{el:t,class:"yt-subscribe-button-view-model-wiz__container"},_.w(t3,{data:c,icon:function(){return _.w(_.G,{cond:iv,then:function(){var ay=function(){var PU;return TxQ((PU=I())==null?void 0:PU.state)};
return _.w(_.G,{cond:function(){return u()||ay()!=="NOTIFICATIONS_NONE"},
then:function(){return _.w(_.kD,{icon:ay})},
else:function(){return _.w(SAD,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Q})}})}})},
secondaryIconName:function(){return iv()?"EXPAND":void 0}}))),_.w("div",{el:b,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.w(_.G,{cond:function(){var ay;return((ay=W.animateWidth)==null?void 0:ay.call(W))&&!u()&&!U()},
then:function(){return _.w(t3,{data:_.SC(function(){var ay;return gdQ({model:W.data(),subscribed:hz(),isOverlay:!((ay=W.isOverlay)==null||!ay.call(W)),element:e,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var ay;return ES()?TxQ((ay=I())==null?void 0:ay.state):void 0},
secondaryIconName:function(){return ES()?"EXPAND":void 0}})}})))},"G");
_.$I.idomCompat=!0;var HwS=new _.W_("RENDERER_STAMPER_OPTIONS_TOKEN");var BxP=_.NN(function(W){var e=W.data;var t=_.D_(ZXD,function(){return e().subscriptionStateEntityKey});
return _.w(_.G,{cond:function(){var b=e(),m=t();return!b.hideWhenUnsubscribed||(m==null?0:m.subscribed)?_.l(e().button,_.kb):void 0},
then:function(b){return _.w("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.w(_.MV,{data:b,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
BxP.idomCompat=!0;var AWD=_.$b({buttonViewModel:_.MV,subscribeButtonViewModel:_.$I,downloadButtonViewModel:aC8,toggleButtonViewModel:_.fU,subscribePlusButtonViewModel:BxP});_.tA(dlZ);var jX;_.yv=new fak;jX=new Map;var Qs2="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Xjv=["notificationTextRenderer","notificationMultiActionRenderer"],FdZ="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
RRG=Wdz(function(W){return _.TQ(W==null?void 0:W.targetId)}).useUpdatableData;var q9g=0;_.nU.debugName="EjJbCe";var odU=_.NN(function(W){return _.w(_.nU,{data:function(){return W.actionRow().actions}},{buttonViewModel:_.S("web_enable_sink_yt_flexible_actions_view_model")?function(e){var t=e.data;
e={};return _.w(_.MV,{data:t,className:_.ve("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return IlK(t())},e))})}:function(e){var t=e.data;
return _.w(kI,{isRow:W.isRow,isIconOnlyButton:function(){return IlK(t())},
useIntrinsicWidth:W.useIntrinsicWidth},_.w(_.MV,{data:t}))},
subscribeButtonViewModel:_.S("web_enable_sink_yt_flexible_actions_view_model")?function(e){var t=e.data;e={};return _.w(_.$I,{data:t,isOverlay:!1,animateWidth:function(){return!W.isRow()},
className:_.ve("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return IlK(t())},e))})}:function(e){return _.w(kI,{isRow:W.isRow},_.w(_.$I,{data:e.data,
isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(e){var t=e.data;return _.w(kI,{isRow:W.isRow,isIconOnlyButton:function(){return!!t().playlistId}},_.w(aC8,{data:t}))},
toggleButtonViewModel:function(e){var t=e.data;return _.w(kI,{isRow:W.isRow,isIconOnlyButton:function(){var b=t();return IlK(_.l(b.isToggled?b.toggledButtonViewModel:b.defaultButtonViewModel,_.kb))}},_.w(_.fU,{data:t}))},
subscribePlusButtonViewModel:function(e){return _.w(kI,{isRow:W.isRow},_.w(BxP,{data:e.data}))}})},"I"),kI=_.NN(function(W){var e={};
return _.w("div",{class:_.ve("yt-flexible-actions-view-model-wiz__action",(e["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,e["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=W.isIconOnlyButton,e))},W.children)},"J"),lCP=_.NN(function(W){var e=function(){var b;
return((b=W.layout)==null?void 0:b.call(W))===1},t={};
return _.w("yt-flexible-actions-view-model",{class:_.ve("yt-flexible-actions-view-model-wiz",W.className,(t["yt-flexible-actions-view-model-wiz--inline"]=function(){return!e()},t["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},t))},_.w(_.lV,{each:function(){return W.data().actionsRows||[]}},function(b){return _.w(_.G,{cond:e,
then:function(){return _.w("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.w(odU,{actionRow:b,isRow:e,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.w(odU,{actionRow:b,isRow:e})}})}))},"K"),p2=_.S("web_enable_sink_yt_flexible_actions_view_model")?lCP:_.SN(dlZ);
lCP.idomCompat=!0;_.mM(p2,"yt-flexible-actions-view-model",{props:{data:_.Eu,layout:_.Eu,justifyContentOverride:_.Eu,className:_.Eu}});_.tA(alv);var ZwZ,GBS;ZwZ=_.NN(function(W){var e=_.D_(sZ,function(){var m;return(m=W.data().dislikeEntityKey)!=null?m:""}),t=_.SC(function(){var m=e();
return m?m.likeStatus==="DISLIKE":_.l(W.data().toggleButtonViewModel,_.pU).isToggled},void 0,"D8oIFb"),b=_.SC(function(){return Object.assign({},_.l(W.data().toggleButtonViewModel,_.pU),{isToggled:t()})},void 0,"shaCXe");
return _.w("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.w(_.fU,{data:b,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(m){var q=e();q&&m!==(q.likeStatus==="DISLIKE")&&q.key&&_.Uz(_.gN("likeStatusEntity",q.key,{likeStatus:m?"DISLIKE":"INDIFFERENT",hadUserInteraction:m}))}}))},"L");
GBS=_.S("web_enable_sink_dislike_button_view_model")?ZwZ:alv;_.yA=_.S("web_enable_sink_dislike_button_view_model")?ZwZ:_.SN(alv);ZwZ.idomCompat=!0;_.tA(uO9);var $l8,vsK;$l8=_.NN(function(W){var e=_.S("web_supports_animations_api"),t=We(function(D){var B=u(),k,n=(B==null?void 0:(k=B.likeCountIfIndifferent)==null?void 0:k.content)!==D.numberText;if(X()||!n)return D;var f;return{numberText:(B==null?void 0:(f=B.likeCountIfIndifferent)==null?void 0:f.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!B}},{initial:{numberText:"",
numberValue:void 0,heightPx:36,shouldAnimate:!1}}),b=We(function(D){var B=u(),k,n=(B==null?void 0:(k=B.likeCountIfIndifferent)==null?void 0:k.content)!==D.numberText;if(X()||!n)return D;var f;return{numberText:(B==null?void 0:(f=B.likeCountIfLiked)==null?void 0:f.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!B}},{initial:{numberText:"",
numberValue:void 0,heightPx:36,shouldAnimate:!1}}),m=_.R(_.up(void 0,void 0,"aeyFFf")),q=m.next().value,Q=m.next().value,X=q,I=_.D_(sZ,function(){var D,B;return(B=(D=W.data())==null?void 0:D.likeStatusEntityKey)!=null?B:""}),u=_.D_(WNG,function(){var D,B;
return((D=W.likeCountEntity)==null?void 0:(B=D.call(W))==null?void 0:B.key)||""}),c=_.SC(function(){var D;
return((D=I())==null?void 0:D.likeStatus)==="LIKE"},void 0,"EkoGhd"),v=function(){var D;
return e&&!((D=W.likeCountEntity)==null||!D.call(W))};
return _.w("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.w(_.fU,{data:function(){var D=Object,B=D.assign,k;var n=_.l((k=W.data())==null?void 0:k.toggleButtonViewModel,_.pU);return B.call(D,{},n||{},{isToggled:c()})},
buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:function(){return v()?t():void 0},
animatedTextPropsToggled:function(){return v()?b():void 0},
onToggle:function(D){c5Z(D,I(),X(),Q)},
style:function(){var D;return((D=W.disableIconAnimation)==null?0:D.call(W))?void 0:{animateIcon:"true"}}}))},"M");
vsK=_.S("web_enable_sink_like_button_view_model")?$l8:uO9;_.jt=_.S("web_enable_sink_like_button_view_model")?$l8:_.SN(uO9);_.tA(D1Q);var kOo=_.NN(function(W){var e=function(){return _.l(W.data().likeButtonViewModel,_.Tz)},t=function(){var m;
return((m=e())==null?void 0:m.likeStatusEntityKey)||""},b=_.SC(function(){var m,q;
var Q=(q=_.D_(sZ,t)())!=null?q:(m=e())==null?void 0:m.likeStatusEntity;m=W.data();var X;m=(m==null?void 0:(X=m.timedAnimationData)==null?void 0:X.animationTiming)||[];return{uniqueId:"like-dislike",timings:m,enabled:(Q==null?void 0:Q.likeStatus)==="INDIFFERENT"&&m.length>0,experimentEnabled:m.length>0}},void 0,"e1fsz");
return _.w("segmented-like-dislike-button-view-model",{class:_.ve("ytSegmentedLikeDislikeButtonViewModelHost",W.className),"button-renderer":!0},_.w(xb,{settings:b},_.w("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.w(_.G,{cond:e,then:function(m){return _.w(_.jt,{data:m,likeCountEntity:function(){return W.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.w(_.G,{cond:function(){return _.l(W.data().dislikeButtonViewModel,_.Jv)},
then:function(m){return _.w(_.yA,{data:m,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),pD8=_.S("web_enable_sink_segmented_like_dislike_button_view_model")?kOo:D1Q;
kOo.idomCompat=!0;_.S("web_enable_sink_segmented_like_dislike_button_view_model")?_.mM(pD8,"segmented-like-dislike-button-view-model",{props:{data:_.Eu,className:_.Eu}}):_.a5(pD8,"segmented-like-dislike-button-view-model",{propNames:["data"]});var $1R=0;_.mM(Hb2,"account-link-button-view-model",{props:{data:_.Eu,className:_.bt,setMinWidth:_.bt,forceIconOnly:_.bt}});_.xD("menuRenderer","menuRenderer","ytd-menu-renderer");
var yWN={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"}},
jYD=_.S("web_fix_missing_action_buttons")?100:200,C2=function(){var W=_.O.apply(this,arguments)||this;W.safeArea=!_.S("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$12591_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.S("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var e;if((e=W.data)!=null&&e.flexibleItems){W.maybeFlushDebouncer();e=W.hostElement.clientWidth;var t=e>W.JSC$12591_lastWidth,b,m=((b=W.topLevelButtonsContainer)==null?void 0:b.scrollHeight)||0,q;b=((q=W.flexibleItemButtonsContainer)==null?void 0:q.scrollHeight)||0;q=W.hostElement.scrollHeight>Math.max(m,b)+8;t?(W.resetFlexibleItems(),W.JSC$12591_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):q&&(W.shrinkFlexibleMenu(),W.JSC$12591_lastWidth=
e)}};
W.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.ee().resolve(_.tQ).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.cg(W.data.disabledCommand,W.hostElement);else{var e=W.createMenuRendererVe(),t={items:W.items};W.data.menuPopupAccessibility&&(t.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(t.footer=W.data.footer);e={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t},veData:e}};
_.ee().resolve(_.lR).openSheet({openPopupActionCommand:e},W.hostElement)}};
return W};
_.Z(C2,_.O);_.r=C2.prototype;_.r.updateButtonOverrides=function(){if(!_.S("menu_renderer_label_update_upkillswitch")){var W=_.rz(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.r.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.r.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.r.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.XB(this.hostElement,{"--ytd-menu-renderer-button-color":_.sr(this.data.iconColor)}))};
_.r.onStamperFinished=function(){this.JSC$12591_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.r.setupFlexibleMenu=function(){var W=this,e;(e=this.data)!=null&&e.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.eS(this.maybeUpdateFlexibleMenu,jYD,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.r.maybeFlushDebouncer=function(){if(_.S("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(t){var b;(t=(b=t.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&$iv(t)});
var e;(e=this.flexibleItemButtons)==null||e.forEach(function(t){var b;(t=(b=t.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&$iv(t)})}};
_.r.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.S("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var e;this.flexAsTopLevelButtons=(e=this.data.flexibleItems)==null?void 0:e.map(function(t){return _.l(t,_.RD8).topLevelButton});
_.S("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.r.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.r.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.kP(this.flexAsTopLevelButtons.slice(0,-1))))};
_.r.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:yWN,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:yWN,events:!0}}};
_.r.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.r.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.r.detached=function(){this.icon="MORE_VERT"};
_.r.computeTopLevelButtonData=function(W){if(!W)return[];var e;W=(e=W==null?void 0:W.topLevelButtons)!=null?e:[];return _.kJ.unsafeClone([].concat(_.kP(W)))};
_.r.computeItems=function(W,e){if(!W)return[];var t=[];if(e){var b=(W.flexibleItems||[]).map(function(Q){return _.l(Q,_.RD8)});
b=_.R(b);for(var m=b.next();!m.done;m=b.next())m=m.value,e.includes(m.topLevelButton)||(m=m.menuItem)&&t.push(m)}var q;W=(q=W==null?void 0:W.items)!=null?q:[];return[].concat(_.kP(t),_.kP(W))};
_.r.computeMenuActive=function(W,e){return W||e};
_.r.onPopupOpened=function(){this.overlayOpen=!0;_.q2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.r.onPopupClosed=function(){this.overlayOpen=!1;_.q2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.r.onPopupCanceled=function(){this.overlayOpen=!1;_.q2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.r.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.r.isHidden=function(W,e){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(e==null?0:e.length)};
_.r.isModernOverflowHidden=function(W,e){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(e==null?0:e.length):!0};
_.r.createMenuRendererVe=function(){var W=this.data.trackingParams,e=_.fc(),t=_.nc();return W&&e&&t?(W=_.$5(W),t=_.na(7591),_.S("combine_ve_grafts")?_.XW(_.Sg(),t,W):_.Ke(e,W,t),t):null};
_.Ec.Object.defineProperties(C2.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
C2.prototype.onPopupCanceled=C2.prototype.onPopupCanceled;C2.prototype.onPopupClosed=C2.prototype.onPopupClosed;C2.prototype.onPopupOpened=C2.prototype.onPopupOpened;C2.prototype.tonalOverrideChanged=C2.prototype.tonalOverrideChanged;C2.prototype.resetFlexibleItems=C2.prototype.resetFlexibleItems;C2.prototype.setupFlexibleMenu=C2.prototype.setupFlexibleMenu;C2.prototype.iconButtonColorChanged=C2.prototype.iconButtonColorChanged;C2.prototype.updateButtonOverrides=C2.prototype.updateButtonOverrides;
_.P([_.y(_.UP),_.Y("design:type",Object)],C2.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#button-shape"),_.Y("design:type",wq)],C2.prototype,"buttonShape",void 0);_.P([_.vG("#button"),_.Y("design:type",Object)],C2.prototype,"button",void 0);
_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"data",void 0);_.P([_.J({computed:"computeTopLevelButtonData(data)"}),_.Y("design:type",Array)],C2.prototype,"topLevelButtonData",void 0);_.P([_.J(),_.Y("design:type",Array)],C2.prototype,"flexAsTopLevelButtons",void 0);_.P([_.J({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Y("design:type",Array)],C2.prototype,"items",void 0);_.P([_.J({value:"MORE_VERT"}),_.Y("design:type",String)],C2.prototype,"icon",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],C2.prototype,"safeArea",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Y("design:type",Boolean)],C2.prototype,"menuActive",void 0);_.P([_.J(),_.Y("design:type",Boolean)],C2.prototype,"menuFocused",void 0);_.P([_.J({value:"bottom"}),_.Y("design:type",String)],C2.prototype,"buttonTooltipPosition",void 0);_.P([_.J(),_.Y("design:type",Boolean)],C2.prototype,"overlayOpen",void 0);
_.P([_.J({value:!0}),_.Y("design:type",Boolean)],C2.prototype,"forceIconButton",void 0);_.P([_.J(),_.Y("design:type",Boolean)],C2.prototype,"styleActionButton",void 0);_.P([_.J(),_.Y("design:type",Boolean)],C2.prototype,"disableTextTransformOnButtons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],C2.prototype,"tonalOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"threeDotSize",void 0);
_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"threeDotButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"isOverlay",void 0);_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"useOverlayDark",void 0);_.P([_.J({computed:"computeButtonOverride(tonalOverride)"}),_.Y("design:type",Object)],C2.prototype,"buttonOverride",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],C2.prototype,"hasCustomIconColor",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("flexAsTopLevelButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C2.prototype,"hasFlexibleItems",null);_.P([_.J({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Y("design:type",Boolean)],C2.prototype,"hasItems",void 0);_.P([_.J(),_.Y("design:type",Object)],C2.prototype,"topLevelIconsOnly",void 0);
_.P([_.ul("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"updateButtonOverrides",null);_.P([_.T("topLevelIconsOnly"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C2.prototype,"buttonOverrides",null);_.P([_.vG("#top-level-buttons-computed"),_.Y("design:type",HTMLElement)],C2.prototype,"topLevelButtonsContainer",void 0);_.P([_.GF(".top-level-buttons > *"),_.Y("design:type",Array)],C2.prototype,"topLevelButtons",void 0);
_.P([_.vG("#flexible-item-buttons"),_.Y("design:type",HTMLElement)],C2.prototype,"flexibleItemButtonsContainer",void 0);_.P([_.GF("#flexible-item-buttons > *"),_.Y("design:type",Array)],C2.prototype,"flexibleItemButtons",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"iconButtonColorChanged",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"setupFlexibleMenu",null);_.P([_.BG("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"resetFlexibleItems",null);_.P([_.ul("tonalOverride"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"tonalOverrideChanged",null);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"onPopupOpened",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"onPopupClosed",null);_.P([_.wz("yt-popup-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C2.prototype,"onPopupCanceled",null);
_.H(C2,"ytd-menu-renderer",function(){if(zqS===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);zqS=W}W=zqS;return W},{mode:_.Qe("kevlar_poly_si_batch_j030")?1:2});var CWk;var ndN;_.n2=_.NN(function(W){var e=W.data;var t=function(){if(e().icon)a:{var b={iconName:e().icon};for(var m=_.ee().resolve(_.wA),q=_.R([12,24]),Q=q.next();!Q.done;Q=q.next()){var X=Q.value;Q=Object.assign({},b,{iconStyle:"youtube_fill",iconSize:X});X=Object.assign({},b,{iconStyle:"youtube_outline",iconSize:X});if(m.resolveIcon(Q)){b=Q;break a}if(m.resolveIcon(X)){b=X;break a}}b=void 0}else b=void 0;return b};
W={};return _.w("badge-shape",{class:_.ve("badge-shape-wiz",function(){return VyG(e().type)},(W["badge-shape-wiz--overlay"]=function(){return e().isOverlay},W["badge-shape-wiz--ads-include-dot"]=function(){return e().adsIncludeDot},W["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(e().type){case 16:case 17:case 18:var b=!0;
break a;default:b=!1}return b},W["badge-shape-wiz--status-badge"]=function(){a:switch(e().type){case 11:case 12:case 13:case 14:case 15:var b=!0;
break a;default:b=!1}return b},W["badge-shape-wiz--no-text"]=function(){return!e().text},W["badge-shape-wiz--modern"]=function(){return e().modern||_.S("web_modern_badge_shape")},W)),
style:_.$D({"background-color":function(){var b;return(b=e().customColors)==null?void 0:b.backgroundColor}}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},_.w(_.G,{cond:function(){return e().animation},
then:function(b){return _.w(_.G2,{className:"badge-shape-wiz__icon",data:b,animationName:function(){return b().animationConfig.name||""}})}}),_.w(_.G,{cond:function(){var b;
return t()&&!((b=e())==null?0:b.animation)},
then:function(){return _.w("div",{class:"badge-shape-wiz__icon"},_.w(HlR,{data:function(){return t()}}))}}),_.w("div",{class:"badge-shape-wiz__text"},function(){var b;
return(b=e())==null?void 0:b.text}))},"O");
_.n2.idomCompat=!0;_.mM(_.n2,"badge-shape",{props:{data:_.Eu}});var f2=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.animated=_.S("animated_live_badge_icon");W.useBadgeShape=_.S("web_badge_shape_defrag");return W};
_.Z(f2,_.O);_.r=f2.prototype;_.r.addTooltips=function(){for(var W=_.rz(this.hostElement).querySelectorAll(".badge"),e=0,t;t=W[e++];){var b=this.repeatElement.itemForElement(t);t=_.rz(t);t.lastChild&&t.lastChild.is==="tp-yt-paper-tooltip"&&t.removeChild(t.lastChild);if(b=b.metadataBadgeRenderer&&b.metadataBadgeRenderer.tooltip){var m=_.tH("tp-yt-paper-tooltip");(0,_.FB)(m).textContent=b;m.setAttribute("position","top");m.setAttribute("aria-hidden","true");t.appendChild(m)}}};
_.r.badgesChanged=function(){var W=this;_.sj().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.r.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.r.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.r.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.r.computeStyle=function(W){_.S("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.S("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.r.computeAriaLabel=function(W){var e;return(W==null?void 0:(e=W.accessibilityData)==null?void 0:e.label)||(W==null?void 0:W.label)};
_.r.computeBadgeShape=function(W){var e;if(W){var t,b=Kd9(W.style),m=PdZ(W.style),q=W.label,Q=((t=W.accessibilityData)==null?void 0:t.label)||W.label;W=(e=W.icon)==null?void 0:e.iconType;e={type:b,brNzRatingBadgeType:m,text:q,accessibilityText:Q,icon:W!=="PREMIUM"?W:void 0}}else e={};return e};
_.r.updateComputedBadges=function(W,e,t){var b=this;(e=e?[e]:t?[t]:void 0)?this.computedBadges=e:this.computedBadges=W==null?void 0:W.filter(function(m){var q;if((q=m.metadataBadgeRenderer)==null?0:q.groups){q=!1;m=_.R(m.metadataBadgeRenderer.groups);for(var Q=m.next();!Q.done;Q=m.next()){Q=Q.value;var X=void 0;q=q||((X=b.hiddenBadgeGroups)==null?void 0:X.includes(Q))}return!q}return!0})};
_.r.useFilledIcons=function(W){return _.S("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.r.computeIcon=function(W){var e,t;W=W==null?void 0:(e=W.metadataBadgeRenderer)==null?void 0:(t=e.icon)==null?void 0:t.iconType;if(W!=="PREMIUM"&&W)return _.ao(W)};
_.r.computeStandaloneBadge=function(W){var e;W=W==null?void 0:(e=W.icon)==null?void 0:e.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
f2.prototype.hiddenBadgeGroupsChanged=f2.prototype.hiddenBadgeGroupsChanged;f2.prototype.standaloneBadgeChanged=f2.prototype.standaloneBadgeChanged;f2.prototype.standaloneRoundedBadgeChanged=f2.prototype.standaloneRoundedBadgeChanged;f2.prototype.badgesChanged=f2.prototype.badgesChanged;_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"hidden",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],f2.prototype,"componentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Array)],f2.prototype,"badges",void 0);_.P([_.J(),_.Y("design:type",Object)],f2.prototype,"topStandaloneBadge",void 0);_.P([_.J(),_.Y("design:type",Object)],f2.prototype,"bottomStandaloneBadge",void 0);_.P([_.J(),_.Y("design:type",Object)],f2.prototype,"computedBadges",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"mediumFontAdBadge",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"useRoundedBadge",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"largeFontAdBadge",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"overlayAd",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"overlayPremium",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"noDotAdBadge",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"collectionTruncate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"isThumbnailBadge",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],f2.prototype,"wrapBadges",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],f2.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],f2.prototype,"animated",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],f2.prototype,"useBadgeShape",void 0);_.P([_.J({value:[]}),_.Y("design:type",Array)],f2.prototype,"hiddenBadgeGroups",void 0);_.P([_.vG("#repeat"),_.Y("design:type",jB)],f2.prototype,"repeatElement",void 0);_.P([_.BG("badges"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f2.prototype,"badgesChanged",null);
_.P([_.BG("useRoundedBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f2.prototype,"standaloneRoundedBadgeChanged",null);_.P([_.BG("topStandaloneBadge","bottomStandaloneBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f2.prototype,"standaloneBadgeChanged",null);_.P([_.BG("hiddenBadgeGroups"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f2.prototype,"hiddenBadgeGroupsChanged",null);
_.P([_.h({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],f2);
var fCS=_.Ro()(f2,"ytd-badge-supported-renderer",function(){if(ndN===void 0){var W=document.createElement("template");_.p(W,'\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 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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);ndN=W}W=ndN;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Qe("kevlar_poly_si_batch_j053")?1:2});var gF=function(){var W=_.O.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.S("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.S("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.Z(gF,_.O);_.r=gF.prototype;
_.r.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"}}}};
_.r.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",gF.JSC$12603_DEFAULT_CLICK_LOCATION_BEHAVIOR,gF.JSC$12603_CLICK_LOCATION_ID_MAP))};
_.r.onTap=function(W){if(!_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.r.onClick=function(W){if(_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.r.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.r.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.rd(W,0))&&_.XB(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.r.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var e=this.data.impressionEndpoints[W];e.clickTrackingParams&&delete e.clickTrackingParams;_.ee().resolve(_.tQ).resolveCommand(e,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var t;((t=this.data)==null?0:t.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.r.handleMuteAd=function(){};
_.r.attached=function(){var W=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ec.Object.defineProperties(gF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var e;return _.Gv("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.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"}}});
gF.prototype.onClick=gF.prototype.onClick;gF.prototype.onTap=gF.prototype.onTap;gF.prototype.dataChanged=gF.prototype.dataChanged;
gF.JSC$12603_CLICK_LOCATION_ID_MAP=_.S("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"]]);
gF.JSC$12603_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.S("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"}];_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.Tx),_.Y("design:type",Object)],gF.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],gF.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],gF.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],gF.prototype,"ytdActiveViewBehavior",void 0);_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],gF.prototype,"actionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],gF.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],gF.prototype,"clickCommand",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],gF.prototype,"miniMode",void 0);_.P([_.J(),_.Y("design:type",String)],gF.prototype,"iconType",void 0);_.P([_.T("data.titleText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gF.prototype,"titleAriaLabel",null);
_.P([_.T("data.rating"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"getRating",null);_.P([_.T("data.price"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"getPrice",null);_.P([_.T("data.thirdLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"getThirdLine",null);_.P([_.T("data.fourthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"getFourthLine",null);
_.P([_.T("data.fifthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"getFifthLine",null);_.P([_.T("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computeRatingHidden",null);_.P([_.T("getPrice"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computePriceHidden",null);_.P([_.T("getThirdLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computeThirdLineHidden",null);
_.P([_.T("getFourthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computeFourthLineHidden",null);_.P([_.T("getFifthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computeFifthLineHidden",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.energyIcon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"hasEnergyIcon",null);
_.P([_.T("computePriceHidden","computeRatingHidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"computeSecondaryTextHidden",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gF.prototype,"standardizeIconSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gF.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gF.prototype,"noBottomMargin",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.layout"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gF.prototype,"layout",null);_.P([_.T("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gF.prototype,"mediaThumbnailWidth",null);_.P([_.T("layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gF.prototype,"useRoundedBadge",null);_.P([_.J(),_.Y("design:type",String)],gF.prototype,"thumbnailObjectFit",void 0);
_.P([_.J(),_.Y("design:type",Object)],gF.prototype,"thumbnailFitHeight",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gF.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],gF.prototype,"onTap",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],gF.prototype,"onClick",null);
_.P([_.h({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],gF);
_.H(gF,"ytd-display-ad-renderer",function(){if(CWk!==void 0)return CWk;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CWk=W},{mode:1});var gdr;var Txr;var JWo;var ibG=new Map;var xlN=!1;var TC=function(){var W=_.O.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.Z(TC,_.O);_.r=TC.prototype;_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.r.attached=function(){var W=this;this.observer=new MutationObserver(function(e,t){W.handleResized();t.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.r.detached=function(){this.observer&&this.observer.disconnect()};
_.r.logTooltipEvent=function(){_.S("kevlar_wiz_tooltip_event_killswitch")||xlN||(_.Y92("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),xlN=!0)};
_.r.handleWindowResized=function(){this.handleResized()};
_.r.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")))};
_.r.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Ot("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.r.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Ot("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.r.handleResized=function(){var W=this;this.verified&&_.Tm.addLowPriorityJob(function(){W.fitBackgroundToText();var e=getComputedStyle(W.hostElement).lineHeight;e&&(e=e.match(/\d+/))&&e.length&&(W.lineHeight=Number(e[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.r.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),e=_.rz(this.textEl).children;e.length>0?W.selectNodeContents(e[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.r.computeChannelBadgeStyle=function(W){var e;if((W==null?0:(e=W.runs)==null?0:e.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.sr(W.runs[0].textColor)+";"};
_.Ec.Object.defineProperties(TC.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"?_.zq(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.Ub(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
TC.prototype.onLineHeightChanged=TC.prototype.onLineHeightChanged;TC.prototype.onHeightChanged=TC.prototype.onHeightChanged;TC.prototype.onChannelNameChanged=TC.prototype.onChannelNameChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"badges",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"channelName",void 0);
_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"noEndpoints",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"wrapText",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"forceVerified",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"tooltipPosition",void 0);_.P([_.J(),_.Y("design:type",String)],TC.prototype,"tooltip",void 0);_.P([_.J(),_.Y("design:type",Boolean)],TC.prototype,"hasChannelArt",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TC.prototype,"compactStyle",void 0);_.P([_.vG("#text-container"),_.Y("design:type",HTMLElement)],TC.prototype,"textContainerEl",void 0);_.P([_.vG("#text"),_.Y("design:type",Object)],TC.prototype,"textEl",void 0);_.P([_.vG("#verified-tooltip"),_.Y("design:type",HTMLElement)],TC.prototype,"verifiedTooltip",void 0);_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"height",void 0);
_.P([_.J(),_.Y("design:type",Object)],TC.prototype,"lineHeight",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("badges","forceVerified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TC.prototype,"verified",null);_.P([_.T("badges","verified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TC.prototype,"hideBadges",null);_.P([_.T("channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TC.prototype,"formattedName",null);
_.P([_.T("badges","verified","formattedName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],TC.prototype,"tooltipText",null);_.P([_.T("hasChannelArt"),_.Y("design:type",String),_.Y("design:paramtypes",[])],TC.prototype,"tooltipOffset",null);_.P([_.ul("channelName"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TC.prototype,"onChannelNameChanged",null);
_.P([_.ul("height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TC.prototype,"onHeightChanged",null);_.P([_.ul("lineHeight","height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TC.prototype,"onLineHeightChanged",null);_.P([_.h({is:"ytd-channel-name",disableElementRegistration:!0})],TC);
_.H(TC,"ytd-channel-name",function(){if(JWo!==void 0)return JWo;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return JWo=W},{mode:_.Qe("kevlar_poly_si_batch_j036")?1:2});var Jx=function(){var W=_.O.apply(this,arguments)||this;W.standardizeIconSize=_.S("kevlar_system_icons");W.enableModernCommentBadges=_.S("enable_modern_comment_badges");return W};
_.Z(Jx,_.O);Jx.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.T2(this.hostElement,this.data.color.basicColorPaletteData)};
Jx.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var W,e=this.get("basicColorPaletteData.backgroundColor",(W=this.data)==null?void 0:W.color),t;W=this.get("basicColorPaletteData.foregroundTitleColor",(t=this.data)==null?void 0:t.color);t={};e?(e=_.sr(e),t["--ytd-author-comment-badge-background-color"]=e):(t["--ytd-author-comment-badge-icon-background-color"]="transparent",t["--ytd-author-comment-badge-background-color"]="transparent");W?(e=_.sr(W),t["--ytd-author-comment-badge-name-color"]=
e,t["--ytd-author-comment-badge-icon-color"]=e):t["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(t).length>0&&_.XB(this.hostElement,t)}};
Jx.prototype.useFilledIcons=function(W){return _.S("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.Ec.Object.defineProperties(Jx.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
Jx.prototype.colorChanged=Jx.prototype.colorChanged;Jx.prototype.basicPaletteChanged=Jx.prototype.basicPaletteChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Jx.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jx.prototype,"standardizeIconSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Jx.prototype,"enableModernCommentBadges",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.authorUnifiedVerified"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Jx.prototype,"verified",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Jx.prototype,"creator",null);_.P([_.ul("data.color.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jx.prototype,"basicPaletteChanged",null);
_.P([_.ul("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jx.prototype,"colorChanged",null);_.P([_.h({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Jx);
_.H(Jx,"ytd-author-comment-badge-renderer",function(){if(Txr!==void 0)return Txr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Txr=W},{mode:1});var OwB;var Mv=function(){return _.O.apply(this,arguments)||this};
_.Z(Mv,_.O);Mv.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mv.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],Mv.prototype,"icon",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Mv.prototype,"surface",void 0);
_.P([_.J({reflectToAttribute:!0,value:_.S("enable_shrink_image_size_on_web_posts_singleton")}),_.Y("design:type",Boolean)],Mv.prototype,"searchSxsUx",void 0);_.P([_.h({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Mv);
_.H(Mv,"ytd-backstage-image-renderer",function(){if(OwB!==void 0)return OwB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OwB=W},{mode:1});var MD8;var sy=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.Z(sy,_.O);_.r=sy.prototype;_.r.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.r.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.r.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.r.thumbnailSrc=function(W){var e,t,b,m;return(W==null?0:(e=W.thumbnails)==null?0:(t=e[0])==null?0:t.url)?_.lF((b=W.thumbnails)==null?void 0:(m=b[0])==null?void 0:m.url):void 0};
_.r.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.r.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.r.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.r.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,e=0;e<W.length;e++)if(W[e].selected){this.selectedItemIndex=e;break}};
_.r.onPopupClosed=function(W,e){W=Number(this.pollVotes.selected);e.confirmed&&(this.selectChoice(W,!1),_.RT(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.r.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.r.onYtCommentPollRevert=function(W,e){e&&(this.selectChoice(e.selectedChoiceIndex,!0),this.set("data.totalVotes",e.totalVotes))};
_.r.onYtServiceRequestSent=function(W,e){if(e.actions)for(W=0;W<e.actions.length;W++){var t=e.actions[W];_.l(t,y9)&&this.set("data.totalVotes",_.l(t,y9).totalVotes)}};
_.r.onYtServiceRequestCompleted=function(W){var e=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.q2(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.r.getEndpoint=function(W,e){return e===W?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.r.selectChoice=function(W,e){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++){var b;if(W===this.selectedItemIndex){var m=!1;var q=b=null}else b=(m=t===W)?this.data.choices[t].voteRatioIfSelected:this.data.choices[t].voteRatioIfNotSelected,q=m?this.data.choices[t].votePercentageIfSelected:this.data.choices[t].votePercentageIfNotSelected;this.set("data.choices."+t+".voteRatio",b);
this.set("data.choices."+t+".votePercentage",q);this.set("data.choices."+t+".selected",m)}e||(this.isLoading=!0,(e=this.getEndpoint(W,this.selectedItemIndex))&&_.ee().resolve(_.tQ).resolveCommand(e,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.Ec.Object.defineProperties(sy.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
sy.prototype.onYtServiceRequestCompleted=sy.prototype.onYtServiceRequestCompleted;sy.prototype.onYtServiceRequestSent=sy.prototype.onYtServiceRequestSent;sy.prototype.onYtCommentPollRevert=sy.prototype.onYtCommentPollRevert;sy.prototype.onPopupClosed=sy.prototype.onPopupClosed;sy.prototype.dataChanged=sy.prototype.dataChanged;_.P([_.y(_.E4),_.Y("design:type",Object)],sy.prototype,"paperItemBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],sy.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sy.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],sy.prototype,"isLoading",void 0);_.P([_.J({computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],sy.prototype,"isChannelOwner",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Y("design:type",Boolean)],sy.prototype,"isImagePoll",void 0);_.P([_.J({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],sy.prototype,"isTotalVotesDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],sy.prototype,"previousPollInfo",void 0);_.P([_.J(),_.Y("design:type",Object)],sy.prototype,"selectedItemIndex",void 0);_.P([_.vG("#poll-votes"),_.Y("design:type",Object)],sy.prototype,"pollVotes",void 0);
_.P([_.T("isChannelOwner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sy.prototype,"endpointStyle",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sy.prototype,"dataChanged",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],sy.prototype,"onPopupClosed",null);
_.P([_.wz("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],sy.prototype,"onYtCommentPollRevert",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],sy.prototype,"onYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sy.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],sy);
_.H(sy,"ytd-backstage-poll-renderer",function(){if(MD8!==void 0)return MD8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MD8=W},{mode:2});var sYP;var hwS={autoplay:!1,loop:!1},HwZ={simpleText:""},hx=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},hwS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},hwS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.Z(hx,_.O);_.r=hx.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.r.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.r.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.r.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.r.onExplanationChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var e=0;e<W.length;e++)if(W[e].isSelected||this.isChannelOwner&&W[e].isCorrect){this.selectedItemIndex=e;return}this.selectedItemIndex=-1}}};
_.r.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,e=Number(this.quizVotes.selected);this.selectChoice(e);this.sendVoteAction(e,W);this.quizVotes.selected=-1;var t;W=!((t=this.data)==null?0:t.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.r.onYtCommentPollRevert=function(W,e){e&&(this.selectChoice(e.selectedChoiceIndex),this.set("data.totalVotes",e.totalVotes))};
_.r.onYtServiceRequestSent=function(W,e){if(e.actions)for(W=_.R(e.actions),e=W.next();!e.done;e=W.next())(e=_.l(e.value,y9))&&this.set("data.totalVotes",e.totalVotes)};
_.r.onYtServiceRequestCompleted=function(W){var e=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(e==="FEEDBACK_DESELECT"||e==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.q2(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.r.getAnimationPropsForChoiceIndex=function(W,e){return e[W]};
_.r.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var e;if((e=this.data)!=null&&e.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){e=_.R(this.correctnessAnimationRefs);for(var t=e.next();!t.done;t=e.next()){var b=void 0,m=void 0;(b=t.value)==null||(m=b.lottieEl)==null||m.stop()}if(!(this.selectedItemIndex<0)){e=0;W&&(e=this.isCorrect?37:25);var q,Q;(q=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Q=q.lottieEl)==null||Q.goToAndPlay(W?e:0,!0);if(!(this.isCorrect||
(q=this.data.choices.findIndex(function(c){return c.isCorrect}),q<0))){var X,I;
(I=(X=this.correctnessAnimationRefs[q])==null?void 0:X.lottieEl)==null||I.goToAndPlay(37,!0);var u;X=(u=this.fadeContainers)==null?void 0:u.item(q);!W&&X&&this.fadeIn(X)}}}};
_.r.thumbnailSrc=function(W){var e,t,b,m;return(W==null?0:(e=W.thumbnails)==null?0:(t=e[0])==null?0:t.url)?_.lF((b=W.thumbnails)==null?void 0:(m=b[0])==null?void 0:m.url):void 0};
_.r.a11yVotedText=function(W,e){var t,b,m=((t=this.data)==null?void 0:(b=t.correctVotedText)==null?void 0:b.simpleText)||"",q,Q;t=((q=this.data)==null?void 0:(Q=q.votedText)==null?void 0:Q.simpleText)||"";if(!e)return"";var X,I;if((X=this.data)==null?0:(I=X.choices)==null?0:I[W].isCorrect)return m;var u,c;return((u=this.data)==null?0:(c=u.choices)==null?0:c[W].isSelected)?t:""};
_.r.getEndpoint=function(W,e){return e===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.r.sendVoteAction=function(W,e){if(W=this.getEndpoint(W,e))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.r.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var e=0;e<this.data.choices.length;e++)this.set("data.choices."+e+".isSelected",W===this.selectedItemIndex?!1:e===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.r.maybeInitializeQuizLotties=function(W){var e=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=W.map(function(t){return{animationConfig:t.isCorrect?e.baseCorrectLottiePlayerAnimationConfig:e.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){e.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(t){return t.animationRef||{}})};
_.r.fadeIn=function(W){W.classList.add("fade-in");_.F6(_.Tm,function(){W.classList.remove("fade-in")},900)};
_.Ec.Object.defineProperties(hx.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Ub(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 W,e;return((W=this.data)==null?void 0:(e=W.choices)==null?void 0:e.some(function(t){return t.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?HwZ:this.data.choices[this.selectedItemIndex].explanation||HwZ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
hx.prototype.onYtServiceRequestCompleted=hx.prototype.onYtServiceRequestCompleted;hx.prototype.onYtServiceRequestSent=hx.prototype.onYtServiceRequestSent;hx.prototype.onYtCommentPollRevert=hx.prototype.onYtCommentPollRevert;hx.prototype.dataChanged=hx.prototype.dataChanged;hx.prototype.onExplanationChanged=hx.prototype.onExplanationChanged;_.P([_.y(_.E4),_.Y("design:type",Object)],hx.prototype,"paperItemBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.e$.YtTaskEmitterBehavior),_.Y("design:type",Object)],hx.prototype,"ytTaskEmitterBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],hx.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hx.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],hx.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Object)],hx.prototype,"usesPanelLockup",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],hx.prototype,"isChannelOwner",void 0);_.P([_.J({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],hx.prototype,"isTotalVotesDisabled",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Y("design:type",Boolean)],hx.prototype,"isImageQuiz",void 0);_.P([_.J(),_.Y("design:type",Object)],hx.prototype,"previousQuizInfo",void 0);_.P([_.J(),_.Y("design:type",Object)],hx.prototype,"selectedItemIndex",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data","usesPanelLockup"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"shouldUseModernUi",null);
_.P([_.GF(".fade-container"),_.Y("design:type",Object)],hx.prototype,"fadeContainers",void 0);_.P([_.J(),_.Y("design:type",Array)],hx.prototype,"correctnessAnimationProps",void 0);_.P([_.T("explanation","showCorrectAnswer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"showExplanation",null);_.P([_.T("isChannelOwner","isAttempted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"showCorrectAnswer",null);
_.P([_.T("isChannelOwner","isAttempted","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"isQuizAnsweringDisabled",null);_.P([_.T("isQuizAnsweringDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hx.prototype,"endpointStyle",null);_.P([_.T("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"isAttempted",null);
_.P([_.T("data","selectedItemIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hx.prototype,"explanation",null);_.P([_.T("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hx.prototype,"isCorrect",null);_.P([_.vG("ytd-expander"),_.Y("design:type",Object)],hx.prototype,"expander",void 0);_.P([_.vG("#quiz-votes"),_.Y("design:type",Object)],hx.prototype,"quizVotes",void 0);
_.P([_.ul("explanation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hx.prototype,"onExplanationChanged",null);_.P([_.ul("data","isChannelOwner"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hx.prototype,"dataChanged",null);_.P([_.wz("yt-comment-quiz-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],hx.prototype,"onYtCommentPollRevert",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],hx.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hx.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],hx);
_.H(hx,"ytd-backstage-quiz-renderer",function(){if(sYP!==void 0)return sYP;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sYP=W},{mode:1});var KRy;var HC=function(){return _.O.apply(this,arguments)||this};
_.Z(HC,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],HC.prototype,"data",void 0);_.P([_.h({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],HC);
_.H(HC,"ytd-post-uploaded-video-renderer",function(){if(KRy!==void 0)return KRy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KRy=W},{mode:1});var PWD;var K2=function(){return _.O.apply(this,arguments)||this};
_.Z(K2,_.O);K2.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],K2.prototype,"data",void 0);_.P([_.h({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],K2);
_.H(K2,"ytd-sponsors-only-badge-renderer",function(){if(PWD!==void 0)return PWD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PWD=W},{mode:1});var VDN;var PC=function(){return _.O.apply(this,arguments)||this};
_.Z(PC,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],PC.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],PC.prototype,"data",void 0);_.P([_.h({is:"ytd-child-video-renderer",disableElementRegistration:!0})],PC);
_.H(PC,"ytd-child-video-renderer",function(){if(VDN!==void 0)return VDN;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VDN=W},{mode:1});var iwe;var YAD;var VA=function(){var W=_.O.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.Z(VA,_.O);_.r=VA.prototype;_.r.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.r.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.r.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.r.computePreserve=function(W){return W?!0:!1};
_.r.setBackground=function(){var W,e;_.S("web_modern_collections_v2")&&((W=this.data)==null?0:(e=W.thumbnail)==null?0:e.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
VA.prototype.setBackground=VA.prototype.setBackground;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],VA.prototype,"watchFeedThumbnail",void 0);_.P([_.J(),_.Y("design:type",Object)],VA.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],VA.prototype,"size",void 0);
_.P([_.J({computed:"computeBlurredImageSize(size)"}),_.Y("design:type",Object)],VA.prototype,"blurredImageSize",void 0);_.P([_.J({computed:"computeImageSize(size)"}),_.Y("design:type",Object)],VA.prototype,"imageSize",void 0);_.P([_.J({computed:"computePreserve(size)"}),_.Y("design:type",String)],VA.prototype,"preserve",void 0);_.P([_.J({computed:"computeObjectFit(size)"}),_.Y("design:type",String)],VA.prototype,"objectFit",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VA.prototype,"enableWebModernCollectionsV2",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VA.prototype,"webModernCollections",void 0);_.P([_.ul("data.thumbnail.sampledThumbnailColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VA.prototype,"setBackground",null);_.P([_.h({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],VA);
_.H(VA,"ytd-playlist-custom-thumbnail-renderer",function(){if(YAD!==void 0)return YAD;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YAD=W},{mode:1});var zwN;var iR=function(){return _.O.apply(this,arguments)||this};
_.Z(iR,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iR.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],iR.prototype,"width",void 0);_.P([_.h({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],iR);
_.H(iR,"ytd-playlist-video-thumbnail-renderer",function(){if(zwN!==void 0)return zwN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zwN=W},{mode:1});var Uly;var YI=function(){return _.O.apply(this,arguments)||this};
_.Z(YI,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],YI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],YI.prototype,"width",void 0);_.P([_.h({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],YI);
_.H(YI,"ytd-show-custom-thumbnail-renderer",function(){if(Uly!==void 0)return Uly;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Uly=W},{mode:1});var LRv;var zC=function(){return _.O.apply(this,arguments)||this};
_.Z(zC,_.O);zC.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
zC.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Hw(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.Ec.Object.defineProperties(zC.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)}}});
zC.prototype.overlayColorChanged=zC.prototype.overlayColorChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],zC.prototype,"overlayColor",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zC.prototype,"overlayStyle",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zC.prototype,"overlayTextStyle",null);_.P([_.ul("overlayColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zC.prototype,"overlayColorChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],zC);
_.H(zC,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(LRv!==void 0)return LRv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LRv=W},{mode:1});var Edk;var Uy=function(){var W=_.O.apply(this,arguments)||this;W.active=!1;return W};
_.Z(Uy,_.O);Uy.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Uy.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uy.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Uy.prototype,"active",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Uy);
_.H(Uy,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Edk!==void 0)return Edk;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Edk=W},{mode:1});var AWb;var L2=function(){return _.O.apply(this,arguments)||this};
_.Z(L2,_.O);_.Ec.Object.defineProperties(L2.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],L2.prototype,"data",void 0);_.P([_.T("data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L2.prototype,"text",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],L2);
_.H(L2,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(AWb!==void 0)return AWb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return AWb=W},{mode:1});var Nxh,dlU=function(){if(Nxh!==void 0)return Nxh;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Nxh=W};var Ey=function(){return _.O.apply(this,arguments)||this};
_.Z(Ey,_.O);_.Ec.Object.defineProperties(Ey,{template:{configurable:!0,enumerable:!0,get:function(){return dlU()}}});
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ey.prototype,"animateEqualizer",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Ey);_.Ro()(Ey,"ytd-thumbnail-overlay-equalizer",function(){return dlU()},{allowedProps:["animateEqualizer"],
mode:1});var Wdk;var Ax=function(){var W=_.O.apply(this,arguments)||this;W.nowPlayingBadge=_.S("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.Z(Ax,_.O);Ax.prototype.activeChanged=function(){var W=this;_.S("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Uc(this,function(){_.q2(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
Ax.prototype.onMiniplayerPlayStateChanged=function(W){var e,t=(e=_.l(_.G3().currentEndpoint,_.z4))==null?void 0:e.videoId;this.isVideoPlaying=W&&(_.S("web_limit_now_playing_animation_killswitch")||this.videoId===t)};
Ax.prototype.activeChanged=Ax.prototype.activeChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ax.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ax.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ax.prototype,"isVideoPlaying",void 0);_.P([_.J(),_.Y("design:type",String)],Ax.prototype,"videoId",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ax.prototype,"equalizerOnly",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Ax.prototype,"isActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ax.prototype,"nowPlayingBadge",void 0);_.P([_.ul("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ax.prototype,"activeChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Ax);
_.H(Ax,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Wdk!==void 0)return Wdk;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Wdk=W},{mode:1});var eRU;var Nv=function(){return _.O.apply(this,arguments)||this};
_.Z(Nv,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Nv.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Nv);
_.H(Nv,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(eRU!==void 0)return eRU;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eRU=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var tyv;var dF=function(){return _.O.apply(this,arguments)||this};
_.Z(dF,_.O);dF.prototype.onDurationChanged=function(){var W,e;_.rz(this.hostElement).querySelector("#progress").style.width=((e=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?e:0)+"%"};
dF.prototype.onDurationChanged=dF.prototype.onDurationChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],dF.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dF.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],dF.prototype,"isLive",void 0);_.P([_.ul("data.percentDurationWatched"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dF.prototype,"onDurationChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],dF);
_.H(dF,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(tyv!==void 0)return tyv;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tyv=W},{mode:1});var bbU;var WA=function(){var W=_.O.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.Z(WA,_.O);WA.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Ec.Object.defineProperties(WA.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.icon)==null?void 0:e.iconType)==="PLAY_ALL"&&_.S("kevlar_system_icons")}}});
WA.prototype.widthChanged=WA.prototype.widthChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],WA.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],WA.prototype,"width",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],WA.prototype,"bottomPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],WA.prototype,"richGridOverlay",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],WA.prototype,"watchFeedOverlay",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],WA.prototype,"isCompact",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WA.prototype,"isIconFilled",null);_.P([_.ul("width","watchFeedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WA.prototype,"widthChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],WA);
_.H(WA,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(bbU!==void 0)return bbU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bbU=W},{mode:1});var m1P;var r5h=["CLIP","SHORTS"],eU=function(){var W=_.O.apply(this,arguments)||this;W.animated=_.S("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.Z(eU,_.O);_.r=eU.prototype;_.r.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.r.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.r.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.r.hasIconOrText=function(){var W,e;return!!(((W=this.data)==null?0:W.icon)||((e=this.data)==null?0:e.text))};
_.r.initializeLiveBadgeTimer=function(){var W=this,e,t=(e=this.liveBadgeData)==null?void 0:e.startTimestampSec;if(t&&this.canShowLiveBadgeTimer()){var b;e=Number((b=this.liveBadgeData)==null?void 0:b.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(t);this.updateTimerIntervalId=_.Fe(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},e)}else this.timeSinceLive=0};
_.r.canShowLiveBadgeTimer=function(){var W=Date.now(),e,t;return W<(Number((e=this.liveBadgeData)==null?void 0:e.endTimestampSec)-1)*1E3&&W>Number((t=this.liveBadgeData)==null?void 0:t.startTimestampSec)*1E3};
_.Ec.Object.defineProperties(eU.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var e=this.timeSinceLive;var t,b,m,q;a:{var Q=W.style;if(Q===void 0)Q=16;else switch(Q){case "LIVE":Q=17;break a;default:Q=16}}e={type:Q,text:e?MOs({seconds:e}):_.Ub(W.text),accessibilityText:(t=W.text)==null?void 0:(b=t.accessibility)==null?void 0:(m=b.accessibilityData)==null?void 0:m.label,icon:(q=W.icon)==null?void 0:q.iconType}}else e={};return e}},
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 W;return(W=this.data)==null?void 0:W.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 r5h.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
eU.prototype.initializeLiveBadgeTimer=eU.prototype.initializeLiveBadgeTimer;eU.prototype.dataChanged=eU.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],eU.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],eU.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],eU.prototype,"icon",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eU.prototype,"animated",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Y("design:type",Boolean)],eU.prototype,"hideTimeStatus",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],eU.prototype,"hasIcon",void 0);_.P([_.J(),_.Y("design:type",Object)],eU.prototype,"timeSinceLive",void 0);_.P([_.T("data","timeSinceLive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eU.prototype,"badgeShapeData",null);
_.P([_.T("data","overlayType"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eU.prototype,"hideBadgeShape",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eU.prototype,"dataChanged",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eU.prototype,"overlayStyle",null);
_.P([_.T("data.liveBadgeData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eU.prototype,"liveBadgeData",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.type"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eU.prototype,"overlayType",null);_.P([_.T("overlayType","overlayStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eU.prototype,"useFilledIcon",null);
_.P([_.BG("liveBadgeData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eU.prototype,"initializeLiveBadgeTimer",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],eU);
_.H(eU,"ytd-thumbnail-overlay-time-status-renderer",function(){if(m1P!==void 0)return m1P;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return m1P=W},{mode:_.Qe("kevlar_poly_si_batch_j035")?1:2});var q9D;var ta=function(){return _.O.apply(this,arguments)||this};
_.Z(ta,_.O);ta.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"}}}}};
ta.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
ta.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ta.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Y("design:type",Boolean)],ta.prototype,"hasPlaybackProgressBar",void 0);
_.P([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],ta);
_.H(ta,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(q9D!==void 0)return q9D;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return q9D=W},{mode:1});var RRB;var Qse=_.NN(function(W){var e=W.data;var t=W.children;var b=function(){return!!e().doubleStack};
return _.w("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!e().experimentEnabled}},_.w(_.G,{cond:e,
then:function(){return _.w("div",null,_.w(_.G,{cond:b,then:function(){var m={};return _.w("div",{class:_.ve("collections-stack-wiz__collection-stack2",function(){return e().customClassName2ndStack},(m["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return e().enableResponsiveMode},m)),
style:_.$D({"background-color":function(){return U1s(e())}})})}}),_.w("div",{class:_.ve("collections-stack-wiz__collection-stack1",function(){return e().customClassName1stStack},function(){return zR9(e().thumbnailSize?e().thumbnailSize:"medium")}),
style:_.$D({"background-color":function(){return U1s(e())}})}),t)}}))},"P");_.mM(Qse,"yt-collections-stack",{props:{data:_.Eu}});var b4=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");return W};
_.Z(b4,_.O);_.r=b4.prototype;
_.r.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]]"}}}}}};
_.r.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var e=W.thumbnailRenderer,t;if((t=e.playlistVideoThumbnailRenderer)==null?0:t.thumbnail)return e.playlistVideoThumbnailRenderer.thumbnail;var b;if((b=e.playlistCustomThumbnailRenderer)==null?0:b.thumbnail)return e.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var m;if((m=W.showCustomThumbnailRenderer)==null?0:m.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.r.computeOverlayColor=function(W){var e,t;if((e=this.getThumbnailDetails(W))==null?0:(t=e.darkColorPalette)==null?0:t.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var b;return(b=this.getThumbnailDetails(W))==null?void 0:b.sampledThumbnailColor};
_.r.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.R(W.thumbnailOverlays);for(var e=W.next();!e.done;e=W.next()){var t=void 0;if((t=e.value)==null?0:t.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.r.computeNavigationEndpoint=function(W){return VLc(W==null?void 0:W.navigationEndpoint)};
_.Ec.Object.defineProperties(b4.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],b4.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(GsP),_.Y("design:type",Object)],b4.prototype,"ytdThumbnailBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],b4.prototype,"componentBehavior",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],b4.prototype,"watchFeedThumbnail",void 0);_.P([_.J(),_.Y("design:type",Number)],b4.prototype,"customThumbnailSize",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],b4.prototype,"hideAria",void 0);_.P([_.J(),_.Y("design:type",Object)],b4.prototype,"data",void 0);_.P([_.J({computed:"computeOverlayColor(data)"}),_.Y("design:type",Object)],b4.prototype,"overlayColor",void 0);
_.P([_.J({computed:"computeWebModernCollections(data)"}),_.Y("design:type",Object)],b4.prototype,"webModernCollections",void 0);_.P([_.J({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],b4.prototype,"computedNavigationEndpoint",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],b4.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],b4.prototype,"isDoubleStack",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],b4.prototype,"thumbnailSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],b4.prototype,"enableWebModernCollectionsV2",void 0);_.P([_.T("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"collectionStack",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],b4);
_.H(b4,"ytd-playlist-thumbnail",function(){if(RRB!==void 0)return RRB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RRB=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var FdU;var m4=function(){var W=_.O.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.Z(m4,_.O);_.r=m4.prototype;_.r.getMetadata=function(W){if(!W)return[];var e=[],t=W.shortViewCountText||W.viewCountText;t&&e.push(_.Ub(t));W.publishedTimeText&&e.push(_.Ub(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&e.push(_.sQ(_.Ub(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return e};
_.r.observeDataForBylineSeparator=function(){this.data&&_.RH(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.r.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.sr(this.metadataColor)};
_.r.getSimpleString=function(W){return _.Ub(W)};
_.r.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.r.isMetadataHidden=function(W){var e;return((e=this.getMetadata(W))==null?void 0:e.length)===0};
_.r.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.r.isLongByline=function(W,e){return e&&!(W==null||!W.longBylineText)};
_.Ec.Object.defineProperties(m4.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.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 _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
m4.prototype.metadataColorChanged=m4.prototype.metadataColorChanged;m4.prototype.observeDataForBylineSeparator=m4.prototype.observeDataForBylineSeparator;_.P([_.y(_.fu),_.Y("design:type",Object)],m4.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],m4.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],m4.prototype,"noEndpoints",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"isSlimShort",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"radioMeta",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],m4.prototype,"isGridViewEnabled",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"richMeta",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],m4.prototype,"amsterdamPostMvp",void 0);_.P([_.J(),_.Y("design:type",Boolean)],m4.prototype,"noByline",void 0);
_.P([_.J({computed:"isLongByline(data, radioMeta)"}),_.Y("design:type",Boolean)],m4.prototype,"longByline",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"truncateMetadataLine",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"miniMode",void 0);_.P([_.J(),_.Y("design:type",Number)],m4.prototype,"metadataColor",void 0);_.P([_.J(),_.Y("design:type",Array)],m4.prototype,"badges",void 0);
_.P([_.J({selector:_.xg,selectorArgs:["data.videoId"]}),_.Y("design:type",String)],m4.prototype,"transferState",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"isDownloading",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],m4.prototype,"typographyBump",void 0);_.P([_.vG("#metadata-line"),_.Y("design:type",HTMLElement)],m4.prototype,"metadataLine",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m4.prototype,"observeDataForBylineSeparator",null);_.P([_.ul("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m4.prototype,"metadataColorChanged",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],m4.prototype,"shouldShowVideoInfo",null);
_.P([_.T("badges"),_.Y("design:type",String),_.Y("design:paramtypes",[])],m4.prototype,"inlineBadgeClass",null);_.P([_.T("longByline"),_.Y("design:type",String),_.Y("design:paramtypes",[])],m4.prototype,"longBylineClass",null);_.P([_.T("data","longByline"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],m4.prototype,"bylineText",null);_.P([_.T("isGridViewEnabled","data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],m4.prototype,"watchFeedBigThumbs",null);
_.P([_.h({is:"ytd-video-meta-block",disableElementRegistration:!0})],m4);
_.H(m4,"ytd-video-meta-block",function(){if(FdU!==void 0)return FdU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FdU=W},{mode:_.Qe("kevlar_poly_si_batch_j080")?1:2});_.xD("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var rr=function(){var W=_.O.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.S("web_modern_collections_v2");return W};
_.Z(rr,_.O);_.r=rr.prototype;_.r.computeFirstVideos=function(W,e){return W===void 0||e===void 0?[]:W.slice(0,e)};
_.r.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.r.computeThumbnailHeight=function(W,e,t,b,m){return b?m==="BIG"?280:m==="MASSIVE"?337:234:t?240:e?72:W?118:138};
_.r.computeThumbnailWidth=function(W,e,t,b,m){return b?m==="MEDIUM"?450:m==="BIG"?500:m==="MASSIVE"?600:420:t?360:e?128:W?210:246};
_.r.computeUseBiggerThumbs=function(W){return W&&_.S("enable_desktop_search_bigger_thumbs")};
_.r.computeShouldShowChannelThumbnail=function(W,e){return W&&!(e==null||!e.channelThumbnail)};
_.Ec.Object.defineProperties(rr.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
rr.prototype.dataChanged=rr.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],rr.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],rr.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],rr.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],rr.prototype,"displayItemCount",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rr.prototype,"isBackstagePlaylist",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rr.prototype,"isPostCompactPlaylist",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rr.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Y("design:type",Boolean)],rr.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],rr.prototype,"biggerThumbsStyle",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rr.prototype,"isDownloads",void 0);_.P([_.J({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Y("design:type",Object)],rr.prototype,"shouldShowChannelThumbnail",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rr.prototype,"useModernCollectionsV2",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rr.prototype,"dataChanged",null);_.P([_.T("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],rr.prototype,"stackThumbnailSize",null);_.P([_.h({is:"ytd-playlist-renderer",disableElementRegistration:!0})],rr);
_.H(rr,"ytd-playlist-renderer",function(){if(iwe===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);iwe=W}W=iwe;return W},{mode:1});var Xjh;var Il8;var qX=function(){var W=_.O.apply(this,arguments)||this;W.collections=!!_.S("web_modern_collections_v2");W.startX=0;return W};
_.Z(qX,_.O);qX.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
qX.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
qX.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
qX.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Ec.Object.defineProperties(qX.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,e;return this.collections&&((W=this.data)==null?void 0:(e=W.searchRefinementCardRendererStyle)==null?void 0:e.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qX.prototype,"data",void 0);_.P([_.J({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",Number)],qX.prototype,"objectFit",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",String)],qX.prototype,"cardStyle",void 0);
_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],qX.prototype,"roundContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qX.prototype,"collections",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qX.prototype,"isAlbumCard",null);_.P([_.T("data","collections","isAlbumCard"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qX.prototype,"collectionStack",null);
_.P([_.h({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],qX);
_.H(qX,"ytd-search-refinement-card-renderer",function(){if(Il8!==void 0)return Il8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Il8=W},{mode:1});var alh;var RV=function(){var W=_.O.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.Z(RV,_.O);_.P([_.J(),_.Y("design:type",Object)],RV.prototype,"data",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],RV.prototype,"componentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],RV.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RV.prototype,"isRichGrid",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],RV.prototype,"miniMode",void 0);
_.P([_.h({is:"ytd-game-details-renderer",disableElementRegistration:!0})],RV);
_.H(RV,"ytd-game-details-renderer",function(){if(alh!==void 0)return alh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return alh=W},{mode:1});var wjN;var uOv;var Qc=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.Z(Qc,_.O);_.r=Qc.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.currentStateData=function(W){var e=W||this.data;return e&&e.states&&e.currentStateId!=null?e.states.find(function(t){return t.stateId===e.currentStateId})||null:null};
_.r.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.r.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())};
_.r.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var e;return(W==null?0:(e=W.icon)==null?0:e.iconType)?W.icon.iconType.toLowerCase():null};
_.r.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.r.computeButtonClass=function(W){var e=this.currentStateRendererData(W);if(!e)return"";W="";var t=e.style;t&&(W+=t.toLowerCase().replace(/_/g,"-")+" ");(e=e.size)&&(W+=e.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.r.computeServiceEndpoint=function(W){if(!W)return null;var e=W&&W.serviceEndpoint,t=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return e?e:t&&W.command?W.command:null};
_.r.computeBellMenuItemParams=function(W){var e;W=(e=_.l(W==null?void 0:W.command,_.wy))==null?void 0:e.commands;if(!W||W.length===0)return null;e=_.l(W[0],_.jO);var t,b;return(e==null?0:(t=e.popup)==null?0:(b=t.menuPopupRenderer)==null?0:b.items)?e.popup.menuPopupRenderer.items.map(function(m){return m.menuServiceItemRenderer.trackingParams}):null};
_.r.handleBellMenuOpenSelectedAction=function(W){var e=W.trackingParams,t=this.computeBellMenuItemParams(this.data);this.data&&e&&t&&t.includes(e)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.r.onYtServiceRequestCompleted=function(W,e){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))&&this.set("data",W)};
_.r.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.r.resetState=function(){this.set("data.currentStateId",3)};
_.r.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
Qc.prototype.onYtServiceRequestError=Qc.prototype.onYtServiceRequestError;Qc.prototype.onYtServiceRequestCompleted=Qc.prototype.onYtServiceRequestCompleted;Qc.prototype.stateChanged=Qc.prototype.stateChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Qc.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(oj.YtRenderButtonBehavior),_.Y("design:type",Object)],Qc.prototype,"ytRenderButtonBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Qc.prototype,"data",void 0);_.P([_.BG("data","data.currentStateId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qc.prototype,"stateChanged",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],Qc.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Qc.prototype,"onYtServiceRequestError",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Qc);
_.H(Qc,"ytd-subscription-notification-toggle-button-renderer",function(){if(uOv!==void 0)return uOv;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return uOv=W},{mode:1});var c5U;var FV=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var e=W.currentStateRendererData();e&&W.ytRendererBehavior.logExplicitClick(e)}};
return W};
_.Z(FV,_.O);_.r=FV.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(e){return e.stateId===W.data.currentStateId})||null:null};
_.r.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.r.computeAccessibilityLabel=function(){var W,e,t;return(W=this.currentStateRendererData())==null?void 0:(e=W.accessibilityData)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label};
_.r.computeBellMenuItemParams=function(){var W,e,t=(e=_.l((W=this.data)==null?void 0:W.command,_.wy))==null?void 0:e.commands;if(!t||t.length===0)return null;W=_.l(t[0],_.jO);var b,m;return(W==null?0:(b=W.popup)==null?0:(m=b.menuPopupRenderer)==null?0:m.items)?W.popup.menuPopupRenderer.items.map(function(q){return q.menuServiceItemRenderer.trackingParams}):null};
_.r.handleBellMenuOpenSelectedAction=function(W){var e=W.trackingParams,t=this.computeBellMenuItemParams();if(this.data&&e&&t&&t.includes(e)&&(W==null||!W.isDisabled)){var b;((b=_.l(W.serviceEndpoint,_.c6))==null?void 0:b.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.r.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.r.onYtServiceRequestCompleted=function(W,e){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",e))this.icon=void 0,this.set("data",W)};
_.r.onYtServiceRequestError=function(){this.icon=void 0};
_.Ec.Object.defineProperties(FV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,e=this.textLabel,t=this.hostElement,b=this.computeAccessibilityLabel(),m=this.tapHandler,q=this.isOverlay?"overlay":"mono",Q=(W==null?0:W.disableButton)?"disabled":"active";e=e?_.Tf(e):void 0;return{style:q,type:"tonal",state:Q,size:"M",focused:!1,formattedButtonText:e,iconPosition:"leading-trailing",onTap:A5v(W,m,t),accessibilityLabel:b}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),e,t,b=(t=this.icon)!=null?t:W==null?void 0:(e=W.icon)==null?void 0:e.iconType;if(b)return _.ao(b)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.secondaryIcon)==null?void 0:e.iconType;if(t)return _.ao(t)}}});
FV.prototype.onYtServiceRequestError=FV.prototype.onYtServiceRequestError;FV.prototype.onYtServiceRequestCompleted=FV.prototype.onYtServiceRequestCompleted;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],FV.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],FV.prototype,"textLabel",void 0);
_.P([_.J(),_.Y("design:type",String)],FV.prototype,"icon",void 0);_.P([_.J(),_.Y("design:type",Boolean)],FV.prototype,"isOverlay",void 0);_.P([_.T("data.*","textLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FV.prototype,"computedButtonShape",null);_.P([_.T("data.*","icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FV.prototype,"computedIcon",null);_.P([_.T("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FV.prototype,"computedSecondaryIcon",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],FV.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FV.prototype,"onYtServiceRequestError",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],FV);
_.H(FV,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(c5U!==void 0)return c5U;var W=document.createElement("template");_.p(W,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return c5U=W},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var vs8;_.mM(uvN,"yt-animated-action",{props:{backgroundLottieRef:_.Eu,foregroundLottieRef:_.Eu,wrapperClass:_.Eu,disableAnimation:_.Eu},unsafeExternallySettableAttributes:new Set(["key"])});var XV=function(){var W=_.O.apply(this,arguments)||this;W.animatedActionEnabled=_.S("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.Z(XV,_.O);_.r=XV.prototype;_.r.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.r.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]]"}}}}}};
_.r.attached=function(){this.keyboardFocused=!1};
_.r.onYtServiceRequestSent=function(W,e){(this.get("endpoint.subscribeEndpoint",e)||this.get("endpoint.unsubscribeEndpoint",e))&&this.updateSubscriptionState(!this.subscribed)};
_.r.onYtServiceRequestCompleted=function(W,e){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",e.data))&&this.bellButton&&(this.bellButton.data=W)};
_.r.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.XB(this.hostElement)};
_.r.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.r.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.r.handleUpdateSubscribeButtonAction=function(W){W=_.l(W,Muy);var e;W&&W.channelId===((e=this.data)==null?void 0:e.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.r.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.r.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.r.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.r.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var e,t=(e=this.data)==null?void 0:e.subscribedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.SX("subscriptionStateEntity",t,{key:t,subscribed:W}));this.isCompactRed()||_.q2(this.hostElement,"yt-subscription-changed",W);W||(_.RT(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.r.startAnimation=function(){var W=this;if(!this.isAnimating){var e=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var t;(t=this.backgroundLottieRef.lottieEl)==null||t.goToAndPlay(0);var b;(b=this.foregroundLottieRef.lottieEl)==null||b.goToAndPlay(0);_.Tm.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Tm.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.Tm.addJob(function(){W.isAnimating=!1},2,e)}};
_.r.maybeAnimateBellIcon=function(){var W=_.qN(this.hostElement).querySelector("yt-animated-icon");if(W){var e;(e=W.animationRef.lottieEl)==null||e.goToAndPlay(0)}};
_.r.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.r.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.r.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var e;this.subscribedWidth=(e=this.bellButton)==null?void 0:e.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.r.updateContainerToFitContent=function(W,e){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,e=this.isAnimating&&!e,this.subscribedIconOnlyWidth===void 0||e||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.r.clearContainerSize=function(){this.hostElement.style.width=""};
_.r.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.r.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var e;W.subscribedIconOnlyWidth=(e=W.bellButton)==null?void 0:e.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var t;W.bellButton.textLabel=
(t=W.data)==null?void 0:t.subscribedButtonText}})})))};
_.Ec.Object.defineProperties(XV.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var e;return this.forceIconOnly?void 0:(e=this.data)==null?void 0:e.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,e,t=((W=this.data)==null?void 0:(e=W.timedAnimationData)==null?void 0:e.animationTiming)||[];return{uniqueId:"subscribe",timings:t,enabled:t.length>0&&!this.subscribed,experimentEnabled:t.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var e=W.renderer;var t=W.element;var b=W.subscribed;var m=W.commandController;var q=W.isOverlay;W=W.stopPropagation;var Q=ehs(e,b);q&&(Q.style="overlay");q=Object;var X=q.assign,I;a:switch((I=e.style)==null?void 0:I.styleType){case "COMPACT_GRAY":case "COMPACT_RED":I={size:"S"};break a;default:I={size:"M"}}var u=WAS(e,
b);var c=(c=b?e.subscribedButtonText:e.unsubscribedButtonText)?_.Tf(c):void 0;return X.call(q,{},Q,I,{focused:!1,toggled:b,accessibilityLabel:u,formattedButtonText:c,onTap:d19(e,b,t,m,W)})}}}});
XV.prototype.onMouseDown=XV.prototype.onMouseDown;XV.prototype.onDataChanged=XV.prototype.onDataChanged;XV.prototype.observedSubscribed=XV.prototype.observedSubscribed;XV.prototype.onYtServiceRequestCompleted=XV.prototype.onYtServiceRequestCompleted;XV.prototype.onYtServiceRequestSent=XV.prototype.onYtServiceRequestSent;XV.prototype.maybeUpdateBellButtonText=XV.prototype.maybeUpdateBellButtonText;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],XV.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],XV.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],XV.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.subscribedEntityKey"],selector:ZXD}),_.Y("design:type",Object)],XV.prototype,"subscriptionStateEntity",void 0);_.P([_.J({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],XV.prototype,"subscribed",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XV.prototype,"branded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XV.prototype,"animatedActionEnabled",void 0);
_.P([_.J(),_.Y("design:type",Object)],XV.prototype,"foregroundLottieRef",void 0);_.P([_.J(),_.Y("design:type",Object)],XV.prototype,"backgroundLottieRef",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XV.prototype,"overlayButton",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Y("design:type",Object)],XV.prototype,"buttonStyle",void 0);_.P([_.J(),_.Y("design:type",Object)],XV.prototype,"forceIconOnly",void 0);
_.P([_.J(),_.Y("design:type",Object)],XV.prototype,"showTextWhileAnimating",void 0);_.P([_.J({value:function(){return!!_.ee().resolve(_.Wi(_.FN))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],XV.prototype,"useKeyboardFocused",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XV.prototype,"keyboardFocused",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XV.prototype,"isAnimating",void 0);_.P([_.T("data.notificationPreferenceButton.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"hasBellButton",null);
_.P([_.ul("subscribedButtonText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XV.prototype,"maybeUpdateBellButtonText",null);_.P([_.T("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"subscribedButtonText",null);_.P([_.T("data.timedAnimationData.animationTiming","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"smartimationSettings",null);
_.P([_.J({reflectToAttribute:!0}),_.T("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"subscribeButtonHidden",null);_.P([_.J({reflectToAttribute:!0}),_.T("subscribed","hasBellButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"subscribeButtonInvisible",null);
_.P([_.J({reflectToAttribute:!0}),_.T("subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"unsubscribeButtonHidden",null);_.P([_.vG("ytd-subscription-notification-toggle-button-renderer-next"),_.Y("design:type",Object)],XV.prototype,"bellButton",void 0);_.P([_.vG("#subscribe-button-shape"),_.Y("design:type",HTMLElement)],XV.prototype,"subscribeButtonShape",void 0);
_.P([_.T("overlayButton","subscribed","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XV.prototype,"buttonShape",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],XV.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],XV.prototype,"onYtServiceRequestCompleted",null);
_.P([_.ul("subscribed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XV.prototype,"observedSubscribed",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XV.prototype,"onDataChanged",null);_.P([_.wz("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],XV.prototype,"onMouseDown",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],XV);
_.H(XV,"ytd-subscribe-button-renderer",function(){if(vs8!==void 0)return vs8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vs8=W},{mode:1});var IV=function(){var W=_.O.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.Z(IV,_.O);IV.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IV.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],IV.prototype,"isRichGrid",void 0);_.P([_.h({is:"ytd-game-card-renderer",disableElementRegistration:!0})],IV);
_.H(IV,"ytd-game-card-renderer",function(){if(wjN!==void 0)return wjN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wjN=W},{mode:1});var aV={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.S("defer_menus")&&!byU?0:void 0,waitForSignal:"eocs"};var GBZ;var D1r;var wr=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.Z(wr,_.O);_.r=wr.prototype;_.r.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.r.onSeriesReminderStateEntityChange=function(){var W,e,t;((W=this.eventReminderStateEntity)==null?0:W.key)&&((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.r.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.r.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.r.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.l(W,ekr)){var e,t=(e=this.data)==null?void 0:e.targetId;t&&W.targetId===t&&_.hc(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.r.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var e;if(((e=this.eventReminderStateEntity)==null?void 0:e.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var t,b;if(((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((b=this.eventReminderStateEntity)==
null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var m;return(m=this.data)==null?void 0:m.currentState};
_.r.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var e="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";e="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var t;
((t=this.eventReminderStateEntity)==null?0:t.key)&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var b;((b=this.seriesReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.SX("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:e})))}};
_.Ec.Object.defineProperties(wr.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),e,t;if(W&&((e=this.data)==null?0:(t=e.states)==null?0:t.length))for(e=_.R(this.data.states),t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;if(((b=_.l(t,tOU))==null?void 0:b.state)===W)return _.l(t,tOU)}}}});
wr.prototype.onYtServiceRequestError=wr.prototype.onYtServiceRequestError;wr.prototype.onYtServiceRequestCompleted=wr.prototype.onYtServiceRequestCompleted;wr.prototype.onSeriesReminderStateEntityChange=wr.prototype.onSeriesReminderStateEntityChange;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],wr.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],wr.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wr.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:kAG}),_.Y("design:type",Object)],wr.prototype,"eventReminderStateEntity",void 0);
_.P([_.J({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,e){return _.I1(W.entities,"sportsSeriesReminderStateEntity",e)}}),
_.Y("design:type",Object)],wr.prototype,"seriesReminderStateEntity",void 0);_.P([_.T("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wr.prototype,"currentButtonStateRenderer",null);_.P([_.ul("seriesReminderStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wr.prototype,"onSeriesReminderStateEntityChange",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wr.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wr.prototype,"onYtServiceRequestError",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],wr);
_.H(wr,"ytd-upcoming-event-reminder-button-renderer",function(){if(D1r!==void 0)return D1r;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return D1r=W},{mode:1});var S9Z;var u4=function(){return _.O.apply(this,arguments)||this};
_.Z(u4,_.O);u4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Ec.Object.defineProperties(u4.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(_.S("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],u4.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],u4.prototype,"shelfDismissal",void 0);_.P([_.T("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u4.prototype,"text",null);
_.P([_.T("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u4.prototype,"textAriaLabel",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],u4);
_.H(u4,"ytd-notification-multi-action-renderer",function(){if(S9Z!==void 0)return S9Z;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return S9Z=W},{mode:1});var B1v;var cA=function(){return _.O.apply(this,arguments)||this};
_.Z(cA,_.O);cA.prototype.ready=function(){var W=this;_.rz(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
cA.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cA.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],cA);
_.H(cA,"ytd-notification-text-renderer",function(){if(B1v!==void 0)return B1v;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return B1v=W},{mode:1});var osk;var vA=function(){var W=_.O.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.Z(vA,_.O);_.r=vA.prototype;_.r.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.r.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.r.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.r.showThumbnail=function(){var W=this;this.csn=_.fc();_.Jy("fmth");_.Tm.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.F6(_.Tm,function(){W.loadingStartTimeMs=(0,_.eJ)();var e=_.rz(W.hostElement).querySelector("#thumbnail");e.complete?W.displayMouseOverImage():e.addEventListener("load",_.aH(W,W.displayMouseOverImage))},150):_.RH(_.rz(this.hostElement).querySelector("#play"),"show",!0)};
_.r.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.r.onTap=function(){this.removeVideoPreview()};
_.r.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,e=this.csn,t=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,b=this.startTimeMs,m=this.hasVideoPreview,q=_.$5(this.trackingParams),Q={isMovingThumbnail:m};m&&b>0&&(t>0&&(Q.movingThumbnailLoadingDurationMs=Math.round(t)),Q.durationHoveredMs=Math.round((0,_.eJ)()-b));W&&(Q.videoId=W);_.U6(e,q,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Q});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.r.removeVideoPreview=function(){_.Tm.cancelJob(this.mouseOverDelayJobId);_.Tm.cancelJob(this.fadeInImageDelayJobId);var W=_.rz(this.hostElement).querySelector("#thumbnail");_.RH(W,"fade-in",!1);W.removeEventListener("load",_.aH(this,this.displayMouseOverImage));W=_.rz(this.hostElement).querySelector("#play");_.RH(W,"fade-in",!1);_.RH(W,"show",!1)};
_.r.displayMouseOverImage=function(){var W=_.rz(this.hostElement).querySelector("#thumbnail"),e=_.rz(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.eJ)(),this.startTimeMs=(0,_.eJ)(),this.fadeInImageDelayJobId=_.F6(_.Tm,function(){_.RH(W,"fade-in",!0)},50)):_.RH(e,"fade-in",!0)};
_.r.computeThumbnail=function(W,e){var t;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&e?t=_.rd(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):t=e?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(t)return _.lF(t)};
_.r.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
vA.prototype.onTap=vA.prototype.onTap;vA.prototype.dataChanged=vA.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vA.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],vA.prototype,"csn",void 0);_.P([_.J(),_.Y("design:type",Object)],vA.prototype,"trackingParams",void 0);
_.P([_.J(),_.Y("design:type",String)],vA.prototype,"videoId",void 0);_.P([_.J(),_.Y("design:type",Boolean)],vA.prototype,"isAttachedAndDataSet",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vA.prototype,"dataChanged",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vA.prototype,"onTap",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],vA);
_.H(vA,"ytd-moving-thumbnail-renderer",function(){if(osk!==void 0)return osk;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return osk=W},{mode:1});var llB;_.cN=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.cN.prototype.shouldForward=function(){var W,e;return(e=(W=this.eventSink)==null?void 0:W.isConnected)!=null?e:document.body.contains(this.eventSink)};
_.cN.prototype.start=function(W,e){this.eventSink&&this.stop();for(var t=0;t<W.length;t++)this.hostElement.addEventListener(W[t],_.aH(this,this.forwardEvent));var b;this.eventSink=(b=e.hostElement)!=null?b:e;this.eventList=W};
_.cN.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.aH(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.cN.prototype.forwardEvent=function(W,e){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.q2(this.eventSink,W.type,e):_.JC(new _.o_("eventSink is not an element")))};_.GP={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.cN(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,e){this.forwarder_.start(W,e)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var D7=function(){return _.O.apply(this,arguments)||this};
_.Z(D7,_.O);_.r=D7.prototype;_.r.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=_.Ot("HTML_DIR")==="rtl"?"right":"left"};
_.r.dataChanged=function(){this.popupOpen=!1};
_.r.computeAriaLabel=function(W){return _.l(W,ciP).label};
_.r.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.ee().resolve(_.tQ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.r.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.r.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
D7.prototype.onPopupClosed=D7.prototype.onPopupClosed;D7.prototype.onPopupOpened=D7.prototype.onPopupOpened;D7.prototype.onTap=D7.prototype.onTap;D7.prototype.dataChanged=D7.prototype.dataChanged;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],D7.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.JX),_.Y("design:type",Object)],D7.prototype,"ironButtonState",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],D7.prototype,"componentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],D7.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:-1}),_.Y("design:type",Number)],D7.prototype,"tabindex",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Y("design:type",Object)],D7.prototype,"ariaLabel",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],D7.prototype,"disableTooltips",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D7.prototype,"popupOpen",void 0);
_.P([_.J(),_.Y("design:type",Element)],D7.prototype,"eventSink",void 0);_.P([_.vG("#tooltip"),_.Y("design:type",Object)],D7.prototype,"tooltip",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D7.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],D7.prototype,"onTap",null);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D7.prototype,"onPopupOpened",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D7.prototype,"onPopupClosed",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],D7);
_.H(D7,"ytd-thumbnail-overlay-button-renderer",function(){if(llB!==void 0)return llB;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return llB=W},{mode:1});var Zbb;var SU=function(){return _.O.apply(this,arguments)||this};
_.Z(SU,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],SU.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SU.prototype,"disableAnimation",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SU.prototype,"rounded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SU.prototype,"transparentBackground",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SU.prototype,"noPadding",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],SU);
_.H(SU,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Zbb!==void 0)return Zbb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Zbb=W},{mode:1});var $1y;var BA=function(){return _.O.apply(this,arguments)||this};
_.Z(BA,_.O);BA.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
BA.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
BA.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var e;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((e=W.icon)==null?void 0:e.iconType)==="ERROR_BLACK"};
_.P([_.J(),_.Y("design:type",Object)],BA.prototype,"data",void 0);_.P([_.J({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],BA.prototype,"iconPosition",void 0);_.P([_.J({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],BA.prototype,"iconStyle",void 0);_.P([_.J({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],BA.prototype,"iconStyleFilled",void 0);
_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],BA);
_.H(BA,"ytd-thumbnail-overlay-icon-renderer",function(){if($1y!==void 0)return $1y;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $1y=W},{mode:1});var kBb;var oV=function(){return _.O.apply(this,arguments)||this};
_.Z(oV,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oV.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],oV);
_.H(oV,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(kBb!==void 0)return kBb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kBb=W},{mode:1});var pjU;var l4=function(){var W=_.O.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.Z(l4,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],l4.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],l4.prototype,"isPreviewLoading",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],l4);
_.H(l4,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(pjU!==void 0)return pjU;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pjU=W},{mode:1});var y5r;var Z7=function(){return _.O.apply(this,arguments)||this};
_.Z(Z7,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Z7.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Z7);
_.H(Z7,"ytd-thumbnail-overlay-pinking-renderer",function(){if(y5r!==void 0)return y5r;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return y5r=W},{mode:1});var jsU;var $o=function(){var W=_.O.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.Z($o,_.O);_.r=$o.prototype;_.r.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");_.rz(this.hostElement).querySelector("#tooltip").position=_.Ot("HTML_DIR")==="rtl"?"right":"left"};
_.r.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Tm.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Tm.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Tm.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.r.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Tm.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Tm.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Tm.cancelJob(this.expandAnimationDelayJobId)};
_.r.computeIcon=function(W,e,t){return(W=t?e:W)&&W.iconType?_.ao(W.iconType):void 0};
_.r.computeAriaLabel=function(W,e,t){return _.l(t?e:W,ciP).label};
_.r.computeTooltip=function(W,e,t){return t?e:W};
_.r.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.r.computeIconOnHover=function(W,e){if((W==null?0:W.iconType)&&!e)return _.ao(W.iconType)};
_.r.onTap=function(W){var e=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.F6(_.Tm,function(){e.hovered=!1;e.data&&!e.data.toggledServiceEndpoint&&(e.expandAnimationDelayJobId=_.F6(_.Tm,function(){e.set("data.isToggled",
!1)},200))},2E3))};
_.r.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.F6(_.Tm,function(){W.hovered=!0},300)};
_.r.onMouseleave=function(){_.Tm.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.r.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.r.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.r.onServiceRequestCompleted=function(W,e){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(e)||this.set("data.isToggled",!this.data.isToggled)};
_.r.serviceRequestWasSuccessful=function(W){return _.l(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Jr)?W.data.status==="STATUS_SUCCEEDED":!0};
$o.prototype.onServiceRequestCompleted=$o.prototype.onServiceRequestCompleted;$o.prototype.onPopupClosed=$o.prototype.onPopupClosed;$o.prototype.onPopupOpened=$o.prototype.onPopupOpened;$o.prototype.onMouseleave=$o.prototype.onMouseleave;$o.prototype.dataChanged=$o.prototype.dataChanged;_.P([_.y(_.JX),_.Y("design:type",Object)],$o.prototype,"ironButtonState",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$o.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],$o.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$o.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Y("design:type",Object)],$o.prototype,"ariaLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],$o.prototype,"disableTooltips",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$o.prototype,"popupOpen",void 0);_.P([_.J(),_.Y("design:type",Object)],$o.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Element)],$o.prototype,"eventSink",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$o.prototype,"useExpandableTooltip",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Y("design:type",Object)],$o.prototype,"toggled",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$o.prototype,"hovered",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Y("design:type",Object)],$o.prototype,"iconOnHover",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$o.prototype,"dataChanged",null);
_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$o.prototype,"onMouseleave",null);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$o.prototype,"onPopupOpened",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$o.prototype,"onPopupClosed",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],$o.prototype,"onServiceRequestCompleted",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],$o);
_.H($o,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(jsU!==void 0)return jsU;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jsU=W},{mode:_.Qe("kevlar_poly_si_batch_j053")?1:2});var Cd8;var nsZ=_.NN(function(W){var e=W.data;var t=W.thumbnailSize;var b=function(){return e().enableSegmentView};
return _.w("yt-thumbnail-overlay-progress-bar-view-model",{class:_.ve("ytThumbnailOverlayProgressBarHost",function(){return t72(t==null?void 0:t())})},_.w(_.G,{cond:b,
then:function(){return _.w("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.w("div",{class:_.DT("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+e().startPercent+"%"}}),_.w("div",{class:_.DT("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+e().segmentDurationPercent+"%"}},_.w("div",{class:_.DT("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.w("div",null," ",function(){return e().segmentLabel})),_.w("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.w("div",{class:_.DT("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.w(_.G,{cond:function(){return!b()&&e().startPercent},
then:function(){var m={};return _.w("div",{class:_.DT("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(m.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.S("web_enable_modern_progress_bar_overlay"),m))},_.w("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+e().startPercent+"%"}}))}}))},"Q");
nsZ.idomCompat=!0;var fl8=_.NN(function(W){var e=_.wN(),t=_.MA(function(m){var q,Q,X;a:{var I=(q=W.data())==null?void 0:q.animationActivationTargetId;q=((Q=W.data())==null?void 0:Q.animationActivationEntityKey)||"";Q=(X=W.data())==null?void 0:X.animationActivationEntitySelectorType;if(q&&I)switch(Q){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":m=_.I1(m.entities,"playerStateEntity",q);X=_.ee().resolve(_.Wi(_.Kn));I=!!(m&&m.videoId===I&&(X==null?0:X.isMiniplayerActive()));I={activated:I,playAnimation:I&&
m.playerState==="PLAYER_STATE_PLAYING"};break a}I=void 0}return I});
_.nh(function(){var m;if((m=t())==null?0:m.activated){var q;if((q=t())==null?0:q.playAnimation){var Q;(Q=e.lottieEl)==null||Q.goToAndPlay(0)}else{var X;(X=e.lottieEl)==null||X.goToAndStop(0)}}},"MDTl2e");
var b=function(){var m,q=!((m=t())==null||!m.activated);if(W.data()){m=W.data();var Q=void 0;m.icon&&(Q=_.X$9(m.icon),Q=GwG(Q));var X=void 0,I;if((I=m.backgroundColor)==null?0:I.lightTheme){var u;X={backgroundColor:Hw((u=m.backgroundColor)==null?void 0:u.lightTheme,"0.8")}}if(m.text||Q||q){if(q&&m.lottieData&&e){u=m.lottieData;var c,v,D;I={animationConfig:{name:u.url,path:u.url,autoplay:(c=u.settings)==null?void 0:c.autoplay,loop:(D=(v=u.settings)==null?void 0:v.loop)!=null?D:!0},animationRef:e}}else I=
void 0;if(q)c=16;else b:switch(m.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":c=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":c=18;break b;default:c=16}q={type:c,text:q&&m.animatedText?m.animatedText:m.text,icon:Q,customColors:X,animation:I}}else q=void 0}else q=void 0;return q};
return _.w("yt-thumbnail-badge-view-model",{class:_.ve("yt-thumbnail-badge-view-model-wiz",W.class)},_.w(_.G,{cond:b,then:function(){return _.w(_.n2,{data:function(){return b()}})}}))},"R");var gse=_.NN(function(W){var e={},t={};return _.w("yt-thumbnail-bottom-overlay-view-model",{class:_.ve("ytThumbnailBottomOverlayViewModelHost",(e.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},e))},_.w(_.nU,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(b){return _.w(nsZ,{data:b.data,
thumbnailSize:W.thumbnailSize})}}),_.w("div",{class:_.ve("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var b;
return biG((b=W.thumbnailSize)==null?void 0:b.call(W))},(t.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var b;
return(b=W.isClip)==null?void 0:b.call(W)},t.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var b;
return!_.S("web_enable_modern_progress_bar_overlay")&&((b=W.thumbnailSize)==null?void 0:b.call(W))==="small"},t))},_.w(_.nU,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(b){return _.w(fl8,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.w(_.nU,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(b){return _.w(fl8,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
gse.idomCompat=!0;_.mM(gse,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.bt,thumbnailSize:_.bt,isClip:_.bt}});var umQ={calledOnce:!1,state:"visible"},cRS={calledOnce:!1,state:"hidden"};var ko=_.NN(function(W){var e=W.data;var t=W.className;W=W.alwaysShow;var b=_.zT("thumbnail-hover-overlay-view-model");_.UQ(b,function(){return e().rendererContext});
var m=_.qMc(),q={};return _.w("thumbnail-hover-overlay-view-model",{el:b,class:_.ve("ytThumbnailHoverOverlayViewModelHost",t,(q.ytThumbnailHoverOverlayViewModelHostForceHover=W,q)),"aria-label":function(){var Q;return(Q=_.l(e().rendererContext,_.ly))==null?void 0:Q.label},
role:function(){return _.Yb(e().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Yb(e().rendererContext)!==void 0?0:void 0},
"on:keypress":m},_.w("div",{class:_.ve("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(e().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Q="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Q="ytThumbnailHoverOverlayViewModelStyleCover"}return Q})},_.w(_.G,{cond:function(){return e().icon},
then:function(Q){return _.w(_.A_,{data:Q,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.w(_.G,{cond:function(){return e().text},
then:function(Q){return _.w(_.WL,{text:Q,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
ko.idomCompat=!0;var T1U=_.NN(function(W){var e=W.data;return _.w(_.nU,{data:function(){return e==null?void 0:e().overlays}},{thumbnailHoverOverlayViewModel:ko})},"U");
T1U.idomCompat=!0;var J5Z={};var x1P=_.NN(function(W){var e=W.data;var t=W.image;var b=W.state;var m=W.iconType;var q=W.overlays;var Q=W.isOverlay;var X=_.Um("div");W=_.R(_.up(!0,void 0,"sUzEZ"));var I=W.next().value,u=W.next().value,c=function(){return!!e().onTap},v=_.LD(m,"LIVE");
_.nh(function(){var B=e();requestAnimationFrame(function(){if(X.value===null)var k=!0;else{var n=X.value;k=B.badgeText;var f=DT9(B.size);k in J5Z?n=J5Z[k]:(n=n.clientWidth,J5Z[k]=n);(k=n>f)?X.value.style.display="none":X.value.style.visibility="visible"}u(k)})},"SpVcNb");
var D=function(){var B={};return B["yt-spec-avatar-shape__image"]=!0,B["yt-spec-avatar-shape__image--ads-app"]=e().type===1,B};
return _.w("yt-avatar-shape",null,_.w("div",{el:_.dA(BHD(c,{keydown:function(B){if(B.key==="Enter"){var k;(k=B.currentTarget)==null||k.click()}},
click:function(B){var k,n;return void((n=(k=e()).onTap)==null?void 0:n.call(k,B))}})),
class:function(){var B={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},k=e();B=(B[k.clusterLayoutConfig?Ziv(k.clusterLayoutConfig):$TS(k.size)]=!0,B["yt-spec-avatar-shape__button--tappable"]=c(),B);(k=e().avatarButtonCustomClassName)&&(B[k]=!0);return _.DT(B)},
"aria-label":function(){return c()?e().accessibilityText:""},
role:function(){return c()?"button":void 0},
tabindex:function(){return c()?0:void 0}},_.w("div",{class:function(){var B,k=e(),n=b==null?void 0:b(),f=Q==null?void 0:Q(),M=!((B=k.decorations)==null||!B.includes(2)||k.size!=="medium"&&k.size!=="large"),K=k.size==="tiny"||k.size==="extra-small",U,V,L,E,RR={};
B=(RR["yt-spec-avatar-shape--live-ring"]=!!(((U=k.decorations)==null?0:U.includes(0))&&prG(k.size)),RR["yt-spec-avatar-shape--stories-watched"]=M&&!(n==null||!n.storiesWatched),RR["yt-spec-avatar-shape--stories-unwatched"]=M&&!(n==null?0:n.storiesWatched),RR["yt-spec-avatar-shape--background-border"]=yRg(k.decorations)&&!K,RR["yt-spec-avatar-shape--background-border-thin"]=yRg(k.decorations)&&K,RR["yt-spec-avatar-shape__on-select-border"]=!((V=k.decorations)==null||!V.includes(4)),RR["yt-spec-avatar-shape__white-border"]=
!((L=k.decorations)==null||!L.includes(5)),RR["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((E=k.decorations)==null?0:E.includes(5))&&K),RR["yt-spec-avatar-shape--is-overlay"]=!!f,RR);return _.DT(B)},
style:function(){a:{var B=e().clusterLayoutConfig;if(B){b:{var k=B.numAvatarsInCluster;var n=B.avatarIndex;if(n!==k-1){switch(B.clusterSize){case "small":B="32";break;case "medium":B="36";break;case "40":B="40";break;default:k=void 0;break b}k="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+B+"x"+B+"_avatars_"+k+"_index_"+n+".svg"}else k=void 0}if(k){k=_.$D({"-webkit-mask-image":"url("+k+")","mask-image":"url("+k+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}k=void 0}return k}},_.w("div",{class:function(){var B={};
var k=e();B=(B[k.clusterLayoutConfig?oHZ(k.clusterLayoutConfig):lXG(k.size)]=!0,B["yt-spec-avatar-shape--no-margin"]=yRg(e().decorations),B);return _.DT(B)}},_.w(_.A_,{data:t,
alt:function(){return!c()&&e().accessibilityText?e().accessibilityText:""},
targetWidth:function(){return k8s(e().size)},
targetHeight:function(){return k8s(e().size)},
className:function(){return _.DT(D())}}),_.w(_.G,{cond:function(){var B;
return((B=e().decorations)==null?void 0:B.includes(0))&&prG(e().size)},
then:function(){return _.w("div",{class:function(){var B={};B=(B["yt-spec-avatar-shape__live-badge"]=!0,B["yt-spec-avatar-shape__live-badge--badge-small"]=e().size==="small",B["yt-spec-avatar-shape__live-badge--badge-medium"]=e().size==="medium"||e().size==="48",B["yt-spec-avatar-shape__live-badge--badge-large"]=e().size==="large",B["yt-spec-avatar-shape__live-badge--badge-extra-large"]=e().size==="extra-large"||e().size==="extra-extra-large"||e().size==="giant",B);return _.DT(B)}},_.w(_.G,{cond:function(){return e().badgeText},
then:function(B){return _.w("div",{class:"yt-spec-avatar-shape__badge-text",el:X},B)}}),_.w(_.G,{cond:I,
then:function(){return _.w("div",{class:"yt-spec-avatar-shape__badge-icon"},_.w(_.kD,{icon:v,size:function(){a:switch(e().size){case "extra-large":var B=16;break a;default:B=13}return B}}))}}))}}),_.w(_.G,{cond:function(){var B,k;
return((B=e().decorations)==null?void 0:B.includes(1))||((k=e().decorations)==null?void 0:k.includes(0))&&!prG(e().size)},
then:function(){return _.w("div",{class:function(){var B=e(),k,n,f={};var M=(f["yt-spec-avatar-shape__live-dot"]=!((k=B.decorations)==null||!k.includes(0)||prG(B.size)),f["yt-spec-avatar-shape__new-content"]=!((n=B.decorations)==null||!n.includes(1)),f);return _.DT(M)}})}}),_.w(_.G,{cond:function(){return!!q},
then:function(){return _.w("div",{class:function(){var B={};B=Object.assign((B["yt-spec-avatar-shape__image-overlays"]=!0,B),D());return _.DT(B)}},q==null?void 0:q())}})))))},"V");
x1P.idomCompat={callbacks:{overlays:!0}};_.pz=_.NN(function(W){function e(){t().endpoint&&_.K4(t().endpoint)}
var t=W.data;var b=W.decorations;var m=W.avatarButtonCustomClassName;var q=W.isOverlay;var Q=W.clusterLayoutConfig;return _.w("avatar-view-model",null,_.w(_.G,{cond:function(){return t().image},
then:function(X){return _.w(x1P,{data:function(){return CuL({data:t(),onTap:t().endpoint?e:void 0,decorations:b==null?void 0:b(),badgeText:void 0,accessibilityText:t().accessibilityText,avatarButtonCustomClassName:m==null?void 0:m(),clusterLayoutConfig:Q==null?void 0:Q()})},
image:X,iconType:"RADAR_LIVE",overlays:function(){return _.w(T1U,{data:t})},
isOverlay:q})}}))},"W");
_.pz.idomCompat=!0;_.yc=_.NN(function(W){var e=W.data;W=W.className;var t=_.Um("yt-decorated-avatar-view-model"),b=function(){return _.l(e().avatar,_.LU)},m=_.SC(function(){var q,Q=e(),X=b(),I=_.Yb(e().rendererContext),u=(q=t.value)!=null?q:void 0,c;
if(X){u={data:Q,avatar:X,onTap:I,element:u};q=u.data;Q=u.avatar;X=u.onTap;I=u.element;u=u.commandController;X=X?THg(X,I,u):void 0;I=[];q.liveData&&I.push(0);var v;u=(v=q.liveData)==null?void 0:v.liveBadgeText;v=(c=_.l(q.rendererContext,_.ly))==null?void 0:c.label;c=CuL({data:Q,onTap:X,decorations:I,badgeText:u,accessibilityText:v?v:q.a11yLabel})}else c={size:"medium"};return c},void 0,"H8tk9d");
return _.w("yt-decorated-avatar-view-model",{class:_.ve("yt-decorated-avatar-view-model-wiz",W),el:t},_.w(_.G,{cond:function(){var q;return(q=b())==null?void 0:q.image},
then:function(q){return _.w(x1P,{data:m,image:q,iconType:"RADAR_LIVE",overlays:function(){return _.w(T1U,{data:b})}})}}))},"X");
_.yc.idomCompat=!0;_.jU=_.NN(function(W){var e=function(){var I;return Object.assign({},W.data(),(I=W.overrides)==null?void 0:I.call(W))},t=_.zT("yt-avatar-stack-view-model"),b=function(){return t&&_.zz(e().rendererContext)};
_.UQ(t,function(){return e().rendererContext});
var m=function(){var I=e().avatars,u,c;return(c=(u=(I==null?0:I[0])?_.l(I[0],_.LU):void 0)==null?void 0:u.avatarImageSize)!=null?c:"AVATAR_SIZE_UNKNOWN"},q=function(){return gHQ(e())},Q=function(){if(e().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var I=void 0;
else if((I=W.decorations)==null?0:I.call(W))I=W.decorations();else{I=e();var u=0;I.avatars&&(u+=I.avatars.length);I.decoratedText&&(u+=1);I=u>1?[3]:[]}return I},X={};
return _.w("yt-avatar-stack-view-model",{el:t,class:_.ve("yt-avatar-stack-view-model-wiz",W.className,(X["yt-avatar-stack-view-model-wiz--tappable"]=b,X["yt-avatar-stack-view-model-wiz--is-overlay"]=W.isOverlay,X["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,X)),tabindex:function(){return b()?0:void 0},
role:function(){return b()?"link":void 0},
"aria-label":function(){var I,u;return(u=(I=_.l(e().rendererContext,_.ly))==null?void 0:I.label)!=null?u:""}},_.w(_.G,{cond:function(){var I;
return e().avatars&&!((I=W.hideAvatar)==null?0:I.call(W))},
then:function(){return _.w("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.w(_.G,{cond:function(){return e().decoratedText},
then:function(I){var u={};return _.w("div",{class:_.ve("yt-avatar-stack-view-model-wiz__text-container",(u["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return m()==="AVATAR_SIZE_XXS"||m()==="AVATAR_SIZE_XS"},u["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var c;
return((c=W.isOverlay)==null?void 0:c.call(W))&&(m()==="AVATAR_SIZE_XXS"||m()==="AVATAR_SIZE_XS")},u)),
style:_.$D({width:function(){return q().avatarSizeInPx+"px"},
height:function(){return q().avatarSizeInPx+"px"}})},_.w(_.WL,{text:I,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.w("div",{style:function(){return _.$D(q().avatarStackStyle)()},
class:function(){return q().avatarStackClass}},_.w(_.nU,{data:function(){return q().avatars.reverse()}},{avatarViewModel:function(I,u){return _.w("div",{style:function(){var c,v;
return _.$D((v=(c=q()).avatarStyle)==null?void 0:v.call(c,u()))()},
class:function(){return q().avatarClass}},_.w(_.pz,{data:I.data,
decorations:Q,avatarButtonCustomClassName:function(){return q().avatarButtonCustomClassName},
isOverlay:W.isOverlay,clusterLayoutConfig:function(){var c,v;return(v=(c=q()).clusterLayoutConfig)==null?void 0:v.call(c,u())}}))},
decoratedAvatarViewModel:function(I,u){return _.w("div",{style:function(){var c,v;return _.$D((v=(c=q()).avatarStyle)==null?void 0:v.call(c,u()))()},
class:function(){return q().avatarClass}},_.w(_.yc,{data:I.data}))}})))}}),_.w(_.G,{cond:function(){return e().text},
then:function(I){return _.w(_.WL,{text:I,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.jU.idomCompat=!0;_.mM(_.NN(function(W){var e=W.data;var t=W.thumbnailSize;return _.w("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.w("div",{class:_.ve("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return JRg(t==null?void 0:t())})},_.w(_.nU,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(b){return _.w(_.jU,{data:b.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Eu,
thumbnailSize:_.Eu}});var ObD=_.NN(function(W){W=_.Ez(W,{hidden:!1});var e=W.data;return _.w("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden},_.w(_.WL,{text:function(){return e().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.w(_.G,{cond:function(){return e().subtitle},
then:function(){return _.w(_.WL,{text:function(){return e().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
ObD.idomCompat=!0;_.mM(ObD,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Eu,hidden:_.Eu}});var Myh=_.NN(function(W){W=_.Ez(W,{isClip:!1});var e=W.data,t=W.thumbnailSize,b={};return _.w("yt-thumbnail-overlay-badge-view-model",{class:_.ve("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(e().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var m="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:m="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return m},function(){return xTG(t==null?void 0:t())},(b["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
W.isClip,b))},_.w(_.nU,{data:function(){return e().thumbnailBadges}},{thumbnailBadgeViewModel:function(m){return _.w(fl8,{data:m.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
Myh.idomCompat=!0;_.mM(Myh,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Eu,thumbnailSize:_.Eu,isClip:_.Eu}});_.tA(Oiv);_.a5(Oiv,"yt-page-indicator-view-model",{propNames:["data"]});var Cz=function(){var W=_.O.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.Z(Cz,_.O);_.r=Cz.prototype;
_.r.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:_.S("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"}}};
_.r.onImageLoaded=function(){this.loaded=!0};
_.r.onImageUnloaded=function(){this.loaded=!1};
_.r.computeRichThumbnail=function(W,e,t,b){if(W&&e&&!b&&!_.S("disable_moving_thumbs_handling")&&!t)return e};
_.r.computeImageWidth=function(W,e){return e||9999};
_.r.computeIsOriginalAspectRatio=function(W){return W};
_.r.computeIsLive=function(W){if(W==null?0:W.badges)for(var e=0;e<W.badges.length;e++){var t=W.badges[e];if(t.metadataBadgeRenderer&&t.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(e=0;e<W.thumbnailOverlays.length;e++)if(t=W.thumbnailOverlays[e],t.thumbnailOverlayTimeStatusRenderer&&t.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.r.computeObjectFit=function(W,e){return e||(W?"CONTAIN":"")};
_.r.computeNavigationEndpoint=function(W,e,t){return W?e:t};
_.r.computeHasClip=function(W){W=_.R(W||[]);for(var e=W.next();!e.done;e=W.next())if(e.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.r.computeOverlayColor=function(W){var e;return(W==null?0:(e=W.darkColorPalette)==null?0:e.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.Ec.Object.defineProperties(Cz.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return TVD(this.width)}}});
Cz.prototype.onImageUnloaded=Cz.prototype.onImageUnloaded;Cz.prototype.onImageLoaded=Cz.prototype.onImageLoaded;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(GsP),_.Y("design:type",Object)],Cz.prototype,"ytdThumbnailBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Cz.prototype,"componentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Cz.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Cz.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cz.prototype,"circular",void 0);
_.P([_.J({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Y("design:type",Object)],Cz.prototype,"richThumbnail",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Y("design:type",Boolean)],Cz.prototype,"hasClip",void 0);_.P([_.J(),_.Y("design:type",Object)],Cz.prototype,"eventSink",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cz.prototype,"queued",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cz.prototype,"richGridThumbnail",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cz.prototype,"useExpandableTooltip",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cz.prototype,"useUntranslatedNavigationEndpoint",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Cz.prototype,"disableInteraction",void 0);
_.P([_.J({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Y("design:type",Object)],Cz.prototype,"computedNavigationEndpoint",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cz.prototype,"nowPlayingEqualizerOnly",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cz.prototype,"hidePlaybackStatus",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Cz.prototype,"objectFit",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Cz.prototype,"noRoundedCorners",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cz.prototype,"watchFeedThumbnail",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Cz.prototype,"isPreviewLoading",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Y("design:type",Object)],Cz.prototype,"isOriginalAspectRatio",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Y("design:type",Object)],Cz.prototype,"computedObjectFit",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Y("design:type",Boolean)],Cz.prototype,"isLiveVideo",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cz.prototype,"loaded",void 0);_.P([_.J({computed:"computeOverlayColor(data.thumbnail)"}),_.Y("design:type",Object)],Cz.prototype,"overlayColor",void 0);_.P([_.J({selector:_.viG}),_.Y("design:type",Boolean)],Cz.prototype,"inlinePreviewIsEnabled",void 0);_.P([_.J(),_.Y("design:type",Number)],Cz.prototype,"width",void 0);
_.P([_.T("inlinePreviewIsEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cz.prototype,"isPreviewDisabled",null);_.P([_.T("width"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cz.prototype,"thumbnailSize",null);_.P([_.wz("image-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cz.prototype,"onImageLoaded",null);
_.P([_.wz("image-unloaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cz.prototype,"onImageUnloaded",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-thumbnail"})],Cz);
var ssy=_.Ro()(Cz,"ytd-thumbnail",function(){if(Cd8===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Cd8=W}W=Cd8;return W},{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 HiL=function(W){var e=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12866_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12866_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(t){hR8(e,t)};
this.onLockupMouseLeaveFn=function(t){t=t.relatedTarget;var b,m;((b=document.getElementsByTagName("ytd-video-preview"))==null?0:(m=b.item(0))==null?0:m.contains(t))||(e.terminateVideoPreview(),nz(e))};
this.onThumbnailMouseDownFn=function(){e.terminateVideoPreview();nz(e)};
this.onTouchStart=function(){e.JSC$12866_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;Hbe(this);fz(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)):
_.JC(Error("Ch")):_.JC(Error("Dh")):Kdv(this)},R4=function(W){Kdv(W);
var e;(e=W.lockupElement)==null||e.removeEventListener("mouseenter",W.onMouseMoveFn);var t;(t=W.lockupElement)==null||t.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var b;(b=W.lockupElement)==null||b.removeEventListener("touchstart",W.onTouchStart);var m;(m=W.thumbnailElement)==null||m.removeEventListener("mousedown",W.onThumbnailMouseDownFn);nz(W)},Hbe=function(W){W.inlinePreviewIsEnabledForUser=_.Eb().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.S8(_.Eb(),_.viG,function(e){(W.inlinePreviewIsEnabledForUser=e)||nz(W)});
W.JSC$12866_unsubscribeFromInlinePreviewIsActive=_.S8(_.Eb(),_.crD,function(e){(W.inlinePreviewIsActive=e)||nz(W)})},Kdv=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$12866_unsubscribeFromInlinePreviewIsActive();W.JSC$12866_unsubscribeFromInlinePreviewIsActive=function(){}},hR8=function(W,e){e.buttons>0||(e=_.mn("kevlar_lockup_hover_delay",-1),W.JSC$12866_touched&&e>=0?(_.Tm.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.F6(_.Tm,function(){PdU(W)},e),W.JSC$12866_touched=!1):PdU(W))},MnD=function(W){W.videoPreviewJobId=_.F6(_.Tm,function(){var e,t,b,m;
return _.F(function(q){if(q.nextAddress==1){if(!fz(W))return q.return();e=W.getVideoPreviewOpts();if(!e)return q.return();e.isAutoplay=!0;return(b=(t=_.Qx(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[e]))&&t[0])?_.a(q,t[0],3):q.jumpTo(2)}q.nextAddress!=2&&(b=q.yieldResult===1);b&&sKz((m=W.mediaRenderer)==null?void 0:m.data);_.u8(q)})})},PdU=function(W){!W.previewTriggered&&fz(W)&&(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=
!0,_.Tm.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.F6(_.Tm,function(){var e,t,b,m;
return _.F(function(q){if(q.nextAddress==1){if(!fz(W))return q.return();e=W.getVideoPreviewOpts();return e?(b=(t=_.Qx(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[e]))&&t[0])?_.a(q,t[0],3):q.jumpTo(2):q.return()}q.nextAddress!=2&&(b=q.yieldResult===1);b&&sKz((m=W.mediaRenderer)==null?void 0:m.data);_.u8(q)})}))};
HiL.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,e;if((e=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=e;else if(W=this.mediaRenderer.data)if(M7Q(W))W={inlinePlaybackEndpoint:_.Mk(W.inlinePlayerData.onVisible),navigationEndpoint:_.Mk(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:hhS(W)};else if("multipleInlinePlaybackEndpoint"in W){var t=_.l(_.l(W.multipleInlinePlaybackEndpoint,GXP),DWZ);if(t!=
null&&t.playerDescriptors){e=[];t=_.R(t.playerDescriptors);for(var b=t.next();!b.done;b=t.next())b=b.value,e.push({inlinePlaybackEndpoint:b.inlinePlaybackEndpoint,navigationEndpoint:b.navigationEndpoint,thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays,accessibilityText:hhS(W)});W=e}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:hhS(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var fz=function(W){var e;if(e=W.inlinePreviewIsEnabledForUser)e=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||M7Q(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return e};
HiL.prototype.terminateVideoPreview=function(){_.RT(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var nz=function(W){_.Tm.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var VyP=_.Nw(["#"]),gr=function(){var W=_.O.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.Z(gr,_.O);_.r=gr.prototype;_.r.configureRendererStamper=function(){return{"data.menu":aV,"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"}}}};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.getMetadata=function(W){var e=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var t=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(t=_.sQ(t,Number(W.upcomingEventData.startTime)));e.push(t)}else W.shortViewCountText&&e.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&e.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(t=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),e.push(_.sQ(t,Number(W.upcomingEventData.startTime))));return e};
_.r.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.r.calculateIsDisabled=function(W){return!!W.isDisabled};
_.r.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.kN(VyP)};
_.r.onDetailsTap=function(W){var e=this.data&&this.data.navigationEndpoint;e&&!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.S("kevlar_grid_video_renderer_killswitch")?_.q2(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.r.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12871_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:_.rz(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.rz(this.hostElement).querySelector("ytd-thumbnail")})};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12871_inlinePreviewHoverListener)==null||R4(W)};
_.r.computeThumbnailWidth=function(W,e){return e&&e>0?e:W?360:210};
_.r.computeShowChannelThumbnail=function(W,e){var t;return e&&!!(W==null?0:(t=W.channelThumbnailSupportedRenderers)==null?0:t.channelThumbnailWithLinkRenderer)};
_.Ec.Object.defineProperties(gr.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12871_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
gr.prototype.dataChanged=gr.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],gr.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],gr.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.Hl),_.Y("design:type",Object)],gr.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],gr.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gr.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gr.prototype,"noEndpoints",void 0);_.P([_.J({computed:"calculateBylineText(data)"}),_.Y("design:type",Object)],gr.prototype,"bylineText",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gr.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],gr.prototype,"isDownloading",void 0);_.P([_.J({reflectToAttribute:!0,value:0}),_.Y("design:type",Number)],gr.prototype,"width",void 0);_.P([_.J({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Y("design:type",Object)],gr.prototype,"isDisabled",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gr.prototype,"dataChanged",null);_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gr.prototype,"isHovered",null);_.P([_.h({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],gr);
_.H(gr,"ytd-grid-video-renderer",function(){if(GBZ!==void 0)return GBZ;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GBZ=W},{mode:_.Qe("kevlar_poly_si_batch_j047")?1:2});var ibP;var TP=function(){var W=_.O.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return W};
_.Z(TP,_.O);TP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
TP.prototype.onClick=function(W){var e,t=(e=this.data)==null?void 0:e.sourceEndpoint;!_.NA(_.LB(W),this.hostElement,["A".toString()])&&t&&_.q2(this.hostElement,"yt-navigate",{endpoint:t})};
_.Ec.Object.defineProperties(TP.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?e:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TP.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TP.prototype,"showVerticalDividers",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TP.prototype,"roundedContainer",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TP.prototype,"skipRoundingTop",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TP.prototype,"disableTopPadding",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TP.prototype,"amsterdamEnabled",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"showMetadataAtTop",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"showMetadataBelowTitle",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"hasMenu",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.truncateParagraphs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"truncateParagraphs",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.paragraphMaxLines"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],TP.prototype,"paragraphMaxLines",null);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TP.prototype,"background",null);_.P([_.h({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],TP);
_.H(TP,"ytd-info-panel-content-renderer",function(){if(ibP!==void 0)return ibP;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ibP=W},{mode:_.Qe("kevlar_poly_si_batch_j076")?1:2});var Y9e;var zRv;var U1o;var Ldh;var Ja=function(){return _.O.apply(this,arguments)||this};
_.Z(Ja,_.O);Ja.prototype.computeStyle=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ja.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Ja.prototype,"style_",void 0);_.P([_.gz({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Ja);
_.H(Ja,"yt-channel-thumbnail-with-link-renderer",function(){if(Ldh===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;U1o===void 0&&(U1o=document.createElement("template"));var b=U1o;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Ldh=W}W=Ldh;return W},{mode:2});var xo=function(){var W=_.O.apply(this,arguments)||this;W.modernTypography=_.S("web_modern_typography");return W};
_.Z(xo,_.O);xo.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"}}}};
xo.prototype.computeTitleStyle=function(W){return W||null};
xo.prototype.computeAvatarStyle=function(W){return W||null};
xo.prototype.computeShowNavigationButton=function(W,e){return!(W==null||!W.navigationButton||e)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xo.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Y("design:type",String)],xo.prototype,"titleStyle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Y("design:type",String)],xo.prototype,"avatarStyle",void 0);_.P([_.J(),_.Y("design:type",Boolean)],xo.prototype,"hideNavigationButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xo.prototype,"isModernSd",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xo.prototype,"modernTypography",void 0);
_.P([_.h({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],xo);
_.H(xo,"ytd-rich-list-header-renderer",function(){if(zRv!==void 0)return zRv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zRv=W},{mode:_.Qe("kevlar_poly_si_batch_j058")?1:2});var Ov=function(){return _.O.apply(this,arguments)||this};
_.Z(Ov,_.O);Ov.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]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ov.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Ov.prototype,"isSearch",void 0);_.P([_.h({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ov);
_.H(Ov,"ytd-preview-card-renderer",function(){if(Y9e!==void 0)return Y9e;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Y9e=W},{mode:1});var EsU;var MX=function(){return _.O.apply(this,arguments)||this};
_.Z(MX,_.O);MX.prototype.configureRendererStamper=function(){return{"data.menu":aV}};
MX.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.sr(W);_.XB(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
MX.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
MX.prototype.dataChanged=MX.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],MX.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],MX.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Y("design:type",String)],MX.prototype,"cardStyle",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MX.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],MX);
_.H(MX,"ytd-compact-channel-recommendation-card-renderer",function(){if(EsU!==void 0)return EsU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EsU=W},{mode:1});var A5h;var N1Z;var sv=function(){var W=_.O.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.Z(sv,_.O);_.r=sv.prototype;_.r.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.r.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.r.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.rz(this.hostElement),e=W.childNodes,t=document.createDocumentFragment(),b=W.childNodes.length-1;b>=0;b--)_.rz(t).appendChild(e[b]);_.S("enable_shadydom_free_scoped_node_methods")?_.qN(this.hostElement).appendChild(t):W.appendChild(t)}};
_.r.ready=function(){var W=this;_.hc(function(){W.initChildrenObserver()},1)};
_.r.detached=function(){this.detachObserver()};
_.r.toggle=function(W,e){this.canToggle&&(this.isToggled=e,_.q2(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.r.reset=function(){this.childrenChanged()};
_.r.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.r.computeIsMoreVisible=function(W,e){return W&&!e};
_.r.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(e){}return!1};
_.r.computeIsLessVisible=function(W,e){return W&&e};
_.r.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,e=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.XB(this.hostElement,{"--ytd-expander-max-lines":""+e,"--ytd-expander-collapsed-height":""}):_.XB(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.r.handleMoreTap=function(W){this.disableToggle||(_.q2(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.r.handleLessTap=function(W){_.q2(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.r.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.r.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Qp(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.r.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};
_.r.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.r.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("collapsed-changed",this.collapsed))};
_.r.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("is-toggled-changed",this.isToggled))};
_.r.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("can-toggle-changed",this.canToggle))};
_.Ec.Object.defineProperties(sv.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
sv.prototype.canToggleChangedForBinding=sv.prototype.canToggleChangedForBinding;sv.prototype.isToggledChangedForBinding=sv.prototype.isToggledChangedForBinding;sv.prototype.collapsedChangedForBinding=sv.prototype.collapsedChangedForBinding;sv.prototype.observeCollapsedHeightAndMaxLines=sv.prototype.observeCollapsedHeightAndMaxLines;sv.prototype.onIronResize=sv.prototype.onIronResize;sv.prototype.reversedChanged=sv.prototype.reversedChanged;sv.prototype.toggledChanged=sv.prototype.toggledChanged;
sv.prototype.alwaysToggleableChanged=sv.prototype.alwaysToggleableChanged;_.P([_.y(_.gf),_.Y("design:type",Object)],sv.prototype,"ironResizableBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],sv.prototype,"alignAuto",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],sv.prototype,"collapsed",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"isToggled",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"alwaysCollapsed",void 0);
_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"canToggle",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"collapsedHeight",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"disableToggle",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"alwaysToggleable",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"reversed",void 0);_.P([_.J(),_.Y("design:type",Number)],sv.prototype,"maxNumberOfLines",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Y("design:type",Object)],sv.prototype,"shouldUseNumberOfLines",void 0);_.P([_.J(),_.Y("design:type",Object)],sv.prototype,"recomputeOnResize",void 0);_.P([_.vG("#content"),_.Y("design:type",HTMLDivElement)],sv.prototype,"content",void 0);_.P([_.BG("alwaysToggleable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"alwaysToggleableChanged",null);
_.P([_.BG("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"toggledChanged",null);_.P([_.T("canToggleJobId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sv.prototype,"isResetting",null);_.P([_.ul("reversed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"reversedChanged",null);
_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"onIronResize",null);_.P([_.ul("maxNumberOfLines","collapsedHeight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"observeCollapsedHeightAndMaxLines",null);_.P([_.ul("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"collapsedChangedForBinding",null);
_.P([_.ul("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"isToggledChangedForBinding",null);_.P([_.ul("canToggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"canToggleChangedForBinding",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-expander"})],sv);
_.H(sv,"ytd-expander",function(){if(N1Z!==void 0)return N1Z;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return N1Z=W},{mode:1});var ha=function(){return _.O.apply(this,arguments)||this};
_.Z(ha,_.O);ha.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
ha.prototype.observeLightsourcePalette=function(){var W,e=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;e&&_.T2(this.hostElement,e)};
ha.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ha.prototype.observeLightsourcePalette=ha.prototype.observeLightsourcePalette;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ha.prototype,"data",void 0);_.P([_.J({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ha.prototype,"isCarousel",void 0);
_.P([_.ul("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ha.prototype,"observeLightsourcePalette",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],ha);
_.H(ha,"ytd-media-upsell-renderer",function(){if(A5h!==void 0)return A5h;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return A5h=W},{mode:2});var d1v;var HA=function(){var W=_.O.apply(this,arguments)||this;W.JSC$12899_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.S("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");W.modern=_.S("kevlar_modern_sd");W.enableProblemWalkthrough=_.S("problem_walkthrough_sd");return W};
_.Z(HA,_.O);_.r=HA.prototype;
_.r.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}}}}}};
_.r.created=function(){this.JSC$12899_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.r.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.aH(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.aH(this,this.onActiveUpdate))};
_.r.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.aH(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.aH(this,this.onActiveUpdate))};
_.r.onDataChanged=function(){this.removePlayerListeners()};
_.r.onColorPaletteChange=function(){var W={},e;if(_.jf()==="USER_INTERFACE_THEME_DARK"&&((e=this.data)==null?0:e.darkColorPalette)){var t=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.h8(this.get("section2Color",t))}else{var b;_.jf()==="USER_INTERFACE_THEME_LIGHT"&&((b=this.data)==null?0:b.lightColorPalette)&&(t=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.h8(this.get("section3Color",t)))}t?(W["--ytd-macro-markers-list-item-title-color"]=
_.h8(this.get("primaryTitleColor",t)),W["--ytd-macro-markers-list-item-secondary-color"]=_.h8(this.get("secondaryTitleColor",t)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.h8(this.get("section1Color",t)),this.customButtonProperties={customColors:{color:_.h8(this.get("primaryTitleColor",t))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.XB(this.hostElement,W)};
_.r.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.r.onEndpointClick=function(W){var e=this,t,b,m;return _.F(function(q){if(q.nextAddress==1){if(e.startX!==W.clientX)return W.preventDefault(),q.return();e.data&&e.ytRendererBehavior.logExplicitClick(e.data);if(!e.seekWithAnimationOnClick)return q.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.NA(_.LB(W),e.hostElement,["BUTTON".toString()]))return q.return();W.stopPropagation();W.preventDefault();return e.data?_.a(q,_.bJ().getPlayerPromise(),3):q.return()}t=q.yieldResult;
m=(b=_.l(e.data.onTap,_.z4))==null?void 0:b.startTimeSeconds;m!==void 0&&t.seekToTimeWithAnimation(m*1E3,_.Ub(e.data.title));_.u8(q)})};
_.r.computeLayout=function(W){return W};
_.r.computeIsHighlighted=function(W){return!!W};
_.r.computeCarouselType=function(W){return W};
_.r.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.r.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.r.onRepeatButtonToggle=function(W){var e=this;W.detail.toggled&&_.bJ().getPlayerPromise().then(function(t){e.ytPlayerListenerBehavior.listenToPlayerEvents(t,e.JSC$12899_playerEvents);e.listeningToPlayer=!0})};
_.r.onLoopRangeChange=function(W){var e=_.rz(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(e){var t=e.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",e.polymerController.data);if(t){var b=Number(t.endTimeMs);if(Number(t.startTimeMs)!==(W==null?void 0:W.startTimeMs)||b!==(W==null?void 0:W.endTimeMs))e.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.r.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.bJ().getPlayerPromise().then(function(e){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(e,W.JSC$12899_playerEvents);W.listeningToPlayer=!1})};
_.r.onActiveUpdate=function(W){this.active=W.detail.active};
HA.prototype.onColorPaletteChange=HA.prototype.onColorPaletteChange;HA.prototype.onDataChanged=HA.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],HA.prototype,"ytPlayerListenerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],HA.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],HA.prototype,"useCustomColors",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],HA.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HA.prototype,"shouldShowButtons",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Y("design:type",String)],HA.prototype,"layout",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Y("design:type",Object)],HA.prototype,"isHighlighted",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],HA.prototype,"useHighlightStyling",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],HA.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],HA.prototype,"enableProblemWalkthrough",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Y("design:type",String)],HA.prototype,"carouselType",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HA.prototype,"useColorSampling",void 0);_.P([_.J(),_.Y("design:type",Boolean)],HA.prototype,"seekWithAnimationOnClick",void 0);_.P([_.J(),_.Y("design:type",Object)],HA.prototype,"customButtonProperties",void 0);
_.P([_.vG("#repeat-button"),_.Y("design:type",HTMLElement)],HA.prototype,"repeatButton",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HA.prototype,"onDataChanged",null);_.P([_.ul("data.lightColorPalette","data.darkColorPalette"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HA.prototype,"onColorPaletteChange",null);_.P([_.h({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],HA);
_.H(HA,"ytd-macro-markers-list-item-renderer",function(){if(d1v!==void 0)return d1v;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return d1v=W},{mode:1});var WAZ;var eho;var Kz=function(){var W=_.O.apply(this,arguments)||this;W.modernTypography=_.S("web_modern_typography");return W};
_.Z(Kz,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Kz.prototype,"modernTypography",void 0);_.P([_.J(),_.Y("design:type",Object)],Kz.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Kz);
_.H(Kz,"ytd-title-and-button-list-header-renderer",function(){if(eho!==void 0)return eho;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eho=W},{mode:1});var t7e;var biP=new _.W_("BUTTON_RENDERER_WIZ_TOKEN"),mTy=new _.W_("BUTTON_RENDERER_TOKEN");_.PA=_.NN(function(W){var e=_.ee().resolve(_.Wi(biP));if(e)return _.w(e,Object.assign({},W));var t=_.ee().resolve(mTy);return t?_.w(DAg,null,function(){return _.w(Em,null,function(){var b,m,q,Q,X,I,u,c,v,D,B,k;return void t(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(b=W.shouldShowIcons)==null?void 0:b.call(W),icon:(m=W.icon)==null?void 0:m.call(W),processAllEndpoints:(q=W.processAllEndpoints)==null?void 0:q.call(W),preventDefault:(Q=W.preventDefault)==null?void 0:Q.call(W),
stopPropagation:(X=W.stopPropagation)==null?void 0:X.call(W),disableButtonRendererClickHandling:(I=W.disableButtonRendererClickHandling)==null?void 0:I.call(W),className:(u=W.className)==null?void 0:u.call(W),buttonOverrides:(c=W.buttonOverrides)==null?void 0:c.call(W),forceModernIconButton:(v=W.forceModernIconButton)==null?void 0:v.call(W),isSubscribe:(D=W.isSubscribe)==null?void 0:D.call(W),alignByText:(B=W.alignByText)==null?void 0:B.call(W),forceDisabled:(k=W.forceDisabled)==null?void 0:k.call(W)})})}):
_.w(_.qD,null)},"ba");
_.PA.idomCompat=!0;var rRk=_.NN(function(W){var e=W.data,t=_.LD(W.useSquareAspectRatio,!1);return _.w("dismissed-mini-game-card-view-model",null,_.w(_.G,{cond:function(){var b,m;return(b=e().responseText)==null?void 0:(m=b.runs)==null?void 0:m.length},
then:function(){var b={};return _.w("div",{class:_.ve("yt-mini-game-card-view-model__dismissed-card",(b["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!t()},b["yt-mini-game-card-view-model--dismissed-square-card"]=t,b))},_.w("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.w(_.G,{cond:function(){return e().responseText.runs[0].text},
then:function(m){return _.w("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:m},m)}}),_.w(_.nU,{data:function(){return e().buttons}},{buttonRenderer:_.PA,
buttonViewModel:_.MV})))}}))},"ca");var IXD=_.NN(function(W){W=_.Ez(W,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var e=W.data,t=W.useFullWidth,b=W.isDesktopWeb,m=W.addSearchResultTopMargin,q=function(){return e().layout},Q=function(){return e().title},X=function(){return e().metadataText?e().metadataText:e().genre},I=function(){return e().channelName},u=function(){return e().image},c=function(){return e().colorPalette},v=function(){return e().actionButton},D=function(){return e().overflowButton},
B=function(){return e().avatar},k=function(){var K={};
K=_.ve("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(K["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return b()},K));
return _.w("div",{class:K},_.w(qMN,{imageData:u,colorPalette:c}),_.w(RhN,{onTap:function(){return e().onTap},
imageData:u,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.w(_.G,{cond:function(){return!b()},
then:function(){return _.w(_.qD,null,_.w(QKh,{layout:q,colorPalette:c,isDesktopWeb:b,overflowButton:D,avatar:B,onTap:function(){return e().onTap},
genre:X,title:Q,channelName:I,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.w(Vc,{actionButton:v}))}}))},n=function(){var K={};
K=_.ve((K["yt-mini-game-card-view-model--search-result-desktop"]=function(){return b()},K["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!b()},K["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return m()},K));
return _.w("div",{class:K},k(),_.w(FAS,{description:function(){return e().description},
isDesktopWeb:b,title:Q,genre:X,onTap:function(){return e().onTap},
actionButton:v,overflowButton:D,avatar:B,channelName:I}))},f=function(){var K=function(){var V;
return(V=e().entityRedesignExperiments)==null?void 0:V.changePlayablesLayoutWithCta},U={};
U=_.ve("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(U["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return K()},U["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return b()},U["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return b()&&e().width===135},U["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return b()},U["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!K()&&b()&&e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},U["yt-mini-game-card-view-model--big-metadata-font"]=function(){return e().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},U["yt-mini-game-card-view-model--use-full-width"]=function(){return t()},U["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!v()},U));
return _.w("div",{class:U},_.w(_.G,{cond:function(){return K()},
then:function(){return _.w(_.qD,null,_.w(Xry,{entityRedesignExperiments:function(){return e().entityRedesignExperiments},
colorPalette:c,isDesktopWeb:b,onTap:function(){return e().onTap},
accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
actionButton:v,imageData:u}),_.w(QKh,{layout:q,colorPalette:c,isDesktopWeb:b,overflowButton:D,avatar:B,onTap:function(){return e().onTap},
genre:X,title:Q,channelName:I,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.w(_.G,{cond:function(){return!!K()===!1&&v()},
then:function(){return _.w(Vc,{actionButton:v})}}))},
else:function(){return _.w(_.qD,null,_.w(qMN,{imageData:u,colorPalette:c}),_.w(RhN,{onTap:function(){return e().onTap},
imageData:u,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.w(QKh,{layout:q,colorPalette:c,isDesktopWeb:b,overflowButton:D,avatar:B,onTap:function(){return e().onTap},
genre:X,title:Q,channelName:I,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}),_.w(Vc,{actionButton:v}))}}))},M=function(){var K={};
K=_.ve("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(K["yt-mini-game-card-view-model--square-card-desktop"]=function(){return b()},K["yt-mini-game-card-view-model--use-full-width"]=function(){return t()},K));
return _.w("div",{class:K},_.w(RhN,{onTap:function(){return e().onTap},
imageData:u,accessibilityText:function(){return e().accessibilityText},
overlayBadgeText:function(){return e().overlayBadgeText},
iconName:function(){return e().iconName},
unplayableInlinePlaybackIconName:function(){return e().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.w(QKh,{layout:q,colorPalette:c,isDesktopWeb:b,overflowButton:D,avatar:B,onTap:function(){return e().onTap},
genre:X,title:Q,channelName:I,entityRedesignExperiments:function(){return e().entityRedesignExperiments}}))};
return _.w("mini-game-card-view-model",{class:W.className},_.w(_.kq,null,_.w(_.Zb,{when:function(){return q()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return f()}),_.w(_.Zb,{when:function(){return q()==="MINI_APP_LAYOUT_SQUARE"}},function(){return M()}),_.w(_.Zb,{when:function(){return q()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return n()})))},"da");
IXD.idomCompat=!0;var Vc=_.NN(function(W){var e=_.LD(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.w(_.nU,{data:W.actionButton},{buttonViewModel:function(t){return _.w("div",{class:e},_.w(_.MV,{data:t.data}))}})},"ea"),RhN=_.NN(function(W){var e=W.onTap;
var t=W.imageData;var b=W.accessibilityText;var m=W.overlayBadgeText;var q=W.iconName;var Q=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.w(_.XN,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:e},_.w(_.A_,{data:t,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(b==null?void 0:b())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.w(aXy,{overlayBadgeText:m,iconName:q,unplayableInlinePlaybackIconName:Q,isDesktopWeb:W}))},"fa"),aXy=_.NN(function(W){var e=W.overlayBadgeText;
var t=W.iconName;var b=W.unplayableInlinePlaybackIconName;var m=W.isDesktopWeb;return _.w("div",{class:"yt-mini-game-card-view-model__badge-container"},_.w(_.G,{cond:t,then:function(q){return _.w("div",{class:"yt-mini-game-card-view-model__badge"},_.w("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.w(_.kD,{icon:q,className:"yt-mini-game-card-view-model__icon"}),_.w("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},e)))}}),_.w(_.G,{cond:function(){return!t()&&
e()},
then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},e)}}),_.w(_.G,{cond:function(){return b()&&m()},
then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.w(_.kD,{icon:b,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),qMN=_.NN(function(W){var e=W.colorPalette;
var t=W.imageData;var b=function(){return e().vibrantColorPalette?e().vibrantColorPalette.section2Color:e().sectionTwoColor};
return _.w(_.qD,null,_.w("div",{class:"yt-mini-game-card-view-model__background-base",style:_.$D({"background-color":function(){return Hw(b(),"1")}})}),_.w("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.$D({"background-image":function(){return"url("+t().sources[0].url+")"}})}),_.w("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.$D({background:function(){return"linear-gradient(180deg,\n    "+Hw(b(),".8")+" 0%,\n    "+Hw(b(),".4")+" 25%,\n    "+Hw(e().vibrantColorPalette?e().vibrantColorPalette.section4Color:e().sectionFourColor,".8")+" 100%)"}})}))},"ha"),QKh=_.NN(function(W){var e=W.layout;
var t=W.colorPalette;var b=W.overflowButton;var m=W.avatar;var q=W.onTap;var Q=W.title;var X=W.channelName;var I=W.entityRedesignExperiments;var u=W.genre;var c=function(){var D;return e()!=="MINI_APP_LAYOUT_SQUARE"&&((D=t())==null?0:D.textPrimaryColor)?"color: "+Hw(t().textPrimaryColor,".7"):""},v=function(){var D;
return I==null?void 0:(D=I())==null?void 0:D.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.w(_.G,{cond:m,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.nU,{data:m},{avatarViewModel:_.pz}))}}),_.w(_.XN,{command:q,
className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:Q},Q),_.w(_.G,{cond:m,then:function(){return _.w("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.w("span",{class:"yt-mini-game-card-view-model__genre",title:X,style:c},X),_.w("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:c},u))},
else:function(){return _.w(_.G,{cond:v,then:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:u},u)},
else:function(){return _.w("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:c},u)}})}})),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.nU,{data:b},{buttonViewModel:function(D){var B=D.data;
return _.w(_.MV,{data:function(){return Object.assign({},B(),{customFontColor:v()?void 0:B().customFontColor})}})}})))},"ia"),Xry=_.NN(function(W){var e=W.entityRedesignExperiments;
var t=W.colorPalette;var b=W.isDesktopWeb;var m=W.onTap;var q=W.accessibilityText;var Q=W.overlayBadgeText;var X=W.iconName;var I=W.unplayableInlinePlaybackIconName;var u=W.actionButton;W=W.imageData;var c=function(){var v;return e==null?void 0:(v=e())==null?void 0:v.changePlayablesLayoutWithCta};
return _.w("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.w(qMN,{imageData:W,colorPalette:t}),_.w(RhN,{onTap:m,imageData:W,accessibilityText:q,overlayBadgeText:Q,iconName:X,unplayableInlinePlaybackIconName:I,isDesktopWeb:b}),_.w(_.G,{cond:function(){return(c==null?void 0:c())&&(u==null?void 0:u())},
then:function(){return _.w(Vc,{actionButton:u})}}))},"ja"),FAS=_.NN(function(W){var e=W.description;
var t=W.isDesktopWeb;var b=W.title;var m=W.genre;var q=W.onTap;var Q=W.actionButton;var X=W.overflowButton;var I=W.avatar;W=W.channelName;var u={};u=_.ve("yt-mini-game-card-view-model--search-result-metadata-wrapper",(u["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=t,u["yt-mini-game-card-view-model--show-unplayable-on-hover"]=t,u["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!t()},u));
var c={};c=_.ve("yt-mini-game-card-view-model__search-result-info-row",(c["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!t()},c));
return _.w("div",{class:u},_.w("div",{class:c},_.w(_.XN,{command:q,className:"yt-mini-game-card-view-model__metadata-details"},_.w("h3",{class:"yt-mini-game-card-view-model__title",title:b},b),_.w("span",{class:"yt-mini-game-card-view-model__genre",title:m},m)),_.w(Vc,{actionButton:Q,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.w("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.w(_.nU,{data:X},{buttonViewModel:_.MV}))),_.w("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.w("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.w("div",{class:"yt-mini-game-card-view-model__avatar"},_.w(_.nU,{data:I},{avatarViewModel:function(v){var D=v.data;return _.w(_.pz,{data:function(){return Object.assign({},D(),{avatarImageSize:t()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.w(_.XN,{command:q,
className:"yt-mini-game-card-view-model__description"},_.w("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.w(_.XN,{command:q,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.w("div",null)))),_.w(_.G,{cond:t,then:function(){return _.w(_.XN,{command:q,className:"yt-mini-game-card-view-model__description"},e)}}))},"ka");_.mM(IXD,"mini-game-card-view-model",{props:{data:_.Eu,className:_.Eu,useFullWidth:_.Eu,isDesktopWeb:_.Eu,addSearchResultTopMargin:_.Eu}});_.mM(rRk,"dismissed-mini-game-card-view-model",{props:{data:_.Eu,useSquareAspectRatio:_.Eu}});var i4=function(){var W=_.O.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.Z(i4,_.O);_.r=i4.prototype;_.r.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.r.dismissibleItemOnYtServiceRequestSent=function(W,e){e.actions&&this.dismissibleItemProcessActions(W,e.actions)};
_.r.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.r.dataChanged=function(){this.dismissibleItemReset()};
_.r.dismissibleItemProcessActions=function(W,e){for(var t=0;t<e.length;t++){var b=e[t];_.l(b,_.$i)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.l(b,_.$i)),W.stopPropagation())}};
_.r.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.Ec.Object.defineProperties(i4.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var W;return!!this.data&&!((W=this.dismissedRenderer)==null?0:W.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.dismissedRenderer)==null||!W.notificationMultiActionRenderer)}}});
i4.prototype.dataChanged=i4.prototype.dataChanged;i4.prototype.dismissibleItemOnRequestSent=i4.prototype.dismissibleItemOnRequestSent;i4.prototype.dismissibleItemOnYtServiceRequestSent=i4.prototype.dismissibleItemOnYtServiceRequestSent;_.P([_.J(),_.Y("design:type",Object)],i4.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],i4.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],i4.prototype,"isDismissed",void 0);
_.P([_.J(),_.Y("design:type",Object)],i4.prototype,"dismissedRenderer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],i4.prototype,"isRichGrid",void 0);_.P([_.T("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i4.prototype,"useSquareAspectRatio",null);_.P([_.T("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i4.prototype,"showCard",null);
_.P([_.T("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i4.prototype,"showDismissed",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],i4.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],i4.prototype,"dismissibleItemOnRequestSent",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i4.prototype,"dataChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],i4);
_.H(i4,"ytd-mini-game-card-view-model",function(){if(t7e!==void 0)return t7e;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return t7e=W},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var wre;var umr;var Yo=function(){return _.AA.apply(this,arguments)||this};
_.Z(Yo,_.AA);Yo.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Yo.prototype.getContinuationUrl=function(W){var e={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.Ut(W,e)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yo.prototype,"data",void 0);_.P([_.gz({is:"yt-reload-continuation",noInjection:!0})],Yo);var cRZ;var vHZ;var zP=function(){var W=_.O.apply(this,arguments)||this;W.notificationData={};return W};
_.Z(zP,_.O);_.r=zP.prototype;_.r.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.r.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.RH(this.hostElement,"has-items",W);_.rz(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.r.onDropdownOpen=function(){var W=_.fc();if(this.parentTrackingParams&&this.data){var e=_.$5(this.parentTrackingParams);this.data.forEach(function(t){W&&e&&t.trackingParams&&(t=_.$5(t.trackingParams),_.Ke(W,e,t),_.ic(W,[t]))})}else this.parentTrackingParams||_.JC(new _.o_("No parent tracking params passed in for yt-dropdown-menu."))};
_.r.hasNotification=function(W){var e;if(W.targetId&&((e=this.notificationData)==null?0:e.targetId)){var t;return W.targetId===((t=this.notificationData)==null?void 0:t.targetId)}};
_.r.computeSelectedIndex_=function(W){if(W)for(var e=0,t=W.length;e<t;e++)if(W[e].selected)return e;return-1};
_.r.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.r.computeShowIcon_=function(W,e){return!e&&!!W};
_.r.computeVerticalOffset_=function(W){return W?36:0};
_.r.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.r.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.r.onIronActivate_=function(W){W=W.detail.item;var e=_.rz(this.hostElement).querySelector("#repeat").itemForElement(W);if(e&&e.trackingParams){var t=_.fc(),b=_.$5(e.trackingParams);t&&_.zv(t,b)}if(e&&e.serviceEndpoint)_.S("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(e.serviceEndpoint):_.X5(this.hostElement,[e.serviceEndpoint]),_.q2(this.hostElement,"yt-playlist-reloading");else a:{if((e=W.querySelector("yt-supported-renderers"))&&
(e=e.rendererElement)&&e.is=="yt-reload-continuation"){e.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.r.onTap_=function(W){W.preventDefault()};
_.r.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.r.onLinkFocus_=function(W){try{var e=W.target}catch(b){}if(e){var t=e.querySelector("tp-yt-paper-item");t&&_.HG(this,"focus",function(){t.focus()})}};
_.r.onMenuClose_=function(){this.menuExpanded="false"};
_.r.isLabelIconActive_=function(W){return W==="true"};
_.r.computeHasSubtitle_=function(W){return!!W};
_.r.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.r.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.Ec.Object.defineProperties(zP.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
zP.prototype.onMenuClose_=zP.prototype.onMenuClose_;zP.prototype.onTap_=zP.prototype.onTap_;zP.prototype.onIronActivate_=zP.prototype.onIronActivate_;zP.prototype.onDropdownOpen=zP.prototype.onDropdownOpen;zP.prototype.dataChanged_=zP.prototype.dataChanged_;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],zP.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],zP.prototype,"ytEndpointBehavior",void 0);
_.P([_.J(),_.Y("design:type",Array)],zP.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],zP.prototype,"parentTrackingParams",void 0);_.P([_.J(),_.Y("design:type",Object)],zP.prototype,"selected",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],zP.prototype,"useLabel",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],zP.prototype,"useComputedAriaLabel",void 0);_.P([_.J(),_.Y("design:type",String)],zP.prototype,"icon",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],zP.prototype,"iconLabel",void 0);_.P([_.J(),_.Y("design:type",String)],zP.prototype,"ariaLabel",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],zP.prototype,"disabled",void 0);_.P([_.J({computed:"isMenuExpanded(data)"}),_.Y("design:type",String)],zP.prototype,"menuExpanded",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],zP.prototype,"closeOnActivate",void 0);
_.P([_.J({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.Y("design:type",Boolean)],zP.prototype,"modernButtons",void 0);_.P([_.J(),_.Y("design:type",Object)],zP.prototype,"notificationData",void 0);_.P([_.T("ariaLabel, selected"),_.J(),_.Y("design:type",String),_.Y("design:paramtypes",[])],zP.prototype,"computedAriaLabel",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zP.prototype,"dataChanged_",null);
_.P([_.wz("paper-dropdown-open"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],zP.prototype,"onDropdownOpen",null);_.P([_.wz("iron-activate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],zP.prototype,"onIronActivate_",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],zP.prototype,"onTap_",null);
_.P([_.wz("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],zP.prototype,"onMenuClose_",null);_.P([_.gz({is:"yt-dropdown-menu",disableElementRegistration:!0})],zP);
_.H(zP,"yt-dropdown-menu",function(){if(vHZ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;cRZ===void 0&&(cRZ=document.createElement("template"));var b=cRZ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);vHZ=W}W=vHZ;return W},{mode:2});var Uv=function(){var W=_.O.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.Z(Uv,_.O);Uv.prototype.computeId=function(W){return W};
Uv.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
Uv.prototype.computeAccessibilityLabel=function(W){var e,t;return((e=W.accessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)||null};
Uv.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
Uv.prototype.notificationDataChanged=Uv.prototype.notificationDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.KT.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Uv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uv.prototype,"data",void 0);_.P([_.J({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],Uv.prototype,"id",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Uv.prototype,"isRightAligned",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uv.prototype,"disabled",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Uv.prototype,"closeOnActivate",void 0);_.P([_.J(),_.Y("design:type",Object)],Uv.prototype,"notificationData",void 0);_.P([_.J(),_.Y("design:type",Object)],Uv.prototype,"hasNotification",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Uv.prototype,"useComputedAriaLabel",void 0);_.P([_.ul("notificationData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uv.prototype,"notificationDataChanged",null);_.P([_.gz({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Uv);
_.H(Uv,"yt-sort-filter-sub-menu-renderer",function(){if(umr===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;wre===void 0&&(wre=document.createElement("template"));var b=wre;t.call(e,b.content.cloneNode(!0),W.content.firstChild);umr=W}W=umr;return W},{mode:2});_.tA(PuR);
var G8b=_.NN(function(W){var e=W.children;var t=W.className;var b=W.style;var m=W.role;var q=W.ariaSelected;var Q=W.ariaLabel;var X=W.ariaHidden;var I=W.ariaLabelledby;var u=W.ariaDescribedby;var c=W.command;var v=W.elementsCommand;var D=W.forceNewState;var B=W.tabIdentifier;var k=W.target;var n=W.tabIndex;var f=W.stopPropagation;W=_.SC(function(){var M=_.h_({innertubeCommand:c==null?void 0:c(),elementsCommand:v==null?void 0:v(),forceNewState:D==null?void 0:D(),stopPropagation:(f==null?void 0:f())!==
!1});M||(M={});M["aria-hidden$"]=X==null?void 0:X();var K;M.tabindex$=(K=n==null?void 0:n())!=null?K:M.tabindex$;var U;M["force-new-state$"]=(U=D==null?void 0:D())!=null?U:M["force-new-state$"];var V;M.role$=(V=m==null?void 0:m())!=null?V:M.role$;var L;M["aria-hidden$"]=(L=X==null?void 0:X())!=null?L:M["aria-hidden$"];var E;M.target$=(E=k==null?void 0:k())!=null?E:M.target$;return M},void 0,"SU0Mnc");
return _.w(_.XN,{aTagConfig:W,className:t,style:b,ariaLabel:Q,ariaLabelledby:I,ariaDescribedby:u,ariaSelected:q,tabIdentifier:B},e)},"la");var DTv=_.SN(V72);_.tA(V72);_.mM(DTv,"place-data-view-model",{props:{data:_.Eu}});var SMe=new _.W_("INLINE_PLAYBACK_HOOK_TOKEN");var BHb=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},Zih=function(W,e){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,oHU(W),lXB(W,e,0))},oHU=function(W){_.F6(_.Tm,function(){W.setActiveSlideIndex(0)},1)},lXB=function(W,e,t){W.jobIds.push(_.F6(_.Tm,function(){var b=t<e-1?t+1:0;
W.setActiveSlideIndex(b);lXB(W,e,b)},1800))};var $TZ=new _.W_("IMAGE_ON_LOAD_HANDLER_TOKEN");var k8o=_.NN(function(W){return _.w("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.w(_.G,{cond:function(){var e;return(e=W.data())==null?void 0:e.thumbnail},
then:function(e){return _.w(_.A_,{data:e,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.prP=_.NN(function(W){var e=W.data;var t=W.lockupExperiments;W={};return _.w("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.w("div",{class:_.ve("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var b;return t&&((b=t())==null?void 0:b.useLegacySizedIconButton)},W))},_.w(_.nU,{data:function(){return e().overlayButton}},{buttonViewModel:function(b){return _.w(_.MV,{data:b.data,
buttonOverrides:function(){var m;return t&&((m=t())==null?0:m.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.prP.idomCompat=!0;var yRD=_.NN(function(W){return _.w("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Be(function(e){e.preventDefault();return!1})},_.w(_.nU,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(e){return _.w("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.w(_.fU,{data:e.data}))}}))},"oa");
yRD.idomCompat=!0;var jKD=_.NN(function(W){var e=function(){var t;return((t=_.l(W.data().rendererContext,_.ly))==null?void 0:t.label)||""};
return _.w("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.w(_.G,{cond:function(){return W.data().image},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.w(_.A_,{data:function(){return W.data().image},
alt:e}))}}),_.w(_.G,{cond:function(){return W.data().text},
then:function(){return _.w("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"pa");_.Lz=_.NN(function(W){var e=[],t=function(){var D,B;return TVD((D=W.width)==null?void 0:D.call(W),(B=W.height)==null?void 0:B.call(W))},b=_.ee().resolve(_.Wi($TZ)),m=_.zT("yt-thumbnail-view-model",function(){e.push("elRef.value set");
var D;(D=W.playbackRef)==null||D.call(W,{thumbnailElRef:m,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:t()})});
_.nt(function(){e.push("onInit");_.fh(function(){e.push("onCleanup")})});
var q=_.MA(YMv),Q=function(){var D,B;return(B=(D=W.aspectRatio)==null?void 0:D.call(W))!=null?B:0},X=function(){return(W.data().image?_.FX9(W.data().image):Q())<=1&&Q()===0},I=function(){return X()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},u=function(){m.value||_.JC(new _.o_("Thumbnail elRef.value is null",e.join("\n")));
b&&m.value&&b(m.value)},c=function(){var D,B;
return((D=W.hovered)==null?void 0:D.call(W))&&t()!=="large"&&((B=W.data().overlays)==null?void 0:B.some(function(k){return _.l(k,Bvr)}))},v={};
return _.w("yt-thumbnail-view-model",{class:_.ve("yt-thumbnail-view-model",W.className,function(){return LAZ(Q())},function(){var D,B;
a:{var k=t(),n=(D=W.disableRounding)==null?void 0:D.call(W);D=(B=W.isClip)==null?void 0:B.call(W);if(!n&&!D)switch(k){case "large":B="yt-thumbnail-view-model--large";break a;case "small":B="yt-thumbnail-view-model--small";break a;default:B="yt-thumbnail-view-model--medium";break a}B=void 0}return B},(v["yt-thumbnail-view-model--cinematic"]=X,v)),
style:_.$D({"background-color":function(){var D,B=X()?(D=W.data().backgroundColor)==null?void 0:D.lightTheme:void 0;return B?Hw(B,"1"):void 0}}),
el:m},_.w(_.G,{cond:X,then:function(){return _.w("div",{class:"yt-thumbnail-view-model__blurred-image"},_.w(_.A_,{data:function(){return W.data().image},
alt:"",contentMode:I,targetWidth:W.width,onload:u}))}}),_.w("div",{class:"yt-thumbnail-view-model__image"},_.w(_.A_,{data:function(){return W.data().image},
alt:"",contentMode:I,targetWidth:W.width,onload:u}),null),_.w(_.nU,{data:function(){return c()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:ObD,thumbnailOverlayBadgeViewModel:function(D){return _.w(Myh,{data:D.data,thumbnailSize:t,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:function(D){return _.w(gse,{data:D.data,thumbnailSize:t,isClip:W.isClip})},
thumbnailOverlayFullViewModel:jKD,thumbnailOverlayButtonViewModel:function(D){return _.w(_.prP,{data:D.data,lockupExperiments:W.lockupExperiments})}}),_.w(_.nU,{data:function(){var D;
return((D=W.hovered)==null?0:D.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(D){return _.w(ko,{data:D.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:yRD}),_.w(_.nU,{data:function(){var D;return((D=W.hovered)==null?0:D.call(W))&&q()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:k8o}),_.w(_.G,{cond:W.isClip,then:function(){return _.w("div",{class:"yt-pinking"},_.w("svg",{class:"yt-pinking__pinking-left"},_.w("defs",null,_.w("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.w("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.w("svg",{class:"yt-pinking__pinking-right"},_.w("defs",null,_.w("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.w("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.w("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.Lz.idomCompat={callbacks:{playbackRef:!0}};var CuS=_.NN(function(W){var e=_.R(_.up(-1,void 0,"IOLZ0b")),t=e.next().value,b=e.next().value;_.nt(function(){var m=new BHb(b);Zih(m,W.data().thumbnails.length);_.fh(function(){if(m.isSlideshowPlaying){m.isSlideshowPlaying=!1;for(var q=m.jobIds,Q=0,X=q.length;Q<X;Q++)_.Tm.cancelJob(q[Q]);m.jobIds.length=0}})});
return _.w("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.w(_.nU,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(m,q){return _.w("div",{class:function(){var Q=!W.data().primaryThumbnail,X=q(),I=t(),u=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Q&&X===0&&u.push("yt-collection-thumbnail-slideshow--first-slide");X<=I&&u.push("yt-collection-thumbnail-slideshow--show-slide");return u.join(" ")}},_.w(_.Lz,{data:m.data,
disableRounding:W.disableRounding}))}}))},"ra");
CuS.idomCompat=!0;var EHD=new _.W_("DWELL_DETECTOR_REGISTRY_TOKEN");var fXv=_.NN(function(W){var e=NHR(W.triggeringElement),t=function(){return!!W.data().primaryThumbnail};
return _.w("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.w(nHh,{stackEnabled:t,thumbnailSize:function(){var b,m;return TVD((b=W.width)==null?void 0:b.call(W),(m=W.height)==null?void 0:m.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor}},_.w("div",null,_.w(_.nU,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(b){var m={};
return _.w(_.Lz,{data:b.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.ve((m["yt-collection-thumbnail-view-model--has-stacks"]=t,m)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.w(_.G,{cond:function(){var b;
return e()&&((b=W.data().thumbnails)==null?void 0:b.length)},
then:function(){return _.w("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.w(CuS,{data:W.data,disableRounding:function(){return!t()}}))}}))))},"sa");
fXv.idomCompat={callbacks:{playbackRef:!0}};
var nHh=_.NN(function(W){var e=W.children;var t=W.stackEnabled;var b=W.thumbnailSize;var m=W.doubleStack;var q=W.stackColor;var Q,X=(Q=_.ee().resolve(_.Wi(_.zf)))==null?void 0:Q();return _.w(_.G,{cond:t,then:function(){return _.w(Qse,{data:function(){var I,u;return{experimentEnabled:!0,thumbnailSize:b(),doubleStack:m==null?void 0:m(),color:X?q==null?void 0:(I=q())==null?void 0:I.darkTheme:q==null?void 0:(u=q())==null?void 0:u.lightTheme,enableResponsiveMode:!1}}},e)},
else:function(){return e}})},"ta");var gHr=new _.W_("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Aa;_.Ev={calledOnce:!0,state:"visible"};Aa={calledOnce:!0,state:"hidden"};_.NX=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;var b=W.className;var m=W.delayedClassName;W=W.animationEntityKey;var q=_.zT("ad-button-view-model"),Q=_.LD(W,""),X=_.D_(pYZ,Q),I=function(){var E,RR;return(RR=(E=X())==null?void 0:E.value)!=null?RR:!1},u=function(){_.Uz(_.SX("booleanEntity",Q(),{key:Q(),
value:!0}));M=void 0};
W=_.R(_.ZT(I));var c=W.next().value,v=W.next().value;W=_.R(_.ZT(I));var D=W.next().value,B=W.next().value;W=_.R(_.ZT(function(){var E;return I()?(E=e().styleTransitionConfig)==null?void 0:E.destinationStyle:void 0}));
var k=W.next().value,n=W.next().value,f=function(){var E=Object.assign({},e(),k()&&{style:k()}),RR,uv,GS=E.label,k9=(RR=E.interaction)==null?void 0:(uv=RR.accessibility)==null?void 0:uv.label;RR=E.iconImage?E.label&&E.label.content?E.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:GS,accessibilityLabel:k9,style:t9D(E.style),type:bWZ(E.style),state:"active",size:eMG(E.size),iconPosition:RR,disabled:!1,aTagConfig:W0g(E,t)}},M;
_.ev(q,{visibilityCallback:function(E){var RR,uv=(RR=e().interaction)==null?void 0:RR.onFirstVisible;E&&uv&&_.K4(uv)},
showOption:_.Ev});var K=function(){return pa(f(),!!e().iconImage)};
b=_.ve(function(){return"ytwAdButtonViewModelHost"},function(){return e().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var E=!!e().delayedAppearanceConfig,RR=c();
return E?RR?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var E=!!e().delayedAppearanceConfig,RR=D();
return E?RR?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!e().delayedAppearanceConfig||c()?m==null?void 0:m():""},b!=null?b:"");
var U=function(){var E,RR=(E=e().delayedAppearanceConfig)==null?void 0:E.delayedInvisibleSeconds;RR&&(M=_.lJ(_.Tm,function(){v(!0);V()},RR*1E3))},V=function(){var E,RR=(E=e().delayedAppearanceConfig)==null?void 0:E.delayedVisibleSeconds;
RR&&(M=_.lJ(_.Tm,function(){B(!0);L()},RR*1E3))},L=function(){var E,RR=(E=e().styleTransitionConfig)==null?void 0:E.styleTransitionSeconds,uv,GS=(uv=e().styleTransitionConfig)==null?void 0:uv.destinationStyle;
RR&&GS?M=_.lJ(_.Tm,function(){n(GS);u()},RR*1E3):u()};
_.nt(function(){var E;((E=e().delayedAppearanceConfig)==null?0:E.transitionDurationSeconds)&&q.value.style.setProperty("transition-duration",e().delayedAppearanceConfig.transitionDurationSeconds+"s");U()});
_.fh(function(){M&&_.Tm.cancelJob(M)});
return _.w("ad-button-view-model",{class:b,el:q},_.w(_.G,{cond:f,then:function(){return _.w(t3,{data:f,icon:function(){return _.w(_.G,{cond:function(){return e().iconImage},
then:function(E){return _.w(_.A_,{data:E,alt:"",targetWidth:K,targetHeight:K,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var THD=_.NN(function(W){var e=W.data;W=_.zT("ad-button-group-view-model");_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});var t={};return _.w("ad-button-group-view-model",{class:_.ve("ytwAdButtonGroupViewModelHost",(t.ytwAdButtonGroupViewModelHostCompactWidth=function(){return e().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},t)),
el:W},_.w("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.w(_.nU,{data:function(){return e().secondaryAdButton}},{adButtonViewModel:function(b){return _.w(_.NX,{data:b.data})}})),_.w("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.w(_.nU,{data:function(){return e().primaryAdButton}},{adButtonViewModel:function(b){return _.w(_.NX,{data:b.data})}})))},"va");var JRD=_.NN(function(W){var e=function(){var t;return((t=W.data())==null?void 0:t.answers)||[]};
return _.w("yt-survey-icons",{class:"ytSurveyIconsHost"},_.w("div",{class:"ytSurveyIconsHeader"},_.w("div",{class:"ytSurveyIconsTitle"},function(){var t;return(t=W.data())==null?void 0:t.text}),_.w("div",null,_.w(t3,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var t;(t=W.onDismiss)==null||t.call(W)}}},
iconName:"DISMISSAL"}))),_.w("div",null,_.w("div",{class:"ytSurveyIconsAnswers"},_.w(_.lV,{each:function(){return e()},
keyBy:"INDEX"},function(t,b){return _.w("div",null,_.w(t3,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var m;(m=W.onSelect)==null||m.call(W,t(),b)}}},
icon:function(){return _.w(_.kD,{icon:function(){var m,q;return(m=t())==null?void 0:(q=m.icon)==null?void 0:q.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.w("div",{class:"ytSurveyIconsAnswersText"},_.w("div",null,function(){return e().length?e()[0].text:""}),_.w("div",null,function(){return e().length?e()[e().length-1].text:""}))))},"wa");var xTB=_.NN(function(W){var e=_.R(_.up(!1,void 0,"s8HkOb")),t=e.next().value,b=e.next().value,m=_.D_(T1Z,function(){var X;return(X=W.data().keys)==null?void 0:X.surveyEntityKey}),q=_.D_(J5S,function(){var X;
return(X=W.data().keys)==null?void 0:X.surveyStateEntityKey});
_.YM("ytd-slimline-survey-show-action",function(){b(!1)});
var Q=function(){var X,I;var u=(X=q())==null?void 0:(I=X.questionStack)==null?void 0:I[0];if(u!==void 0){var c,v;return(c=m())==null?void 0:(v=c.questions)==null?void 0:v[u]}};
e={};return _.w("yt-slimline-survey-view-model",{class:_.ve("ytSlimlineSurveyViewModelHost",(e.ytSlimlineSurveyViewModelCollapsed=function(){return t()},e))},_.w("div",{class:"ytSlimlineSurveyViewModelContainer"},_.w(_.G,{cond:function(){var X;
return((X=Q())==null?void 0:X.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.w(JRD,{data:function(){return Q()},
onSelect:function(X,I){var u,c;return _.F(function(v){b(!0);if(c=(u=W.data())==null?void 0:u.onSelectRating)_.K4(c),_.Uz(V_v(I));_.u8(v)})},
onDismiss:function(){b(!0)}})}})))},"xa");var Oih=_.NN(function(W){return _.w("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.w(_.nU,{data:function(){var e;return(e=W.data())==null?void 0:e.attachments}},{flexibleActionsViewModel:function(e){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(lCP,{data:e.data,
layout:function(){var t;return((t=W.lockupStyle())==null?void 0:t.arrangement)===1?0:1},
justifyContentOverride:function(){var t;return((t=W.lockupStyle())==null?void 0:t.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(e){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(xTB,{data:e.data}))},
expandableMetadataViewModel:function(e){e=e.data;var t;return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},(t=_.ee().resolve(_.Wi(gHr)))==null?void 0:t({data:e}))},
adButtonGroupViewModel:function(e){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(THD,{data:e.data}))},
adButtonViewModel:function(e){return _.w("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.w(_.NX,{data:e.data}))}}))},"ya");var F0c=_.mn("rich_grid_min_item_width",310),RMS=_.mn("rich_grid_max_item_width",500);var M7r=_.NN(function(W){var e=W.data;return _.w("br-nz-badge-shape",{class:_.ve(function(){return G5D(e().brNzRatingBadgeType)}),
role:function(){return e().accessibilityText?"img":void 0},
"aria-label":function(){return e().accessibilityText}},function(){var t;
return(t=e())==null?void 0:t.text})},"za");_.dr=_.NN(function(W){var e=function(){var t=W.data(),b,m;if(t){var q=!((b=W.workaroundShortsIsThumbnailBadge)==null||!b.call(W));b=(m=W.modern)==null?void 0:m.call(W);a:switch(t.badgeStyle){case "BADGE_OVERLAY":m=!0;break a;default:m=!1}t={type:q?16:DFv(t.badgeStyle),brNzRatingBadgeType:S_Z(t.badgeStyle),text:t.badgeText,icon:t.iconName,isOverlay:m,modern:b||_.S("web_modern_badge_view_model"),accessibilityText:t.accessibilityLabel}}else t=void 0;return t};
return _.w("yt-badge-view-model",{class:_.ve("yt-badge-view-model-wiz",W.class)},_.w(_.kq,null,_.w(_.Zb,{when:function(){var t;return!((t=e())==null||!t.brNzRatingBadgeType)}},function(){return _.w(M7r,{data:function(){return e()}})}),_.w(_.Zb,{when:function(){return!!e()&&!e().brNzRatingBadgeType}},function(){return _.w(_.n2,{data:function(){return e()}})})))},"Aa");
_.dr.idomCompat=!0;var ojL,BhD;ojL=16/9;BhD=2/3;_.WB=_.NN(function(W){var e=W.data;var t=W.className;var b=W.imageSizeConfig;var m=W.notifyOnLoaded;W=_.zT("yt-content-preview-image-view-model");var q=function(){return e().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Q=function(){var B;
return _.zz((B=e())==null?void 0:B.rendererContext)},X={};
X=(X["yt-content-preview-image-view-model-wiz"]=!0,X["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return q()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Q()},X);
var I=function(){var B,k;return(k=(B=_.l(e().rendererContext,_.ly))==null?void 0:B.label)!=null?k:""},u=function(){return ZW2(e())},c=function(){var B=lk9(q(),e().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",b==null?void 0:b(),$F9(u()),e().layoutWidth,e().layoutHeight),k=Object.assign({},B);
B.width&&(k.width=Math.round(B.width));B.height&&(k.height=Math.round(B.height));B.maxWidth&&(k.maxWidth=Math.round(B.maxWidth));B.maxHeight&&(k.maxHeight=Math.round(B.maxHeight));return k},v=_.SC(function(){return c().height},void 0,"QOtei"),D=_.SC(function(){return c().width},void 0,"rKpuNc");
_.UQ(W,function(){var B;return(B=e())==null?void 0:B.rendererContext});
return _.w("yt-content-preview-image-view-model",{el:W,role:function(){return Q()?"link":void 0},
tabindex:function(){return Q()?0:void 0},
class:_.ve(t,X,function(){var B=q();var k=b==null?void 0:b();B=B==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||B==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||B==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||B==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(k==null?void 0:k.size)!=null&&k.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(k==null?void 0:k.size)!=null&&k.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 B}),
style:function(){var B=c(),k=[];B.width&&k.push("width: "+B.width+"px");B.height&&k.push("height: "+B.height+"px");B.maxWidth&&k.push("max-width: "+B.maxWidth+"px");B.maxHeight&&k.push("max-height: "+B.maxHeight+"px");B.fullWidth&&k.push("width: 100%");return k.join(";")}},_.w(_.G,{cond:u,
then:function(B){return _.w(_.A_,{data:B,alt:I,"data-disabled$":function(){return!I()},
notifyOnLoaded:m,targetWidth:D,targetHeight:v,preserveWidth:function(){return!!D()},
preserveHeight:function(){return!!v()}})}}),_.w(_.nU,{data:function(){var B;
return(B=e())==null?void 0:B.overlays}},{thumbnailHoverOverlayViewModel:ko,
thumbnailOverlayButtonViewModel:_.prP}))},"Ba");
_.WB.idomCompat=!0;var hhZ=_.NN(function(W){var e=W.data;var t=W.className;var b=W.useSmallLayout;var m=W.useMediumText;W=_.zT("yt-attribution-view-model");var q={};m=(q["yt-attribution-view-model-wiz"]=!0,q["yt-attribution-view-model-wiz--medium-text"]=m,q);_.UQ(W,function(){var Q;return(Q=e())==null?void 0:Q.rendererContext});
return _.w("yt-attribution-view-model",{el:W,class:_.ve(t,m)},_.w(_.G,{cond:function(){return _.zz(e().rendererContext)},
then:function(){return _.w("button",{class:"yt-attribution-view-model-wiz--tappable"},_.w(sKk,{data:e,useSmallLayout:b}))},
else:function(){return _.w(sKk,{data:e,useSmallLayout:b})}}))},"Ca"),sKk=_.NN(function(W){var e=W.data;
var t=W.useSmallLayout;var b=function(){return{size:(t==null?0:t())?16:24}};
return _.w(_.qD,null,_.w(_.nU,{data:function(){return e().contentPreviewImage}},{contentPreviewImageViewModel:function(m){return _.w(_.WB,{data:m.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:b})}}),_.w(_.nU,{data:function(){return e().badge}},{badgeViewModel:function(m){return _.w(_.dr,{data:m.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.w(_.G,{cond:function(){return e().text},
then:function(){return _.w(_.WL,{text:function(){return e().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.w(_.G,{cond:function(){return e().suffix},
then:function(){return _.w(_.WL,{text:function(){return e().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
hhZ.idomCompat=!0;var fkL=_.$b({avatarStackViewModel:_.jU,badgeViewModel:_.dr});_.tA(J4G);var HiS,KAo,Puy,V7e,iih,YMh;HiS=_.NN(function(W){var e=W.delimiter;var t=W.max;var b=W.index;var m=W.isStandalone;return _.w(_.G,{cond:function(){return t()-1>b()},
then:function(){var q={};return _.w("span",{class:_.ve("yt-content-metadata-view-model-wiz__delimiter",(q["yt-content-metadata-view-model-wiz__delimiter--standalone"]=m,q)),"aria-hidden":!0},e)}})},"Ea");
KAo=_.NN(function(W){var e=W.metadataPart;var t=W.maxLines;return _.w(_.WL,{text:function(){return e().text},
linkInheritColor:!0,className:function(){return xFv(t())},
userInput:!0})},"Fa");
Puy=_.NN(function(W){var e=W.metadataPart;var t=W.maxLines;return _.w(_.G,{cond:function(){return e().tooltip},
then:function(b){return _.w("span",{title:b,role:"tooltip"},_.w(KAo,{metadataPart:e,maxLines:t}))},
else:function(){return _.w(KAo,{metadataPart:e,maxLines:t})}})},"Ga");
V7e=_.NN(function(W){var e=W.metadataPart;var t=W.isOverlay;var b=W.useMediumText;var m=W.hideAvatar;var q=function(){return e().maxLines!==void 0?e().maxLines:1};
return _.w(_.qD,null,_.w(_.nU,{data:function(){return e().avatarStack}},{avatarStackViewModel:function(Q){return _.w(_.jU,{data:Q.data,
isOverlay:t,useMediumText:b,hideAvatar:m})},
badgeViewModel:_.dr}),_.w(_.G,{cond:function(){return e().text},
then:function(){return _.w(Puy,{metadataPart:e,maxLines:q})}}))},"Ha");
iih=_.NN(function(W){var e=W.metadataRow;var t=W.isInline;var b=W.delimiter;var m=W.isOverlay;var q=W.useMediumText;var Q=W.extensions;var X=function(){var u;return pp2(Q==null?void 0:(u=Q())==null?void 0:u.lockupMetadata,e())},I=function(){return e().metadataParts||[]};
W={};return _.w("div",{class:_.ve("yt-content-metadata-view-model-wiz__metadata-row",(W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=t,W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var u;return y49(Q==null?void 0:(u=Q())==null?void 0:u.lockupMetadata,e())},W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var u;
return!!(Q==null?0:(u=Q())==null?0:u.lockupMetadata)&&e().badges&&!e().metadataParts},W))},_.w(_.nU,{data:function(){return e().badges}},{badgeViewModel:function(u){return _.w("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.w(_.dr,{data:u.data}))}}),_.w(_.lV,{each:I},function(u,c){return _.w(_.qD,null,_.w(V7e,{metadataPart:u,
isOverlay:m,useMediumText:q,hideAvatar:X}),_.w(HiS,{delimiter:b,max:function(){return I().length},
index:c,isStandalone:!1}))}),_.w(_.G,{cond:function(){return e().isSpacerRow&&!t()},
then:function(){return _.w("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
YMh=_.NN(function(W){var e=_.Ez(W,{layout:0,isOverlay:!1});W=e.className;var t=e.data,b=e.layout,m=e.isOverlay,q=e.useMediumText,Q=e.extensions;e=_.zT("yt-content-metadata-view-model");var X=function(){return b()===0};
_.UQ(e,function(){return t().rendererContext});
var I=function(){return t().metadataRows||[]},u={};
return _.w("yt-content-metadata-view-model",{class:_.ve(W,"yt-content-metadata-view-model-wiz",(u["yt-content-metadata-view-model-wiz--inline"]=X,u["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.zz(t().rendererContext)},u["yt-content-metadata-view-model-wiz--medium-text"]=q,u)),
el:e},_.w(_.lV,{each:I},function(c,v){return _.w(_.qD,null,_.w(iih,{metadataRow:c,isInline:X,delimiter:function(){return t().delimiter},
isOverlay:m,useMediumText:q,extensions:Q}),_.w(_.G,{cond:function(){return X()&&!c.isSpacerRow},
then:function(){return _.w(HiS,{delimiter:function(){return t().delimiter},
max:function(){return I().length},
index:v,isStandalone:!0})}}))}))},"Ja");
_.zhk=_.S("web_enable_sink_yt_content_metadata_view_model")?YMh:_.SN(J4G);YMh.idomCompat=!0;var UTS=_.NN(function(W){var e={};return _.w("yt-lockup-metadata-view-model",{class:_.ve("yt-lockup-metadata-view-model-wiz",function(){a:{var t=W.lockupStyle();if(t==null?0:t.isOverlay)t="yt-lockup-metadata-view-model-wiz--overlay";else switch(t==null?void 0:t.arrangement){case 1:t="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:t="yt-lockup-metadata-view-model-wiz--vertical"}}return t},function(){a:{var t=W.lockupStyle();
if(t==null?0:t.isTiny)t="yt-lockup-metadata-view-model-wiz--tiny";else switch(t==null?void 0:t.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":t="yt-lockup-metadata-view-model-wiz--compact";break a;default:t="yt-lockup-metadata-view-model-wiz--standard"}}return t},(e["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.isOverlay},e["yt-lockup-metadata-view-model-wiz--card"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.isCard},e["yt-lockup-metadata-view-model-wiz--centered"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.isCentered},e["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.typographyBump},e["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.useLegacyTypography},e["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var t;
return(t=W.lockupStyle())==null?void 0:t.useRichGridLegacyTypography},e))},_.w(_.nU,{data:function(){return W.data().image}},{avatarStackViewModel:function(t){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.jU,{data:t.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(t){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.pz,{data:t.data}))},
decoratedAvatarViewModel:function(t){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.w(_.yc,{data:t.data}))}}),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.w("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var t;return(t=W.data().title)==null?void 0:t.content}},_.w(_.G,{cond:function(){return W.data().title},
then:function(t){return _.w(_.XN,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.w(_.WL,{text:t}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.w(_.nU,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(t){return _.w(_.zhk,{data:t.data,
layout:1,useMediumText:function(){var b,m;return((b=W.lockupStyle())==null?void 0:b.typographyBump)||((m=W.lockupStyle())==null?void 0:m.useRichGridLegacyTypography)},
extensions:function(){var b,m;return{lockupMetadata:{byline:{hideAvatar:((b=W.lockupStyle())==null?void 0:b.arrangement)===0,addPadding:((m=W.lockupStyle())==null?void 0:m.arrangement)===1}}}}})}})),_.w(_.nU,{data:function(){return W.data().attribution}},{attributionViewModel:function(t){return _.w("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.w(hhZ,{data:t.data,
useSmallLayout:!0}))}})),_.w("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.w(_.nU,{data:function(){return W.data().menuButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
buttonOverrides:function(){var b;return((b=W.lockupStyle())==null?0:b.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
UTS.idomCompat=!0;var LAU=_.NN(function(W){var e=_.zT("notification-multi-action-renderer");_.jm(function(){requestAnimationFrame(function(){_.EH(e.value)})});
var t={},b={},m={};return _.w("notification-multi-action-renderer",{class:_.ve("ytNotificationMultiActionRendererHost",(t.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var q;return(q=W.useLegacyShelfStyle)==null?void 0:q.call(W)},t)),
el:e},_.w("span",{"aria-live":"polite",class:_.ve("ytNotificationMultiActionRendererTextContainer",(b.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var q;return(q=W.useLegacyShelfStyle)==null?void 0:q.call(W)},b))},_.w(_.WL,{text:function(){return W.data().responseText}})),_.w("div",{class:_.ve("ytNotificationMultiActionRendererButtonContainer",(m.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var q;
return(q=W.useLegacyShelfStyle)==null?void 0:q.call(W)},m))},_.w(_.nU,{data:function(){var q;
return(q=W.data().buttons)==null?void 0:q.map(function(Q){if(Q=Q.buttonRenderer){var X,I=Object,u=I.assign,c=(X=Q.icon)==null?void 0:X.iconType;X=(X=Q.command||Q.serviceEndpoint||Q.navigationEndpoint)?{innertubeCommand:X}:void 0;Q={buttonViewModel:u.call(I,{},{iconName:c,onTap:X,trackingParams:Q.trackingParams,titleFormatted:Q.text?_.Tf(Q.text):void 0},OWQ(Q))}}else Q=void 0;return Q}).filter(function(Q){return!!Q})}},{buttonViewModel:function(q,Q){return _.w("div",null,_.w(_.MV,{data:q.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var X;return((X=W.useModernStyles)==null?0:X.call(W))?{type:Q()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var EHb=_.NN(function(W){var e=_.zT("notification-text-renderer");_.jm(function(){requestAnimationFrame(function(){_.EH(e.value)})});
return _.w("notification-text-renderer",{el:e,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.w(_.WL,{text:function(){return W.data().successResponseText}}))},"Ma");_.ARN=_.NN(function(W){var e=_.D_(nCL,function(){var b;return M9S((b=W.contentId)==null?void 0:b.call(W))}),t=function(){var b;
return _.l((b=e())==null?void 0:b.command,_.$i)};
return _.w(_.G,{cond:function(){var b;if(!(b=t())){var m;b=_.l((m=e())==null?void 0:m.command,lnr)}return b},
then:function(){return _.w(_.G,{cond:t,then:function(){var b={};return _.w("div",{class:_.ve("ytDismissibleItemReplacedContent",function(){var m;return s69((m=W.aspectRatio)==null?void 0:m.call(W))})},_.w("div",{class:_.ve((b.ytDismissibleItemAspectRatioContainer=function(){var m;
return((m=W.aspectRatio)==null?void 0:m.call(W))!==void 0},b))},_.w(_.nU,{data:function(){var m;
return(m=t())==null?void 0:m.item}},{notificationMultiActionRenderer:function(m){return _.w(LAU,{data:m.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:EHb})))}})},
else:W.children})},"Na");_.NHy=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;W=_.Um("ad-avatar-view-model");var b=function(){var q;return((q=e().interaction)==null?0:q.onTap)?function(Q){var X;dTv(Q,(X=e().interaction)==null?void 0:X.onTap,t)}:void 0},m=function(){var q,Q=e(),X=b(),I=(q=_.l(e().rendererContext,_.ly))==null?void 0:q.label;
a:switch(Q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":q=1;break a;default:q=0}return{size:K0G(Q.size),type:q,onTap:X,accessibilityText:I}};
_.ev(W,{visibilityCallback:function(q){var Q,X=(Q=e().interaction)==null?void 0:Q.onFirstVisible;q&&X&&_.K4(X)},
showOption:_.Ev});return _.w("ad-avatar-view-model",{class:function(){var q;return((q=e().interaction)==null?0:q.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.w(_.G,{cond:function(){return e().image},
then:function(q){return _.w(x1P,{data:m,image:q})}}))},"Oa");_.e2=_.NN(function(W){W=_.Ez(W,{hasDot:!1});var e=Object.assign({},W),t=W.data,b=W.hasDot;W=W.customCommandResolver;var m=(delete e.data,delete e.hasDot,delete e.customCommandResolver,e);e=function(){return t().style};
e!==void 0&&e!==null||_.Kt(Error("Eh"));e=_.zT("ad-badge-view-model");_.Av(e,function(){return t().interaction},W);
return _.w("ad-badge-view-model",{class:_.ve(function(){var q;return((q=t().interaction)==null?0:q.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var q=m.adRenderingContextType();
t();return q==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:e},_.w(_.n2,{data:function(){var q;t();return{type:2,text:(q=t().label)==null?void 0:q.content,adsIncludeDot:b(),isOverlay:t().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var dTh;_.tM=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;var b=W.adRenderingContextType;W=_.zT("ad-details-line-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(m){var q,Q=(q=e().interaction)==null?void 0:q.onFirstVisible;m&&Q&&_.K4(Q)},
showOption:_.Ev});return _.w("ad-details-line-view-model",{class:function(){var m;return((m=e().interaction)==null?0:m.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:W},_.w(_.G,{cond:function(){return e().style},
then:function(m){return _.w(_.lV,{each:function(){var q;return((q=e())==null?void 0:q.attributes)||[]},
keyBy:"INDEX"},function(q){return _.w(dTh,{attribute:q,style:m,adRenderingContextType:function(){return b()}})})}}))},"Qa");
dTh=_.NN(function(W){var e=W.attribute;var t=W.style;var b=W.adRenderingContextType;return _.w(_.G,{cond:function(){return e().text},
then:function(m){return _.w(_.WL,{text:m,className:function(){var q=b();t();return q==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var W0D=_.NN(function(W){var e=W.data;var t=W.typographyBump;var b=function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
W={};return _.w(_.qD,null,_.w("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.w(_.WL,{text:function(){return e().headline},
className:_.ve("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return b==null?void 0:b()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(t==null?void 0:t())&&!(b==null?0:b())},W)),
linkInheritColor:!0}),_.w(_.G,{cond:function(){return e().description},
then:function(m){var q={};return _.w(_.WL,{text:m,className:_.ve("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return b==null?void 0:b()},q.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(t==null?void 0:t())&&!(b==null?0:b())},q)),
linkInheritColor:!0})}}),_.w(_.G,{cond:function(){return e().secondaryDescription},
then:function(m){var q={};return _.w(_.WL,{text:m,className:_.ve("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(q.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return t==null?void 0:t()},q)),
linkInheritColor:!0})}}),_.w("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.w(_.G,{cond:function(){return e().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.w(_.nU,{data:function(){return e().adAvatar}},{adAvatarViewModel:_.NHy}))}}),_.w(_.nU,{data:function(){return e().adBadge}},{adBadgeViewModel:function(m){return _.w(_.e2,{data:m.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.w(_.nU,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(m){return _.w(_.tM,{data:m.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}}))),_.w("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
buttonOverrides:function(){a:switch(e().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var q="S";break a;default:q="M"}return{size:q}}})}})))},"Sa"),eMB=_.NN(function(W){var e=W.data;
var t=W.noBottomMargin;var b=W.useVideoLockupTopPadding;var m=W.typographyBump;W={};W=_.ve("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return t==null?void 0:t()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},W));
var q=function(){return e().adBadge};
q!==void 0&&q!==null||_.Kt(Error("Fh"));q={};var Q={};return _.w(_.qD,null,_.w(_.G,{cond:function(){return e().adAvatar},
then:function(){return _.w("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.w(_.nU,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(X){return _.w(_.NHy,{data:X.data})}}))}}),_.w("div",{class:W},_.w("div",{class:_.ve("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return m==null?void 0:m()},q.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(m==
null?void 0:m())&&_.S("web_enable_typography_bump_v2")},q))},_.w(_.WL,{text:function(){return e().headline},
linkInheritColor:!0})),_.w(_.G,{cond:function(){return e().description},
then:function(X){return _.w(_.WL,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.w("div",{class:function(){return e().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.S("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.w(_.nU,{data:function(){return e().adBadge}},
{adBadgeViewModel:function(X){return _.w(_.e2,{data:X.data,
hasDot:function(){return!!e().adDetailsLine},
adRenderingContextType:function(){return e().adRenderingContextType}})}}),_.w(_.nU,{data:function(){return e().adDetailsLine}},{adDetailsLineViewModel:function(X){return _.w(_.tM,{data:X.data,
adRenderingContextType:function(){return e().adRenderingContextType}})}})),_.w(_.G,{cond:function(){return e().secondaryDescription},
then:function(X){return _.w(_.WL,{text:X,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.w("div",{class:_.ve("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},Q))},_.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:_.MV})))},"Ta"),t9b=_.NN(function(W){var e=W.data;
var t=W.noBottomMargin;var b=W.listenToTapEvent;var m=W.setTouchEndHandler;var q=W.useVideoLockupTopPadding;var Q=W.typographyBump;var X=_.zT("feed-ad-metadata-view-model");_.Av(X,function(){return e().interaction},void 0,function(){return b==null?void 0:b()});
W=_.R(_.up(!1,void 0,"qjt0Xc"));var I=W.next().value,u=W.next().value;W=_.Be(function(){(m==null?0:m())&&!I()&&(X.value.click(),u(!0),setTimeout(function(){u(!1)},100));
return!1});
_.ev(X,{visibilityCallback:function(c){var v,D=(v=e().interaction)==null?void 0:v.onFirstVisible;c&&D&&_.K4(D)},
showOption:_.Ev});return _.w("feed-ad-metadata-view-model",{class:function(){var c;return((c=e().interaction)==null?0:c.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:X,"on:touchend":W},_.w(_.kq,null,_.w(_.Zb,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.w(W0D,{data:e,
typographyBump:Q})}),_.w(_.Zb,{when:function(){return e().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.w(eMB,{data:e,
noBottomMargin:t,useVideoLockupTopPadding:q,typographyBump:Q})})))},"Ua");var bWU;_.bO=_.NN(function(W){return _.w("yt-lockup-view-model",{class:_.ve(W.className)},_.w(_.ARN,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var e,t;return((e=W.containerType)==null?void 0:e.call(W))!==3?c4G(W.data().contentType,(t=W.force16By9ThumbnailAspectRatio)==null?void 0:t.call(W)):void 0}},function(){return _.w(bWU,Object.assign({},W))}))},"Va");
bWU=_.NN(function(W){W=_.Ez(W,{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 e=W.data,t=W.containerLayoutConfig,b=W.containerType,m=W.sizing,q=W.protectBackground,Q=W.typographyBump,X=W.force16By9ThumbnailAspectRatio,I=W.thumbnailFixedWidth,u=W.thumbnailTargetWidth,c=W.lockupExperiments,v=W.elementsPerRow;
W=_.zT("div");_.UQ(W,function(){var fQ;return(fQ=e())==null?void 0:fQ.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var D=_.MA(zhz),B=_.ee().resolve(_.Wi(SMe)),k=B?{}:void 0,n=function(){var fQ,iv,hz;return(hz=(iv=_.l((fQ=e())==null?void 0:fQ.rendererContext,_.ly))==null?void 0:iv.label)!=null?hz:void 0},f=function(){var fQ=t==null?void 0:t(),iv;
if(fQ==null?0:fQ.containerType){var hz=(iv=e())==null?void 0:iv.contentType;iv=c();var ES=Q(),Wu=u(),pr=q();fQ=Object.assign({},vjL(akG(fQ),XpD(fQ.responsiveSize),ES,hz,fQ.force16By9ThumbnailAspectRatio,Wu,pr,iv),{thumbnailFixedWidth:fQ.contentPreviewWidth})}else fQ=vjL(b(),m(),Q(),(hz=e())==null?void 0:hz.contentType,X(),u(),q(),c());return fQ};
B&&k&&B({enabled:function(){return D()},
itemPlaybackModel:function(){return e().itemPlayback},
thumbnailElRef:function(){return k.thumbnailElRef},
containerElRef:W,options:function(){var fQ,iv=(fQ=_.l(e().metadata,uQb))==null?void 0:fQ.endorsement;fQ=k.thumbnailOverlays||[];iv&&fQ.push(iv);var hz,ES;return{thumbnail:k.thumbnail,thumbnailOverlays:fQ,accessibilityText:n(),thumbnailSize:k.thumbnailSize,enableRounding:f().isCollection,containPlayerWithinThumbnail:f().isCollection,trackingParams:(hz=_.l(e().rendererContext,_.Bg))==null?void 0:(ES=hz.loggingDirectives)==null?void 0:ES.trackingParams}}});
var M=0;B=_.R(_.up(!1,void 0,"BKBkhb"));var K=B.next().value,U=B.next().value;B=_.R(_.up(!1,void 0,"GK0mq"));var V=B.next().value,L=B.next().value;B=_.Be(function(){var fQ=D()&&e().itemPlayback;V()?(_.Tm.cancelJob(M),M=_.Tm.addJob(function(){U(!fQ)},8,32)):U(!fQ);
return!0});
var E=_.Be(function(){M&&(_.Tm.cancelJob(M),M=0);U(!1)});
_.fh(function(){M&&(_.Tm.cancelJob(M),M=0)});
var RR=HWQ(function(){L(!0)}),uv=RR.touchFeedbackEvents,GS=RR.touchFeedbackOnPointerUp,k9=RR.touchFeedbackOnPointerDown;
RR=RR.touchFeedbackOnPointerLeave;var CQ={};return _.w("div",{el:W,class:_.ve("yt-lockup-view-model-wiz",function(){a:{var fQ=f();if(fQ.isOverlay)fQ="yt-lockup-view-model-wiz--overlay";else switch(fQ.arrangement){case 1:fQ="yt-lockup-view-model-wiz--horizontal";break a;default:fQ="yt-lockup-view-model-wiz--vertical"}}return fQ},function(){a:{var fQ=f();
if(fQ.isOverlay)fQ="yt-lockup-view-model-wiz--overlay";else{switch(fQ.collectionStackNumber){case 1:fQ="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:fQ="yt-lockup-view-model-wiz--collection-stack-2";break a}fQ=void 0}}return fQ},(CQ["yt-lockup-view-model-wiz--card"]=function(){return f().isCard},CQ["yt-lockup-view-model-wiz--compact"]=function(){return f().isTiny||f().sizing!=="STANDARD"},CQ["yt-lockup-view-model-wiz--protect-background"]=q,CQ["yt-lockup-view-model-wiz--add-margins"]=
function(){return f().addMarginForFullbleed},CQ["yt-lockup-view-model-wiz--centered"]=function(){return f().isCentered},CQ["yt-lockup-view-model-wiz--fullbleed"]=function(){return f().fullbleed},CQ["yt-lockup-view-model-wiz--single-column-grid"]=function(){return v()===1&&b()===2},CQ["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var fQ;
return(fQ=c())==null?void 0:fQ.useRichGridLegacyMargin},CQ)),
"on:mousedown":k9,"on:mouseleave":E,"on:mouseup":GS,"on:mouseover":B,"on:touchstart":k9,"on:touchend":GS,"on:pointerleave":RR},_.w(_.XN,{command:function(){var fQ;return _.Yb((fQ=e())==null?void 0:fQ.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return I()&&f().arrangement===1?"width: "+I():""}},_.w(_.nU,{data:function(){var fQ;
return(fQ=e())==null?void 0:fQ.contentImage}},{thumbnailViewModel:function(fQ){return _.w(_.Lz,{data:fQ.data,
aspectRatio:function(){return f().aspectRatio},
disableRounding:function(){return f().disableRounding},
width:u,hovered:K,isClip:function(){var iv;return((iv=e())==null?void 0:iv.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:iiv(k),lockupExperiments:function(){return c()}})},
collectionThumbnailViewModel:function(fQ){return _.w(fXv,{data:fQ.data,aspectRatio:function(){return f().aspectRatio},
disableRounding:function(){return f().disableRounding},
width:u,doubleStack:function(){return f().collectionStackNumber===2},
hovered:K,playbackRef:iiv(k)})},
decoratedAvatarViewModel:_.yc})),_.w("div",{class:"yt-lockup-view-model-wiz__metadata"},_.w(_.nU,{data:function(){var fQ;return(fQ=e())==null?void 0:fQ.metadata}},{lockupMetadataViewModel:function(fQ){return _.w(UTS,{data:fQ.data,
lockupStyle:f,lockupCommand:function(){var iv;return _.Yb((iv=e())==null?void 0:iv.rendererContext)},
lockupAccessibilityLabel:function(){return n()}})},
feedAdMetadataViewModel:function(fQ){return _.w(t9b,{data:fQ.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Q})}}),_.w(_.nU,{data:function(){var fQ;
return(fQ=e())==null?void 0:fQ.attachmentSlot}},{lockupAttachmentsViewModel:function(fQ){return _.w(Oih,{data:fQ.data,
lockupStyle:f})}})),_.w(_.jN,{model:function(){a:{switch(f().collectionStackNumber){case 1:var fQ=8;
break a;case 2:fQ=12;break a}fQ=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:fQ}},
pointerDownEvent:uv.pointerDownEvent,pointerUpEvent:uv.pointerUpEvent,pointerLeaveEvent:uv.pointerLeaveEvent}))},"Wa");
_.bO.idomCompat=!0;_.mM(_.bO,"yt-lockup-view-model",{props:{data:_.Eu,containerLayoutConfig:_.Eu,containerType:_.Eu,sizing:_.Eu,protectBackground:_.Eu,typographyBump:_.Eu,thumbnailFixedWidth:_.Eu,thumbnailTargetWidth:_.Eu,force16By9ThumbnailAspectRatio:_.Eu,className:_.Eu,lockupExperiments:_.Eu,elementsPerRow:_.Eu}});var zM9;_.tA(dFK);var mFB=_.SN(dFK,{callbacks:{onExpandClick:!0}});var rl9=_.$b({buttonViewModel:_.MV}),r4v=_.SN(b99);_.tA(b99);_.tA(et9);_.tA(t6R);_.mM(r4v,"yt-video-attribute-view-model",{props:{data:_.Eu,className:_.Eu}});var m3=function(){var W=_.O.apply(this,arguments)||this;W.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$13102_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.Z(m3,_.O);_.r=m3.prototype;
_.r.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}}}}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.aH(this,this.onPageChange))};
_.r.detached=function(){document.removeEventListener("yt-page-type-changed",_.aH(this,this.onPageChange))};
_.r.getItemsPath=function(){return"data.cards"};
_.r.onIronResize=function(){this.updateListStyles()};
_.r.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.S("problem_walkthrough_sd")&&!!this.centerItems};
_.r.computeCardListStyle=function(W){return W||null};
_.r.computeEmpty=function(W){return!this.get("cards.length",W)};
_.r.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.r.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.r.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.r.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.r.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(e){return e.gameCardRenderer}):!1};
_.r.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.r.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.r.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.r.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(e){return e.miniGameCardViewModel&&e.miniGameCardViewModel.width===135}):!1};
_.r.computeCenterItems=function(W){return!!W};
_.r.computeHasInfoPanel=function(W){var e;return W==null?void 0:(e=W.cards)==null?void 0:e.some(function(t){return t.infoPanelContentRenderer})};
_.r.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.r.getItemByIndex=function(W){var e=this.items.children;return e&&e.length>W?e[W]:void 0};
_.r.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.Tm.addJob(function(){W.pageLoadingFromNavigation=!1;_.Qx(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.r.updateListStyles=function(){if(_.S("problem_walkthrough_sd")&&this.JSC$13102_scrollContainer!==void 0){var W=this.JSC$13102_scrollContainer.clientWidth;W!==this.JSC$13102_lastScrollContainerWidth&&(this.JSC$13102_lastScrollContainerWidth=W,_.XB(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.q2(this.hostElement,"iron-resize"))}};
_.Ec.Object.defineProperties(m3.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.S("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.cards)==null?0:(t=e[0])==null?0:t.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.cards)==null?0:(t=e[0])==null?0:t.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return _.S("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(e=W.cards)==null?0:(t=e[0])==null?0:t.infoPanelContentRenderer)}}});
m3.prototype.dataChanged=m3.prototype.dataChanged;m3.prototype.onIronResize=m3.prototype.onIronResize;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],m3.prototype,"ytdHorizontalListBehavior",void 0);
_.P([_.y(_.Tx),_.Y("design:type",Object)],m3.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],m3.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],m3.prototype,"useCustomColors",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],m3.prototype,"useHighlightStyling",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Y("design:type",Object)],m3.prototype,"cardListStyle",void 0);_.P([_.J({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Y("design:type",Boolean)],m3.prototype,"empty",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasSubtitle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Y("design:type",Boolean)],m3.prototype,"thumbnailStyle",void 0);_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasGameCard",void 0);_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Y("design:type",Boolean)],m3.prototype,"centerHeaderTitle",void 0);
_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasPortraitMiniApp",void 0);_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasSquareMiniApp",void 0);_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.P([_.J({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Y("design:type",Boolean)],m3.prototype,"hasInfoPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],m3.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],m3.prototype,"inlineStructuredDescription",void 0);_.P([_.vG("#scroll-container"),_.Y("design:type",HTMLDivElement)],m3.prototype,"JSC$13102_scrollContainer",void 0);
_.P([_.J({computed:"computeInitialCountNumber(data.style.type)"}),_.Y("design:type",Number)],m3.prototype,"initialCount",void 0);_.P([_.J({computed:"computeUseFloorScrolling(data.style.type)"}),_.Y("design:type",Boolean)],m3.prototype,"useFloorScrolling",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Y("design:type",Boolean)],m3.prototype,"centerItems",void 0);_.P([_.J(),_.Y("design:type",Object)],m3.prototype,"pageLoadingFromNavigation",void 0);
_.P([_.J(),_.Y("design:type",Object)],m3.prototype,"currentIndex",void 0);_.P([_.J(),_.Y("design:type",Number)],m3.prototype,"scrollCount",void 0);_.P([_.J(),_.Y("design:type",Object)],m3.prototype,"supportComponentResize",void 0);_.P([_.vG("#items"),_.Y("design:type",HTMLDivElement)],m3.prototype,"items",void 0);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m3.prototype,"onIronResize",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m3.prototype,"dataChanged",null);_.P([_.J({reflectToAttribute:!0}),_.T("inlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],m3.prototype,"hideNavigationButton",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],m3.prototype,"modernChapters",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],m3.prototype,"hasVideoAttributeViewModels",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],m3.prototype,"modernInfoPanels",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],m3);
_.H(m3,"ytd-horizontal-card-list-renderer",function(){if(WAZ!==void 0)return WAZ;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WAZ=W},{mode:_.Qe("kevlar_poly_si_batch_j072")?1:2});var q_v=_.NN(function(W){var e=W.data;var t={};return _.w("video-summary-content-view-model",{class:_.ve("video-summary-content-view-model-wiz",W.className,(t["video-summary-content-view-model-wiz--is-search"]=W.isSearch,t))},_.w(_.lV,{each:function(){var b=[],m=e().paragraphs;if(m==null||!m.length)return[];for(var q=0;q<m.length;q++){var Q=_.l(m[q],Sxo),X=void 0;q>0&&(X=_.l(m[q-1],Sxo));X&&!!X.marker===!!Q.marker?b[b.length-1].paragraphs.push(Q):b.push({isList:!!Q.marker,paragraphs:[Q]})}return b},
keyBy:"INDEX"},function(b){return _.w(_.G,{cond:function(){return b().isList},
then:function(){return _.w("ul",{class:"video-summary-content-view-model-wiz__list"},_.w(_.lV,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(m){return _.w("li",{class:"video-summary-content-view-model-wiz__list-item"},_.w(_.WL,{text:function(){return m().text}}))}))},
else:function(){return _.w(_.lV,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(m){return _.w("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.w(_.WL,{text:function(){return m().text}}))})}})}),_.w(_.G,{cond:function(){return!!_.l(e().likeButtonViewModel,_.Tz)&&!!_.l(e().dislikeButtonViewModel,_.Jv)},
then:function(){return _.w("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.w("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.w(_.jt,{data:function(){return _.l(e().likeButtonViewModel,_.Tz)},
disableIconAnimation:!0})),_.w(_.yA,{data:function(){return _.l(e().dislikeButtonViewModel,_.Jv)}}))}}))},"Xa");
q_v.idomCompat=!0;_.mM(q_v,"video-summary-content-view-model",{props:{data:_.Eu,isSearch:_.Eu,className:_.Eu}});var rc=function(){var W=_.O.apply(this,arguments)||this;var e,t;W.isExpanded=(t=(e=W.data)==null?void 0:e.isExpanded)!=null?t:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(b){W.disableExpand||(b.stopPropagation(),_.dd(_.LB(b),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$13113_cardList&&!_.S("expandable_metadata_a11y_fix_ks")&&_.Uc(W,function(){_.L_(W.hostElement)})))};
W.useSquareThumbnail=!1;W.startX=0;return W};
_.Z(rc,_.O);_.r=rc.prototype;_.r.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.r.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"}}}}};
_.r.dataChanged=function(){if(this.data){var W,e;this.isExpanded=(e=(W=this.data)==null?void 0:W.isExpanded)!=null?e:!1;var t,b,m,q;if(W=this.isDarkTheme()?(t=this.data)==null?void 0:(b=t.colorData)==null?void 0:b.darkColorPalette:(m=this.data)==null?void 0:(q=m.colorData)==null?void 0:q.lightColorPalette){var Q,X;if((Q=this.data)==null?0:(X=Q.colorData)==null?0:X.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.T2(this.hostElement,W)}}};
_.r.isExpandedChanged=function(){this.isExpanded&&this.JSC$13113_cardList&&_.q2(this.JSC$13113_cardList,"iron-resize")};
_.r.computeIsExpanded=function(W){return!!W.isExpanded};
_.r.computeShowProminentLabel=function(W,e){var t;return!!(W==null?0:(t=W.header)==null?0:t.showLeadingCollapsedLabel)&&!e};
_.r.computeShowRightSideLabel=function(W,e){var t;return!(W==null?0:(t=W.header)==null?0:t.showLeadingCollapsedLabel)&&!e};
_.r.captureContentClick=function(W){if(!this.disableExpand)if(_.S("expandable_metadata_fix_killswitch")){var e=W.target;_.ubk(e,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(e==null?void 0:e.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dd(_.LB(W),this.hostElement,["items"])||_.NA(_.LB(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.r.timestampClick=function(W){W.stopPropagation();var e,t;(W=(e=this.data)==null?void 0:(t=e.header)==null?void 0:t.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.r.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.r.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.r.skipKeyInteraction=function(W){var e=W.target;if((e==null?void 0:e.id)==="scroll-container"||(e==null?void 0:e.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.LB(W);W=_.R(W);for(e=W.next();!e.done;e=W.next()){e=e.value;if(e===this.hostElement)break;if(e.hasAttribute&&e.hasAttribute("skip-key-interaction"))return!0}return!1};
_.r.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Ec.Object.defineProperties(rc.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.l((W=this.data)==null?void 0:W.expandedContent,DRU)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.l((W=this.data)==null?void 0:W.expandedContent,_.crb)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.useCustomColors)&&!((e=this.data)==null||!e.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!((W=this.data)==null?0:(e=W.header)==null?0:e.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!((W=this.data)==null?0:(e=W.header)==null?0:e.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!((W=this.data)==null?0:(e=W.header)==null?0:e.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
rc.prototype.onUp=rc.prototype.onUp;rc.prototype.onDown=rc.prototype.onDown;rc.prototype.isExpandedChanged=rc.prototype.isExpandedChanged;rc.prototype.dataChanged=rc.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],rc.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],rc.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rc.prototype,"isExpanded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rc.prototype,"disableExpand",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],rc.prototype,"isSearch",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rc.prototype,"isWatch",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Y("design:type",Object)],rc.prototype,"showProminentLabel",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Y("design:type",Object)],rc.prototype,"showRightSideLabel",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"hasVideoSummary",null);_.P([_.J({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"hasLockupViewModel",null);_.P([_.J({reflectToAttribute:!0}),_.T("data","isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"useCustomColors",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"showInfoButton",null);_.P([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"showTimestamp",null);_.P([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"showExpandedSubtitle",null);
_.P([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rc.prototype,"showThumbnail",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rc.prototype,"useVppShoppingDestinationStyle",null);_.P([_.J(),_.Y("design:type",Object)],rc.prototype,"toggleExpandableContent",void 0);_.P([_.vG("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],rc.prototype,"JSC$13113_cardList",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Y("design:type",Object)],rc.prototype,"useSquareThumbnail",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rc.prototype,"dataChanged",null);_.P([_.ul("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rc.prototype,"isExpandedChanged",null);
_.P([_.wz("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rc.prototype,"onDown",null);_.P([_.wz("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rc.prototype,"onUp",null);_.P([_.h({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],rc);
_.H(rc,"ytd-expandable-metadata-renderer",function(){if(Xjh!==void 0)return Xjh;var W=document.createElement("template");_.p(W,'\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" 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Xjh=W},{mode:1});var RMZ,Q6e=function(){if(RMZ!==void 0)return RMZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RMZ=W};_.mM(_.jU,"yt-avatar-stack-view-model",{props:{className:_.Eu,data:_.Eu,overrides:_.Eu,isOverlay:_.Eu,useMediumText:_.Eu,decorations:_.Eu,hideAvatar:_.Eu}});_.xD("itemSectionRenderer","videoRenderer","ytd-video-renderer");var qi=function(){var W=_.O.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.Z(qi,_.O);_.r=qi.prototype;_.r.computeUseSearchUi=function(){var W,e;return this.isSearch||((W=this.data)==null?void 0:(e=W.style)==null?void 0:e.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.r.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.r.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.S("polymer_video_renderer_defer_menu")&&!byU?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"}}}};
_.r.attached=function(){_.RH(this.hostElement,"blue-links",_.S("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.QQ(_.rz(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;W&&((e=_.l(W.commandMetadata,_.Cf))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13118_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.JSC$13118_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13118_inlinePreviewHoverListener)==null||R4(W)};
_.r.onTextWrapperClick=function(W){var e,t,b=this.hideTranslation?(e=this.data)==null?void 0:e.untranslatedNavigationEndpoint:(t=this.data)==null?void 0:t.navigationEndpoint;e=_.dd(_.LB(W),this.hostElement,["expandable-metadata"]);!b||e&&!_.S("expandable_metadata_fix_killswitch")||_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.q2(this.hostElement,"yt-navigate",{endpoint:b})};
_.r.computeThumbnailWidth=function(W,e,t,b,m){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:b?m==="MASSIVE"?600:m==="BIG"?500:m==="MEDIUM"?450:420:t?360:e?128:W?210:246};
_.r.computeUseBiggerThumbs=function(W){return W&&_.S("enable_desktop_search_bigger_thumbs")};
_.r.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.r.computeVideoStyle=function(){if(_.S("enable_video_style")){var W,e;return(W=this.data)==null?void 0:(e=W.style)==null?void 0:e.value}};
_.r.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.r.handleHideItemSectionVideosByIdCommand=function(W){var e;W=(e=_.l(W,h1h))==null?void 0:e.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.r.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.r.computeTitleText=function(W,e,t){return W?t:e};
_.r.computeDescriptionSnippet=function(W,e,t){return W?t:e};
_.r.computeSnippetText=function(W,e,t){return W?t:e};
_.r.computeNavigationEndpoint=function(W,e){return W?e==null?void 0:e.untranslatedNavigationEndpoint:e==null?void 0:e.navigationEndpoint};
_.r.hideInlineTitleIcon=function(W,e){return W||!e};
_.Ec.Object.defineProperties(qi.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!(this==null?0:(W=this.data)==null?0:(e=W.channelThumbnailSupportedRenderers)==null?0:(t=e.channelThumbnailWithLinkRenderer)==null?0:t.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.l((W=this.data)==null?void 0:W.avatar,viB)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13118_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Ec.Object.defineProperties(qi,{template:{configurable:!0,enumerable:!0,get:function(){return Q6e()}}});
qi.prototype.dataChanged=qi.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],qi.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],qi.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.Hl),_.Y("design:type",Object)],qi.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],qi.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],qi.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qi.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qi.prototype,"isBackstageVideo",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qi.prototype,"isPostCompactVideo",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qi.prototype,"isHistory",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qi.prototype,"isRichGridVideoPost",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qi.prototype,"isHidden",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],qi.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Y("design:type",Boolean)],qi.prototype,"useSearchUi",void 0);_.P([_.J({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Y("design:type",Boolean)],qi.prototype,"useThreeLineTitle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Y("design:type",Boolean)],qi.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Y("design:type",Object)],qi.prototype,"videoStyle",void 0);_.P([_.J({computed:"computeDisableExpand(videoStyle)"}),_.Y("design:type",Object)],qi.prototype,"disableExpand",void 0);
_.P([_.J({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Y("design:type",Object)],qi.prototype,"shouldShowChannelInfo",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],qi.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Y("design:type",String)],qi.prototype,"inlineTitleIcon",void 0);_.P([_.J({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Y("design:type",Object)],qi.prototype,"computedNavigationEndpoint",void 0);_.P([_.J({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,e){return _.I1(W.entities,"searchVideoResultEntity",e)}}),
_.Y("design:type",Object)],qi.prototype,"searchVideoResultEntity",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],qi.prototype,"thumbnail",void 0);_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],qi.prototype,"JSC$13118_dismissibleMedia",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qi.prototype,"dataChanged",null);
_.P([_.T("searchVideoResultEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qi.prototype,"hideTranslation",null);_.P([_.T("searchVideoResultEntity"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],qi.prototype,"hiddenBadgeGroups",null);_.P([_.T("data","useAvatar"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qi.prototype,"shouldShowChannelThumbnail",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qi.prototype,"useAvatar",null);
_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qi.prototype,"isHovered",null);_.P([_.h({is:"ytd-video-renderer",disableElementRegistration:!0})],qi);_.H(qi,"ytd-video-renderer",function(){return Q6e()},{mode:_.Qe("kevlar_poly_si_batch_j047")?1:2});var aC=function(){var W=_.O.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.S("reduce_side_paddings_in_shelf");W.JSC$13125_spinnerEl=null;return W};
_.Z(aC,_.O);_.r=aC.prototype;
_.r.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"}}}};
_.r.contentTextChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var e=0,t=this.data.actions&&this.data.actions.length;e<t;e++)this.openEditDialog(_.l(this.data.actions[e],FcZ));if((e=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(e=this.get("buttonRenderer.hint.hintRenderer.hintId",e))&&e.startsWith("share-post-hint")){var b=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(b){_.e1.getInstance();var m=th(_.zq(_.Gv("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Tm.addLowPriorityJob(function(){_.IT(W.hostElement,m,b)})}}}};
_.r.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.r.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13125_spinnerEl||(this.JSC$13125_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.rz(this.hostElement).appendChild(this.JSC$13125_spinnerEl));this.JSC$13125_spinnerEl&&(this.JSC$13125_spinnerEl.active=this.isLoading)};
_.r.onYtNavigate=function(W){var e=this.get("updateCommentDialogEndpoint",W.detail.endpoint);e&&(this.openEditDialog(e),W.stopPropagation())};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.onYtCommentPollRevert=function(W,e){e&&this.updatePoll(e.selectedChoiceIndex)};
_.r.onYtServiceRequestSent=function(W,e){var t;e.endpoint&&(_.l(e.endpoint,jZ8)||_.l(e.endpoint,yB8)&&((t=_.l(e.endpoint,yB8))==null||!t.clientActions))&&(this.isLoading=!0);if(e.actions)for(W=0;W<e.actions.length;W++)t=e.actions[W],_.l(t,y9)&&(t=this.get("updateBackstagePollAction.selectedChoiceIndex",t),t==void 0&&(t=-1),this.updatePoll(t))};
_.r.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.r.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.r.computeIsPostHidden=function(W,e){return!!W||e};
_.r.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.r.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.r.computePostAttachment=function(W){if(W.backstageAttachment){if(_.l(W.backstageAttachment,QZb))return"poll";if(_.l(W.backstageAttachment,Y5U))return"quiz";if(_.l(W.backstageAttachment,_.hr))return"video";if(_.l(W.backstageAttachment,zIo))return"uploaded-videos";if(_.l(W.backstageAttachment,MjU))return W.contentText?"image":"image-only";if(_.l(W.backstageAttachment,KmD))return"playlist"}return"none"};
_.r.computePostTabIndex=function(W){return W?0:-1};
_.r.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.r.computeHasText=function(W){return!(W==null||!W.contentText)};
_.r.onTap=function(W){var e,t;if(((e=this.data)==null?0:e.navigationEndpoint)&&((t=this.data)==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Ec.Object.defineProperties(aC.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.zq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,QZb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,zIo))}}});
aC.prototype.onYtServiceRequestCompleted=aC.prototype.onYtServiceRequestCompleted;aC.prototype.onYtServiceRequestSent=aC.prototype.onYtServiceRequestSent;aC.prototype.onYtCommentPollRevert=aC.prototype.onYtCommentPollRevert;aC.prototype.onYtCommentboxDismiss=aC.prototype.onYtCommentboxDismiss;aC.prototype.onYtNavigate=aC.prototype.onYtNavigate;aC.prototype.isLoadingChanged=aC.prototype.isLoadingChanged;aC.prototype.dataChanged=aC.prototype.dataChanged;aC.prototype.contentTextChanged=aC.prototype.contentTextChanged;
_.P([_.y(_.Tx),_.Y("design:type",Object)],aC.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],aC.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aC.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],aC.prototype,"editDialog",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aC.prototype,"roundedContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],aC.prototype,"isLoading",void 0);_.P([_.J({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Y("design:type",String)],aC.prototype,"surface",void 0);
_.P([_.J({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aC.prototype,"usesCompactLockup",void 0);_.P([_.J({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aC.prototype,"showWithoutToolbar",void 0);_.P([_.J({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],aC.prototype,"attachment",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aC.prototype,"isRichGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aC.prototype,"isRichGridRepost",void 0);_.P([_.J({reflectToAttribute:!0,value:_.S("use_better_post_dismissals")}),_.Y("design:type",Boolean)],aC.prototype,"useBetterPostDismissals",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aC.prototype,"reduceSidePaddings",void 0);
_.P([_.J({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aC.prototype,"hasText",void 0);_.P([_.vG("#expander"),_.Y("design:type",Object)],aC.prototype,"expander",void 0);_.P([_.vG("#action-buttons"),_.Y("design:type",Object)],aC.prototype,"actionButtons",void 0);_.P([_.vG("#edit-dialog"),_.Y("design:type",HTMLElement)],aC.prototype,"editDialogEl",void 0);
_.P([_.ul("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aC.prototype,"contentTextChanged",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aC.prototype,"dataChanged",null);_.P([_.ul("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aC.prototype,"isLoadingChanged",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aC.prototype,"onYtNavigate",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aC.prototype,"onYtCommentboxDismiss",null);_.P([_.wz("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],aC.prototype,"onYtCommentPollRevert",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],aC.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],aC.prototype,"onYtServiceRequestCompleted",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aC.prototype,"voteCount",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aC.prototype,"commentCount",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aC.prototype,"hasPoll",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aC.prototype,"hasUploadedVideo",null);_.P([_.h({is:"ytd-post-renderer",disableElementRegistration:!0})],aC);
_.H(aC,"ytd-post-renderer",function(){if(gdr!==void 0)return gdr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return gdr=W},{mode:1});var F0N;var Xpb;var wc=function(){return _.O.apply(this,arguments)||this};
_.Z(wc,_.O);wc.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],wc.prototype,"ytdHorizontalListBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],wc.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wc.prototype,"data",void 0);
_.P([_.J({value:"$.items.children"}),_.Y("design:type",String)],wc.prototype,"itemsPath",void 0);_.P([_.J({value:1}),_.Y("design:type",Number)],wc.prototype,"initialCount",void 0);_.P([_.J(),_.Y("design:type",String)],wc.prototype,"surface",void 0);_.P([_.h({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],wc);
_.H(wc,"ytd-post-multi-image-renderer",function(){if(Xpb!==void 0)return Xpb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Xpb=W},{mode:_.Qe("kevlar_poly_si_batch_j079")?1:2});var Ikv={"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"}}},uO=function(){var W=_.O.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$13141_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.Z(uO,_.O);_.r=uO.prototype;_.r.configureRendererStamper=function(){return Ikv};
_.r.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.r.getPublishTimeStampString=function(W,e){e=new Date((Number(e)-60*((new Date).getTimezoneOffset()-(new Date(Number(e)*1E3)).getTimezoneOffset()))*1E3);e=(new iX(10)).format(e);if(W&&W.runs&&W.runs.length)for(var t=0;t<W.runs.length;t++)W.runs[t].text&&(W.runs[t].text=W.runs[t].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",e));return W};
_.r.created=function(){this.JSC$13141_spinnerEl=null};
_.r.contentTextChanged=function(){this.expander.reset()};
_.r.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.R(this.data.actions);for(var e=W.next();!e.done;e=W.next())this.openEditDialog(_.l(e.value,FcZ))}};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){_.rz(this.hostElement).querySelector("#action-buttons").reply()};
_.r.updatePoll=function(W,e){e&&this.set("data.pollMetadataVoteCountText",e);this.hasInlineCommentSection&&(W=W>=0,e=_.rz(this.hostElement).querySelector("#action-buttons"),W?e.reply():e.hideReplyDialog())};
_.r.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13141_spinnerEl||(this.JSC$13141_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.rz(this.hostElement).appendChild(this.JSC$13141_spinnerEl));this.JSC$13141_spinnerEl&&(this.JSC$13141_spinnerEl.active=this.isLoading)};
_.r.onYtNavigate=function(W){var e=this.get("updateCommentDialogEndpoint",W.detail.endpoint);e&&(this.openEditDialog(e),W.stopPropagation())};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.onYtCommentPollRevert=function(W,e){e&&this.updatePoll(e.selectedChoiceIndex,e.totalVotes)};
_.r.onYtServiceRequestSent=function(W,e){W.stopPropagation();W=_.l(e.endpoint,yB8);if(_.l(e.endpoint,jZ8)||W&&!W.clientActions)this.isLoading=!0;if(e.actions)for(W=0;W<e.actions.length;W++){var t=e.actions[W],b=_.l(t,y9);b&&(t=this.get("updateBackstagePollAction.selectedChoiceIndex",t),t===void 0&&(t=-1),this.updatePoll(t,b.totalVotes))}};
_.r.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.r.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.r.computeIsBodyHidden=function(W,e){return!!W||e};
_.Ec.Object.defineProperties(uO.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,e;if((W=this.data)==null?0:(e=W.pollMetadataIcon)==null?0:e.iconType)return _.ao(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.zq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,QZb))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,Y5U))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,zIo))}}});
uO.prototype.onYtServiceRequestCompleted=uO.prototype.onYtServiceRequestCompleted;uO.prototype.onYtServiceRequestSent=uO.prototype.onYtServiceRequestSent;uO.prototype.onYtCommentPollRevert=uO.prototype.onYtCommentPollRevert;uO.prototype.onYtCommentboxDismiss=uO.prototype.onYtCommentboxDismiss;uO.prototype.onYtNavigate=uO.prototype.onYtNavigate;uO.prototype.isLoadingChanged=uO.prototype.isLoadingChanged;uO.prototype.dataChanged=uO.prototype.dataChanged;uO.prototype.contentTextChanged=uO.prototype.contentTextChanged;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],uO.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uO.prototype,"rendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uO.prototype,"rendererstamperBehavior",void 0);_.P([_.vG("#contentTextExpander"),_.Y("design:type",Object)],uO.prototype,"expander",void 0);
_.P([_.vG("#edit-dialog"),_.Y("design:type",Element)],uO.prototype,"editDialogElement",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"hasInlineCommentSection",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"editDialog",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"isLoading",void 0);
_.P([_.J({computed:"computeIsPollHeaderEnabled(data)"}),_.Y("design:type",Boolean)],uO.prototype,"isPollHeaderEnabled",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"shouldHideAuthor",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"shouldShowVideoTime",void 0);_.P([_.J(),_.Y("design:type",Object)],uO.prototype,"isInEngagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uO.prototype,"hideBorder",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uO.prototype,"usesFullLockup",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uO.prototype,"shouldShowMenuInCompactView",void 0);_.P([_.T("isInEngagementPanel"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uO.prototype,"postTextMaxLines",null);_.P([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uO.prototype,"pollIcon",null);
_.P([_.ul("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uO.prototype,"contentTextChanged",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uO.prototype,"dataChanged",null);_.P([_.ul("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uO.prototype,"isLoadingChanged",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uO.prototype,"onYtNavigate",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uO.prototype,"onYtCommentboxDismiss",null);_.P([_.wz("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],uO.prototype,"onYtCommentPollRevert",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],uO.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uO.prototype,"onYtServiceRequestCompleted",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uO.prototype,"voteCount",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uO.prototype,"commentCount",null);_.P([_.T("data.backstageAttachment"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uO.prototype,"hasPoll",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uO.prototype,"hasQuiz",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uO.prototype,"hasUploadedVideo",null);
_.P([_.h({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],uO);
_.H(uO,"ytd-backstage-post-renderer",function(){if(F0N!==void 0)return F0N;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return F0N=W},{mode:1});var akB;var cB=function(){var W=_.O.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.Z(cB,_.O);_.r=cB.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.r.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.r.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.r.computeShowFullContentText=function(W){return!W};
_.r.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null};
_.r.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.r.onTap=function(W){if(this.data){var e=null;this.usesCompactLockup&&!_.NA(_.LB(W)||[],this.hostElement,["YT-IMG-SHADOW"])?e=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(e=this.get("navigationEndpoint",W.target.data));e&&_.q2(this.hostElement,"yt-navigate",{endpoint:e})}};
cB.prototype.onYtCommentboxDismiss=cB.prototype.onYtCommentboxDismiss;cB.prototype.onYtNavigate=cB.prototype.onYtNavigate;cB.prototype.dataChanged=cB.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cB.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],cB.prototype,"editDialog",void 0);_.P([_.J({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cB.prototype,"usesCompactLockup",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],cB.prototype,"showExpandButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],cB.prototype,"isRichGrid",void 0);
_.P([_.J({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],cB.prototype,"showFullContentText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],cB.prototype,"usesFullLockup",void 0);_.P([_.vG("#more"),_.Y("design:type",Object)],cB.prototype,"moreButtonEl",void 0);_.P([_.vG("#repost-content-text"),_.Y("design:type",HTMLElement)],cB.prototype,"repostContentTextEl",void 0);
_.P([_.vG("#repost-edit-dialog"),_.Y("design:type",HTMLElement)],cB.prototype,"repostEditDialogEl",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cB.prototype,"dataChanged",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cB.prototype,"onYtNavigate",null);
_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cB.prototype,"onYtCommentboxDismiss",null);_.P([_.h({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],cB);
_.H(cB,"ytd-shared-post-renderer",function(){if(akB!==void 0)return akB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return akB=W},{mode:1});var wpD;var uFv;var vB=function(){return _.O.apply(this,arguments)||this};
_.Z(vB,_.O);vB.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.Yn,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
vB.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
vB.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vB.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],vB);
_.H(vB,"ytd-reload-page-button-renderer",function(){if(uFv!==void 0)return uFv;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return uFv=W},{mode:1});var c4P={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},Gp=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(Gp,_.O);_.r=Gp.prototype;_.r.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.r.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.r.computeHasBodyText=function(W){return!!W.bodyText};
_.r.computeButtons=function(W){var e=[];W.ctaButton&&e.push(W.ctaButton);W.secondaryButton&&e.push(W.secondaryButton);return e};
_.r.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.r.getIconName=function(W,e){e=e===void 0?!1:e;if(W===void 0)return"";W=this.get("icon.iconType",W);var t;_.S("enable_hlp_client_icon_pick")?t=this.getThemedIcon(W,e):t=W;(e=c4P[t])||(e="yt-icons");return[e,t].join(":")};
_.r.getThemedIcon=function(W,e){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?e?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?e?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.r.isThumbnail=function(W){return!!W.thumbnail};
_.r.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Gp.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gp.prototype,"data",void 0);
_.P([_.J({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Gp.prototype,"rendererStyle",void 0);_.P([_.J({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Y("design:type",String)],Gp.prototype,"iconName",void 0);_.P([_.J({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gp.prototype,"thumbnail",void 0);_.P([_.J({computed:"computeButtons(data)"}),_.Y("design:type",Array)],Gp.prototype,"buttons",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gp.prototype,"isDarkTheme",void 0);_.P([_.J({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gp.prototype,"hasBodyText",void 0);_.P([_.h({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Gp);
_.H(Gp,"ytd-background-promo-renderer",function(){if(wpD!==void 0)return wpD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wpD=W},{mode:1});var vjS;var Dq=function(){var W=_.O.apply(this,arguments)||this;W.collections=_.S("web_modern_collections_v2");return W};
_.Z(Dq,_.O);_.Ec.Object.defineProperties(Dq.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(e=W.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(b=t.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(q=m.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:this.collections}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dq.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dq.prototype,"collections",void 0);_.P([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dq.prototype,"collectionStack",null);_.P([_.h({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Dq);
_.H(Dq,"ytd-compact-station-renderer",function(){if(vjS!==void 0)return vjS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vjS=W},{mode:1});var G5b;var S2=function(){var W=_.O.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.Z(S2,_.O);S2.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]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],S2.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],S2.prototype,"isRichGrid",void 0);_.P([_.h({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],S2);
_.H(S2,"ytd-grid-channel-renderer",function(){if(G5b!==void 0)return G5b;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return G5b=W},{mode:1});var DFh;var BB=function(){return _.O.apply(this,arguments)||this};
_.Z(BB,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],BB.prototype,"data",void 0);_.P([_.h({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],BB);
_.H(BB,"ytd-grid-movie-playlist-renderer",function(){if(DFh!==void 0)return DFh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DFh=W},{mode:1});var S_U;var oC=function(){var W=_.O.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.S("web_modern_buttons");W.useModernCollectionsV2=_.S("web_modern_collections_v2");return W};
_.Z(oC,_.O);oC.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
oC.prototype.configureRendererStamper=function(){return{"data.menu":aV}};
oC.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
oC.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.S("woffle_playlist_renderer_killswitch")){var W,e=FwG(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=e.viewPlaylistText;var t=e.badges;e=e.thumbnailOverlays;this.isDownloads=!!W||!!t;this.set("data.viewPlaylistText",W);t&&t.length>0&&this.set("data.badges",t);e&&e.length>0&&this.set("data.thumbnailOverlays",
e)}};
_.Ec.Object.defineProperties(oC.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 W;return!((W=this.data)==null?0:W.menu)}}});
oC.prototype.transferStateChanged=oC.prototype.transferStateChanged;oC.prototype.dataChanged=oC.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],oC.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],oC.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J({selector:_.$d9,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],oC.prototype,"downloadProgress",void 0);_.P([_.J({selector:_.Ob,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],oC.prototype,"transferState",void 0);_.P([_.J({selector:ZfL,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],oC.prototype,"entityInfo",void 0);_.P([_.J({selector:Jm}),_.Y("design:type",Boolean)],oC.prototype,"isOnline",void 0);
_.P([_.J(),_.Y("design:type",Object)],oC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],oC.prototype,"downloadRenderData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oC.prototype,"modernButtons",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],oC.prototype,"isDownloads",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oC.prototype,"useModernCollectionsV2",void 0);
_.P([_.T("transferState"),_.J({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],oC.prototype,"downloadState",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oC.prototype,"menuHidden",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oC.prototype,"dataChanged",null);
_.P([_.BG("transferState","downloadProgress","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oC.prototype,"transferStateChanged",null);_.P([_.h({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],oC);
_.H(oC,"ytd-grid-playlist-renderer",function(){if(S_U!==void 0)return S_U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return S_U=W},{mode:1});var Bhb;var lO=function(){var W=_.O.apply(this,arguments)||this;W.collections=_.S("web_modern_collections_v2");return W};
_.Z(lO,_.O);lO.prototype.configureRendererStamper=function(){return{"data.menu":aV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Ec.Object.defineProperties(lO.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(e=W.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(b=t.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(q=m.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:this.collections}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],lO.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],lO.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lO.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"collections",void 0);_.P([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lO.prototype,"collectionStack",null);_.P([_.h({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],lO);
_.H(lO,"ytd-grid-radio-renderer",function(){if(Bhb!==void 0)return Bhb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Bhb=W},{mode:1});var ojS;var Zq=function(){var W=_.O.apply(this,arguments)||this;W.useModernCollectionsV2=_.S("web_modern_collections_v2");return W};
_.Z(Zq,_.O);Zq.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Zq.prototype.computeNavigationEndpoint=function(W){return VLc(W==null?void 0:W.navigationEndpoint)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],Zq.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zq.prototype,"data",void 0);_.P([_.J({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],Zq.prototype,"computedNavigationEndpoint",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zq.prototype,"useModernCollectionsV2",void 0);_.P([_.h({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Zq);
_.H(Zq,"ytd-grid-show-renderer",function(){if(ojS!==void 0)return ojS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ojS=W},{mode:1});var lkv;_.$e=function(W){this.playerClient=W};
_.ZWe=function(W,e,t){t=t===void 0?{}:t;return W.playerClient.setOption("ad",e,t)};
_.$e.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.$e.prototype.executeCommand=function(W,e){this.getOptions().includes("executeCommand")?_.ZWe(this,"executeCommand",{command:W,layoutId:e}):_.b0("Calling executeCommand when adModule is not loaded")};var ke=function(){return _.O.apply(this,arguments)||this};
_.Z(ke,_.O);ke.prototype.getLayoutId=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
ke.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.tv(),e=this.getLayoutId(),t=this.data.clickthroughEndpoint;W&&e&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(b){(new _.$e(b)).executeCommand(t,e)}):_.q2(this.hostElement,"yt-navigate",{endpoint:t})}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ke.prototype,"data",void 0);_.P([_.h({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ke);
_.H(ke,"ytd-shopping-companion-item-renderer",function(){if(lkv!==void 0)return lkv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lkv=W},{mode:1});var $Fv;var py=function(){var W=_.O.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.Z(py,_.O);_.Ec.Object.defineProperties(py.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?void 0:W.price)||((e=this.data)==null?void 0:(t=e.dealsData)==null?void 0:t.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,e;if((W=this.data)!=null&&W.dealsData&&((e=this.data)==null||!e.priceReplacementText)){W=this.data.dealsData;var t,b,m;return((t=W.salesData)==null?void 0:t.originalPrice)||((b=W.priceDropData)==null?void 0:b.referencePrice)||((m=W.promotionData)==null?void 0:m.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,e;return(W=this.data)==null?void 0:(e=W.dealsData)==null?void 0:e.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],py.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],py.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],py.prototype,"isExpandableContent",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"showCta",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"ctaText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"hasPriceTopPosition",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"hasPriceBottomPosition",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"useNewStyle",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"showPriceReplacementText",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"priceValue",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"showDeal",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"showAffiliateDisclaimer",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"useSaleStyle",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"useFromBrandCtaStyle",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"useFromVendorCtaStyle",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],py.prototype,"useShoppingCollectionCtaStyle",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],py);
_.H(py,"ytd-vertical-product-card-renderer",function(){if($Fv!==void 0)return $Fv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $Fv=W},{mode:1});var k5U;var yU=function(){return _.O.apply(this,arguments)||this};
_.Z(yU,_.O);yU.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],yU.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yU.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],yU);
_.H(yU,"ytd-grid-movie-renderer",function(){if(k5U!==void 0)return k5U;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return k5U=W},{mode:1});var ppe;var j2=function(){var W=_.O.apply(this,arguments)||this;W.rounded=!0;W.itemStyle="small-item";return W};
_.Z(j2,_.O);j2.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,e,t,b,m=(e=_.l((W=this.data)==null?void 0:W.buttonCommand,_.Zh))==null?void 0:(t=e.item)==null?void 0:(b=t.notificationTextRenderer)==null?void 0:b.successResponseText;m&&_.q7S(this.hostElement,m)}};
_.Ec.Object.defineProperties(j2.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((e=this.data)==null?void 0:e.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],j2.prototype,"rounded",void 0);_.P([_.J(),_.Y("design:type",Object)],j2.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],j2.prototype,"itemStyle",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"hasPrice",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"hasPriceReplacementText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"hasAdditionalFeesText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"hasAffiliateDisclaimer",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"isProductPlaceholder",null);
_.P([_.J(),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"hideOpenInNewIcon",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j2.prototype,"ariaLabel",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],j2);
_.H(j2,"ytd-merch-shelf-item-renderer",function(){if(ppe!==void 0)return ppe;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ppe=W},{mode:1});var y4v=_.NN(function(W){var e=_.zT("button-card-view-model");_.UQ(e,function(){return W.data().rendererContext});
return _.w("button-card-view-model",{el:e,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.w(_.jN,{model:{}}),_.w("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.w("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.w(_.G,{cond:function(){return W.data().image},
then:function(t){return _.w(_.A_,{data:t,alt:function(){var b;return(b=W.data().title)!=null?b:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.w("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"Ya");_.S("web_button_view_model_wcw_registration_killswitch")||_.mM(y4v,"button-card-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){W=_.Ez(W,{className:void 0});var e=W.data;W=W.className;var t=_.SC(function(){return e().onTapCommand},void 0,"NprDr");
return _.w("ytd-shopping-item-card",{class:_.ve("ytdShoppingItemCardHost",W)},_.w(_.XN,{command:t,className:"ytdShoppingItemCardHostLink"},_.w("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.w(_.nU,{data:function(){return e().thumbnailViewModel}},{thumbnailViewModel:function(b){return _.w(_.Lz,{data:b.data,
aspectRatio:3})}})),_.w("div",null,_.w("p",{class:"ytdShoppingItemCardHostItemTitle"},_.w(_.WL,{text:function(){return e().itemTitle}})),_.w("p",{class:"ytdShoppingItemCardHostPrice"},_.w(_.WL,{text:function(){return e().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.Eu,
className:_.Eu}});var j6h={isAdsVideo:!0},C2D={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},njD={showPlayerControls:!1,videoPreviewDurationMs:15E3},fkS={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.S("web_shorts_imp_fullwidth_killswitch")};var rk=null,RtD={};var X0Q="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(" "),Cy={},IFL=(Cy.FEwhat_to_watch="home",Cy.FEhashtag="hashtag",Cy.FEtrending="trending",Cy.FEhistory="history",Cy.SPunlimited="premium",Cy.FEmemberships_and_purchases="paid_memberships",Cy.SPredeem_code="redeem",Cy.SPverify_location="locate",Cy.SPminor_moment="minor_moment",
Cy.FEmini_app_container="mini_app",Cy.FEnews_destination="news",Cy.SPopen_in_app="open_in_app",Cy.FEexplore="explore",Cy.FEsubscriptions="subscriptions",Cy.FEsfv_audio_pivot="sfv_audio_pivot",Cy.FEplaylist_aggregation="playlist_aggregation",Cy);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");_.aT("init");var gjD=function(){},OWr=_.NN(function(W){var e=W.data;
var t=W.inlineMetadata;var b=W.aspectRatio;var m=W.scrimStyle;var q=W.className;var Q=W.useDefaultStyle;var X=new gjD,I=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",u=_.SC(function(){return(Q==null?0:Q())?I==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),c=_.SC(function(){return _.TQ(t)||u()||!1},void 0,"GaU7Ef"),v=function(){return(m==null?void 0:m())!==void 0?m==null?void 0:m():1},D=_.SC(function(){return e().belowThumbnailMetadata||
!c()},void 0,"vsyhaf");
W=_.zT("ytm-shorts-lockup-view-model",function(L){X&&(X.hostElement=L,f())});
_.ev(W,{visibilityCallback:function(L){var E=e().onFirstVisible;L&&E&&_.K4(E)},
showOption:{calledOnce:!0,state:"visible"}});q=_.ve("shortsLockupViewModelHost",q);var B=_.zT("div"),k={};k=_.ve(function(){return u(),"shortsLockupViewModelHostThumbnailContainer"},(k.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.TQ(b)===1},k.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.TQ(b)===2},k.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!u()},k.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.S("web_shorts_2_by_3_lockups_study")&&!_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")},k));
var n,f=function(){if(X){var L;(L=n)==null||R4(L);var E;X.hostElement&&((E=X.data)==null?0:E.inlinePlayerData)&&(n=EQ({mediaRenderer:X,lockupElement:X.hostElement,thumbnailElement:B.value,videoPreviewOpts:fkS}))}};
_.nh(function(){X&&(X.data=e(),f())},"zGfw4b");
var M=_.SC(function(){return e().thumbnail},void 0,"H4vZOb"),K=_.SC(function(){return e().badge},void 0,"I1QWQc"),U=_.SC(function(){return e().onTap},void 0,"eB6nuc"),V={};
return _.w("ytm-shorts-lockup-view-model",{el:W,class:q},_.w(_.qD,null,_.w(_.XN,{command:U,className:_.ve("shortsLockupViewModelHostEndpoint",(V.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!D()},V),"reel-item-endpoint",""),
ariaHidden:function(){return!c()},
tabIndex:function(){return c()?0:-1}},_.w("div",{el:B,
class:k},_.w(_.G,{cond:M,then:function(){return _.w(_.A_,{data:function(){var L;return(L=M==null?void 0:M())!=null?L:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.w(_.G,{cond:c,
then:function(){return _.w(Thk,{data:e,scrimStyle:v,useDefaultStyle:Q})}}),_.w(_.nU,{data:K},{badgeViewModel:function(L){return _.w(_.dr,{data:L.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.w(_.G,{cond:function(){return c()&&e().menuOnTap},
then:function(){return _.w(J4B,{data:e,inlineMetadata:!0})}}),_.w(_.G,{cond:D,
then:function(){return _.w(xFh,{data:e,useDefaultStyle:Q})}})))},"$a"),Thk=_.NN(function(W){var e=W.data;
var t=W.scrimStyle;var b=W.useDefaultStyle;var m=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=b&&_.S("web_hide_primary_text_for_pivot_panel"),Q=_.SC(function(){return(b==null?0:b())?m==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
W={};W=_.ve("shortsLockupViewModelHostInlineMetadata",(W.shortsLockupViewModelHostMetadataRounded=function(){return!Q()},W.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(t==null?void 0:t())===3&&!_.S("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(t==null?void 0:t())===3&&_.S("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(t==null?void 0:t())===2||(t==null?void 0:
t())===4},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
var X={};return _.w("div",{class:W},_.w("h3",{class:_.ve("shortsLockupViewModelHostMetadataTitle",(X.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(t==null?void 0:t())===4},X)),
"aria-label":function(){return e().accessibilityText}},_.w(_.G,{cond:function(){var I;
return!((I=e().overlayMetadata)==null||!I.primaryText)&&!q},
then:function(){return _.w(_.WL,{text:function(){var I;return(I=e().overlayMetadata)==null?void 0:I.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.w(_.G,{cond:function(){var I;
return(I=e().overlayMetadata)==null?void 0:I.secondaryText},
then:function(){return _.w(M9Z,{data:e,scrimStyle:t,className:void 0})}}))},"ab"),xFh=_.NN(function(W){var e=W.data;
var t=W.useDefaultStyle;var b=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",m=_.SC(function(){return(t==null?0:t())?b==="SHORTS_LOCKUP_STYLE_SLIM":e().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
W=_.ve(function(){return m()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var q,Q=_.Be(function(){var v;(v=q)==null||v.click();return!1}),X=_.SC(function(){return e().belowThumbnailMetadata||e().overlayMetadata},void 0,"leqnzc"),I=function(){var v;
return(v=X())==null?void 0:v.avatar},u={},c={};
return _.w("div",{class:_.ve(W,(u.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!I()},u)),
"on:click":Q},_.w(_.nU,{data:I},{avatarViewModel:function(v){return _.w("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.w(_.pz,{data:v.data}))}}),_.w("div",null,_.w("h3",{class:_.ve("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(c.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var v,D;
return!((v=X())==null?0:(D=v.primaryText)==null?0:D.content)},c)),
"aria-label":function(){return e().accessibilityText}},_.w(_.XN,{ref:function(v){return void(q=v)},
command:function(){return e().onTap},
className:_.ve("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var v,D;return(v=X())==null?void 0:(D=v.primaryText)==null?void 0:D.content}},_.w(_.G,{cond:function(){var v;
return(v=X())==null?void 0:v.primaryText},
then:function(v){return _.w(_.WL,{text:v,noEndpoints:!0,noStyleRuns:!0})}}))),_.w(_.G,{cond:function(){var v;
return(v=X())==null?void 0:v.secondaryText},
then:function(v){return _.w("div",{class:_.ve("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.w(_.WL,{text:v,noStyleRuns:!0}))}})),_.w(_.G,{cond:function(){return e().menuOnTap},
then:function(){return _.w(J4B,{data:e,inlineMetadata:!1})}}))},"bb"),M9Z=_.NN(function(W){var e=W.data;
var t=W.scrimStyle;W=W.className;var b={};return _.w("div",{class:_.ve((b.shortsLockupViewModelHostMetadataSubhead=function(){return(t==null?void 0:t())!==4},b.shortsLockupViewModelHostMetadataSubheadNew=_.S("enable_shorts_lockup_new_scrim"),b.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(t==null?void 0:t())===4},b),W),
"aria-hidden":"true"},_.w(_.WL,{text:function(){var m;return(m=e().overlayMetadata)==null?void 0:m.secondaryText},
noStyleRuns:!0}))},"cb"),J4B=_.NN(function(W){var e=W.data;
var t=W.inlineMetadata;W={};W=_.ve((W.shortsLockupViewModelHostInlineMetadataMenu=function(){return t()},W.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!t()},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
return _.w("div",{class:W},_.w(t3,{data:function(){return{style:t()?"overlay":"mono",accessibilityLabel:e().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(b){b.preventDefault();b.stopPropagation();var m=_.h_({elementsCommand:e().menuOnTap,forceNewState:!0});if(m==null?0:m.onclick)m.onclick(b)}}},
iconName:"MORE_VERT"}))},"db");var s6v=_.NN(function(W){var e=W.data;var t=W.inlineMetadata;var b=W.aspectRatio;var m=W.scrimStyle;var q=W.className;var Q=W.useDefaultStyle;W=_.SC(function(){var X=e().entityId;return X?X.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.w("ytm-shorts-lockup-view-model-v2",{class:_.ve("shortsLockupViewModelHost",q)},_.w(_.ARN,{contentId:W,aspectRatio:function(){return(b==null?void 0:b())===1?1:(b==null?void 0:b())===2?2:4}},function(){return _.w(OWr,{data:e,
inlineMetadata:t,aspectRatio:b,scrimStyle:m,className:q,useDefaultStyle:Q})}))},"eb");_.mM(s6v,"ytm-shorts-lockup-view-model-v2",{props:{data:_.bt,inlineMetadata:_.bt,aspectRatio:_.bt,scrimStyle:_.bt,className:_.bt,useDefaultStyle:_.bt}});var hMo=16/9*210,ny=function(){var W=_.O.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.Z(ny,_.O);_.r=ny.prototype;
_.r.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]]"}}}}};
_.r.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.S("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.r.computeInitialCountNumber=function(W){if(!W)return 6;var e=W.items.some(function(q){return!!q.topicRecommendationsChipRenderer}),t=W.items.some(function(q){return!!q.displayAdRenderer}),b=this.computeShouldListItemsHaveEqualHeight(W),m=W.items.some(function(q){return!!q.gridPlaylistRenderer});
W=W.items.some(function(q){return!!q.shoppingItemCardViewModel});
return e?9:t?8:m||b?10:W?7:6};
_.r.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(e){return!!e.postRenderer})};
_.r.computeContainsLockup=function(){if(_.S("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,e;return(W=this.data)==null?void 0:(e=W.items)==null?void 0:e.some(function(t){return!!t.lockupViewModel})};
_.r.maybeUpdateLockupAspectRatio=function(){var W,e;if(this.computeContainsLockup()&&((W=this.data)==null?0:(e=W.items)==null?0:e.length)){var t;W=c4G((t=this.data.items[0].lockupViewModel)==null?void 0:t.contentType,this.data.force16By9ThumbnailAspectRatio);t=JYS(W);t=this.computeLockupWidth()/t;_.XB(this.hostElement,{"--yt-horizontal-list-content-height":t+"px"})}};
_.r.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){return!!t.verticalProductCardRenderer}))};
_.r.computeOverrideArrowPositionForShoppingItemCard=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){return!!t.shoppingItemCardViewModel}))};
_.r.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.r.computeHasBigThumbsReelItems=function(W,e){return W&&this.containsReelItemRenderer(e)};
_.r.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.r.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.r.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.r.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.r.containsReelItemRenderer=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){return!(!t.reelItemRenderer&&!t.shortsLockupViewModel)}))};
_.r.containsGridVideoRenderer=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){return!!t.gridVideoRenderer||!!t.lockupViewModel}))};
_.r.computeContainsGridMovieRenderer=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){return!!t.gridMovieRenderer}))};
_.r.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.r.computeIsSearchPostShelf=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){var b,m;return((m=(b=t.postRenderer)==null?void 0:b.surface)!=null?m:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.r.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var e;return!!(W==null?0:(e=W.items)==null?0:e.some(function(t){var b,m,q;return((q=(b=t.backgroundPromoRenderer)==null?void 0:(m=b.style)==null?void 0:m.value)!=null?q:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.r.computeIsSearchVodShelf=function(W,e){return W&&this.containsGridVideoRenderer(e)};
_.r.computeDisableWheelScroll=function(W,e){return this.computeIsSearchVodShelf(W,e)};
_.r.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.r.computeShortsLockupAspectRatio=function(){return 1};
_.r.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.XB(this.hostElement,{"--ytd-reel-item-thumbnail-height":hMo+"px"})};
ny.prototype.dataChanged=ny.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],ny.prototype,"ytdHorizontalListBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ny.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],ny.prototype,"isExpandableContent",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"hideShelfHeader",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Array)],ny.prototype,"buttonClasses",void 0);_.P([_.J(),_.Y("design:type",Object)],ny.prototype,"isSearch",void 0);
_.P([_.J(),_.Y("design:type",Object)],ny.prototype,"disableScrollEventListener",void 0);_.P([_.J({computed:"computeInitialCountNumber(data)"}),_.Y("design:type",Number)],ny.prototype,"initialCount",void 0);_.P([_.J({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],ny.prototype,"supportComponentResize",void 0);_.P([_.J({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],ny.prototype,"containsPost",void 0);
_.P([_.J({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"containsLockup",void 0);_.P([_.J({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ny.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.P([_.J({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForProductCard",void 0);_.P([_.J({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.P([_.J({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForReelItems",void 0);_.P([_.J({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForGridMovie",void 0);
_.P([_.J({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionToCenter",void 0);_.P([_.J({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"isSearchPostShelf",void 0);_.P([_.J({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.P([_.J({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.P([_.J({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"hasBigThumbsReelItems",void 0);
_.P([_.J({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"shouldUseMixedListHeight",void 0);_.P([_.J({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"shouldUseShortsListHeight",void 0);_.P([_.J({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"gridVideoWidth",void 0);
_.P([_.J({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"isSearchVodShelf",void 0);_.P([_.J({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],ny.prototype,"disableWheelScroll",void 0);_.P([_.J({computed:"computeSizing(isSearch)"}),_.Y("design:type",Object)],ny.prototype,"sizing",void 0);
_.P([_.J({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Y("design:type",Object)],ny.prototype,"shortsLockupAspectRatio",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ny.prototype,"dataChanged",null);
_.H(ny,"yt-horizontal-list-renderer",function(){if(YOh===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);YOh=W}W=YOh;return W},{mode:1});var HWr;var K0B=[10,12,14,16,18,20,24,28,32,36],P2r=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],fy=function(){var W=_.O.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.Z(fy,_.O);_.r=fy.prototype;
_.r.attached=function(){var W=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();_.Uc(this,function(){W.resize()});
if(!_.aP){var e,t,b;(e=document)==null||(t=e.fonts)==null||(b=t.ready)==null||b.then(function(){W.resize()})}};
_.r.dataChanged=function(){this.resize()};
_.r.guideIsExpandedChanged=function(){this.resize()};
_.r.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 W=this.getMaxNumLines(),e=this.getMinFont(),t=this.getMaxFont(),b=this.useRoboto?K0B:P2r;for(b=b.filter(function(q){return q<=t&&q>=e});b.length>1;){var m=Math.floor(b.length/2);
this.updateFontSize(b[m]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)b=b.slice(m,b.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)b=b.slice(0,m);else break}this.updateFontSize(b[b.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.r.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.r.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.r.getMaxFont=function(){var W=this.useRoboto?K0B:P2r;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.r.getMinFont=function(){var W=(this.useRoboto?K0B:P2r)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.r.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.r.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.r.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Ub(this.text).split("\n").length-1:Infinity};
_.r.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()}};
fy.prototype.guideIsExpandedChanged=fy.prototype.guideIsExpandedChanged;fy.prototype.dataChanged=fy.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],fy.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],fy.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fy.prototype,"text",void 0);
_.P([_.J(),_.Y("design:type",String)],fy.prototype,"fontFamily",void 0);_.P([_.J(),_.Y("design:type",Number)],fy.prototype,"maxWidth",void 0);_.P([_.J(),_.Y("design:type",Number)],fy.prototype,"maxHeight",void 0);_.P([_.J(),_.Y("design:type",Number)],fy.prototype,"maxFontSize",void 0);_.P([_.J(),_.Y("design:type",Number)],fy.prototype,"minFontSize",void 0);_.P([_.J(),_.Y("design:type",Number)],fy.prototype,"maxLines",void 0);_.P([_.J(),_.Y("design:type",Object)],fy.prototype,"hideOverflow",void 0);
_.P([_.J({selector:_.ah9}),_.Y("design:type",Boolean)],fy.prototype,"guideIsExpanded",void 0);_.P([_.vG("#container"),_.Y("design:type",HTMLElement)],fy.prototype,"containerNode",void 0);_.P([_.vG("#text"),_.Y("design:type",HTMLElement)],fy.prototype,"textNode",void 0);_.P([_.BG("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fy.prototype,"dataChanged",null);
_.P([_.BG("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fy.prototype,"guideIsExpandedChanged",null);_.P([_.h({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],fy);
_.H(fy,"yt-dynamic-sizing-formatted-string",function(){if(HWr!==void 0)return HWr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HWr=W},{mode:1});var V9k;_.iWe=function(W){_.WZ.call(this,W)};
_.Z(_.iWe,_.WZ);var Y_B=function(W){_.WZ.call(this,W)};
_.Z(Y_B,_.iWe);var Tp=function(){return _.O.apply(this,arguments)||this};
_.Z(Tp,_.O);Tp.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var e,t;(W=(t=_.l((e=this.data)==null?void 0:e.serviceEndpoint,_.KJ))==null?void 0:t.url)?_.VI(W,void 0,void 0,window.top):(e=new Y_B("Did not handle suspended account tap. No appealUrl."),_.gQ(e))}else e=new Y_B("Did not handle suspended account tap. No serviceEndpoint."),_.gQ(e)};
Tp.prototype.onTap=function(){var W=this,e=_.Sg(),t,b=(t=_.Dj(e,{veType:7116}))!=null?t:void 0;_.Pe(e,{visualElement:b});_.KB();this.saveRoleText();var m;if((m=this.data)==null?0:m.youtubeSuspended)this.onTapSuspendedChannel();else{var q=!1,Q,X;(e=(X=_.l((Q=this.data)==null?void 0:Q.serviceEndpoint,_.sUe))==null?void 0:X.supportedTokens)&&e.forEach(function(I){if(I.accountSigninToken)if(q=!0,W.onAccountItemTap)W.onAccountItemTap(I.accountSigninToken.signinUrl);else _.VI(I.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!q){if(Q=this.get("serviceEndpoint",this.data))q=!0,this.ytComponentBehavior.resolveCommand(Q);q||_.TT(new Y_B("Did not handle account switch tap. No token."))}}};
Tp.prototype.saveRoleText=function(){if(this.data){var W=this.data,e=W.channelDelegationRole;if(e){var t,b=(t=_.l(W==null?void 0:W.serviceEndpoint,_.sUe))==null?void 0:t.supportedTokens;if(!b){var m,q,Q,X;b=(m=_.l(W==null?void 0:W.serviceEndpoint,_.jO))==null?void 0:(q=m.popup)==null?void 0:(Q=q.confirmDialogRenderer)==null?void 0:(X=Q.confirmButton)==null?void 0:X.buttonRenderer;var I;b=(I=_.l(b==null?void 0:b.command,_.wy))==null?void 0:I.commands;if(!b)return;var u;b=(u=_.l(b[1],_.sUe))==null?
void 0:u.supportedTokens}if(b){I=void 0;u=_.R(b);for(b=u.next();!b.done;b=u.next())if(b=b.value,b.datasyncIdToken){I=b.datasyncIdToken.datasyncIdToken;break}if(I){var c;a:{if(_.egg()&&(u=_.DgR(I+"::pom"))){u=new yN(u);break a}u=void 0}(c=u)==null||c.set("role_text",e);if((uys?uys:window.location).href.indexOf("studio")!==-1&&(c=t_D())){u=c.src?(new URL(c.src)).origin:"*";var v;(v=c.contentWindow)==null||v.postMessage({action:"save_pom_role",datasyncId:I,roleText:e},u)}}}}}};
_.Ec.Object.defineProperties(Tp.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.accountPhoto)==null?void 0:e.thumbnails;return t&&t.length>0&&(t[0].height===36||t[0].height===48)?t[0].height:40}}});
Tp.prototype.onTap=Tp.prototype.onTap;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Tp.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Tp.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Function)],Tp.prototype,"onAccountItemTap",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tp.prototype,"enableRingForActiveAccount",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Tp.prototype,"thumbnailSize",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tp.prototype,"onTap",null);_.P([_.h({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Tp);
_.H(Tp,"ytd-account-item-renderer",function(){if(V9k!==void 0)return V9k;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return V9k=W},{mode:1});var zMv;var JM=function(){return _.O.apply(this,arguments)||this};
_.Z(JM,_.O);JM.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.ee().resolve(_.tQ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JM.prototype,"data",void 0);_.P([_.h({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],JM);
_.H(JM,"ytd-identity-chip-renderer",function(){if(zMv!==void 0)return zMv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zMv=W},{mode:1});var UFb;var L0k;var EjU;var A4h;var xe=function(){var W=_.O.apply(this,arguments)||this;W.richItemMinWidth=_.mn("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.Z(xe,_.O);_.Ec.Object.defineProperties(xe.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],e=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.XB(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var t;if(((t=this.data)==null?0:t.rows)&&e)for(e*=this.data.rows,t=0;t<e;t++)W.push({});return W}}});
_.P([_.y(_.fu),_.Y("design:type",Object)],xe.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xe.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.fG,value:3}),_.Y("design:type",Number)],xe.prototype,"itemsPerRow",void 0);_.P([_.J({selector:_.Ih2,value:6}),_.Y("design:type",Number)],xe.prototype,"slimItemsPerRow",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Number)],xe.prototype,"richItemMinWidth",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],xe.prototype,"miniMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xe.prototype,"isShorts",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xe.prototype,"isWatchNext",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xe.prototype,"isExploreHub",void 0);
_.P([_.T("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],xe.prototype,"cardItems",null);_.P([_.h({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],xe);
_.NhD=_.Ro()(xe,"ytd-ghost-grid-renderer",function(){if(A4h===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);A4h=W}W=A4h;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.mM(_.NN(function(W){var e=_.Ez(W,{numberOfComments:3}).numberOfComments,t=_.Ez(W,{isInitialLoad:!1}).isInitialLoad,b=_.Ez(W,{engagementPanel:!1}).engagementPanel,m=function(){return Math.min(Number(e==null?void 0:e())||20,20)};
return _.w("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.w(_.G,{cond:function(){return!(b==null?0:b())&&(t==null?void 0:t())},
then:function(){return _.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.w("div",{class:_.ve("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.w("div",{class:_.ve("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsComments"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.ve("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.w("div",{class:_.ve("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.w("div",{class:"ytGhostCommentsComments"},_.w(_.lV,{each:function(){return Array((m==null?void 0:m())||3)}},function(){return _.w("div",{class:"ytGhostCommentsGhostCard"},_.w("div",{class:"ytGhostCommentsAvatar"},_.w("div",{class:"ytGhostCommentsCircle"})),_.w("div",{class:"ytGhostCommentsHost"},_.w("div",{class:"ytGhostCommentsMeta"},
_.w("div",{class:_.ve("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.w("div",{class:_.ve("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.ve("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:"ytGhostCommentsGhostLikeDislike"},_.w("div",{class:_.ve("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.w("div",{class:_.ve("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.Eu,
isInitialLoad:_.Eu,engagementPanel:_.Eu}});_.xD("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Oe=function(){var W=_.O.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.engagementPanel=!0;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.S("show_ghost_comments_shorts_watch")||_.S("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.Z(Oe,_.O);_.r=Oe.prototype;_.r.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.r.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,e;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((e=this.data)==null?0:e.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.r.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(e){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.r.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]]"}}}}}};
_.r.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.l(this.data.continuationEndpoint,_.hp))&&this.ytdReduxBehavior.dispatch(_.rO({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.r.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.r.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.r.onServiceRequestCompleted=function(W,e){if(!_.S("kevlar_hide_spinner_on_empty_continuation_killswitch")){var t;(t=e.actions)!=null&&t.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.r.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.r.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.r.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.r.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.engagementPanel){var e,t,b;W=Math.floor(((((e=this.hostElement)==null?void 0:(t=e.parentElement)==null?void 0:(b=t.parentElement)==null?void 0:b.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}e=[].concat(_.kP(this.hostElement.querySelectorAll("yt-ghost-comments")));e=_.R(e);for(t=e.next();!t.done;t=e.next())t=t.value,t.numberOfComments=W,t.isInitialLoad=this.isInitialLoad,t.engagementPanel=
this.engagementPanel}};
_.r.detached=function(){this.resetIntersectionObserver()};
_.Ec.Object.defineProperties(Oe.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.S("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.S("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Oe.prototype.numberOfGhostCommentsChanged=Oe.prototype.numberOfGhostCommentsChanged;Oe.prototype.continuationTriggerOffsetChanged=Oe.prototype.continuationTriggerOffsetChanged;Oe.prototype.showButtonChanged=Oe.prototype.showButtonChanged;Oe.prototype.onYtServiceRequestCompletedForButtonRenderer=Oe.prototype.onYtServiceRequestCompletedForButtonRenderer;Oe.prototype.onServiceRequestCompleted=Oe.prototype.onServiceRequestCompleted;Oe.prototype.onYtServiceRequestSentForButtonRenderer=Oe.prototype.onYtServiceRequestSentForButtonRenderer;
Oe.prototype.observeData=Oe.prototype.observeData;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],Oe.prototype,"ytVisibilityBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Oe.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],Oe.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"isOverridable",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"spinnerActive",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"showButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Oe.prototype,"isCommentsSection",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Oe.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"isShortsGrid",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.uQD}),_.Y("design:type",Object)],Oe.prototype,"isShortsPage",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.Tq}),_.Y("design:type",Object)],Oe.prototype,"isWatchPage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Oe.prototype,"ghostCardExperimentEnabled",void 0);
_.P([_.J(),_.Y("design:type",Number)],Oe.prototype,"continuationTriggerOffset",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"endOfList",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Oe.prototype,"isInitialLoad",void 0);_.P([_.vG("ytd-button-renderer"),_.Y("design:type",_.EP)],Oe.prototype,"buttonRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],Oe.prototype,"buttonOverrides",void 0);
_.P([_.J(),_.T("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Oe.prototype,"isShortsCommentsSection",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"observeData",null);
_.P([_.wz("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],Oe.prototype,"onServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-completed-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.P([_.BG("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"showButtonChanged",null);
_.P([_.BG("continuationTriggerOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"continuationTriggerOffsetChanged",null);_.P([_.ul("isInitialLoad","engagementPanel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oe.prototype,"numberOfGhostCommentsChanged",null);_.P([_.h({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Oe);
_.H(Oe,"ytd-continuation-item-renderer",function(){if(EjU!==void 0)return EjU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EjU=W},{mode:1});var dF8;var Mi=function(){var W=_.O.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.Z(Mi,_.O);Mi.prototype.dataChanged=function(){var W;this.videoData=_.l((W=this.data)==null?void 0:W.renderer,wQB);this.transferStateChanged()};
Mi.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),e=X2G(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=e.publishedTimeText,b=e.badges;W.shortViewCountText=e.shortViewCountText;W.publishedTimeText=t;W.badges=b;this.set("videoData",W)}};
Mi.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",e=_.Bm(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sw(this.entityInfo.policyEntity),t=Object.assign({},this.videoData),b=X2G(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),m=b.publishedTimeText,q=b.badges;t.shortViewCountText=
b.shortViewCountText;t.publishedTimeText=m;t.badges=q;t.isDisabled=e;t.isWatched=this.downloadedVideoPlaybackPosition>0;t.navigationEndpoint=e?void 0:Kmg(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Q;W&&((Q=this.videoData)==null?0:Q.videoId)&&!_.S("dl_resume_click_killswitch")&&(t.isDisabled=!1,t.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});t.thumbnailOverlays=Q02(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",t)}};
Mi.prototype.transferStateChanged=Mi.prototype.transferStateChanged;Mi.prototype.downloadProgressChanged=Mi.prototype.downloadProgressChanged;Mi.prototype.dataChanged=Mi.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Mi.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mi.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],Mi.prototype,"videoData",void 0);_.P([_.J({selector:Mf,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"downloadProgress",void 0);_.P([_.J(),_.Y("design:type",Number)],Mi.prototype,"relativeDateReference",void 0);_.P([_.J({selector:_.xg,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"transferState",void 0);
_.P([_.J({selector:Tvv,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"downloadState",void 0);_.P([_.J({selector:SWD,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"offlinePolicyAction",void 0);_.P([_.J({selector:BvQ,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.P([_.J({selector:sb,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"downloadedVideoPlaybackPosition",void 0);_.P([_.J({selector:lhG,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Mi.prototype,"entityInfo",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Mi.prototype,"isDownloading",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mi.prototype,"dataChanged",null);
_.P([_.BG("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mi.prototype,"downloadProgressChanged",null);_.P([_.BG("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mi.prototype,"transferStateChanged",null);
_.P([_.h({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Mi);
_.H(Mi,"ytd-downloaded-video-grid-video-renderer",function(){if(dF8!==void 0)return dF8;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dF8=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var W9U;var se=function(){};
se.prototype.resolve=function(W,e){var t=this;return _.F(function(b){return _.a(b,t.resolveCommand(W,e),0)})};var etv,hM;etv=Wdz(function(W){return W.targetId},{shouldPersist:!1});
hM=etv.updateData;_.t6y=etv.useUpdatableData;var b9v,mCo;b9v=Wdz(function(W){return W.targetId});
mCo=b9v.updateData;_.rlv=b9v.useUpdatableData;var q7Z=ujv.bind(null,hM),Rtb=ujv.bind(null,mCo);(function(W,e,t){var b=_.l(t==null?void 0:t.updatedRenderer,_.P9P);return b?W({targetId:e},function(){return b}):!1}).bind(null,hM);var HB=function(){};
_.Z(HB,se);HB.prototype.resolveCommand=function(W){var e;return _.F(function(t){e=_.l(W,_.ZNG);if(!e)return t.return();q7Z(e.targetId,e);_.u8(t)})};var Ky=function(){var W=_.D0.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.Z(Ky,_.D0);_.r=Ky.prototype;_.r.configureContinuationPathMap=function(){return{}};
_.r.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.r.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.r.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.r.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.r.handleAppendContinuationItemsAction=function(W){var e=_.l(W,_.B28);if(this.data&&this.data.targetId&&e&&this.continuationPathMap&&e.targetId===this.data.targetId){var t=O4R(W),b=t&&this.continuationPathMap[t];if(b&&t)if(W=this.get(b,this.data)){a:{for(t=0;t<W.length;t++){var m=W[t],q=void 0,Q=!!_.l((q=_.l(m,mW8))==null?void 0:q.content,_.FKy);if(_.l(m,_.Q$)||Q)break a}t=W.length}b="data."+b;e.continuationItems?t===W.length-1?(this.pop(b),this.push.apply(this,[b].concat(_.kP(e.continuationItems)))):
t===W.length?this.push.apply(this,[b].concat(_.kP(e.continuationItems))):this.splice.apply(this,[b,t,1].concat(_.kP(e.continuationItems))):this.splice(b,t,1);(_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation"))&&_.q2(this.hostElement,"yt-append-continuation-items-action-finished");_.q2(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.JC(new _.o_("append continuation items does not exist",t));else _.JC(new _.o_("append continuation path does not exist",
t))}};
_.r.handleReloadContinuationItemsCommand=function(W){var e=_.l(W,_.ZNG);if(this.data&&e){if(_.S("web_explore_hub")||_.S("web_client_explore_hub")||_.S("web_explore_hub_on_hover")||_.S("web_client_explore_hub_on_hover"))try{_.ee().resolve(HB).resolveCommand(W)}catch(q){}if(this.data.targetId&&this.continuationPathMap&&e.targetId===this.data.targetId&&(!_.S("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||e.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var t,b=
(t=e.slot)==null?void 0:t.replace("RELOAD_CONTINUATION_SLOT_","");t=(W=O4R(W)+"-"+(b==null?void 0:b.toLowerCase()))&&this.continuationPathMap[W];if(!t||!W||!b)_.JC(new _.o_("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(e)){if(e.replaceWithFirstItem){var m;this.set("data."+t,((m=e.continuationItems)==null?0:m.length)?e.continuationItems[0]:{})}else this.set("data."+t,e.continuationItems?e.continuationItems:
[]);this.continuationIsReloading=!1;_.q2(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.r.handleShowReloadUiCommand=function(W){W=_.l(W,Js8);var e;((e=this.data)==null?0:e.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Ky.prototype.observeData=Ky.prototype.observeData;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ky.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ky.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ky.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ky.prototype,"continuationIsReloading",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ky.prototype,"observeData",null);_.P([_.SB()],Ky);_.PB=[_.P1.YtComponentBehavior,_.qM.YtActionHandlerBehavior,Ky.prototype];_.VU={};_.VU.YtNextContinuationBehavior=[_.e$.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",_.aH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.aH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,e){W.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,e,{}):(W={locationRetrieved:function(t){this.makeNextContinuationRequest_(t,e,{})}.bind(this)},_.q2(this.hostElement,"yt-retrieve-location",W))},
makeNextContinuationRequest_:function(W,e,t){_.Jy("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=e(W);var b;this.canUseContextualNetworkManager_()&&(b=this.getNetworkManager());b||(b=_.ee().resolve(_.Ti));e=_.Vp.instance;if(_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&e){b=_.Am([W.startsWith("/")?W.substr(1):W]);var m,q;t=_.x0(e,{},b,t==null?void 0:(m=t.context)==null?void 0:(q=m.clickTracking)==null?void 0:q.clickTrackingParams).then(function(Q){return{response:Q}})}else t=
this.nextContinuation.usePost?b.postData(W,t):b.fetchData(W);
t.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=t;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,e){var t=this;_.Jy("ncl");this.pendingContinuationRequest_=void 0;if(e){var b={};this.nextContinuation&&(b=this.nextContinuation);if(e.response&&e.response.continuationContents&&e.response.continuationContents[b.continuationType]){W=e.response.continuationContents[b.continuationType];var m=b.header||"data.header",q=W[b.responseHeaderKey||"header"];q&&this.set(m,q);m=b.contentsArray||"data.contents";q=this.getContents_(W,b.responseContentsKey||"contents")||[];
this.pathExists_(m)?(q.unshift(m),this.push.apply(this,q)):this.set(m,q);q&&(clK(_.Sg(),e.response,this.hostElement,function(Q){_.RT(t.hostElement,"yt-store-grafted-ve-action",[Q])}),_.q2(this.hostElement,"yt-next-continuation-data-updated",{continuationData:e,
page:this,contentsArray:m}));this.set(b.continuationsArray||"data.continuations",W[b.responseContinuationsKey||"continuations"]||[])}else e.reload?_.JC(new _.o_("Reloading from continuation is unsupported")):e.responseContext&&e.responseContext.errors||(delete e.xsrf_token,delete e.timing,delete e.endpoint,delete e.csn,e.responseContext&&delete e.responseContext.serviceTrackingParams,m={request:_.zn(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(e).sort()},e.response&&(m.responseContentKeys=
Object.keys(e.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(m.continuationType=this.nextContinuation.continuationType.substr(0,256)),e=new _.o_("Malformed continuation",m),W.indexOf("/comment_service_ajax")==0?_.JC(e):_.gQ(e)),this.set(b.continuationsArray||"data.continuations",[])}else _.TT(new _.o_("Missing continuation response",W))},
getContents_:function(W,e){e=e.split(".");return _.kJ.getValueByKeys(W,e)},
pathExists_:function(W){var e=this;W=W.toString().split(".");for(var t=0;t<W.length;t++)if(e=e[W[t]],e===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var Qgo;var F9P;var iO=function(){var W=_.O.apply(this,arguments)||this;W.triggered_=!1;return W};
_.Z(iO,_.O);_.r=iO.prototype;_.r.attached=function(){this.maybeTriggerAutoload()};
_.r.detached=function(){this.hasBeenTriggered_=!1};
_.r.onPrescanVisible=function(){this.onShow()};
_.r.onShow=function(){this.showButton||this.trigger()};
_.r.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.q2(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.r.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.r.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.r.computeLabel_=function(W,e){return W===void 0?null:W.label||!e?W.label:this.showMoreText_};
_.r.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.r.getContinuationUrl=function(W){var e={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(e.itct=this.data.clickTrackingParams);return _.Ut(W,e)};
_.r.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
iO.prototype.showButtonChanged_=iO.prototype.showButtonChanged_;iO.prototype.observeData_=iO.prototype.observeData_;_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],iO.prototype,"ytVisibilityBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iO.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],iO.prototype,"showButton",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],iO.prototype,"showIcon",void 0);_.P([_.J({computed:"computeLabel_(data, showButton)"}),_.Y("design:type",Object)],iO.prototype,"label",void 0);_.P([_.J({value:_.zq(_.Gv("SHOW_MORE",void 0,"Show More"))}),_.Y("design:type",Object)],iO.prototype,"showMoreText_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],iO.prototype,"spinnerActive_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],iO.prototype,"hasBeenTriggered_",void 0);
_.P([_.J({value:void 0}),_.Y("design:type",String)],iO.prototype,"observeVisibleOption",void 0);_.P([_.J({value:void 0}),_.Y("design:type",String)],iO.prototype,"observeHiddenOption",void 0);_.P([_.J({value:"observe_once"}),_.Y("design:type",Object)],iO.prototype,"observePrescanOption",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iO.prototype,"observeData_",null);
_.P([_.ul("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iO.prototype,"showButtonChanged_",null);_.P([_.gz({is:"yt-next-continuation",disableElementRegistration:!0})],iO);
_.H(iO,"yt-next-continuation",function(){if(F9P===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Qgo===void 0&&(Qgo=document.createElement("template"));var b=Qgo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);F9P=W}W=F9P;return W},{mode:2});var X0r;var IFS;var Ye=function(){return _.O.apply(this,arguments)||this};
_.Z(Ye,_.O);Ye.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ye.prototype,"data",void 0);_.P([_.gz({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Ye);
_.H(Ye,"yt-music-pass-small-feature-info-renderer",function(){if(IFS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;X0r===void 0&&(X0r=document.createElement("template"));var b=X0r;t.call(e,b.content.cloneNode(!0),W.content.firstChild);IFS=W}W=IFS;return W},{mode:2});_.xD("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var zp=function(){var W=_.O.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.Z(zp,_.O);_.r=zp.prototype;_.r.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.r.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"}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.r.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.r.onIronResize=function(){var W=this;_.HG(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.r.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.r.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.r.computeExpandVisible=function(W,e,t,b){return W&&e&&t&&!!b&&!!b.showMoreText};
_.r.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.r.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.r.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var e;(this.collapsed=!((e=this.data)==null||!e.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Uc(this,function(){_.Qx(W.hostElement,"yt-refit-popups-action")})};
_.r.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.r.computeViewAllHidden=function(W,e){return W||!e.viewAllEndpoint};
zp.prototype.fillRestIfNotCollapsible=zp.prototype.fillRestIfNotCollapsible;zp.prototype.initCollapsed=zp.prototype.initCollapsed;zp.prototype.onIronResize=zp.prototype.onIronResize;zp.prototype.persistentGuideChanged=zp.prototype.persistentGuideChanged;_.P([_.y(_.gf),_.Y("design:type",Object)],zp.prototype,"ironResizableBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],zp.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],zp.prototype,"ytNextContinuationBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],zp.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.y(_.PB),_.Y("design:type",Object)],zp.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zp.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],zp.prototype,"collapsed",void 0);_.P([_.J(),_.Y("design:type",Number)],zp.prototype,"initialCount",void 0);_.P([_.J({computed:"computeShowMoreButton(data.showMoreText)"}),_.Y("design:type",Object)],zp.prototype,"showMoreButton",void 0);
_.P([_.J({computed:"computeIsCollapsible(data)"}),_.Y("design:type",Object)],zp.prototype,"isCollapsible",void 0);_.P([_.vG("#items"),_.Y("design:type",HTMLElement)],zp.prototype,"items",void 0);_.P([_.BG("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zp.prototype,"persistentGuideChanged",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zp.prototype,"onIronResize",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zp.prototype,"initCollapsed",null);_.P([_.BG("canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zp.prototype,"fillRestIfNotCollapsible",null);_.P([_.h({is:"ytd-grid-renderer",disableElementRegistration:!0})],zp);
_.H(zp,"ytd-grid-renderer",function(){if(W9U!==void 0)return W9U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return W9U=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var Ue=function(){return _.O.apply(this,arguments)||this};
_.Z(Ue,_.O);
Ue.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"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ue.prototype,"data",void 0);_.P([_.h({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ue);
_.H(Ue,"ytd-carousel-ad-renderer",function(){if(L0k!==void 0)return L0k;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return L0k=W},{mode:1});var aFZ;var Ly=function(){return _.O.apply(this,arguments)||this};
_.Z(Ly,_.O);_.r=Ly.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Ly.JSC$13315_CLICK_LOCATION_ID_MAP))};
_.r.onSitelinkTap=function(W){W.stopPropagation();var e,t,b=W==null?void 0:(e=W.model)==null?void 0:(t=e.item)==null?void 0:t.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,W,!1)};
_.r.onTap=function(W){var e=this.data&&this.data.content&&this.data.content.navigationEndpoint;e&&this.ytSparklesClickLocationBehavior.handleClick(e,W,!1)};
_.r.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.R(this.data.content.impressionEndpoints||[]),e=W.next();!e.done;e=W.next()){e=_.R(e.value.loggingUrls||[]);for(var t=e.next();!t.done;t=e.next())t=t.value,t.baseUrl&&ia(t.baseUrl,t.attributionSrcMode)}};
Ly.prototype.onTap=Ly.prototype.onTap;Ly.prototype.dataChanged=Ly.prototype.dataChanged;Ly.JSC$13315_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"]]);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Ly.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ly.prototype,"data",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ly.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ly.prototype,"onTap",null);_.P([_.h({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Ly);
_.H(Ly,"ytd-promoted-sparkles-text-search-renderer",function(){if(aFZ!==void 0)return aFZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aFZ=W},{mode:1});var w0Z;var Ee=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.Z(Ee,_.O);_.r=Ee.prototype;
_.r.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.r.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.r.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.r.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Ee.JSC$13324_DEFAULT_AD_BADGE_RENDERER),_.RH(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Ee.JSC$13324_CLICK_LOCATION_ID_MAP))};
_.r.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(e){e=_.R(e.loggingUrls||[]);for(var t=e.next();!t.done;t=e.next())t=t.value,t.baseUrl&&ia(t.baseUrl,t.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.r.onTap=function(W){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint,b;(e=(b=this.data)==null?void 0:b.thumbnailNavigationEndpoint)&&_.dd(_.LB(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(e,W,!1):t&&this.ytSparklesClickLocationBehavior.handleClick(t,W,!1)};
_.r.handleMuteAd=function(){this.collapsed=!0};
_.r.attached=function(){var W=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ec.Object.defineProperties(Ee.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
Ee.prototype.dataChanged=Ee.prototype.dataChanged;
Ee.JSC$13324_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"]]);
Ee.JSC$13324_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Gv("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],Ee.prototype,"ytdActiveViewBehavior",void 0);
_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],Ee.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Ee.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ee.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ee.prototype,"collapsed",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Ee.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Ee.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Y("design:type",Boolean)],Ee.prototype,"fixAlignmentSmallScreens",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs_square")}}),
_.Y("design:type",Boolean)],Ee.prototype,"useBiggerThumbsSquare",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.mediaHoverOverlay"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"hideHoverOverlay",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"webSearchLayout",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"webSearchLayoutLandscape",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"webSearchLayoutSquare",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"sparklesCtaNoBackground",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.actionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"hideActionButton",null);_.P([_.J({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Ee.prototype,"buttonOverride",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Y("design:type",Boolean)],Ee.prototype,"hasNewAdBadge",void 0);_.P([_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ee.prototype,"useRoundedBadge",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ee.prototype,"dataChanged",null);_.P([_.h({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Ee);
_.H(Ee,"ytd-promoted-sparkles-web-renderer",function(){if(w0Z!==void 0)return w0Z;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return w0Z=W},{mode:1});var ujh;var AM=function(){return _.O.apply(this,arguments)||this};
_.Z(AM,_.O);_.r=AM.prototype;_.r.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]]"}}}}}};
_.r.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.r.onCtaClick=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.ctaRenderer)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.r.onWatchButtonClick=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.watchButtonRenderer)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.r.onTap=function(){};
_.r.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",AM.JSC$13327_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",AM.JSC$13327_DEFAULT_CLICK_LOCATION_BEHAVIOR,AM.JSC$13327_CLICK_LOCATION_ID_MAP),this.thumbnail)){var W=this.thumbnail.getElementsByTagName("a");W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href")}};
_.r.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.R(this.data.impressionUrls),e=W.next();!e.done;e=W.next())e=e.value,BDK(e,la2(e));this.data.impressionsFired=!0}};
_.r.maybeComputeHref=function(){return null};
_.r.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.r.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.r.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.r.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.r.onClick=function(W){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;if(this.enableShortDR&&t&&(_.l(t,_.z4)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(t,W,!!_.l(t,_.z4)),W.stopPropagation();else if(t&&_.l(t,_.z4))this.ytSparklesClickLocationBehavior.handleClick(t,W,!0),W.stopPropagation();else if(t){var b,m;((b=this.data)==null?0:b.navigationEndpoint)&&((m=this.data)==null?0:m.adPlaybackContextParams)&&Xh2(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(t)}};
_.r.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.r.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.r.onThumbnailContainerClick=function(W){this.onClick(W)};
_.r.computeThumbnailWidth=function(W,e){return W?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:360};
_.r.attached=function(){var W=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
AM.prototype.dataChanged=AM.prototype.dataChanged;AM.prototype.onTap=AM.prototype.onTap;AM.JSC$13327_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Gv("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};AM.JSC$13327_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
AM.JSC$13327_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"}];_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],AM.prototype,"ytdActiveViewBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],AM.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],AM.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],AM.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Y("design:type",Boolean)],AM.prototype,"enableShortDR",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_vac_ui_update_for_desktop_search")}}),
_.Y("design:type",Boolean)],AM.prototype,"enableUiUpdate",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],AM.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Y("design:type",Boolean)],AM.prototype,"showCta",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Y("design:type",Boolean)],AM.prototype,"isShortDr",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Y("design:type",Boolean)],AM.prototype,"isShortDrOrNewUi",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Y("design:type",Boolean)],AM.prototype,"isNewUiAndNotShortDr",void 0);_.P([_.J({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],AM.prototype,"buttonOverride",void 0);_.P([_.J({computed:"computeSecondaryButtonOverride(data)"}),_.Y("design:type",Object)],AM.prototype,"secondaryButtonOverride",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],AM.prototype,"thumbnail",void 0);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"onTap",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"dataChanged",null);_.P([_.h({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],AM);
_.H(AM,"ytd-promoted-video-renderer",function(){if(ujh!==void 0)return ujh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ujh=W},{mode:1});var cl8;var Ni=function(){var W=_.O.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.Z(Ni,_.O);_.r=Ni.prototype;
_.r.configureRendererStamper=function(){return{"data.menu":{id:_.S("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]]"}}}}}};
_.r.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Ni.JSC$13334_CLICK_LOCATION_ID_MAP)};
_.r.onTap=function(W){var e,t=(e=this.data)==null?void 0:e.navigationCommand;t&&!_.dd(_.LB(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(t,W,!1)};
_.r.onSitelinkTap=function(W){var e,t,b=W==null?void 0:(e=W.model)==null?void 0:(t=e.item)==null?void 0:t.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,W,!1)};
_.r.configureSitelinkClickTargets=function(){var W=this,e,t,b=(e=this.data)==null?void 0:(t=e.clickLocationTargets)==null?void 0:t.find(function(m){return m.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
b&&_.rz(this.hostElement).querySelectorAll(".sitelink").forEach(function(m){_.RH(m,"yt-simple-endpoint",!0);W.sitelinkIds.push(m.id);var q,Q;(q=W.ytSparklesClickLocationBehavior)==null||(Q=q.clickTargetMap)==null||Q.set(m.id,b)})};
_.r.sendImpression=function(){var W,e,t=((W=this.data)==null?void 0:(e=W.impressionCommand)==null?void 0:e.loggingUrls)||[];W=_.R(t);for(e=W.next();!e.done;e=W.next())e=e.value,e.baseUrl&&ia(e.baseUrl,e.attributionSrcMode)};
_.r.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Ec.Object.defineProperties(Ni.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Ni.prototype.onTap=Ni.prototype.onTap;Ni.prototype.dataChanged=Ni.prototype.dataChanged;Ni.JSC$13334_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"]]);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Ni.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ni.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ni.prototype,"showFavicon",null);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Ni.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Ni.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Y("design:type",Boolean)],Ni.prototype,"enableThumbnailScalingFix",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ni.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ni.prototype,"onTap",null);_.P([_.h({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Ni);
_.H(Ni,"ytd-text-image-no-button-layout-renderer",function(){if(cl8!==void 0)return cl8;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cl8=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var v3k;var dc=function(){var W=_.O.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.S("web_modern_buttons");W.hideCta=_.S("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.mn("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.player=null;W.JSC$13341_playerEvents=new Map;W.JSC$13341_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.Z(dc,_.O);_.r=dc.prototype;_.r.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]]"}}}}}};
_.r.attached=function(){this.JSC$13341_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13341_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.S("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.r.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13341_playerEvents)};
_.r.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",dc.JSC$13340_DEFAULT_CLICK_LOCATION_BEHAVIOR,dc.JSC$13340_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.r.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.Tm.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.S("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.lJ(_.Tm,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.mn("delayed_cta_on_web_delay_milliseconds")))};
_.r.setPlayer=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return(e=_.Qx(W.hostElement,"yt-get-inline-preview-player-action"))&&e[0]?_.a(t,e[0].getPlayerPromise(),3):t.jumpTo(0);W.player=t.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$13341_playerEvents);_.u8(t)})};
_.r.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13341_preventProgressSaveTimer=_.F6(_.Tm,function(){W.JSC$13341_preventProgressSaveTimer=null},1E4))};
_.r.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.r.resetPreventProgressSaveTimer=function(){_.Tm.cancelJob(this.JSC$13341_preventProgressSaveTimer);this.JSC$13341_preventProgressSaveTimer=null};
_.r.getSimpleString=function(W){return _.Ub(W)};
_.r.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint,b;e=(b=this.data)==null?void 0:b.channelEndpoint;var m,q;(b=(q=_.l((m=this.data)==null?void 0:m.adCtaButton,_.Md))==null?void 0:q.command)&&_.dd(_.LB(W),this.hostElement,["call-to-action"])?_.S("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(b,W,!1):e&&_.dd(_.LB(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(e,W,!1):!_.dd(_.LB(W),this.hostElement,["secondary-button"])&&t&&(_.S("enable_short_dr_for_desktop_launchable")?(m=!!_.l(t,_.z4),this.isInlinePlaybackState&&m&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(t,W,m)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(t,W,!0)))}};
_.r.updateWatchEndpointStartTime=function(){var W,e;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((e=this.data)==null?0:e.navigationEndpoint)&&!this.JSC$13341_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.l(this.data.navigationEndpoint,_.z4).startTimeSeconds=W,_.l(this.data.inlinePlaybackEndpoint,_.z4).startTimeSeconds=W)};
_.r.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.r.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Ec.Object.defineProperties(dc.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.watchButton)&&!((e=this.data)==null||!e.adCtaButton)}}});
dc.prototype.hoverChanged=dc.prototype.hoverChanged;dc.prototype.dataChanged=dc.prototype.dataChanged;
dc.JSC$13340_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"]]);
dc.JSC$13340_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"}];
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],dc.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],dc.prototype,"ytSparklesClickLocationBehavior",void 0);
_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],dc.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dc.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"isInlinePlaybackState",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dc.prototype,"miniMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"uiUpdate",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"hideCta",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"noBottomMargin",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"animateInCta",void 0);_.P([_.J({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],dc.prototype,"buttonOverride",void 0);
_.P([_.J({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],dc.prototype,"secondaryButtonOverride",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dc.prototype,"isHovered",void 0);_.P([_.vG("#button-container"),_.Y("design:type",HTMLElement)],dc.prototype,"buttonContainer",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dc.prototype,"typographyBump",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dc.prototype,"typographyBumpV2",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dc.prototype,"dataChanged",null);_.P([_.ul("isHovered"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dc.prototype,"hoverChanged",null);
_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dc.prototype,"isButtonGroup",null);_.P([_.h({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],dc);
_.H(dc,"ytd-ad-inline-playback-meta-block",function(){if(v3k!==void 0)return v3k;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return v3k=W},{mode:_.Qe("kevlar_poly_si_batch_j065")?1:2});var GoN;var WV=function(){var W=_.O.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$13346_activeViewMeasurementDataResolver=_.UZ();return W};
_.Z(WV,_.O);_.r=WV.prototype;_.r.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13346_activeViewMeasurementDataResolver.promise.then(function(e){W.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13346_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.JSC$13346_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:j6h})};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13346_inlinePreviewHoverListener)==null||R4(W)};
_.r.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13346_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",WV.JSC$13345_DEFAULT_CLICK_LOCATION_BEHAVIOR,WV.JSC$13345_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var e,t;if(((e=this.data)==
null?0:e.hasAutoplay)||((t=this.data)==null?0:t.forceImpAutoplay)){var b;(b=this.JSC$13346_inlinePreviewHoverListener)==null||MnD(b)}};
_.r.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.r.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(t,W,!!_.l(t,_.z4));W.stopPropagation()}};
_.r.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.r.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,t,b=(t=_.l((e=this.data)==null?void 0:e.onImpression,_.wy))==null?void 0:t.commands;b&&(b.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;W.ytComponentBehavior.resolveCommand(m)}),this.data.impressionsFired=!0)}};
_.Ec.Object.defineProperties(WV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13346_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
WV.prototype.onTypographyBumpChanged=WV.prototype.onTypographyBumpChanged;WV.prototype.onDataChanged=WV.prototype.onDataChanged;WV.JSC$13345_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);WV.JSC$13345_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"}];
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],WV.prototype,"ytComponentBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],WV.prototype,"ytdActiveViewBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],WV.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.Hl),_.Y("design:type",Object)],WV.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],WV.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],WV.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],WV.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],WV.prototype,"noBottomMargin",void 0);
_.P([_.J(),_.Y("design:type",Object)],WV.prototype,"isInlinePreviewTriggered",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],WV.prototype,"miniMode",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],WV.prototype,"typographyBump",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],WV.prototype,"thumbnail",void 0);_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],WV.prototype,"JSC$13346_dismissibleMedia",void 0);
_.P([_.vG("ytd-ad-inline-playback-meta-block"),_.Y("design:type",HTMLElement)],WV.prototype,"adInlinePlaybackMetaBlock",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WV.prototype,"onDataChanged",null);_.P([_.BG("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WV.prototype,"onTypographyBumpChanged",null);
_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WV.prototype,"isHovered",null);_.P([_.h({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],WV);
_.H(WV,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(GoN!==void 0)return GoN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GoN=W},{mode:1});var DCb;var er=function(){var W=_.O.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$13349_activeViewMeasurementDataResolver=_.UZ();return W};
_.Z(er,_.O);_.r=er.prototype;_.r.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13349_activeViewMeasurementDataResolver.promise.then(function(e){W.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)})};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13349_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.JSC$13349_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:j6h})};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13349_inlinePreviewHoverListener)==null||R4(W)};
_.r.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13349_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",er.JSC$13348_DEFAULT_CLICK_LOCATION_BEHAVIOR,er.JSC$13348_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.r.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(t,W,!0);W.stopPropagation()}};
_.r.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.r.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var e,t,b=(t=_.l((e=this.data)==null?void 0:e.onImpression,_.wy))==null?void 0:t.commands;b&&(b.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;_.ee().resolve(_.tQ).resolveCommand(m,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.Ec.Object.defineProperties(er.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13349_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
er.prototype.onDataChanged=er.prototype.onDataChanged;er.JSC$13348_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);er.JSC$13348_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"}];_.P([_.y(nu),_.Y("design:type",Object)],er.prototype,"ytdActiveViewBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],er.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],er.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],er.prototype,"ytdReduxBehavior",void 0);
_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],er.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],er.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],er.prototype,"isInlinePreviewTriggered",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],er.prototype,"miniMode",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],er.prototype,"thumbnail",void 0);
_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],er.prototype,"JSC$13349_dismissibleMedia",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],er.prototype,"onDataChanged",null);_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],er.prototype,"isHovered",null);_.P([_.h({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],er);
_.H(er,"ytd-video-display-full-buttoned-renderer",function(){if(DCb!==void 0)return DCb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return DCb=W},{mode:1});var cL=function(W,e,t,b){b=b===void 0?!1:b;_.WZ.call(this,W);this.adsClientErrorMessage=t;this.aggressivelySample=b;this.args=[];e&&this.args.push(e)};
_.Z(cL,_.WZ);var wk=function(W,e,t,b){b=b===void 0?!1:b;_.WZ.call(this,W);this.adsClientErrorMessage=t;this.aggressivelySample=b;this.args=[];e&&this.args.push(e)};
_.Z(wk,_.WZ);var S78=function(W){_.ka.call(this);var e=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.NL(e.instance);e.instance=null})};
_.Z(S78,_.ka);S78.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.b0("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Z92=function(){var W=new Map;[].forEach(function(e){W.set(e.JSC$26986_getType(),e)})};new Promise(function(){});var DCD=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"]]),v3z=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"}]]),BiB=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var tU=function(W,e,t,b){_.ka.call(this);this.adsControlFlowEventListeners=e;this.adEventLogger=t;this.experimentApiProvider=b;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.w$(this,this.adsControlFlowManagerHelper);W=_.R(e);for(e=W.next();!e.done;e=W.next())_.w$(this,e.value)};
_.Z(tU,_.ka);var o3Z=function(W,e,t,b){bB(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",e,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b);W=_.R(W.adsControlFlowEventListeners);for(b=W.next();!b.done;b=W.next())o3Z(b.value,e,t)};
_.r=tU.prototype;_.r.onOpportunityProcessedExternallyManaged=function(W,e,t,b){bB(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,t,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)};
_.r.onSlotReceivedExternallyManaged=function(W,e){ma(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,e)};
_.r.onSlotEntered=function(W){if(rX(this.adsControlFlowManagerHelper,W)!=null){ma(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var e=_.R(this.adsControlFlowEventListeners),t=e.next();!t.done;t=e.next())t.value.onSlotEntered(W);if(rX(this.adsControlFlowManagerHelper,W)!=null&&rX(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&qE(this.adsControlFlowManagerHelper,W)&&!lF8(this.adsControlFlowManagerHelper,W)){var b;Ru(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(b=qE(this.adsControlFlowManagerHelper,W))!=null?b:void 0);W=rX(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&QX(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.r.onSlotExited=function(W){if(rX(this.adsControlFlowManagerHelper,W)!=null){ma(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var e=_.R(this.adsControlFlowEventListeners),t=e.next();!t.done;t=e.next())t.value.onSlotExited(W);rX(this.adsControlFlowManagerHelper,W)!=null&&rX(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&Z9e(this,W)}};
_.r.onLayoutReceivedExternallyManaged=function(W,e,t){W.managerLayer!=="core"&&Ru(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,e,t)};
var $Ck=function(W,e,t){if(rX(W.adsControlFlowManagerHelper,e)!=null){Ru(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,t);W=_.R(W.adsControlFlowEventListeners);for(var b=W.next();!b.done;b=W.next())$Ck(b.value,e,t)}};
tU.prototype.onLayoutExited=function(W,e,t){if(rX(this.adsControlFlowManagerHelper,W)!=null){Ru(this.adEventLogger,Goc(t),W,e);this.adsControlFlowManagerHelper.onLayoutExited(W,e);for(var b=_.R(this.adsControlFlowEventListeners),m=b.next();!m.done;m=b.next())m.value.onLayoutExited(W,e,t);(t=qE(this.adsControlFlowManagerHelper,W))&&e.layoutId===t.layoutId&&koB(this,W)}};
tU.prototype.disposeInternal=function(){var W=p0Z(this.adsControlFlowManagerHelper);W=_.R(W);for(var e=W.next();!e.done;e=W.next())Z9e(this,e.value);_.ka.prototype.disposeInternal.call(this)};
var Z9e=function(W,e){if(rX(W.adsControlFlowManagerHelper,e)!=null)if(rX(W.adsControlFlowManagerHelper,e).JSC$27017_isSlotExitRequested()||rX(W.adsControlFlowManagerHelper,e).JSC$27017_isLayoutExitRequested())rX(W.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(rX(W.adsControlFlowManagerHelper,e).isOccupyingSlotType())rX(W.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests=!0,koB(W,e);else if(rX(W.adsControlFlowManagerHelper,e).JSC$27017_isSlotFillRequested())rX(W.adsControlFlowManagerHelper,
e).markedForUnscheduleAfterOutboundAdapterRequests=!0,rX(W.adsControlFlowManagerHelper,e)!=null&&(ma(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",e),e=rX(W.adsControlFlowManagerHelper,e),e.fulfillmentLifecycleStage="fill_cancel_requested",e.registeredFulfillmentAdapter.cancelSlotFilling());else{var t=qE(W.adsControlFlowManagerHelper,e),b;W.experimentApiProvider.get();(b=_.S("h5_enable_layout_unscheduling_events"))&&(t?ylk(W,e,t):_.b0(Error("Ih"),e,t,void 0,!1));ma(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",e);var m=rX(W.adsControlFlowManagerHelper,e),q=e.slotEntryTrigger,Q=m.registeredSlotEntryTriggerAdapters.get(q.triggerId);Q&&(Q.unregisterTrigger(q),m.registeredSlotEntryTriggerAdapters.delete(q.triggerId));q=_.R(e.slotFulfillmentTriggers);for(Q=q.next();!Q.done;Q=q.next()){Q=Q.value;var X=m.registeredFulfillmentTriggerAdapters.get(Q.triggerId);X&&(X.unregisterTrigger(Q),m.registeredFulfillmentTriggerAdapters.delete(Q.triggerId))}q=_.R(e.slotExpirationTriggers);
for(Q=q.next();!Q.done;Q=q.next())if(Q=Q.value,X=m.registeredExpirationTriggerAdapters.get(Q.triggerId))X.unregisterTrigger(Q),m.registeredExpirationTriggerAdapters.delete(Q.triggerId);m.hasLayout()&&(q=m.layout,FS(m,q.layoutExitNormalTriggers),FS(m,q.layoutExitSkipTriggers),FS(m,q.layoutExitMuteTriggers),FS(m,q.layoutExitUserInputSubmittedTriggers),FS(m,q.layoutExitUserCancelledTriggers));m.registeredFulfillmentAdapter=void 0;m.registeredSlotAdapter!=null&&(m.registeredSlotAdapter.release(),m.registeredSlotAdapter=
void 0);m.registeredLayoutRenderingAdapter!=null&&(m.registeredLayoutRenderingAdapter.release(),m.registeredLayoutRenderingAdapter=void 0);m=W.adsControlFlowManagerHelper;rX(m,e)&&(m=jgb(m,e.slotType+"_"+e.slotPhysicalPosition))&&m.delete(e.slotId);ma(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);W=_.R(W.adsControlFlowEventListeners);for(m=W.next();!m.done;m=W.next())m=m.value,m.onSlotUnscheduled(e),t&&!b&&ylk(m,e,t)}},ylk=function(W,e,t){Ru(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
e,t);
Ru(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",e,t);W=_.R(W.adsControlFlowEventListeners);for(var b=W.next();!b.done;b=W.next())b=b.value,t&&ylk(b,e,t)},koB=function(W,e){if(rX(W.adsControlFlowManagerHelper,e)!=null&&rX(W.adsControlFlowManagerHelper,e).isOccupyingSlotType()){var t=qE(W.adsControlFlowManagerHelper,e);
if(t&&lF8(W.adsControlFlowManagerHelper,e)){if(rX(W.adsControlFlowManagerHelper,e)!=null){var b=W.adEventLogger,m;var q=((m=v3z.get("abandoned"))==null?void 0:m.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Ru(b,q,e,t);W=rX(W.adsControlFlowManagerHelper,e);W.slotLifecycleStage!=="rendering"&&QX(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(t,"abandoned")}}else{ma(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
e);try{b=rX(W.adsControlFlowManagerHelper,e);if(!b)throw new wk("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");b.slotLifecycleStage!=="enter_requested"&&b.slotLifecycleStage!=="entered"&&b.slotLifecycleStage!=="rendering"&&QX(b.slot,b.slotLifecycleStage,"exitSlot");b.slotLifecycleStage="exit_requested";if(b.registeredSlotAdapter===void 0)throw b.slotLifecycleStage="scheduled",new wk("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
b.registeredSlotAdapter.exit()}catch(Q){Q instanceof wk&&Q.adsClientErrorMessage?(CEN(W.adEventLogger,Q.adsClientErrorMessage,e),_.b0(Q,e,void 0,void 0,Q.aggressivelySample)):(CEN(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",e),_.b0(Q,e))}}}};var XS=function(W,e,t,b,m,q){_.ka.call(this);this.registry=W;this.experimentApiProvider=q;this.slotMap=new Map};
_.Z(XS,_.ka);var jgb=function(W,e){return(W=W.slotMap.get(e))?W:new Map},rX=function(W,e){return jgb(W,e.slotType+"_"+e.slotPhysicalPosition).get(e.slotId)},p0Z=function(W){var e=[];
W.slotMap.forEach(function(t){t=_.R(t.values());for(var b=t.next();!b.done;b=t.next())e.push(b.value.slot)});
return e};
XS.prototype.onSlotEntered=function(W){W=rX(this,W);W.slotLifecycleStage!=="enter_requested"&&QX(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var lF8=function(W,e){W=rX(W,e);return W.hasLayout()&&W.isRendering()},qE=function(W,e){(W=rX(W,e))?W.hasLayout()&&!W.layout&&_.b0("Unexpected empty layout",e):_.b0("Unexpected undefined slotState",e);
return(W==null?void 0:W.layout)||null};
XS.prototype.onSlotExited=function(W){W=rX(this,W);W.slotLifecycleStage!=="exit_requested"&&QX(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
XS.prototype.onLayoutExited=function(W,e){W=rX(this,W);W.isPrimaryLayout(e)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&QX(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var FS=function(W,e){e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=W.registeredLayoutExitTriggerAdapters.get(t.triggerId);b&&(b.unregisterTrigger(t),W.registeredLayoutExitTriggerAdapters.delete(t.triggerId))}},QX=function(W,e,t){_.b0("Slot stage was "+e+" when calling method "+t,W)};var fFo=function(W){_.ka.call(this);this.deps=W;this.JSC$13398_adsControlFlowManager=n3v(this)};
_.Z(fFo,_.ka);var n3v=function(W){var e=new tU(function(t,b,m,q){return new XS(W.deps.registry,t,b,m,q,W.deps.experimentApiProvider)},new Set(lFK(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.w$(W,e);return e};var g3P=function(W,e){_.ka.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=e;this.eventCount=0};
_.Z(g3P,_.ka);g3P.prototype.logEvent=function(W){bB(this,W)};
var ma=function(W,e,t,b){bB(W,e,void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,void 0,b)},Ru=function(W,e,t,b,m){bB(W,e,void 0,void 0,void 0,t,b?b:void 0,void 0,void 0,t.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,m)},CEN=function(W,e,t){bB(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,t,void 0,void 0,void 0,t.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:e})},bB=function(W,e,t,b,m,q,Q,X,I,u,c,v,D){D=D===void 0?0:D;
Tiv(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",q,"layout:",Q,"ping:",X,"Opportunity:",{opportunityType:t,associatedSlotId:b,slotsFromOpportunity:m,triggerBundle:I,adSlotLoggingData:u,adLayoutLoggingData:c});try{var B=function(){W.experimentApiProvider.get();if(e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||_.b0("Empty PACF event type",q,Q);var k=W.eventLoggingSettingsProvider.get();var n;(n=k.alwaysIncludeDebugData)||(k.experimentApiProvider.get(),n=
!1);k=n;n={eventType:e,eventOrder:++W.eventCount};var f={};q&&(f.slotData=BiG(k,q));if(Q){var M={type:Q.layoutType,controlFlowManagerLayer:DCD.get(Q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k&&(M.debugData={layoutId:Q.layoutId});f.layoutData=M}X&&(f.pingData={pingDispatchStatus:X.dispatchStatus,serializedAdPingMetadata:X.ping.serializedAdPingMetadata,pingIndex:X.index});I&&(f.triggerData=S7K(I.trigger,I.category));t&&(f.opportunityData=o3S(k,t,b,m));n.adClientData=f;u&&(n.serializedSlotAdServingData=
u.serializedSlotAdServingDataEntry);c&&(n.serializedAdServingData=c.serializedAdServingDataEntry);v&&(n.errorInfo=v);_.nJ("adsClientStateChange",{adsClientEvent:n})}};
D&&D>0?_.kM(_.g0(),function(){return B()},D):B()}catch(k){Tiv(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.kM(_.g0(),function(){_.b0(k instanceof Error?k:String(k),q,Q,{pacf_message:"exception during pacf logging"})})}};var Jly=function(W,e){g3P.call(this,W,e)};
_.Z(Jly,g3P);var xCh=function(){},Tiv=function(W,e){return _.S(e)};var M6P=function(){var W=new O98;this.JSC$13417_adsControlFlowManager=(new fFo(W)).JSC$13398_adsControlFlowManager},O98=function(){_.ka.call(this);
var W=this;this.experimentApiProvider=new S78(function(){return new xCh});
var e=new S78(function(){return new BiB(W.experimentApiProvider)});
this.adEventLogger=new Jly(this.experimentApiProvider,e);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.Z(O98,_.ka);var sgS=function(){},htk,Iu=function(){htk||(htk=new sgS);
return htk},au=function(W){if(!W.JSC$13428_externallyManagedSlotAdapterCallback){var e=(new M6P).JSC$13417_adsControlFlowManager;
W.JSC$13428_externallyManagedSlotAdapterCallback=e}return W.JSC$13428_externallyManagedSlotAdapterCallback},H9y=function(W,e,t){var b=e.opportunityType,m=Error("Jh");
if(b!==void 0){var q=au(W);o3Z(q,b,void 0,t)}else _.b0(m,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});q=[];if(e.adSlotAndLayoutMetadata!==void 0){e=_.R(e.adSlotAndLayoutMetadata);for(var Q=e.next();!Q.done;Q=e.next()){var X=Q.value;if(Q=X.adSlotMetadata)if(q.push(Q),W.onSlotReceivedExternallyManaged(Q,t),X.adLayoutMetadata){X=_.R(X.adLayoutMetadata);for(var I=X.next();!I.done;I=X.next())W.onLayoutReceivedExternallyManaged(Q,I.value,t)}else t>0&&_.b0("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else t>0&&_.b0("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else t>0&&_.b0("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(b!==void 0)W.onOpportunityProcessedExternallyManaged(b,q,void 0,t);else _.b0(m,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
sgS.prototype.onSlotReceivedExternallyManaged=function(W,e){W=u0(W);if(W instanceof wk)_.b0(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else au(this).onSlotReceivedExternallyManaged(W,e)};
sgS.prototype.onLayoutReceivedExternallyManaged=function(W,e,t){W=u0(W);e=$Cz(e);if(W instanceof wk)_.b0(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(e instanceof cL)_.b0(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else au(this).onLayoutReceivedExternallyManaged(W,e,t)};
sgS.prototype.onOpportunityProcessedExternallyManaged=function(W,e,t,b){var m=[];e=_.R(e);for(var q=e.next();!q.done;q=e.next())q=u0(q.value),q instanceof wk?_.b0(q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):m.push(q);au(this).onOpportunityProcessedExternallyManaged(W,m,t,b)};
var K9B=function(W,e){e=u0(e);if(e instanceof wk)_.b0(e,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var t=au(W);ma(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",e);t=_.R(t.adsControlFlowEventListeners);for(var b=t.next();!b.done;b=t.next())b=rX(b.value,e),b.slotLifecycleStage!=="not_scheduled"&&QX(b.slot,b.slotLifecycleStage,"onSlotScheduled"),b.slotLifecycleStage="scheduled";W=au(W);ma(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);W=_.R(W.adsControlFlowEventListeners);
for(t=W.next();!t.done;t=W.next())t.value.onSlotEntered(e)}},PEr=function(W,e){e=u0(e);
if(e instanceof wk)_.b0(e,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var t=au(W);ma(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);t=_.R(t.adsControlFlowEventListeners);for(var b=t.next();!b.done;b=t.next())b.value.onSlotExited(e);W=au(W);ma(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",e);W=_.R(W.adsControlFlowEventListeners);for(t=W.next();!t.done;t=W.next())t.value.onSlotUnscheduled(e)}},V6B=function(W,e,t){e=u0(e);
t=$Cz(t);if(e instanceof wk)_.b0(e,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(t instanceof cL)_.b0(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var b=au(W);Ru(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",e,t);b=_.R(b.adsControlFlowEventListeners);for(var m=b.next();!m.done;m=b.next())m.value.onLayoutScheduled(e,t);W=au(W);Ru(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,t);W=_.R(W.adsControlFlowEventListeners);
for(b=W.next();!b.done;b=W.next())$Ck(b.value,e,t)}},wX=function(W,e,t){e=u0(e);
t=$Cz(t);if(e instanceof wk)_.b0(e,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(t instanceof cL)_.b0(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var b=au(W);Ru(b.adEventLogger,Goc("normal"),e,t);b=_.R(b.adsControlFlowEventListeners);for(var m=b.next();!m.done;m=b.next())m.value.onLayoutExited(e,t,"normal");W=au(W);W=_.R(W.adsControlFlowEventListeners);for(b=W.next();!b.done;b=W.next())ylk(b.value,e,t)}};_.uB=_.NN(function(W){var e=_.Ez(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},e);var t=e.data;e=e.customCommandResolver;var b=(delete W.data,delete W.customCommandResolver,W),m=_.zT("ad-image-view-model");_.Av(m,function(){return t().interaction},e,function(){var X;
return(X=b.listenToTapEvent)==null?void 0:X.call(b)});
_.ev(m,{visibilityCallback:function(X){var I,u=(I=t().interaction)==null?void 0:I.onFirstVisible;X&&(u&&_.K4(u),b.setOnErrorHandler()&&koG(m))},
showOption:_.Ev});W=_.R(_.up(!1,void 0,"eiYvIe"));var q=W.next().value,Q=W.next().value;return _.w("ad-image-view-model",{class:function(){var X,I=[((X=t().interaction)==null?0:X.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],u;((u=b.isGridViewEnabled)==null?0:u.call(b))&&I.push("ytwAdImageViewModelHostInGridView");return I.join(" ")},
el:m,"on:touchend":_.Be(function(){var X;((X=b.setTouchEndHandler)==null?0:X.call(b))&&!q()&&(m.value.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1})},_.w("div",{class:"ytwAdImageViewModelHostImageContainer"},_.w(_.A_,{data:function(){var X;
return{sources:t().imageSources,contentMode:(X=t().imageProperties)==null?void 0:X.contentMode}},
alt:function(){var X,I;return((X=t().interaction)==null?void 0:(I=X.accessibility)==null?void 0:I.label)||""},
targetHeight:b.targetHeight,targetWidth:b.targetWidth,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,useWidth:b.useWidth,style:function(){var X,I;return"vertical-align: bottom;"+(((X=t().background)==null?0:X.color)?"background-color:"+_.sr((I=t().background)==null?void 0:I.color)+";":"")},
className:function(){return b.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var X,I;return(I=(X=b.setDraggable)==null?void 0:X.call(b))!=null?I:void 0}})))},"gb");var i9h=_.NN(function(W){var e=W.data,t=W.listenToTapEvent,b=_.zT("ad-button-hover-overlay-view-model");_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Av(b,function(){return e().interaction},void 0,function(){return t==null?void 0:t()});
_.ev(b,{visibilityCallback:function(q){var Q,X=(Q=e().interaction)==null?void 0:Q.onFirstVisible;q&&X&&_.K4(X)},
showOption:_.Ev});var m=function(){};
return _.w("ad-button-hover-overlay-view-model",{"on:click":_.Be(function(){if(_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")){var q,Q=(q=e().interaction)==null?void 0:q.onTap;Q&&_.q2(b.value,"yt-navigate",{endpoint:_.Mk(Q)})}}),
class:function(){var q;return((q=e().interaction)==null?0:q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:b},function(){return _.S("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.w(_.nU,{data:function(){return e().button}},{adButtonViewModel:function(q){return _.w(_.NX,{data:q.data,
customCommandResolver:m})}}):_.w(_.nU,{data:function(){return e().button}},{adButtonViewModel:_.NX})}())},"hb");var vL;_.mM(_.NN(function(W){var e=W.data;var t=_.zT("compact-landscape-no-button-layout-view-model");_.S("stop_av_measurement_on_detach")&&_.fh(function(){DH(t)});
_.Av(t,function(){return e().interaction},void 0,function(){return!0});
_.ev(t,{visibilityCallback:function(q){if(q){var Q;(q=(Q=e().interaction)==null?void 0:Q.onFirstVisible)&&_.K4(q);var X;if(Q=(X=e().adLayoutData)==null?void 0:X.activeViewData)G_(t,Q),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DH(t)})}else _.S("stop_av_measurement_on_detach")&&DH(t)},
showOption:_.Ev,hideOption:Aa});W=_.R(_.up(!1,void 0,"yzu6qe"));var b=W.next().value,m=W.next().value;return _.w("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:t,"on:mouseenter":_.Be(function(){m(!0)}),
"on:mouseleave":_.Be(function(){m(!1)})},_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.$D({"max-width":function(){return _.S("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.w("div",{class:function(){var q;
a:{var Q;switch((q=_.l(e().thumbnailImage,T0P))==null?void 0:(Q=q.imageProperties)==null?void 0:Q.renderingAspect){case "RENDERING_ASPECT_SQUARE":q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":q="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}q=void 0}return q}},_.w(_.nU,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(q){return _.w(_.uB,
{data:q.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.G,{cond:function(){var q,Q,X;
return(q=_.l(e().thumbnailImage,T0P))==null?void 0:(Q=q.imageProperties)==null?void 0:(X=Q.overlayIcon)==null?void 0:X.iconImage},
then:function(q){return _.w(_.A_,{data:q,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.w("div",{class:function(){return b()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.w(_.nU,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(q){return _.w(i9h,
{data:q.data,
listenToTapEvent:!0})}}))),_.w("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.w(_.nU,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(q){return _.w(t9b,{data:q.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=_.zT("square-image-layout-view-model");_.S("stop_av_measurement_on_detach")&&_.fh(function(){DH(t)});
var b=_.MA(_.KU);_.Av(t,function(){return e().interaction});
_.ev(t,{visibilityCallback:function(Q){if(Q){var X;(Q=(X=e().interaction)==null?void 0:X.onFirstVisible)&&_.K4(Q);var I;if(X=(I=e().adLayoutData)==null?void 0:I.activeViewData)G_(t,X),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DH(t)})}else _.S("stop_av_measurement_on_detach")&&DH(t)},
showOption:_.Ev,hideOption:Aa});W={};var m={},q={};return _.w("square-image-layout-view-model",{class:_.ve("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=b,W)),el:t},_.w("div",{class:_.ve("ytwSquareImageLayoutViewModelHostImage",(m.ytwSquareImageLayoutViewModelHostColumnImage=b,m))},function(){return _.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(Q){return _.w(_.uB,{data:Q.data,
isGridViewEnabled:b,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.w("div",{class:_.ve("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=b,q))},_.w(_.nU,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:t9b}),function(){return _.w(_.nU,{data:function(){return e().adButton}},{adButtonViewModel:function(Q){var X={};
return _.w(_.NX,{data:Q.data,className:_.ve((X.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,X.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=b,X))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=W.noBottomMargin;var b=W.typographyBump;var m=_.zT("top-landscape-image-layout-view-model");_.S("stop_av_measurement_on_detach")&&_.fh(function(){DH(m)});
_.S("enable_web_home_top_landscape_image_layout_level_click")&&_.Av(m,function(){return e().interaction},void 0,function(){return!0});
W=function(){return e().interaction};
W!==void 0&&W!==null||_.Kt(Error("Kh"));_.ev(m,{visibilityCallback:function(u){if(u){var c;(u=(c=e().interaction)==null?void 0:c.onFirstVisible)&&_.K4(u);var v;if(c=(v=e().adLayoutData)==null?void 0:v.activeViewData)G_(m,c),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&DH(m)})}else _.S("stop_av_measurement_on_detach")&&DH(m)},
showOption:_.Ev,hideOption:Aa});var q=function(){var u,c,v;return(u=_.l(e().thumbnailImage,T0P))==null?void 0:(c=u.background)==null?void 0:(v=c.backgroundImageSource)==null?void 0:v.imageSources};
W=_.R(_.up(!1,void 0,"GIwTMc"));var Q=W.next().value,X=W.next().value,I=function(){return Q()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.w("top-landscape-image-layout-view-model",{class:function(){var u;return((u=e().interaction)==null?0:u.onTap)&&_.S("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:m,"on:mouseenter":_.Be(function(){X(!0)}),
"on:mouseleave":_.Be(function(){X(!1)})},_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.w(_.G,{cond:function(){return q()&&q().length>0},
then:function(){return _.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.$D({top:"0","background-image":function(){return"url("+String(q()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.w(_.G,{cond:function(){return!!e().adButtonHoverOverlay},
then:function(){return _.w("div",{class:I},_.w(_.nU,{data:function(){return e().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:i9h}))}}),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.w(_.nU,{data:function(){return e().thumbnailImage}},{adImageViewModel:function(u){return _.w(_.uB,{data:u.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.S("enable_web_home_top_landscape_image_layout_level_click")})}})),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.w(_.A_,{data:{sources:[{clientResource:{imageName:_.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.w("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.w(_.nU,{data:function(){return e().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return _.w(t9b,{data:u.data,
noBottomMargin:function(){return t==null?void 0:t()},
listenToTapEvent:function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return b==null?void 0:b()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.Eu,
noBottomMargin:_.Eu,typographyBump:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=W.typographyBump;var b=_.zT("video-display-button-group-layout-view-model");_.ev(b,{visibilityCallback:function(m){if(m){var q;(m=(q=e().interaction)==null?void 0:q.onFirstVisible)&&_.K4(m);var Q;q=(Q=e().adLayoutData)==null?void 0:Q.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&q&&G_(b,q)}},
showOption:_.Ev,hideOption:Aa});return _.w("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:b},_.w("div",null,_.w(_.nU,{data:function(){return e().videoLockup}},{lockupViewModel:function(m){return _.w(_.bO,{data:m.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:t})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.Eu,
noBottomMargin:_.Eu,typographyBump:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=W.className;var b=W.typographyBump;var m=_.zT("video-display-compact-button-group-layout-view-model");_.ev(m,{visibilityCallback:function(q){if(q){var Q;(q=(Q=e().interaction)==null?void 0:Q.onFirstVisible)&&_.K4(q);var X;(Q=(X=e().adLayoutData)==null?void 0:X.activeViewData)&&G_(m,Q)}},
showOption:_.Ev});return _.w("video-display-compact-button-group-layout-view-model",{el:m,class:_.ve("videoDisplayCompactButtonGroupLayoutViewModelHost",t)},_.w(_.nU,{data:function(){return e().videoLockup}},{lockupViewModel:function(q){return _.w(_.bO,{data:q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Eu,
className:_.Eu,typographyBump:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=W.typographyBump;var b=_.zT("video-display-full-layout-view-model");_.ev(b,{visibilityCallback:function(m){if(m){var q;(m=(q=e().interaction)==null?void 0:q.onFirstVisible)&&_.K4(m);var Q;q=(Q=e().adLayoutData)==null?void 0:Q.activeViewData;!_.S("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&q&&G_(b,q)}},
showOption:_.Ev,hideOption:Aa});return _.w("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:b},_.w("div",null,_.w(_.nU,{data:function(){return e().videoLockup}},{lockupViewModel:function(m){return _.w(_.bO,{data:m.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:t})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.Eu,
noBottomMargin:_.Eu,typographyBump:_.Eu}});_.Y7o=_.NN(function(W){var e=W.data;W=_.zT("ad-card-badge-view-model");return _.w("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.w(_.G,{cond:function(){return e().imageBadge},
then:function(t){return _.w(_.A_,{data:t,alt:""})}}))},"ob");var zth=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;W=_.zT("carousel-ad-card-image-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});return _.w("carousel-ad-card-image-view-model",{class:function(){var b;return((b=e().interaction)==null?0:b.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:W,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(b){return _.w(_.uB,{data:b.data,
customCommandResolver:t})}}),_.w("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.w(_.nU,{data:function(){return e().badge}},{adCardBadgeViewModel:_.Y7o})),_.w(_.jN,{model:{color:4}}))},"pb");var UCr=_.NN(function(W){var e=_.R(_.up(0,void 0,"o9Bzd")),t=e.next().value;e.next();var b=e.next().value,m=_.R(_.up(!1,void 0,"KLdzYe"));e=m.next().value;var q=m.next().value,Q;_.fh(function(){clearTimeout(Q)});
m=_.Be(function(){var u;((u=W.animate)==null?0:u.call(W))?(q(!0),Q=setTimeout(function(){q(!1);X()},200)):X();
return!1});
var X=function(){b(function(u){return(u+W.numShownItems())%W.data().length})},I={};
return _.w("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.w("div",{class:_.ve("ytwHorizontalCarouselCarouselWrapper")},_.w("div",{class:_.ve("ytwHorizontalCarouselCarouselInnerWrapper",(I.ytwHorizontalCarouselAnimating=e,I))},_.w(_.lV,{each:W.data,keyBy:"INDEX"},function(u,c){return _.w("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.$D({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var v=c-t();v<0&&(v+=W.data().length);return v}})},W.children(u,c))}))),_.w("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":m},W.nextButton()))},"qb");var L9h=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;var b=W.expansive;W=_.zT("carousel-ad-card-collection-view-model");_.ev(W,{visibilityCallback:function(m){var q,Q=(q=e().interaction)==null?void 0:q.onFirstVisible;m&&Q&&_.K4(Q)},
showOption:_.Ev});return _.w("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:W},_.w(UCr,{data:function(){var m;return((m=e())==null?void 0:m.carouselAdCards)||[]},
nextButton:function(){return _.w(_.nU,{data:function(){return e().nextButton}},{buttonViewModel:function(m){var q=m.data;
return _.w(_.MV,{data:function(){return(b==null?0:b())?Object.assign({},q(),{style:"mono"}):q()},
className:_.S("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(m){return _.w(_.nU,{data:m},{carouselAdCardImageViewModel:function(q){return _.w(zth,{data:q.data,customCommandResolver:t})}})}))},"rb");var E3r=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;var b=W.className;var m=W.buttonClassName;var q=W.animationEntityKey;var Q=W.expansive;return _.w("carousel-button-view-model",{class:_.ve("ytwCarouselButtonViewModelHost",b)},_.w(_.nU,{data:function(){return e().carousel}},{carouselAdCardCollectionViewModel:function(X){return _.w(L9h,{data:X.data,
customCommandResolver:t,expansive:Q})}}),_.w(_.nU,{data:function(){return e().button}},{adButtonViewModel:function(X){var I=X.data;
return _.w(_.NX,{data:function(){return(Q==null?0:Q())?Object.assign({},I(),{style:"AD_BUTTON_STYLE_TONAL"}):I()},
className:m,customCommandResolver:t,animationEntityKey:q})}}))},"sb");_.AlU=_.NN(function(W){var e=W.data;W=W.className;var t=_.zT("pivot-button-view-model");_.nt(function(){var b;((b=e())==null?0:b.backgroundColor)&&t.value.setAttribute("data-background-color",String(e().backgroundColor))});
return _.w("pivot-button-view-model",{el:t,class:_.ve("ytwPivotButtonViewModelHost",W)},_.w(_.XN,{command:function(){var b=e();b=b.onClickCommand?_.Mk(b.onClickCommand):b.contentDescription?_.dO(b.contentDescription):void 0;return b},
ariaLabel:function(){return e().contentDescription}},_.w(_.G,{cond:function(){return e().thumbnail},
then:function(b){return _.w(_.A_,{data:b,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.w(_.G,{cond:function(){return e().icon},
then:function(b){return _.w(_.kD,{icon:function(){return b().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.Nie=_.NN(function(W){var e=W.data;var t=W.buttonShapeOverrideables;return _.w("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.w(_.nU,{data:function(){return e().buttonViewModels}},{buttonViewModel:function(b){return _.w(_.MV,{data:b.data,
buttonOverrides:t})},
likeButtonViewModel:function(b){return _.w(_.jt,{data:b.data,buttonShapeOverrideables:t})},
dislikeButtonViewModel:function(b){return _.w(_.yA,{data:b.data,buttonShapeOverrideables:t})},
toggleButtonViewModel:function(b){return _.w(_.fU,{data:b.data,buttonShapeOverrides:t})}}))},"ub");var dCy=_.NN(function(W){var e=W.avatar;var t=W.headline;var b=W.badge;var m=W.description;var q=W.expansive;W={};return _.w("yt-ad-metadata-shape",{class:_.ve("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=q,W))},_.w("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.w(_.G,{cond:e,then:function(Q){return _.w(_.NHy,{data:function(){return(q==null?0:q())?Object.assign({},Q(),{size:"AD_AVATAR_SIZE_MPLUS"}):Q()}})}}),_.w("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.w(_.WL,{text:t,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.w(_.G,{cond:b,then:function(Q){return _.w(_.e2,{data:function(){return(q==null?0:q())?Object.assign({},Q(),{style:"AD_BADGE_STYLE_STARK"}):Q()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.w("h2",{class:"ytAdMetadataShapeHostDescription"},_.w(_.WL,{text:m,
linkInheritColor:!0})))},"vb");var WhU=_.NN(function(W){var e=W.data;var t=W.onShow;var b=W.expansive;W=_.zT("reels-ad-card-buttoned-view-model");_.Av(W,function(){return e().interaction});
_.nt(function(){var q,Q=(q=e().animatedRenderingConfig)==null?void 0:q.delayedSecondsToVisible;if(Q){var X=setTimeout(t,Q*1E3);_.fh(function(){clearTimeout(X)})}});
var m={};return _.w("reels-ad-card-buttoned-view-model",{class:_.ve(function(){var q;return((q=e().interaction)==null?0:q.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(m.ytwReelsAdCardButtonedViewModelHostExpansive=b,m)),
el:W},_.w(dCy,{avatar:function(){return _.l(e().avatar,fn8)},
headline:function(){return e().headline},
badge:function(){return _.l(e().adBadge,gBB)},
description:function(){return e().description},
expansive:b}),_.w(_.nU,{data:function(){return e().ctaButton}},{adButtonViewModel:function(q){var Q=q.data;
return _.w(_.NX,{data:function(){return(b==null?0:b())?Object.assign({},Q(),{style:"AD_BUTTON_STYLE_FILLED"}):Q()}})}}))},"wb");var eWS=_.NN(function(W){var e=W.data;W=W.expansive;var t=_.zT("reels-ad-metadata-view-model");_.S("web_ad_metadata_clickable")&&_.Av(t,function(){return e().interaction});
var b={};b=_.DT("ytwReelsAdMetadataViewModelHost",(b.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.S("web_ad_metadata_clickable"),b));return _.w("reels-ad-metadata-view-model",{class:b,el:t},_.w(dCy,{avatar:function(){return _.l(e().avatar,fn8)},
headline:function(){return e().headline},
badge:function(){return _.l(e().adBadge,gBB)},
description:function(){return e().description},
expansive:W}))},"xb");var tRZ={iconPosition:"icon-with-label",size:"L"},bqP=_.NN(function(W){var e=W.data;var t=W.overlayDensity;W=_.zT("reels-player-overlay-layout-view-model");var b=_.LD(t,0),m=function(){var v;return(v=e().reelsAdCardButtonedEntityKey)!=null?v:""},q=function(){return m()+"/ad_button"},Q=_.D_(pYZ,m),X=function(){var v,D;
return(D=(v=Q())==null?void 0:v.value)!=null?D:!1},I=_.MA(g3G),u=function(){return Object.assign({},tRZ,(I()||b()===2)&&{style:"overlay-dark"})};
t={};var c={};return _.w("reels-player-overlay-layout-view-model",{class:_.ve("ytwReelsPlayerOverlayLayoutViewModelHost",(t.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!e().extension},t.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},t)),
"overlay-density":function(){return String(b())},
el:W},_.w("div",{class:_.ve("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(c.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},c))},_.w("div",{"aria-hidden":function(){return X()},
class:_.ve("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.$D({"transition-duration":function(){return xCv(e())}})},_.w(_.nU,{data:function(){return e().adMetadata}},{reelsAdMetadataViewModel:function(v){return _.w(eWS,{data:v.data,
expansive:function(){return b()===1}})}}),_.w(_.G,{cond:function(){return e().extension},
then:function(v){return _.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.w(_.nU,{data:v},{adButtonViewModel:function(D){return _.w(_.NX,{data:D.data,animationEntityKey:q,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(D){return _.w(E3r,{data:D.data,animationEntityKey:q,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return b()===1}})}}))}})),_.w("div",{"aria-hidden":function(){return!X()},
class:_.ve("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.$D({"transition-duration":function(){return xCv(e())}})},_.w(_.nU,{data:function(){return e().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(v){return _.w(WhU,{data:v.data,
onShow:function(){_.Uz(_.SX("booleanEntity",m(),{key:m(),value:!0}))},
expansive:function(){return b()===1}})}}))),_.w("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.w(_.nU,{data:function(){return e().actions}},{reelActionBarViewModel:function(v){return _.w(_.Nie,{data:v.data,
buttonShapeOverrideables:u})}}),_.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:function(v){return _.w(_.MV,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},u(),{type:"tonal"})}})}}),_.w(_.nU,{data:function(){return e().pivotButton}},{pivotButtonViewModel:function(v){return _.w(_.AlU,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.mM(bqP,"reels-player-overlay-layout-view-model",{props:{data:_.Eu,overlayDensity:_.Eu}});var cV=function(){var W=_.O.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.Z(cV,_.O);_.r=cV.prototype;
_.r.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]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.S("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]]"}}}}}};
_.r.ready=function(){var W=this;eqg(function(){W.isAttached&&Qg(W.JSC$13472_storedAdSlotMetadata,W.JSC$13472_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&wX(Iu(),W.JSC$13472_storedAdSlotMetadata,W.JSC$13472_storedAdLayoutMetadata)})};
_.r.attached=function(){Qg(this.JSC$13472_storedAdSlotMetadata,this.JSC$13472_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&V6B(Iu(),this.JSC$13472_storedAdSlotMetadata,this.JSC$13472_storedAdLayoutMetadata)};
_.r.detached=function(){Qg(this.JSC$13472_storedAdSlotMetadata,this.JSC$13472_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wX(Iu(),this.JSC$13472_storedAdSlotMetadata,this.JSC$13472_storedAdLayoutMetadata)};
_.r.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.r.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13472_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13472_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13472_storedAdLayoutMetadata!==void 0&&this.JSC$13472_storedAdSlotMetadata!==void 0&&wX(Iu(),this.JSC$13472_storedAdSlotMetadata,this.JSC$13472_storedAdLayoutMetadata),V6B(Iu(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13472_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13472_storedAdSlotMetadata=this.adSlotMetadata)};
_.Ec.Object.defineProperties(cV.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
cV.prototype.onAdMetadataChanged=cV.prototype.onAdMetadataChanged;cV.prototype.onTypographyBumpChanged=cV.prototype.onTypographyBumpChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cV.prototype,"rendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],cV.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],cV.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],cV.prototype,"noBottomMargin",void 0);_.P([_.J(),_.Y("design:type",Object)],cV.prototype,"overlayDensity",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],cV.prototype,"typographyBump",void 0);_.P([_.T("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cV.prototype,"adLayoutMetadata",null);_.P([_.J(),_.Y("design:type",Object)],cV.prototype,"adSlotMetadata",void 0);
_.P([_.vG("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Y("design:type",HTMLElement)],cV.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.P([_.ul("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"onTypographyBumpChanged",null);_.P([_.ul("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cV.prototype,"onAdMetadataChanged",null);
_.P([_.h({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],cV);
_.H(cV,"ytd-in-feed-ad-layout-renderer",function(){if(UFb!==void 0)return UFb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return UFb=W},
{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var mOr;var rwy;var vV=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.Z(vV,_.O);_.r=vV.prototype;_.r.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.r.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.r.onYtToggleButton=function(W){var e,t=(e=this.data)==null?void 0:e.videoReminderEntityKey;t&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",t,{key:t,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.r.attached=function(){this.updateChannelBanner()};
_.r.dataChanged=function(){this.updateChannelBanner()};
_.r.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.l((W=this.data)==null?void 0:W.cta,_.sW)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.r.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.rd(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.XB(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.S("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.r.onPlayerReady=function(){this.onIronResize()};
_.r.maybeFlushDebouncer=function(){_.S("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var e;W=(e=W.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0];$iv(W==null?void 0:W.polymerController)})};
_.r.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.rz(this.hostElement).querySelector("#live-description"),e;W&&((e=this.data)==null?0:e.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
vV.prototype.onIronResize=vV.prototype.onIronResize;vV.prototype.videoReminderStateChanged=vV.prototype.videoReminderStateChanged;vV.prototype.dataChanged=vV.prototype.dataChanged;vV.prototype.onYtToggleButton=vV.prototype.onYtToggleButton;_.P([_.y(_.gf),_.Y("design:type",Object)],vV.prototype,"ironResizableBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],vV.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vV.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.videoReminderEntityKey"],selector:kAG}),_.Y("design:type",Object)],vV.prototype,"videoReminderState",void 0);
_.P([_.J({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.Y("design:type",Boolean)],vV.prototype,"rounded",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Y("design:type",Boolean)],vV.prototype,"hasLiveDescription",void 0);_.P([_.J({reflectToAttribute:!0,value:_.S("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Y("design:type",Boolean)],vV.prototype,"resizableAdBannerSafariFix",void 0);
_.P([_.J({reflectToAttribute:!0,value:_.S("align_three_dot_menu_with_title_description")}),_.Y("design:type",Boolean)],vV.prototype,"menuFix",void 0);_.P([_.GF("yt-formatted-string"),_.Y("design:type",Array)],vV.prototype,"formattedStrings",void 0);_.P([_.vG("#cta-button"),_.Y("design:type",HTMLElement)],vV.prototype,"ctaButton",void 0);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vV.prototype,"onYtToggleButton",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"dataChanged",null);_.P([_.ul("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"videoReminderStateChanged",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vV.prototype,"onIronResize",null);
_.P([_.h({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],vV);
_.H(vV,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(rwy!==void 0)return rwy;var W=document.createElement("template");_.p(W,'\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      <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>\n  </div>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rwy=W},{mode:1});var qNU;var G7=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.Z(G7,_.O);_.r=G7.prototype;_.r.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.r.onExpandedChanged=function(){this.expanded&&_.Qx(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.r.onMouseOver=function(){this.maybeExpand()};
_.r.onTap=function(){this.maybeExpand()};
_.r.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.r.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.r.onExpandableTileUnlock=function(){this.isLocked=!1};
G7.prototype.onTap=G7.prototype.onTap;G7.prototype.onMouseOver=G7.prototype.onMouseOver;G7.prototype.onExpandedChanged=G7.prototype.onExpandedChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],G7.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],G7.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],G7.prototype,"expanded",void 0);_.P([_.BG("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G7.prototype,"onExpandedChanged",null);_.P([_.wz("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G7.prototype,"onMouseOver",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G7.prototype,"onTap",null);
_.P([_.h({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],G7);
_.H(G7,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(qNU!==void 0)return qNU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qNU=W},{mode:1});var RWB;var DG=function(){var W=_.O.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$13484_playerManager=null;W.JSC$13484_mastheadCounter=new T9S;return W};
_.Z(DG,_.O);_.r=DG.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13484_playerManager=new j1)};
_.r.ready=function(){var W=this;this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var e=_.rz(this.hostElement).querySelector("#player");this.useYtdPlayer?e.style.display="none":(this.ytdPlayer.style.display="none",veo(this.JSC$13484_playerManager,e,function(){W.onPlaybackEnded()}),_.rz(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var t;
((t=W.data)==null?0:t.navigationEndpoint)&&_.q2(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.r.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13484_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.r.attached=function(){var W=this;_.hc(function(){W.maybePlayVideo()})};
_.r.maybePlayVideo=function(){var W=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$13484_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$13484_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.r.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13484_playerManager.stopVideo()};
_.r.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,e={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else Dih(this.JSC$13484_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(GpZ(this.JSC$13484_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.r.getPlayerPromise=function(){return this.JSC$13484_playerManager.getPlayerPromise()};
_.r.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13484_playerManager.mute():this.JSC$13484_playerManager.unMute()};
_.r.onYtNavigate=function(W){var e=GxQ(W.detail.endpoint),t=D$G(this.data.clickthroughReportingData);e&&t&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=t:_.Aj(e,t,30))};
_.r.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.r.onExpandedChanged=function(){this.expanded?(_.Qx(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.r.onMouseOver=function(){this.maybeExpand()};
_.r.onTap=function(){this.maybeExpand()};
_.r.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.r.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.r.onExpandableTileUnlock=function(){this.isLocked=!1};
_.r.lockAndCollapseExpandableTiles=function(){_.RT(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.r.unlockExpandableTiles=function(){_.RT(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.r.setupYtdPlayer=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.ytdPlayer.getPlayerPromise(),2);e=t.yieldResult;e.addEventListener("onStateChange",function(b){W.onPlayerStateChange(b)});
e.addEventListener("onCueRangeExit",function(b){W.onCueRangeExit(b)});
_.u8(t)})};
_.r.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var e=W.getCurrentTime(),t,b,m=e+((b=(t=this.data)==null?void 0:t.playbackDurationMs)!=null?b:0)/1E3;W.addCueRange("playback",e,m);this.JSC$13484_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.r.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.r.toggleMute=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.ytdPlayer.getPlayerPromise(),2);t=b.yieldResult;W?t.mute():t.unMute();_.u8(b)})};
DG.prototype.onTap=DG.prototype.onTap;DG.prototype.onMouseOver=DG.prototype.onMouseOver;DG.prototype.onExpandedChanged=DG.prototype.onExpandedChanged;DG.prototype.onYtNavigate=DG.prototype.onYtNavigate;DG.prototype.onYtToggleButton=DG.prototype.onYtToggleButton;DG.prototype.dataChanged=DG.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],DG.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],DG.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],DG.prototype,"expanded",void 0);_.P([_.J(),_.Y("design:type",Object)],DG.prototype,"buttonOverrides",void 0);
_.P([_.J(),_.Y("design:type",Object)],DG.prototype,"useYtdPlayer",void 0);_.P([_.vG("#ytd-player"),_.Y("design:type",Object)],DG.prototype,"ytdPlayer",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DG.prototype,"dataChanged",null);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DG.prototype,"onYtToggleButton",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DG.prototype,"onYtNavigate",null);_.P([_.BG("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DG.prototype,"onExpandedChanged",null);_.P([_.wz("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DG.prototype,"onMouseOver",null);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DG.prototype,"onTap",null);_.P([_.h({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],DG);
_.H(DG,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(RWB!==void 0)return RWB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RWB=W},{mode:1});var Q9Z;var Sr=function(){return _.O.apply(this,arguments)||this};
_.Z(Sr,_.O);Sr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Sr.prototype.onShow=function(){var W=_.rz(this.hostElement).querySelector("#live-description"),e;W&&((e=this.data)==null?0:e.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Sr.prototype.onYtToggleButton=function(W){var e,t=(e=this.data)==null?void 0:e.videoReminderEntityKey;t&&this.ytdReduxBehavior.dispatch(_.SX("upcomingEventReminderStateEntity",t,{key:t,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Sr.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.l((W=this.data)==null?void 0:W.cta,_.sW)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Sr.prototype.videoReminderStateChanged=Sr.prototype.videoReminderStateChanged;Sr.prototype.onYtToggleButton=Sr.prototype.onYtToggleButton;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Sr.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Sr.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.videoReminderEntityKey"],selector:kAG}),_.Y("design:type",Object)],Sr.prototype,"videoReminderState",void 0);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Sr.prototype,"onYtToggleButton",null);_.P([_.ul("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sr.prototype,"videoReminderStateChanged",null);
_.P([_.h({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Sr);
_.H(Sr,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Q9Z!==void 0)return Q9Z;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Q9Z=W},{mode:_.Qe("kevlar_poly_si_batch_j065")?1:2});var Fho;var BV=function(){var W=_.O.apply(this,arguments)||this;W.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$13492_playerManager=null;W.JSC$13492_mastheadCounter=new T9S;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.Z(BV,_.O);_.r=BV.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$13492_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13492_playerManager=new j1)};
_.r.ready=function(){var W=this;this.JSC$13492_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var e;(e=this.embeddedPlayer)==null||e.remove()}else{var t;(t=this.ytdPlayer)==null||t.remove();veo(this.JSC$13492_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.q2(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.r.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13492_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.r.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var e=!this.data.disableAutoPlayback,t,b={autoplay:e,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((t=this.data.playbackStartMs)!=null?t:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(e?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else Dih(this.JSC$13492_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(GpZ(this.JSC$13492_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13492_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.RT(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$13492_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.r.getPlayerPromise=function(){return this.JSC$13492_playerManager.getPlayerPromise()};
_.r.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13492_playerManager.mute():this.JSC$13492_playerManager.unMute()};
_.r.onYtNavigate=function(W){var e=GxQ(W.detail.endpoint),t=D$G(this.data.clickthroughReportingData);e&&t&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=t:_.Aj(e,t,30))};
_.r.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13492_playerManager.stopVideo()};
_.r.setupYtdPlayer=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.ytdPlayer.getPlayerPromise(),2);e=t.yieldResult;e.addEventListener("onStateChange",function(b){W.onPlayerStateChange(b)});
e.addEventListener("onCueRangeExit",function(b){W.onCueRangeExit(b)});
_.u8(t)})};
_.r.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var e=W.getCurrentTime(),t,b,m=e+((b=(t=this.data)==null?void 0:t.playbackDurationMs)!=null?b:0)/1E3;W.addCueRange("playback",e,m);_.RT(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13492_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.r.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.r.toggleMute=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.ytdPlayer.getPlayerPromise(),2);t=b.yieldResult;W?t.mute():t.unMute();_.u8(b)})};
_.Ec.Object.defineProperties(BV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,e;if(!((W=this.data)==null?0:(e=W.accessibilityData)==null?0:e.label))return"Ad primary link";var t,b;return _.Gv("AD_TITLE",{title:(t=this.data)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label})}}});
BV.prototype.onYtMastheadHidden=BV.prototype.onYtMastheadHidden;BV.prototype.onYtNavigate=BV.prototype.onYtNavigate;BV.prototype.onYtToggleButton=BV.prototype.onYtToggleButton;BV.prototype.dataChanged=BV.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],BV.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],BV.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],BV.prototype,"useYtdPlayer",void 0);_.P([_.vG("ytd-toggle-button-renderer"),_.Y("design:type",Object)],BV.prototype,"muteButton",void 0);_.P([_.J(),_.Y("design:type",Object)],BV.prototype,"buttonOverrides",void 0);
_.P([_.T("data.accessibilityData.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],BV.prototype,"titleAriaLabel",null);_.P([_.vG("#replay-button"),_.Y("design:type",Object)],BV.prototype,"replayButton",void 0);_.P([_.vG("#player-container"),_.Y("design:type",Object)],BV.prototype,"playerContainer",void 0);_.P([_.vG("#player"),_.Y("design:type",Object)],BV.prototype,"embeddedPlayer",void 0);_.P([_.vG("#ytd-player"),_.Y("design:type",Object)],BV.prototype,"ytdPlayer",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BV.prototype,"dataChanged",null);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BV.prototype,"onYtToggleButton",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],BV.prototype,"onYtNavigate",null);
_.P([_.wz("yt-masthead-hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BV.prototype,"onYtMastheadHidden",null);_.P([_.h({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],BV);
_.H(BV,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Fho!==void 0)return Fho;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Fho=W},{mode:2});var XtP;var ou=function(){var W=_.O.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.UZ();W.JSC$13496_activeViewMeasurementDataResolver=_.UZ();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.Z(ou,_.O);_.r=ou.prototype;_.r.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"}}}};
_.r.ready=function(){var W=this;_.rz(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(e){if(e.detail.actionName==="yt-service-request"){var t=e.detail.args[1];t.videoMastheadAdMuteCommand&&(W.collapseAd(t.videoMastheadAdMuteCommand.encryptedMastheadId),e.stopPropagation())}})};
_.r.attached=function(){var W=this;_.hc(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(e){if(!W.collapsed){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,ia(t.baseUrl,t.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$13496_activeViewMeasurementDataResolver.promise.then(function(e){W.ytdActiveViewBehavior.enableActiveViewMeasurement(e,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var e;((e=this.data)==null?0:e.activeView)&&this.JSC$13496_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.r.computeWidescreen=function(W){var e;return!!(W&&((e=_.l(W,pNr))==null?0:e.isWidescreen))};
_.r.computeExpandable=function(W){return!!(W&&W.length>0)};
_.r.onIronResize=function(){if(this.expandable){var W=_.rz(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.r.handleMuteAd=function(){this.collapseAd(null)};
_.r.restoreCollapsedState=function(W){this.collapsed=_.B6().get("HIDDEN_MASTHEAD_ID")===W};
_.r.collapseAd=function(W){if(W){var e=_.B6();e.set("HIDDEN_MASTHEAD_ID",W);e.save()}(W=_.rz(this.hostElement).querySelector("#video"))&&_.q2(W,"yt-masthead-hidden");this.collapsed=!0};
_.r.expandAd=function(){var W=_.B6();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.r.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
ou.prototype.onIronResize=ou.prototype.onIronResize;ou.prototype.dataChanged=ou.prototype.dataChanged;_.P([_.y(_.gf),_.Y("design:type",Object)],ou.prototype,"ironResizableBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],ou.prototype,"ytdActiveViewBehavior",void 0);_.P([_.y(_.xO),_.Y("design:type",Object)],ou.prototype,"ytdGridStateAwareBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ou.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ou.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Y("design:type",Boolean)],ou.prototype,"widescreen",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Y("design:type",Boolean)],ou.prototype,"expandable",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ou.prototype,"collapsed",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ou.prototype,"dataChanged",null);
_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ou.prototype,"onIronResize",null);_.P([_.h({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ou);
_.H(ou,"ytd-video-masthead-ad-v3-renderer",function(){if(XtP!==void 0)return XtP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XtP=W},{mode:2});var lB=function(){return _.O.apply(this,arguments)||this};
_.Z(lB,_.O);_.r=lB.prototype;_.r.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.r.ready=function(){var W=this;eqg(function(){W.isAttached&&Qg(W.JSC$13501_storedAdSlotMetadata,W.JSC$13501_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&wX(Iu(),W.JSC$13501_storedAdSlotMetadata,W.JSC$13501_storedAdLayoutMetadata)})};
_.r.attached=function(){Qg(this.JSC$13501_storedAdSlotMetadata,this.JSC$13501_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&V6B(Iu(),this.JSC$13501_storedAdSlotMetadata,this.JSC$13501_storedAdLayoutMetadata)};
_.r.detached=function(){Qg(this.JSC$13501_storedAdSlotMetadata,this.JSC$13501_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&wX(Iu(),this.JSC$13501_storedAdSlotMetadata,this.JSC$13501_storedAdLayoutMetadata)};
_.r.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13501_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13501_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13501_storedAdLayoutMetadata!==void 0&&this.JSC$13501_storedAdSlotMetadata!==void 0&&wX(Iu(),this.JSC$13501_storedAdSlotMetadata,this.JSC$13501_storedAdLayoutMetadata),V6B(Iu(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13501_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13501_storedAdSlotMetadata=this.adSlotMetadata)};
_.Ec.Object.defineProperties(lB.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
lB.prototype.onAdMetadataChanged=lB.prototype.onAdMetadataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],lB.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lB.prototype,"data",void 0);_.P([_.T("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lB.prototype,"adLayoutMetadata",null);
_.P([_.J(),_.Y("design:type",Object)],lB.prototype,"adSlotMetadata",void 0);_.P([_.ul("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lB.prototype,"onAdMetadataChanged",null);_.P([_.h({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],lB);
_.H(lB,"ytd-page-top-ad-layout-renderer",function(){if(mOr!==void 0)return mOr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mOr=
W},{mode:_.Qe("kevlar_poly_si_batch_j070")?1:2});var IOS;var ZG=function(){var W=_.O.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.typographyBump=!1;return W};
_.Z(ZG,_.O);_.r=ZG.prototype;
_.r.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]]"}}}}}};
_.r.ready=function(){var W=this;eqg(function(){W.isAttached&&W.adSlotMetadata&&PEr(Iu(),W.adSlotMetadata)})};
_.r.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))K9B(Iu(),this.adSlotMetadata);else{var e;_.JC(Error("Lh`"+this.adSlotMetadata+"`"+((e=this.data)==null?void 0:e.adSlotMetadata)))}}};
_.r.detached=function(){this.adSlotMetadata&&PEr(Iu(),this.adSlotMetadata)};
_.r.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.r.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&PEr(Iu(),this.adSlotMetadata),K9B(Iu(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Ec.Object.defineProperties(ZG.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.fulfillmentContent)==null?void 0:e.fulfilledLayout,_.j4U),b;return(W=(b=_.l(t==null?void 0:t.renderingContent,yir))==null?void 0:b.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
ZG.prototype.onAdSlotMetadataChanged=ZG.prototype.onAdSlotMetadataChanged;ZG.prototype.onTypographyBumpChanged=ZG.prototype.onTypographyBumpChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ZG.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ZG.prototype,"rendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],ZG.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ZG.prototype,"noBottomMargin",void 0);_.P([_.J(),_.Y("design:type",Object)],ZG.prototype,"overlayDensity",void 0);_.P([_.J(),_.Y("design:type",Object)],ZG.prototype,"typographyBump",void 0);_.P([_.vG("ytd-in-feed-ad-layout-renderer"),_.Y("design:type",HTMLElement)],ZG.prototype,"inFeedAdLayoutRenderer",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ZG.prototype,"layout",null);_.P([_.ul("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZG.prototype,"onTypographyBumpChanged",null);_.P([_.ul("data.adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZG.prototype,"onAdSlotMetadataChanged",null);
_.P([_.h({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ZG);
_.H(ZG,"ytd-ad-slot-renderer",function(){if(IOS!==void 0)return IOS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return IOS=W},{mode:_.Qe("kevlar_poly_si_batch_j077")?
1:2});var aOD;var $W=function(){return _.O.apply(this,arguments)||this};
_.Z($W,_.O);_.r=$W.prototype;_.r.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"}}}};
_.r.maybeComputeHref=function(W){return _.S("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(W)};
_.r.onTap=function(){_.S("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&Xh2(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.r.onThumbnailContainerClick=function(W){this.onClick(W)};
_.r.onClick=function(W){if(_.S("enable_handle_watch_endpoint_click_for_vdc")){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;t&&_.l(t,_.z4)&&(this.ytSparklesClickLocationBehavior.handleClick(t,W,!1),W.stopPropagation())}};
_.r.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var W=_.R(this.data.impressionUrls),e=W.next();!e.done;e=W.next())e=e.value,BDK(e,la2(e));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.S("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",$W.JSC$13509_DEFAULT_CLICK_LOCATION_BEHAVIOR,$W.JSC$13509_CLICK_LOCATION_ID_MAP),this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),
W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href")))}};
_.r.attached=function(){var W=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.r.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Ec.Object.defineProperties($W.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
$W.prototype.dataChanged=$W.prototype.dataChanged;$W.prototype.onTap=$W.prototype.onTap;$W.JSC$13509_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
$W.JSC$13509_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"}];_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.P([_.y(nu),_.Y("design:type",Object)],$W.prototype,"ytdActiveViewBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$W.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],$W.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],$W.prototype,"ytSparklesClickLocationBehavior",void 0);
_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],$W.prototype,"isGridViewEnabled",void 0);_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$W.prototype,"watchFeedBigThumbs",null);_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],$W.prototype,"thumbnailWidth",null);_.P([_.J(),_.Y("design:type",Object)],$W.prototype,"data",void 0);
_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],$W.prototype,"thumbnail",void 0);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$W.prototype,"onTap",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$W.prototype,"dataChanged",null);_.P([_.h({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],$W);
_.H($W,"ytd-compact-promoted-video-renderer",function(){if(aOD!==void 0)return aOD;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return aOD=W},{mode:1});var wtZ;_.xD("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var kW=function(){return _.O.apply(this,arguments)||this};
_.Z(kW,_.O);kW.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kW.prototype,"data",void 0);_.P([_.h({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],kW);
_.H(kW,"ytd-search-pyv-renderer",function(){if(wtZ!==void 0)return wtZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return wtZ=W},{mode:1});var uJB;_.xD("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var pL=function(){var W=_.O.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$13517_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.Z(pL,_.O);_.r=pL.prototype;
_.r.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}}};
_.r.onStampFinished=function(){this.JSC$13517_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.rz(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$13517_handleOpenPostCommentDialogActionAfterStamp=!0};
_.r.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.r.computeHideBorder=function(){return this.isInEngagementPanel};
_.r.computeIsCompact=function(){return this.isInEngagementPanel};
_.r.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.r.computeUsesFullLockup=function(){var W,e=(W=this.data)==null?void 0:W.post,t;W=(t=_.l(e,s4r))==null?void 0:t.surface;var b;t=(b=_.l(e,HnB))==null?void 0:b.originalPost;var m;if(b=W||((m=_.l(t,s4r))==null?void 0:m.surface))return!this.computeUsesCompactLockup(b)&&this.useUpdatedRepostUi;var q;return((q=_.l(e,HnB))==null?void 0:q.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Ec.Object.defineProperties(pL.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,e;return((e=_.l((W=this.data)==null?void 0:W.post,s4r))==null?void 0:e.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
pL.prototype.onYtCommentModerationPanelEmpty=pL.prototype.onYtCommentModerationPanelEmpty;pL.prototype.onStampFinished=pL.prototype.onStampFinished;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],pL.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],pL.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pL.prototype,"roundedContainer",void 0);_.P([_.J({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],pL.prototype,"hideBorder",void 0);_.P([_.J({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],pL.prototype,"isCompact",void 0);
_.P([_.J({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],pL.prototype,"usesFullLockup",void 0);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pL.prototype,"onStampFinished",null);
_.P([_.wz("ytd-comment-moderation-panel-empty"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pL.prototype,"onYtCommentModerationPanelEmpty",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pL.prototype,"isInEngagementPanel",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pL.prototype,"useUpdatedRepostUi",null);
_.P([_.h({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],pL);
_.H(pL,"ytd-backstage-post-thread-renderer",function(){if(uJB!==void 0)return uJB;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uJB=W},{mode:1});var cwU;var yX=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(yX,_.O);yX.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
yX.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.rd(W,24,void 0,"height"))?W:void 0}};
yX.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
yX.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.Ec.Object.defineProperties(yX.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.lF(this.bannerImageUrl))+'");'}}});
yX.prototype.computeHasText=yX.prototype.computeHasText;yX.prototype.computeBannerImageUrl=yX.prototype.computeBannerImageUrl;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],yX.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],yX.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],yX.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",String)],yX.prototype,"bannerImageUrl",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Y("design:type",Boolean)],yX.prototype,"hasText",void 0);_.P([_.ul("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yX.prototype,"computeBannerImageUrl",null);
_.P([_.ul("data.text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yX.prototype,"computeHasText",null);_.P([_.T("bannerImageUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yX.prototype,"bannerStyle",null);_.P([_.h({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],yX);
_.H(yX,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(cwU!==void 0)return cwU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cwU=W},{mode:1});var vTU;var jr=function(){return _.O.apply(this,arguments)||this};
_.Z(jr,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jr.prototype,"data",void 0);_.P([_.h({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],jr);
_.H(jr,"ytd-backstage-zero-state-renderer",function(){if(vTU!==void 0)return vTU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vTU=W},{mode:1});var GUD;var CL=function(){return _.O.apply(this,arguments)||this};
_.Z(CL,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],CL.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],CL.prototype,"icon",void 0);_.P([_.h({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],CL);
_.H(CL,"ytd-post-filter-zero-state-renderer",function(){if(GUD!==void 0)return GUD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GUD=W},{mode:1});var DOo;var SNh={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},nL=function(){return _.O.apply(this,arguments)||this};
_.Z(nL,_.O);nL.prototype.configureRendererStamper=function(){return SNh};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nL.prototype,"rendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nL.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],nL.prototype,"icon",void 0);_.P([_.h({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],nL);
_.H(nL,"ytd-post-scheduling-zero-state-renderer",function(){if(DOo!==void 0)return DOo;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return DOo=W},{mode:1});var Bm8;var fL=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.Z(fL,_.O);fL.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
fL.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
fL.prototype.handleUpdatePostsTotalCountAction=function(W){var e=this.get(["data.tabs",1,"totalCount"]),t=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);e!==void 0&&t!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(t==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(e)+W):t==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(e)-W))};
_.Ec.Object.defineProperties(fL.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,e=this.data.tabs.length;W<e;W++)if(this.data.tabs[W].selected)return W;return 0}}});
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],fL.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fL.prototype,"rendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fL.prototype,"data",void 0);_.P([_.T("data.tabs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],fL.prototype,"selected",null);_.P([_.h({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],fL);
_.H(fL,"ytd-post-stream-filter-renderer",function(){if(Bm8!==void 0)return Bm8;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Bm8=W},{mode:1});var oT8;var gX=function(){return _.O.apply(this,arguments)||this};
_.Z(gX,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gX.prototype,"kevlarBehaviors",void 0);_.P([_.J(),_.Y("design:type",Object)],gX.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],gX);
_.H(gX,"ytd-channel-age-gate-renderer",function(){if(oT8!==void 0)return oT8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oT8=W},{mode:1});var lON;_.xD("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var T7=function(){var W=_.O.apply(this,arguments)||this;W.data=null;return W};
_.Z(T7,_.O);T7.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ec.Object.defineProperties(T7.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?0:(e=W.title)==null?0:(t=e.runs)==null?0:t.length)?147:160}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],T7.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],T7.prototype,"imageSizePx",null);_.P([_.h({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],T7);
_.H(T7,"ytd-channel-owner-empty-state-renderer",function(){if(lON!==void 0)return lON;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return lON=W},{mode:1});var Zqe;var $OU;var JU=function(){var W=_.O.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.Z(JU,_.O);_.r=JU.prototype;_.r.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]]"}}}}}};
_.r.toggleClearButton=function(){this.hideClearButton=$8v||!this.input.value};
_.r.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.r.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.r.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.r.submit=function(){_.q2(this.hostElement,"search-query-changed",this.input.value)};
JU.prototype.toggleClearButton=JU.prototype.toggleClearButton;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JU.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JU.prototype,"hideClearButton",void 0);_.P([_.J(),_.Y("design:type",Object)],JU.prototype,"boundSubmitSearch",void 0);_.P([_.J(),_.Y("design:type",Object)],JU.prototype,"boundClearSearch",void 0);_.P([_.vG("#input"),_.Y("design:type",Object)],JU.prototype,"input",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JU.prototype,"toggleClearButton",null);
_.P([_.h({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],JU);
_.H(JU,"ytd-channel-switcher-search-box-renderer",function(){if($OU!==void 0)return $OU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $OU=W},{mode:1});var kUk;var xW=function(){var W=_.O.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.Z(xW,_.O);_.r=xW.prototype;_.r.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"}}}}};
_.r.ready=function(){var W=this;this.form.addEventListener("submit",function(e){return W.onSubmit(e)})};
_.r.onSubmit=function(W){W.preventDefault();return!1};
_.r.toggleClearButton=function(){this.hideClearButton=$8v||!this.input.value};
_.r.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.r.submit=function(){var W=this.data.endpoint,e=(0,_.kJ.unsafeClone)(W);_.l(e,_.Sf)?_.l(e,_.Sf).query=this.input.value:_.l(e,_.Bw)&&(_.l(e,_.Bw).query=this.input.value);var t=_.l(e.commandMetadata,_.ez);(t==null?0:t.url)?(t.url=_.Mq(t.url,"query",this.input.value),_.q2(this.hostElement,"yt-navigate",{endpoint:e})):_.l(e,oBB)?(_.l(e,oBB).channelSwitcherQuery=this.input.value,_.ee().resolve(_.tQ).resolveCommand(e,{form:{element:this.hostElement}})):(W=Error("Mh`"+JSON.stringify(W)),_.gQ(W))};
_.r.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
xW.prototype.toggleClearButton=xW.prototype.toggleClearButton;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xW.prototype,"hideClearButton",void 0);
_.P([_.J(),_.Y("design:type",Object)],xW.prototype,"boundSubmit",void 0);_.P([_.vG("#form"),_.Y("design:type",HTMLFormElement)],xW.prototype,"form",void 0);_.P([_.vG("#input"),_.Y("design:type",Object)],xW.prototype,"input",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xW.prototype,"toggleClearButton",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],xW);
_.H(xW,"ytd-search-box-renderer",function(){if(kUk!==void 0)return kUk;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kUk=W},{mode:2});var O3=function(){var W=_.O.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.Z(O3,_.O);O3.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],O3.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],O3.prototype,"showSearchBox",void 0);_.P([_.h({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],O3);
_.H(O3,"ytd-channel-switcher-header-renderer",function(){if(Zqe!==void 0)return Zqe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Zqe=W},{mode:1});var ptv;var ywe;var ME=function(){var W=_.O.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.Z(ME,_.O);_.r=ME.prototype;_.r.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.dataChanged=function(){this.isDisplayed=!0};
_.r.computeType=function(W){return W||"UNKNOWN"};
_.r.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.r.onClose=function(){this.isDisplayed=!1};
ME.prototype.onYtServiceRequestCompleted=ME.prototype.onYtServiceRequestCompleted;ME.prototype.dataChanged=ME.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ME.prototype,"data",void 0);
_.P([_.J({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Y("design:type",String)],ME.prototype,"type",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ME.prototype,"isDisplayed",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ME.prototype,"dataChanged",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ME.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],ME);
_.H(ME,"ytd-alert-with-button-renderer",function(){if(ywe!==void 0)return ywe;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ywe=W},{mode:1});var s3=function(){var W=_.O.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.Z(s3,_.O);_.r=s3.prototype;_.r.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.r.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.r.updateChannelSwitcherAction=function(W){var e;W=(e=_.l(W,bd8))==null?void 0:e.page;_.l(W,tQk)!==void 0&&(this.data=_.l(W,tQk))};
_.r.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]]"}}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r.searchQueryChanged=function(W,e){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var t=[];this.hideCreateChannelButton=this.noResult=!1;for(var b=document.querySelectorAll("ytd-account-item-renderer"),m=_.R(b),q=m.next();!q.done;q=m.next())q=q.value,t.push(q),q.style.display="block";this.resetRightBorder(t);if(e){this.hideCreateChannelButton=!0;for(t=1;t<this.data.contents.length;t++)if(q=this.data.contents[t],_.l(q,DwP)){var Q=void 0,X=void 0;m=(Q=_.l(q,DwP))==null?void 0:(X=
Q.accountName)==null?void 0:X.simpleText;X=Q=void 0;q=(Q=_.l(q,DwP))==null?void 0:(X=Q.channelHandle)==null?void 0:X.simpleText;(Q=b[t-1])&&m&&_.IR(m,e)?W.push(Q):_.S("enable_handle_search_on_channel_switcher")&&Q&&q&&_.IR(q.toString(),e.toString())?W.push(Q):Q.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.r.resetRightBorder=function(W){for(var e=0;e<W.length;e++)W[e].style.borderRight=!this.hideCreateChannelButton&&(e+2)%3===0||this.hideCreateChannelButton&&(e+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.r.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.r.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var e=0;e<W.contents.length;e++)_.l(W.contents[e],_.Q$)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.r.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Ec.Object.defineProperties(s3.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
s3.prototype.onContinuationItemsUpdated=s3.prototype.onContinuationItemsUpdated;s3.prototype.searchQueryChanged=s3.prototype.searchQueryChanged;s3.prototype.onDataChanged=s3.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],s3.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],s3.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],s3.prototype,"data",void 0);_.P([_.vG("ytd-channel-switcher-header-renderer"),_.Y("design:type",Object)],s3.prototype,"channelSwitcherHeaderRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],s3.prototype,"noResult",void 0);
_.P([_.J(),_.Y("design:type",Object)],s3.prototype,"enableAlertBanner",void 0);_.P([_.J(),_.Y("design:type",Object)],s3.prototype,"dismissedAlertBanner",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],s3.prototype,"hideCreateChannelButton",void 0);_.P([_.T("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],s3.prototype,"isLoading",null);_.P([_.J(),_.Y("design:type",Object)],s3.prototype,"boundDismissAlertBanner",void 0);
_.P([_.J({computed:"computeButtonOverride()"}),_.Y("design:type",Object)],s3.prototype,"buttonOverride",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s3.prototype,"onDataChanged",null);_.P([_.wz("search-query-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],s3.prototype,"searchQueryChanged",null);
_.P([_.wz("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],s3.prototype,"onContinuationItemsUpdated",null);_.P([_.h({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],s3);
_.H(s3,"ytd-channel-switcher-page-renderer",function(){if(ptv!==void 0)return ptv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ptv=W},{mode:1});var j9y;var CiZ;var hU=function(){var W=_.O.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.Z(hU,_.O);_.r=hU.prototype;
_.r.ready=function(){_.p4(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.p4(this.JSC$13562_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.p4(this.JSC$13562_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.p4(this.JSC$13562_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.r.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.r.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.kP(this.images))};
_.r.cancelImageRepositions=function(){this.selectedImageIndex=0;_.q2(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.r.saveImageRepositions=function(){this.selectedImageIndex=0;_.q2(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Ec.Object.defineProperties(hU.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(e,t){return{image:e,selected:t===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("ytd-backstage-image-preview-renderer"),_.Y("design:type",Object)],hU.prototype,"JSC$13562_imagePreviewContainer",void 0);_.P([_.vG(".thumbnail-images-container"),_.Y("design:type",HTMLElement)],hU.prototype,"thumbnailImagesContainer",void 0);_.P([_.J(),_.Y("design:type",Array)],hU.prototype,"images",void 0);
_.P([_.J(),_.Y("design:type",Object)],hU.prototype,"repositionInstructions",void 0);_.P([_.J(),_.Y("design:type",Object)],hU.prototype,"selectedImageIndex",void 0);_.P([_.T("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],hU.prototype,"thumbnailRendererDatas",null);_.P([_.T("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hU.prototype,"selectedImageData",null);
_.P([_.h({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],hU);
_.H(hU,"ytd-backstage-multi-image-reposition-renderer",function(){if(CiZ!==void 0)return CiZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CiZ=W},{mode:1});var HV=function(W,e){_.ZY.call(this);this.uploadUrl=W;this.channelId=e;this.imagesUploadData=[]};
_.Z(HV,_.ZY);HV.prototype.getAllUploadStatuses=function(){var W=this,e,t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,nTS(W),2);e=m.yieldResult;t=e.get("succeed");b=e.get("failed");return m.return(t.concat(b))})};
var gTy=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,nTS(W),2);e=b.yieldResult;t=e.get("failed");t.length>0&&fOv(W,t);return b.return(W.getAllUploadStatuses())})},nTS=function(W){var e,t,b,m,q,Q,X;
return _.F(function(I){if(I.nextAddress==1)return e=new Map,_.a(I,Promise.allSettled(W.imagesUploadData.map(function(u){return u.uploadPromise})),2);
t=I.yieldResult;b=[];m=_.R(t);for(q=m.next();!q.done;q=m.next())Q=q.value,Q.status==="fulfilled"&&b.push(Q.value);X=W.imagesUploadData.map(function(u){return u.image}).filter(function(u){return b.every(function(c){return c.id!==u.id})});
e.set("succeed",b);e.set("failed",X);return I.return(e)})},fOv=function(W,e){e=_.R(e);
for(var t=e.next();!t.done;t=e.next()){var b=W;t=t.value;TmB(b,t.id)>=0&&b.cancel(t.id);var m=new Jwo(t),q=_.qlb(b.uploadUrl,{"X-YouTube-ChannelId":b.channelId},t.imageBlob);m.transfer=q;m.uploadPromise=xOk(q,t);b.imagesUploadData.push(m);q.run()}};
HV.prototype.cancel=function(W){var e=TmB(this,W);e!==-1&&((e=this.imagesUploadData[e].transfer)&&e.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(t){return t.image.id!==W}))};
var TmB=function(W,e){return W.imagesUploadData.findIndex(function(t){return t.image.id===e})},xOk=function(W,e){return new Promise(function(t,b){W.listen("l",function(){var m=W.getResponseText();
m?(m=JSON.parse(m).encryptedBlobId,e.encryptedBlobId=m,t(e)):b("upload failed")});
W.listen("n",function(){b("upload failed")})})},Jwo=function(W){this.image=W};var O9K=function(W,e,t,b,m){this.id=W;this.imageBlob=e;this.localImageSrc=t;this.naturalWidth=b;this.naturalHeight=m;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 Oqh=[".jpeg",".jpg",".png"],KL=function(){var W=_.O.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$13573_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new uy(null,"single_file",Oqh);return W};
_.Z(KL,_.O);_.r=KL.prototype;_.r.ready=function(){_.p4(this.imageSelector,"j",this.onImageSelect,!1,this);_.p4(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.p4(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.r.dataChanged=function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.cellTemplate)==null?void 0:e.onEmptyCellTap,tLh);if(t&&t.uploadUrl&&t.channelId){var b;this.maxFileSizeMb=((b=t.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0;var m;this.maxAspectRatio=((m=t.imageValidationInfo)==null?void 0:m.allowedMaxAspectRatio)||0;var q;this.invalidFileSizeError=this.getSimpleString((q=this.data)==null?void 0:q.invalidFileSizeError);var Q;this.invalidAspectRatioError=this.getSimpleString((Q=this.data)==
null?void 0:Q.invalidAspectRatioError);var X;this.invalidFileTypeError=this.getSimpleString((X=this.data)==null?void 0:X.invalidFileTypeError);this.uploadManager=new HV(t.uploadUrl,t.channelId)}};
_.r.onEditorInfoChange=function(){this.optionPlaceholderText=_.Ub(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Ub(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.r.observeAddImageError=function(){this.errorMessage!==""&&_.q2(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.r.onPollOptionsChange=function(){for(var W=!1,e=[],t=0;t<this.pollOptions.length;t++){var b=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(t+1);this.pollOptions[t].placeholderText!==b?(W=!0,e.push(Object.assign({},this.pollOptions[t],{placeholderText:b}))):e.push(this.pollOptions[t])}W&&(this.pollOptions=e);this.isValid()?_.q2(this.hostElement,"yt-commentbox-post-enable"):_.q2(this.hostElement,"yt-commentbox-post-disable")};
_.r.createPollOptions=function(W){var e=[],t;W=(t=W==null?void 0:W.minPollOptions)!=null?t:0;for(t=0;t<W;t++)e.push(this.createPollOption());return e};
_.r.onImageSelect=function(W){var e=this,t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1){if(e.selectedImageIndex===void 0)return I.jumpTo(0);t=W.files[0];e.errorMessage="";b=e.validateImage(t);if(b!=="")return e.errorMessage=b,I.return();m=new UW(e.maxAspectRatio,!1,!0);return _.a(I,m.transform(t),3)}if(I.nextAddress!=4)return q=I.yieldResult,q.transformedData?q.invalidAspectRatio?(e.errorMessage=e.invalidAspectRatioError,I.return()):_.a(I,M6G(e.JSC$13573_imageId,W.files[0],q.transformedData),
4):(e.errorMessage=e.invalidFileTypeError,I.return());Q=I.yieldResult;e.JSC$13573_imageId++;fOv(e.uploadManager,[Q]);X=Object.assign({},e.pollOptions[e.selectedImageIndex],{image:Q});e.pollOptions.splice(e.selectedImageIndex,1,X);e.refreshPollOptions();_.q2(e.hostElement,"yt-backstage-poll-image-select");_.u8(I)})};
_.r.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.r.refreshPollOptions=function(){this.pollOptions=[].concat(_.kP(this.pollOptions))};
_.r.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.kP(this.pollOptions),[this.createPollOption()]))};
_.r.onRemovePollOption=function(W){var e=this.pollOptions[W.model.index];e&&e.image&&this.uploadManager.cancel(e.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.q2(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.r.onTextInput=function(){this.refreshPollOptions()};
_.r.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.r.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.r.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.r.saveImageRepositions=function(W){W=W.event_.detail;for(var e=0,t=[],b=_.R(this.pollOptions),m=b.next();!m.done;m=b.next())m=m.value,m.image!==void 0?(m=Object.assign({},m,{image:W[e]}),t.push(m),e++):t.push(m);this.showImagesPreview=!1;this.pollOptions=[].concat(_.kP(t))};
_.r.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 W=0,e=_.R(this.pollOptions),t=e.next();!t.done;t=e.next())if(t=t.value,t.optionText.trim()!==""||t.image!==void 0){if(!t.image||this.hasCustomOptionText&&t.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.r.getAllUploadStatuses=function(){var W=this,e,t,b,m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.uploadManager.getAllUploadStatuses(),2);e=q.yieldResult;t=_.R(e);for(b=t.next();!b.done;b=t.next())if(m=b.value,m.encryptedBlobId===void 0)return q.return(gTy(W.uploadManager));return q.return(e)})};
_.r.getPostCreateOptions=function(){for(var W=[],e=_.R(this.pollOptions),t=e.next();!t.done;t=e.next())t=t.value,t.image!==void 0&&W.push({text:this.hasCustomOptionText?t.optionText:t.placeholderText,image:t.image});return W};
_.r.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.r.createButtonRenderer=function(W,e){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:e}};
_.r.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.r.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.r.getSimpleString=function(W){return _.Ub(W)};
_.r.updateOptionTextFromBinding=function(W){if(W.target){var e=Array.from(_.rz(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(e>=0){var t;this.pollOptions[e].optionText=(t=W.detail.value)!=null?t:""}}};
_.Ec.Object.defineProperties(KL.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,e;return this.pollOptions.length<((e=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?e:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.data)==null?void 0:W.addOptionButtonText;return e?this.createButtonRenderer(e,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return e?this.createButtonRenderer(e,!this.hasImages):void 0}}});
KL.prototype.onPollOptionsChange=KL.prototype.onPollOptionsChange;KL.prototype.observeAddImageError=KL.prototype.observeAddImageError;KL.prototype.onEditorInfoChange=KL.prototype.onEditorInfoChange;KL.prototype.dataChanged=KL.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("ytd-backstage-multi-image-reposition-renderer"),_.Y("design:type",Object)],KL.prototype,"imageRepositionContainer",void 0);
_.P([_.J(),_.Y("design:type",Object)],KL.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],KL.prototype,"editorInfo",void 0);_.P([_.J(),_.Y("design:type",HV)],KL.prototype,"uploadManager",void 0);_.P([_.J(),_.Y("design:type",Object)],KL.prototype,"showImagesPreview",void 0);_.P([_.J(),_.Y("design:type",Array)],KL.prototype,"pollOptions",void 0);_.P([_.J(),_.Y("design:type",Object)],KL.prototype,"errorMessage",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KL.prototype,"dataChanged",null);_.P([_.BG("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KL.prototype,"onEditorInfoChange",null);_.P([_.ul("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KL.prototype,"observeAddImageError",null);
_.P([_.BG("pollOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KL.prototype,"onPollOptionsChange",null);_.P([_.T("pollOptions","editorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"isAllowedToAddOption",null);_.P([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"hasImages",null);
_.P([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"imagesToReposition",null);_.P([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"hasCustomOptionText",null);_.P([_.T("data","isAllowedToAddOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"addOptionButton",null);_.P([_.T("data","hasImages"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KL.prototype,"repositionImagesButton",null);
_.P([_.h({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],KL);
_.H(KL,"ytd-backstage-image-poll-editor-renderer",function(){if(j9y!==void 0)return j9y;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return j9y=W},{mode:2});var MRr={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 s9y;var PV=function(){var W=_.O.apply(this,arguments)||this;W.a11yConfig=MRr;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.Z(PV,_.O);_.r=PV.prototype;_.r.created=function(){_.Kx.requestAvailability()};
_.r.ready=function(){};
_.r.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var e=0,t=0,b="";switch(W.detail.keyboardEvent.key){case "ArrowUp":sgL(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":sgL(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":sgL(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:t=this.imageWidth*.05*-1;break;case "ArrowRight":sgL(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:t=this.imageWidth*.05}b&&_.Gv(b)&&_.q2(this.hostElement,"iron-announce",{text:_.Gv(b)});if(t||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.Gv(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+t)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.Gv(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.q2(this.hostElement,"iron-announce",{text:W})}};
_.r.getPreviewPosition=function(W,e,t,b){return Math.round(100*(W+e*.5-t)/b)};
_.r.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,e=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/e);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var t=W*this.displayScale*this.imageData.previewCoordinates.left,b=e*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=e>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-t;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>e?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-b;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=e*this.displayScale};
_.r.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.r.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.r.getSignedPosition=function(W,e,t){return e==="X"&&_.Ot("HTML_DIR")==="rtl"?t==="-"?W+"px":W*-1+"px":t==="-"?W*-1+"px":W+"px"};
_.r.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-W.clientX,t=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
t)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.r.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.r.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.q2(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.r.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.q2(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.r.deleteImage=function(){_.q2(this.hostElement,"ytd-backstage-image-preview-delete")};
_.r.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.r.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.q2(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.r.getPreviewOffset=function(W,e,t){return e&&W?(t==="X"&&_.Ot("HTML_DIR")==="rtl"?300/e*W:300/e*W*-1)+"px":"0px"};
_.r.getSimpleText=function(W){return W?_.Ub(W):""};
_.r.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}};
_.Ec.Object.defineProperties(PV.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Gv(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.Gv(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Gv(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.Gv(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 W,e,t=(W=this.instruction)==null?void 0:(e=W.previewInstruction)==null?void 0:e.editButtonLabel;return t?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m=this.editOnlyMode?(W=this.instruction)==null?void 0:(e=W.editInstruction)==null?void 0:e.saveImagesButtonLabel:(t=this.instruction)==null?void 0:(b=t.editInstruction)==null?void 0:b.saveButtonLabel;return m?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleText(m)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.instruction)==null?void 0:(e=W.previewInstruction)==null?void 0:e.deleteButtonLabel;return t?{size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.instruction)==null?void 0:(e=W.editInstruction)==null?void 0:e.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return t?{style:W,size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}: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"}}});
PV.prototype.onEditOnlyModeUpdate=PV.prototype.onEditOnlyModeUpdate;PV.prototype.onImageChange=PV.prototype.onImageChange;_.P([_.J(),_.Y("design:type",O9K)],PV.prototype,"imageData",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"instruction",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"a11yConfig",void 0);_.P([_.J(),_.Y("design:type",Number)],PV.prototype,"imageWidth",void 0);_.P([_.J(),_.Y("design:type",Number)],PV.prototype,"imageHeight",void 0);
_.P([_.J(),_.Y("design:type",Number)],PV.prototype,"displayScale",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"imageDisplayOffsetTop",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"imageDisplayOffsetLeft",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"pickerDisplayOffsetTop",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"pickerDisplayOffsetLeft",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"showPreviewContainer",void 0);
_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"startPicker",void 0);_.P([_.J(),_.Y("design:type",Number)],PV.prototype,"pickerOffsetX",void 0);_.P([_.J(),_.Y("design:type",Number)],PV.prototype,"pickerOffsetY",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"repositionOptional",void 0);_.P([_.J(),_.Y("design:type",Object)],PV.prototype,"editOnlyMode",void 0);_.P([_.vG("#picker-container"),_.Y("design:type",HTMLElement)],PV.prototype,"JSC$13586_pickerContainer",void 0);
_.P([_.vG("#picker"),_.Y("design:type",HTMLElement)],PV.prototype,"picker",void 0);_.P([_.vG("#preview-clipper"),_.Y("design:type",HTMLElement)],PV.prototype,"previewClipper",void 0);_.P([_.vG("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],PV.prototype,"JSC$13586_imageInBackground",void 0);_.P([_.vG("#image-in-picker"),_.Y("design:type",HTMLImageElement)],PV.prototype,"JSC$13586_imageInPicker",void 0);
_.P([_.vG("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],PV.prototype,"JSC$13586_imageInPreviewClipper",void 0);_.P([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"altLabelForImage",null);_.P([_.T("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],PV.prototype,"pickerSize",null);
_.P([_.T("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"imageOrientationStyle",null);_.P([_.T("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"editButton",null);_.P([_.T("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"saveButton",null);_.P([_.T("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"deleteButton",null);
_.P([_.T("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PV.prototype,"cancelButton",null);_.P([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],PV.prototype,"cropOffsetTop",null);_.P([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],PV.prototype,"cropOffsetLeft",null);
_.P([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"pickerBackgroundStyle",null);_.P([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"pickerDisplayStyle",null);_.P([_.T("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"imageInPickerStyle",null);
_.P([_.T("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"previewClipperStyle",null);_.P([_.BG("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PV.prototype,"onImageChange",null);_.P([_.BG("editOnlyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PV.prototype,"onEditOnlyModeUpdate",null);
_.P([_.T("showPreviewContainer"),_.Y("design:type",String),_.Y("design:paramtypes",[])],PV.prototype,"pickerModeStyle",null);_.P([_.h({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],PV);
_.H(PV,"ytd-backstage-image-preview-renderer",function(){if(s9y!==void 0)return s9y;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s9y=W},{mode:1});var hWZ;var Hqb={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 Khv;var PiD;var VX=function(){var W=_.O.apply(this,arguments)||this;W.a11yConfig=Hqb;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.Z(VX,_.O);_.r=VX.prototype;_.r.created=function(){_.Kx.requestAvailability()};
_.r.ready=function(){};
_.r.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var e=0,t=0,b="";switch(W.detail.keyboardEvent.key){case "ArrowUp":htz(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:e=this.imageHeight*.05*-1;break;case "ArrowDown":htz(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
e=this.imageHeight*.05;break;case "ArrowLeft":htz(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:t=this.imageWidth*.05*-1;break;case "ArrowRight":htz(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:t=this.imageWidth*.05}b&&_.Gv(b)&&_.q2(this.hostElement,"iron-announce",{text:_.Gv(b)});if(t||e)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+e)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.Gv(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+t)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.Gv(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.q2(this.hostElement,"iron-announce",{text:W})}};
_.r.getPreviewPosition=function(W,e,t,b){return Math.round(100*(W+e*.5-t)/b)};
_.r.displayImage=function(){var W=this.JSC$13597_pickerContainer.getBoundingClientRect().width,e=this.JSC$13597_pickerContainer.getBoundingClientRect().height,t=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),b=this.JSC$13597_imageInBackground.naturalWidth,m=this.JSC$13597_imageInBackground.naturalHeight;this.displayScale=Math.max(t/b,t/m);this.imageWidth=b*this.displayScale;this.imageHeight=m*this.displayScale;this.pickerDisplayOffsetLeft=(W-t)/2;this.pickerDisplayOffsetTop=
(e-t)/2;this.imageDisplayOffsetLeft=m>b?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=b>m?this.pickerDisplayOffsetTop:(e-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.r.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13597_imageInBackground.src=this.imageData.toString(),this.JSC$13597_imageInPicker.src=this.imageData.toString(),this.JSC$13597_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.r.getSignedPosition=function(W,e,t){return e==="X"&&_.Ot("HTML_DIR")==="rtl"?t==="-"?W+"px":W*-1+"px":t==="-"?W*-1+"px":W+"px"};
_.r.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var e=this.pickerOffsetX-W.clientX,t=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
t)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-e))}};
_.r.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.r.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.r.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.q2(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.r.getPreviewOffset=function(W,e,t,b){return e&&W&&t?(b==="X"&&_.Ot("HTML_DIR")==="rtl"?t/e*W:t/e*W*-1)+"px":"0px"};
_.r.getSimpleText=function(W){return W?_.Ub(W):""};
_.r.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,e=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,t=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,b=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.rz(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.q2(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:e,bottom:t,left:b})}};
_.Ec.Object.defineProperties(VX.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Gv(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.Gv(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Gv(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.Gv(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 W,e=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,t;return((t=_.l(e,_.KJ))==null?void 0:t.url)||void 0}}}});
VX.prototype.onImageDataChange=VX.prototype.onImageDataChange;_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"imageData",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"instruction",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"a11yConfig",void 0);_.P([_.J(),_.Y("design:type",Number)],VX.prototype,"imageWidth",void 0);_.P([_.J(),_.Y("design:type",Number)],VX.prototype,"imageHeight",void 0);_.P([_.J(),_.Y("design:type",Number)],VX.prototype,"displayScale",void 0);
_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"imageDisplayOffsetTop",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"imageDisplayOffsetLeft",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"pickerDisplayOffsetTop",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"pickerDisplayOffsetLeft",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"cropCoordinatesSaved",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"previewSize",void 0);
_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"startPicker",void 0);_.P([_.J(),_.Y("design:type",Number)],VX.prototype,"pickerOffsetX",void 0);_.P([_.J(),_.Y("design:type",Number)],VX.prototype,"pickerOffsetY",void 0);_.P([_.J(),_.Y("design:type",Object)],VX.prototype,"repositionOptional",void 0);_.P([_.vG("#picker-container"),_.Y("design:type",HTMLElement)],VX.prototype,"JSC$13597_pickerContainer",void 0);_.P([_.vG("#picker"),_.Y("design:type",HTMLElement)],VX.prototype,"picker",void 0);
_.P([_.vG("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],VX.prototype,"JSC$13597_imageInBackground",void 0);_.P([_.vG("#image-in-picker"),_.Y("design:type",HTMLImageElement)],VX.prototype,"JSC$13597_imageInPicker",void 0);_.P([_.vG("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],VX.prototype,"JSC$13597_imageInPreviewClipper",void 0);_.P([_.vG("#full-image-as-preview"),_.Y("design:type",HTMLImageElement)],VX.prototype,"imageAsPreview",void 0);
_.P([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"altLabelForImage",null);_.P([_.T("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],VX.prototype,"pickerSize",null);_.P([_.T("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"imageOrientationStyle",null);
_.P([_.T("instruction.previewInstruction.editButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"editButton",null);_.P([_.T("instruction.editInstruction.saveButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"saveButton",null);_.P([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],VX.prototype,"cropOffsetTop",null);
_.P([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],VX.prototype,"cropOffsetLeft",null);_.P([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"pickerBackgroundStyle",null);_.P([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"pickerDisplayStyle",null);
_.P([_.T("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"imageInPickerStyle",null);_.P([_.T("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"previewClipperStyle",null);_.P([_.ul("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VX.prototype,"onImageDataChange",null);
_.P([_.T("cropCoordinatesSaved"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VX.prototype,"pickerModeStyle",null);_.P([_.T("instruction.editInstruction.learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"learnMore",null);_.P([_.T("learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"learnMoreUrl",null);_.P([_.gz({is:"yt-img-crop-picker",disableElementRegistration:!0})],VX);
_.H(VX,"yt-img-crop-picker",function(){if(PiD===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Khv===void 0&&(Khv=document.createElement("template"));var b=Khv;t.call(e,b.content.cloneNode(!0),W.content.firstChild);PiD=W}W=PiD;return W},{mode:2});var iB=function(){var W=_.O.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.Z(iB,_.O);_.r=iB.prototype;_.r.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"}}}};
_.r.detached=function(){this.removeOverlay()};
_.r.setPreview=function(W){_.rz(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.q2(this.hostElement,"yt-backstage-image-select-preview")};
_.r.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.rz(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.q2(this.hostElement,"yt-backstage-image-select-cancel")};
_.r.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var e=_.rz(this.hostElement).querySelector("#dropzone"),t=_.rz(this.hostElement).querySelector("#select");this.overlay=new EW(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,e,t,!0);_.p4(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.p4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.p4(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.p4(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.p4(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.r.removeOverlay=function(){this.overlay&&(_.lj(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.lj(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.lj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.lj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.lj(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.r.onDragOver=function(W){var e=_.rz(this.hostElement).querySelector("#dropzone");_.RH(e,"dragover",W.value)};
_.r.onPreview=function(W){this.setPreview(W.value)};
_.r.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var e;W=(e=this.data)==null?void 0:e.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var t;W=(t=this.data)==null?void 0:t.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var b;W=(b=this.data)==null?void 0:b.invalidAspectRatioError}else return;this.errorMessage=_.Ub(W);_.rz(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.r.onImageAlert=function(W){this.onImageError(W)};
_.r.uploadPromise=function(){var W=this,e=this.overlay&&this.overlay.uploadPromise();if(e)return e.catch(function(){throw Error(W.data?_.Ub(W.data.uploadFailureError):"");})};
_.Ec.Object.defineProperties(iB.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,e;if((W=this.data)==null?0:(e=W.icon)==null?0:e.iconType)return _.ao(this.data.icon.iconType)}}});
iB.prototype.setupOverlay=iB.prototype.setupOverlay;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iB.prototype,"rendererStamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iB.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],iB.prototype,"imageUploadEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],iB.prototype,"errorMessage",void 0);
_.P([_.J(),_.Y("design:type",EW)],iB.prototype,"overlay",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iB.prototype,"hasPreview",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iB.prototype,"isBackstagePost",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iB.prototype,"selectionCancel",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iB.prototype,"previewCancel",null);
_.P([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iB.prototype,"icon",null);_.P([_.J(),_.Y("design:type",Object)],iB.prototype,"dismissButtonOverrides",void 0);_.P([_.ul("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iB.prototype,"setupOverlay",null);_.P([_.h({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],iB);
_.H(iB,"ytd-backstage-image-select-renderer",function(){if(hWZ!==void 0)return hWZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return hWZ=W},{mode:1});var VR8;var iqr;var YW=function(){var W=_.O.apply(this,arguments)||this;W.selected=!1;return W};
_.Z(YW,_.O);_.r=YW.prototype;_.r.computeSelected=function(W){return W==null?void 0:W.selected};
_.r.computeTransform=function(W,e,t){var b,m,q=(m=(b=this.imageContainer)==null?void 0:b.getBoundingClientRect())!=null?m:{width:0,height:0};b=Math.max(q.width/e,q.height/t);t=t*b*W.top;return"translateX("+this.getSignedPosition(e*b*W.left,"X","-")+") translateY("+this.getSignedPosition(t,"Y","-")+")"};
_.r.getSignedPosition=function(W,e,t){return e==="X"&&_.Ot("HTML_DIR")==="rtl"?t==="-"?W+"px":W*-1+"px":t==="-"?W*-1+"px":W+"px"};
_.r.onClick=function(){var W;_.q2(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.r.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.Ec.Object.defineProperties(YW.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.image)==null?void 0:e.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var e;W=(e=this.data)==null?void 0:e.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(e=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+e+";":"height:inherit;transform:"+e+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
YW.prototype.onKeyPress=YW.prototype.onKeyPress;_.P([_.vG(".image-container"),_.Y("design:type",HTMLElement)],YW.prototype,"imageContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],YW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Y("design:type",Object)],YW.prototype,"selected",void 0);_.P([_.T("data.image"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YW.prototype,"thumbnailUrl",null);
_.P([_.T("data.image","data.image.previewCoordinates"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YW.prototype,"thumbnailStyle",null);_.P([_.wz("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],YW.prototype,"onKeyPress",null);_.P([_.h({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],YW);
_.H(YW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(iqr!==void 0)return iqr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return iqr=W},{mode:2});var z7=function(W,e,t){t=t===void 0?!1:t;_.ZY.call(this);var b=this;this.dropZoneOverlay=new wv(W);this.selectOverlay=t?new uy(e,"multiple_file",["image/*"]):new uy(e,"single_file",["image/*"]);this.handler=new _.bk(this);_.w$(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(e,"click",function(){b.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.Z(z7,_.ZY);z7.prototype.onChange=function(W){var e;(e=W.files)!=null&&e.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var U3=function(){var W=_.O.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.S("web_modern_buttons");W.maxNumImagesPerPost=_.mn("max_num_images_per_post_web_ui");W.JSC$13612_imageId=0;return W};
_.Z(U3,_.O);_.r=U3.prototype;_.r.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.q2(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.r.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var e,t=qvy(_.e1.getInstance(),(e=this.data)==null?void 0:e.dragToReorderTooltip);_.Tm.addLowPriorityJob(function(){_.IT(W.hostElement,t,W.thumbnailDragDropArea)})}};
_.r.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}}};
_.r.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.r.onRendererstamperFinished=function(){_.LNy(this.ytReorderableBehavior,_.rz(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.rz(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.r.handleDrop=function(W){var e=W.currDragItem;if(e!=null&&e.data){W=this.images[this.selectedImageIndex];var t=e.data.image,b=this.images.indexOf(t)||0;e=_.HZ(e.parentNode.children,e);this.images.splice(b,1);this.images.splice(e,0,t);this.images=[].concat(_.kP(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.r.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new HV(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new z7(this.dropzone,this.selectLink,!0),_.p4(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new z7(this.addImageButtonContainer,this.addImageSelectButton),_.p4(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.p4(this.JSC$13612_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.p4(this.JSC$13612_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.p4(_.rz(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.r.detached=function(){this.initialPicker&&(_.lj(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.lj(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.r.onInitialSelectImages=function(W){var e=this;return _.F(function(t){return _.a(t,e.onSelectImages(W,!1),0)})};
_.r.onAddImage=function(W){var e=this;return _.F(function(t){return _.a(t,e.onSelectImages(W,!0),0)})};
_.r.onSelectImages=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E;return _.F(function(RR){switch(RR.nextAddress){case 1:e?t.addImageErrorMessage="":(t.images=[],t.errorMessage="");b=W.detail;m=t.validateImages([].concat(_.kP(b)));if(m!=="")return e?t.addImageErrorMessage=m:t.errorMessage=m,RR.return();q=[].concat(_.kP(b)).map(function(uv){return(new UW(t.maxAspectRatio,!1,!0)).transform(uv)});
return _.a(RR,Promise.allSettled(q),2);case 2:Q=RR.yieldResult,X=_.R(Q.entries()),I=X.next();case 3:if(I.done){RR.jumpTo(5);break}u=I.value;c=_.R(u);v=c.next().value;D=c.next().value;B=v;k=D;if(k.status!=="fulfilled"){M=f=n=void 0;e?t.addImageErrorMessage=_.Ub((n=t.data)==null?void 0:n.invalidError):t.errorMessage=t.errorMessage===""?_.Ub((f=t.data)==null?void 0:f.invalidError):_.Ub((M=t.data)==null?void 0:M.multiFileError);RR.jumpTo(4);break}K=k.value;K.cropped&&_.q2(t.hostElement,"yt-backstage-multi-image-cropped");
if(K.invalidAspectRatio){L=V=U=void 0;e?t.addImageErrorMessage=_.Ub((U=t.data)==null?void 0:U.invalidAspectRatioError):t.errorMessage=t.errorMessage===""?_.Ub((V=t.data)==null?void 0:V.invalidAspectRatioError):_.Ub((L=t.data)==null?void 0:L.multiFileError);RR.jumpTo(4);break}return _.a(RR,M6G(t.JSC$13612_imageId,W.detail[B],K.transformedData),8);case 8:E=RR.yieldResult,t.images.push(E),t.JSC$13612_imageId++;case 4:I=X.next();RR.jumpTo(3);break;case 5:if(t.errorMessage!==""||t.addImageErrorMessage!==
"")return RR.return();e?fOv(t.uploadManager,[t.images[t.images.length-1]]):fOv(t.uploadManager,t.images);t.images=[].concat(_.kP(t.images));t.selectedImageIndex=e?Math.max(t.images.length-1,0):0;_.q2(t.hostElement,"yt-backstage-multi-image-select");_.u8(RR)}})};
_.r.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.r.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var e;return _.Ub((e=this.data)==null?void 0:e.multiImageExceedMaxImageCountError)}var t=1048576*this.maxFileSizeMb;W=W.filter(function(q){return q.size>t}).length;
if(W===0)return"";var b,m;W=W>1?(b=this.data)==null?void 0:b.multiFileError:(m=this.data)==null?void 0:m.fileSizeError;return _.Ub(W)};
_.r.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.kP(this.images));this.selectedImageIndex=0};
_.r.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.kP(this.images))};
_.r.getAllUploadStatuses=function(){var W=this,e,t,b,m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.uploadManager.getAllUploadStatuses(),2);e=q.yieldResult;t=_.R(e);for(b=t.next();!b.done;b=t.next())if(m=b.value,m.encryptedBlobId===void 0)return q.return(gTy(W.uploadManager));return q.return(e)})};
_.r.hasImages=function(){return this.images.length>0};
_.r.cancel=function(){for(var W=this.uploadManager,e=_.R(W.imagesUploadData),t=e.next();!t.done;t=e.next())W.cancel(t.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.q2(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Ec.Object.defineProperties(U3.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.imageUploadEndpoint)==null?void 0:(e=W.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.imageUploadEndpoint)==null?void 0:(e=W.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,e;if((W=this.data)==null?0:(e=W.icon)==null?0:e.iconType)return _.ao(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(e,t){return{renderer:{image:e,selected:t===W.selectedImageIndex}}})}}});
U3.prototype.setUpImagePicker=U3.prototype.setUpImagePicker;U3.prototype.onRendererstamperFinished=U3.prototype.onRendererstamperFinished;U3.prototype.observeDragToReorder=U3.prototype.observeDragToReorder;U3.prototype.observeAddImageError=U3.prototype.observeAddImageError;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],U3.prototype,"rendererStamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.E_P),_.Y("design:type",Object)],U3.prototype,"ytReorderableBehavior",void 0);_.P([_.vG("#dropzone"),_.Y("design:type",HTMLElement)],U3.prototype,"dropzone",void 0);_.P([_.vG("#select-link"),_.Y("design:type",HTMLElement)],U3.prototype,"selectLink",void 0);_.P([_.vG("#thumbnail-drag-drop-area"),_.Y("design:type",HTMLElement)],U3.prototype,"thumbnailDragDropArea",void 0);_.P([_.vG("#add-image-button-container"),_.Y("design:type",HTMLElement)],U3.prototype,"addImageButtonContainer",void 0);
_.P([_.vG("#add-image-button"),_.Y("design:type",HTMLElement)],U3.prototype,"addImageSelectButton",void 0);_.P([_.vG("#image-preview-container"),_.Y("design:type",Object)],U3.prototype,"JSC$13612_imagePreviewContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],U3.prototype,"addImageErrorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],U3.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],U3.prototype,"errorMessage",void 0);
_.P([_.J(),_.Y("design:type",Object)],U3.prototype,"imageUploadEndpoint",void 0);_.P([_.J(),_.Y("design:type",Array)],U3.prototype,"images",void 0);_.P([_.J(),_.Y("design:type",z7)],U3.prototype,"initialPicker",void 0);_.P([_.J(),_.Y("design:type",z7)],U3.prototype,"addImagePicker",void 0);_.P([_.J(),_.Y("design:type",HV)],U3.prototype,"uploadManager",void 0);_.P([_.J(),_.Y("design:type",Object)],U3.prototype,"selectedImageIndex",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],U3.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],U3.prototype,"maxNumImagesPerPost",void 0);_.P([_.T("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],U3.prototype,"maxAspectRatio",null);_.P([_.T("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],U3.prototype,"maxFileSizeMb",null);
_.P([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U3.prototype,"dropIcon",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U3.prototype,"selectionCancel",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U3.prototype,"previewCancel",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U3.prototype,"dataForAddImageButton",null);
_.P([_.T("errorMessage"),_.Y("design:type",String),_.Y("design:paramtypes",[])],U3.prototype,"dropzoneClass",null);_.P([_.T("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],U3.prototype,"showImagesPreview",null);_.P([_.T("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],U3.prototype,"containMaxImages",null);_.P([_.ul("addImageErrorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U3.prototype,"observeAddImageError",null);
_.P([_.ul("showImagesPreview"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U3.prototype,"observeDragToReorder",null);_.P([_.T("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U3.prototype,"selectedImageData",null);_.P([_.T("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],U3.prototype,"thumbnailRenderers",null);
_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U3.prototype,"onRendererstamperFinished",null);_.P([_.ul("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U3.prototype,"setUpImagePicker",null);_.P([_.h({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],U3);
_.H(U3,"ytd-backstage-multi-image-select-renderer",function(){if(VR8!==void 0)return VR8;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return VR8=W},{mode:1});var YNU;var zWD;var UOk;var LL=function(){var W=_.O.apply(this,arguments)||this;W.boundCaptureFocus=function(e){W.onCaptureFocus(e)};
return W};
_.Z(LL,_.O);_.r=LL.prototype;_.r.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.r.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.r.onCaptureFocus=function(W){_.LB(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.r.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.r.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.S("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var e;((e=_.l(this.data.onSelectCommand.commandMetadata,_.ez))==null?0:e.url)?_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.ee().resolve(_.tQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Ec.Object.defineProperties(LL.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Ub(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}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],LL.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],LL.prototype,"data",void 0);_.P([_.vG("#item"),_.Y("design:type",HTMLElement)],LL.prototype,"item",void 0);_.P([_.T("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],LL.prototype,"label",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],LL.prototype,"value",null);_.P([_.h({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],LL);
_.H(LL,"ytd-privacy-dropdown-item-renderer",function(){if(UOk!==void 0)return UOk;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UOk=W},{mode:1});var E3=function(){var W=_.O.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.Z(E3,_.O);_.r=E3.prototype;_.r.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"}}}};
_.r.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.r.dataChanged=function(){this.reset()};
_.r.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.R(this.data.entries);for(var e=W.next();!e.done;e=W.next())if((e=this.getRendererForEntry(e.value))&&this.getItemRendererValue(e)===this.value){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}}};
_.r.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.R(this.data.entries),e=W.next();!e.done;e=W.next())if(e=this.getRendererForEntry(e.value)){if(e.isSelected){this.label=this.ytComponentBehavior.getSimpleString(e.label);break}this.data.label&&(this.label=this.data.label)}};
_.r.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.R(this.data.entries),e=W.next();!e.done;e=W.next()){e=this.getRendererForEntry(e.value);var t=void 0;if((t=e)==null?0:t.isSelected)return this.getItemRendererValue(e)||-1}return-1};
_.r.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.r.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("value-changed",this.value))};
_.r.updateValueFromBinding=function(W){this.value=W.detail.value};
E3.prototype.valueChangedForBinding=E3.prototype.valueChangedForBinding;E3.prototype.valueChanged=E3.prototype.valueChanged;E3.prototype.dataChanged=E3.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],E3.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],E3.prototype,"value",void 0);_.P([_.J(),_.Y("design:type",Object)],E3.prototype,"label",void 0);_.P([_.vG("#entries"),_.Y("design:type",Object)],E3.prototype,"entries",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],E3.prototype,"disabled",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E3.prototype,"dataChanged",null);
_.P([_.BG("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E3.prototype,"valueChanged",null);_.P([_.ul("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E3.prototype,"valueChangedForBinding",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],E3);
_.H(E3,"ytd-flat-dropdown-renderer",function(){if(zWD!==void 0)return zWD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zWD=W},{mode:1});var Lhr;var AU=function(){var W=_.O.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.Z(AU,_.O);_.r=AU.prototype;_.r.dataChanged=function(){this.optionPlaceholderText=_.Ub(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Ub(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.r.onMarkCorrectAnswer=function(W){var e,t=((e=this.quizOptions[this.correctAnswerIndex])==null?void 0:e.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:t,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.kP(this.quizOptions))};
_.r.updatePlaceholderTexts=function(){for(var W=!1,e=[],t=0;t<this.quizOptions.length;t++){var b=this.optionPlaceholderText+" "+(t+1),m=void 0;((m=this.quizOptions[t])==null?void 0:m.placeholderText)!==b?(W=!0,e.push(Object.assign({},this.quizOptions[t],{placeholderText:b}))):e.push(this.quizOptions[t])}W&&(this.quizOptions=e);this.isValid()?_.q2(this.hostElement,"yt-commentbox-post-enable"):_.q2(this.hostElement,"yt-commentbox-post-disable")};
_.r.getSimpleString=function(W){return _.Ub(W)};
_.r.createQuizOptions=function(W){var e=[],t;W=(t=W==null?void 0:W.minQuizOptions)!=null?t:0;for(t=0;t<W;t++)e.push(this.createQuizOption());return e};
_.r.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.kP(this.quizOptions),[this.createQuizOption()]))};
_.r.onInput=function(){this.quizOptions=[].concat(_.kP(this.quizOptions))};
_.r.onExplanationInput=function(){_.q2(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.r.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.kP(this.quizOptions));this.quizOptions.length===0&&_.q2(this.hostElement,"yt-quiz-attachment-dismiss")};
_.r.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.r.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,e=0,t=_.R(this.quizOptions),b=t.next();!b.done;b=t.next()){b=b.value;var m=void 0;if(((m=b.optionText)==null?void 0:m.trim())!==""||b.isCorrect){b.isCorrect&&e++;m=void 0;if(this.hasCustomOptionText&&((m=b.optionText)==null?void 0:m.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&e===1};
_.r.getPostCreateOptions=function(){for(var W=[],e=_.R(this.quizOptions),t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;((b=t.optionText)==null?void 0:b.trim())!==""&&W.push({pollOption:{text:t.optionText,explanation:t.explanationText},isCorrect:t.isCorrect})}return W};
_.r.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.r.maybeDisplayMarkAnswerEduToolTip=function(){var W,e,t,b,m,q,Q;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(e=W.markAnswerButton)==null?0:(t=e.buttonRenderer)==null?0:(b=t.hint)==null?0:(m=b.hintRenderer)==null?0:(q=m.content)==null?0:(Q=q.bubbleHintRenderer)==null?0:Q.text)&&(_.e1.getInstance(),W=th(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.cg(W[0],this.optionSelectors[0]))};
_.r.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,e=_.R(this.quizOptions),t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;((b=t.optionText)==null?void 0:b.trim())!==""&&W++;if(t.isCorrect)return!1}return W<2?!1:!0};
_.r.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.r.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.r.updateOptionTextFromBinding=function(W){if(W.target){var e=Array.from(_.rz(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(e>=0){var t;this.quizOptions[e].optionText=(t=W.detail.value)!=null?t:""}}};
_.Ec.Object.defineProperties(AU.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.editorInfo)==null?void 0:(e=W.addOptionButton)==null?void 0:e.buttonRenderer;t&&(t.style="STYLE_SUGGESTIVE",t.size="SIZE_SMALL",t.isDisabled=!this.isAllowedToAddOption);return(t==null?0:t.text)?t:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,e;return this.quizOptions.length<((e=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?e:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var e;return(e=W.optionText)==null?void 0:e.trim()})}}});
AU.prototype.updatePlaceholderTexts=AU.prototype.updatePlaceholderTexts;AU.prototype.dataChanged=AU.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],AU.prototype,"editorInfo",void 0);_.P([_.J(),_.Y("design:type",Array)],AU.prototype,"quizOptions",void 0);_.P([_.J(),_.Y("design:type",Object)],AU.prototype,"explanationPlaceholderText",void 0);_.P([_.GF(".option-selector-button"),_.Y("design:type",Array)],AU.prototype,"optionSelectors",void 0);
_.P([_.BG("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AU.prototype,"dataChanged",null);_.P([_.T("editorInfo","isAllowedToAddOption","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AU.prototype,"addAnswerButton",null);_.P([_.T("editorInfo","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AU.prototype,"isAllowedToAddOption",null);
_.P([_.BG("quizOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AU.prototype,"updatePlaceholderTexts",null);_.P([_.T("quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AU.prototype,"hasCustomOptionText",null);_.P([_.h({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],AU);
_.H(AU,"ytd-backstage-quiz-editor-renderer",function(){if(Lhr!==void 0)return Lhr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lhr=W},{mode:2});var ET8;var AwP=(Cv.FIRSTDAYOFWEEK+1)%7;var Nmr;var dO8=[],Wqh=0,enk=0;Wqh=0;enk=24;if(.25*(enk-Wqh)<0)Nmr=[];else{for(var tx8=Wqh;tx8<enk;tx8+=.25)dO8.push(tx8);Nmr=dO8}var bpN=Nmr.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new iX(7)).format(new Date(0,0,0,0,0,W))}});var mHD;var NE=function(){var W=_.O.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";return W};
_.Z(NE,_.O);_.r=NE.prototype;_.r.attached=function(){var W=this,e=new MutationObserver(function(){W.JSC$13655_calendarMain.scrollHeight>0&&(e.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
e.observe(this.JSC$13655_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){e.disconnect()},1E3)};
_.r.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.r.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.r.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.r.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=L9v(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$13655_calendarMain.scrollToIndex(W)}};
_.r.scrollToNextMonth=function(){this.JSC$13655_calendarMain.scrollToIndex(this.JSC$13655_calendarMain.firstVisibleIndex+1)};
_.r.scrollToPrevMonth=function(){this.JSC$13655_calendarMain.firstVisibleIndex===0&&this.JSC$13655_calendarMain.scrollTo(0,0);this.JSC$13655_calendarMain.scrollToIndex(this.JSC$13655_calendarMain.firstVisibleIndex-1)};
_.r.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.r.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var e=0;e<this.dropdownButton.children.length;e++)this.dropdownButton.children[e]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;e=this.validateDateText();W&&e.isValid&&this.commitDate(e.details);this.dialog.close();this.textbox.value=
this.dateText};
_.r.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.q2(this.hostElement,"ytd-calendar-date-selected",W))};
_.r.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var e=new Date;W=(new uJG(2)).parse(W,e,{validate:!0})===W.length?ztv(e):void 0;if(!W)return this.errorMessage=_.Gv("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};e=this.calendarConfig.start;var t=this.calendarConfig.end;if(K9G(W,e))return this.errorMessage=_.Gv("ENTER_DATE_OR_LATER",{allowed_date:Y7s(e)}),{isValid:!1,details:void 0};if(K9G(t,W))return this.errorMessage=
_.Gv("ENTER_DATE_OR_EARLIER",{allowed_date:Y7s(t)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.Ec.Object.defineProperties(NE.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Y7s(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,e=[],t=0;t<7;t++)e.push(Cv.NARROWWEEKDAYS[(t+AwP)%7]);t=[];for(var b=new Date(W.start.year,W.start.month);b.getFullYear()<W.end.year||b.getFullYear()===W.end.year&&b.getMonth()<=W.end.month;){var m=t,q=m.push,Q=b.getFullYear(),X=b.getMonth(),I=W,u=void 0,c=[],v=Object.freeze({extraCssClass:"invisible",debugClass:""}),D=new Date(Q,X),B=ztv(D);D=D.getDay();for(var k=ztv(new Date);B.month===
X;){D!==AwP&&u||(u=Array.from({length:7}).fill(v),c.push(u));var n={date:{year:Q,month:X,day:B.day},extraCssClass:"",debugClass:""};I.selectedDate&&n.date&&H9R(n.date,I.selectedDate)&&(n.extraCssClass+=" selected");if(K9G(B,I.start)||K9G(I.end,B))n.extraCssClass+=" disabled";H9R(B,k)&&(n.extraCssClass+=" today");n.extraCssClass=n.extraCssClass.trim();u[(D-AwP+7)%7]=n;B=V6G(B);D=(D+1)%7}q.call(m,{weeks:c,monthLabel:Cv.SHORTMONTHS[X]+" "+Q,year:Q,month:X,monthLabelExtraCssClass:c[0][2]===v?"shift-down-label":
""});b.setMonth(b.getMonth()+1)}return{months:t,daysOfWeekLabel:e}}}}});
NE.prototype.onEscOrClickingOutside=NE.prototype.onEscOrClickingOutside;NE.prototype.scrollToDate=NE.prototype.scrollToDate;_.P([_.J(),_.Y("design:type",Object)],NE.prototype,"calendarConfig",void 0);_.P([_.J(),_.Y("design:type",Object)],NE.prototype,"skipNextOpenDialog",void 0);_.P([_.J(),_.Y("design:type",Object)],NE.prototype,"errorMessage",void 0);_.P([_.vG("#textbox"),_.Y("design:type",HTMLInputElement)],NE.prototype,"textbox",void 0);
_.P([_.vG("#calendar-dialog"),_.Y("design:type",Object)],NE.prototype,"dialog",void 0);_.P([_.vG("#calendar-main"),_.Y("design:type",Object)],NE.prototype,"JSC$13655_calendarMain",void 0);_.P([_.vG("#date-picker"),_.Y("design:type",HTMLElement)],NE.prototype,"dropdownButton",void 0);_.P([_.T("calendarConfig.selectedDate"),_.Y("design:type",String),_.Y("design:paramtypes",[])],NE.prototype,"dateText",null);
_.P([_.T("calendarConfig","calendarConfig.selectedDate"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NE.prototype,"renderData",null);_.P([_.ul("renderData","calendarConfig.selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NE.prototype,"scrollToDate",null);_.P([_.wz("iron-overlay-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NE.prototype,"onEscOrClickingOutside",null);
_.P([_.gz({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],NE);
_.H(NE,"ytd-calendar-date-picker",function(){if(mHD!==void 0)return mHD;var W=document.createElement("template");_.p(W,'\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" 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" 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mHD=W},{mode:2});var rID=_.Gv("UTC_OFFSET_FORMAT",{utc_offset:(new iX("Z")).format(new Date)}),qIS=(new Date).getTimezoneOffset()*-60,Rnk=new Date,Qde,FqN=VJ(Rnk.getTimezoneOffset());Qde=aNU(u4Z(FqN,Rnk));var XPk=_.Gv("LOCAL_TIME_GMT_LABEL",{gmt_text:Qde.replace("+0","+").replace("-0","-").replace(":00","")}),dX=function(){var W=_.O.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=bpN;return W};
_.Z(dX,_.O);_.r=dX.prototype;_.r.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=i9v();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var e=UCQ(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:e.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(t){return t.secondsSinceMidnight===e.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.r.onDatePicked=function(W){this.selectedDate=W.detail};
_.r.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.q2(this.hostElement,"ytd-date-time-selection-cancelled")};
_.r.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.q2(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.r.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.Gv("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.r.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.r.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.Ec.Object.defineProperties(dX.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var e={name:"Etc/Unknown",localizedName:_.Gv("LOCAL_TIME_LABEL"),localizedUtcOffset:rID,utcOffsetSec:""+qIS,localizedDisplayText:XPk};W?W.length&&W[0].name!==e.name&&(W[0].localizedDisplayText||(e.localizedDisplayText=""),W.unshift(e)):W=[e];return W}}},
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]}}});
dX.prototype.onDateTimeTimezoneChange=dX.prototype.onDateTimeTimezoneChange;dX.prototype.onDatePicked=dX.prototype.onDatePicked;dX.prototype.updateDefaultSelectedValue=dX.prototype.updateDefaultSelectedValue;_.P([_.J(),_.Y("design:type",Object)],dX.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],dX.prototype,"calendarConfig",void 0);_.P([_.J(),_.Y("design:type",Object)],dX.prototype,"selectedDate",void 0);_.P([_.J(),_.Y("design:type",Object)],dX.prototype,"selectedTimeIndex",void 0);
_.P([_.J(),_.Y("design:type",Object)],dX.prototype,"selectedTimezoneIndex",void 0);_.P([_.vG("#time-listbox"),_.Y("design:type",Object)],dX.prototype,"timeListBox",void 0);_.P([_.vG("#timezone-listbox"),_.Y("design:type",Object)],dX.prototype,"timezoneListBox",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dX.prototype,"rendererStamperBehavior",void 0);_.P([_.T("data.timezoneOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dX.prototype,"timeZones",null);
_.P([_.BG("data","timeZones"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dX.prototype,"updateDefaultSelectedValue",null);_.P([_.T("selectedTimezoneIndex","timeZones"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dX.prototype,"selectedTimezone",null);_.P([_.T("selectedTimeIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dX.prototype,"selectedTime",null);
_.P([_.wz("ytd-calendar-date-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dX.prototype,"onDatePicked",null);_.P([_.ul("selectedTimezone","selectedTime","selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dX.prototype,"onDateTimeTimezoneChange",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],dX);
_.H(dX,"ytd-date-time-picker-renderer",function(){if(ET8!==void 0)return ET8;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ET8=W},{mode:1});var IiZ;var Wv=function(){var W=_.O.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.Z(Wv,_.O);Wv.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}}}}}};
Wv.prototype.dismissTapHandler=function(){_.q2(this.hostElement,"yt-backstage-attachment-dismissed")};
Wv.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wv.prototype,"attachmentPreview",void 0);_.P([_.J(),_.Y("design:type",Object)],Wv.prototype,"dismissButton",void 0);_.P([_.J(),_.Y("design:type",Object)],Wv.prototype,"boundOnTapDismissButton",void 0);
_.P([_.J(),_.Y("design:type",Object)],Wv.prototype,"dismissButtonOverrides",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Y("design:type",String)],Wv.prototype,"attachmentType",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Wv);
_.H(Wv,"ytd-backstage-dismissable-attachment",function(){if(IiZ!==void 0)return IiZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IiZ=W},{mode:1});var aiN;var es=function(){var W=_.O.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.Z(es,_.O);_.r=es.prototype;_.r.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.r.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.r.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}}}}}};
_.r.onLaunchVideoPicker=function(W){var e=this,t=_.Ub(this.get("addVideoLinkAction.title",W)),b=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);b&&(this.picker||(t=_.FJS(_.BqG(b).setTitle(t).addView(rOb()).addView(m58()),function(m){e.onPickVideo(m)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||t.addView("youtube"),this.picker=t.build()),this.picker.setVisible(!0))};
_.r.onPickVideo=function(W){if(W)if(W.action==="cancel")_.q2(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.r.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.r.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.q2(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.r.onGetVideoPreviewError=function(){this.cancel()};
_.r.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.q2(this.hostElement,"yt-video-link-cancel")};
_.r.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
es.prototype.onServiceRequestCompleted=es.prototype.onServiceRequestCompleted;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],es.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],es.prototype,"videoPreview",void 0);_.P([_.J(),_.Y("design:type",Object)],es.prototype,"cancelButton",void 0);_.P([_.J(),_.Y("design:type",Object)],es.prototype,"getVideoPreviewCommand",void 0);_.P([_.J(),_.Y("design:type",Object)],es.prototype,"dismissButtonOverrides",void 0);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],es.prototype,"onServiceRequestCompleted",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],es);
_.H(es,"ytd-backstage-video-link-attachment",function(){if(aiN!==void 0)return aiN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aiN=W},{mode:1});var wPD;var u7r;var cI8;var tb=function(){return _.O.apply(this,arguments)||this};
_.Z(tb,_.O);tb.prototype.dataChanged=function(){this.active=!1};
tb.prototype.onTap=function(){_.q2(this.hostElement,"yt-select-emoji-suggestion",this.data)};
tb.prototype.identity=function(W){return W};
_.Ec.Object.defineProperties(tb.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;if((W=this.data)==null?0:(e=W.image)==null?0:(t=e.thumbnails)==null?0:(b=t[0])==null?0:b.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?uF(W):_.lF(W)}}});
tb.prototype.dataChanged=tb.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],tb.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tb.prototype,"active",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tb.prototype,"dataChanged",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tb.prototype,"imageSrc",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],tb);
_.H(tb,"ytd-emoji-suggestion",function(){if(cI8!==void 0)return cI8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cI8=W},{mode:1});var vp8=/.*([:@#].*?)$/,b7=function(){var W=_.O.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$13683_lastSuggestionRange=null;return W};
_.Z(b7,_.O);_.r=b7.prototype;_.r.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.r.getSuggestions=function(W){var e=[],t=ATU(this.emojiManager,W.substr(0,3));if(t)for(var b in t)if(b.toLocaleLowerCase().indexOf(W)===0){var m=t[b];if(m&&m.emojiId){m=OP(this.emojiManager,m.emojiId);var q=void 0,Q=void 0,X=void 0,I=void 0,u=((q=m)==null?0:q.isCustomEmoji)?(Q=m)==null?void 0:(X=Q.shortcuts)==null?void 0:X[0]:(I=m)==null?void 0:I.emojiId;q=void 0;e.push({suggestion:{image:(q=m)==null?void 0:q.image,alt:u,text:b}});if(e.length>=64)break}}return e?e.sort(function(c,v){return v.suggestion.text<
c.suggestion.text?-1:v.suggestion.text===c.suggestion.text?0:1}):null};
_.r.insertSuggestion=function(W){_.q2(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13683_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.r.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.r.offsetStartOfRangeBy=function(W,e){W.startOffset>=e&&W.setStart(W.startContainer,W.startOffset-e)};
_.r.updateSuggestions=function(W,e){var t=this;this.JSC$13683_lastSuggestionRange&&(this.JSC$13683_lastSuggestionRange.detach(),this.JSC$13683_lastSuggestionRange=null);if((e=vp8.exec(e))&&e.length&&(e=e[e.length-1].toLocaleLowerCase(),e.length>2||e===":_")&&(this.offsetStartOfRangeBy(W,e.length),this.JSC$13683_lastSuggestionRange=W,(W=this.getSuggestions(e))&&W.length)){this.suggestions=W;_.Uc(this,function(){t.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.r.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.r.onKeyUp=function(W,e){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(e);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(e)}};
_.r.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.r.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.r.retrieveTextBeforeRange=function(W){var e=W.startContainer;return e&&e.nodeType===Node.TEXT_NODE?e.textContent.substr(0,W.startOffset):""};
b7.prototype.onKeyPress=b7.prototype.onKeyPress;b7.prototype.onKeyUp=b7.prototype.onKeyUp;b7.prototype.onKeyDown=b7.prototype.onKeyDown;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Array)],b7.prototype,"suggestions",void 0);_.P([_.J(),_.Y("design:type",_.JH)],b7.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Number)],b7.prototype,"verticalSuggestionsOffset",void 0);
_.P([_.vG("#dropdown"),_.Y("design:type",Object)],b7.prototype,"dropdown",void 0);_.P([_.vG("#dropdown-content"),_.Y("design:type",HTMLDivElement)],b7.prototype,"dropdownContent",void 0);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],b7.prototype,"onKeyDown",null);_.P([_.wz("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent,Range]),_.Y("design:returntype")],b7.prototype,"onKeyUp",null);
_.P([_.wz("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],b7.prototype,"onKeyPress",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-emoji-input"})],b7);
_.H(b7,"ytd-emoji-input",function(){if(u7r!==void 0)return u7r;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return u7r=W},{mode:2});var GKr;var mo=function(){var W=_.O.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.Z(mo,_.O);_.r=mo.prototype;_.r.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.r.setPrefilledChoices=function(W){var e=this;this.set("pollOptions",[]);var t;for(t=0;t<Math.min(W.length,this.data.maxPollOptions);t++)this.push("pollOptions",W[t].substring(0,this.data.maxPollOptionChars));for(;t<this.data.minPollOptions;t++)this.push("pollOptions","");this.hasMaxOptions=t>=this.data.maxPollOptions;_.Uc(this,function(){for(var b=e.pollOptions,m=_.rz(e.hostElement).querySelectorAll(".poll-option-input"),q=0;q<m.length;q++)m[q].value=b[q]})};
_.r.focusChanged=function(){_.XB(this.hostElement)};
_.r.onInput=function(){var W=this;_.HG(this,"onInput",function(){W.isValid()?_.q2(W.hostElement,"yt-commentbox-post-enable"):_.q2(W.hostElement,"yt-commentbox-post-disable")},300)};
_.r.setPollOptions=function(){var W=[],e,t=((e=this.data)==null?0:e.minPollOptions)?this.data.minPollOptions:0;for(e=0;e<t;e++)W.push("");return W};
_.r.addPollOption=function(){var W=this;_.q2(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Tm.addLowPriorityJob(function(){var e;(e=_.rz(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||e.focus()})};
_.r.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.q2(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.q2(this.hostElement,"yt-commentbox-post-enable"))))};
_.r.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.r.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,e=this.pollOptions.length;W<e;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.r.getPollOptions=function(){return this.pollOptions};
_.r.setPollOptionsFromInputs=function(){for(var W=_.rz(this.hostElement).querySelectorAll(".poll-option-input"),e=0;e<W.length;e++)this.pollOptions[e]=W[e].value.trim()};
_.r.clearPollOptions=function(){var W=_.rz(this.hostElement).querySelectorAll(".poll-option-input");W=_.R(W);for(var e=W.next();!e.done;e=W.next())e.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.r.getSimpleString=function(W){return _.Ub(W)};
_.r.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var e=Array.from(_.rz(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(e>=0){var t;this.pollOptions[e]=(t=W.detail.value)!=null?t:"";this.notifyPath("pollOptions."+e)}}};
mo.prototype.dataChanged=mo.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mo.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],mo.prototype,"pollOptions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],mo.prototype,"hasMaxOptions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mo.prototype,"enableCreationBox",void 0);
_.P([_.vG("#repeat"),_.Y("design:type",jB)],mo.prototype,"repeat",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mo.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-poll-attachment"})],mo);
_.H(mo,"ytd-poll-attachment",function(){if(GKr!==void 0)return GKr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GKr=W},{mode:2});var DHr;var SIU;var Bor;var opP;var rg=function(){return _.O.apply(this,arguments)||this};
_.Z(rg,_.O);_.Ec.Object.defineProperties(rg.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rg.prototype,"rendererBehaviors",void 0);_.P([_.J(),_.Y("design:type",Object)],rg.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rg.prototype,"focused",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("focused"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rg.prototype,"ariaSelected",null);_.P([_.gz({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],rg);
_.H(rg,"yt-user-mention-suggestion-renderer",function(){if(opP===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Bor===void 0&&(Bor=document.createElement("template"));var b=Bor;t.call(e,b.content.cloneNode(!0),W.content.firstChild);opP=W}W=opP;return W},{mode:2});var liU;var Zpr;var qK=function(){var W=_.O.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.Z(qK,_.O);_.r=qK.prototype;_.r.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.r.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.r.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.r.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.r.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.rz(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.r.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.r.onSuggestionTap=function(W){var e=_.l(W.model.item,AXh);this.ytRendererBehavior.logExplicitClick(e);_.q2(this.hostElement,"yt-user-mention-suggestion-selected",{data:e,index:W.model.index})};
_.r.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.r.isSuggestionFocused=function(W,e){return W===e};
_.r.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.r.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("focused-suggestion-id-changed",this.focusedSuggestionId))};
qK.prototype.focusedSuggestionIdChangedForBinding=qK.prototype.focusedSuggestionIdChangedForBinding;qK.prototype.onDomChange=qK.prototype.onDomChange;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qK.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],qK.prototype,"focusedSuggestionIndex",void 0);_.P([_.J({readOnly:!0}),_.Y("design:type",String)],qK.prototype,"focusedSuggestionId",void 0);
_.P([_.wz("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],qK.prototype,"onDomChange",null);_.P([_.ul("focusedSuggestionId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qK.prototype,"focusedSuggestionIdChangedForBinding",null);_.P([_.gz({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],qK);
_.H(qK,"yt-user-mention-suggestions-dropdown",function(){if(Zpr===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;liU===void 0&&(liU=document.createElement("template"));var b=liU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Zpr=W}W=Zpr;return W},{mode:2});var RS=function(){var W=_.O.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.S("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.S("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.S("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.Z(RS,_.O);_.r=RS.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.r.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.r.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.r.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.r.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var e=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),t=this.activeMention.JSC$9301_getText().slice(-1)===" ",b=this.activeMention.JSC$9301_getText().slice(-2,-1)===" ",m="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9301_getText().slice(-2,-1))>=
0;m=this.zeroPrefixMentionSuggestionEnabled&&m;if(this.activeMention.isCollapsed()||(e||b||m)&&t)this.cancelActiveMention();else{var q=this.activeMention.JSC$9301_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.HG(this,"requestSuggestions",function(){W.requestSuggestions(q)},100)}}}};
_.r.onServiceRequestSent=function(W){W.stopPropagation()};
_.r.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.r.onServiceRequestError=function(W){W.stopPropagation()};
_.r.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.r.onSelectionChange=function(){if(this.activeMention){var W=_.$L(),e=this.activeMention.JSC$9301_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());e||W||this.cancelActiveMention()}};
_.r.containsHelper=function(W,e){var t;if(((t=window.ShadyDOM)==null?void 0:t.noPatch)===!0)return W.contains(e);for(;e;){if(e===W)return!0;e=e instanceof ShadowRoot?e.host:e.parentNode}return!1};
_.r.maybeStartSuggest=function(){var W=_.$L();if(W&&W.isCollapsed()){var e=W.JSC$9301_getStartNode(),t=W.JSC$9301_getStartOffset();if(e instanceof Text&&!(t<1)){var b=e.textContent;!(b=b&&b.charAt(t-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(b)<0||(this.activeMention=_.sU(e,t-1,W.JSC$9301_getEndNode(),W.JSC$9301_getEndOffset()),this.flowNonce=jV(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.r.updateActiveMention=function(){if(this.activeMention){var W=_.$L();W&&W.isCollapsed()&&(this.activeMention=_.sU(this.activeMention.JSC$9301_getStartNode(),this.activeMention.JSC$9301_getStartOffset(),W.JSC$9301_getEndNode(),W.JSC$9301_getEndOffset()))}};
_.r.requestSuggestions=function(W){if(this.activeMention){var e={suggestions_query:W};this.pendingQuery=W;_.X5(this.hostElement,[this.suggestionsEndpoint,e])}};
_.r.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()};
_.r.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.r.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.r.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var e=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.l(e,AXh)&&(this.selectSuggestion(_.l(e,AXh),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.r.selectSuggestion=function(W,e){if(W){var t=this.activeMention;if(t){var b=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.Jt(b,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.Jt(b,"\u00a0"+W.displayName+"\u00a0"):_.Jt(b,"\u00a0@"+W.displayName+"\u00a0");yE(b,"/channel/"+W.channelId);b.classList.add("yt-formatted-string","yt-simple-endpoint");b.setAttribute("spellcheck","false");t.isCollapsed()||t.JSC$9301_removeContents();t.insertNode(b,!0);W=document.createTextNode(" ");
b.parentNode.insertBefore(W,b.nextSibling);window.getSelection().collapse(W,1);e={suggestionSelected:{suggestionIndex:e}};if(this.zeroPrefixMentionSuggestionEnabled){var m;e.suggestionSelected.isZeroPrefix=((m=this.suggestionsResponse)==null?void 0:m.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",e);this.cancelActiveMention();_.q2(this.hostElement,"yt-mention-inserted")}}};
_.r.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.r.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.r.onFocusedSuggestionIdChanged=function(W){var e=_.$vg(this.hostElement)[0];e&&(W.detail.value?e.setAttribute("aria-activedescendant",W.detail.value):e.removeAttribute("aria-activedescendant"))};
_.r.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.r.logGELEvent=function(W,e){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};e&&(W=Object.assign(W,e));_.nJ("userMentionAutoCompleteBoxEvent",W)};
RS.prototype.onDomChange=RS.prototype.onDomChange;RS.prototype.onUserMentionSuggestionSelected=RS.prototype.onUserMentionSuggestionSelected;RS.prototype.onServiceRequestError=RS.prototype.onServiceRequestError;RS.prototype.onServiceRequestCompleted=RS.prototype.onServiceRequestCompleted;RS.prototype.onServiceRequestSent=RS.prototype.onServiceRequestSent;RS.prototype.onInput=RS.prototype.onInput;_.P([_.y(_.ZJ),_.Y("design:type",Object)],RS.prototype,"ironA11yKeysBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],RS.prototype,"suggestionsEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],RS.prototype,"suggestionsResponse",void 0);_.P([_.J(),_.Y("design:type",Object)],RS.prototype,"activeMention",void 0);_.P([_.vG("#dropdown"),_.Y("design:type",Object)],RS.prototype,"dropdown",void 0);_.P([_.vG("#iron-dropdown"),_.Y("design:type",Object)],RS.prototype,"ironDropdown",void 0);
_.P([_.wz("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],RS.prototype,"onInput",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RS.prototype,"onServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RS.prototype,"onServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RS.prototype,"onServiceRequestError",null);_.P([_.wz("yt-user-mention-suggestion-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RS.prototype,"onUserMentionSuggestionSelected",null);
_.P([_.wz("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RS.prototype,"onDomChange",null);_.P([_.gz({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],RS);
_.H(RS,"yt-user-mention-autosuggest-input",function(){if(SIU===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;DHr===void 0&&(DHr=document.createElement("template"));var b=DHr;t.call(e,b.content.cloneNode(!0),W.content.firstChild);SIU=W}W=SIU;return W},{mode:2});var Qz=null;
_.yQ({is:"ytd-commentbox",_template:function(){if(wPD!==void 0)return wPD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wPD=W},
behaviors:[_.tUD.YtHostElementBehavior,_.ZJ,_.qM.YtActionHandlerBehavior,_.P1.YtComponentBehavior,_.rq.YtRendererstamperBehavior,_.v_D.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(W,e){return _.I1(W.entities,"aadcGuidelinesStateEntityPayload",e)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,e){return _.I1(W.entities,"commentboxStateEntity",e)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.MM}},
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:_.S("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.S("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",_.aH(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,e,t){this.isValidPrefilledImage_(W,e,t)&&(this.prefilledAttachment_="image",this.prefilledImageData_=e,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,e){this.isValidPrefilledVideo_(W,e)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.wJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.aH(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.$L();if(W){W=W.getBrowserRangeObject();for(var e=W.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return W;e=e.parentNode}}W=this.getEditableTextArea_();W=_.MG(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,e,t){(e=this.emojiManager.createDocumentFragment(e,!0,!1,t===void 0?!0:t))&&e.childNodes.length!==0&&(W.collapsed||W.deleteContents(),t=e.lastChild,W.insertNode(e),_.TyS(t).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.$L();if(W){var e=W.JSC$9301_getStartNode(),t=W.JSC$9301_getEndNode();if(E3Q(e)&&E3Q(t)){var b=W.JSC$9301_getStartOffset(),m;if(_.vb&&e.nodeType===Node.ELEMENT_NODE&&(m=_.iQv(e)))_.MG(m,0).select();else{m=ow(e)?e:_.JD(e,ow);var q=ow(t)?t:_.JD(t,ow);if(m||q)if(W.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){W=!0;b===e.length&&(W=!1);if(Qz==="end"||Qz==="right")W=!1;e=e.parentNode;W=[].concat(_.kP(e.parentNode.childNodes)).indexOf(e)+(W?0:1);_.MG(e.parentNode,W).select()}}else m?
m.previousSibling&&m.previousSibling.length>0?_.sU(t,W.JSC$9301_getEndOffset(),m.previousSibling,m.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),m.parentNode.insertBefore(e,m),_.sU(t,W.JSC$9301_getEndOffset(),e,0).select()):q&&(q.nextSibling&&q.nextSibling.length>0?_.sU(e,W.JSC$9301_getStartOffset(),q.nextSibling,1).select():(t=document.createTextNode("\u200b"),q.parentNode.insertBefore(t,q.nextSibling),_.sU(e,W.JSC$9301_getStartOffset(),t,t.length).select()));Qz=null}}else Qz=
null}else Qz=null},
leftKeyPressed_:function(){Qz="left"},
rightKeyPressed_:function(){Qz="right"},
endKeyPressed_:function(){Qz="end"},
maybeDeleteChip_:function(){var W=tRS(!0);if(W){var e=_.$L(),t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();_.fs(t,e,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=tRS(!1);if(W){var e=_.$L(),t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();_.fs(t,e,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var e=_.$L();if(e.isCollapsed()){var t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();var b=bqG(t,e,!0);b&&(_.fs(t,e,b,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var e=_.$L();if(e.isCollapsed()){var t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();var b=bqG(t,e,!1);b&&(_.fs(t,e,b,b.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&ow(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var e=this.$$("#emojis"),t=this.$$("#emoji-button"),b=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(e)&&!W.includes(b)&&!W.includes(t))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,e,t){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e!==void 0&&e.encryptedBlobId!==null&&e.sourceExternalVideoId!==null&&t!==void 0&&t.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,e){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!e&&!!e.videoRenderer&&!!e.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,e,t){return this.isValidPrefilledImage_(W,e,t)||this.isValidPrefilledVideo_(W,t)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.S("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.rz(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.rz(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(W,e){W=Ni2(W,this.emojiManager,e).cloneNode(!0);for(e=W.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var t=_.jQ();_.ds8(t,e);e=t.nextSibling;break;case "DIV":(t=e.lastChild)&&e.nextSibling&&_.gj(_.jQ(),t);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.fd(_.jQ(),e);t&&t.nodeName==="BR"&&_.BX(t);t=e;e.hasChildNodes()?(e=e.firstChild,
_.WeD(t)):(e=e.nextSibling,_.BX(t));break;default:e=e.nextSibling}return mOQ(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.zq(W.detail)},
setTextAreaValue_:function(W){W||(W="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});e.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Qz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.MG(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ot("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",e)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return wqv((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||wqv(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(W=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,e,t){e=e===void 0?!1:e;t=t===void 0?!0:t;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(e&&this.emojiInput.offsetStartOfRangeBy(b,W.length),this.insertTextWithEmojis_(b,W,t),AlZ(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,W),this.updateSuggestionOffset_(b)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",e=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||e){var t=this.getTextAreaValue().trim();e=t===this.previousText_;t=!t||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(t=this.aboveCharLimit_);this.submitButtonDisabled=
e||t||!this.getTextLength();W&&_.S("enable_post_scheduling")&&(this.submitButtonDisabled=e&&!this.scheduledPublishTimeSec_||t)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Ub,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,e){return e?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,e){return e?e:W},
computeFooterMessageHidden_:function(W,e){return!e&&!W},
computePlaceholderText_:function(W,e,t){return(t==="video"||t==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:e==="poll"||e==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:e==="quiz"?W==null?void 0:W.quizPostPlaceholderText:e==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,e,t,b){return W===void 0?!1:b&&this.getSimpleString(b)===this.getSimpleString(W.rateLimitErrorMessage)?!0:e!=="none"||t!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,e){return W&&!e?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var e,t;return W==null?void 0:(e=W.advancedTierFeatures)==null?void 0:(t=e.rateLimit)==null?void 0:t.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.S("web_modern_buttons")){var W,e;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(e=W.postOptionsMenu)==null?0:e.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.S("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,e){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);e&&(W=e);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.S("enable_rfa_external_links")){var e,t,b;return(b=W==null?void 0:(e=W.advancedTierFeatures)==null?void 0:(t=e.externalLinks)==null?void 0:t.allowExternalLinks)!=null?b:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(e){return e.emojiPickerCategoryRenderer?e.emojiPickerCategoryRenderer.emojiIds&&e.emojiPickerCategoryRenderer.emojiIds.length>0:e.emojiPickerUpsellCategoryRenderer?e.emojiPickerUpsellCategoryRenderer.emojis&&e.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,e){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&e)return e},
computeInlineSchedulingPanel_:function(W,e){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&e)return e},
computeHideAuthorThumbnail_:function(W,e){return W||this.computeUseIdentityChip_(e)},
computeHideIdentityChipRenderer_:function(W,e){return W||!this.computeUseIdentityChip_(e)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var e,t,b,m;(W==null?0:(e=W.detail)==null?0:(t=e.endpoint)==null?0:t.ypcGetOffersEndpoint)||(W==null?0:(b=W.detail)==null?0:(m=b.endpoint)==null?0:m.ypcOffersEndpoint)?(W.stopPropagation(),_.X5(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var e=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){e.focus()})},
onYtServiceRequestSent_:function(W,e){if(e.actions)for(W=_.R(e.actions),e=W.next();!e.done;e=W.next())e.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var e=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),t,b,m,q=W==null?void 0:(t=W.detail)==null?void 0:(b=t.data)==null?void 0:(m=b.actionResult)==null?void 0:m.commentboxStateEntityKey;if(e)this.errorMessage_=e;else if(q){var Q;this.dismissData_=W==null?void 0:(Q=W.detail)==null?void 0:Q.data;this.commentboxStateKey_=q}else{this.clear();var X;this.fire("yt-commentbox-dismiss",W==null?void 0:(X=W.detail)==
null?void 0:X.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var e,t;if(((e=this.data)==null?void 0:e.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(e=this.get("detail.error.args",W)||[],e.length>1&&e[1].message){this.handlePostsServiceRequestError_(e[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.zq(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.S("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var e=_.R(this.rateLimitErrorCommands),t=e.next();!t.done;t=e.next())if(t=t.value,t.errorLabel===W){_.cg(t.command,this.hostElement);return}this.errorMessage_=_.zq(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var e=this,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f;return _.F(function(M){switch(M.nextAddress){case 1:W.stopPropagation();if(!e.serviceEndpoint||!e.isValidInput_())return M.return();if(e.shouldShowPostAadcNotice_())return e.showPostAadcNotice_(),M.return();if(e.shouldShowCommentAadcNotice_())return e.showCommentAadcNotice_(),M.return();if(!(e.$$("ytd-backstage-multi-image-select-renderer")&&e.hasImage_&&_.S("enable_multi_image_post_creation"))){M.jumpTo(2);break}t=e.$$("ytd-backstage-multi-image-select-renderer");
return _.a(M,t.getAllUploadStatuses(),3);case 3:b=M.yieldResult;if(!b)return M.return();m=_.R(b);for(q=m.next();!q.done;q=m.next())if(Q=q.value,Q.encryptedBlobId===void 0)return e.isLoading=!1,I=X=void 0,e.errorMessage_=(I=(X=e.imageUploadEndpoint_)==null?void 0:X.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?I:null,M.return();return M.return(e.submitForm_(void 0,void 0,void 0,void 0,t.images,e.taggedVideoId_));case 2:if(!e.hasImagePoll_||!e.$["image-poll-attachment"]){M.jumpTo(4);
break}return _.a(M,e.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:u=M.yieldResult;if(!u)return M.return();c=_.R(u);for(v=c.next();!v.done;v=c.next())if(D=v.value,!D.encryptedBlobId)return e.isLoading=!1,B=void 0,e.errorMessage_=(B=e.data.errorMessage)!=null?B:null,M.return();case 4:n=(k=e.$$("ytd-backstage-image-select-renderer"))&&k.uploadPromise(),f=e.getSharedPostId_(),n?n.then(function(){e.submitForm_.apply(e,_.kP(_.$N.apply(0,arguments)))}).catch(function(K){e.isLoading=!1;
e.errorMessage_=_.zq(K.message)}):e.selectedVideoId_?e.submitForm_(void 0,e.selectedVideoId_):e.prefilledAttachment_==="image"?e.submitForm_(e.prefilledImageData_.encryptedBlobId,void 0,void 0,e.prefilledImageData_.sourceExternalVideoId,void 0,e.taggedVideoId_):e.prefilledAttachment_==="video"?e.submitForm_(void 0,e.data.backstageAttachment.videoRenderer.videoId):f?e.submitForm_(void 0,void 0,f):e.taggedVideoId_!==void 0?e.submitForm_(void 0,void 0,void 0,void 0,void 0,e.taggedVideoId_):e.submitForm_(),
_.u8(M)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var e=this.$["video-link-attachment"];e&&e.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.S("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.S("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var e;if(this.addedAttachment==="quiz"&&((e=this.$["quiz-attachment"])==null||!e.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,e,t,b,m,q){var Q=this.getTextAreaValue().trim(),X={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Q===this.previousText_&&(Q=void 0);Q!==void 0&&(X.comment_text=Q);this.isLoading=!0;q!=void 0&&(X.tagged_video_id=q);W?(X.image_blob_id=W,this.imagePreviewCoordinates_&&(X.image_preview_coordinates=this.imagePreviewCoordinates_)):e?X.attached_video_id=e:t?X.shared_post_id=t:m&&m.length>0&&(X.images_data=m.map(function(I){return{encryptedBlobId:I.encryptedBlobId,
previewCoordinates:I.previewCoordinates}}));
b&&(X.source_video_id=b);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(X.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(X.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(X.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.S("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(X.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.S("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(X.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.X5(this,[this.serviceEndpoint,X])},
onIsInputFocusChanged_:function(W,e){W?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var e=this.getEditableTextArea_();[].concat(_.kP(W.dataTransfer.items)).forEach(function(t){t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(b){e.appendChild(document.createTextNode(b))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,e){return!e||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.rz(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,t=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-t)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-e;_.rz(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.S("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var e=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(e)||e!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&W.push("quiz-button");_.S("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,e){if(W)switch(e){case "video-link-button":var t;return((t=W.videoLinkButton)==null?void 0:t.buttonRenderer)||void 0;case "image-button":var b;return((b=W.imageButton)==null?void 0:b.buttonRenderer)||void 0;case "poll-button":var m;return((m=W.pollButton)==null?void 0:m.buttonRenderer)||void 0;case "image-poll-button":var q;return((q=W.imagePollButton)==null?void 0:q.buttonRenderer)||void 0;case "quiz-button":var Q;return((Q=W.quizButton)==null?void 0:Q.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,e;return!((W=this.data)==null||!W.openAadcDialog)&&!((e=this.aadcGuidelinesState_)==null||!e.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Ot("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sH("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.Sg().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.RT(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var e;this.set("data.placeholderText",(e=W.hideIdentityChipAction)==null?void 0:e.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Fk=function(){var W=_.O.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.S("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.S("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var e=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&e.push("quiz-button");_.S("auto_convert_posts_video_tag")||e.push("video-link-button");W.attachmentButtonIds=e;W.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 W};
_.Z(Fk,_.O);_.r=Fk.prototype;_.r.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.S("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.r.configureRendererStamper=function(){var W={"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]]"}}}}};_.S("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.r.ready=function(){var W=this,e=_.rz(this.hostElement).querySelector("#placeholder-area"),t=function(b){W.onOpen(b)};
e.addEventListener("tap",t);e.addEventListener("keypress",t)};
_.r.showButtonEduTooltip=function(){var W,e,t,b,m,q,Q;if(_.S("enable_quiz_creation")&&((W=this.data)==null?0:(e=W.quizButton)==null?0:(t=e.buttonRenderer)==null?0:(b=t.hint)==null?0:(m=b.hintRenderer)==null?0:(q=m.content)==null?0:(Q=q.bubbleHintRenderer)==null?0:Q.text)&&(_.e1.getInstance(),W=th(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var X;if((X=this.data)==null?0:X.imagePollButtonTooltip)if(_.e1.getInstance(),X=th(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(X==null?void 0:X.length)>0){this.ytComponentBehavior.resolveCommand(X[0],{form:{element:this.imagePollButton}});return}var I;_.S("enable_multi_image_post_creation")&&
((I=this.data)==null?0:I.multiImageButtonTooltip)&&(_.e1.getInstance(),I=th(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(I==null?void 0:I.length)>0&&this.ytComponentBehavior.resolveCommand(I[0],{form:{element:this.imageButton}}))};
_.r.onCreatePollAction=function(W){_.l(W,RzS)&&(this.JSC$13738_commentbox.addedAttachment="poll",this.openDialog())};
_.r.onAddVideoLinkAction=function(W){if(_.l(W,qqU))this.JSC$13738_commentbox.onAddVideoLink(W)};
_.r.onShowSchedulingPanelCommand=function(W){(W=_.l(W,xwv))&&this.openSchedulingPanel(W)};
_.r.onCreateImagePollCommand=function(W){_.l(W,VLN)&&(this.JSC$13738_commentbox.openImagePollComponent(),this.openDialog())};
_.r.onCreateQuizCommand=function(W){_.l(W,iMh)&&(this.JSC$13738_commentbox.openQuizComponent(),this.openDialog())};
_.r.openSchedulingPanel=function(W){_.S("enable_post_scheduling")&&(this.openDialog(),this.JSC$13738_commentbox.openSchedulingPanel(W))};
_.r.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$13738_commentbox.clear(),this.closeDialog())};
_.r.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.r.onYtCommentboxDismiss=function(){this.closeDialog()};
_.r.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.r.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.r.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.r.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.r.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.r.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$13738_commentbox.addedAttachment="image",this.JSC$13738_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.r.onRequestSent=function(W){if(_.S("web_button_rework"))for(var e=_.R(W.detail),t=e.next();!t.done;t=e.next())_.l(t.value,tLh)&&(this.JSC$13738_commentbox.addedAttachment="image",this.JSC$13738_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.r.openDialog=function(){this.JSC$13738_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13738_commentbox.focus()};
_.r.onPopupClosed=function(){_.e1.getInstance()};
_.r.computeCreationDisabled=function(W){return!!W};
_.r.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.r.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.r.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.r.computeIsHeaderHidden=function(W,e){return!W||e};
_.r.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.r.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.rz(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
Fk.prototype.onPopupClosed=Fk.prototype.onPopupClosed;Fk.prototype.onRequestSent=Fk.prototype.onRequestSent;Fk.prototype.onYtNavigate=Fk.prototype.onYtNavigate;Fk.prototype.onIronSelect=Fk.prototype.onIronSelect;Fk.prototype.onYtVideoLinkSelected=Fk.prototype.onYtVideoLinkSelected;Fk.prototype.onYtVideoLinkButtonCancel=Fk.prototype.onYtVideoLinkButtonCancel;Fk.prototype.onYtCommentboxLoadingEnd=Fk.prototype.onYtCommentboxLoadingEnd;Fk.prototype.onYtCommentboxLoadingStart=Fk.prototype.onYtCommentboxLoadingStart;
Fk.prototype.onYtCommentboxDismiss=Fk.prototype.onYtCommentboxDismiss;Fk.prototype.showButtonEduTooltip=Fk.prototype.showButtonEduTooltip;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Fk.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fk.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Fk.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fk.prototype,"isOpen",void 0);_.P([_.J({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],Fk.prototype,"buttonOverride",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fk.prototype,"modern",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fk.prototype,"roundedContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Fk.prototype,"dropdownButtonOverride",void 0);_.P([_.J({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Y("design:type",Boolean)],Fk.prototype,"creationDisabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Fk.prototype,"enableCreationBox",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Y("design:type",Boolean)],Fk.prototype,"isCreationDialog",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fk.prototype,"inPopupContainer",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Y("design:type",Boolean)],Fk.prototype,"isCreationDialogWithHeader",void 0);_.P([_.J(),_.Y("design:type",Object)],Fk.prototype,"accessRestriction",void 0);
_.P([_.J({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Y("design:type",Array)],Fk.prototype,"dropdownRendererClasses",void 0);_.P([_.J(),_.Y("design:type",Object)],Fk.prototype,"isCommentboxLoading",void 0);_.P([_.J(),_.Y("design:type",Array)],Fk.prototype,"attachmentButtonIds",void 0);_.P([_.vG("#image-button"),_.Y("design:type",HTMLElement)],Fk.prototype,"imageButton",void 0);
_.P([_.vG("#image-poll-button"),_.Y("design:type",HTMLElement)],Fk.prototype,"imagePollButton",void 0);_.P([_.vG("#quiz-button"),_.Y("design:type",HTMLElement)],Fk.prototype,"quizButton",void 0);_.P([_.vG("#commentbox"),_.Y("design:type",Object)],Fk.prototype,"JSC$13738_commentbox",void 0);_.P([_.ul("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fk.prototype,"showButtonEduTooltip",null);
_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtCommentboxDismiss",null);_.P([_.wz("yt-commentbox-loading-start"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtCommentboxLoadingStart",null);
_.P([_.wz("yt-commentbox-loading-end"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtCommentboxLoadingEnd",null);_.P([_.wz("yt-video-link-button-cancel"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtVideoLinkButtonCancel",null);
_.P([_.wz("yt-video-link-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtVideoLinkSelected",null);_.P([_.wz("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onIronSelect",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onYtNavigate",null);
_.P([_.wz("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fk.prototype,"onRequestSent",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fk.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Fk);
_.H(Fk,"ytd-backstage-post-dialog-renderer",function(){if(YNU!==void 0)return YNU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YNU=W},{mode:1});var $Hr;var kKh;var Xk=function(){return _.O.apply(this,arguments)||this};
_.Z(Xk,_.O);_.r=Xk.prototype;_.r.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.r.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.r.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.r.getEndpoint=function(W){var e,t=(e=this.data)==null?void 0:e.heartEndpoint,b;e=(b=this.data)==null?void 0:b.unheartEndpoint;if(t&&e)return W?e:t};
_.r.computeButtonAccessibility=function(W,e){var t,b,m=W==null?void 0:(t=W.heartedAccessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label,q,Q;W=W==null?void 0:(q=W.unheartedAccessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label;return e?m:W};
_.Ec.Object.defineProperties(Xk.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 W;return _.S("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
Xk.prototype.onYtButtonTap=Xk.prototype.onYtButtonTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],Xk.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Xk.prototype,"data",void 0);_.P([_.T("data.isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xk.prototype,"heartTooltip",null);
_.P([_.T("data.isHearted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xk.prototype,"iconFilled",null);_.P([_.J({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Y("design:type",String)],Xk.prototype,"buttonAccessibility",void 0);_.P([_.J({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Xk.prototype,"heartButtonStyle",void 0);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xk.prototype,"onYtButtonTap",null);_.P([_.h({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Xk);
_.H(Xk,"ytd-creator-heart-renderer",function(){if(kKh!==void 0)return kKh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kKh=W},{mode:1});var IS=function(){var W=_.O.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.S("web_modern_buttons");W.modern=_.S("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.S("kevlar_system_icons");W.replyDialog=null;return W};
_.Z(IS,_.O);_.r=IS.prototype;
_.r.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]]"}}}}}};
_.r.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.r.dataChange=function(){this.replyDialog&&_.rz(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,e,t;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(e=W.likeButton)==null?0:(t=e.toggleButtonRenderer)==null?0:t.isToggled)};
_.r.computeShowVoteCountBeginning=function(W,e){return W===void 0||e===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.r.computeShowVoteCountEnd=function(W,e){return W===void 0||e===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.r.computeShowCommentCount=function(W,e){return W===void 0||e===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!e&&this.ytRendererBehavior.getSimpleString(e)!=="0"};
_.r.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.r.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.r.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.rz(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.r.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.r.onRequestSent=function(W){if(_.S("web_button_rework")){W=_.R(W.detail);for(var e=W.next();!e.done;e=W.next())(e=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",e.value))&&this.showReplyDialog(e)}};
_.r.onYtNavigate=function(W){var e,t;(W=(e=_.l(W.detail.endpoint,_.m_k))==null?void 0:(t=e.dialog)==null?void 0:t.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.r.onYtServiceRequestSent=function(W,e){W.stopPropagation();if(e.actions)for(W=0;W<e.actions.length;W++){var t=_.l(e.actions[W],Xbb);t&&this.handleUpdateCommentVoteAction(t)}};
_.r.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.zq("0");W.voteStatus==="LIKE"?this.JSC$13749_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$13749_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13749_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13749_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.r.computeReplyButtonHidden=function(W){return W};
_.r.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.r.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.r.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.r.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.r.onYtToggleButton=function(W){var e,t;this.isLiked=this.systemIcons&&!!((e=W.detail)==null?0:(t=e.actions)==null?0:t.like)};
IS.prototype.onYtToggleButton=IS.prototype.onYtToggleButton;IS.prototype.onButtonTooltipPositionChanged=IS.prototype.onButtonTooltipPositionChanged;IS.prototype.onYtServiceRequestSent=IS.prototype.onYtServiceRequestSent;IS.prototype.onYtNavigate=IS.prototype.onYtNavigate;IS.prototype.onRequestSent=IS.prototype.onRequestSent;IS.prototype.onYtCommentboxDismiss=IS.prototype.onYtCommentboxDismiss;IS.prototype.dataChange=IS.prototype.dataChange;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"voteCount",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"commentCount",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"replyThumbnail",void 0);
_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"hasCreatorReply",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],IS.prototype,"enableCreationBox",void 0);_.P([_.J({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],IS.prototype,"actionButtonsStyle",void 0);_.P([_.J({computed:"computeReplyButtonBeginning(data)"}),_.Y("design:type",Object)],IS.prototype,"replyButtonBeginning",void 0);
_.P([_.J({computed:"computeReplyButtonEnd(data)"}),_.Y("design:type",Object)],IS.prototype,"replyButtonEnd",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"buttonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"replyButtonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"forceIconButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],IS.prototype,"useCommentIcon",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],IS.prototype,"modern",void 0);_.P([_.J(),_.Y("design:type",Object)],IS.prototype,"buttonTooltipPosition",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],IS.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],IS.prototype,"isLiked",void 0);_.P([_.vG("ytd-button-renderer"),_.Y("design:type",Object)],IS.prototype,"ytdReplyButtonRenderer",void 0);
_.P([_.vG("#like-button"),_.Y("design:type",Object)],IS.prototype,"JSC$13749_ytdLikeToggleButtonRenderer",void 0);_.P([_.vG("#dislike-button"),_.Y("design:type",Object)],IS.prototype,"JSC$13749_ytdDislikeToggleButtonRenderer",void 0);_.P([_.vG("#reply-dialog"),_.Y("design:type",HTMLElement)],IS.prototype,"replyDialogElement",void 0);_.P([_.vG("#reply-button"),_.Y("design:type",HTMLElement)],IS.prototype,"replyButtonElement",void 0);
_.P([_.vG("#reply-button-end"),_.Y("design:type",HTMLElement)],IS.prototype,"replyButtonEndElement",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IS.prototype,"dataChange",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IS.prototype,"onYtCommentboxDismiss",null);
_.P([_.wz("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IS.prototype,"onRequestSent",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IS.prototype,"onYtNavigate",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],IS.prototype,"onYtServiceRequestSent",null);_.P([_.ul("buttonTooltipPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IS.prototype,"onButtonTooltipPositionChanged",null);
_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IS.prototype,"onYtToggleButton",null);_.P([_.h({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],IS);
_.H(IS,"ytd-comment-action-buttons-renderer",function(){if($Hr!==void 0)return $Hr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $Hr=W},{mode:1});var pP8;var aS=function(){return _.O.apply(this,arguments)||this};
_.Z(aS,_.O);aS.prototype.focus=function(){_.rz(this.hostElement).querySelector("#commentbox").focus()};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aS.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],aS.prototype,"zeroStepChannelCreationRenderer",void 0);_.P([_.h({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],aS);
_.H(aS,"ytd-comment-dialog-renderer",function(){if(pP8!==void 0)return pP8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pP8=W},{mode:1});var yIB;var wg=function(){var W=_.O.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.Z(wg,_.O);_.r=wg.prototype;_.r.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.r.detached=function(){this.replyBox&&this.replyBox.remove()};
_.r.showReplyDialog=function(W){if(W){var e=this.replyBox;e||(e=document.createElement("ytd-comment-reply-dialog-renderer"),e.id="replybox",_.rz(this.replyDialogDiv).appendChild(e));e.data=W;this.replyDialogDiv.hidden=!1;e.openDialog()}};
_.r.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.r.onYtServiceRequestSent=function(W,e){W.stopPropagation();if(e.actions)for(var t=0;t<e.actions.length;t++){var b=_.l(e.actions[t],Xbb);b?this.handleUpdateCommentVoteAction(b):W.target===this.heartButton&&this.toggleHeartState()}};
_.r.handleUpdateCommentVoteAction=function(W){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.gN("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.r.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.gN("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Ec.Object.defineProperties(wg.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(e=this.toolbarData)==null?void 0:e.likeCountLiked:(t=this.toolbarData)==null?void 0:t.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.S("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e=_.l((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.OD),t,b,m,q,Q,X,I,u,c;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((t=this.toolbarSharedData)==null||!t.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:e!=null?e:_.l((m=this.toolbarSurface)==null?void 0:m.likeCommand,_.OD),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.l((q=this.toolbarSurface)==null?void 0:q.unlikeCommand,_.OD),defaultCommand:this.isVisiblyDisabled?_.l((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.OD):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.likeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:I.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(u=this.toolbarData)==null?void 0:u.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(c=this.toolbarSharedData)==null?void 0:c.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e=_.l((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.OD),t,b,m,q,Q,X,I,u,c,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((t=this.toolbarSharedData)==null||!t.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.l((m=this.toolbarSurface)==null?void 0:m.dislikeCommand,_.OD),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:e!=null?e:_.l((q=this.toolbarSurface)==null?void 0:q.undislikeCommand,_.OD),defaultCommand:this.isVisiblyDisabled?_.l((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.OD):void 0,defaultTooltip:(X=this.toolbarData)==null?void 0:X.dislikeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:
I.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(u=this.toolbarSharedData)==null?void 0:u.dislikeReplyButtonA11y:(c=this.toolbarSharedData)==null?void 0:c.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e,t;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((e=this.toolbarState)==null?void 0:e.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var b,m,q,Q,X,I,u,c,v,D,B,k,n,f;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(b=this.toolbarData)==null?void 0:b.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((q=this.toolbarState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.l((I=this.toolbarSurface)==null?void 0:I.heartCommand,
_.OD),unheartEndpoint:this.isVisiblyDisabled?void 0:_.l((u=this.toolbarSurface)==null?void 0:u.unheartCommand,_.OD),disabledEndpoint:this.isVisiblyDisabled?_.l((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.OD):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(v=this.toolbarData)==null?void 0:v.heartActiveTooltip,unheartedTooltip:(D=this.toolbarData)==null?void 0:D.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(k=this.toolbarSharedData)==null?void 0:k.unheartButtonA11y:(n=this.toolbarSharedData)==null?void 0:n.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(f=this.toolbarSharedData)==null?void 0:f.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.l((e=this.toolbarSurface)==null?void 0:e.replyCommand,_.OD),command:this.isVisiblyDisabled?_.l((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,
_.OD):this.isSubscribersOnlyComments?_.l((b=this.toolbarSurface)==null?void 0:b.subscribersOnlySnackbarCommand,_.OD):void 0}}}});
wg.prototype.onYtServiceRequestSent=wg.prototype.onYtServiceRequestSent;wg.prototype.hideReplyDialogDiv=wg.prototype.hideReplyDialogDiv;_.P([_.J(),_.Y("design:type",Object)],wg.prototype,"commentStrings",void 0);_.P([_.J(),_.Y("design:type",Boolean)],wg.prototype,"isReply",void 0);_.P([_.J(),_.Y("design:type",Object)],wg.prototype,"toolbarData",void 0);_.P([_.J(),_.Y("design:type",Object)],wg.prototype,"toolbarSharedData",void 0);
_.P([_.J(),_.Y("design:type",String)],wg.prototype,"toolbarStateKey",void 0);_.P([_.J(),_.Y("design:type",String)],wg.prototype,"toolbarSurfaceKey",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],wg.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.vG("#reply-dialog"),_.Y("design:type",HTMLElement)],wg.prototype,"replyDialogDiv",void 0);_.P([_.vG("#replybox"),_.Y("design:type",Object)],wg.prototype,"replyBox",void 0);_.P([_.vG("ytd-creator-heart-renderer"),_.Y("design:type",Object)],wg.prototype,"heartButton",void 0);_.P([_.J({selector:function(W,e){return _.I1(W.entities,"engagementToolbarStateEntityPayload",e)},
selectorArgs:["toolbarStateKey"]}),_.Y("design:type",Object)],wg.prototype,"toolbarState",void 0);_.P([_.J({selector:p5L,selectorArgs:["toolbarSurfaceKey"]}),_.Y("design:type",Object)],wg.prototype,"toolbarSurface",void 0);_.P([_.J(),_.Y("design:type",Object)],wg.prototype,"buttonOverrides",void 0);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wg.prototype,"hideReplyDialogDiv",null);
_.P([_.T("toolbarData","toolbarState"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wg.prototype,"likeCount",null);_.P([_.T("likeCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"showLikeCount",null);_.P([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"isVisiblyDisabled",null);_.P([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"isSubscribersOnlyComments",null);
_.P([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"hasPrepareAccountCommand",null);_.P([_.T("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wg.prototype,"likeToggleButtonRenderer",null);_.P([_.T("isReply","toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wg.prototype,"dislikeToggleButtonRenderer",null);
_.P([_.T("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wg.prototype,"creatorHeartSupportedRenderer",null);_.P([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"hasReplyCommand",null);_.P([_.T("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wg.prototype,"replyButtonRenderer",null);
_.P([_.J(),_.Y("design:type",Object)],wg.prototype,"replyButtonOverrides",void 0);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],wg.prototype,"onYtServiceRequestSent",null);_.P([_.h({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],wg);
_.H(wg,"ytd-comment-engagement-bar",function(){if(yIB!==void 0)return yIB;var W=document.createElement("template");_.p(W,'\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]]" 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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yIB=W},{mode:1});var jdh;var u7=function(){return _.O.apply(this,arguments)||this};
_.Z(u7,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],u7.prototype,"data",void 0);_.P([_.h({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],u7);
_.H(u7,"ytd-comment-inline-thumbnail-renderer",function(){if(jdh!==void 0)return jdh;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jdh=W},{mode:1});var Cbr;var npv=function(){return _.O.apply(this,arguments)||this};
_.Z(npv,_.O);_.P([_.J(),_.Y("design:type",Object)],npv.prototype,"data",void 0);_.P([_.h({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],npv);
_.H(npv,"ytd-comment-pause-composer-renderer",function(){if(Cbr!==void 0)return Cbr;var W=document.createElement("template");_.p(W,'\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" 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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Cbr=W},{mode:1});var fih;var gpS;var cv=function(){var W=_.O.apply(this,arguments)||this;W.isOpen=!1;return W};
_.Z(cv,_.O);_.r=cv.prototype;_.r.dataChanged=function(){this.isOpen=!1};
_.r.onTap=function(){this.data&&(this.data.navigationEndpoint?_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.r.focus=function(){this.JSC$13775_commentbox.focus()};
_.r.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.r.openDialog=function(){this.isOpen=!0;this.JSC$13775_commentbox.focus();this.JSC$13775_commentbox.maybeHeightChanged()};
cv.prototype.onYtCommentboxDismiss=cv.prototype.onYtCommentboxDismiss;cv.prototype.dataChanged=cv.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cv.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],cv.prototype,"isOpen",void 0);_.P([_.vG("#commentbox"),_.Y("design:type",Object)],cv.prototype,"JSC$13775_commentbox",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cv.prototype,"dataChanged",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cv.prototype,"onYtCommentboxDismiss",null);_.P([_.h({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],cv);
_.H(cv,"ytd-comment-reply-dialog-renderer",function(){if(gpS!==void 0)return gpS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return gpS=W},{mode:1});var Tok;var vv=function(){return _.O.apply(this,arguments)||this};
_.Z(vv,_.O);_.Ec.Object.defineProperties(vv.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.icon)==null?void 0:e.iconType;return t?"yt-icons:"+t.toLowerCase():null}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vv.prototype,"data",void 0);_.P([_.J(),_.T("data.icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vv.prototype,"icon",null);_.P([_.h({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],vv);
_.H(vv,"ytd-pinned-comment-badge-renderer",function(){if(Tok!==void 0)return Tok;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Tok=W},{mode:1});var JIZ;var xHN={},Opo={input:!0,meta:!0,br:!0,link:!0,img:!0},GY=null;xHN.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(){GY==null&&(GY=document.createElement("tp-yt-paper-tooltip"),GY.offset=8,GY.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.JD(W.target,function(m){return m==this||m.getAttribute&&m.getAttribute("shared-tooltip-text")}.bind(this),!0)){var e=W.getAttribute("shared-tooltip-text");
if(e){var t=this,b=null;W!=this&&(W.tagName.toLowerCase()in Opo?t=W.parentElement:t=W,W.id&&(b=W.id));this.polymerController.createTooltipIfRequired_();if(GY.parentElement!=t||GY.for!=b)(0,_.FB)(GY).textContent=e,_.rz(t).appendChild(GY),GY.for=b,GY.animationDelay=this.polymerController.sharedTooltipAnimationDelay,GY.position=this.polymerController.sharedTooltipPosition}}}};var Dy=function(){return _.O.apply(this,arguments)||this};
_.Z(Dy,_.O);Dy.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]]"}}}}}};
Dy.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Dy.prototype.colorChanged=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.color)==null?void 0:(t=e.basicColorPaletteData)==null?void 0:t.foregroundBodyColor;b&&(this.rgbBadgeColor=_.sr(b));_.rz(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Dy.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Dy.prototype.tooltipChanged=Dy.prototype.tooltipChanged;Dy.prototype.colorChanged=Dy.prototype.colorChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(xHN.YtSharedTooltipBehavior),_.Y("design:type",Object)],Dy.prototype,"ytSharedTooltipBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dy.prototype,"data",void 0);
_.P([_.J({value:"#4285F4"}),_.Y("design:type",String)],Dy.prototype,"rgbBadgeColor",void 0);_.P([_.ul("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dy.prototype,"colorChanged",null);_.P([_.ul("data.tooltip"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dy.prototype,"tooltipChanged",null);_.P([_.h({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Dy);
_.H(Dy,"ytd-sponsor-comment-badge-renderer",function(){if(JIZ!==void 0)return JIZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JIZ=W},{mode:1});var Mxe;var sdk;var Ss=function(){return _.O.apply(this,arguments)||this};
_.Z(Ss,_.O);Ss.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
Ss.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var e=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.gN("triStateButtonStateEntityPayload",e,{key:e,stateIdentifier:W}))}};
Ss.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Ec.Object.defineProperties(Ss.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
_.P([_.J(),_.Y("design:type",Object)],Ss.prototype,"viewModel",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ss.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Ss.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.P([_.J({selector:ydS,selectorArgs:["viewModel.triStateKey"]}),_.Y("design:type",Object)],Ss.prototype,"triStateButtonStateEntity",void 0);
_.P([_.J({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Y("design:type",String)],Ss.prototype,"state",void 0);_.P([_.T("viewModel","state"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ss.prototype,"data",null);_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ss.prototype,"buttonText",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Ss);
_.H(Ss,"ytd-tri-state-button-view-model",function(){if(sdk!==void 0)return sdk;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sdk=W},{mode:1});var hnP;var Hpk;var Bv=function(){var W=_.O.apply(this,arguments)||this;W.defaultIconToFilled=!_.S("kevlar_fill_comment_chip_icon_killswitch");return W};
_.Z(Bv,_.O);Bv.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Bv.prototype.dataChanged=function(){if(this.data){var W,e;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((e=this.data.chipColorPalette)==null?0:e.foregroundTitleColor)&&_.XB(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.h8(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.h8(this.data.chipColorPalette.foregroundTitleColor)});var t;((t=this.data)==null?0:t.command)?(_.XB(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.XB(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
Bv.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.command)}};
Bv.prototype.getIconSize=function(){return _.S("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Bv.prototype.onTap=Bv.prototype.onTap;Bv.prototype.dataChanged=Bv.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Bv.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.ZJ),_.Y("design:type",Object)],Bv.prototype,"ironA11yKeysBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bv.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],Bv.prototype,"basePriceText",void 0);_.P([_.J(),_.Y("design:type",Object)],Bv.prototype,"chipIcon",void 0);_.P([_.J(),_.Y("design:type",Object)],Bv.prototype,"defaultIconToFilled",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bv.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bv.prototype,"onTap",null);
_.P([_.gz({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Bv);
_.H(Bv,"yt-pdg-comment-chip-renderer",function(){if(Hpk===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;hnP===void 0&&(hnP=document.createElement("template"));var b=hnP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Hpk=W}W=Hpk;return W},{mode:2});var oS=function(){var W=_.O.apply(this,arguments)||this;W.useSmallAvatars=_.S("small_avatars_for_comments");W.webWatchCompactComments=_.S("web_watch_compact_comments");W.editDialog=null;return W};
_.Z(oS,_.O);_.r=oS.prototype;_.r.onShow=function(){_.Jy("cmv",void 0,"wn_comments")};
_.r.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"}}}};
_.r.detached=function(){this.editDialog=null;this.expander.reset()};
_.r.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.h8(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.XB(this.hostElement,W)}else _.XB(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.r.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.r.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.r.onYtNavigate=function(W){var e=W.detail.endpoint;if(e=_.l(e,_.rqU)||_.l(e,_.q5D))W.stopPropagation(),this.openEditDialog(e)};
_.r.onYtCommentboxDismiss=function(){this.editDialog=null;_.XB(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.r.onAuthorThumbnailClicked=function(){var W=this;_.S("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(e,t){W.onAuthorThumbnailEndpointSuccess(t)},
onServerError:function(e,t){_.JC(new _.o_("Failed to resolve the command",t))}}})};
_.r.onAuthorThumbnailEndpointSuccess=function(W){if((W=W==null?void 0:W.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(W,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();W=W==null?void 0:W.clickTrackingParams;var e=_.nc();W&&e&&_.Sg().graftServerVe(W,e)}};
_.r.logScreenVe=function(){_.FW(_.Sg(),66557)};
_.r.onYtCommentboxResize=function(W){var e;(W==null?0:(e=W.detail)==null?0:e.height)&&_.XB(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.Ec.Object.defineProperties(oS.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 W,e=(W=this.commentEntity)==null?void 0:W.author;return e&&(e.isCreator||e.isVerified||e.isArtist)?{renderer:{authorEndpoint:e.channelPageEndpoint?_.l(e.channelPageEndpoint,_.OD):_.l(e.channelCommand,_.OD),authorText:{runs:[{text:e.displayName}]},color:e.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:e.isArtist?{iconType:"AUDIO_BADGE"}:
e.isVerified?{iconType:e.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:e.isArtist||e.isVerified?e.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.commentEntity)==null?void 0:W.author;return e!=null&&e.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:e.sponsorBadgeUrl}]},tooltip:e.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.l((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.JqU)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.l((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,D7o)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?e:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,e;return(((W=this.commentEntity)==null?void 0:(e=W.properties)==null?void 0:e.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,e;if(_.S("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(e=W.author)==null?0:e.profileCardEndpoint)&&this.viewModel.allowProfileCard){var t,b;return _.l((t=this.commentEntity)==null?void 0:(b=t.author)==null?void 0:b.profileCardEndpoint,_.OD)}var m,q;return _.l((m=this.commentEntity)==null?void 0:(q=m.avatar)==null?void 0:q.endpoint,_.OD)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,e;if(_.S("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(e=W.author)==null?0:e.channelPageEndpoint)){var t,b;return _.l((t=this.commentEntity)==null?void 0:(b=t.author)==null?void 0:b.channelPageEndpoint,_.OD)}var m,q;return _.l((m=this.commentEntity)==null?void 0:(q=m.avatar)==null?void 0:q.endpoint,_.OD)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m=(W=this.commentEntity)==null?void 0:(e=W.avatar)==null?void 0:(t=e.image)==null?void 0:(b=t.sources)==null?void 0:b[0];return m?{thumbnails:[{url:m.url,width:m.width,height:m.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.commentEntity)==null?0:(e=W.author)==null?0:e.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.commentEntity)==null?void 0:(e=W.author)==null?void 0:e.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.commentEntity)==null?void 0:(e=W.properties)==null?void 0:e.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.l((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.OD)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,e;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((e=this.translateButtonState)==null?void 0:e.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var t;if((t=this.voiceReplyContainerViewModel)==null?0:t.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var b,m;return((b=this.commentEntity)==null?void 0:(m=b.properties)==null?void 0:m.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.commentSharedEntity)==null?void 0:(e=W.strings)==null?void 0:e.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.commentSharedEntity)==null?void 0:(e=W.strings)==null?void 0:e.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,e,t=(e=_.l((W=this.viewModel)==null?void 0:W.translateButton,G9S))!=null?e:{},b,m,q,Q,X,I,u,c,v,D,B;return Object.assign({},t,{untoggledStateData:Object.assign({},t.untoggledStateData,{buttonText:(b=this.commentEntity)==null?void 0:(m=b.translateData)==null?void 0:m.text}),togglingStateData:Object.assign({},t.togglingStateData,{buttonText:(q=this.commentSharedEntity)==null?
void 0:(Q=q.strings)==null?void 0:Q.translatingText}),toggledStateData:Object.assign({},t.toggledStateData,{buttonText:(X=this.commentSharedEntity)==null?void 0:(I=X.strings)==null?void 0:I.seeOriginalText}),transitionCommand:((u=this.commentEntity)==null?0:u.translatedContent)?void 0:_.l((c=this.commentEntity)==null?void 0:(v=c.translateData)==null?void 0:v.translateComment,_.OD),triStateKey:(D=this.commentEntity)==null?void 0:(B=D.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((e=_.l(_.l((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.OD),RIN))==null?void 0:(t=e.menu)==null?void 0:t.menuRenderer)||null}}});
oS.prototype.onYtCommentboxResize=oS.prototype.onYtCommentboxResize;oS.prototype.onYtCommentboxDismiss=oS.prototype.onYtCommentboxDismiss;oS.prototype.onYtNavigate=oS.prototype.onYtNavigate;oS.prototype.resetExpander=oS.prototype.resetExpander;oS.prototype.updateBackgroundColor=oS.prototype.updateBackgroundColor;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],oS.prototype,"ytdReduxBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#author-thumbnail > button"),_.Y("design:type",HTMLElement)],oS.prototype,"authorThumbnailAnchor",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"linked",null);
_.P([_.T("viewModel","linked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"linkedCommentBadge",null);_.P([_.J({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"pinned",null);_.P([_.T("viewModel","pinned"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"pinnedCommentBadge",null);
_.P([_.T("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"authorCommentBadge",null);_.P([_.J({reflectToAttribute:!0}),_.T("authorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"hasAuthorBadge",null);_.P([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"sponsorCommentBadge",null);
_.P([_.J({reflectToAttribute:!0}),_.T("sponsorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"hasSponsorBadge",null);_.P([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"pdgCommentChipRenderer",null);_.P([_.J({reflectToAttribute:!0}),_.T("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"hasVoiceReply",null);
_.P([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"voiceReplyContainerViewModel",null);_.P([_.T("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"voiceReplyUnavailableText",null);_.P([_.J(),_.Y("design:type",Object)],oS.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"viewModel",null);
_.P([_.J({selector:function(W,e){return _.I1(W.entities,"commentSharedEntityPayload",e)},
selectorArgs:["viewModel.sharedKey"]}),_.Y("design:type",Object)],oS.prototype,"commentSharedEntity",void 0);_.P([_.J({selector:function(W,e){return _.I1(W.entities,"commentEntityPayload",e)},
selectorArgs:["viewModel.commentKey"]}),_.Y("design:type",Object)],oS.prototype,"commentEntity",void 0);_.P([_.J({selector:function(W,e){return _.I1(W.entities,"commentSurfaceEntityPayload",e)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Y("design:type",Object)],oS.prototype,"commentSurfaceEntity",void 0);_.P([_.J({selector:p5L,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Y("design:type",Object)],oS.prototype,"toolbarSurface",void 0);_.P([_.J({selector:ydS,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Y("design:type",Object)],oS.prototype,"translateButtonState",void 0);
_.P([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"backgroundColor",null);_.P([_.J({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"optimalReadingWidthComments",null);_.P([_.vG("ytd-expander"),_.Y("design:type",Object)],oS.prototype,"expander",void 0);
_.P([_.ul("backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"updateBackgroundColor",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"useSmallAvatars",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oS.prototype,"webWatchCompactComments",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"isReply",null);
_.P([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"authorThumbnailEndpoint",null);_.P([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"authorNameEndpoint",null);_.P([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"authorThumbnail",null);_.P([_.T("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oS.prototype,"authorTextClass",null);
_.P([_.T("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oS.prototype,"authorChannelName",null);_.P([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"publishedTime",null);_.P([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"publishedTimeCommand",null);
_.P([_.T("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"contentText",null);_.P([_.ul("contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oS.prototype,"resetExpander",null);_.P([_.T("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"shouldShowReadMoreInitially",null);
_.P([_.T("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oS.prototype,"expandText",null);_.P([_.T("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],oS.prototype,"collapseText",null);_.P([_.T("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oS.prototype,"shouldShowTranslateButton",null);
_.P([_.T("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"translateButton",null);_.P([_.T("toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oS.prototype,"overflowMenuRenderer",null);_.P([_.J(),_.Y("design:type",Object)],oS.prototype,"editDialog",void 0);_.P([_.vG("ytd-comment-dialog-renderer"),_.Y("design:type",Object)],oS.prototype,"editCommentDialogContainer",void 0);
_.P([_.vG("ytd-comment-reply-dialog-renderer"),_.Y("design:type",Object)],oS.prototype,"editReplyDialogContainer",void 0);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],oS.prototype,"onYtNavigate",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],oS.prototype,"onYtCommentboxDismiss",null);
_.P([_.wz("yt-commentbox-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],oS.prototype,"onYtCommentboxResize",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-comment-view-model"})],oS);
_.H(oS,"ytd-comment-view-model",function(){if(Mxe!==void 0)return Mxe;var W=document.createElement("template");_.p(W,'\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">\n      </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          <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">\n              [[authorChannelName]]\n            </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" 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\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Mxe=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var l7=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_modern_buttons");W.isWatchGrid=_.S("kevlar_watch_grid");W.buttonOverrides={style:"call-to-action"};W.JSC$13821_spinnerEl=null;return W};
_.Z(l7,_.O);_.r=l7.prototype;_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.r.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]]"}}}}}};
_.r.attached=function(){this.isShowRepliesVisible=!0};
_.r.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.r.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.r.isLoadingChanged=function(){this.isLoading&&!this.JSC$13821_spinnerEl&&(this.JSC$13821_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.rz(this.expanderContents).appendChild(this.JSC$13821_spinnerEl));this.JSC$13821_spinnerEl&&(this.JSC$13821_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.r.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var W=_.l(this.data.viewReplies,_.Md);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.r.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.l(this.data.hideReplies,_.Md);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.r.isShowMoreChanged=function(){var W=_.rz(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)};
_.r.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.Ec.Object.defineProperties(l7.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.data)==null?void 0:W.contents;return!!e&&e.length>0&&!!e[e.length-1].continuationItemRenderer}}});
l7.prototype.isShowMoreChanged=l7.prototype.isShowMoreChanged;l7.prototype.isLoadingChanged=l7.prototype.isLoadingChanged;l7.prototype.triggerFirstContinuation=l7.prototype.triggerFirstContinuation;l7.prototype.dataChanged=l7.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.PB),_.Y("design:type",Object)],l7.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],l7.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"modern",void 0);_.P([_.J(),_.Y("design:type",Boolean)],l7.prototype,"isLoading",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],l7.prototype,"isShowRepliesVisible",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],l7.prototype,"useNewFormatting",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"isWatchGrid",void 0);_.P([_.J(),_.Y("design:type",Object)],l7.prototype,"buttonOverrides",void 0);_.P([_.vG("#expander-contents"),_.Y("design:type",HTMLElement)],l7.prototype,"expanderContents",void 0);_.P([_.vG("ytd-continuation-item-renderer"),_.Y("design:type",Object)],l7.prototype,"continuationItemRenderer",void 0);_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],l7.prototype,"contents",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"dataChanged",null);_.P([_.T("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"hasContinuation",null);_.P([_.wz("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"triggerFirstContinuation",null);
_.P([_.ul("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"isLoadingChanged",null);_.P([_.ul("isShowRepliesVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"isShowMoreChanged",null);_.P([_.h({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],l7);
_.H(l7,"ytd-comment-replies-renderer",function(){if(fih!==void 0)return fih;var W=document.createElement("template");_.p(W,'\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="[[!hasContinuation]]" 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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fih=W},{mode:1});var KqB;var Zy=function(){var W=_.O.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.S("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.Z(Zy,_.O);_.r=Zy.prototype;_.r.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]]"}}}}}};
_.r.ready=function(){var W=this,e=_.rz(this.hostElement).querySelector("#placeholder-area"),t=_.rz(this.hostElement).querySelector("#simplebox-placeholder"),b=function(m){m.stopPropagation();m instanceof KeyboardEvent&&m.type==="keypress"&&m.keyCode!==13&&m.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=b;t.addEventListener("focus",this.placeholderFocusListener);e.addEventListener("tap",b);e.addEventListener("keypress",b)};
_.r.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.S("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.rz(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.r.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.r.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.S("web_comment_simplebox_resolve_polymer_command_ks")?_.uL.instance.resolveCommand(this.data.prepareAccountEndpoint):_.cg(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.rz(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.r.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.r.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.r.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.r.onHideIdentityChip=function(W){_.l(W,QPe)&&this.set("data.placeholderText",_.l(W,QPe).placeholderText)};
Zy.prototype.onYtCommentboxDismiss=Zy.prototype.onYtCommentboxDismiss;Zy.prototype.dataChanged=Zy.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zy.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zy.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Zy.prototype,"isOpen",void 0);_.P([_.J(),_.Y("design:type",Object)],Zy.prototype,"commentDialog",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Zy.prototype,"engagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zy.prototype,"useSmallAvatars",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zy.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Zy.prototype,"enableCreationBox",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Zy.prototype,"showCreateDialog",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zy.prototype,"dataChanged",null);
_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Zy.prototype,"onYtCommentboxDismiss",null);_.P([_.h({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Zy);
_.H(Zy,"ytd-comment-simplebox-renderer",function(){if(KqB!==void 0)return KqB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KqB=W},{mode:1});var PbP;_.xD("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var $R=function(){var W=_.O.apply(this,arguments)||this;W.addHoverEffect=_.S("swatcheroo_comments_hover_effect");return W};
_.Z($R,_.O);$R.prototype.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||_.cg({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
$R.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Ec.Object.defineProperties($R.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.l(this.data.commentViewModel,v2y)}}});
$R.prototype.onTap=$R.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$R.prototype,"addHoverEffect",void 0);_.P([_.J(),_.Y("design:type",Object)],$R.prototype,"data",void 0);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$R.prototype,"commentViewModel",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$R.prototype,"engagementPanel",void 0);_.P([_.wz("tap"),_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],$R.prototype,"onTap",null);_.P([_.h({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],$R);
_.H($R,"ytd-comment-thread-renderer",function(){if(PbP!==void 0)return PbP;var W=document.createElement("template");_.p(W,'\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<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PbP=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var VxZ;var kR=function(){var W=_.O.apply(this,arguments)||this;W.modernTypography=_.S("web_modern_typography");W.compactHeader=_.S("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.S("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$13839_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.Z(kR,_.O);_.r=kR.prototype;
_.r.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"}}}};
_.r.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.r.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13839_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.r.onYtServiceRequestSent=function(W,e){if(!_.S("kevlar_command_handler")&&e.actions)for(W=0;W<e.actions.length;W++){var t=e.actions[W];_.l(t,xwv)&&_.rz(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.l(t,xwv))}};
_.r.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.rz(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var e=_.rz(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;e&&_.Uc(this,function(){e.focus();e.openDialog&&e.openDialog()})}}else this.hasActionsChange=!0};
_.r.computeIsBackstage=function(W){return W};
_.r.onYtCommentboxDismiss=function(){_.rz(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.r.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var e=W.actions.length-1;e>=0;e--){var t=void 0;((t=_.l(W.actions[e],bMB))==null?0:t.dialog)&&delete W.actions[e]}this.set("data",void 0);this.set("data",W)}};
_.r.getPrefilledBackstagePostDialog=function(W){if(W)for(var e=0;e<W.length;e++){var t=W[e],b=void 0;if((b=_.l(t,bMB))==null?0:b.dialog)return _.l(t,bMB).dialog}return null};
_.r.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.r.dataChanged=function(){if(this.data){var W=this.data.customEmojis,e=this.data.unicodeEmojisUrl;_.MM.clear();e&&_.Yoy(_.MM,e);W&&_.MM.load(W)}};
_.r.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.rz(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$13839_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Ec.Object.defineProperties(kR.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.S("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q,Q;return!this.hidePanelButton&&_.S("kevlar_watch_comments_panel_button")&&((Q=_.l((W=this.data)==null?void 0:(e=W.sortMenu)==null?void 0:(t=e.sortFilterSubMenuRenderer)==null?void 0:(b=t.subMenuItems)==null?void 0:(m=b[0])==null?void 0:(q=m.serviceEndpoint)==null?void 0:q.commandMetadata,_.ez))==null?void 0:Q.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Gv("MINIPLAYER_EXPAND_LABEL"),text:_.zq(_.Gv("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
kR.prototype.dataChanged=kR.prototype.dataChanged;kR.prototype.onYtCommentboxDismiss=kR.prototype.onYtCommentboxDismiss;kR.prototype.observePrefilledBackstagePostDialog=kR.prototype.observePrefilledBackstagePostDialog;kR.prototype.onYtServiceRequestSent=kR.prototype.onYtServiceRequestSent;kR.prototype.onStampFinished=kR.prototype.onStampFinished;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kR.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"modernTypography",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],kR.prototype,"compactHeader",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kR.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],kR.prototype,"hidePanelButton",void 0);_.P([_.J({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],kR.prototype,"isBackstage",void 0);_.P([_.J({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Y("design:type",Object)],kR.prototype,"backstagePostDialog",void 0);
_.P([_.J(),_.Y("design:type",Object)],kR.prototype,"isPostSchedulingEnabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"useSpaceBetween",null);_.P([_.J({reflectToAttribute:!0}),_.T("data","hidePanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"showCommentsPanelButton",null);
_.P([_.T("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kR.prototype,"commentsPanelButtonData",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"onStampFinished",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],kR.prototype,"onYtServiceRequestSent",null);
_.P([_.ul("data.actions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"observePrefilledBackstagePostDialog",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kR.prototype,"onYtCommentboxDismiss",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kR.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],kR);
_.H(kR,"ytd-comments-header-renderer",function(){if(VxZ!==void 0)return VxZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VxZ=W},{mode:1});var ipB;var pA=function(){return _.O.apply(this,arguments)||this};
_.Z(pA,_.O);_.P([_.J(),_.Y("design:type",Object)],pA.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.P([_.h({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],pA);
_.H(pA,"ytd-destination-button-renderer",function(){if(ipB!==void 0)return ipB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ipB=W},{mode:1});var YID;var yz=function(){var W=_.O.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.S("web_modern_typography");return W};
_.Z(yz,_.O);_.r=yz.prototype;_.r.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.r.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.r.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.r.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var e;if(W&&(e=this.data)!=null&&e.destinationButtons){e=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var t=Math.ceil(W/e);this.fullyVisibleRows=W%e===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}}}};
_.r.updateRichGridDestinationButtonsVisibility=function(){var W,e;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(e=this.data)!=null&&e.destinationButtons){W=this.richGridItemsPerRow+1;e=this.data.destinationButtons.length;var t=Math.ceil(e/W);this.fullyVisibleRows=e%W===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}};
_.r.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
yz.prototype.updateRichGridDestinationButtonsVisibility=yz.prototype.updateRichGridDestinationButtonsVisibility;_.P([_.J(),_.Y("design:type",Object)],yz.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Number)],yz.prototype,"fullyVisibleRows",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],yz.prototype,"isShowMoreVisible",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yz.prototype,"isRichGrid",void 0);
_.P([_.J({selector:_.fG,value:0}),_.Y("design:type",Number)],yz.prototype,"richGridItemsPerRow",void 0);_.P([_.J(),_.Y("design:type",Object)],yz.prototype,"gridStateActionMap",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],yz.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yz.prototype,"modernTypography",void 0);_.P([_.ul("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yz.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.P([_.h({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],yz);
_.H(yz,"ytd-destination-shelf-renderer",function(){if(YID!==void 0)return YID;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YID=W},{mode:1});var znr;var js=function(){return _.O.apply(this,arguments)||this};
_.Z(js,_.O);js.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],js.prototype,"data",void 0);_.P([_.h({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],js);
_.H(js,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(znr!==void 0)return znr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return znr=W},{mode:1});var UHN;var CA=function(){var W=_.O.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.Z(CA,_.O);CA.prototype.onTap=function(W){W.preventDefault();this.data&&_.q2(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Ec.Object.defineProperties(CA.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 W,e,t,b,m;return((W=this.data)==null?0:W.checked)?(e=this.data)==null?void 0:(t=e.onStateIcon)==null?void 0:t.iconType:(b=this.data)==null?void 0:(m=b.defaultStateIcon)==null?void 0:m.iconType}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],CA.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],CA.prototype,"disableAnimation",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],CA.prototype,"isSlimlineSurvey",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],CA.prototype,"isSlimlineSurveyFollowUp",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],CA.prototype,"isShortsStyle",void 0);_.P([_.T("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],CA.prototype,"isAnimatedIcon",null);
_.P([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],CA.prototype,"iconSize",null);_.P([_.T("isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],CA.prototype,"isDarkTheme",null);_.P([_.T("data.checked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CA.prototype,"icon",null);_.P([_.h({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],CA);
_.H(CA,"ytd-rating-survey-option-renderer",function(){if(UHN!==void 0)return UHN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return UHN=W},{mode:2});var Lqy;var nA=function(){var W=_.O.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.Z(nA,_.O);_.r=nA.prototype;_.r.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.r.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.r.onOptionChange=function(W,e){var t=this;W=e.onStateIcon&&e.defaultStateIcon&&e.onStateIcon.iconType===e.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Q,X){Q.responseText===e.responseText?t.isSlimlineSurvey?(t.selectedRatingIndex=X,t.ytdReduxBehavior.dispatch(V_v(X))):(t.setSurveyOptionValue(X,!0,"checked"),t.setSurveyOptionValue(X,!0,"selected")):(t.setSurveyOptionValue(X,!1,"checked"),t.setSurveyOptionValue(X,
!1,"selected"))});
else if(W)this.selectedNonStarOption=e,this.hideOptions=!0;else{var b=this.ytRendererBehavior.getSimpleString(e.responseText),m=!0;this.getOptionRenderers().forEach(function(Q,X){t.setSurveyOptionValue(X,m,"checked");t.setSurveyOptionValue(X,!1,"selected");t.ytRendererBehavior.getSimpleString(Q.responseText)===b&&(m=!1,t.setSurveyOptionValue(X,!0,"selected"))})}W=e.responseEndpoint;
var q;e.followUpCommand&&(q=_.l(e.followUpCommand,nVB));this.isSlimlineSurvey?(this.resetComponent(),_.RT(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.RT(this.hostElement,"ytd-inline-survey-rating-select-action",[W,q])};
_.r.showSelectedOption=function(){var W=this;_.Tm.addJob(function(){var e=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),e)},8,100)};
_.r.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var e;return(e=_.l(W,gVb))!=null?e:{}}):[]};
_.r.onUndoClick=function(){this.resetComponent();_.RT(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.r.setSurveyOptionValue=function(W,e,t){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+t);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+t,e)};
_.r.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var e=this.getOptionRenderers(),t,b;this.firstResponseText=(b=(t=e[0])==null?void 0:t.responseText)!=null?b:null;var m,q;this.lastResponseText=(q=(m=e[e.length-1])==null?void 0:m.responseText)!=null?q:null;e.forEach(function(Q,X){W.setSurveyOptionValue(X,!1,"checked");W.setSurveyOptionValue(X,!1,"selected")})};
_.Ec.Object.defineProperties(nA.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
nA.prototype.onOptionChange=nA.prototype.onOptionChange;nA.prototype.dataChanged=nA.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],nA.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"firstResponseText",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"lastResponseText",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"selectedNonStarOption",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"hideOptions",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"hideUndoButton",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"disableAnimation",void 0);
_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"showResponseRangeText",void 0);_.P([_.J(),_.Y("design:type",Object)],nA.prototype,"selectedRatingIndex",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],nA.prototype,"isSlimlineSurvey",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],nA.prototype,"isSlimlineSurveyFollowUp",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],nA.prototype,"isShortsStyle",void 0);_.P([_.J({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.Y("design:type",Object)],nA.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.P([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],nA.prototype,"isSingleSelect",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nA.prototype,"dataChanged",null);
_.P([_.wz("ytd-rating-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],nA.prototype,"onOptionChange",null);_.P([_.h({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],nA);
_.H(nA,"ytd-rating-survey-renderer",function(){if(Lqy!==void 0)return Lqy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lqy=W},{mode:1});var EpN;var AIN;var Noy;var IOL=(Cv.FIRSTDAYOFWEEK+1)%7,dH8=function(W,e,t,b){var m="";if(b.selection&&RWG(b.selection))pv(W,b.selection)&&(m+=" selected");else if(b.selection&&Q9S(b.selection)){var q=b.selection.selectionState||"START_DATE";pv(W,b.selection.start)&&(m+=" period-start ",q==="START_DATE"&&(m+="selected"));pv(W,b.selection.end)&&(m+=" period-end ",q==="END_DATE"&&(m+="selected"));yg(W,b.selection.start)||yg(b.selection.end,W)||(m+=" highlighted")}if(yg(e,b.start)||yg(b.end,e))m+=" disabled";b.circleToday&&
pv(e,t)&&(m+=" today");return m};var fA=function(){return _.O.apply(this,arguments)||this};
_.Z(fA,_.O);_.r=fA.prototype;_.r.attached=function(){var W=this;_.Uc(this,function(){W.JSC$13873_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(Fhs(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.r.updateSelection=function(W){W=aOg(Object.assign({},this.calendarConfig,{selection:W}),dH8);this.splice.apply(this,["renderData.months",0,W.length].concat(_.kP(W)))};
_.r.scrollToDate=function(W){this.renderData&&(W=wtS(W,this.renderData),W!==void 0&&this.JSC$13873_calendarMain.scrollToIndex(W))};
_.r.scrollToNextMonth=function(){this.JSC$13873_calendarMain.scrollToIndex(this.JSC$13873_calendarMain.firstVisibleIndex+1)};
_.r.scrollToPrevMonth=function(){this.JSC$13873_calendarMain.firstVisibleIndex===0&&this.JSC$13873_calendarMain.scrollTo(0,0);this.JSC$13873_calendarMain.scrollToIndex(this.JSC$13873_calendarMain.firstVisibleIndex-1)};
_.r.handleDayClick=function(W){_.RT(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.r.handleDayMouseDown=function(W){W.preventDefault();_.RT(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.r.handleDayMouseUp=function(W){_.RT(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.r.handleDayMouseEnter=function(W){W.preventDefault();_.RT(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.r.handleDayMouseLeave=function(W){_.RT(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.Ec.Object.defineProperties(fA.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,e=dH8;e=e===void 0?dH8:e;for(var t=[],b=0;b<7;b++)t.push(Cv.NARROWWEEKDAYS[(b+IOL)%7]);return{months:aOg(W,e),daysOfWeekLabel:t}}}});
_.P([_.J(),_.Y("design:type",Object)],fA.prototype,"calendarConfig",void 0);_.P([_.vG("#calendar-main"),_.Y("design:type",Object)],fA.prototype,"JSC$13873_calendarMain",void 0);_.P([_.T("calendarConfig"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fA.prototype,"renderData",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],fA);
_.H(fA,"ytd-scrollable-calendar",function(){if(Noy!==void 0)return Noy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Noy=W},{mode:2});var WSy;var eVP;var gg=function(){var W=_.O.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.disabled=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.Z(gg,_.O);_.r=gg.prototype;_.r.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.r.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.r.focusTextInput=function(){this.input.focus()};
_.r.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()};
_.r.valueChanged=function(){var W,e;if(((W=this.data)==null?0:W.value)||((e=this.data)==null?void 0:e.value)==="")this.value=this.data.value;else{var t;((t=this.data)==null?void 0:t.value)!==void 0||this.value||(this.value="")}};
_.r.computeLabel=function(W,e){return e?"":_.Ub(W)};
_.r.computeAriaLabel=function(W,e){return e?_.Ub(W):""};
_.r.computeErrorMessage=function(W,e,t,b){!W&&e?W=t||this.strings.REQUIRED_LABEL:(W=_.Ub(b),W=_.XD(W,"&")?"document"in _.tz?O6v(W):MbG(W):W);return W};
_.r.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.r.onTextValueChanged=function(W){this.value=W.detail.value;var e;(e=this.onValueChanged)==null||e.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.r.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.l(W,N2e))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("value-changed",this.value))};
_.r.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.Ec.Object.defineProperties(gg.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
gg.prototype.valueChangedForBinding=gg.prototype.valueChangedForBinding;gg.prototype.valueChanged=gg.prototype.valueChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],gg.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],gg.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],gg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],gg.prototype,"value",void 0);_.P([_.J(),_.Y("design:type",String)],gg.prototype,"pattern",void 0);_.P([_.J(),_.Y("design:type",String)],gg.prototype,"errorMessage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],gg.prototype,"componentStyle",void 0);_.P([_.J(),_.Y("design:type",Object)],gg.prototype,"hideCharCounter",void 0);
_.P([_.J(),_.Y("design:type",Object)],gg.prototype,"hideLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],gg.prototype,"noLabelFloat",void 0);_.P([_.J(),_.Y("design:type",Function)],gg.prototype,"onValueChanged",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gg.prototype,"isMultilineOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],gg.prototype,"autoValidate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"invalid",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"disabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"enableOverlayTheme",void 0);_.P([_.J({value:{REQUIRED_LABEL:_.Gv("REQUIRED_LABEL",void 0,"Required")}}),_.Y("design:type",Object)],gg.prototype,"strings",void 0);_.P([_.vG("#input"),_.Y("design:type",Object)],gg.prototype,"input",void 0);
_.P([_.T("data","isMultilineOverride"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gg.prototype,"isMultiline",null);_.P([_.BG("data.value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"valueChanged",null);_.P([_.ul("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"valueChangedForBinding",null);_.P([_.gz({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],gg);
_.H(gg,"yt-text-input-form-field-renderer",function(){if(eVP===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;WSy===void 0&&(WSy=document.createElement("template"));var b=WSy;t.call(e,b.content.cloneNode(!0),W.content.firstChild);eVP=W}W=eVP;return W},{mode:2});var TY=function(){var W=_.O.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.Z(TY,_.O);_.r=TY.prototype;_.r.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"}}}}};
_.r.focus=function(){this.startDateInput.focus()};
_.r.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:jS(this.data.selection.start),end:jS(this.data.selection.end)})};
_.r.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.r.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Qw(this.selectionState)}};
_.r.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.r.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.r.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.r.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,e=W.end;W=cwZ({start:W.start,end:this.endDate||e},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.r.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,e=W.start;W=cwZ({start:this.startDate||e,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.r.handleCalendarDateClicked=function(W){var e=this.selection&&Fhs(this.selection),t=this.selection&&XtG(this.selection);e&&!yg(W,e)&&this.selectionState==="END_DATE"?(this.selection={start:e,end:W},this.selectionState="START_DATE"):(t&&!yg(t,W)?this.selection={start:W,end:t}:this.selection=W,this.selectionState="END_DATE")};
_.r.handleCalendarDateMouseDown=function(W){this.selection&&!RWG(this.selection)&&(this.dragPivot=pv(W,this.selection.start)?this.selection.end:pv(W,this.selection.end)?this.selection.start:W)};
_.r.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.r.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(e,t){return yg(e,t)?e:t}(this.dragPivot,W),
end:function(e,t){return yg(e,t)?t:e}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.r.handleCalendarDateMouseLeave=function(){};
_.r.handleCalendarSubmitDateRange=function(){this.selection&&!RWG(this.selection)&&_.RT(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.r.updateInvalidState=function(){var W=function(e,t){t?e.setAttribute("invalid",""):e.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.r.updateDateStrings=function(){this.selection&&(RWG(this.selection)?qNZ(this.selection):(qNZ(this.selection.start),qNZ(this.selection.end)))};
_.r.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.r.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.r.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.r.updateStartDateStringFromBinding=function(){};
_.r.updateEndDateStringFromBinding=function(){};
_.Ec.Object.defineProperties(TY.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:jS(this.data.dateRangeStart),end:jS(this.data.dateRangeEnd),selection:{start:jS(this.data.selection.start),end:jS(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Fhs(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&XtG(this.selection)}}});
TY.prototype.resetTextboxes=TY.prototype.resetTextboxes;TY.prototype.observeSelection=TY.prototype.observeSelection;TY.prototype.dataChanged=TY.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],TY.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#calendar"),_.Y("design:type",Object)],TY.prototype,"calendar",void 0);
_.P([_.vG("#start-date"),_.Y("design:type",Object)],TY.prototype,"startDateInput",void 0);_.P([_.vG("#end-date"),_.Y("design:type",Object)],TY.prototype,"endDateInput",void 0);_.P([_.J(),_.Y("design:type",Object)],TY.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],TY.prototype,"selection",void 0);_.P([_.J(),_.Y("design:type",String)],TY.prototype,"selectionState",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TY.prototype,"calendarConfig",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TY.prototype,"errorMessage",null);_.P([_.T("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TY.prototype,"startDate",null);_.P([_.T("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TY.prototype,"endDate",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TY.prototype,"dataChanged",null);
_.P([_.ul("selection","selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TY.prototype,"observeSelection",null);_.P([_.ul("selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TY.prototype,"resetTextboxes",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],TY);
_.H(TY,"ytd-date-period-picker-renderer",function(){if(AIN!==void 0)return AIN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return AIN=W},{mode:1});var Jb=function(){var W=_.O.apply(this,arguments)||this;var e={};W.actionMap=(e["ytd-date-period-picker-apply"]="handleDateRangeUpdated",e);return W};
_.Z(Jb,_.O);Jb.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Jb.prototype.handleDateRangeUpdated=function(){};
_.P([_.J(),_.Y("design:type",Object)],Jb.prototype,"data",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Jb.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Jb.prototype,"rendererstamperBehavior",void 0);_.P([_.h({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Jb);
_.H(Jb,"ytd-report-history-section-header-renderer",function(){if(EpN!==void 0)return EpN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return EpN=W},{mode:1});var tlD;var b0h;var mmP;var xR=function(){return _.O.apply(this,arguments)||this};
_.Z(xR,_.O);_.Ec.Object.defineProperties(xR.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?0:(e=W.icon)==null?0:e.iconType)?_.ao(this.data.icon.iconType):""}}});
_.P([_.J(),_.Y("design:type",Object)],xR.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xR.prototype,"icon",null);_.P([_.h({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],xR);
_.H(xR,"ytd-report-history-table-text-cell-renderer",function(){if(mmP!==void 0)return mmP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mmP=W},{mode:1});var O2=function(){return _.O.apply(this,arguments)||this};
_.Z(O2,_.O);O2.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],O2.prototype,"data",void 0);_.P([_.h({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],O2);
_.H(O2,"ytd-report-history-table-reason-cell-renderer",function(){if(b0h!==void 0)return b0h;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return b0h=W},{mode:1});var MK=function(){return _.O.apply(this,arguments)||this};
_.Z(MK,_.O);MK.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"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],MK.prototype,"rendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],MK.prototype,"data",void 0);_.P([_.h({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],MK);
_.H(MK,"ytd-report-history-table-cell-renderer",function(){if(tlD!==void 0)return tlD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return tlD=W},{mode:1});var roB;var s2=function(){var W=_.O.apply(this,arguments)||this;W.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 W};
_.Z(s2,_.O);s2.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
s2.prototype.getCellForColumn=function(W){return this.cells.find(function(e){var t;return((t=_.l(e==null?void 0:e.cell,xWo)||_.l(e==null?void 0:e.cell,Jt8))==null?void 0:t.columnId)===W.type})};
s2.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
s2.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Ec.Object.defineProperties(s2.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(e){return _.l(e,Tjy)})}}});
s2.prototype.onDataChanged=s2.prototype.onDataChanged;_.P([_.J(),_.Y("design:type",Object)],s2.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],s2.prototype,"columnRenderData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],s2.prototype,"componentStyle",void 0);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],s2.prototype,"cells",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s2.prototype,"onDataChanged",null);_.P([_.h({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],s2);
_.H(s2,"ytd-report-history-table-row-renderer",function(){if(roB!==void 0)return roB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return roB=W},{mode:1});var qhe;var RVe;var vTZ={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},GUg={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var hb=function(){return _.O.apply(this,arguments)||this};
_.Z(hb,_.O);hb.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"}}}}}};
hb.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Ec.Object.defineProperties(hb.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?lOc(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return BmK(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,e=vTZ;e=e===void 0?GUg:e;e=oTK(W.columnDimensions,W.columnsToShow||[],e);W=0;e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,W+=t.minWidth+t.paddingLeft+t.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.P([_.y(_.PB),_.Y("design:type",Object)],hb.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hb.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hb.prototype,"tableSpec",null);_.P([_.T("tableSpec"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],hb.prototype,"columnRenderData",null);
_.P([_.T("tableSpec"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],hb.prototype,"totalMinWidth",null);_.P([_.T("totalMinWidth"),_.Y("design:type",String),_.Y("design:paramtypes",[])],hb.prototype,"tableWidthStyle",null);_.P([_.h({is:"ytd-table-renderer",disableElementRegistration:!0})],hb);
_.H(hb,"ytd-table-renderer",function(){if(RVe!==void 0)return RVe;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RVe=W},{mode:1});var Hv=function(){return _.O.apply(this,arguments)||this};
_.Z(Hv,_.O);Hv.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}}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hv.prototype,"data",void 0);_.P([_.h({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Hv);
_.H(Hv,"ytd-report-reason-history-modal-renderer",function(){if(qhe!==void 0)return qhe;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qhe=W},{mode:1});var QcZ;var FSv;var Xdv;var KA=function(){return _.O.apply(this,arguments)||this};
_.Z(KA,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],KA.prototype,"data",void 0);_.P([_.h({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],KA);
_.H(KA,"ytd-profile-column-stats-entry-renderer",function(){if(Xdv!==void 0)return Xdv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Xdv=W},{mode:1});var I9v;var Pv=function(){return _.O.apply(this,arguments)||this};
_.Z(Pv,_.O);Pv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Pv.prototype,"data",void 0);_.P([_.h({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Pv);
_.H(Pv,"ytd-profile-column-stats-renderer",function(){if(I9v!==void 0)return I9v;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return I9v=W},{mode:1});var a9B;var Vz=function(){return _.O.apply(this,arguments)||this};
_.Z(Vz,_.O);_.Ec.Object.defineProperties(Vz.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var e,t;W=(e=this.data)==null?void 0:(t=e.thumbnail)==null?void 0:t.thumbnails;var b;return W&&((b=W[0])==null?void 0:b.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var e,t;W=(e=this.data)==null?void 0:(t=e.thumbnail)==null?void 0:t.thumbnails;var b;return W&&((b=W[0])==null?void 0:b.height)||80}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Vz.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Vz.prototype,"componentStyle",void 0);_.P([_.T("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vz.prototype,"thumbnailWidth",null);
_.P([_.T("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vz.prototype,"thumbnailHeight",null);_.P([_.h({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Vz);
_.H(Vz,"ytd-profile-column-user-info-renderer",function(){if(a9B!==void 0)return a9B;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return a9B=W},{mode:1});var i7=function(){return _.O.apply(this,arguments)||this};
_.Z(i7,_.O);i7.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]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],i7.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],i7.prototype,"componentStyle",void 0);_.P([_.h({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],i7);
_.H(i7,"ytd-profile-column-renderer",function(){if(FSv!==void 0)return FSv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return FSv=W},{mode:1});var YR=function(){var W=_.O.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.Z(YR,_.O);YR.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
YR.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],YR.prototype,"data",void 0);_.P([_.h({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],YR);
_.H(YR,"ytd-page-introduction-renderer",function(){if(QcZ!==void 0)return QcZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QcZ=W},{mode:1});var wdD;var zY=function(){return _.O.apply(this,arguments)||this};
_.Z(zY,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zY.prototype,"data",void 0);_.P([_.h({is:"ytd-report-description-renderer",disableElementRegistration:!0})],zY);
_.H(zY,"ytd-report-description-renderer",function(){if(wdD!==void 0)return wdD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wdD=W},{mode:1});var ugN;var coU;var U2=function(){return _.O.apply(this,arguments)||this};
_.Z(U2,_.O);U2.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],U2.prototype,"data",void 0);_.P([_.h({is:"ytd-video-report-renderer",disableElementRegistration:!0})],U2);
_.H(U2,"ytd-video-report-renderer",function(){if(coU!==void 0)return coU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return coU=W},{mode:1});var vfr;_.xD("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.xD("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var LA=function(){return _.O.apply(this,arguments)||this};
_.Z(LA,_.O);LA.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]]"}}}}}};
LA.prototype.computeMessageStyle=function(W){return W};
LA.prototype.computeButtonOverride=function(W){var e;if((W==null?0:(e=W.style)==null?0:e.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],LA.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LA.prototype,"shelf",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LA.prototype,"panel",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Y("design:type",Boolean)],LA.prototype,"componentStyle",void 0);_.P([_.J({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],LA.prototype,"buttonOverride",void 0);_.P([_.h({is:"ytd-message-renderer",disableElementRegistration:!0})],LA);
_.H(LA,"ytd-message-renderer",function(){if(vfr!==void 0)return vfr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vfr=W},{mode:1});var E2=function(){return _.O.apply(this,arguments)||this};
_.Z(E2,_.O);E2.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"}}}};
E2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
E2.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Ec.Object.defineProperties(E2.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!(((W=this.data)==null?0:W.header)&&((e=this.data)==null?0:e.table))}}});
E2.prototype.onRequestError=E2.prototype.onRequestError;_.P([_.y(_.PB),_.Y("design:type",Object)],E2.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],E2.prototype,"data",void 0);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],E2.prototype,"isUnifiedReportHistory",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E2.prototype,"onRequestError",null);_.P([_.h({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],E2);
_.H(E2,"ytd-report-history-section-renderer",function(){if(ugN!==void 0)return ugN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ugN=W},{mode:1});var GWZ;var Ab=function(){var W=_.O.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.Z(Ab,_.O);Ab.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ab.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ab.prototype,"answerExpanded",void 0);_.P([_.h({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Ab);
_.H(Ab,"ytd-handles-claiming-faq-renderer",function(){if(GWZ!==void 0)return GWZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return GWZ=W},{mode:1});var Dmy;var ShP=function(){return _.O.apply(this,arguments)||this};
_.Z(ShP,_.O);_.P([_.J(),_.Y("design:type",Object)],ShP.prototype,"data",void 0);_.P([_.h({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],ShP);
_.H(ShP,"ytd-handles-claiming-faq-section-renderer",function(){if(Dmy!==void 0)return Dmy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Dmy=W},{mode:1});var BCD;var NK=function(){var W=_.O.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.Z(NK,_.O);_.r=NK.prototype;_.r.updateLeftSquigglyStyle=function(){_.XB(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.r.updateRightSquigglyStyle=function(){_.XB(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.r.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
NK.prototype.updateRightSquigglyStyle=NK.prototype.updateRightSquigglyStyle;NK.prototype.updateLeftSquigglyStyle=NK.prototype.updateLeftSquigglyStyle;_.P([_.J(),_.Y("design:type",Object)],NK.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],NK.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",String)],NK.prototype,"leftSquiggly",void 0);_.P([_.J(),_.Y("design:type",String)],NK.prototype,"rightSquiggly",void 0);
_.P([_.ul("leftSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NK.prototype,"updateLeftSquigglyStyle",null);_.P([_.ul("rightSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NK.prototype,"updateRightSquigglyStyle",null);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],NK.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],NK.prototype,"actionButtonOverride",void 0);_.P([_.h({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],NK);
_.H(NK,"ytd-handles-claiming-header-renderer",function(){if(BCD!==void 0)return BCD;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return BCD=W},{mode:1});var ofe;var dg=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.Z(dg,_.O);_.r=dg.prototype;_.r.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.r.onDataChanged=function(){this.updateTitleAndImages()};
_.r.onThemeChanged=function(){this.updateTitleAndImages()};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.r.updateImage0SquigglyBackground=function(){_.XB(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.r.updateImage1SquigglyBackground=function(){_.XB(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.r.updateImage3SquigglyBackground=function(){_.XB(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.r.updateTitleAndImages=function(){var W,e;((W=this.data)==null?void 0:(e=W.titleImages)==null?void 0:e.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
dg.prototype.updateImage3SquigglyBackground=dg.prototype.updateImage3SquigglyBackground;dg.prototype.updateImage1SquigglyBackground=dg.prototype.updateImage1SquigglyBackground;dg.prototype.updateImage0SquigglyBackground=dg.prototype.updateImage0SquigglyBackground;dg.prototype.onThemeChanged=dg.prototype.onThemeChanged;dg.prototype.onDataChanged=dg.prototype.onDataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],dg.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dg.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"title0",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"title1",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"title2",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"title3",void 0);
_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"title4",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"image0",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"image1",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"image2",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"image3",void 0);_.P([_.J(),_.Y("design:type",Object)],dg.prototype,"image4",void 0);_.P([_.J(),_.Y("design:type",String)],dg.prototype,"image0SquigglyBackground",void 0);
_.P([_.J(),_.Y("design:type",String)],dg.prototype,"image1SquigglyBackground",void 0);_.P([_.J(),_.Y("design:type",String)],dg.prototype,"image3SquigglyBackground",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dg.prototype,"onDataChanged",null);_.P([_.ul("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dg.prototype,"onThemeChanged",null);
_.P([_.ul("image0SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dg.prototype,"updateImage0SquigglyBackground",null);_.P([_.ul("image1SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dg.prototype,"updateImage1SquigglyBackground",null);
_.P([_.ul("image3SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dg.prototype,"updateImage3SquigglyBackground",null);_.P([_.h({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],dg);
_.H(dg,"ytd-handles-claiming-title-images-section-renderer",function(){if(ofe!==void 0)return ofe;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ofe=W},{mode:1});var l9o;var WW=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(WW,_.O);WW.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
WW.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
WW.prototype.onCopyButtonClick=function(){var W=this,e,t,b;return _.F(function(m){return(e=W.data)!=null&&e.primaryChannelUrl?_.a(m,navigator.clipboard.writeText(((t=W.data)==null?0:t.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.Ub((b=W.data)==null?void 0:b.primaryChannelUrl)),0):m.jumpTo(0)})};
_.P([_.J(),_.Y("design:type",Object)],WW.prototype,"data",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],WW.prototype,"isDarkTheme",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);_.P([_.h({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],WW);
_.H(WW,"ytd-handles-claiming-update-social-renderer",function(){if(l9o!==void 0)return l9o;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return l9o=W},{mode:1});var Z0S;var ea=function(){var W=_.O.apply(this,arguments)||this;W.JSC$13968_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$13968_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$13968_squigglyBackgroundLight;return W};
_.Z(ea,_.O);ea.prototype.updateSquigglyBackgroundStyle=function(){_.XB(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ea.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$13968_squigglyBackgroundDark:this.JSC$13968_squigglyBackgroundLight};
ea.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13968_squigglyBackgroundDark:this.JSC$13968_squigglyBackgroundLight)};
ea.prototype.updateSquigglyBackgroundStyle=ea.prototype.updateSquigglyBackgroundStyle;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ea.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ea.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",String)],ea.prototype,"squigglyBackground",void 0);_.P([_.ul("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ea.prototype,"updateSquigglyBackgroundStyle",null);_.P([_.h({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ea);
_.H(ea,"ytd-handles-claiming-vanity-info-renderer",function(){if(Z0S!==void 0)return Z0S;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Z0S=W},{mode:1});var $mD;var t1=function(){var W=_.O.apply(this,arguments)||this;W.JSC$13971_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$13971_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$13971_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(t1,_.O);_.r=t1.prototype;_.r.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13971_squigglyBackgroundDark:this.JSC$13971_squigglyBackgroundLight)};
_.r.updateSquigglyBackgroundStyle=function(){_.XB(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.r.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.r.detached=function(){this.stop()};
_.r.stop=function(){this.playerElement.stop()};
_.r.setupVideoPlayer=function(){var W=this,e,t;return _.F(function(b){e=W.data.videoId;t="http://i1.ytimg.com/vi/"+e+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:e,iurlhq:t});_.u8(b)})};
t1.prototype.onDataChanged=t1.prototype.onDataChanged;t1.prototype.updateSquigglyBackgroundStyle=t1.prototype.updateSquigglyBackgroundStyle;_.P([_.J({value:!1}),_.Y("design:type",Boolean)],t1.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",String)],t1.prototype,"squigglyBackground",void 0);_.P([_.vG("#player"),_.Y("design:type",Object)],t1.prototype,"playerElement",void 0);_.P([_.J(),_.Y("design:type",Object)],t1.prototype,"data",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],t1.prototype,"ytActionHandlerBehavior",void 0);_.P([_.ul("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t1.prototype,"updateSquigglyBackgroundStyle",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t1.prototype,"onDataChanged",null);
_.P([_.h({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],t1);
_.H(t1,"ytd-handles-claiming-video-item-renderer",function(){if($mD!==void 0)return $mD;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $mD=W},{mode:1});var kWD;var mH=function(){var W=_.D0.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",bf(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",bf(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(e){W.dragMouseStart=e.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(e){W.dragging&&W.set("offset",bf(W,W.dragOffsetStart-(e.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(e){var t=0;Math.abs(e.deltaX)>=Math.abs(e.deltaY)?t=e.deltaX:e.shiftKey&&(t=e.deltaY);t!==0&&(W.offset+=t,e.stopPropagation(),e.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(e){(e=e.detail)&&W.scrollChipIntoView(e)};
return W};
_.Z(mH,_.D0);mH.prototype.attached=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
mH.prototype.detached=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
mH.prototype.reset=function(){this.set("offset",0);_.Uc(this,this.setContainerWidthDiff);rZ(this)};
var bf=function(W,e){return Math.min(Math.max(e,0),W.containerWidthDiff)};
mH.prototype.onMouseUp=function(){this.dragging=!1};
mH.prototype.transformContainer=function(){this.offset=bf(this,this.offset);var W=_.Ot("HTML_DIR")==="rtl"?"":"-";_.rz(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";rZ(this)};
var rZ=function(W){_.Uc(W,W.setButtonsState)};
mH.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=bf(this,this.offset));this.atStart=this.offset<=0};
mH.prototype.setContainerWidthDiff=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container"),e=_.rz(this.hostElement).querySelector("#chips");W&&e&&(this.containerWidthDiff=e.clientWidth-W.clientWidth)};
mH.prototype.scrollChipIntoView=function(W){var e=_.rz(this.hostElement).querySelector("#scroll-container");if(e){var t=this.atStart?0:106,b=this.atEnd?0:106;W.offsetLeft<this.offset+t?this.offset=bf(this,W.offsetLeft-t):W.offsetLeft+W.clientWidth>this.offset+e.clientWidth-b&&(this.offset=bf(this,W.offsetLeft+W.clientWidth+b-e.clientWidth))}};
mH.prototype.transformContainer=mH.prototype.transformContainer;_.P([_.J({value:0}),_.Y("design:type",Number)],mH.prototype,"offset",void 0);_.P([_.J({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],mH.prototype,"atStart",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],mH.prototype,"atEnd",void 0);_.P([_.J(),_.Y("design:type",Number)],mH.prototype,"scrollDistance",void 0);
_.P([_.ul("offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mH.prototype,"transformContainer",null);_.P([_.SB()],mH);var pdS;var yor;var nfh=_.NN(function(W){var e=W.data;W=_.R(_.up(!1,void 0,"icHmSe"));var t=W.next().value,b=W.next().value;W={};W=_.ve("ytChipShapeChip",function(){a:switch(e==null?void 0:e().state){case 0:var q="ytChipShapeActive";break a;case 1:q="ytChipShapeDisabled";break a;default:q="ytChipShapeInactive"}return q},function(){var q=e().type===1||e().type===2,Q=e();
return q||Q!=null&&Q.startIcon?Q==null||!Q.startIcon||Q!=null&&Q.text?q?"ytChipShapeEndIconPadding":(Q==null?0:Q.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var q;
return t()&&((q=e())==null?void 0:q.state)!==1},W));
var m=function(q){if((e==null?void 0:e().state)!==1){var Q,X;(X=(Q=e()).onTap)==null||X.call(Q,q)}};
return _.w("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Be(function(){var q=_.ee().resolve(_.Wi(_.FN));if(q){b(q.isKeyBoardInUse());var Q,X;(X=(Q=e()).onFocusIn)==null||X.call(Q)}return!1}),
"on:focusout":_.Be(function(){b(!1);return!1})},_.w(jck,{shouldWrapInButton:function(){return e().type!==2},
selected:function(){return e().state===0},
onClick:m,isDropdown:function(){return e().type===1},
accessibilityLabel:function(){return e().accessibilityLabel}},_.w("div",{class:W},_.w(_.G,{cond:function(){return e().startIcon},
then:function(){return _.w(_.kD,{icon:function(){var q;return(q=e())==null?void 0:q.startIcon},
className:function(){return e().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return e().text},_.w(C1U,{shape:e,
onClick:m}))))},"zb");
nfh.idomCompat=!0;var jck=_.NN(function(W){var e=_.Be(function(t){W.onClick(t);return!1});
return _.w(_.G,{cond:W.shouldWrapInButton,then:function(){return _.w("button",{class:"ytChipShapeButtonReset","on:click":e,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"Ab"),C1U=_.NN(function(W){var e=W.shape;
var t=W.onClick;var b=_.Be(function(m){t(m);return!1});
return _.w(_.kq,null,_.w(_.Zb,{when:function(){return e().type===1}},function(){return _.w(_.kD,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.w(_.Zb,{when:function(){return e().type===2}},function(){return _.w("button",{class:"ytChipShapeButtonReset",
"on:click":b},_.w(_.kD,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.w(_.Zb,{when:function(){return e().type===0}},function(){return _.w(_.qD,null)}))},"Bb");_.mM(nfh,"chip-shape",{props:{data:_.Eu}});var qe=function(){var W=_.O.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.Z(qe,_.O);_.r=qe.prototype;_.r.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.l(W,PIy),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.r.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var e;(W=(e=_.l(W,inS))==null?void 0:e.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.r.dataChanged=function(){var W=this;_.Uc(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.r.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.r.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.RT(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.RT(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.r.onFocus=function(){var W=_.ee().resolve(_.Wi(_.FN));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.r.scrollChipIntoView=function(){_.q2(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Ec.Object.defineProperties(qe.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return j9R({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
qe.prototype.onFocus=qe.prototype.onFocus;qe.prototype.onTap=qe.prototype.onTap;qe.prototype.dataChanged=qe.prototype.dataChanged;_.P([_.y(_.px),_.Y("design:type",Object)],qe.prototype,"ironButtonState",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],qe.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],qe.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.ZJ),_.Y("design:type",Object)],qe.prototype,"ironA11yKeysBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qe.prototype,"disableDeselectEvent",void 0);_.P([_.J(),_.Y("design:type",Object)],qe.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.icon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qe.prototype,"hasIcon",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.uniqueId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qe.prototype,"isGnomeChip",null);_.P([_.J({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Y("design:type",String)],qe.prototype,"chipStyle",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qe.prototype,"selected",void 0);
_.P([_.T("data","selected"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qe.prototype,"chipShapeData",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qe.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qe.prototype,"onTap",null);
_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qe.prototype,"onFocus",null);_.P([_.gz({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],qe);
_.H(qe,"yt-chip-cloud-chip-renderer",function(){if(yor===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;pdS===void 0&&(pdS=document.createElement("template"));var b=pdS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);yor=W}W=yor;return W},{mode:2});var RJ=function(){var W=_.O.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.Z(RJ,_.O);_.r=RJ.prototype;
_.r.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}}}}}};
_.r.attached=function(){var W=this;document.addEventListener("scroll",_.aH(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var e;this.toolbarHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){W.handleIntersect(t)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.r.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("scroll",_.aH(this,this.updateChipBarWidthAndTop))};
_.r.dataChanged=function(){var W=this,e,t,b;((b=_.l((e=this.data)==null?void 0:(t=e.contents)==null?void 0:t[0],Ick))==null?void 0:b.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var m=this.findSelectedChipIndex();this.selectedIndex!==m&&(this.selectedIndex=-1);_.Uc(this,function(){W.selectedIndex=m;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.r.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var e=0;e<W.length;e++){var t=void 0;if((t=_.l(W[e],Ick))==null?0:t.isSelected)return e}return 0};
_.r.computeStyle=function(W){return W};
_.r.handleChipCloudChipSelectAction=function(W){W=this.JSC$13990_chipsSelector.indexOf(W);W>-1&&this.JSC$13990_chipsSelector.selectIndex(W)};
_.r.handleChipCloudChipDeselectAction=function(){if(_.S("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],Ick))==null?void 0:t.navigationEndpoint;b&&_.RT(this.hostElement,"yt-browse-section-list-reload-endpoint",[b]);this.JSC$13990_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.r.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.Uc(W,W.setContainerWidthDiff);rZ(this.ytScrollableChipCloudBehavior)};
_.r.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.Uc(W,W.setContainerWidthDiff);rZ(this.ytScrollableChipCloudBehavior)};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.r.handleIntersect=function(W){this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1};
_.r.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var e,t=(e=W.headerElement)!=null?e:W;_.XB(this.hostElement,{"--ytd-rich-grid-chips-bar-width":t.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.r.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.r.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.r.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(zgv(!this.notSticky))};
_.Ec.Object.defineProperties(RJ.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 W,e,t=(W=this.data)==null?void 0:(e=W.contents)==null?void 0:e.find(function(b){return _.l(b,vFN)});
return{sortFilterHeaderRenderer:_.l(t,vFN)}}}});
RJ.prototype.dispatchChipBarIsSticky=RJ.prototype.dispatchChipBarIsSticky;RJ.prototype.isPlaylistPageChanged=RJ.prototype.isPlaylistPageChanged;RJ.prototype.updateChipBarWidthAndTop=RJ.prototype.updateChipBarWidthAndTop;RJ.prototype.onResize=RJ.prototype.onResize;RJ.prototype.onGuideIsExpandedChanged=RJ.prototype.onGuideIsExpandedChanged;RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],RJ.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],RJ.prototype,"ironResizableBehavior",void 0);_.P([_.y(),_.Y("design:type",mH)],RJ.prototype,"ytScrollableChipCloudBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],RJ.prototype,"ytdReduxBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],RJ.prototype,"data",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],RJ.prototype,"selectedIndex",void 0);_.P([_.J({value:320}),_.Y("design:type",Number)],RJ.prototype,"scrollDistance",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"notSticky",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"transparentBackground",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Y("design:type",String)],RJ.prototype,"componentStyle",void 0);_.P([_.J({selector:_.ah9}),_.Y("design:type",Boolean)],RJ.prototype,"guideIsExpanded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"shouldHide",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"disableSticky",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"fluidWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"isClipList",void 0);_.P([_.J(),_.Y("design:type",Object)],RJ.prototype,"defaultChipIndex",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"isPlaylist",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RJ.prototype,"playlistVotingAnimationEnabled",void 0);_.P([_.vG("#chips"),_.Y("design:type",Object)],RJ.prototype,"JSC$13990_chipsSelector",void 0);_.P([_.vG("ytd-sort-filter-header-renderer"),_.Y("design:type",HTMLElement)],RJ.prototype,"sortFilterHeaderRendererElement",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],RJ.prototype,"updating",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"dataChanged",null);_.P([_.ul("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"onGuideIsExpandedChanged",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"onResize",null);
_.P([_.BG("isChannelPageGrid","disableSticky","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"updateChipBarWidthAndTop",null);_.P([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RJ.prototype,"isChannelPageGrid",null);_.P([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RJ.prototype,"isHashtagLandingPage",null);
_.P([_.ul("isPlaylistPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"isPlaylistPageChanged",null);_.P([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RJ.prototype,"isPlaylistPage",null);_.P([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RJ.prototype,"isDisableDeselectEvent",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RJ.prototype,"sortFilterHeaderRendererData",null);_.P([_.J({reflectToAttribute:!0,selector:_.Dd2}),_.Y("design:type",String)],RJ.prototype,"frostedGlassMode",void 0);_.P([_.ul("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"dispatchChipBarIsSticky",null);_.P([_.h({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],RJ);
_.H(RJ,"ytd-feed-filter-chip-bar-renderer",function(){if(kWD!==void 0)return kWD;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kWD=W},{mode:1});var f9k;var gfU=_.NN(function(W){var e=W.data;var t=W.buttonIndex;var b=W.selectedIndex;var m=W.onSelect;var q=function(){return t()===b()},Q=function(){var X,I;
return(I=(X=e().text)==null?void 0:X.content)!=null?I:""};
W=_.rRz();return _.w("yt-toggleable-image-button-view-model",{class:function(){var X={};X=(X["toggleable-image-button-view-model-wiz"]=!0,X[""]=!0,X["toggleable-image-button-view-model-wiz__semi-transparent"]=b()!==-1&&!q(),X);return _.DT(X)},
tabindex:0,"aria-label":Q,"aria-pressed":q,role:"button","on:keydown":W,"on:click":_.Be(function(){m(e().onSubmitCommand);return!1})},_.w(_.G,{cond:function(){return e().logo},
then:function(X){return _.w(_.A_,{data:X,className:function(){var I={};I=(I["toggleable-image-button-view-model-wiz__image"]=!0,I["toggleable-image-button-view-model-wiz__circular-radius"]=!(!e().backgroundColor||!e().backgroundColorDarkMode),I["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(q()&&e().backgroundColor&&e().backgroundColorDarkMode),I);return _.DT(I)},
alt:Q,useWidth:!1,style:function(){if(q()&&e().backgroundColor&&e().backgroundColorDarkMode){var I=Hw(Number(e().backgroundColorDarkMode),"1");var u=Hw(Number(e().backgroundColor),"1");I="background: linear-gradient(180deg,"+I+","+u+") border-box;"}else I="";return I}})}}),_.w(_.jN,{model:{borderRadius:"16px"}}),_.w("p",{class:function(){var X={};
X=(X["toggleable-image-button-view-model-wiz__label"]=!0,X["toggleable-image-button-view-model-wiz__bold-text"]=q(),X);return _.DT(X)}},_.w(_.WL,{text:function(){return e().text}})))},"Cb");
gfU.idomCompat=!0;var JoD=_.NN(function(W){var e=W.data;W=_.R(_.up({index:-1,command:{}},void 0,"Zcqtsb"));var t=W.next().value,b=W.next().value;return _.w("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.w("div",{class:"nudge-form-view-model-wiz__form-options"},_.w(_.nU,{data:function(){return e().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(m,q){return _.w(gfU,{data:m.data,buttonIndex:q,selectedIndex:function(){return t().index},
onSelect:function(Q){b({index:q(),command:Q})}})}})),_.w(_.WL,{text:function(){return e().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.w("div",{class:"nudge-form-view-model-wiz__submit"},_.w(_.nU,{data:function(){return e().submitButton}},{buttonViewModel:function(m){return _.w(TCB,{data:m.data,
isDisabled:function(){return t().index===-1},
onClick:function(){_.K4(t().command)}})}})))},"Db");
JoD.idomCompat=!0;var TCB=_.NN(function(W){var e=_.SC(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.w(_.MV,{data:e,onClick:W.onClick})},"Eb");_.mM(JoD,"yt-nudge-form-view-model",{props:{data:_.Eu}});var QD=function(){var W=_.O.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.S("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.Z(QD,_.O);_.r=QD.prototype;_.r.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.r.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.r.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.r.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"}}}};
_.r.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.Ec.Object.defineProperties(QD.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.data)==null?void 0:W.backgroundStyle)!=null?e:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.data)==null?void 0:W.contentsLocation)!=null?e:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],QD.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],QD.prototype,"actionHandlerBehavior",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("isHideEnclosingAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QD.prototype,"isHidden",null);_.P([_.J(),_.Y("design:type",Object)],QD.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QD.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QD.prototype,"buttonUpdate",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Y("design:type",String)],QD.prototype,"nudgeStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.trimStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QD.prototype,"trimStyle",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.backgroundStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QD.prototype,"backgroundStyle",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.contentsLocation"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QD.prototype,"contentsLocation",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.disableDropShadow"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QD.prototype,"noShadow",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.lightIconImage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QD.prototype,"noIcon",null);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Y("design:type",Boolean)],QD.prototype,"isHorizontalButtons",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],QD.prototype,"isDarkMode",void 0);_.P([_.h({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],QD);
_.H(QD,"ytd-feed-nudge-renderer",function(){if(f9k!==void 0)return f9k;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return f9k=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var xmv;var O0k;var Fn=function(){var W=_.O.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.Z(Fn,_.O);Fn.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"}}}};
Fn.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Fn.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fn.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Fn.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.Tx),_.Y("design:type",Object)],Fn.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Fn.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fn.prototype,"collapsed",void 0);_.P([_.h({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Fn);
_.H(Fn,"ytd-slimline-survey-renderer",function(){if(O0k!==void 0)return O0k;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return O0k=W},{mode:1});var Mlb;var Xn=function(){return _.O.apply(this,arguments)||this};
_.Z(Xn,_.O);Xn.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
Xn.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.sr(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.sr(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Xn.prototype.colorPaletteChanged=Xn.prototype.colorPaletteChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Xn.prototype,"data",void 0);_.P([_.J({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.Y("design:type",Boolean)],Xn.prototype,"isDarkMode",void 0);_.P([_.J(),_.Y("design:type",Object)],Xn.prototype,"lightColorPalette",void 0);_.P([_.J(),_.Y("design:type",Object)],Xn.prototype,"darkColorPalette",void 0);_.P([_.ul("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xn.prototype,"colorPaletteChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Xn);
_.H(Xn,"ytd-endorsement-header-renderer",function(){if(Mlb!==void 0)return Mlb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Mlb=W},{mode:1});_.mM(_.yc,"yt-decorated-avatar-view-model",{props:{data:_.Eu,className:_.Eu}});var IJ=function(){var W=_.O.apply(this,arguments)||this;W.fullHeight=_.S("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};W.prepareThumbnailForPageTransition=function(){_.S("web_thumbnail_to_watch_transition")&&(W.thumbnail.style.viewTransitionName="thumbnail-to-watch",W.cleanupThumbnailAfterPageTransition(W.thumbnail))};
return W};
_.Z(IJ,_.O);_.r=IJ.prototype;
_.r.configureRendererStamper=function(){return{lazyLoadMenu:aV,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"}}}};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.S("kevlar_modern_downloads_page")||!W};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14016_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.JSC$14016_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.r.getVideoPreviewOpts=function(){var W={},e;if((e=this.data)==null?0:e.multipleInlinePlaybackEndpoint)W=njD;this.isRadio&&(W=C2D);return _.S("web_thumbnail_to_watch_transition")?Object.assign({},W,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):W};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$14016_inlinePreviewHoverListener)==null||R4(W)};
_.r.getOwner=function(){var W,e,t;return((W=this.data)==null?void 0:(e=W.channelThumbnailSupportedRenderers)==null?void 0:e.channelThumbnailWithLinkRenderer)||_.l((t=this.data)==null?void 0:t.showProviderChannelThumbnail,tuD)};
_.r.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.r.getFeedbackEndpoint=function(W){if(_.l(W,_.Ol))return W;var e,t;W=(t=(e=_.l(W,_.wy))==null?void 0:e.commands)!=null?t:[];e=_.R(W);for(t=e.next();!t.done;t=e.next())if(t=this.getFeedbackEndpoint(t.value))return t;return null};
_.r.computeNavigationEndpoint=function(W){return VLc(W==null?void 0:W.navigationEndpoint)};
_.r.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.r.onDataChanged=function(){var W=this,e=this.getOwner();if(e){this.set("data.owner",e);var t,b,m,q,Q,X=((t=this.data)==null?void 0:(b=t.shortBylineText)==null?void 0:(m=b.runs)==null?void 0:(q=m[0])==null?void 0:q.text)||((Q=e.name)==null?void 0:Q.simpleText);this.set("data.owner.title",X)}var I,u,c,v,D,B;e=((I=this.data)==null?void 0:(u=I.thumbnailRenderer)==null?void 0:u.playlistVideoThumbnailRenderer)||((c=this.data)==null?void 0:(v=c.thumbnailRenderer)==null?void 0:v.playlistCustomThumbnailRenderer)||
((D=this.data)==null?void 0:(B=D.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var k;((k=this.data)==null?0:k.thumbnail)||!e||this.set("data.thumbnail",e.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var n;if(I=((n=this.data)==null?void 0:n.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(I);var f;((f=this.dismissActionToReplayEntity)==null?0:f.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.r.onHiddenChanged=function(){this.updateLockupSize()};
_.r.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.RT(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.r.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.sr(this.metadataColor);else{var e,t;!this.metadataColor&&((e=this.videoTitle)==null?0:(t=e.style)==null?0:t.color)&&(this.videoTitle.style.color="")}};
_.r.onDetailsClick=function(W){var e=this.computedNavigationEndpoint;e&&(_.NA(_.LB(W),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.q2(this.hostElement,"yt-navigate",{endpoint:e}))};
_.r.cleanupThumbnailAfterPageTransition=function(W){_.YrG(document,"yt-page-type-changed",function(){W.style.viewTransitionName=""})};
_.r.onRendererTap=function(){this.prepareThumbnailForPageTransition();var W,e,t=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((e=this.data)==null?void 0:e.navigationEndpoint);t&&_.l(t,_.Ol)&&this.ytComponentBehavior.resolveCommand(t)};
_.r.onMouseDown=function(W){var e=W.target,t=this.computedNavigationEndpoint,b;W=e.href||((b=_.l(t==null?void 0:t.commandMetadata,_.ez))==null?void 0:b.url);b=e.data||t;W&&b&&Prz(W,b)};
_.r.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.r.computeHasPlaylistThumbnail=function(W){var e,t,b,m,q;if((((e=W.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((t=W.thumbnailRenderer)==null?0:t.playlistCustomThumbnailRenderer)||((b=W.thumbnailRenderer)==null?0:b.showCustomThumbnailRenderer)||((m=W.thumbnailRenderer)==null?0:m.playlistVideoThumbnailRenderer)||((q=W.thumbnailRenderer)==null?0:q.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(e=0;e<W.thumbnailOverlays.length;e++)if(t=void 0,(t=W.thumbnailOverlays[e])==
null?0:t.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Ec.Object.defineProperties(IJ.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$14016_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Gi(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.videoId)||((e=this.data)==null?void 0:e.playlistId)||""}}});
IJ.prototype.onMouseDown=IJ.prototype.onMouseDown;IJ.prototype.metadataColorChanged=IJ.prototype.metadataColorChanged;IJ.prototype.onIsDismissedChanged=IJ.prototype.onIsDismissedChanged;IJ.prototype.onHiddenChanged=IJ.prototype.onHiddenChanged;IJ.prototype.onDataChanged=IJ.prototype.onDataChanged;IJ.prototype.handleReloadDownloadsInfo=IJ.prototype.handleReloadDownloadsInfo;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],IJ.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],IJ.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],IJ.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],IJ.prototype,"ytdReduxBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],IJ.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],IJ.prototype,"entitySelectorType",void 0);_.P([_.J(),_.Y("design:type",Boolean)],IJ.prototype,"noEndpoints",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],IJ.prototype,"isRadio",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],IJ.prototype,"miniMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],IJ.prototype,"fullHeight",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],IJ.prototype,"showDarkVideoMetadata",void 0);_.P([_.J(),_.Y("design:type",Boolean)],IJ.prototype,"showLightVideoMetadata",void 0);_.P([_.J(),_.Y("design:type",Number)],IJ.prototype,"metadataColor",void 0);_.P([_.J(),_.Y("design:type",Object)],IJ.prototype,"showChannelAvatar",void 0);_.P([_.J(),_.Y("design:type",Boolean)],IJ.prototype,"hidden",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],IJ.prototype,"showYtInteraction",void 0);
_.P([_.J(),_.Y("design:type",String)],IJ.prototype,"dismissedContentId",void 0);_.P([_.J({selectorArgs:["dismissedContentId"],selector:nCL}),_.Y("design:type",Object)],IJ.prototype,"dismissActionToReplayEntity",void 0);
_.P([_.J({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,e,t){if(_.S("kevlar_modern_downloads_page")&&t&&e&&e!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var b=lhG(W,t);if(b){e=_.xg(W,t);var m=Mf(W,t),q=Tvv(W,t);W=sb(W,t);var Q=X2G(b,e,m,q);m=Q.shortViewCountText;var X=Q.publishedTimeText;Q=Q.badges;var I=W>0;q=Q02(b,e,q,W);b=_.Bm(e)||e==="TRANSFER_STATE_FAILED"||e==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Sw(b.policyEntity)?
void 0:Kmg(t,W,b.videoEntity.lengthSeconds);e==="TRANSFER_STATE_PAUSED_BY_USER"&&t&&!_.S("dl_resume_click_killswitch")&&(b={offlineVideoEndpoint:{videoId:t,action:"ACTION_RESUME"}});t={shortViewCountText:m,publishedTimeText:X,badges:Q,isWatched:I,navigationEndpoint:b,thumbnailOverlays:q}}else t=void 0;return t;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(e=ZfL(W,t))if(b=_.Ob(W,t),q=_.$d9(W,t),b!=="TRANSFER_STATE_UNKNOWN"){t=FwG(e,b,q,t,Jm(W));break a}t=void 0}return t;default:_.JC(new _.o_("Error: entitySelectorType defined but not matched in selector.",
W,e))}}}),
_.Y("design:type",Object)],IJ.prototype,"entityDrivenState",void 0);_.P([_.J({computed:"computeVideoTitleText(data)"}),_.Y("design:type",Object)],IJ.prototype,"videoTitleText",void 0);_.P([_.J({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],IJ.prototype,"hasPlaylistThumbnail",void 0);_.P([_.J({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],IJ.prototype,"computedNavigationEndpoint",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],IJ.prototype,"typographyBump",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],IJ.prototype,"typographyBumpV2",null);_.P([_.vG("#video-title"),_.Y("design:type",HTMLElement)],IJ.prototype,"videoTitle",void 0);_.P([_.vG("#video-title-link"),_.Y("design:type",HTMLElement)],IJ.prototype,"videoTitleLink",void 0);
_.P([_.vG("#thumbnail"),_.Y("design:type",HTMLElement)],IJ.prototype,"thumbnail",void 0);_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],IJ.prototype,"JSC$14016_dismissibleMedia",void 0);_.P([_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IJ.prototype,"lazyLoadMenu",null);_.P([_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IJ.prototype,"immediateLoadMenu",null);
_.P([_.BG("entityDrivenState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"handleReloadDownloadsInfo",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"onDataChanged",null);_.P([_.BG("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"onHiddenChanged",null);
_.P([_.ul("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"onIsDismissedChanged",null);_.P([_.ul("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"metadataColorChanged",null);_.P([_.wz("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IJ.prototype,"onMouseDown",null);
_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],IJ.prototype,"isHovered",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],IJ.prototype,"useAvatar",null);_.P([_.T("data","entitySelectorType"),_.Y("design:type",String),_.Y("design:paramtypes",[])],IJ.prototype,"mediaId",null);_.P([_.h({is:"ytd-rich-grid-media",disableElementRegistration:!0})],IJ);
var sc8=_.Ro()(IJ,"ytd-rich-grid-media",function(){if(xmv!==void 0)return xmv;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xmv=W},{mode:_.Qe("kevlar_poly_si_batch_j072")?1:2});var hVy;var aJ=function(){var W=_.O.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.Z(aJ,_.O);_.r=aJ.prototype;_.r.configureRendererStamper=function(){return{innerMenu:aV,outerMenu:Object.assign({},aV,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.onDataChanged=function(){var W,e=((W=this.data)==null?void 0:W.trackingParams)||"";e&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(e));var t;((t=this.dismissActionToReplayEntity)==null?0:t.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14021_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.JSC$14021_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:fkS})};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$14021_inlinePreviewHoverListener)==null||R4(W)};
_.r.onRendererTap=function(){var W,e,t=(W=this.data)==null?void 0:(e=W.serviceEndpoints)==null?void 0:e[0];_.l(t,_.Ol)&&this.componentBehavior.resolveCommand(t)};
_.r.onDetailsClick=function(W){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;t&&(_.NA(_.LB(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(t))};
_.r.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.Ec.Object.defineProperties(aJ.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.l(W.badge,mGU))){var e,t,b;return[{metadataBadgeRenderer:{label:((e=W.label)==null?void 0:(t=e.runs)==null?void 0:t[0].text)||((b=W.label)==null?void 0:b.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(e=W.accessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.S("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$14021_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
aJ.prototype.onDataChanged=aJ.prototype.onDataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],aJ.prototype,"componentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],aJ.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.Tx),_.Y("design:type",Object)],aJ.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],aJ.prototype,"thumbnail",void 0);_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],aJ.prototype,"JSC$14021_dismissibleMedia",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aJ.prototype,"removeMaxWidth",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aJ.prototype,"insetMetadata",void 0);_.P([_.J(),_.Y("design:type",String)],aJ.prototype,"dismissedContentId",void 0);_.P([_.J({selectorArgs:["dismissedContentId"],selector:nCL}),_.Y("design:type",Object)],aJ.prototype,"dismissActionToReplayEntity",void 0);_.P([_.T("insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"thumbnailObjectFit",null);
_.P([_.T("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"innerMenu",null);_.P([_.T("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"outerMenu",null);_.P([_.J(),_.Y("design:type",Object)],aJ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],aJ.prototype,"miniMode",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aJ.prototype,"onDataChanged",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"shortsBadges",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aJ.prototype,"isShort",null);
_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aJ.prototype,"isSlimShort",null);_.P([_.T("data","isShort"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"computedTitle",null);_.P([_.T("isSlimShort","computedTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"computedAccessibilityLabel",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aJ.prototype,"shouldForce2By3",null);_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aJ.prototype,"isHovered",null);_.P([_.h({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],aJ);
_.H(aJ,"ytd-rich-grid-slim-media",function(){if(hVy!==void 0)return hVy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hVy=W},{mode:_.Qe("kevlar_poly_si_batch_j063")?1:2});var H0k;var KSD;var wZ=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(wZ,_.O);wZ.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
wZ.prototype.onMouseEnter=function(){this.isHovered=!0};
wZ.prototype.onMouseLeave=function(){this.isHovered=!1};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],wZ.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wZ.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],wZ.prototype,"isHovered",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],wZ.prototype,"darkerDarkTheme",void 0);_.P([_.h({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],wZ);
_.H(wZ,"ytd-expand-on-hover-card-renderer",function(){if(KSD!==void 0)return KSD;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KSD=W},{mode:1});var P1h,VlP=function(){if(P1h!==void 0)return P1h;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return P1h=W};_.xD("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var uf=function(){var W=_.O.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(uf,_.O);_.r=uf.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.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"}}}};
_.r.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.r.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.r.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.sr(W):"transparent"}};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.onTap=function(W){var e,t,b=((e=this.data)==null?void 0:e.navigationEndpoint)||((t=this.data)==null?void 0:t.serviceEndpoint);_.l(b,_.Rw)&&(b&&_.ee().resolve(_.tQ).resolveCommand(b,{form:{element:this.hostElement}}),W.preventDefault())};
_.r.computeChannelEndpoint=function(W){return _.l(W,_.Rw)?null:W};
_.r.computeHrefEndpoint=function(W){return _.l(W,_.Rw)?null:this.componentBehavior.computeHref_(W)};
_.r.computeChannelRendererStyle=function(W){return W};
_.r.computeIconSize=function(W){return W?108:136};
_.Ec.Object.defineProperties(uf,{template:{configurable:!0,enumerable:!0,get:function(){return VlP()}}});
uf.prototype.backgroundColorChanged=uf.prototype.backgroundColorChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],uf.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],uf.prototype,"componentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],uf.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uf.prototype,"isDarkTheme",void 0);_.P([_.J({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Y("design:type",String)],uf.prototype,"channelRendererStyle",void 0);_.P([_.J({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"dualButtons",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],uf.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],uf.prototype,"biggerThumbStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uf.prototype,"compactStyle",void 0);_.P([_.ul("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uf.prototype,"backgroundColorChanged",null);_.P([_.h({is:"ytd-channel-renderer",disableElementRegistration:!0})],uf);_.H(uf,"ytd-channel-renderer",function(){return VlP()},{mode:1});var i0Z;var Yho;_.xD("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var cW=function(){var W=_.O.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.S("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.Z(cW,_.O);_.r=cW.prototype;_.r.attached=function(){this.updateInlinePreviewHoverListeners()};
_.r.detached=function(){this.clearInlinePreviewHoverListeners()};
_.r.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.r.computeFirstVideos=function(W,e){return W&&e?W.slice(0,e):[]};
_.r.computeThumbnailWidth=function(W,e){return W?e==="BIG"?500:e==="MASSIVE"?600:e==="MEDIUM"?450:420:360};
_.r.computeThumbnailHeight=function(W,e){return W?e==="BIG"?280:e==="MASSIVE"?337:234:202};
_.r.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$14034_inlinePreviewHoverListener)==null||R4(W)};
_.r.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14034_inlinePreviewHoverListener=EQ({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:njD,thumbnailElement:this.thumbnail})};
_.r.computeHasPlaylistThumbnail=function(W){var e,t;if((((e=W.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((t=W.thumbnailRenderer)==null?0:t.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(e=0;e<W.thumbnailOverlays.length;e++)if(t=void 0,(t=W.thumbnailOverlays[e])==null?0:t.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Ec.Object.defineProperties(cW.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$14034_inlinePreviewHoverListener)==null?0:fz(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
cW.prototype.dataChanged=cW.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],cW.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cW.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],cW.prototype,"displayItemCount",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],cW.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],cW.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cW.prototype,"collections",void 0);_.P([_.J({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],cW.prototype,"hasPlaylistThumbnail",void 0);_.P([_.J(),_.Y("design:type",String)],cW.prototype,"stackThumbnailSize",void 0);_.P([_.vG("ytd-thumbnail"),_.Y("design:type",HTMLElement)],cW.prototype,"thumbnail",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"dataChanged",null);_.P([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],cW.prototype,"isHovered",null);_.P([_.h({is:"ytd-radio-renderer",disableElementRegistration:!0})],cW);
_.H(cW,"ytd-radio-renderer",function(){if(Yho!==void 0)return Yho;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Yho=W},{mode:_.Qe("kevlar_poly_si_batch_j058")?1:2});var zVo;_.xD("itemSectionRenderer","showRenderer","ytd-show-renderer");var vW=function(){return _.O.apply(this,arguments)||this};
_.Z(vW,_.O);vW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vW.prototype.computeThumbnailWidth=function(W){return W?360:246};
vW.prototype.computeUseProminentThumbs=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vW.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],vW.prototype,"isSearch",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Y("design:type",Boolean)],vW.prototype,"useProminentThumbs",void 0);_.P([_.h({is:"ytd-show-renderer",disableElementRegistration:!0})],vW);
_.H(vW,"ytd-show-renderer",function(){if(zVo!==void 0)return zVo;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zVo=W},{mode:1});_.xD("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var GN=function(){var W=_.O.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.Z(GN,_.O);GN.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"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],GN.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],GN.prototype,"isRichGrid",void 0);_.P([_.h({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],GN);
_.H(GN,"ytd-feed-entry-renderer",function(){if(i0Z!==void 0)return i0Z;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return i0Z=W},{mode:1});var Umh;var Dp=function(){return _.O.apply(this,arguments)||this};
_.Z(Dp,_.O);Dp.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.P([_.y(_.fu),_.Y("design:type",Object)],Dp.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Dp.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dp.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.fG,value:3}),_.Y("design:type",Number)],Dp.prototype,"itemsPerRow",void 0);
_.P([_.h({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Dp);
_.H(Dp,"ytd-link-card-renderer",function(){if(Umh!==void 0)return Umh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Umh=W},{mode:1});var LSD;var Sa=function(){return _.O.apply(this,arguments)||this};
_.Z(Sa,_.O);_.r=Sa.prototype;_.r.configureRendererStamper=function(){return{"data.menu":aV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.r.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var e,t=(e=this.data)==null?void 0:e.navigationEndpoint;t&&!_.NA(_.LB(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(t)?_.NA(_.LB(W),this.hostElement,["A"])||_.q2(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t,{}))}};
_.r.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.r.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.r.isNavigationCommand=function(W){return W?_.l(W,_.Sf)||_.l(W,_.z4)||_.l(W,_.KJ)?!0:!1:!1};
Sa.prototype.onRendererTap=Sa.prototype.onRendererTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Sa.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Sa.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Sa.prototype,"data",void 0);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Sa.prototype,"onRendererTap",null);_.P([_.h({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Sa);
_.H(Sa,"ytd-lumiere-promo-item-image-renderer",function(){if(LSD!==void 0)return LSD;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LSD=W},{mode:1});var EfS;var BW=function(){return _.O.apply(this,arguments)||this};
_.Z(BW,_.O);BW.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],BW.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],BW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],BW.prototype,"miniMode",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.fG}),_.Y("design:type",Number)],BW.prototype,"itemsPerRow",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Y("design:type",Boolean)],BW.prototype,"landscapeThumbnail",void 0);_.P([_.h({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],BW);
_.H(BW,"ytd-lumiere-shelf-details-renderer",function(){if(EfS!==void 0)return EfS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return EfS=W},{mode:_.Qe("kevlar_poly_si_batch_j076")?1:2});var Aor;var oJ=function(){return _.O.apply(this,arguments)||this};
_.Z(oJ,_.O);oJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oJ.prototype,"data",void 0);_.P([_.h({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],oJ);
_.H(oJ,"ytd-primetime-promo-details-renderer",function(){if(Aor!==void 0)return Aor;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Aor=W},{mode:1});var NCr;var lf=function(){return _.O.apply(this,arguments)||this};
_.Z(lf,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lf.prototype,"data",void 0);_.P([_.h({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],lf);
_.H(lf,"ytd-panel-show-style-metadata-renderer",function(){if(NCr!==void 0)return NCr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NCr=W},{mode:1});var dmb;var Zp=function(){return _.O.apply(this,arguments)||this};
_.Z(Zp,_.O);_.r=Zp.prototype;_.r.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.r.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.r.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.r.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.r.isNavigationCommand=function(W){return W?_.l(W,_.Sf)||_.l(W,_.z4)||_.l(W,_.KJ)?!0:!1:!1};
_.r.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
Zp.prototype.onPanelTap=Zp.prototype.onPanelTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Zp.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zp.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Zp.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.Y("design:type",Boolean)],Zp.prototype,"modernButtons",void 0);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zp.prototype,"onPanelTap",null);_.P([_.h({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Zp);
_.H(Zp,"ytd-primetime-promo-panel-renderer",function(){if(dmb!==void 0)return dmb;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return dmb=W},{mode:1});_.mM(_.NN(function(W){W=_.Ez(W,{data:{},useFullWidth:!1});var e=W.data,t=W.useFullWidth,b=function(){return e().caption},m=function(){return e().image},q=function(){return _.Mk(e().onTap)};
W={};W=_.ve("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return t()},W));
return _.w("teaser-card-view-model",{class:W},_.w(_.G,{cond:function(){return q()},
then:function(){return _.w(G8b,{className:"ytTeaserCardViewModelLink",command:q,forceNewState:!0,useATagConfig:!0},_.w("div",{class:"ytTeaserCardViewModelImageContainer"},_.w(_.G,{cond:m,then:function(Q){return _.w(_.A_,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.w("p",{class:"ytTeaserCardViewModelCaption"},b))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.Eu,
useFullWidth:_.Eu}});var Wse=new _.W_("RICH_GRID_VIDEO_RENDERER_TOKEN");_.mM(_.NN(function(W){var e=W.data;var t=W.showYtInteractionInContent;var b=function(){return!!e().selectableFeedback};
W=_.R(_.up(!1,void 0,"nblDw"));var m=W.next().value,q=W.next().value;_.nt(function(){var D=_.l(e().primaryButton,_.pU);(D==null?0:D.isToggled)&&q(D.isToggled)});
W=_.Be(function(D){if(!b())return!1;if(m()){var B;var k=(B=e().selectableFeedback)==null?void 0:B.onDeselect}else{var n;k=(n=e().selectableFeedback)==null?void 0:n.onSelect}k&&_.K4(k,{form:{element:D.target}});q(!m());if(D=_.l(e().primaryButton,_.pU))D.isToggled=m();return!1});
var Q=function(){if(!b()){var D,B=(D=e().loggingDirectives)==null?void 0:D.trackingParams;B&&_.wS(_.ee().resolve(_.ky),B)}},X=_.qMc(),I=function(){var D;
return b()?(D=e().selectableFeedback)==null?void 0:D.a11yLabel:void 0},u=function(){return b()?{toggled:m()}:{}},c=_.ee().resolve(_.Wi(Wse)),v={};
return _.w("yt-feedback-item-renderer",{class:_.ve("ytFeedbackItemRendererHost",(v.ytFeedbackItemRendererSelectableFeedback=b,v)),"on:click":W,"on:keydown":X,title:I,"aria-label":I,"aria-pressed":function(){return b()?m():void 0},
tabindex:function(){return b()?0:void 0},
role:function(){return b()?"button":void 0}},_.w("div",{class:"ytFeedbackItemRendererContentContainer"},_.w(_.nU,{data:function(){return e().content}},{videoRenderer:function(D){return _.w(c,{data:D.data,
showYtInteraction:t})},
lockupViewModel:function(D){return _.w(_.bO,{data:D.data,containerType:2})}})),_.w("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.w(_.nU,{data:function(){return e().primaryButton}},{toggleButtonViewModel:function(D){return _.w(_.fU,{data:D.data,
buttonShapeOverrides:u,disableExplicitClickLogging:!0,onToggle:Q})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.Eu,
showYtInteractionInContent:_.Eu}});var $u=function(){var W=_.O.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=_.S("web_no_bottom_margin_for_home_ad_buttons");W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};W.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$14069_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.Z($u,_.O);_.r=$u.prototype;_.r.computeContainerType=function(){return this.useCompactList?3:2};
_.r.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.r.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.r.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.S("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.S("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.r.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]]"}}}}}};
_.r.leave=function(W){W=W.relatedTarget;var e=document.querySelector("ytd-video-preview");W&&e&&_.qN(e).contains(W)||this.removeAndCleanupHighlight()};
_.r.hover=function(){var W;if(!this.highlighted&&(!_.S("web_enable_rich_item_on_focus_effect")||(W=this.data)!=null&&W.onFocusEffect)){var e,t;((e=this.data)==null?void 0:(t=e.onFocusEffect)==null?void 0:t.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W}));var b,m;((b=this.data)==null?void 0:(m=b.onFocusEffect)==null?void 0:
m.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.r.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};
_.r.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14069_unsubscribeFromInlinePreviewIsActive=_.S8(_.Eb(),_.crD,function(e){W.highlighted&&!e&&W.removeAndCleanupHighlight()})};
_.r.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14069_unsubscribeFromInlinePreviewIsActive()};
_.r.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.r.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.r.getBackgroundColor=function(){var W,e,t=(W=this.data)==null?void 0:(e=W.onFocusEffect)==null?void 0:e.onFocusColor;if(t){if(document.documentElement.hasAttribute("dark")&&(t==null?0:t.darkTheme))return _.sr(t==null?void 0:t.darkTheme);if(t==null?0:t.lightTheme)return _.sr(t==null?void 0:t.lightTheme)}};
_.r.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.fc(),e,t,b;W&&((e=this.data)==null?0:e.trackingParams)&&((t=this.data)==null?void 0:t.colIndex)!=null&&((b=this.data)==null?void 0:b.rowIndex)!=null&&_.Le(W,_.$5(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.r.isSlimMediaRenderer=function(W){return!!_.l(W==null?void 0:W.content,_.JFU)||!!_.l(W==null?void 0:W.content,TUP)||!!_.l(W==null?void 0:W.content,_.OW)||!!_.l(W==null?void 0:W.content,eDZ)};
_.r.isPostRenderer=function(){var W,e;return!!_.l((W=this.data)==null?void 0:W.content,hHe)||!!_.l((e=this.data)==null?void 0:e.content,HnB)};
_.r.computeIsGameCardShelf=function(){var W;return!!_.l((W=this.data)==null?void 0:W.content,K5P)};
_.r.computeIsMiniGameCardShelf=function(){var W,e;return!!_.l((W=this.data)==null?void 0:W.content,bVo)||!!_.l((e=this.data)==null?void 0:e.content,m3S)};
_.r.computeIsTeaserCard=function(){var W;return!!_.l((W=this.data)==null?void 0:W.content,m3S)};
_.r.computeIsSelectableFeedbackItem=function(){var W,e;return!((e=_.l((W=this.data)==null?void 0:W.content,_.qXe))==null||!e.selectableFeedback)};
_.r.computeContainsLumierePosters=function(){var W,e;return((e=_.l((W=this.data)==null?void 0:W.content,AiB))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.r.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.l((W=this.data)==null?void 0:W.content,EBy)};
_.r.computeIsLinkCardShelf=function(){var W;return!!_.l((W=this.data)==null?void 0:W.content,Q0e)};
_.r.computeIsReelItemStyleAvatarCircle=function(W){var e;return((e=_.l(W==null?void 0:W.content,_.OW))==null?void 0:e.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.r.computeIsLinkCardFullWidth=function(W,e){var t;return((t=_.l(W==null?void 0:W.content,Q0e))==null?void 0:t.useFullWidth)||e<=2};
_.Ec.Object.defineProperties($u.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&&_.S("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.S("web_enable_rich_item_on_focus_effect")||_.S("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}}});
$u.prototype.richGridHoverHighlightChanged=$u.prototype.richGridHoverHighlightChanged;$u.prototype.observerContainerType=$u.prototype.observerContainerType;$u.prototype.updateIsInFirstColumn=$u.prototype.updateIsInFirstColumn;_.P([_.y(_.fu),_.Y("design:type",Object)],$u.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$u.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],$u.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],$u.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$u.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isPost",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Y("design:type",Boolean)],$u.prototype,"containsLumierePosters",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isSlimMedia",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isGameCardShelf",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isMiniGameCardShelf",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isTeaserCard",void 0);_.P([_.J({computed:"computeIsSelectableFeedbackItem(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isSelectableFeedbackItem",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isShortsGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$u.prototype,"isSlimGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isCompactGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isShortsPanelGrid",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isExpandOnHoverCardShelf",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isLinkCardShelf",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.fG,value:3}),_.Y("design:type",Number)],$u.prototype,"itemsPerRow",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"renderedFromRichGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isInFirstColumn",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"noGutterMargins",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isInlineGroupItem",void 0);_.P([_.J(),_.Y("design:type",Object)],$u.prototype,"insetMetadata",void 0);
_.P([_.J(),_.Y("design:type",Object)],$u.prototype,"noBottomMarginInAds",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$u.prototype,"isShelfItem",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Y("design:type",Boolean)],$u.prototype,"isReelItemStyleAvatarCircle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Y("design:type",Boolean)],$u.prototype,"isLinkCardFullWidth",void 0);
_.P([_.J(),_.Y("design:type",Object)],$u.prototype,"force16By9ThumbnailAspectRatio",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"useCompactList",void 0);_.P([_.J(),_.Y("design:type",String)],$u.prototype,"sizing",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],$u.prototype,"typographyBump",void 0);_.P([_.J(),_.Y("design:type",Number)],$u.prototype,"itemWidth",void 0);_.P([_.J(),_.Y("design:type",Boolean)],$u.prototype,"isHomeShelf",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],$u.prototype,"isHomeGrid",void 0);_.P([_.vG("yt-lockup-view-model"),_.Y("design:type",HTMLElement)],$u.prototype,"lockup",void 0);_.P([_.vG("ytd-rich-grid-media"),_.Y("design:type",HTMLElement)],$u.prototype,"richGridMedia",void 0);_.P([_.vG("ytd-ad-slot-renderer"),_.Y("design:type",HTMLElement)],$u.prototype,"adSlotRenderer",void 0);_.P([_.J({computed:"computeContainerType(useCompactList)"}),_.Y("design:type",Object)],$u.prototype,"containerType",void 0);
_.P([_.J({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.Y("design:type",Object)],$u.prototype,"thumbnailTargetWidth",void 0);_.P([_.T("showYtInteractionOnRichItem"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$u.prototype,"showYtInteractionOnRichGridMedia",null);_.P([_.T("isSelectableFeedbackItem","richGridHoverHighlight"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$u.prototype,"showYtInteractionOnRichItem",null);
_.P([_.T("typographyBump","isHomeGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$u.prototype,"richTypographyBump",null);_.P([_.J({reflectToAttribute:!0}),_.T("isShortsGrid","isCompactGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$u.prototype,"richGridHoverHighlight",null);_.P([_.T("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$u.prototype,"shortsLockupViewModelAspectRatio",null);
_.P([_.T("isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$u.prototype,"shortsLockupViewModelScrimStyle",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$u.prototype,"updateIsInFirstColumn",null);_.P([_.ul("containerType","sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$u.prototype,"observerContainerType",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$u.prototype,"isResponsiveGrid",void 0);_.P([_.J(),_.Y("design:type",Object)],$u.prototype,"lockupExperiments",void 0);_.P([_.ul("richGridHoverHighlight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$u.prototype,"richGridHoverHighlightChanged",null);_.P([_.h({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],$u);
_.e3B=_.Ro()($u,"ytd-rich-item-renderer",function(){if(H0k===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);H0k=W}W=H0k;return W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var Oqv={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var iqQ=_.zq(_.Gv("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var tnB;var ku=function(){var W=_.O.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.standardShelfMargins=_.S("web_rich_grid_standard_shelf_margins");W.isShowMoreHidden=!1;W.isExpanded=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.isShowLessHidden=!0;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};W.nextClick=function(){var e;(e=W.data)!=null&&e.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var e;(e=W.data)!=null&&e.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.Z(ku,_.O);_.r=ku.prototype;
_.r.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:_.Ot("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.r.attached=function(){this.requestElementsPerRow()};
_.r.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var e;((e=this.data.responsiveContainerConfiguration)==null?0:e.responsiveSize)?(W=_.UOz(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.NV(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.NV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.XB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.r.computeSizing=function(){if(!this.isLumiere){var W=_.Ik9(this.data);if(W)return W;if(_.S("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.r.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.r.computeButton=function(W){var e=_.l(W,_.Md);W=Object.assign({},_.l(W,_.Md));return e?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):e};
_.r.onRowIndexChange=function(){var W=_.fc(),e,t;((e=this.data)==null?0:e.trackingParams)&&((t=this.data)==null?void 0:t.rowIndex)!=null&&W&&_.Le(W,_.$5(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.r.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,e=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*e;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
_.r.onUpdateElementsPerRowAction=function(W,e,t,b,m,q){if(this.containerWidth!==q&&(this.containerWidth=q,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&e&&t&&b&&m&&(this.elementsPerRow!==W||this.postsPerRow!==e||this.slimItemsPerRow!==t||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==m)&&(this.elementsPerRow=W,this.postsPerRow=e,this.slimItemsPerRow=t,this.gameCardsPerRow=b,this.miniGameCardsPerRow=m,this.updateItemVisibility())};
_.r.getRichItemRenderers=function(){return _.rz(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.r.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var e=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(b,m){var q;((q=W.data)==null?0:q.isExpanded)?(b.hidden=m>e-1,b.ytRendererBehavior.markDirty()):b.hidden=m>W.currentElementsPerRow-1||m>e-1});
var t=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||t||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||t||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.r.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),e=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(t,b){return Math.max(t,b.getBoundingClientRect().height+e)},0);
this.contents.style.height=W+"px"};
_.r.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.r.focusItem=function(W,e){var t=this.getRichItemRenderers();if(t[W]&&(W=t[W].querySelector(".focus-on-expand"))){if(e){var b;(b=t[this.currentElementsPerRow])==null||b.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.r.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var e;if((e=this.data)==null?0:e.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Uc(this,function(){W.updateItemVisibility()});
var t;if((t=this.data)==null?0:t.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.XB(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),e=0;e<this.data.contents.length;e++)t=_.l(this.data.contents[e],_.nf)||{},t.colIndex=e,t.rowIndex=this.data.rowIndex};
_.r.handleRerenderDownloadsData=function(){_.S("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())};
_.r.blockInlinePreview=function(W){var e=this,t;return _.F(function(b){(t=e.inlinePreviewIsEnabled)&&e.ytdReduxBehavior.dispatch(_.YpS(!1));return b.return(new Promise(function(m){W(function(){t&&e.ytdReduxBehavior.dispatch(_.YpS(!0));m()})}))})};
_.r.expandShelf=function(){var W=this;if(this.data){var e,t=(e=_.l(this.data.showMoreButton,_.Md))==null?void 0:e.trackingParams;t&&_.wS(_.Sg(),t);this.data.isExpanded=!0;this.blockInlinePreview(function(b){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.Tm.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();b()},2,200)})}};
_.r.collapseShelf=function(){var W=this;return _.F(function(e){if(e.nextAddress==1){if(!W.data)return e.return();W.data.isExpanded=!1;return _.a(e,W.blockInlinePreview(function(t){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.Tm.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";t()},2,200)}),2)}_.q2(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.u8(e)})};
_.r.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var e,t;W=((e=this.data)==null?void 0:(t=e.contents)==null?void 0:t.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.r.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.r.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Ot("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.r.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),e=W.length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var t,b;e=((t=this.data)==null?void 0:(b=t.contents)==null?void 0:b.length)||0}var m;W=((m=W[0])==null?void 0:m.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>e?this.firstShownIndex=e-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.r.isSlimMediaShelfRenderer=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!(_.l(b,_.JFU)||_.l(b,TUP)||_.l(b,_.OW)||_.l(b,eDZ))};
_.r.isGameCardShelf=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!_.l(b,K5P)};
_.r.isGnomeShelf=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!_.l(b,_.qXe)};
_.r.isMiniGameCardShelf=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!_.l(b,bVo)||!!_.l(b,m3S)};
_.r.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.r.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.r.isShortsShelf=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!_.l(b,_.OW)||!!_.l(b,eDZ)};
_.r.isPostShelfRenderer=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!(!_.l(b,hHe)&&!_.l(b,HnB))};
_.r.isLumiereShelf=function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf);return!!_.l(t==null?void 0:t.content,AiB)};
_.r.isLumiereShelfWithPosters=function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf),b;return((b=_.l(t==null?void 0:t.content,AiB))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.r.isExpandOnHoverCardShelf=function(){var W,e,t,b=(t=_.l((W=this.data)==null?void 0:(e=W.contents)==null?void 0:e[0],_.nf))==null?void 0:t.content;return!!_.l(b,EBy)};
_.r.computeHasFeaturedBadge=function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.badges)==null?void 0:e[0],_.q8y);return t?t.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.r.computeHasPaygatedFeaturedBadge=function(){var W,e,t=_.l((W=this.data)==null?void 0:(e=W.badges)==null?void 0:e[0],_.q8y);return t?(t==null?void 0:t.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.r.computeHeaderHidden=function(){var W,e,t,b,m,q;return!((W=this.data)==null?0:W.icon)&&!((e=this.data)==null?0:e.title)&&!((t=this.data)==null?0:t.subtitle)&&!((b=this.data)==null?0:b.thumbnail)&&!((m=this.data)==null?0:m.badges)&&!((q=this.data)==null?0:q.menu)};
_.r.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.r.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.r.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.r.computeForce16By9ThumbnailAspectRatio=function(){var W,e;return((W=this.data)==null?void 0:(e=W.responsiveContainerConfiguration)==null?void 0:e.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.r.onSectionReactiveDismissal=function(W,e,t){var b,m;var q=(b=this.data)==null?void 0:(m=b.targetingContext)==null?void 0:m.targetGroupId;this&&q&&e.targetGroupId&&q.includes(e.targetGroupId)?(b=this.rowIndex,W=b===void 0?!1:!(e.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&b<=W)):W=!1;W&&(this.hidden=t)};
_.Ec.Object.defineProperties(ku.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.S("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.previousButton)&&!((e=this.data)==null||!e.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.ee().resolve(_.WS).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return!((W=this.data)==null?0:(e=W.thumbnail)==null?0:(t=e.accessibility)==null?0:(b=t.accessibilityData)==null?0:b.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
ku.prototype.onChildElementFocus=ku.prototype.onChildElementFocus;ku.prototype.handleRerenderDownloadsData=ku.prototype.handleRerenderDownloadsData;ku.prototype.onDataChange=ku.prototype.onDataChange;ku.prototype.onRowIndexChange=ku.prototype.onRowIndexChange;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.Tx),_.Y("design:type",Object)],ku.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ku.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],ku.prototype,"ytdReduxBehavior",void 0);_.P([_.J({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Y("design:type",Object)],ku.prototype,"useResponsiveGrid",void 0);_.P([_.J(),_.Y("design:type",Object)],ku.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Number)],ku.prototype,"standardUnitMinWidth",void 0);_.P([_.J({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],ku.prototype,"elementsPerRow",void 0);_.P([_.J({value:3}),_.Y("design:type",Number)],ku.prototype,"postsPerRow",void 0);_.P([_.J({value:6}),_.Y("design:type",Number)],ku.prototype,"slimItemsPerRow",void 0);_.P([_.J({value:6}),_.Y("design:type",Number)],ku.prototype,"gameCardsPerRow",void 0);
_.P([_.J({value:6}),_.Y("design:type",Number)],ku.prototype,"miniGameCardsPerRow",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"standardShelfMargins",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"isShowMoreHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"isExpanded",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"isInnerShelf",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Y("design:type",Boolean)],ku.prototype,"isShorts",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Y("design:type",Boolean)],ku.prototype,"isLumiere",void 0);_.P([_.J({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],ku.prototype,"hasBoxArtThumbnailStyle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],ku.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Y("design:type",Boolean)],ku.prototype,"hasFeaturedBadge",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Y("design:type",Boolean)],ku.prototype,"hasPaygatedFeaturedBadge",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Y("design:type",Boolean)],ku.prototype,"isHeaderHidden",void 0);_.P([_.J({selector:_.oiv}),_.Y("design:type",Object)],ku.prototype,"allVideosCount",void 0);_.P([_.J({selector:zWg}),_.Y("design:type",Object)],ku.prototype,"allPlaylistCount",void 0);_.P([_.J({selector:fhZ}),_.Y("design:type",Object)],ku.prototype,"haveSmartDownloadsCompleted",void 0);
_.P([_.J({selectorArgs:["entitySelectorType"],selector:function(W,e){if(_.S("kevlar_modern_downloads_page")&&e&&e!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var t=W.entities;switch(e){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":e=_.yJ(t);W=fv(e);var b=_.o1(e);t=_.CG(t);t=_.tm(s9R(b,t,e.length));return{contents:W,subtitle:t};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return t=_.yJ(t),{contents:fv(t)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return t=
_.jw(t),{contents:fv(t)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return t=_.ekQ(t),{contents:fv(t)};default:_.JC(new _.o_("Error: entitySelectorType defined but not matched in selector.",W,e))}}}}),
_.Y("design:type",Object)],ku.prototype,"entityDrivenRichShelfData",void 0);_.P([_.J({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],ku.prototype,"hasTopCtaButton",void 0);_.P([_.J({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],ku.prototype,"hasBottomCtaButton",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Y("design:type",Boolean)],ku.prototype,"force16By9ThumbnailAspectRatio",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"isShowLessHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ku.prototype,"restrictContentsOverflow",void 0);_.P([_.J({selector:_.viG}),_.Y("design:type",Boolean)],ku.prototype,"inlinePreviewIsEnabled",void 0);
_.P([_.J({computed:"computeSizing(data)"}),_.Y("design:type",String)],ku.prototype,"sizing",void 0);_.P([_.J(),_.Y("design:type",Boolean)],ku.prototype,"typographyBump",void 0);_.P([_.J(),_.Y("design:type",Number)],ku.prototype,"itemWidth",void 0);_.P([_.J(),_.Y("design:type",Object)],ku.prototype,"firstShownIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],ku.prototype,"horizontalOffset",void 0);_.P([_.J(),_.Y("design:type",Object)],ku.prototype,"atEnd",void 0);
_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],ku.prototype,"contents",void 0);_.P([_.ul("data.rowIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ku.prototype,"onRowIndexChange",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ku.prototype,"onDataChange",null);
_.P([_.ul("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ku.prototype,"handleRerenderDownloadsData",null);_.P([_.wz("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ku.prototype,"onChildElementFocus",null);_.P([_.J({reflectToAttribute:!0}),_.T("data","isHomePage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ku.prototype,"isTruncated",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ku.prototype,"hideBottomDivider",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ku.prototype,"hasChevronButtons",null);_.P([_.T("firstShownIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ku.prototype,"previousButtonOverride",null);
_.P([_.T("atEnd"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ku.prototype,"nextButtonOverride",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ku.prototype,"isHomePage",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ku.prototype,"thumbnailAriaHidden",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ku.prototype,"initiallyIsExpanded",null);
_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ku.prototype,"entitySelectorType",null);_.P([_.h({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],ku);
_.bZS=_.Ro()(ku,"ytd-rich-shelf-renderer",function(){if(tnB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);tnB=W}W=tnB;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var mbN;_.mM(xTB,"yt-slimline-survey-view-model",{props:{data:_.Eu}});var pj=function(){var W=_.O.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.S("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.Z(pj,_.O);_.r=pj.prototype;_.r.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.r.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.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"}}}};
_.r.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.r.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.r.currentColorChanged=function(){this.updateButtonPalette()};
_.r.computeBackgroundStyle=function(W){if(W&&this.data){var e=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var t=_.qA((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);t&&e.push('background-image: url("'+t+'");')}var b;((b=W.basicColorData)==null?void 0:b.backgroundColor)!==void 0&&e.push("background-color: "+_.h8(W.basicColorData.backgroundColor)+";");return e.join("")}};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.r.getCurrentLogo=function(W,e){if(W)return e?W.darkLogoImage:W.lightLogoImage};
_.r.getCurrentStaticTileImage=function(W,e){if(this.hasStaticTile(W))return W.darkTileImage?e?W.darkTileImage:W.tileImage:W.tileImage};
_.r.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.sr(W.basicColorData.foregroundTitleColor)+";"};
_.r.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.sr(W.basicColorData.foregroundBodyColor)+";"};
_.r.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.sr(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.r.computeBadgeStyle=function(W){if(this.data&&this.data.badgeText&&W&&W.basicColorData&&W.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.sr(W.basicColorData.foregroundActivatedColor)+";"};
_.r.computeDismissIconStyle=function(W){var e,t;if((W==null?0:(e=W.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(W==null?0:(t=W.dismissButtonColorData)==null?0:t.backgroundColor))return"--yt-button-color:"+_.h8(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.h8(W.dismissButtonColorData.backgroundColor)+";"};
_.r.computeOverflowIconStyle=function(W){var e,t;if((W==null?0:(e=W.dismissButtonColorData)==null?0:e.foregroundTitleColor)&&(W==null?0:(t=W.dismissButtonColorData)==null?0:t.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.h8(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.h8(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.h8(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.r.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.r.shouldShowTileSection=function(W,e,t){return!this.shouldExpandLogo(W,e,t)&&e};
_.r.shouldShowExpandedLogoSection=function(W,e,t){return this.shouldExpandLogo(W,e,t)&&W!==void 0&&this.hasLogo(W)};
_.r.shouldExpandLogo=function(W,e,t){return W&&e?!1:t>=2};
_.r.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.r.hasTileLottie=function(W){var e;return!!(W==null?0:(e=W.tileLottie)==null?0:e.url)};
_.r.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.r.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.r.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.r.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.r.hasBackgroundLottie=function(W){var e;return!!(W==null?0:(e=W.backgroundLottie)==null?0:e.url)};
_.r.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,e;(W=this.tileLottieAnimationRef)==null||(e=W.lottieEl)==null||e.play();var t,b;(t=this.backgroundLottieAnimationRef)==null||(b=t.lottieEl)==null||b.play()}};
_.r.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,e;(W=this.tileLottieAnimationRef)==null||(e=W.lottieEl)==null||e.pause();var t,b;(t=this.backgroundLottieAnimationRef)==null||(b=t.lottieEl)==null||b.pause()}};
_.r.pauseLottie=function(){var W,e;(W=this.tileLottieAnimationRef)==null||(e=W.lottieEl)==null||e.pause();var t,b;(t=this.backgroundLottieAnimationRef)==null||(b=t.lottieEl)==null||b.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.r.performPrimaryButtonAction=function(){var W,e,t;((W=this.data)==null?0:(e=W.primaryButton)==null?0:(t=e.buttonRenderer)==null?0:t.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
_.r.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var e;if((e=this.data.primaryButton)==null?0:e.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var t;if((t=this.data.secondaryButton)==
null?0:t.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var b;((b=this.data.primaryButton)==null?0:b.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var m;((m=this.data.secondaryButton)==null?0:m.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.r.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),e,t;if(W.url!==((e=this.tileLottiePlayerProps)==null?void 0:(t=e.animationConfig)==null?void 0:t.path)){var b,m;(b=this.tileLottieAnimationRef)==null||(m=b.lottieEl)==null||m.destroy();var q;this.isOnHoverBehaviorForLottieEnabled=!((q=W.settings)==null?0:q.autoplay);var Q,X;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(X=(Q=W.settings)==null?void 0:Q.autoplay)!=null?X:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.r.getOverflowButton=function(W){return _.l(W.overflowButton,qUh)};
_.r.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),e,t;if(W.url!==((e=this.backgroundLottiePlayerProps)==null?void 0:(t=e.animationConfig)==null?void 0:t.path)){var b,m;(b=this.backgroundLottieAnimationRef)==null||(m=b.lottieEl)==null||m.destroy();var q;this.isOnHoverBehaviorForLottieEnabled=!((q=W.settings)==null?0:q.autoplay);var Q,X;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(X=(Q=W.settings)==null?void 0:Q.autoplay)!=null?X:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.r.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var e;((e=this.backgroundLottieAnimationRef)==null?void 0:e.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.r.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var e;return((e=this.data)==null?0:e.tileLottie)?this.data.tileLottie:{}};
_.r.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var e;return((e=this.data)==null?0:e.backgroundLottie)?this.data.backgroundLottie:{}};
_.r.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.r.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.r.logoWithPadding=function(W){var e,t,b;return(W=(e=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(t=e.thumbnails)==null?void 0:(b=t[0])==null?void 0:b.height)&&W%31===0?!0:!1};
pj.prototype.currentColorChanged=pj.prototype.currentColorChanged;pj.prototype.themeChanged=pj.prototype.themeChanged;pj.prototype.dataChanged=pj.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],pj.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],pj.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],pj.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"primaryButton",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"secondaryButton",void 0);
_.P([_.J({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],pj.prototype,"elementsPerRow",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pj.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pj.prototype,"hasTile",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pj.prototype,"hasMetadata",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pj.prototype,"showLogoImage",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"currentColorData",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Y("design:type",String)],pj.prototype,"bannerStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Y("design:type",String)],pj.prototype,"location",void 0);
_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"tileLottiePlayerProps",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"tileLottieAnimationRef",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"backgroundLottiePlayerProps",void 0);_.P([_.J(),_.Y("design:type",Object)],pj.prototype,"backgroundLottieAnimationRef",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pj.prototype,"useBiggerShowcaseImage",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pj.prototype,"isHideEnclosingAction",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pj.prototype,"dataChanged",null);_.P([_.BG("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pj.prototype,"themeChanged",null);
_.P([_.BG("currentColorData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pj.prototype,"currentColorChanged",null);_.P([_.h({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],pj);
_.H(pj,"ytd-statement-banner-renderer",function(){if(mbN!==void 0)return mbN;var W=document.createElement("template");_.p(W,'\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="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(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>\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="36" 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.overflowButton]]" 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>\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mbN=W},{mode:1});var rgP;var yD=function(){var W=_.O.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.S("web_modern_typography");return W};
_.Z(yD,_.O);yD.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Gv("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Gv("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
yD.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yD.prototype.onDataChanged=yD.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yD.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yD.prototype,"hideShelfHeader",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yD.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],yD.prototype,"disableMouseScroll",void 0);_.P([_.J(),_.Y("design:type",Object)],yD.prototype,"useFloorScrolling",void 0);_.P([_.J(),_.Y("design:type",Object)],yD.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],yD.prototype,"modernTypography",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yD.prototype,"onDataChanged",null);_.P([_.h({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],yD);
_.H(yD,"ytd-reel-shelf-renderer",function(){if(rgP!==void 0)return rgP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rgP=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var qkB;var R3Z=_.NN(function(W){var e=W.data;W=W.useSmallFont;var t={},b={};return _.w("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.w(_.G,{cond:function(){return e().favicon},
then:function(m){return _.w(_.A_,{data:m,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.w("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.w(_.WL,{text:function(){return e().title},
className:_.ve("yt-channel-external-link-view-model-wiz__title",(t["yt-channel-external-link-view-model-wiz__title--title-small-font"]=W,t)),ellipsisTruncate:!0,userInput:!0}),_.w(_.WL,{text:function(){return e().link},
className:_.ve("yt-channel-external-link-view-model-wiz__link",(b["yt-channel-external-link-view-model-wiz__link--link-small-font"]=W,b)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
R3Z.idomCompat=!0;_.mM(R3Z,"yt-channel-external-link-view-model",{props:{data:_.Eu,useSmallFont:_.Eu}});_.xD("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var ja=function(){var W=_.O.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.Z(ja,_.O);_.r=ja.prototype;_.r.refit=function(){var W=this;_.hc(function(){_.Qx(W.hostElement,"yt-refit-popups-action")});
_.Uc(this,function(){_.Qx(W.hostElement,"yt-refit-popups-action")})};
_.r.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.sT("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.r.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"};
_.r.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.r.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"}}}};
_.r.computeEmailHref=function(W){return"mailto:"+W};
_.r.computeSafeUrl=function(W){if(W)return _.lF(W)};
_.r.linkEndpoint=function(W){return _.l(W.onTap,_.OD)};
_.r.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.r.onYtServiceRequestCompleted=function(W){var e;if((e=W.detail.data)==null?0:e.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var t;if((t=W.detail.data)==null?0:t.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.r.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$14175_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var e=_.l(this.metadata.onBusinessEmailRevealClickCommand,_.OD);e&&this.ytComponentBehavior.resolveCommand(e,{form:W})}}};
_.r.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Ec.Object.defineProperties(ja.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.l((W=this.data)==null?void 0:W.metadata,ezS)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.l(this.metadata.businessEmailRevealButton,_.kb)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.l(this.metadata.learnMoreOnTap,_.OD)}}});
ja.prototype.onYtServiceRequestCompleted=ja.prototype.onYtServiceRequestCompleted;ja.prototype.businessEmailMetadataChanged=ja.prototype.businessEmailMetadataChanged;ja.prototype.refit=ja.prototype.refit;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ja.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],ja.prototype,"JSC$14175_captchaTextarea",void 0);_.P([_.J(),_.Y("design:type",Object)],ja.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ja.prototype,"revealButtonClass",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ja.prototype,"metadata",null);
_.P([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ja.prototype,"revealButton",null);_.P([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ja.prototype,"channelDisplayUrl",null);_.P([_.BG("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ja.prototype,"refit",null);_.P([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ja.prototype,"formattedDescription",null);
_.P([_.T("metadata","learnMoreCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ja.prototype,"shouldRendereVerifiedPhoneStatus",null);_.P([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ja.prototype,"learnMoreCommand",null);_.P([_.J(),_.Y("design:type",String)],ja.prototype,"businessEmailDisplayState",void 0);_.P([_.J(),_.Y("design:type",String)],ja.prototype,"businessEmail",void 0);
_.P([_.J(),_.Y("design:type",String)],ja.prototype,"businessEmailErrorMessage",void 0);_.P([_.BG("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ja.prototype,"businessEmailMetadataChanged",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ja.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],ja);
_.H(ja,"ytd-about-channel-renderer",function(){if(qkB!==void 0)return qkB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qkB=W},{mode:1});var QOh;var Cj=function(){return _.O.apply(this,arguments)||this};
_.Z(Cj,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Cj.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Cj);
_.H(Cj,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(QOh!==void 0)return QOh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QOh=W},{mode:1});var Fsb;var nj=function(){return _.O.apply(this,arguments)||this};
_.Z(nj,_.O);nj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nj.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],nj.prototype,"aligment",void 0);_.P([_.h({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],nj);
_.H(nj,"ytd-channel-list-sub-menu-renderer",function(){if(Fsb!==void 0)return Fsb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Fsb=
W},{mode:1});var XyP;var fj=function(){return _.O.apply(this,arguments)||this};
_.Z(fj,_.O);fj.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fj.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],fj);
_.H(fj,"ytd-channel-sub-menu-renderer",function(){if(XyP!==void 0)return XyP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XyP=W},{mode:1});var IPv;var aPk;var gZ=function(){var W=_.O.apply(this,arguments)||this;W.isCompact=!1;return W};
_.Z(gZ,_.O);_.Ec.Object.defineProperties(gZ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,e;return((e=_.l((W=this.data)==null?void 0:W.endpoint,_.KJ))==null?void 0:e.target)==="TARGET_NEW_WINDOW"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],gZ.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gZ.prototype,"isCompact",void 0);_.P([_.T("isCompact"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gZ.prototype,"thumbnailWidth",null);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gZ.prototype,"openNewWindow",null);_.P([_.h({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],gZ);
_.H(gZ,"ytd-media-lockup-renderer",function(){if(aPk!==void 0)return aPk;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aPk=W},{mode:1});var wyb;var TN=function(){return _.O.apply(this,arguments)||this};
_.Z(TN,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],TN.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TN.prototype,"data",void 0);_.P([_.h({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],TN);
_.H(TN,"ytd-structured-description-channel-lockup-renderer",function(){if(wyb!==void 0)return wyb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return wyb=W},{mode:1});var u9P;var J1=function(){var W=_.O.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.S("web_modern_collections_v2");W.collectionsStackColor=_.S("modernize_structured_description_playlist_lockups_v2");return W};
_.Z(J1,_.O);J1.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:_.S("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Ec.Object.defineProperties(J1.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(e=W.thumbnail)==null?void 0:e.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(b=t.thumbnail)==null?void 0:b.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(m=this.data)==null?void 0:(q=m.thumbnail)==
null?void 0:q.vibrantColorPalette:void 0}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],J1.prototype,"componentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],J1.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],J1.prototype,"showSidePanelThumbnailOverlay",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],J1.prototype,"isCompact",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],J1.prototype,"collections",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],J1.prototype,"collectionsStackColor",void 0);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],J1.prototype,"twoLineTitle",null);
_.P([_.T("data","collections","collectionsStackColor"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],J1.prototype,"collectionStack",null);_.P([_.h({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],J1);
_.H(J1,"ytd-structured-description-playlist-lockup-renderer",function(){if(u9P!==void 0)return u9P;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return u9P=W},{mode:1});var cgb;var xu=function(){return _.O.apply(this,arguments)||this};
_.Z(xu,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],xu.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xu.prototype,"data",void 0);_.P([_.h({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],xu);
_.H(xu,"ytd-structured-description-video-lockup-renderer",function(){if(cgb!==void 0)return cgb;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cgb=W},{mode:2});var Os=function(){return _.O.apply(this,arguments)||this};
_.Z(Os,_.O);
Os.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Os.prototype,"data",void 0);_.P([_.h({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Os);
_.H(Os,"ytd-compact-infocard-renderer",function(){if(IPv!==void 0)return IPv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return IPv=W},{mode:1});var v8U;var Me=function(){var W=_.O.apply(this,arguments)||this;W.useModernCollectionsV2=_.S("web_modern_collections_v2");return W};
_.Z(Me,_.O);Me.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Ec.Object.defineProperties(Me.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Me.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Me.prototype,"ytdReduxBehavior",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],Me.prototype,"isGridViewEnabled",void 0);
_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Me.prototype,"watchFeedBigThumbs",null);_.P([_.T("isGridViewEnabled","data"),_.J({reflectToAttribute:!0,value:"168"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Me.prototype,"thumbnailWidth",null);_.P([_.T("isGridViewEnabled","data"),_.J({reflectToAttribute:!0,value:"94"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Me.prototype,"customThumbnailSize",null);
_.P([_.J(),_.Y("design:type",Object)],Me.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Me.prototype,"useModernCollectionsV2",void 0);_.P([_.h({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Me);
_.H(Me,"ytd-compact-playlist-renderer",function(){if(v8U!==void 0)return v8U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return v8U=W},{mode:1});var Gcy;var ss=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.Z(ss,_.O);_.r=ss.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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"}}}};
_.r.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.r.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.r.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
ss.prototype.dataChanged=ss.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],ss.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ss.prototype,"actionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],ss.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],ss.prototype,"hideThumbnail",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Y("design:type",String)],ss.prototype,"viewStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ss.prototype,"darkerDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ss.prototype,"roundedContainer",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ss.prototype,"dataChanged",null);_.P([_.h({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ss);
_.H(ss,"ytd-compact-promoted-item-renderer",function(){if(Gcy!==void 0)return Gcy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Gcy=W},{mode:1});var Db8;var h1=function(){var W=_.O.apply(this,arguments)||this;W.collections=_.S("web_modern_collections_v2");return W};
_.Z(h1,_.O);h1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
h1.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
h1.prototype.onYtNavigate=function(W,e){var t=this;if(e.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",e)){var b=this.get("watchEndpoint.videoId",e.endpoint),m=_.Qx(this.hostElement,"yt-get-current-video-id-action")[0];_.S("kevlar_mix_handle_first_endpoint_different")&&b&&m&&b!==m||(W.stopPropagation(),_.bJ().getPlayerPromise().then(function(q){if(q.getPlayerState()===0&&t.data.secondaryNavigationEndpoint)var Q=t.data.secondaryNavigationEndpoint;else{Q=
Object.assign({},e.endpoint);var X=_.l(Q.commandMetadata,_.ez);X&&(q=Math.floor(q.getCurrentTime()),X.url=_.Ut(X.url,{t:q}),!_.S("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(X=_.l(Q,_.z4)))&&(X.startTimeSeconds=q)}_.q2(t.hostElement,"yt-navigate",{endpoint:Q})}))}};
_.Ec.Object.defineProperties(h1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(e=W.thumbnail)==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:(t=this.data)==null?void 0:(b=t.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(m=this.data)==null?void 0:(q=m.thumbnail)==null?void 0:q.darkColorPalette,experimentEnabled:this.collections}}}});
h1.prototype.onYtNavigate=h1.prototype.onYtNavigate;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],h1.prototype,"ytEndpointBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],h1.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.Hl),_.Y("design:type",Object)],h1.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],h1.prototype,"isGridViewEnabled",void 0);_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],h1.prototype,"watchFeedBigThumbs",null);
_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],h1.prototype,"thumbnailWidth",null);_.P([_.J(),_.Y("design:type",Object)],h1.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],h1.prototype,"collections",void 0);_.P([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],h1.prototype,"collectionStack",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],h1.prototype,"onYtNavigate",null);_.P([_.h({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],h1);
_.H(h1,"ytd-compact-radio-renderer",function(){if(Db8!==void 0)return Db8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Db8=W},{mode:1});var Skr;var HW=function(){return _.O.apply(this,arguments)||this};
_.Z(HW,_.O);HW.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
HW.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.P([_.J(),_.Y("design:type",Object)],HW.prototype,"data",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],HW.prototype,"rendererBehavior",void 0);_.P([_.J({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],HW.prototype,"rendererStyle",void 0);_.P([_.h({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],HW);
_.H(HW,"ytd-compact-text-promo-renderer",function(){if(Skr!==void 0)return Skr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Skr=W},{mode:1});var Bee;var Kj=function(){var W=_.O.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.Z(Kj,_.O);_.r=Kj.prototype;_.r.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"}}}};
_.r.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.q2(this.hostElement,"yt-disable-lockup-interaction"):_.q2(this.hostElement,"yt-enable-lockup-interaction"))};
_.r.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.r.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.r.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.r.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.Ec.Object.defineProperties(Kj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Kj.prototype.disableInteractionChanged=Kj.prototype.disableInteractionChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Kj.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],Kj.prototype,"ytdLockupBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Y("design:type",Boolean)],Kj.prototype,"metaBlockEmpty",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],Kj.prototype,"isGridViewEnabled",void 0);_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kj.prototype,"watchFeedBigThumbs",null);
_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Kj.prototype,"thumbnailWidth",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Kj.prototype,"isShortsStyle",void 0);_.P([_.J(),_.Y("design:type",Object)],Kj.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Y("design:type",Boolean)],Kj.prototype,"hasOneLineTitle",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Kj.prototype,"hideThumbnail",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Kj.prototype,"forceOneLineTitle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Y("design:type",Boolean)],Kj.prototype,"disableInteraction",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Kj.prototype,"musicMetadataVideoLockup",void 0);
_.P([_.ul("disableInteraction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kj.prototype,"disableInteractionChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kj.prototype,"shouldShowTopBadges",null);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Kj.prototype,"topBadges",null);
_.P([_.T("shouldShowTopBadges","data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Kj.prototype,"inlineMetadataBadges",null);_.P([_.T("shouldShowTopBadges"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Kj.prototype,"shouldShowBadgesBelowMetadata",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kj.prototype,"compactTitleClass",null);_.P([_.h({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Kj);
_.H(Kj,"ytd-compact-video-renderer",function(){if(Bee!==void 0)return Bee;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Bee=W},{mode:_.Qe("kevlar_poly_si_batch_j067")?1:2});var o8h;_.xD("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var PW=function(){return _.O.apply(this,arguments)||this};
_.Z(PW,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],PW.prototype,"data",void 0);_.P([_.h({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],PW);
_.H(PW,"ytd-counterfactual-renderer",function(){if(o8h!==void 0)return o8h;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return o8h=W},{mode:1});var lPy;var VD=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;return W};
_.Z(VD,_.O);VD.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.ee().resolve(_.tQ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
VD.prototype.computeHidden=function(W){return!!W};
_.Ec.Object.defineProperties(VD.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}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],VD.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Y("design:type",Object)],VD.prototype,"hidden",void 0);_.P([_.T("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],VD.prototype,"label",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VD.prototype,"value",null);
_.P([_.h({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],VD);
_.H(VD,"ytd-dropdown-item-renderer",function(){if(lPy!==void 0)return lPy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lPy=W},{mode:1});var ZZB;var $bU;var Yu=function(){return _.O.apply(this,arguments)||this};
_.Z(Yu,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yu.prototype,"data",void 0);_.P([_.J({computed:"getSimpleString(data.label)"}),_.Y("design:type",String)],Yu.prototype,"label",void 0);_.P([_.h({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Yu);
_.H(Yu,"ytd-navigation-dropdown-item-renderer",function(){if($bU!==void 0)return $bU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $bU=W},{mode:1});var zN=function(){var W=_.O.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.Z(zN,_.O);_.r=zN.prototype;_.r.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"}}}};
_.r.open=function(){this.inputEl.open()};
_.r.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.r.dataChanged=function(){this.reset()};
_.r.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("value-changed",this.value))};
_.r.stopPropagation=function(W){W.stopPropagation()};
_.r.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.r.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,e=this.data.entries.length;W<e;W++){var t=this.data.entries[W],b;for(b in t)if(t.hasOwnProperty(b)){var m=t[b];if("isSelected"in m&&m.isSelected)return"stringValue"in m?m.stringValue||"":"int32Value"in m?m.int32Value||0:0}}return null};
_.r.updateValueFromBinding=function(W){this.value=W.detail.value};
_.Ec.Object.defineProperties(zN.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 W=0,e=this.data.entries.length;W<e;W++){var t=this.data.entries[W],b;for(b in t)if(t.hasOwnProperty(b)){var m=t[b];if("isSelected"in m&&m.isSelected&&"label"in m)return this.ytRendererBehavior.getSimpleString(m.label)}}return null}}});
zN.prototype.autoSizeLabel=zN.prototype.autoSizeLabel;zN.prototype.stopPropagation=zN.prototype.stopPropagation;zN.prototype.valueChangedForBinding=zN.prototype.valueChangedForBinding;zN.prototype.dataChanged=zN.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zN.prototype,"ytRendererStamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zN.prototype,"disabled",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"value",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"noLabelFloat",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zN.prototype,"noUnderline",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],zN.prototype,"theme",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zN.prototype,"usePrimaryColor",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zN.prototype,"hasBackground",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"verticalAlign",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"autosize",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"minAutosizeWidth",void 0);_.P([_.J(),_.Y("design:type",Object)],zN.prototype,"autosizeFont",void 0);
_.P([_.vG("#entries"),_.Y("design:type",Object)],zN.prototype,"entries",void 0);_.P([_.vG("#input"),_.Y("design:type",Object)],zN.prototype,"inputEl",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zN.prototype,"dataChanged",null);_.P([_.BG("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zN.prototype,"valueChangedForBinding",null);
_.P([_.wz("iron-overlay-opened"),_.wz("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],zN.prototype,"stopPropagation",null);_.P([_.wz("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zN.prototype,"autoSizeLabel",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zN.prototype,"label",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],zN);
_.H(zN,"ytd-dropdown-renderer",function(){if(ZZB!==void 0)return ZZB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZZB=W},{mode:1});var kcb;var Us=function(){var W=_.O.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.Z(Us,_.O);Us.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"}}}};
Us.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Us.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Us.prototype.computeViewAllHidden=function(W,e){return W||!e.viewAllEndpoint};
Us.prototype.fillRestIfNoShowMore=Us.prototype.fillRestIfNoShowMore;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],Us.prototype,"ytLazyListBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Us.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Us.prototype,"isConstrainedList",void 0);_.P([_.BG("data","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Us.prototype,"fillRestIfNoShowMore",null);_.P([_.h({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Us);
_.H(Us,"ytd-expanded-shelf-contents-renderer",function(){if(kcb!==void 0)return kcb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kcb=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var pyr;var Lj=function(){return _.O.apply(this,arguments)||this};
_.Z(Lj,_.O);Lj.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Lj.prototype,"data",void 0);_.P([_.h({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Lj);
_.H(Lj,"ytd-feed-channel-filter-header-renderer",function(){if(pyr!==void 0)return pyr;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return pyr=W},{mode:1});var ygS;var jOk;var Cok;var Es=function(){return _.O.apply(this,arguments)||this};
_.Z(Es,_.O);_.r=Es.prototype;_.r.onClick=function(W){var e,t=(e=this.data)==null?void 0:e.sectionEndpoint;!_.NA(_.LB(W),this.hostElement,["A".toString()])&&t&&_.q2(this.hostElement,"yt-navigate",{endpoint:t})};
_.r.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.r.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.r.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.r.getHeaderAsLinkClass=function(W){var e=[],t;(W==null?0:(t=W.headerIcon)==null?0:t.iconType)&&e.push("header-link-active");return e.join(" ")};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Es.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Es.prototype,"data",void 0);
_.P([_.J({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Es.prototype,"hasSectionEndpoint",void 0);_.P([_.J({computed:"computeShowHeaderAsLink(data)"}),_.Y("design:type",Boolean)],Es.prototype,"showHeaderAsLink",void 0);_.P([_.J({computed:"computeShowSubheaderAsLink(data)"}),_.Y("design:type",Boolean)],Es.prototype,"showSubheaderAsLink",void 0);_.P([_.h({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Es);
_.H(Es,"ytd-medical-panel-section-renderer",function(){if(Cok!==void 0)return Cok;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Cok=W},{mode:1});var A1=function(){var W=_.O.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.Z(A1,_.O);
A1.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]]"}}}}}};
A1.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
A1.prototype.dataChanged=A1.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],A1.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],A1.prototype,"isExpanded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A1.prototype,"roundedContainer",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A1.prototype,"skipRoundingTop",void 0);_.P([_.J(),_.Y("design:type",Object)],A1.prototype,"toggleExpandableSection",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A1.prototype,"dataChanged",null);_.P([_.h({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],A1);
_.H(A1,"ytd-medical-panel-content-renderer",function(){if(jOk!==void 0)return jOk;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return jOk=W},{mode:1});_.xD("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Ne=function(){var W=_.O.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.Z(Ne,_.O);
Ne.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"}}}};
Ne.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
Ne.prototype.onClick=function(W){var e,t=(e=this.data)==null?void 0:e.headerEndpoint;!_.NA(_.LB(W),this.hostElement,["BUTTON".toString()])&&t&&this.ytComponentBehavior.resolveCommand(t)};
_.Ec.Object.defineProperties(Ne.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((e=this.data)==null?0:e.title)}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Ne.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ne.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ne.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"amsterdamEnabled",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Object)],Ne.prototype,"hasTitle",void 0);
_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ne.prototype,"background",null);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ne.prototype,"titleStyle",null);
_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ne.prototype,"showLinkIcon",null);_.P([_.J(),_.Y("design:type",String)],Ne.prototype,"linkIcon",void 0);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ne.prototype,"hideDivider",null);
_.P([_.J({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,e){W=_.I1(W.entities,"dismissState",e);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Y("design:type",Object)],Ne.prototype,"isDismissed",void 0);_.P([_.h({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Ne);
_.H(Ne,"ytd-info-panel-container-renderer",function(){if(ygS!==void 0)return ygS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ygS=W},{mode:1});var n8v;_.xD("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var dZ=function(){var W=_.O.apply(this,arguments)||this;W.modernTypography=_.S("web_modern_typography");return W};
_.Z(dZ,_.O);dZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dZ.prototype.computeStyle=function(W){return W?W:""};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Y("design:type",String)],dZ.prototype,"titleStyle",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dZ.prototype,"modernTypography",void 0);_.P([_.h({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],dZ);
_.H(dZ,"ytd-item-section-header-renderer",function(){if(n8v!==void 0)return n8v;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return n8v=W},{mode:1});var fPN;var g8P,TeZ=function(){return g8P!==void 0?g8P:g8P=document.createElement("template")};
document.head.appendChild(TeZ().content);var JgS;_.W$=new _.W_("VOTING_ANIMATION_CONTROLLER_TOKEN");var OZ8=_.NN(function(W){var e=W.data;var t=_.zT("div"),b=_.zT("div");W=_.R(_.up("VOTE_STATUS_NONE",void 0,"FVF7mc"));var m=W.next().value,q=W.next().value,Q=_.D_(LhQ,function(){var D;return(D=e())==null?void 0:D.entityKey}),X=_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation");
_.nt(function(){var D;((D=e().initialState)==null?0:D.status)&&q(e().initialState.status)});
var I=function(){var D,B,k=(B=(D=e().initialState)==null?void 0:D.votes)!=null?B:0,n;D=(n=e().initialState)==null?void 0:n.status;return D==="VOTE_STATUS_UPVOTED"?k-1:D==="VOTE_STATUS_DOWNVOTED"?k+1:k},u=function(){return m()==="VOTE_STATUS_UPVOTED"?I()+1:m()==="VOTE_STATUS_DOWNVOTED"?I()-1:I()},c=function(D){var B=D?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
q(B);var k=u(),n=_.ee().resolve(_.Wi(_.W$)),f=Q();f&&(D&&(f==null?0:f.upvoteDefaultButtonOnTap)?_.K4(f.upvoteDefaultButtonOnTap,{form:{element:t.value},disableClickTracking:!0}):(f==null?0:f.upvoteToggledButtonOnTap)&&_.K4(f.upvoteToggledButtonOnTap,{form:{element:t.value},disableClickTracking:!0}));var M;D=(M=f==null?void 0:f.enableOptimisticReordering)!=null?M:e().enableOptimisticReordering;X&&n&&e().itemId&&D&&xb8(n,e().itemId,k,B)},v=function(D){var B=D?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
q(B);var k=u(),n=_.ee().resolve(_.Wi(_.W$)),f=Q();f&&(D&&(f==null?0:f.downvoteDefaultButtonOnTap)?_.K4(f.downvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(f==null?0:f.downvoteToggledButtonOnTap)&&_.K4(f.downvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var M;D=(M=f==null?void 0:f.enableOptimisticReordering)!=null?M:e().enableOptimisticReordering;X&&n&&e().itemId&&D&&xb8(n,e().itemId,k,B)};
W={};W=_.ve("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return e().isDisabled},W));
return _.w("voting-view-model",{class:"ytVotingViewModelHost"},_.w("div",{el:t},_.w(_.nU,{data:function(){var D=_.l(e().upvoteButton,_.pU);return{toggleButtonViewModel:Object.assign({},D,{isToggled:m()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(D){return _.w(_.fU,{data:D.data,
onToggle:c})}})),_.w("div",{class:W},function(){var D,B,k;
return m()==="VOTE_STATUS_UPVOTED"?(D=e().initialState)==null?void 0:D.compactVotesUpvoted:m()==="VOTE_STATUS_DOWNVOTED"?(B=e().initialState)==null?void 0:B.compactVotesDownvoted:(k=e().initialState)==null?void 0:k.compactVotes}),_.w("div",{el:b},_.w(_.nU,{data:function(){var D=_.l(e().downvoteButton,_.pU);
return{toggleButtonViewModel:Object.assign({},D,{isToggled:m()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(D){return _.w(_.fU,{data:D.data,
onToggle:v})}})))},"Ib");_.mM(_.NN(function(W){var e=W.data;return _.w("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.w("div",{class:_.ve("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.w(_.nU,{data:function(){return e().actions}},{votingViewModel:OZ8})))},"Jb"),"engagement-bar-view-model",{props:{data:_.Eu,
className:_.Eu}});var eM=function(){var W=_.O.apply(this,arguments)||this;W.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.Z(eM,_.O);_.r=eM.prototype;_.r.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"}}}};
_.r.canReorderChanged=function(){this.persistentDragHandle=_.S("kevlar_playlist_drag_handles")&&this.canReorder};
_.r.onDrag=function(){if(this.thumbnail){var W=_.rz(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.r.onMenuOverlayChanged=function(W,e){this.menuOpened=e};
_.r.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.r.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.r.onContentsTap=function(W){var e,t=(e=this.data)==null?void 0:e.serviceEndpoints;if(t&&t.length===1&&_.l(t[0],aFS)&&!_.NA(_.LB(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(t[0]);else{var b;(e=(b=this.data)==null?void 0:b.navigationEndpoint)&&_.S("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Mnb(_.ee().resolve(_.Kn),e):(_.G3().playlistSuggestionsShelfActivation=
!0,_.sON(_.ee().resolve(_.Kn),e)):e&&!_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.S("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.q2(this.hostElement,"yt-navigate",{endpoint:e}):this.ytComponentBehavior.resolveCommand(e))}};
_.r.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.r.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=X2G(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))}};
_.r.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.r.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.r.dataChanged=function(){if(this.data){var W,e,t,b=((W=this.downloadRenderData)==null?void 0:W.badges)&&((e=this.downloadRenderData)==null?void 0:e.badges)!==((t=this.data)==null?void 0:t.badges),m,q,Q;W=((m=this.downloadRenderData)==null?void 0:m.thumbnailOverlays)&&((q=this.downloadRenderData)==null?void 0:q.thumbnailOverlays)!==((Q=this.data)==null?void 0:Q.thumbnailOverlays);(!this.downloadRenderData||b||W)&&this.downloadStateChanged()}};
_.r.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,e,t=(W=this.data.menu)==null?void 0:(e=W.menuRenderer)==null?void 0:e.items;if(t)for(W=_.R(t),e=W.next();!e.done;e=W.next())if(e=e.value,t=void 0,_.l((t=e.menuServiceItemRenderer)==null?void 0:t.serviceEndpoint,_.Jr)){var b=t=void 0,m=void 0;e=(t=e)==null?void 0:(b=t.menuServiceItemRenderer)==null?void 0:(m=b.serviceEndpoint)==null?void 0:m.playlistEditEndpoint;m=b=void 0;if(t=(b=e)==null?void 0:(m=b.actions)==null?void 0:
m[0])b=void 0,t.setVideoId=(b=this.data)==null?void 0:b.setVideoId;m=b=t=void 0;if(e=(t=e)==null?void 0:(b=t.clientActions)==null?void 0:(m=b[0])==null?void 0:m.playlistRemoveVideosAction)t=void 0,e.setVideoIds=[(t=this.data)==null?void 0:t.setVideoId]}}};
_.Ec.Object.defineProperties(eM.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
eM.prototype.setVideoIdChanged=eM.prototype.setVideoIdChanged;eM.prototype.dataChanged=eM.prototype.dataChanged;eM.prototype.downloadStateChanged=eM.prototype.downloadStateChanged;eM.prototype.onMenuOverlayChanged=eM.prototype.onMenuOverlayChanged;eM.prototype.canReorderChanged=eM.prototype.canReorderChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],eM.prototype,"ytdReduxBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],eM.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],eM.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],eM.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"canReorder",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"menuOpened",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"handleIsHovered",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"persistentDragHandle",void 0);_.P([_.J(),_.Y("design:type",Object)],eM.prototype,"downloadRenderData",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],eM.prototype,"styleType",void 0);_.P([_.J({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],eM.prototype,"thumbnailWidth",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"isDownloads",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eM.prototype,"playlistVotingAnimationEnabled",void 0);
_.P([_.J({selector:Mf,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"downloadProgress",void 0);_.P([_.J(),_.Y("design:type",Number)],eM.prototype,"relativeDateReference",void 0);_.P([_.J({selector:_.xg,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"transferState",void 0);_.P([_.J({selector:Tvv,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"downloadState",void 0);
_.P([_.J({selector:SWD,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"offlinePolicyAction",void 0);_.P([_.J({selector:BvQ,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.P([_.J({selector:lhG,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],eM.prototype,"entityInfo",void 0);_.P([_.J({selector:_.gO}),_.Y("design:type",Boolean)],eM.prototype,"miniplayerIsActive",void 0);
_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],eM.prototype,"playlistVideoId",null);_.P([_.vG("#thumbnail"),_.Y("design:type",Object)],eM.prototype,"thumbnail",void 0);_.P([_.BG("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"canReorderChanged",null);
_.P([_.wz("yt-menu-overlay-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Boolean]),_.Y("design:returntype")],eM.prototype,"onMenuOverlayChanged",null);_.P([_.BG("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"downloadStateChanged",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"dataChanged",null);_.P([_.BG("data.setVideoId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"setVideoIdChanged",null);_.P([_.h({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],eM);
_.H(eM,"ytd-playlist-video-renderer",function(){if(JgS!==void 0)return JgS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(TeZ().content.cloneNode(!0),W.content.firstChild);return JgS=W},{mode:1});var h38;var tT=function(){return _.O.apply(this,arguments)||this};
_.Z(tT,_.O);_.P([_.J(),_.Y("design:type",Object)],tT.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tT.prototype,"rendererBehavior",void 0);_.P([_.h({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],tT);
_.H(tT,"ytd-premium-browse-footer-renderer",function(){if(h38!==void 0)return h38;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return h38=W},{mode:1});var HZb;var bH=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.Z(bH,_.O);_.r=bH.prototype;_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.computeHeaderLogoThumbnail=function(W,e){if(W)return e?W.darkLogo:W.lightLogo};
_.r.computeHeaderLogoHeight=function(W,e){var t,b,m;return(W=(t=this.computeHeaderLogoThumbnail(W,e))==null?void 0:(b=t.thumbnails)==null?void 0:(m=b[0])==null?void 0:m.height)&&W%31===0?"31":"24"};
_.r.computeHeaderLogoMarginBottom=function(W,e){return this.computeHeaderLogoHeight(W,e)==="24"?"0":"-7"};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],bH.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],bH.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],bH.prototype,"isDarkTheme",void 0);_.P([_.J({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Y("design:type",Object)],bH.prototype,"themeLogo",void 0);
_.P([_.J({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Y("design:type",String)],bH.prototype,"logoHeight",void 0);_.P([_.J({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Y("design:type",String)],bH.prototype,"logoMarginBottom",void 0);_.P([_.h({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],bH);
_.H(bH,"ytd-primetime-promo-header-renderer",function(){if(HZb!==void 0)return HZb;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HZb=W},{mode:1});var KsZ;var Vno=_.NN(function(W){var e=_.Be(function(m){var q;(q=W.onClick)==null||q.call(W,m)}),t={},b={};
return _.w("yt-shelf-header-layout",{class:_.ve("shelf-header-layout-wiz",(t["shelf-header-layout-wiz--disable-horizontal-padding"]=W.disableHorizontalPadding,t["shelf-header-layout-wiz--disable-vertical-padding"]=W.disableVerticalPadding,t["shelf-header-layout-wiz--responsive"]=W.useResponsiveLayout,t["shelf-header-layout-wiz--narrow"]=function(){var m,q;return((m=W.useResponsiveLayout)==null?void 0:m.call(W))&&((q=W.forceSmallLayout)==null?void 0:q.call(W))},t["shelf-header-layout-wiz--is-overlay"]=
W.isOverlay,t["shelf-header-layout-wiz--tappable"]=!!W.onClick,t)),
"on:click":e,tabindex:W.onClick?0:void 0},_.w(_.G,{cond:W.leadingIcon,then:function(m){return _.w("div",{class:"shelf-header-layout-wiz__leading-icon"},_.w(_.kD,{icon:m}))},
else:function(){return _.w(_.G,{cond:W.hasLeadingImage,then:function(){var m,q={};return _.w("div",{class:_.ve("shelf-header-layout-wiz__leading-image",(q["shelf-header-layout-wiz__leading-image--circular-image"]=W.circularImage,q))},(m=W.leadingImage)==null?void 0:m.call(W))}})}}),_.w("div",{class:"shelf-header-layout-wiz__label-container"},_.w(_.G,{cond:W.hasSuperlabel,
then:function(){var m;return _.w("div",{class:"shelf-header-layout-wiz__superlabel"},(m=W.superlabel)==null?void 0:m.call(W))}}),_.w("div",{class:"shelf-header-layout-wiz__title-row"},_.w(Pob,{text:W.title,
className:_.ve("shelf-header-layout-wiz__title",(b["shelf-header-layout-wiz__title--small-title"]=W.forceSmallLayout,b)),tagLevel:W.tagLevel}),_.w(_.G,{cond:W.hasDetail,then:function(){var m;return _.w("div",{class:"shelf-header-layout-wiz__detail"},(m=W.detail)==null?void 0:m.call(W))}})),_.w(_.G,{cond:W.hasSublabel,
then:function(){var m;return _.w("div",{class:"shelf-header-layout-wiz__sublabel"},(m=W.sublabel)==null?void 0:m.call(W))}})),_.w(_.G,{cond:W.hasTrailingActions,
then:function(){var m;return _.w("div",{class:"shelf-header-layout-wiz__trailing-actions"},(m=W.trailingActions)==null?void 0:m.call(W))}}))},"Kb");
Vno.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var Pob=_.NN(function(W){var e=W.text;var t=W.className;var b=W.tagLevel;return _.w(_.kq,null,_.w(_.Zb,{when:function(){return(b==null?void 0:b())===0}},function(){return _.w("h2",{class:t},e())}),_.w(_.Zb,{when:function(){return(b==null?void 0:b())===1}},function(){return _.w("h3",{class:t},e())}),_.w(_.Zb,{when:function(){return(b==null?void 0:b())===2}},function(){return _.w("h4",{class:t},e())}),_.w(_.$q,null,function(){return _.w("h2",{class:t},e())}))},"Lb");var z3r,iZh,Yke;_.mX=_.NN(function(W){var e=W.data;return _.w("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.$D({"background-color":function(){return ETK(e().backgroundColor)?_.h8(ETK(e().backgroundColor)):void 0}})},_.w(Vno,{hasDetail:!1,
title:function(){return _.w(_.WL,{text:function(){return e().headline}})},
hasTitle:!0,sublabel:function(){return _.w(iZh,{data:e})},
hasSublabel:function(){return!!e().sublabel||!!e().bottomBadge},
superlabel:function(){return _.w(Yke,{data:e})},
hasSuperlabel:function(){return!!e().superlabel||!!e().topBadge},
leadingImage:function(){return _.w(z3r,{leadingAccessory:function(){return e().leadingAccessory}})},
hasLeadingImage:function(){return!!e().leadingAccessory},
trailingActions:function(){return _.w(_.nU,{data:function(){return e().trailingActions}},{flexibleActionsViewModel:p2})},
hasTrailingActions:function(){return!!e().trailingActions},
disableHorizontalPadding:W.disableHorizontalPadding,disableVerticalPadding:W.disableVerticalPadding,forceSmallLayout:W.forceSmallLayout,useResponsiveLayout:W.useResponsiveLayout,isOverlay:W.isOverlay,onClick:function(t){if(_.zz(e().rendererContext)){var b=_.Yb(e().rendererContext);b&&_.sD(b,{form:{element:t.target,event:t}})}}}))},"Mb");
z3r=_.NN(function(W){var e=W.leadingAccessory;return _.w(_.qD,null,_.w(_.G,{cond:function(){var t;return(t=e().image)!=null?t:_.dN(e().themedImage)},
then:function(t){return _.w(_.A_,{data:t,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.w(_.G,{cond:function(){return _.l(e().avatar,_.LU)},
then:function(t){return _.w(_.pz,{data:t})}}))},"Nb");
iZh=_.NN(function(W){var e=W.data;return _.w(_.qD,null,_.w(_.G,{cond:function(){return _.l(e().bottomBadge,Xzb)},
then:function(t){var b={};return _.w(_.dr,{data:t,class:_.ve((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!t()&&!!e().sublabel},b))})}}),_.w(_.G,{cond:function(){return e().sublabel},
then:function(t){return _.w(_.WL,{text:t})}}))},"Ob");
Yke=_.NN(function(W){var e=W.data;return _.w(_.qD,null,_.w(_.G,{cond:function(){return _.l(e().topBadge,Xzb)},
then:function(t){var b={};return _.w(_.dr,{data:t,class:_.ve((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!t()&&!!e().superlabel},b))})}}),_.w(_.G,{cond:function(){return e().superlabel},
then:function(t){return _.w(_.WL,{text:t})}}))},"Pb");_.mM(_.mX,"yt-section-header-view-model",{props:{data:_.Eu,className:_.Eu,disableHorizontalPadding:_.Eu,disableVerticalPadding:_.Eu,forceSmallLayout:_.Eu,useResponsiveLayout:_.Eu,isOverlay:_.Eu}});_.xD("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var rb=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.Z(rb,_.O);_.r=rb.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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"}}}};
_.r.onDataChange=function(){var W=this;_.Uc(this,function(){W.updateItemVisibility()})};
_.r.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.r.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.rz(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(e,t){e.hidden=t>W.elementsPerRow-1})};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
rb.prototype.onDataChange=rb.prototype.onDataChange;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],rb.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],rb.prototype,"actionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],rb.prototype,"data",void 0);_.P([_.J({value:3}),_.Y("design:type",Number)],rb.prototype,"elementsPerRow",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rb.prototype,"onDataChange",null);_.P([_.h({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],rb);
_.H(rb,"ytd-primetime-promo-renderer",function(){if(KsZ!==void 0)return KsZ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KsZ=W},{mode:1});var Ube;var qP=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.Z(qP,_.O);qP.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
qP.prototype.handleButtonRefreshAction=function(W){if(W=_.l(W,Zno))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.Ec.Object.defineProperties(qP.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.avatars)==null?void 0:e.slice(0,8))||[]}}});
_.P([_.J(),_.Y("design:type",Object)],qP.prototype,"data",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qP.prototype,"rendererBehavior",void 0);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],qP.prototype,"avatars",null);
_.P([_.h({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],qP);
_.H(qP,"ytd-recognition-shelf-renderer",function(){if(Ube!==void 0)return Ube;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ube=W},{mode:1});var Lsb;var E8Z;var RN=function(){var W=_.O.apply(this,arguments)||this;W.modernButtons=_.S("web_modern_buttons");return W};
_.Z(RN,_.O);_.r=RN.prototype;
_.r.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]]"}}}}}};
_.r.dataChanged=function(){this.collapsed=!0};
_.r.computeVisibleItems=function(W,e){return W!==void 0&&W.items?e?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.r.computeHideShowMore=function(W,e,t){return W>=e||!t};
_.r.computeHideShowAll=function(W,e,t){return!(W&&e)||t};
_.r.onMoreClick=function(){this.collapsed=!1};
_.Ec.Object.defineProperties(RN.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.r8("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
RN.prototype.dataChanged=RN.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],RN.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],RN.prototype,"isSearch",void 0);
_.P([_.J({computed:"computeVisibleItems(data,collapsed)"}),_.Y("design:type",Array)],RN.prototype,"visibleItems",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],RN.prototype,"collapsed",void 0);_.P([_.J({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Y("design:type",Boolean)],RN.prototype,"hideShowMore",void 0);
_.P([_.J({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Y("design:type",Boolean)],RN.prototype,"hideShowAll",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RN.prototype,"modernButtons",void 0);_.P([_.T("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RN.prototype,"typographyBump",null);
_.P([_.T("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RN.prototype,"lockupExperiments",null);_.P([_.T("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],RN.prototype,"thumbnailWidth",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RN.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],RN);
_.H(RN,"ytd-vertical-list-renderer",function(){if(E8Z!==void 0)return E8Z;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return E8Z=W},{mode:1});var Agy=_.Nw(["#"]);_.xD("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Ql=function(){var W=_.O.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.S("web_modern_typography");return W};
_.Z(Ql,_.O);_.r=Ql.prototype;
_.r.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"}}}};
_.r.computeThumbnailStyle=function(W){return W||""};
_.r.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.r.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.kN(Agy)};
_.r.computeIsPromoShelf=function(W){var e;return(W=W==null?void 0:(e=W[0])==null?void 0:e.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.r.computePlaceBadgeBesideTitle=function(W){var e;return(W==null?0:(e=W[0])==null?0:e.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.r.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.r.onDataChange=function(){var W,e;((W=this.data)==null?0:(e=W.content)==null?0:e.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.r.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var e=this.data.content.gridRenderer.items,t=new Set,b=_.R(W.detail.videoIds),m=b.next();!m.done;m=b.next())t.add(m.value);W.detail.returnValue=e.filter(function(q){return q.gridVideoRenderer&&q.gridVideoRenderer.videoId&&t.has(q.gridVideoRenderer.videoId)}).map(function(q){return q.gridVideoRenderer})}};
_.r.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Ql.prototype.onLockupRequested=Ql.prototype.onLockupRequested;Ql.prototype.onDataChange=Ql.prototype.onDataChange;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Ql.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ql.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],Ql.prototype,"ironResizableBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ql.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Ql.prototype,"isSearch",void 0);_.P([_.J(),_.Y("design:type",Object)],Ql.prototype,"isConstrainedList",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("kevlar_fluid_dismiss")}}),
_.Y("design:type",Boolean)],Ql.prototype,"enableFluidDismiss",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Y("design:type",String)],Ql.prototype,"thumbnailStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ql.prototype,"modernTypography",void 0);_.P([_.J({computed:"computeMenuIcon(data.badges)"}),_.Y("design:type",String)],Ql.prototype,"menuIcon",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ql.prototype,"onDataChange",null);_.P([_.wz("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ql.prototype,"onLockupRequested",null);_.P([_.h({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Ql);
_.H(Ql,"ytd-shelf-renderer",function(){if(Lsb!==void 0)return Lsb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Lsb=W},{mode:1});var Nev;var FP=function(){return _.O.apply(this,arguments)||this};
_.Z(FP,_.O);FP.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Ec.Object.defineProperties(FP.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],FP.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],FP.prototype,"isPlaylist",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],FP.prototype,"isClipList",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],FP.prototype,"isPlaylistPageWithFilters",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FP.prototype,"hasTitle",null);_.P([_.J(),_.T("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],FP.prototype,"isRightAligned",null);
_.P([_.h({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],FP);
_.H(FP,"ytd-sort-filter-header-renderer",function(){if(Nev!==void 0)return Nev;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Nev=W},{mode:1});var dbe;var XP=function(){var W=_.O.apply(this,arguments)||this;W.enableRightArrowHidden=_.S("channel_details_shelf_resize_observer");return W};
_.Z(XP,_.O);XP.prototype.attached=function(){var W=this;this.enableRightArrowHidden&&(this.JSC$14306_throttledOnResize=new _.eS(function(){W.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var e;
(e=W.JSC$14306_throttledOnResize)==null||e.fire()}),this.resizeObserver.observe(this.hostElement))};
XP.prototype.detached=function(){if(this.enableRightArrowHidden){var W;(W=this.resizeObserver)==null||W.disconnect();var e;(e=this.JSC$14306_throttledOnResize)==null||e.dispose()}};
XP.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]]"}}}}}};
XP.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Ec.Object.defineProperties(XP.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.S("enable_creator_details_shelf_m2")){var W=[],e;((e=this.data)==null?0:e.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var t;((t=this.data)==null?0:t.creatorAboutButton)&&W.push(this.data.creatorAboutButton);e=_.R(this.data.creatorCustomUrlButtons||[]);for(t=e.next();!t.done;t=e.next())W.push(t.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.S("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],XP.prototype,"ytdHorizontalListBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],XP.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XP.prototype,"engagementPanel",void 0);
_.P([_.J(),_.Y("design:type",Object)],XP.prototype,"enableRightArrowHidden",void 0);_.P([_.T("enableRightArrowHidden","atEnd"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XP.prototype,"hideRightArrow",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XP.prototype,"creatorCustomUrlButtons",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data","creatorCustomUrlButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XP.prototype,"showCreatorCustomUrlButtons",null);_.P([_.T("showCreatorCustomUrlButtons"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],XP.prototype,"channelAvatarSize",null);_.P([_.h({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],XP);
_.H(XP,"ytd-video-description-infocards-section-renderer",function(){if(dbe!==void 0)return dbe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return dbe=W},{mode:_.Qe("kevlar_poly_si_batch_j067")?1:2});var WvB;var IN=function(){return _.O.apply(this,arguments)||this};
_.Z(IN,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IN.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],IN.prototype,"infoIcon",void 0);_.P([_.h({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],IN);
_.H(IN,"ytd-eom-settings-disclaimer-renderer",function(){if(WvB!==void 0)return WvB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WvB=W},{mode:1});var eCP;var aN=function(){return _.O.apply(this,arguments)||this};
_.Z(aN,_.O);_.Ec.Object.defineProperties(aN.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],aN.prototype,"componentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aN.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aN.prototype,"suppressPaddingDisclaimer",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],aN);
_.H(aN,"ytd-product-list-header-renderer",function(){if(eCP!==void 0)return eCP;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eCP=W},{mode:1});var tie;var wb=function(){return _.O.apply(this,arguments)||this};
_.Z(wb,_.O);wb.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.sr(W)))return"background-color:"+W+";"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wb.prototype,"rendererBehaviors",void 0);_.P([_.J(),_.Y("design:type",Object)],wb.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],wb);
_.H(wb,"ytd-hashtag-tile-renderer",function(){if(tie!==void 0)return tie;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tie=W},{mode:1});var bgo;var uH=function(){return _.O.apply(this,arguments)||this};
_.Z(uH,_.O);uH.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uH.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],uH);
_.H(uH,"ytd-sponsorships-alert-renderer",function(){if(bgo!==void 0)return bgo;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bgo=W},{mode:1});var mx8;var c$=function(){return _.O.apply(this,arguments)||this};
_.Z(c$,_.O);c$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Ec.Object.defineProperties(c$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.P([_.y(_.Tx),_.Y("design:type",Object)],c$.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],c$.prototype,"ytdLockupBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],c$.prototype,"isGridViewEnabled",void 0);
_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],c$.prototype,"watchFeedBigThumbs",null);_.P([_.T("isGridViewEnabled"),_.J({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],c$.prototype,"thumbnailWidth",null);_.P([_.J(),_.Y("design:type",Object)],c$.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],c$);
_.H(c$,"ytd-compact-movie-renderer",function(){if(mx8!==void 0)return mx8;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mx8=W},{mode:1});var rVS;var qKS;var RCP=_.Ot("HTML_DIR")==="rtl",v$=function(){var W=_.O.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$14323_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.Z(v$,_.O);_.r=v$.prototype;_.r.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;if((e=window.getSelection())==null||!e.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.r.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.r.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.r.updateTextOnSnippetTypeChange=function(){_.S("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.r.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var e,t;this.right=Math.min(W*2,(t=(e=this.simpleText)==null?void 0:e.length)!=null?t:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.r.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.r.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.JC(new _.o_("AttributedSnippet is empty when the description is not empty",this.text))};
_.r.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var e=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,e);e!==0||this.attributedTextIsEmpty()||_.JC(new _.o_("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;W=W*this.maxLines/8;this.left=0;var t;this.right=Math.min(W*2,(t=(e=this.simpleText)==null?void 0:e.length)!=null?t: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)}}};
_.r.mutationObserve=function(W){var e=this;this.observer||(this.observer=new MutationObserver(function(){e.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.r.attached=function(){var W=this;_.Uc(this,function(){W.resize()})};
_.r.isExpandedChanged=function(){_.q2(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.r.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)};
_.r.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((RCP?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(RCP?"right":"left",this.expandButtonOffset+"px")};
_.r.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.r.setSnippetText=function(W,e){W||(W={});if(_.UD(W)){var t=Y5(W,e);t.attachmentRuns||t.commandRuns||t.decorationRuns||t.styleRuns||t.alignment||t.lineBreakMode?this.attributedSnippetTextEl?(_.S("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Y5(W,e),this.attributedSnippetTextEl.headerRuns=hJQ(e,this.headerRuns)):this.attributedSnippetText={data:Y5(W,e),headerRuns:hJQ(e,this.headerRuns)},this.currentSnippetType=0):_.JC(new _.o_("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=Ve(W.content||"",e),this.currentSnippetType=2)}else{a:{t=AwG(W,e);if(t.runs){t=_.R(t.runs);for(var b=t.next();!b.done;b=t.next())if(b=b.value,b.bold||b.deemphasize||b.italics||b.strikethrough||b.textColor||b.navigationEndpoint||_.l(b,J_)){t=!0;break a}}t=!1}t?this.formattedSnippetText?(this.formattedSnippetText.text=AwG(W,e),this.currentSnippetType=1):_.JC(new _.o_("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
Ve(_.Ub(W),e),this.currentSnippetType=2)}};
_.r.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.r.attributedTextIsEmpty=function(){var W=this.text;if(!_.UD(W))return!0;var e;return((e=W.content)==null?void 0:e.length)===0?!0:!1};
_.r.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$14323_lastWidth=NaN;var e=this.hostElement.offsetWidth;if(e!==this.JSC$14323_lastWidth&&!this.isExpanded)if(this.JSC$14323_lastWidth=e,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;W=0;var t,b;e=Math.min(e*this.maxLines/8*2,(b=(t=this.simpleText)==null?void 0:t.length)!=null?b:0)-1;for(t=0;W<=e;)b=Math.floor(W+(e-W)/2),this.setSnippetText(this.text,b),this.isOverflowing()?e=b-1:(W=b+1,t=b);this.setSnippetText(this.text,t);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.r.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.r.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.S("inline_expander_reset_focus_killswitch")||_.Uc(this,function(){var e;((e=_.ee().resolve(_.Wi(_.FN)))==null?0:e.isKeyBoardInUse())&&_.L_(W.hostElement)});
_.q2(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.r.onCollapseClick=function(){this.collapse();_.q2(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.r.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.r.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?RCP?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.Ec.Object.defineProperties(v$.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.UD(this.text)?this.text.content||"":_.Ub(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 _.UD(this.text)?!0:this.text&&_.S("web_replace_formatted_with_attributed_string")&&QJL(this.text)?(this.text=_.Tf(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}}});
v$.prototype.onTextChanged=v$.prototype.onTextChanged;v$.prototype.updateMaskAndExpandButtonOffset=v$.prototype.updateMaskAndExpandButtonOffset;v$.prototype.updateSnippetContainerMaxHeight=v$.prototype.updateSnippetContainerMaxHeight;v$.prototype.isExpandedChanged=v$.prototype.isExpandedChanged;v$.prototype.updateTextOnSnippetTypeChange=v$.prototype.updateTextOnSnippetTypeChange;v$.prototype.updateIsFormattedExpanded=v$.prototype.updateIsFormattedExpanded;v$.prototype.updateIsAttributedExpanded=v$.prototype.updateIsAttributedExpanded;
v$.prototype.onClick=v$.prototype.onClick;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],v$.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"text",void 0);_.P([_.J(),_.Y("design:type",Array)],v$.prototype,"headerRuns",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],v$.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"maxLines",void 0);
_.P([_.J(),_.Y("design:type",String)],v$.prototype,"expandLabel",void 0);_.P([_.J(),_.Y("design:type",String)],v$.prototype,"collapseLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"expandCommand",void 0);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"expandButtonOffset",void 0);_.P([_.T("text"),_.Y("design:type",String),_.Y("design:paramtypes",[])],v$.prototype,"simpleText",null);
_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],v$.prototype,"onClick",null);_.P([_.T("text","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"expandedText",null);_.P([_.T("headerRuns","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"expandedHeaderRuns",null);
_.P([_.T("text"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v$.prototype,"hasAttributedStringText",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],v$.prototype,"showExpandButton",void 0);_.P([_.T("collapseLabel","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"showCollapseButton",null);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"isTruncated",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],v$.prototype,"isExpanded",void 0);_.P([_.J(),_.Y("design:type",Boolean)],v$.prototype,"isAttributedExpanded",void 0);_.P([_.ul("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"updateIsAttributedExpanded",null);_.P([_.J(),_.Y("design:type",Boolean)],v$.prototype,"isFormattedExpanded",void 0);
_.P([_.ul("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"updateIsFormattedExpanded",null);_.P([_.J(),_.Y("design:type",Number)],v$.prototype,"currentSnippetType",void 0);_.P([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"useAttributedSnippet",null);
_.P([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"useFormattedSnippet",null);_.P([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v$.prototype,"usePlainSnippet",null);_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"alwaysShowExpandButton",void 0);_.P([_.ul("currentSnippetType"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"updateTextOnSnippetTypeChange",null);
_.P([_.J(),_.Y("design:type",Object)],v$.prototype,"attributedSnippetText",void 0);_.P([_.vG("#snippet"),_.Y("design:type",HTMLElement)],v$.prototype,"snippetContainer",void 0);_.P([_.vG("#snippet-text"),_.Y("design:type",HTMLElement)],v$.prototype,"snippetText",void 0);_.P([_.vG("#plain-snippet-text"),_.Y("design:type",HTMLElement)],v$.prototype,"plainSnippetText",void 0);_.P([_.vG("#formatted-snippet-text"),_.Y("design:type",Object)],v$.prototype,"formattedSnippetText",void 0);
_.P([_.vG("#attributed-snippet-text"),_.Y("design:type",Object)],v$.prototype,"attributedSnippetTextEl",void 0);_.P([_.vG("#expand"),_.Y("design:type",HTMLElement)],v$.prototype,"expandButton",void 0);_.P([_.vG("#expand-sizer"),_.Y("design:type",HTMLElement)],v$.prototype,"expandSizer",void 0);_.P([_.BG("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"isExpandedChanged",null);
_.P([_.ul("isExpanded","maxLines"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"updateSnippetContainerMaxHeight",null);_.P([_.ul("isTruncated","showExpandButton","expandButtonOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"updateMaskAndExpandButtonOffset",null);
_.P([_.BG("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"onTextChanged",null);_.P([_.h({is:"ytd-text-inline-expander",disableElementRegistration:!0})],v$);
_.H(v$,"ytd-text-inline-expander",function(){if(qKS===void 0){var W=document.createElement("template");_.p(W,'\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<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 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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);qKS=W}W=qKS;return W},{mode:2});var Gw=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.Z(Gw,_.O);Gw.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Gw.prototype.handleUpdateDescriptionAction=function(W){if(W=_.l(W,_.Tvh))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var e;((e=this.data)==null?0:e.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Tf(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.Ec.Object.defineProperties(Gw.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((e=this.data)==null||!e.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var e;return(e=this.data)==null?void 0:e.collapsedLineCount}W=_.mn("web_watch_description_collapsed_default_lines",12);if(_.S("ww_desc_line_page_size_ks"))return W;e=Math.round(_.lm().height*_.mn("web_watch_description_screen_height_percentage",.5)/20);return Math.max(e,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return(t=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?t:(e=this.data)==null?void 0:e.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
Gw.prototype.panelContentVisibleChanged=Gw.prototype.panelContentVisibleChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Gw.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Gw.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gw.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Gw.prototype,"panelContentVisible",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gw.prototype,"engagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gw.prototype,"shortsPanel",void 0);_.P([_.vG("#inline-expander"),_.Y("design:type",Object)],Gw.prototype,"inlineExpander",void 0);
_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gw.prototype,"panelContentVisibleChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gw.prototype,"hasDescriptionText",null);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Gw.prototype,"collapsedLines",null);
_.P([_.T("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gw.prototype,"descriptionText",null);_.P([_.T("data","data.headerRuns"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gw.prototype,"headerRuns",null);_.P([_.T("data","data.sourceAttributions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gw.prototype,"sourceAttributions",null);
_.P([_.h({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Gw);
_.H(Gw,"ytd-expandable-video-description-body-renderer",function(){if(rVS!==void 0)return rVS;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rVS=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var QFS;var Fvh=_.NN(function(W){var e=W.data;return _.w("factoid-renderer",{class:"ytwFactoidRendererHost"},_.w("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return e().accessibilityText}},_.w("span",{class:"ytwFactoidRendererValue"},_.w(_.WL,{text:function(){return e().value}})),_.w("span",{class:"ytwFactoidRendererLabel"},_.w(_.WL,{text:function(){return e().label}}))))},"Qb");_.mM(Fvh,"factoid-renderer",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;return _.w("upload-time-factoid-renderer",null,_.w(_.nU,{data:function(){return e().factoid}},{factoidRenderer:Fvh}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.bt}});_.mM(_.NN(function(W){var e=W.data;return _.w("view-count-factoid-renderer",null,_.w(_.nU,{data:function(){return e().factoid}},{factoidRenderer:Fvh}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.bt}});var Dm=function(){var W=_.O.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.S("shorts_desktop_watch_while_sdp");return W};
_.Z(Dm,_.O);Dm.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"}}}}};
_.Ec.Object.defineProperties(Dm.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Dm.prototype,"componentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dm.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Dm.prototype,"shortsPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Dm.prototype,"engagementPanel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Dm.prototype,"watchWhileSdp",void 0);_.P([_.T("shortsPanel","engagementPanel","data.channel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dm.prototype,"showChannelInfo",null);_.P([_.h({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Dm);
_.H(Dm,"ytd-video-description-header-renderer",function(){if(QFS!==void 0)return QFS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QFS=W},{mode:1});var XcN;var SM=function(){return _.O.apply(this,arguments)||this};
_.Z(SM,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SM.prototype,"noPadding",void 0);_.P([_.J(),_.Y("design:type",Object)],SM.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],SM);
_.H(SM,"ytd-list-item-view-model",function(){if(XcN!==void 0)return XcN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XcN=W},{mode:1});var IfP;var afr;var wcy;var uoU;var B$=function(){var W=_.O.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.S("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.Z(B$,_.O);B$.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.rz(this.hostElement).querySelector("#share-url").value=W.isSet?_.P9(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
B$.prototype.handleSignalActionCopyShareUrl_=function(W,e){(_.S("killswitch_copy_link_target_check")||_.rz(this.hostElement).querySelector("#copy-button")===e)&&this.copyUrlToClipboard()};
B$.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.rz(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
B$.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],B$.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],B$.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Y("design:type",String)],B$.prototype,"rendererStyle",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],B$.prototype,"adaptiveFullWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],B$.prototype,"modernButtons",void 0);_.P([_.J(),_.Y("design:type",Object)],B$.prototype,"buttonOverrides",void 0);_.P([_.gz({is:"yt-copy-link-renderer",disableElementRegistration:!0})],B$);
_.H(B$,"yt-copy-link-renderer",function(){if(uoU===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;wcy===void 0&&(wcy=document.createElement("template"));var b=wcy;t.call(e,b.content.cloneNode(!0),W.content.firstChild);uoU=W}W=uoU;return W},{mode:2});_.xD("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var oN=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.Z(oN,_.O);_.r=oN.prototype;_.r.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.r.attached=function(){this.keyboardFocused=!1};
_.r.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.ee().resolve(_.Wi(_.FN));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.r.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.r.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}};
_.r.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.r.handleUpdateToggleAction_=function(W){(W=_.l(W,sPv))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.r.toBoolean_=function(W){return!!W};
_.r.reset=function(){};
_.r.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("data-changed",this.data))};
_.r.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
oN.prototype.dataChangedForBinding=oN.prototype.dataChangedForBinding;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],oN.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oN.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],oN.prototype,"data",void 0);_.P([_.J({computed:"computeDescription_(data.*)"}),_.Y("design:type",Object)],oN.prototype,"description_",void 0);_.P([_.J({value:function(){return!!_.ee().resolve(_.Wi(_.FN))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],oN.prototype,"useKeyboardFocused",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],oN.prototype,"keyboardFocused",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oN.prototype,"dataChangedForBinding",null);_.P([_.gz({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],oN);
_.H(oN,"yt-toggle-form-field-renderer",function(){if(afr===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;IfP===void 0&&(IfP=document.createElement("template"));var b=IfP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);afr=W}W=afr;return W},{mode:2});var cVB;var v$b;var lH=function(){var W=_.O.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.noTopMargin=_.S("kevlar_watch_no_top_margin");W.maskFade=_.S("web_watch_chips_mask_fade");W.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 W};
_.Z(lH,_.O);_.r=lH.prototype;_.r.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}}}}}};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.r.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var e,t;(e=this.ytScrollableChipCloudBehavior)==null||(t=e.reset)==null||t.call(e)}};
_.r.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var e,t=0;t<((e=this.data)==null?void 0:e.chips.length);t++){var b=void 0,m=void 0;if((b=this.data)==null?0:(m=b.chips[t].chipCloudChipRenderer)==null?0:m.isSelected){W=t;break}}return W};
_.r.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.Uc(W,W.setContainerWidthDiff);rZ(this.ytScrollableChipCloudBehavior)};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.handleRelatedChipCommand=function(W,e){W=this.JSC$14350_chipsSelector.indexOf(e);W!==-1&&this.JSC$14350_chipsSelector.selectIndex(W)};
_.r.handleChipCloudChipSelectAction=function(W){W=this.JSC$14350_chipsSelector.indexOf(W);W>-1&&this.JSC$14350_chipsSelector.selectIndex(W)};
_.r.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14350_chipsSelector&&((W==null?0:W.continuationCommand)?_.X5(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.IT(this.hostElement,[W],this.hostElement),this.JSC$14350_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.r.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
lH.prototype.onResize=lH.prototype.onResize;lH.prototype.dataChanged=lH.prototype.dataChanged;lH.prototype.isSearchChanged=lH.prototype.isSearchChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],lH.prototype,"actionHandlerBehavior",void 0);
_.P([_.y(_.gf),_.Y("design:type",Object)],lH.prototype,"ironResizableBehavior",void 0);_.P([_.y(),_.Y("design:type",mH)],lH.prototype,"ytScrollableChipCloudBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lH.prototype,"data",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],lH.prototype,"selected",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lH.prototype,"isDarkTheme",void 0);_.P([_.J({value:160}),_.Y("design:type",Number)],lH.prototype,"scrollDistance",void 0);_.P([_.J(),_.Y("design:type",Object)],lH.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lH.prototype,"darkerDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lH.prototype,"noTopMargin",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lH.prototype,"maskFade",void 0);_.P([_.vG("#chips"),_.Y("design:type",Object)],lH.prototype,"JSC$14350_chipsSelector",void 0);_.P([_.ul("isSearch"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lH.prototype,"isSearchChanged",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lH.prototype,"dataChanged",null);
_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lH.prototype,"onResize",null);_.P([_.gz({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],lH);
_.H(lH,"yt-chip-cloud-renderer",function(){if(v$b===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;cVB===void 0&&(cVB=document.createElement("template"));var b=cVB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);v$b=W}W=v$b;return W},{mode:2});var GGh,Dxe=function(){return GGh!==void 0?GGh:GGh=document.createElement("template")};
document.head.appendChild(Dxe().content);var SKy;var BI8=document.head,o$P=BI8.appendChild,lfv;if(SKy===void 0){var ZgN=document.createElement("template");_.p(ZgN,"");ZgN.content.insertBefore(Dxe().content.cloneNode(!0),ZgN.content.firstChild);SKy=ZgN}lfv=SKy;o$P.call(BI8,lfv.content);var $xb=_.NN(function(W){var e=W.data;return _.w("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.w("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.w(_.G,{cond:function(){return _.dN(e().image)},
then:function(t){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.w(_.A_,{data:t,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.w("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.w(_.WL,{text:function(){return e().subtitle}})))),_.w(_.G,{cond:function(){var t;
return(t=e())==null?void 0:t.hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var kGb=_.NN(function(W){var e=W.data;return _.w("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.w(_.nU,{data:function(){var t;return(t=e().offerPlanDetailsItem)!=null?t:[]}},{offerPlanDetailsItemViewModel:function(t){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.w($xb,{data:t.data}))}})),_.w("div",null,_.w(_.G,{cond:function(){return e().hasBottomDivider},
then:function(){return _.w("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.w("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.w("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var pcB=_.NN(function(W){var e=W.data;W=_.R(_.up(!1,void 0,"SpEGQd"));var t=W.next().value,b=W.next().value,m=_.Be(function(){b(!t());return!1}),q=function(){var Q;
return(Q=e().offerPlanDetailsContainer)!=null?Q:[]};
return _.w("lp-complex-offer-card-details-view-model",null,_.w("div",null,_.w(_.G,{cond:function(){return t()},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":m,"aria-expanded":t},_.w(_.WL,{text:function(){return e().expandedTitle}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.w(_.nU,{data:q},{offerPlanDetailsContainerViewModel:function(Q){return _.w("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.w(kGb,{data:Q.data}))}})),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.w(_.WL,{text:function(){return e().legalText}})))},
else:function(){return _.w("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":m,"aria-expanded":t},_.w(_.WL,{text:function(){return e().collapsedTitle}}),_.w("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.w(_.kD,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var yVr=_.NN(function(W){var e=W.data;return _.w("lp-complex-offer-card-option-view-model",null,_.w("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.w(_.G,{cond:function(){return e().topDividerText},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.w("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.w(_.WL,{text:function(){return e().topDividerText}}))))}}),_.w(_.G,{cond:function(){return e().planPricingPrimary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.w(_.WL,{text:function(){return e().planPricingPrimary}}))}}),_.w(_.G,{cond:function(){return e().planPricingSecondary},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.w(_.WL,{text:function(){return e().planPricingSecondary}}))}}),_.w(_.G,{cond:function(){return e().primaryButton},
then:function(){return _.w("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.w(_.nU,{data:function(){return e().primaryButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var jFN=_.NN(function(W){var e=W.data;var t=function(){var q;return((q=e())==null?void 0:q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var b={},m={};return _.w("ytm-lp-complex-offer-card-view-model",null,_.w("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.w("div",{class:_.ve((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=t,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.w(_.G,{cond:function(){var q;return(q=e())==null?void 0:q.bannerText},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.w("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.w(_.WL,{text:function(){return e().bannerText}})))}}),_.w(_.G,{cond:function(){return _.dN(e().logo)},
then:function(q){var Q={};return _.w("div",{class:_.ve((Q.ytmLpComplexOfferCardViewModelLogoAlignLeft=t,Q),"ytmLpComplexOfferCardViewModelLogo")},_.w(_.A_,{data:q,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.w("div",{class:_.ve((b.ytmLpComplexOfferCardViewModelTitleAlignLeft=t,b),"ytmLpComplexOfferCardViewModelTitle")},_.w(_.WL,{text:function(){return e().title}})),_.w(_.G,{cond:function(){var q;
return(q=e())==null?void 0:q.subtitle},
then:function(){var q={};return _.w("div",{class:_.ve((q.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=t,q),"ytmLpComplexOfferCardViewModelSubtitle")},_.w(_.WL,{text:function(){return e().subtitle}}))}}),_.w(_.G,{cond:function(){return e().planPricingPrimary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.w(_.WL,{text:function(){return e().planPricingPrimary}}))}}),_.w(_.G,{cond:function(){return e().planPricingSecondary},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.w(_.WL,{text:function(){return e().planPricingSecondary}}))}}),_.w(_.G,{cond:function(){return e().purchaseButton},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.w(_.nU,{data:function(){return e().purchaseButton}},{buttonViewModel:function(q){return _.w(_.MV,{data:q.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.w(_.G,{cond:function(){var q;
return(q=e())==null?void 0:q.offerOptions},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.w(_.nU,{data:function(){return e().offerOptions}},{lpComplexOfferCardOptionViewModel:yVr}))}}),_.w("div",{class:_.ve((m.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=t,m),"ytmLpComplexOfferCardViewModelLegalText")},_.w(_.WL,{text:function(){return e().legalText}})),_.w(_.G,{cond:function(){var q;
return(q=e())==null?void 0:q.offerCardDetails},
then:function(){return _.w("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.w(_.nU,{data:function(){return e().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:pcB}))}}))))},"Xb");var C3B=_.NN(function(W){var e=W.data;var t=function(){var Q;return((Q=e())==null?void 0:Q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var b={},m={},q={};return _.w("ytm-lp-complex-offer-card-section-view-model",null,_.w("div",{class:_.ve("ytmLpComplexOfferCardSectionViewModelHost")},_.w("div",{class:_.ve((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=t,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.w("div",{class:_.ve((b.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=t,b),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.w("h2",{class:_.ve((m.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
t,m),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.w(_.WL,{text:function(){return e().title}}))),_.w(_.G,{cond:function(){var Q;
return(Q=e())==null?void 0:Q.subtitle},
then:function(){var Q={},X={};return _.w("div",{class:_.ve((Q.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=t,Q),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.w("div",{class:_.ve((X.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=t,X),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.w(_.WL,{text:function(){return e().subtitle}})))}}),_.w("div",{class:_.ve((q.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=t,q),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.w(_.nU,{data:function(){var Q;
return(Q=e().offerPlans)!=null?Q:[]}},{lpComplexOfferCardViewModel:function(Q){return _.w("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.w(jFN,{data:Q.data}))}})))))},"Yb");var n$N=_.NN(function(W){return _.w("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.w("div",{class:"ytLpCouponBannerViewModelIcon"},_.w(_.kD,{icon:function(){return"price_tag"}})),_.w("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.w("div",{class:"ytLpCouponBannerViewModelContent"},_.w("div",{class:"ytLpCouponBannerViewModelHeading"},_.w(_.WL,{text:function(){var e;
return(e=W.data())==null?void 0:e.title}})),_.w("div",{class:"ytLpCouponBannerViewModelBody"},_.w(_.WL,{text:function(){var e;
return(e=W.data())==null?void 0:e.subtitle}})))))},"Zb");
n$N.idomCompat=!0;_.Zm=NPv.getInstance();var ffP=_.NN(function(W){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":W.shouldAriaHideContent},_.w("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:W.questionId},_.w(_.WL,{text:W.question})))},"$b"),g$e=_.NN(function(W){var e=W.data;
var t=W.themeOverride;W=_.R(_.up(!1,void 0,"ljTVPd"));var b=W.next().value,m=W.next().value;W=_.Be(function(){m(!b());return!1});
var q=function(){return b()?"EXPAND_LESS":"EXPAND_MORE"},Q=("faq-container"+_.TR(_.Zm)).toString(),X="faq-question-and-answers-section-question"+_.TR(_.Zm),I={},u={};
return _.w("faq-entry-view-model-c3",null,_.w("div",{class:_.ve("yt-lp-faq-entry-view-model",(I["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return t==null?void 0:t().useDarkTheme},I))},_.w("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":W,role:"button","aria-expanded":b,"aria-labelledby":X.toString(),"tab-index":"0"},_.w(ffP,{question:function(){return e().question},
questionId:X,shouldAriaHideContent:!0}),_.w(_.G,{cond:function(){return b()!==void 0},
then:function(){return _.w("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.w(_.kD,{icon:q,ariaHidden:!0}),_.w("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.w("div",{class:_.ve("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(u["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!b()},u))},_.w("div",{id:Q},_.w(_.lV,{each:function(){return e().answers||[]}},function(c){return _.w("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.w(_.WL,{text:c}))})))))},"ac");
g$e.idomCompat=!0;var TIb=_.NN(function(W){var e=W.data;var t=W.themeOverride;W={};return _.w("lp-faq-section-view-model-c3",null,_.w("div",{class:_.ve("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(t==null||!t().useDarkTheme)},W))},_.w("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.w(_.G,{cond:function(){return e().header},
then:function(b){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.w(_.WL,{text:b}))}}),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.w(_.nU,{data:function(){return e().faqs}},{faqEntryViewModel:function(b){return _.w(g$e,{data:b.data,
themeOverride:t})}})),_.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.w(_.lV,{each:function(){return e().footers||[]}},function(b){return _.w(_.WL,{text:b})})),_.w(_.G,{cond:function(){return e().legal},
then:function(b){return _.w("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.w(_.WL,{text:b}))}}))))},"bc");
TIb.idomCompat=!0;var JVS=_.NN(function(W){var e=W.data;var t=W.themeOverride;_.nt(function(){var Q=e().gtmId;Q&&_.CT(Q,_.Ot("GL",""))});
var b={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Q,X,I;return(I=(Q=e().logo)==null?void 0:(X=Q.accessibilityData)==null?void 0:X.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},m=_.ee().resolve(_.Wi(_.zf)),q=function(){return m&&m()||(t==null?void 0:t().useDarkTheme)};
return _.w("lp-header-section-view-model",null,_.w("div",{class:function(){var Q=e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",X=e().marginType==="LP_SECTION_MARGIN_TYPE_TOP",I=t==null?void 0:t().useDarkTheme,u=["lp-header-section-view-model"];Q&&u.push("lp-header-section-view-model--ptc-layout-type");X&&u.push("lp-header-section-view-model__lp-header-section-margin");I&&u.push("lp-header-section-view-model--premium-force-dark-mode");return u.join(" ")}},_.w(_.G,{cond:function(){return e().logo},
then:function(){return _.w("div",null,_.w(_.G,{cond:q,then:function(){return _.w(_.G,{cond:function(){var Q;return(Q=e().logo)==null?void 0:Q.imageDark},
then:function(Q){return _.w(_.A_,Object.assign({},{data:Q},b))}})},
else:function(){return _.w(_.G,{cond:function(){var Q;return(Q=e().logo)==null?void 0:Q.imageLight},
then:function(Q){return _.w(_.A_,Object.assign({},{data:Q},b))}})}}))}}),_.w(_.G,{cond:function(){return e().title},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-title"},_.w(_.WL,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.w(_.G,{cond:function(){return e().subtitles},
then:function(Q){return _.w(_.lV,{each:Q},function(X){return _.w("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.w(_.WL,{text:X}))})}})),_.w(_.G,{cond:function(){return e().additionalInfo},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.w(_.WL,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.w(_.G,{cond:function(){return e().primaryButton},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.w(_.nU,{data:Q},{buttonViewModel:_.MV}))}}),_.w(_.G,{cond:function(){return e().secondaryButton},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.w(_.nU,{data:Q},{buttonViewModel:_.MV}))}})),_.w(_.G,{cond:function(){return e().otherOffersInfo},
then:function(Q){return _.w("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.w(_.WL,{text:Q}))}}),_.w("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.w(_.G,{cond:function(){return e().billingInfo},
then:function(Q){return _.w(_.lV,{each:Q},function(X){return _.w("div",null,_.w(_.WL,{text:X}))})}}))))},"cc");
JVS.idomCompat=!0;var xx8=_.NN(function(W){var e=W.data;var t=_.LD(W.themeOverride,{useDarkTheme:!1});W={};W=_.ve("ytm-lp-headline-section-view-model",(W["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return t().useDarkTheme},W));
return _.w("lp-headline-section-view-model",null,_.w("div",{class:W},_.w("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.w(_.WL,{text:function(){return e().title}})),_.w(_.G,{cond:function(){return e().subtitle},
then:function(b){return _.w("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.w(_.WL,{text:b}))}})))},"dc");var Ogv=_.NN(function(W){var e=W.data;var t=W.themeOverride;var b=_.ee().resolve(_.Wi(_.zf)),m=function(){return b&&b()||(t==null?void 0:t().useDarkTheme)},q=function(){var u,c;
var v=m()?(u=e().textBackgroundImage)==null?void 0:u.imageDark:(c=e().textBackgroundImage)==null?void 0:c.imageLight;return QNR((v==null?void 0:v.sources)||[])},Q=function(){var u,c;
return m()?(u=e().featureImage)==null?void 0:u.imageDark:(c=e().featureImage)==null?void 0:c.imageLight},X=function(){return e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},I=function(){var u,c;
return m()?(u=e().logo)==null?void 0:u.imageDark:(c=e().logo)==null?void 0:c.imageLight};
return _.w("ytm-lp-large-feature-section-view-model",null,_.w("div",{class:function(){var u=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",c=e().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",v=(e().index||0)%2===1,D=t==null?void 0:t().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];u?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):c?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):v||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
D&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.w(_.G,{cond:Q,
then:function(){return _.w(_.A_,{data:function(){return Q()},
alt:function(){var u,c,v;return(v=(u=e().featureImage)==null?void 0:(c=u.accessibilityData)==null?void 0:c.label)!=null?v:""},
contentMode:X})}})),_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var u;return((u=q())==null?0:u.url)?"background-image: url("+_.lF(q().url)+");":""}},_.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.w(_.G,{cond:I,
then:function(){return _.w(_.A_,{data:function(){return I()},
alt:function(){var u,c,v;return(v=(u=e().logo)==null?void 0:(c=u.accessibilityData)==null?void 0:c.label)!=null?v:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.w(_.G,{cond:function(){return e().eyebrowText},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.w(_.WL,{text:function(){return e().eyebrowText}}))}}),_.w(_.G,{cond:function(){return e().title},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.w(_.WL,{text:function(){return e().title}}))}}),_.w(_.G,{cond:function(){return e().subtitles},
then:function(){return _.w("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.w(_.lV,{each:function(){return e().subtitles||[]}},function(u){return _.w(_.WL,{text:u})}))}})))))},"ec");
Ogv.idomCompat=!0;var Mio=_.NN(function(W){return _.w("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.w("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.w(_.kD,{icon:function(){var e;return(e=W.data())==null?void 0:e.iconType},
className:function(){var e;switch((e=W.data())==null?void 0:e.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var e;return((e=W.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.w("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.w(_.WL,{text:function(){var e;
return(e=W.data())==null?void 0:e.text},
className:function(){var e;return((e=W.data())==null?void 0:e.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var sFN=_.NN(function(W){W=_.Ez(W,{config:void 0,themeOverride:void 0});var e=W.data,t=W.config,b=W.themeOverride;W={};W=_.ve("ytm-lp-offer-card-option-view-model",(W["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var X;return(X=b())==null?void 0:X.useDarkTheme},W));
var m=_.Be(function(){var X,I;(X=t())==null||(I=X.handleRadioButtonClick)==null||I.call(X,e());return!1}),q=function(){var X;
return(X=t())==null?void 0:X.shouldDisplayRadioButton},Q=function(){var X;
return(X=e().featureListItems)!=null?X:[]};
return _.w("ytm-lp-offer-card-option-view-model",null,_.w("div",{class:W,"on:click":_.Be(function(){if(q()){var X,I;(X=t())==null||(I=X.handleRadioButtonClick)==null||I.call(X,e())}return!1})},_.w(_.G,{cond:q,
then:function(){return _.w("div",null,_.w("input",{type:"radio","on:click":m,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var X;return!((X=t())==null||!X.isOptionSelected)}}))}}),_.w("div",null,_.w("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.w(_.WL,{text:function(){return e().eyebrowText}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.w(_.WL,{text:function(){return e().subtitle}})),_.w(_.G,{cond:function(){return Q().length>0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.w(_.nU,{data:Q},{lpFeatureListItemViewModel:Mio}))}}),_.w("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.w(_.WL,{text:function(){return e().description}})))))},"gc");
sFN.idomCompat=!0;var hCh=_.NN(function(W){var e=W.data;var t=W.themeOverride;W=_.R(_.ZT(function(){var q,Q=(q=e().offerOptions)==null?void 0:q[0];return _.l(Q,LmN)||{}}));
var b=W.next().value,m=W.next().value;W={};return _.w("ytm-lp-offer-card-view-model",null,_.w("div",{class:_.ve("ytm-lp-offer-card-view-model",(W["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(t==null||!t().useDarkTheme)},W))},_.w("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.w(_.G,{cond:function(){return e().titleIconType},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.w(_.kD,{icon:function(){var q;return((q=e().titleIconType)==null?void 0:q.toString())||""}}))}}),_.w("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.w(_.WL,{text:function(){return e().title}})),_.w(_.nU,{data:function(){return e().titleBadge}},{badgeViewModel:function(q){return _.w("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.w(_.dr,{data:q.data}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.w(_.nU,{data:function(){return e().offerOptions}},{lpOfferCardOptionViewModel:function(q){var Q=q.data;
return _.w(_.qD,null,_.w("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.w(sFN,{data:Q,config:function(){var X;return{shouldDisplayRadioButton:(e().offerOptions||[]).length>1,isOptionSelected:Q().id===((X=b())==null?void 0:X.id),handleRadioButtonClick:function(I){return void m(I)}}},
themeOverride:t}))}})),_.w("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.w(_.nU,{data:function(){var q;
return(q=b())==null?void 0:q.purchaseButtonOverride}},{buttonViewModel:_.MV}))))},"hc");
hCh.idomCompat=!0;var HgU=_.NN(function(W){var e=W.data;var t=W.themeOverride;W={};W=_.ve("ytm-lp-offer-card-section-view-model",(W["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var b;return t==null?void 0:(b=t())==null?void 0:b.useDarkTheme},W));
return _.w("ytm-lp-offer-card-section-view-model",null,_.w("div",{class:W},_.w(_.G,{cond:function(){return e().title!==void 0},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.w("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.w(_.WL,{text:function(){return e().title}})),_.w(_.G,{cond:function(){return e().subtitle},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.w(_.WL,{text:function(){return e().subtitle}}))}}))}}),_.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.w(_.nU,{data:function(){return e().offerCards}},{lpOfferCardViewModel:function(b){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.w(hCh,{data:b.data,
themeOverride:t}))}})),_.w(_.G,{cond:function(){return e().footer},
then:function(){return _.w("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.w(_.WL,{text:function(){return e().footer}}))}})))},"ic");var Kvh=_.NN(function(W){var e=W.data;return _.w("lp-offer-table-cell-content-view-model",null,_.w("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.w(_.kq,null,_.w(_.Zb,{when:function(){return e().title}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return e().title}})}),_.w(_.Zb,{when:function(){return e().subTitle}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return e().subTitle}})}),_.w(_.Zb,{when:function(){return e().featureDescription}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return e().featureDescription}})}),_.w(_.Zb,{when:function(){return e().description}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return e().description}})}),_.w(_.Zb,{when:function(){return e().iconType}},function(){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.w(_.kD,{icon:function(){return e().iconType.toString()}}))}),_.w(_.Zb,{when:function(){return e().purchaseButton}},function(){return _.w(_.nU,{data:function(){return e().purchaseButton}},{buttonViewModel:function(t){return _.w("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.w(_.MV,{data:t.data}))}})}),_.w(_.Zb,{when:function(){return e().note}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return e().note}})}),_.w(_.Zb,{when:function(){return e().featureDetail}},function(){return _.w(_.WL,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return e().featureDetail}})}),_.w(_.Zb,{when:function(){return e().badge}},function(){return _.w(_.nU,{data:function(){return e().badge}},{badgeViewModel:_.dr})}))))},"jc");
Kvh.idomCompat=!0;var P3D=_.NN(function(W){var e=W.data;return _.w("lp-offer-table-cell-view-model",null,_.w("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(e().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.w(_.nU,{data:function(){return e().contents}},{lpOfferTableCellContentViewModel:Kvh})))},
"kc");
P3D.idomCompat=!0;var ViZ=_.NN(function(W){var e=W.data;var t=W.lpTableIsFirstRow;var b=W.lpTableIsLastRow;var m=function(){return(t==null?0:t())?"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"},q=function(){return(t==null?0:t())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(b==null?0:b())?"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 _.w("ytm-lp-offer-table-row-view-model",null,_.w("div",{class:"yt-lp-offer-table-row-view-model"},_.w(_.nU,{data:function(){return e().rowHeaderCell}},{lpOfferTableCellViewModel:function(Q){return _.w("div",{class:m},_.w(P3D,{data:Q.data}))}}),_.w(_.nU,{data:function(){return e().contentCells}},{lpOfferTableCellViewModel:function(Q){return _.w("div",{class:q},_.w(P3D,{data:Q.data}))}})))},"lc");
ViZ.idomCompat=!0;var igr=_.NN(function(W){var e=W.data;var t=W.themeOverride;var b=_.ee().resolve(_.Wi(_.zf)),m=function(){return _.l(e().logo,X2B)||{}};
W={};return _.w("ytm-lp-offer-table-section-view-model",null,_.w("div",{class:"yt-lp-offer-table-view-model"},_.w(_.G,{cond:function(){var q,Q;return b&&b()||(t==null?0:t().useDarkTheme)?(q=m())==null?void 0:q.imageDark:(Q=m())==null?void 0:Q.imageLight},
then:function(q){return _.w(_.A_,{data:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Q,X,I;return(I=(Q=m())==null?void 0:(X=Q.accessibilityData)==null?void 0:X.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.w(_.WL,{text:function(){return e().subtitle}})),_.w(_.G,{cond:function(){return e().disclaimers},
then:function(q){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.w(_.lV,{each:q},function(Q){return _.w("div",null,_.w(_.WL,{text:Q}))}))}}),_.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.w(_.nU,{data:function(){return e().rows}},{lpOfferTableRowViewModel:function(q,Q){return _.w(ViZ,{data:q.data,
lpTableIsFirstRow:function(){return Q()===0},
lpTableIsLastRow:function(){return Q()===e().rows.length-1}})}})),_.w("div",{class:_.ve((W["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return e().hasFooterBackground},W))},_.w(_.G,{cond:function(){return e().footer},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.w(_.WL,{text:function(){return e().footer}}))}}),_.w(_.G,{cond:function(){return e().footerTitle},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.w(_.WL,{text:function(){return e().footerTitle}}))}}),_.w(_.G,{cond:function(){return e().footerDescription},
then:function(){return _.w("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.w(_.WL,{text:function(){return e().footerDescription}}))}}))))},"mc");
igr.idomCompat=!0;var YK8=_.NN(function(W){var e=W.data;var t=W.themeOverride;var b=_.ee().resolve(_.Wi(_.zf)),m=function(){var X;return t==null?void 0:(X=t())==null?void 0:X.useDarkTheme},q=function(){var X,I;
return b&&b()||m()?(X=e().image)==null?void 0:X.imageDark:(I=e().image)==null?void 0:I.imageLight};
W={};W=_.ve("ytm-lp-small-feature-section-view-model",(W["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=m,W));var Q=function(){var X,I,u;return(u=(X=e().image)==null?void 0:(I=X.accessibilityData)==null?void 0:I.label)!=null?u:""};
return _.w("ytm-lp-small-feature-section-view-model",{class:W},_.w(_.G,{cond:function(){return q()&&!Y_G},
then:function(){return _.w("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.w(_.A_,{data:function(){return q()},
alt:Q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.w("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.w("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.w(_.G,{cond:function(){return e().title},
then:function(X){return _.w(_.WL,{text:X})}})),_.w("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.w(_.WL,{text:function(){return e().description}}))))},"nc");
YK8.idomCompat=!0;var zCS=_.NN(function(W){var e=W.data;var t=W.themeOverride;W={};return _.w("ytm-lp-small-feature-section-group-view-model",null,_.w("div",{class:_.ve("ytm-lp-small-feature-section-group-view-model",(W["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(t==null||!t().useDarkTheme)},W))},_.w("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.w(_.nU,{data:function(){return e().smallFeatures}},{lpSmallFeatureSectionViewModel:function(b){return _.w("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.w(YK8,{data:b.data,
themeOverride:t}))}}))))},"oc");
zCS.idomCompat=!0;_.mM(_.NN(function(W){var e=W.data;var t=function(){return e().forcedTheme==="USER_INTERFACE_THEME_DARK"},b=function(){return e().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},m=function(){var Q="",X,I;
var u=_.ee().resolve(_.Wi(_.zf));u=t()||(u==null?0:u())?(X=e().themedImageViewModel)==null?void 0:X.imageDark:(I=e().themedImageViewModel)==null?void 0:I.imageLight;(X=QNR((u==null?void 0:u.sources)||[]))&&X.url&&(Q=b()?"background-image: linear-gradient(to bottom, transparent, "+(e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.lF(X.url)+");":"background-image: url("+_.lF(X.url)+");");return Q},q=function(){return{useDarkTheme:t()}};
W={};return _.w("yt-section-group-view-model",null,_.w("div",{class:_.ve("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=t,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return e().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.w(_.G,{cond:function(){return m().length},
then:function(){var Q={};return _.w("div",{class:_.ve("yt-lp-section-group-view-model__bg-image",(Q["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=b,Q)),style:m})}}),_.w("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.w(_.nU,{data:function(){return e().sections}},{lpFaqSectionViewModel:function(Q){return _.w(TIb,{data:Q.data,
themeOverride:q})},
lpHeaderSectionViewModel:function(Q){return _.w(JVS,{data:Q.data,themeOverride:q})},
lpHeadlineSectionViewModel:function(Q){return _.w(xx8,{data:Q.data,themeOverride:q})},
lpLargeFeatureSectionViewModel:function(Q){return _.w(Ogv,{data:Q.data,themeOverride:q})},
lpOfferCardSectionViewModel:function(Q){return _.w(HgU,{data:Q.data,themeOverride:q})},
lpComplexOfferCardSectionViewModel:function(Q){return _.w(C3B,{data:Q.data})},
lpOfferTableSectionViewModel:function(Q){return _.w(igr,{data:Q.data,themeOverride:q})},
lpSmallFeatureSectionGroupViewModel:function(Q){return _.w(zCS,{data:Q.data,themeOverride:q})},
lpCouponBannerViewModel:function(Q){return _.w(n$N,{data:Q.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.Eu}});var Wqv=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ux8=_.NN(function(W){function e(){if(Wqv.has(W.data().displayType)){var u=!b(),c;if((c=W.disableDeselection)==null||!c.call(W)||u){W.data().selected=u;c=Object.assign({},Q(),{selected:u});X(c);var v;(v=W.callback)==null||v.call(W,c,u)}}}
var t=_.zT("chip-view-model"),b=function(){var u,c;return!!(((u=W.selected)==null?void 0:u.call(W))!==void 0?(c=W.selected)==null?0:c.call(W):Q().selected)},m=_.R(_.ZT(W.data)),q=m.next().value;
m=m.next().value;var Q=q,X=m,I=_.D_(dOK,function(){return W.data().chipEntityKey||""});
return _.w("chip-view-model",{class:"ytChipViewModelHost",el:t},_.w(nfh,{data:function(){var u,c=Object.assign({},Q(),{selected:b()}),v=I(),D=(u=W.disableDeselection)==null?void 0:u.call(W);a:switch(c.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":u=1;break a;default:u=0}return{text:(v==null?void 0:v.text)||c.text,state:c.disabled?1:c.selected?0:2,type:u,onTap:enz(c,t,e,D),accessibilityLabel:c.accessibilityLabel||c.text}}}))},"qc");
_.Ux8.idomCompat={callbacks:{callback:!0}};_.LvN=_.NN(function(W){var e=_.D_(NmQ,function(){var Q;return(Q=W.data())==null?void 0:Q.chipBarStateEntityKey}),t=function(){return W.data().disableDeselection},b=_.R(_.ZT(function(){var Q;
if(((Q=e())==null?void 0:Q.selectedIndex)!=void 0)return e().selectedIndex;var X,I;Q=_.R(((X=W.data())==null?void 0:(I=X.chips)==null?void 0:I.entries())||[]);for(X=Q.next();!X.done;X=Q.next()){X=_.R(X.value);I=X.next().value;X=X.next().value;var u=void 0;if((u=_.l(X,_.Kf))==null?0:u.selected)return I}return-1})),m=b.next().value,q=b.next().value;
return _.w("chip-bar-view-model",{class:_.ve("ytChipBarViewModelHost",W.className),role:"tablist"},_.w(_.nU,{data:function(){return W.data().chips}},{chipViewModel:function(Q,X){return _.w("div",{class:"ytChipBarViewModelChipWrapper"},_.w(_.Ux8,{data:Q.data,
selected:function(){return X()===m()},
callback:function(I,u){I=!!u;u=X();q(I?u:-1);var c,v=(c=W.data())==null?void 0:c.chipBarStateEntityKey;v&&I&&_.Uz(_.SX("chipBarStateEntity",v,{key:v,selectedIndex:u}))},
disableDeselection:W.disableDeselection||t}))}}))},"rc");_.mM(_.LvN,"chip-bar-view-model",{props:{data:_.bt,className:_.bt,disableDeselection:_.bt}});_.E$N=_.NN(function(W){var e=W.data;W={};return _.w("divider-view-model",{class:_.ve("divider-view-model-wiz",(W["divider-view-model-wiz__inset-thin-padding"]=function(){return e().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.w("div",{class:_.ve("divider-view-model-wiz__base-divider",function(){return txK(e().dividerStyle)}),
style:_.$D({"background-color":function(){return e().backgroundColor?_.sr(e().backgroundColor):void 0}})}))},"sc");
_.E$N.idomCompat=!0;_.mM(_.E$N,"divider-view-model",{props:{data:_.Eu}});var T_=new Map,gk=new Map,rIg=0,J3;var aic=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],cIK={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var AVZ,NI8;AVZ=function(W){return function(e){return function(){return String(e())+W}}};
_.$A=AVZ("px");NI8=AVZ("s");var WiU=_.NN(function(W){function e(L){return function(){var E=B().numItemsPerGridRow,RR=L()*E;E=RR+E;var uv,GS;return(GS=(uv=b().contents)==null?void 0:uv.slice(RR,E))!=null?GS:[]}}
var t=_.Ez(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),b=t.data,m=t.layoutContainerWidth,q=t.shouldUseOwnContainerSize,Q=t.marginSettings;t=_.R(_.up(!0,void 0,"qgr2Je"));var X=t.next().value,I=t.next().value,u=function(){var L,E=(L=_.l(b().showMoreButton,_.kb))==null?void 0:L.trackingParams;E&&_.wS(_.Sg(),E);I(!1)},c=function(){var L,E=(L=_.l(b().showLessButton,_.kb))==null?void 0:L.trackingParams;
E&&_.wS(_.Sg(),E);I(!0)};
t=_.zT("grid-shelf-view-model");var v=_.GKQ(t,{canHaveZeroSize:!1}),D=function(){var L;return(L=b().contentAspectRatio)!=null?L:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},B=_.SC(function(){var L=_.NV({containerWidth:q()&&v.width()>0?v.width()||m():m(),
sizing:"EXTRA_COMPACT",marginSettings:Q(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:L.maxContainerWidth,numItemsPerGridRow:L.numItems,contentPadding:q()?L.margin:L.contentMargin,itemWidth:L.itemWidth,itemMargin:L.gutter/2}},void 0,"pqVdjc"),k=function(){if(b().enableVerticalExpansion){if(X())return n();
var L,E,RR=(E=(L=b().contents)==null?void 0:L.length)!=null?E:0;return Math.ceil(RR/B().numItemsPerGridRow)}return B().numItemsPerGridRow<=2?2:1},n=function(){var L;
return Math.ceil(((L=b().minCollapsedItemCount)!=null?L:1)/B().numItemsPerGridRow)},f=function(){return b().enableVerticalExpansion&&b().showLessButton&&!X()&&k()>n()},M=function(){var L,E;
return b().enableVerticalExpansion&&b().showMoreButton&&X()&&((E=(L=b().contents)==null?void 0:L.length)!=null?E:0)>B().numItemsPerGridRow*n()},K=function(){return!f()},U=function(){return!M()},V={};
return _.w("grid-shelf-view-model",{class:_.ve("ytGridShelfViewModelHost",W.className,(V.ytGridShelfViewModelHostHasBottomButton=function(){return f()||M()},V)),
el:t,style:_.$D({"margin-left":(0,_.$A)(function(){return B().contentPadding}),
"margin-right":(0,_.$A)(function(){return B().contentPadding})})},_.w(_.G,{cond:function(){return _.l(b().header,lhB)},
then:function(L){return _.w(_.mX,{data:L,disableHorizontalPadding:!0})}}),_.w("div",null,_.w(_.lV,{each:function(){return Array(k())}},function(L,E){return _.w(dxo,{className:W.className,
items:e(E),responsiveGridShelfLayout:B,contentAspectRatio:D})})),_.w("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.w(_.nU,{data:function(){return b().showMoreButton}},{buttonViewModel:function(L){return _.w("div",{hidden:U},_.w(_.MV,{data:L.data,
onClick:u}))}}),_.w(_.nU,{data:function(){return b().showLessButton}},{buttonViewModel:function(L){return _.w("div",{hidden:K},_.w(_.MV,{data:L.data,
onClick:c}))}})))},"tc");
WiU.idomCompat=!0;var dxo=_.NN(function(W){var e=W.items;var t=W.responsiveGridShelfLayout;var b=W.contentAspectRatio;W=W.className;var m=_.zT("div");mHg(m,function(){a:{var Q=m.value;for(var X=e(),I=[],u=0;u<X.length;u++){var c=_.l(X[u],eDZ);if(!c||c==null||!c.inlinePlayerData){Q=null;break a}var v=Q.children.item(u);if(!v){Q=null;break a}I.push({thumbnailElement:v,videoData:c})}Q={gridVideoPreviewData:{gridItems:I}}}return Q});
var q=(0,_.$A)(function(){return-t().itemMargin});
return _.w("div",{el:m,class:_.ve("ytGridShelfViewModelGridShelfRow",W),style:_.$D({"margin-left":q,"margin-right":q})},_.w(_.nU,{data:e,replacementWrapper:function(Q){return _.w(e4S,{responsiveGridShelfLayout:t},Q)}},{shortsLockupViewModel:function(Q){return _.w(e4S,{responsiveGridShelfLayout:t},_.w(s6v,{data:Q.data,
aspectRatio:function(){return b()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),e4S=_.NN(function(W){return _.w("div",{style:_.$D({width:(0,_.$A)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"vc");
WiU.idomCompat=!0;_.mM(WiU,"grid-shelf-view-model",{props:{data:_.Eu,layoutContainerWidth:_.Eu,shouldUseOwnContainerSize:_.Eu,marginSettings:_.Eu,className:_.Eu}});_.tpZ=_.NN(function(W){var e=_.R(_.up(!1,void 0,"YYtxR")),t=e.next().value,b=e.next().value;e={};return _.w("yt-alert-banner-view-model",{class:_.ve("ytAlertBannerViewModelHost",W.className,function(){var m;a:switch((m=W.data())==null?void 0:m.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":m="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":m="ytAlertBannerViewModelWarning";break a;default:m="ytAlertBannerViewModelInformational"}return m},(e.ytAlertBannerViewModelDismissed=
t,e.ytAlertBannerViewModelFullbleed=W.fullbleed,e.ytAlertBannerViewModelNarrow=W.narrow,e.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,e))},_.w(_.G,{cond:function(){var m;
return!((m=W.data())==null?0:m.hideIcon)},
then:function(){return _.w("div",{class:"ytAlertBannerViewModelIcon"},_.w(_.kD,{icon:function(){return"info_circle"}}))}}),_.w("div",{class:"ytAlertBannerViewModelOuterContainer"},_.w("div",{class:"ytAlertBannerViewModelContainer"},_.w("div",{class:"ytAlertBannerViewModelContent"},_.w("div",{class:"ytAlertBannerViewModelHeading"},_.w(_.WL,{text:function(){var m;
return(m=W.data())==null?void 0:m.heading}})),_.w("div",{class:"ytAlertBannerViewModelBody"},_.w(_.WL,{text:function(){var m;
return(m=W.data())==null?void 0:m.body}})))),_.w(_.nU,{data:function(){var m;
return(m=W.data())==null?void 0:m.actionButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.w(_.nU,{data:function(){var m;
return(m=W.data())==null?void 0:m.dismissButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var q;((q=W.data())==null?0:q.disableLocalDismissBehavior)||b(!0)}})}}))},"wc");_.mM(_.tpZ,"yt-alert-banner-view-model",{props:{data:_.Eu,fullbleed:_.Eu,narrow:_.Eu,isInRichGrid:_.Eu,className:_.Eu}});var DHQ;DHQ=_.$b({chipViewModel:_.Ux8,buttonViewModel:_.MV});_.bRS=_.SN(SIZ,{callbacks:{callback:!0}});_.tA(SIZ);_.mM(_.bRS,"chips-shelf-view-model",{props:{data:_.Eu,callback:_.bt,enableSingleChipSelection:_.Eu,disableChipsScrollAnimation:_.Eu}});var mJZ=_.NN(function(W){W=_.Ez(W,{disabled:!1});var e=W.active,t=W.disabled;W={};W=_.ve("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return e()},W.ytSwitchShapeTrackDisabled=function(){return t()},W));
var b={};b=_.ve("ytSwitchShapeKnob",(b.ytSwitchShapeKnobActive=function(){return e()},b));
return _.w("switch-shape",{class:"ytSwitchShapeHost"},_.w("div",{class:W}),_.w("div",{class:b}))},"xc");var r$h=_.NN(function(W){var e=_.Ez(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),t=e.data;W=e.className;var b=e.handleOnTapEventInParent,m=e.parentActive;e=_.R(_.ZT(function(){var v;return(v=m())!=null?v:t().switchedOnByDefault||!1}));
var q=e.next().value,Q=e.next().value,X=function(){return t().isDisabled},I=_.zT("button");
e=_.Be(function(v){return v.key==="Enter"?(v.preventDefault(),I.value.click(),!1):!0});
var u=_.Be(function(v){if(t().handleOnTapEventInParent||b())return!0;if(X())return!1;opG(t(),q(),v);Q(!q());return!1}),c={};
c=_.ve("ytSwitchButtonViewModelButton",(c.ytSwitchButtonViewModelTappable=function(){return!X()},c));
return _.w("switch-button-view-model",{class:_.ve("ytSwitchButtonViewModelHost",W)},_.w("button",{el:I,class:c,"on:click":u,"on:keydown":e,"aria-label":function(){return q()?t().a11yLabelSwitchedOn:t().a11yLabelSwitchedOff},
"aria-checked":q,"aria-disabled":X,role:"switch"},_.w(mJZ,{active:q,disabled:X})))},"yc");var R4o=_.NN(function(W){var e=_.Ez(W,{checked:!1});W=e.name;var t=e.onChange,b=e.onClick,m=e.checked,q=e.labelRenderable,Q=e.hasLeadingLabel,X=e.labelClass,I=e.isCompact,u=e.selectElementClass;e=e.disableHorizontalPadding;var c="checkbox"+_.TR(_.Zm),v=_.Be(function(k){b==null||b(k);return!1}),D=_.Be(function(k){t==null||t(k);
return!1}),B={};
return _.w("checkbox-shape",null,_.w("label",{class:_.ve("checkbox-shape-wiz",X,(B["checkbox-shape-wiz--compact"]=I,B["checkbox-shape-wiz--disable-horizontal-padding"]=e,B))},_.w("input",{class:"checkbox-shape-wiz__input",id:c,checked:m,name:W,type:"checkbox","prop:checked":m,"on:change":D,"on:click":v}),_.w(_.G,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.w(qnk,{isLeading:!0,selectElementClass:u})}}),_.w(_.G,{cond:function(){return!!q},
then:function(){return _.w("div",{class:"checkbox-shape-wiz__label"},q==null?void 0:q())}}),_.w(_.G,{cond:Q,
then:function(){return _.w(qnk,{isLeading:!1,selectElementClass:u})}})))},"zc");
R4o.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var qnk=_.NN(function(W){var e=W.selectElementClass;W={};return _.w("div",{class:_.ve("checkbox-shape-wiz__checkbox",e,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(e==null?0:e())},W)),
"aria-hidden":"true"},_.w(_.kD,{icon:_.S("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.w(_.kD,{icon:_.S("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.kA=_.NN(function(W){var e=W.name;var t=W.onChange;var b=W.onClick;var m=W.checked;var q=W.labelRenderable;var Q=W.useCheckIcon;var X=W.hasLeadingLabel;var I=W.labelClass;var u=W.isCompact;var c=W.selectElementClass;var v=W.ariaLabel;W=W.className;var D="radio"+_.TR(_.Zm),B=_.zT("input"),k=_.Be(function(L){B.value.checked=!(m==null||!m());t==null||t(L);return!1}),n=_.Be(function(L){b==null||b(L);
return!1}),f=_.R(_.up(!1,void 0,"v5AMrb")),M=f.next().value,K=f.next().value;
f=_.Be(function(){var L;((L=_.ee().resolve(_.Wi(_.FN)))==null?0:L.isKeyBoardInUse())&&K(!0)});
var U=_.Be(function(){K(!1)}),V={};
return _.w("radio-shape",{class:_.ve("radio-shape-wiz",W)},_.w("input",{el:B,class:"radio-shape-wiz__input",id:D,"prop:checked":m,name:e,type:"radio","on:change":k,"on:click":n,"aria-label":v,"on:focusin":f,"on:focusout":U}),_.w("label",{class:_.ve("radio-shape-wiz__label-container",I,(V["radio-shape-wiz--compact"]=u,V["radio-shape-wiz__label-container--keyboard-focused"]=M,V)),for:D},_.w(_.G,{cond:function(){return!(X==null?0:X())},
then:function(){return _.w(Qiv,{checked:m,useCheckIcon:Q,isLeading:!0,selectElementClass:c})}}),_.w(_.G,{cond:function(){return!!q},
then:function(){return _.w("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(v==null?0:v())?"true":"false"}},q==null?void 0:q())}}),_.w(_.G,{cond:X,
then:function(){return _.w(Qiv,{checked:m,useCheckIcon:Q,isLeading:!1,selectElementClass:c})}})))},"Bc");
_.kA.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Qiv=_.NN(function(W){var e=W.useCheckIcon;var t=W.selectElementClass;W=function(){return(e==null?0:e())?"CHECK":_.S("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var b={};return _.w("div",{class:_.ve("radio-shape-wiz__radio",t,(b["radio-shape-wiz__radio--check-icon"]=e,b["radio-shape-wiz__radio--radio-default-style"]=function(){return!(t==null?0:t())},b)),
"aria-hidden":"true"},_.w(_.kD,{icon:W}),_.w(_.kD,{icon:W,active:function(){return!(e==null?0:e())}}))},"Cc");_.p$=_.NN(function(W){function e(){var Wu;((Wu=_.ee().resolve(_.Wi(_.FN)))==null?0:Wu.isKeyBoardInUse())&&ES(!0)}
function t(){ES(!1)}
var b=W.data;var m=W.isMenuItem;var q=W.isCompact;var Q=W.onTap;var X=W.trailingAccessory;var I=W.hideSelectionTextChevron;var u=W.disabled;var c=W.inPopup;var v=W.disableHorizontalPadding;var D=W.isOverlay;var B=W.isToggled;var k=_.S("apply_button_role_to_list_item"),n=_.MA(function(Wu){a:{var pr=b();if((pr==null?0:pr.entitySelectorType)&&(pr==null?0:pr.entityKey))switch(pr.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Wu=_.eBQ(Wu,pr.entityKey);
Wu=Wu==null?void 0:Wu.value;pr=!1;Wu==="CAPTIONS_UNAVAILABLE"&&(pr=!0,Wu="");Wu=Object.assign({},!!Wu&&{selectionText:{content:Wu}},{isSelected:!!Wu},!!Wu&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:pr});break a;default:Wu={}}else Wu={}}return Wu}),f=function(){return _.S("enable_web_shorts_captions_language_command")?Object.assign({},b(),n()):b()},M=function(){return!(f().isSelected===void 0||!f().selectionStyle||f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
K=function(){return(_.zz(f().rendererContext)||Q)&&!M()},U=function(){return _.zz(f().rendererContext)||M()};
W={};D=_.ve("yt-list-item-view-model-wiz",(W["yt-list-item-view-model-wiz--is-overlay"]=D,W["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!k&&hz()},W));
W={};var V=_.ve("yt-list-item-view-model-wiz__label",(W["yt-list-item-view-model-wiz__container"]=function(){return!M()},W["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!f().isDisabled||!(u==null||!u())},W["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!f().subtitle},W["yt-list-item-view-model-wiz__container--compact"]=q,W["yt-list-item-view-model-wiz__container--tappable"]=K,W["yt-list-item-view-model-wiz__container--in-popup"]=c,W["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return k&&hz()},W["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(v==null?void 0:v())&&!M()},W));
W={};var L=_.ve("yt-list-item-view-model-wiz__container",(W["yt-list-item-view-model-wiz__container--tappable"]=U,W["yt-list-item-view-model-wiz__container--compact"]=q,W["yt-list-item-view-model-wiz__container--in-popup"]=c,W["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(v==null?void 0:v())&&M()},W)),E=function(){return f().leadingImage||f().leadingAccessory},RR=_.ve("yt-list-item-view-model-wiz__image-container",function(){return E()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
c=_.zT("yt-list-item-view-model");var uv=_.zT("div"),GS=k?uv:c,k9=_.NN(function(){return _.w(_.G,{cond:function(){return k},
then:function(){return _.w("div",{class:V,el:uv,role:function(){return U()||K()?"button":void 0},
tabindex:function(){return Q||K()?0:void 0},
"on:keydown":fQ,"on:click":CQ},_.w(Fi8,{data:f,hideSelectionTextChevron:I,trailingAccessory:X,isToggled:B}))},
else:function(){return _.w("div",{class:V,el:uv},_.w(Fi8,{data:f,hideSelectionTextChevron:I,trailingAccessory:X,isToggled:B}))}})},"Dc");
k9.idomCompat=!0;_.UQ(c,function(){return f().rendererContext});
var CQ=_.Be(function(Wu){return void(Q==null?void 0:Q(Wu))}),fQ=_.rRz(),iv=_.R(_.up(!1,void 0,"kFezJc"));
W=iv.next().value;iv=iv.next().value;var hz=W,ES=iv;_.nt(function(){K()&&(GS.value.addEventListener("focusin",e),GS.value.addEventListener("focusout",t));_.fh(function(){GS.value&&K()&&(GS.value.removeEventListener("focusin",e),GS.value.removeEventListener("focusout",t))})});
W=_.Be(function(){return!0});
return _.w("yt-list-item-view-model",{el:c,class:D,role:function(){return(m==null?0:m())?"menuitem":"listitem"},
tabindex:function(){var Wu=K();Wu=k?void 0:Q||Wu?0:void 0;return Wu},
"on:keydown":k?W:fQ,"on:click":k?W:CQ},_.w(_.G,{cond:M,then:function(){return _.w(_.kq,null,_.w(_.Zb,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.w(R4o,{labelRenderable:function(){return _.w(k9,null)},
isCompact:q,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:L,selectElementClass:RR,disableHorizontalPadding:v})}),_.w(_.Zb,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.w(_.kA,{labelRenderable:function(){return _.w(k9,null)},
isCompact:q,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:L,selectElementClass:RR})}),_.w(_.Zb,{when:function(){return f().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.w(_.kA,{labelRenderable:function(){return _.w(k9,null)},
isCompact:q,checked:function(){return f().isSelected},
hasLeadingLabel:function(){return!!E()},
labelClass:L,selectElementClass:RR,useCheckIcon:!0})}),_.w(_.$q,null,function(){return _.w(k9,null)}))},
else:function(){return _.w(k9,null)}}))},"Ec");
_.p$.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Fi8=_.NN(function(W){var e=W.data;var t=W.hideSelectionTextChevron;var b=W.trailingAccessory;var m=W.isToggled;return _.w(_.qD,null,_.w(X8v,{data:e,isLeading:!0,hideSelectionTextChevron:function(){return!(t==null||!t())},
isToggled:m}),_.w(Ixv,{data:e}),_.w(_.G,{cond:function(){return!!b},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__trailing"},b==null?void 0:b())},
else:function(){return _.w(X8v,{data:e,isLeading:!1,hideSelectionTextChevron:function(){return!(t==null||!t())},
isToggled:m})}}))},"Fc"),X8v=_.NN(function(W){var e=W.data;
var t=W.isLeading;var b=W.hideSelectionTextChevron;var m=W.isToggled;var q=_.ve("yt-list-item-view-model-wiz__button-container");W={};var Q=_.ve("yt-list-item-view-model-wiz__image-container",(W["yt-list-item-view-model-wiz__leading"]=t,W["yt-list-item-view-model-wiz__trailing"]=function(){return!t()},W)),X=function(){return t()?e().leadingImage:e().trailingImage},I=_.ve("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
W={};var u=_.ve("yt-list-item-view-model-wiz__accessory",(W["yt-list-item-view-model-wiz__leading"]=t,W["yt-list-item-view-model-wiz__trailing"]=function(){return!t()},W)),c=function(){a:switch(e().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var v="expand_more";
break a;default:v="chevron_right"}return v};
return _.w(_.G,{cond:function(){var v=e(),D=t();return!!(D&&(v.leadingImage||v.leadingAccessory)||!D&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.selectionText))},
then:function(){return _.w(_.qD,null,_.w(_.G,{cond:X,then:function(v){return _.w("div",{class:Q,"aria-hidden":"true"},_.w(_.A_,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0,className:I,isToggled:m}))}}),_.w(_.G,{cond:function(){return t()&&e().leadingAccessory},
then:function(){return _.w("div",{class:Q},_.w(_.nU,{data:function(){return e().leadingAccessory}},{avatarViewModel:function(v){return _.w(_.pz,{data:v.data,
avatarButtonCustomClassName:I})},
collectionThumbnailViewModel:fXv}))}}),_.w(_.G,{cond:function(){return!t()&&e().trailingButton},
then:function(){return _.w("div",{class:q},_.w(_.nU,{data:function(){return e().trailingButton}},{buttonViewModel:function(v){return _.w(_.MV,{data:v.data,
className:u})}}))}}),_.w(_.G,{cond:function(){var v;
return!t()&&((v=e().trailingButtons)==null?void 0:v.buttons)},
then:function(){return _.w("div",{class:q},_.w(_.nU,{data:function(){var v;return(v=e().trailingButtons)==null?void 0:v.buttons}},{buttonViewModel:function(v){return _.w(_.MV,{data:v.data,
className:u})},
accountLinkButtonViewModel:function(v){return _.w(Hb2,{data:v.data,className:u})},
switchButtonViewModel:function(v){return _.w(r$h,{data:v.data,className:u})},
subscribeButtonViewModel:function(v){return _.w(_.$I,{data:v.data,isOverlay:!1,animateWidth:!1,className:u})},
toggleButtonViewModel:function(v){return _.w(_.fU,{data:v.data,className:u})}}))}}),_.w(_.G,{cond:function(){return!t()&&!!e().selectionText},
then:function(){return _.w(_.qD,null,_.w(_.WL,{text:function(){return e().selectionText},
className:_.ve("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.w(_.G,{cond:function(){return!b()},
then:function(){return _.w(_.kD,{icon:c,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),Ixv=_.NN(function(W){var e=W.data;
return _.w(_.G,{cond:function(){return e().title||e().subtitle},
then:function(){return _.w("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.w("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.w(_.G,{cond:function(){return e().title},
then:function(t){return _.w(_.WL,{text:t,className:"yt-list-item-view-model-wiz__title"})}})),_.w(_.G,{cond:function(){return e().subtitle},
then:function(t){return _.w(_.WL,{text:t,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.ax8=_.NN(function(W){var e=W.data;var t=W.onTap;var b=W.onSwitch;var m=W.overrideDisabled;W=W.disableHorizontalPadding;var q=_.R(_.ZT(function(){var v;return((v=ZpQ(c()))==null?void 0:v.switchedOnByDefault)||!1})),Q=q.next().value,X=q.next().value;
q=_.R(_.up(!1,void 0,"ZHBkbb"));var I=q.next().value,u=q.next().value,c=function(){var v;if(!(v=e().switchButton)){var D=e();v=m==null?void 0:m();D={switchOnCommand:D.switchOnCommand,switchOffCommand:D.switchOffCommand,switchedOnByDefault:D.switchedOnByDefault,isDisabled:D.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:D.a11yLabelSwitchedOn,a11yLabelSwitchedOff:D.a11yLabelSwitchedOff};v!==void 0&&(D.isDisabled=v);v={switchButtonViewModel:D}}return v};
return _.w("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.w(_.p$,{data:function(){return{title:e().title,subtitle:e().attributedSubtitle,leadingImage:e().leadingImage,leadingAccessory:e().leadingAccessory,isDisabled:e().isDisabled}},
onTap:function(v){var D=ZpQ(c());!D||D.isDisabled||e().ignoreTapUntilCommandCompletes&&I()||(t==null||t(v),opG(D,Q(),v,e().ignoreTapUntilCommandCompletes,u),X(!Q()),b==null||b(Q()))},
trailingAccessory:function(){return _.w(_.nU,{data:c},{switchButtonViewModel:function(v){return _.w(r$h,{data:v.data,parentActive:Q,handleOnTapEventInParent:!!t})}})},
disableHorizontalPadding:W}))},"Ic");var w8y=_.NN(function(W){var e=_.zT("toggleable-list-item-view-model"),t=_.R(_.ZT(function(){var q,Q;return!!((q=W.data())==null?0:(Q=q.initialState)==null?0:Q.isToggled)})),b=t.next().value,m=t.next().value;
_.UQ(e,function(){return W.data().rendererContext});
t=_.Be(function(){m(!b())});
return _.w("toggleable-list-item-view-model",{el:e,class:_.ve("toggleableListItemViewModelHost",W.className),"on:click":t},_.w(_.G,{cond:b,then:function(){return _.w(_.nU,{data:function(){return W.data().toggledListItem}},{listItemViewModel:function(q){return _.w(_.p$,{data:q.data,
isToggled:b})}})},
else:function(){return _.w(_.nU,{data:function(){return W.data().defaultListItem}},{listItemViewModel:_.p$})}}))},"Jc");var use=_.Gv("DOWNLOAD",{},"Download"),c$r=_.Gv("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),v7P=_.Gv("RETRY",{},"Retry"),GHr=_.Gv("PAUSE_DOWNLOADING",{},"Pause downloading"),DJS=_.Gv("RESUME_DOWNLOAD",{},"Resume download"),$HQ={text:use,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},xL={text:c$r,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},yIG={text:v7P,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
kKv={text:GHr,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},pPK={text:DJS,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Sn8=_.NN(function(W){var e=function(){var X=W.data();X=_.Yb(X.rendererContext);var I;return(I=_.l(X,_.cS))==null?void 0:I.videoId},t=_.MA(function(X){var I=e(),u=np9(W.data());
return I?_.xg(X,I):u?_.Ob(X,u):"TRANSFER_STATE_UNKNOWN"}),b=_.D_(_.giQ,e),m=_.MA(function(X){return _.pzD(X,e(),np9(W.data()))}),q=function(){return CbQ(t(),b(),_.Yb(W.data().rendererContext),!!np9(W.data()))},Q=function(){return m()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.w("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Q},_.w(_.G,{cond:function(){return!Q()},
then:function(){return _.w(_.G,{cond:q,then:function(X){return _.w(_.lV,{each:X},function(I){return _.w(_.p$,{data:I,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup,disableHorizontalPadding:W.disableHorizontalPadding})})}})}}))},"Kc");
Sn8.idomCompat=!0;_.Bao=_.NN(function(W){var e=W.data;var t=W.isCompact;var b=W.hideSelectionTextChevron;var m=W.inPopup;var q=W.isOverlay;var Q=W.disableHorizontalPadding;var X=function(){return fiv(e())&&(m==null?void 0:m())};
W={};return _.w("yt-list-view-model",{class:_.ve("yt-list-view-model-wiz",(W["yt-list-view-model-wiz--kaios-spat-nav"]=Y_G&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",W)),role:function(){return X()?"menu":"list"},
style:_.$D({"max-height":function(){var I,u=(I=e())==null?void 0:I.visibleElementCount;if(u)return Toz(e())?(u+.5)*48+"px":(u+.5)*40+"px"}})},_.w(_.nU,{data:function(){return e().listItems}},{listItemViewModel:function(I){return _.w(_.p$,{data:I.data,
isMenuItem:X,isCompact:t,hideSelectionTextChevron:b,inPopup:m,isOverlay:q,disableHorizontalPadding:Q})},
toggleableListItemViewModel:function(I){return _.w(w8y,{data:I.data})},
downloadListItemViewModel:function(I){return _.w(Sn8,{data:I.data,isMenuItem:X,isCompact:t,inPopup:m,disableHorizontalPadding:Q})},
switchListItemViewModel:function(I){return _.w(_.ax8,{data:I.data,disableHorizontalPadding:Q})}}))},"Lc");
_.Bao.idomCompat=!0;var o7b=_.NN(function(W){var e=W.data;var t=W.isOverlay;W={};return _.w("yt-course-perks-view-model",{class:_.ve("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=t,W))},_.w("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w("div",null,_.w(_.G,{cond:function(){return e().perks},
then:function(b){return _.w(_.Bao,{data:function(){return{listItems:b()}},
isCompact:!0,isOverlay:t})}})))},"Mc");_.mM(o7b,"yt-course-perks-view-model",{props:{data:_.bt,isOverlay:_.bt}});_.mM(_.NN(function(W){var e=W.data;return _.w("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.w("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.w(_.WL,{text:function(){return e().progressSummary}})),_.w("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.w("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.$D({width:function(){return e().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.Eu}});var lx8=_.NN(function(W){var e={};return _.w("yt-progress-view-model",{class:_.ve("ytwProgressViewModelHost",(e.ytwProgressViewModelHostOverlay=_.LD(W.isOverlay,!1),e))},_.w(_.G,{cond:function(){return W.data().progressSummary},
then:function(t){return _.w("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.w(_.WL,{text:t}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressContainer"},_.w(_.G,{cond:function(){return W.data().leadingLabel},
then:function(t){return _.w("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.w(_.WL,{text:t}))}}),_.w("div",{class:"ytwProgressViewModelHostProgressBar"},_.w("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(W.data().progressPercentage||0)*100+"%"}}))))},"Oc");var yl=_.NN(function(W){var e=W.starNumber;var t=W.data;var b=function(){var m;return((m=t())==null?void 0:m.rating)||0};
return _.w(_.G,{cond:function(){return e()},
then:function(m){return _.w(_.kq,null,_.w(_.Zb,{when:function(){return b()>=m()-.25}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.kD,{icon:"STAR_FILLED"}))}),_.w(_.Zb,{when:function(){return b()>=m()-.75}},function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.kD,{icon:"STAR_HALF"}))}),_.w(_.$q,null,function(){return _.w("div",{class:"ytStarRatingViewModelHostStar"},_.w(_.kD,{icon:"STAR_BORDER"}))}))}})},"Pc"),ZRh=_.NN(function(W){W=W.data;
return _.w("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.w(yl,{starNumber:1,data:W}),_.w(yl,{starNumber:2,data:W}),_.w(yl,{starNumber:3,data:W}),_.w(yl,{starNumber:4,data:W}),_.w(yl,{starNumber:5,data:W}))},"Qc");_.mM(_.NN(function(W){var e=_.Ez(W,{}).data;return _.w("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.w("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.w(_.WL,{text:function(){var t;return(t=e())==null?void 0:t.title}})),_.w("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.w(_.G,{cond:function(){return e().starProgressViewModels},
then:function(t){return _.w("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.w(_.nU,{data:t},{progressViewModel:lx8}))}}),_.w("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.w("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.w(_.WL,{text:function(){var t;
return(t=e())==null?void 0:t.averageRatingLabel}})),_.w(_.G,{cond:function(){return e().zeroStateText},
then:function(t){return _.w("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.w(_.WL,{text:t}))}}),_.w(_.G,{cond:function(){return e().starRatingViewModel},
then:function(t){return _.w("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.w(_.nU,{data:t},{starRatingViewModel:ZRh}))}}),_.w("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.w(_.WL,{text:function(){var t;
return(t=e())==null?void 0:t.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.bt}});var $Jk;$Jk={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"}};_.kHB=_.NN(function(W){var e=_.zT("yt-learning-journey-loader-view-model"),t=_.wN();_.jm(function(){requestAnimationFrame(function(){var m;(m=t.lottieEl)==null||m.addEventListener("DOMLoaded",function(){var q;(q=W.onLottieLoaded)==null||q.call(W)})});
var b=W.data().browseEndpoint;b&&_.K4(b)});
return _.w("yt-learning-journey-loader-view-model",{class:_.ve("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var b;return((b=W.data)==null?void 0:b.call(W).targetId)||""},
el:e},_.w(_.G2,{className:_.ve("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return $Jk.animationConfig.name},
data:$Jk,animationRef:t}))},"Sc");_.mM(_.kHB,"yt-learning-journey-loader-view-model",{props:{data:_.Eu,className:_.bt,onLottieLoaded:_.bt}});var xHc=new Set,JIS=null;_.p8S=_.NN(function(W){var e=null,t=null,b=null,m=function(){return W.data()},q=_.R(_.up(-1,void 0,"H2gnQb")),Q=q.next().value,X=q.next().value,I=function(n){return Q()===n},u=function(n){return m().correctAnswerIndex===n},c=function(){return Q()!==-1},v=function(){return Q()===m().correctAnswerIndex},D=_.Be(function(){X(-1);
return!1}),B=function(){var n=c(),f=v();
return n?f?264685:264684:264683},k=function(n){return v()&&u(n)};
return _.w("learning-journey-quiz-view-model",{class:_.ve("learningJourneyQuizViewModelHost",W.className),style:_.$D({background:function(){return h3(MZ(m())).backgroundColor}})},_.w(_.G,{cond:function(){return!!m().video},
then:function(){return _.w("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.$D({background:function(){return h3(MZ(m())).videoBackgroundColor}})},_.w(_.nU,{data:function(){return m().video}},{lockupViewModel:function(n){return _.w(_.bO,{data:n.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.w("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.w("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.$D({"align-items":function(){return m().overflowMenu?"start":"center"}})},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.$D({"min-height":function(){return m().overflowMenu?"48px":"26px"}})},_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.dA(function(n){_.OR(B(),n,e,function(f){e=f})}),
style:_.$D({color:function(){return h3(MZ(m())).primaryTextColor}}),
"client-ve-type":B},_.w(_.WL,{text:function(){var n=m(),f=c(),M=v();return f?M?n.successTitle:n.failureTitle:n.questionHeaderText}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.w(_.G,{cond:c,
then:function(){return _.w("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.dA(function(n){_.OR(264687,n,t,function(f){t=f})}),
"on:click":D,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.$D({fill:function(){return h3(MZ(m())).primaryTextColor}})},_.w("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.w(_.nU,{data:function(){return m().overflowMenu}},{buttonViewModel:function(n){return _.w(_.MV,{data:n.data})}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.dA(function(n){_.OR(264688,n,b,function(f){b=f})}),
style:_.$D({color:function(){return h3(MZ(m())).secondaryTextColor}}),
"client-ve-type":264688},_.w(_.WL,{text:function(){var n=m();return c()?n.explanationText:n.questionSubheaderText}}))),_.w("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.w(_.lV,{each:function(){return m().optionsData||[]}},function(n,f){var M={};
return _.w("div",{class:_.ve("learningJourneyQuizViewModelHostQuizOptions",(M.learningJourneyQuizViewModelHostQuizHover=function(){return!c()},M.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return k(f())},M.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!v()&&I(f())},M.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return c()&&!I(f())},M)),
"on:click":_.Be(function(){if(c())return!1;X(f());return!1}),
style:_.$D({background:function(){return c()&&I(f())?"":h3(MZ(m())).optionColor}}),
role:"button","aria-disabled":c,"tab-index":"0","client-ve-type":264686},_.w(_.G,{cond:c,then:function(){var K={};return _.w("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var U=f();return u(U)?"0 0 24 24":"0 -960 960 960"},
class:_.ve("learningJourneyQuizViewModelHostQuizOptionIcon",(K.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return k(f())},K)),
style:_.$D({fill:function(){return h3(MZ(m())).primaryTextColor}})},_.w("path",{d:function(){var U=f();
return u(U)?"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"}}))}}),_.w(_.WL,{text:n.optionText}))})))))},"Tc");
_.p8S.idomCompat=!0;_.mM(_.p8S,"learning-journey-quiz-view-model",{props:{data:_.Eu,className:_.Eu}});var y$8=_.NN(function(W){var e=_.zT("yt-macro-marker-list-item-view-model");_.UQ(e,function(){return W.data().rendererContext});
var t=_.Ez(W,{palette:void 0,isLastItem:!1}),b=t.palette,m=t.isLastItem,q=function(){return W.data().isHighlighted},Q=function(){var u;
return Mx2((u=b())==null?void 0:u.iconDisabledColor)},X=function(){var u;
return Mx2((u=b())==null?void 0:u.primaryTitleColor)},I=function(){var u;
return Mx2((u=b())==null?void 0:u.secondaryTitleColor)};
t={};return _.w("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:e},_.w(_.nU,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:_.Lz}),_.w("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.w("div",{class:_.ve("ytMacroMarkerListItemViewModelTimeDescription",(t.ytMacroMarkerListItemViewModelHighlighted=q,t)),
style:_.$D({"background-color":function(){return q()?X():Q()},
color:function(){return q()?"":I()}})},_.w(_.WL,{text:function(){return W.data().timestamp}})),_.w("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.$D({"background-color":function(){return m()?"transparent":Q()}})}),_.w("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(q()?X():I())}},_.w(_.WL,{text:function(){return W.data().title}}))))},"Uc");_.jM=_.NN(function(W){function e(LQ){M("transform:translateX("+(_.Ot("HTML_DIR")==="rtl"?"":"-")+LQ+"px)")}
function t(LQ){return Math.min(Math.max(LQ,0),f()-E())}
function b(){var LQ=V()+k9();return m()?(Math.round(E()/LQ)||1)*LQ:0}
var m=function(){return W.data().items||[]},q=function(){return W.data().previousButton},Q=function(){return W.data().nextButton},X=function(){var LQ,sB;
return(sB=(LQ=W.disableArrows)==null?void 0:LQ.call(W))!=null?sB:!1},I=function(){var LQ;
return!((LQ=W.forceNarrowLayout)==null||!LQ.call(W))},u=_.zT("horizontal-shelf-view-model"),c=_.zT("div"),v=_.R(_.up(0,void 0,"FK8fq")),D=v.next().value,B=v.next().value;
v=_.R(_.up(0,void 0,"FXvjXe"));var k=v.next().value,n=v.next().value,f=k;k=_.R(_.up("",void 0,"dmCnjc"));v=k.next().value;var M=k.next().value;k=_.R(_.up(0,void 0,"LqBxue"));var K=k.next().value,U=k.next().value,V=K;k=_.R(_.up(0,void 0,"o2DdWe"));K=k.next().value;var L=k.next().value,E=K;k=_.R(_.up(!1,void 0,"u9PZCd"));var RR=k.next().value,uv=k.next().value;k=_.R(_.up(0,void 0,"TYwGid"));K=k.next().value;var GS=k.next().value,k9=K;k=_.R(_.up(0,void 0,"cLGHg"));var CQ=k.next().value,fQ=k.next().value;
k=_.R(_.up("50%",void 0,"aKvnEe"));var iv=k.next().value,hz=k.next().value,ES=function(){var LQ,sB=(LQ=W.data())==null?void 0:LQ.responsiveContainerConfiguration,z1,FD;return sB?XpD(sB==null?void 0:sB.responsiveSize):(FD=(z1=W.sizing)==null?void 0:z1.call(W))!=null?FD:"STANDARD"};
k=_.SC(function(){return!X()&&D()>0},void 0,"DIgCMb");
K=_.SC(function(){return!X()&&D()<f()-E()},void 0,"F5ZeCd");
var Wu=function(){B(t(D()-b()));e(D())},pr=function(){B(t(D()+b()));
e(D())},ay=function(){u.value!==null&&cu()},PU;
_.nt(function(){cu();window.ResizeObserver?(PU=new ResizeObserver(_.ot(ay,0)),PU.observe(u.value)):window.addEventListener("resize",ay)});
_.fh(function(){if(window.ResizeObserver){var LQ;(LQ=PU)==null||LQ.disconnect()}else window.removeEventListener("resize",ay)});
var cu=function(){var LQ=u.value.clientWidth,sB=W.includeMargin!==void 0?W.includeMargin():!1,z1;var FD=W.hasPeek!==void 0?W.hasPeek():!((z1=W.data())==null||!z1.hasPeek);LQ=_.NV({containerWidth:LQ,hasPeek:FD,sizing:ES(),marginSettings:sB?I()?4:1:0});GS(LQ.gutter);fQ(LQ.margin);U(LQ.itemWidth);uv(LQ.maxContainerWidth<528||I());L(LQ.maxContainerWidth);m()&&n((LQ.itemWidth+LQ.gutter)*m().length-LQ.gutter);if(m()){var DD;if(((DD=W.thumbnailAspectRatio)==null?void 0:DD.call(W))!==void 0){var nr;hz(V()/
g_D((nr=W.thumbnailAspectRatio)==null?void 0:nr.call(W))/2+"px")}else hz("50%")}};
return _.w("horizontal-shelf-view-model",{class:_.ve("ytwHorizontalShelfViewModelHost",W.className),el:u},_.w(_.G,{cond:function(){var LQ;return W.data().header&&!((LQ=W.horizontalShelfExperiments)==null?0:LQ.call(W).hideHeader)},
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.$D({width:function(){return E()+"px"},
padding:function(){return"0 "+CQ()+"px"}})},_.w(_.nU,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(LQ){return _.w(_.mX,{data:LQ.data,
disableHorizontalPadding:!0,forceSmallLayout:RR,useResponsiveLayout:!0})}}))}}),_.w("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.$D({"margin-top":function(){var LQ,sB=W.data().header&&!((LQ=W.horizontalShelfExperiments)==null?0:LQ.call(W).hideHeader),z1;return(((z1=W.ensureMarginTop)==null?0:z1.call(W))&&!sB?12:0)+"px"}})},_.w("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.$D({width:function(){return E()+"px"},
padding:function(){return"0 "+CQ()+"px"},
overflow:function(){return X()?"auto":"hidden"}})},_.w("div",{class:"ytwHorizontalShelfViewModelItems",
el:c,style:v},_.w(_.nU,{data:m},{macroMarkerListItemViewModel:function(LQ,sB){return _.w("div",{style:_.$D({width:function(){return V()+"px"},
"margin-right":function(){return(sB()===m().length-1?0:k9())+"px"}})},_.w(y$8,{data:LQ.data,
palette:_.LD(W.palette),isLastItem:function(){return sB()===m().length-1}}))},
lockupViewModel:function(LQ,sB){var z1=LQ.data;return _.w("div",{style:_.$D({width:function(){return V()+"px"},
"margin-right":function(){return(sB()===m().length-1?0:k9())+"px"}})},_.w(_.bO,{data:z1,
containerType:4,sizing:ES,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return sdz(z1())+"px"},
thumbnailTargetWidth:function(){return sdz(z1())}}))}}))),_.w(_.G,{cond:k,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.$D({top:function(){return iv()}})},_.w(_.nU,{data:q},{buttonViewModel:function(LQ){return _.w(_.MV,{data:LQ.data,
onClick:Wu})}}))}}),_.w(_.G,{cond:K,
then:function(){return _.w("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.$D({top:function(){return iv()}})},_.w(_.nU,{data:Q},{buttonViewModel:function(LQ){return _.w(_.MV,{data:LQ.data,
onClick:pr})}}))}})))},"Vc");
_.jM.idomCompat=!0;var jiP=_.NN(function(W){var e=function(){return W.data().targetId||""},t=function(){var k;
return((k=W.data())==null?void 0:k.expansionEntityKey)||""},b=_.D_(_.eBQ,t),m=!0,q=function(){var k;
return((k=b())==null?void 0:k.value)===e()},Q=function(k){_.Uz(_.SX("stringEntity",t(),{key:t(),
value:k?e():""}))};
_.jm(function(){m=!1;W.data().isExpanded&&Q(!0)});
var X=function(){if(q()){var k=!0;W.onCollapse!==void 0&&(k=W.onCollapse());k&&Q(!1)}else Q(!0)},I=_.Be(X),u=function(){var k;
return(((k=W.accordionStyle)==null?void 0:k.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},c=_.zT("div"),v=function(){var k,n;
return(n=(k=_.l(W.data().rendererContext,_.ly))==null?void 0:k.label)!=null?n:""},D={},B={};
return _.w("yt-accordion-item-view-model",{class:_.ve("ytAccordionItemViewModelHost",W.className,(D.ytAccordionItemViewModelExpanded=function(){return q()},D.ytAccordionItemViewModelHidden=function(){var k;
return(k=W.hideIfNotExpanded)==null?void 0:k.call(W)},D.ytAccordionItemViewModelMini=u,D)),
"data-target-id":e},_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:"ytAccordionItemViewModelLeftSection","on:click":I,title:v},_.w(_.WL,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:v})),_.w("div",{class:"ytAccordionItemViewModelRightSection"},_.w(_.nU,{data:function(){return q()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(k){return _.w(_.MV,{data:k.data,
className:"ytAccordionItemViewModelToggleButton",onClick:X})}}))),_.w("div",{class:"ytAccordionItemViewModelContainer"},_.w("div",{class:_.ve("ytAccordionItemViewModelContent",(B.ytAccordionItemViewModelExpandedSubtitle=function(){return q()},B)),
el:c,style:_.$D({"max-height":function(){return m?"auto":q()?c.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!q()}},_.w(_.G,{cond:function(){return!u()},
then:function(){return _.w(_.WL,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.w(_.nU,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(k){return _.w(_.jM,{data:k.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.C5B=_.NN(function(W){var e=_.R((0,_.t6y)(W.data)).next().value,t=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},b=function(){return t()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},m=_.R(_.up(!0,void 0,"FVec2e")),q=m.next().value,Q=m.next().value,X=function(){return b()&&q()},I=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Q(!q())}}},u=_.Be(function(){e().onTitleTap&&_.K4(e().onTitleTap||{})});
m={};return _.w("yt-accordion-view-model",{class:_.ve("ytAccordionViewModelHost",(m.ytAccordionViewModelMinimized=function(){return X()},m)),
"data-target-id":function(){return W.data().targetId||""}},_.w(_.G,{cond:function(){return b()||!!e().title},
then:function(){return _.w("div",{class:"ytAccordionViewModelHeader"},_.w("div",{class:"ytAccordionViewModelTitleSection"},_.w("div",{class:"ytAccordionViewModelTitleWrapper"},_.w(_.G,{cond:function(){return!!W.data().headerIcon},
then:function(){return _.w(_.kD,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var c;return(c=W.data().headerIcon)==null?void 0:c.iconType}})}}),_.w("div",{class:"ytAccordionViewModelTitle",
"on:click":u},_.w(_.WL,{className:"ytAccordionViewModelTitleText",text:function(){return e().title}})))),_.w("div",{class:"ytAccordionViewModelButtonSection"},_.w(_.G,{cond:b,
then:function(){return _.w(t3,{data:I,iconName:function(){return X()?"chevron_down":"chevron_collapse"}})}})))}}),_.w("div",{class:"ytAccordionViewModelContent"},_.w(_.nU,{data:function(){return e().contents}},{accordionItemViewModel:function(c){return _.w(jiP,{data:c.data,
className:"ytAccordionViewModelRow",accordionStyle:t,hideIfNotExpanded:X,onCollapse:function(){return b()?(Q(!0),!1):!0}})}})),_.w("div",null,_.w(_.G,{cond:function(){return!b()&&(!!e().disclaimerFooter||!!e().footer)},
then:function(){return _.w("div",{class:"ytAccordionViewModelFooter"},_.w(_.WL,{text:function(){return e().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.w(_.nU,{data:function(){return W.data().footer}},{flexibleActionsViewModel:function(c){return _.w(p2,{data:c.data,
layout:0})}}))}})))},"Xc");_.mM(_.C5B,"yt-accordion-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=null,t=null,b,m=(b=_.ee().resolve(_.Wi(_.zf)))==null?void 0:b(),q=_.R(_.up(!1,void 0,"EVXQGb"));b=q.next().value;var Q=q.next().value;q=_.R(_.up(!0,void 0,"W9FIJf"));var X=q.next().value,I=q.next().value,u=_.zT("textarea",function(f){_.OR(264503,f,e,function(M){e=M})}),c=function(f){Q(!0);
f={learningJourneyFormData:{query:f}};_.K4(W.data().searchEndpoint||{},{form:{formData:f}});return!1},v=_.Be(function(f){f.target.closest("button-view-model")&&Q(!0)});
q=_.Be(function(){I(u.value.value.length===0)});
var D=_.Be(function(f){if(f.key==="Enter"&&!f.shiftKey&&!X()){var M=f.target;f.preventDefault();c(M.value)}}),B={},k={},n={};
return _.w("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.w("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.w(_.A_,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.w("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.w("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.w("div",{class:_.ve("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=m,B))},_.w("textarea",{class:_.ve("ytLearningJourneyZeroStateTextInput",(k.ytLearningJourneyZeroStateTextInputDark=m,k)),el:u,"on:keyup":q,"on:keydown":D,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.w("div",{class:_.ve("ytLearningJourneyZeroStateSearchButtonContainer",(n.ytLearningJourneyZeroStateSearchButtonContainerDark=m,n))},_.w(_.MV,{data:function(){return _.l(W.data().searchButton,_.kb)},
className:"search-button",onClick:function(){return c(u.value.value)},
buttonOverrides:function(){return{disabled:X(),style:m?"mono-inverse":"mono",size:"XL"}}}))),_.w(_.G,{cond:function(){return!!W.data().errorBanner},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.dA(function(f){_.OR(264617,f,t,function(M){t=M})})},_.w(_.nU,{data:function(){return W.data().errorBanner}},{alertBannerViewModel:function(f){return _.w(_.tpZ,{data:f.data,
"client-ve-type":264617})}}))}})),_.w(_.G,{cond:b,
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.w(_.nU,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(f){return _.w(_.kHB,{data:f.data})}}))},
else:function(){return _.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.w(_.G,{cond:function(){return!!W.data().learningJourneyShelf},
then:function(){return _.w("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().learningJourneySectionTitle}),_.w(_.nU,{data:function(){return W.data().learningJourneyShelf}},{horizontalShelfViewModel:_.jM}))}}),_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.w("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),
_.w("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":v},_.w(_.nU,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(f){return _.w(p2,{data:f.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.Eu}});var n7e=_.NN(function(W){var e=W.data;return _.w("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ve("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.w(_.WL,{text:function(){var t;return(t=e())==null?void 0:t.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.w(_.nU,{data:function(){return e().actionButton}},{buttonViewModel:function(t){return _.w(_.MV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:t.data})}}))},"Zc");var fxb=_.NN(function(W){var e=W.data;return _.w("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ve("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.w(_.WL,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var t;return(t=e())==null?void 0:t.displayName},
ellipsisTruncate:!0}),_.w(_.nU,{data:function(){return e().badge}},{buttonViewModel:function(t){return _.w(_.MV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:t.data})}}))},"$c");_.mM(_.NN(function(W){var e=W.data;return _.w("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.w("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.w(_.WL,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var t;return(t=e())==null?void 0:t.rank}})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.w(_.nU,{data:function(){return e().avatar}},{avatarViewModel:_.pz})),_.w("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.w(_.nU,{data:function(){return e().content}},{liveLeaderboardItemChannelContentViewModel:fxb,
liveLeaderboardItemActionContentViewModel:n7e})),_.w(_.WL,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var t;return(t=e())==null?void 0:t.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;return _.w("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.w(_.WL,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var t,b;return(t=e())==null?void 0:(b=t.ranking)==null?void 0:b.rank}}),_.w("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.w(_.nU,{data:function(){return e().avatar}},{avatarViewModel:_.pz})),_.w(_.WL,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var t,b;return(t=e())==null?void 0:(b=t.channelContent)==null?void 0:b.channelName}}),_.w(_.WL,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var t;return(t=e())==null?void 0:t.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Eu}});var g7h=_.NN(function(W){W=_.Ez(W,{wrapper:!1}).wrapper;return _.w(_.G,{cond:W,then:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.w("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.w("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
g7h.idomCompat=!0;var Tah=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],J$P=_.NN(function(W){var e=W.data;var t=_.zT("div"),b=_.SC(function(){return e().command},void 0,"tJY20c");
_.nh(function(){b()&&_.sD(b(),{form:{element:t.value}})},"qs6Sof");
return _.w("div",{el:t,class:"YtQrCodeRendererHostContainer"},_.w(_.G,{cond:function(){return e().qrCodeImage},
then:function(m){return _.w(_.A_,{data:m,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.w(_.G,{cond:function(){return e().spinner},
then:function(){return _.w(g7h,null)}})}}),_.w(_.G,{cond:function(){return e().label},
then:function(m){return _.w(_.WL,{text:m,className:"YtQrCodeRendererHostLabel"})}}),_.w(_.G,{cond:function(){return e().labels},
then:function(m){return _.w("div",{class:"YtQrCodeRendererHostLabels"},_.w(_.lV,{each:m},function(q){return _.w(_.WL,{text:q})}))}}))},"ed");_.mM(_.NN(function(W){var e=W.data;var t=_.SC(function(){return e().qrEntityKey},void 0,"joYCxd"),b=_.SC(function(){return e().deleteEntityOnDismiss},void 0,"x3yAde"),m=_.SC(function(){return e().command},void 0,"dJe1Re"),q=_.D_(y6Z,t);
W=_.SC(function(){return e().qrCodeImage},void 0,"qM5dZe");
var Q=_.SC(function(){return e().style&&Tah.includes(e().style)},void 0,"CaNEkf"),X=_.zT("yt-qr-code-renderer");
_.ev(X,{visibilityCallback:function(I){I&&m()&&_.sD(m())},
showOption:{calledOnce:!0,state:"visible"}});_.nt(function(){_.fh(function(){b()&&t()&&_.Yt().dispatch(_.SX("qrCodeEntity",t()))})});
return _.w("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:X},_.w(_.G,{cond:Q,then:function(){return _.w(_.G,{cond:q,then:function(I){return _.w(J$P,{data:I})}})}}),_.w(_.G,{cond:W,
then:function(I){return _.w(_.A_,{data:I,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.Eu}});_.xJZ=_.NN(function(W){var e=W.data;var t=W.topbarOffset;var b,m=((b=_.ee().resolve(_.Wi(_.zf)))==null?void 0:b())||!1;return _.w("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var q=e();var Q,X,I=m?(Q=q.config)==null?void 0:Q.darkThemeBackgroundColor:(X=q.config)==null?void 0:X.lightThemeBackgroundColor;q=I?_.sr(I):void 0;q="background-color: "+q+";";t!==void 0&&(q+="top: -"+t()+"px;");return q},
"aria-hidden":!0},_.w(_.G,{cond:function(){var q,Q,X;return!!((q=e().backgroundImageConfig)==null?0:(Q=q.image)==null?0:(X=Q.sources)==null?0:X.length)},
then:function(){return _.w(_.A_,{data:function(){var q;return(q=e().backgroundImageConfig)==null?void 0:q.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.w("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+hnG(m,e().gradientColorConfig)+";"}}))},"fd");
_.xJZ.idomCompat=!0;var C$=_.NN(function(W){var e=W.className;var t=W.data;var b=W.isOverlay;var m=W.maxLinesOverride;var q=W.useMediumText;W=_.zT("yt-description-preview-view-model");var Q=function(){return t().alwaysShowTruncationText},X=function(){return t().truncationText},I=function(){return q!==void 0&&q()?"medium":"small"},u=function(){return b!==void 0&&b()?"overlay":"default"},c=function(){var n,f;
return(f=(n=_.l(t().rendererContext,_.ly))==null?void 0:n.label)!=null?f:""},v=_.R(_.up(!1,void 0,"mkuWzb")),D=v.next().value,B=v.next().value;
_.UQ(W,function(){return t().rendererContext});
v=_.Be(function(){t().expandOnTap&&B(!D());return!1});
var k={};return _.w("yt-description-preview-view-model",{el:W,class:_.ve("yt-description-preview-view-model-wiz",e,(k["yt-description-preview-view-model-wiz--clickable"]=function(){var n;return!((n=_.l(t().rendererContext,G8D))==null||!n.onTap)},k["yt-description-preview-view-model-wiz--is-overlay"]=b,k)),
"on:click":v},_.w(_.G,{cond:function(){return t().description},
then:function(n){return _.w(_.G,{cond:D,then:function(){var f={};return _.w("div",{class:_.ve("yt-description-preview-view-model-wiz__description",(f["yt-description-preview-view-model-wiz__description--medium-text"]=q,f))},_.w(_.WL,{text:n}))},
else:function(){return _.w(mFB,{text:n,alwaysShowTruncationText:Q,truncationText:X,maxLines:function(){var f;return(f=m==null?void 0:m())!=null?f:t().maxLines},
textStyle:u,accessibilityLabel:c,textSize:I})}})}}))},"gd");
C$.idomCompat=!0;var ORP=_.NN(function(W){var e=W.data;var t=W.isOverlay;return _.w("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.w("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.w(_.nU,{data:function(){return e().header}},{sectionHeaderViewModel:function(b){return _.w(_.mX,{data:b.data,
isOverlay:t})}})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.w(_.nU,{data:function(){return e().channelInfoButtons}},{flexibleActionsViewModel:p2})),_.w("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.w(_.nU,{data:function(){return e().description}},{descriptionPreviewViewModel:function(b){return _.w(C$,{data:b.data,
isOverlay:t})}})))},"hd");
ORP.idomCompat=!0;var Mpy=_.NN(function(W){var e=W.data;var t={};return _.w("factoid-view-model",{class:_.ve("ytwFactoidViewModelHost",(t.ytwFactoidViewModelHostOverlay=W.isOverlay,t))},_.w(_.WL,{text:function(){return e().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.w(_.WL,{text:function(){return e().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
Mpy.idomCompat=!0;var siB=_.NN(function(W){var e=W.data;var t=W.isOverlay;return _.w("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.w(_.nU,{data:function(){return e().factoids}},{factoidViewModel:function(b){return _.w(Mpy,{data:b.data,
isOverlay:t})}}))},"jd");
siB.idomCompat=!0;_.h48=_.NN(function(W){var e=W.data;var t=W.isOverlay;return _.w("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.w(_.nU,{data:function(){return e().items}},{channelInfoViewModel:function(b){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(ORP,{data:b.data,
isOverlay:t}))},
coursePerksViewModel:function(b){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(o7b,{data:b.data,isOverlay:t}))},
descriptionPreviewViewModel:function(b){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(C$,{data:b.data,isOverlay:t}))},
factoidsRowViewModel:function(b){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(siB,{data:b.data,isOverlay:t}))},
progressViewModel:function(b){return _.w("div",{class:"ytwCourseMetadataViewModelHostItem"},_.w(lx8,{data:b.data,isOverlay:t}))}}))},"kd");var HRB=_.NN(function(W){return _.w("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.w(_.nU,{data:function(){return W.data().content}},{courseMetadataViewModel:function(e){return _.w(_.h48,{data:e.data,
isOverlay:W.isOverlay})},
progressViewModel:function(e){return _.w(lx8,{data:e.data})}}))},"ld");var Ki8=_.NN(function(W){var e=W.data;W=W.className;var t=_.zT("yt-dynamic-text-view-model"),b=function(){var q;return _.zz((q=e())==null?void 0:q.rendererContext)},m={};
m=(m["dynamic-text-view-model-wiz"]=!0,m["dynamic-text-view-model-wiz--tappable"]=function(){return b()},m);
_.UQ(t,function(){var q;return(q=e())==null?void 0:q.rendererContext});
return _.w("yt-dynamic-text-view-model",{el:t,role:function(){return b()?"link":void 0},
tabindex:function(){return b()?0:void 0},
class:_.ve(W,m)},_.w("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var q,Q,X;return(X=(Q=_.l((q=e())==null?void 0:q.rendererContext,_.ly))==null?void 0:Q.label)!=null?X:""}},_.w(_.WL,{text:function(){return e().text},
userInput:!0})))},"md");
Ki8.idomCompat=!0;_.P5h=_.NN(function(W){var e=W.data;var t=W.isPositionRelative;var b=_.Um("yt-image-banner-view-model"),m=_.KqG("(max-width: 527.9px)"),q=function(){var Q,X;return(X=(Q=e())==null?void 0:Q.style)!=null?X:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};W=(W["yt-image-banner-view-model-wiz"]=!0,W["yt-image-banner-view-model-wiz--inset"]=function(){return PbG(q())},W["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.TQ(!0)&&!(t==null?0:t())},W["yt-image-banner-view-model-wiz--small-inset"]=function(){return PbG(q())&&m()},W["yt-image-banner-view-model-wiz--tappable"]=function(){var Q;
return _.TQ(b.value)&&_.zz((Q=e())==null?void 0:Q.rendererContext)},W);
_.UQ(b,function(){var Q;return(Q=e())==null?void 0:Q.rendererContext});
return _.w("yt-image-banner-view-model",{el:b,class:_.ve(W)},_.w(_.G,{cond:function(){var Q;return(Q=e())==null?void 0:Q.image},
then:function(){return _.w(_.A_,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.w(_.nU,{data:function(){var Q;
return(Q=e())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:ko}))},"nd");
_.P5h.idomCompat=!0;var Vpy;Vpy=_.NN(function(W){var e=W.condition;var t=W.content;return _.w(_.G,{cond:e,then:function(){return _.w("div",{class:"page-header-view-model-wiz__scroll-container"},t())},
else:function(){return t()}})},"od");
_.iRU=_.NN(function(W){var e=W.data;var t=W.noPadding;var b=W.enableBanner;var m=W.cinematicContainerTopbarOffset;var q=W.allowCinematicContainerOverflow;var Q=W.displayAsSidebar;var X=W.displayAsPanel;var I=VxS(),u=function(){return!!e().image||!!e().animatedImage},c=function(){return!!e().background},v=function(){return(Q==null?0:Q())||(X==null?0:X())?1:I()},D=function(){return v()===1},B=function(){return D()||v()===2},k=function(){return v()===4},n=function(){var CQ=e();
var fQ=!!e().heroImage;var iv=v(),hz=ipG(e()),ES=Q==null?void 0:Q(),Wu=!CQ.metadata,pr;if(pr=fQ?_.l(CQ.heroImage,Ihe):_.l(CQ.animatedImage||CQ.image,Ihe)){CQ=pr.style;var ay=pr.layoutMode;if(ay!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(pr=$F9(ZW2(pr)),fQ)fQ=Hpz(iv,CQ,ay,pr,ES);else b:if(Wu)fQ=iv===1?{size:48}:{size:72};else switch(iv){case 1:fQ={size:72};break b;case 2:fQ={size:120};break b;default:fQ=hz<4?{size:120}:{size:160}}else fQ=void 0}else fQ={size:0};return fQ};
W={};W=_.ve((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=function(){return!(t==null||!t())},W["page-header-view-model-wiz--small-top-padding"]=function(){return D()&&!e().actions&&!(X==null?0:X())||v()===2&&!(u()||e().heroImage)},W["page-header-view-model-wiz--small-bottom-padding"]=function(){return B()&&!e().actions&&!(X==null?0:X())},W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(q==null?0:q())},W["page-header-view-model-wiz--display-as-sidebar"]=
Q,W));
var f={},M=_.ve((f["page-header-view-model-wiz__page-header-headline"]=!0,f["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var CQ;return(CQ=n())==null?void 0:CQ.allowFullWidth},f)),K=function(){var CQ;
return B()&&!((CQ=n())==null?0:CQ.allowFullWidth)},U=function(){return D()&&(!!e().heroImage||u())&&ipG(e())>0},V=function(){return U()&&(X==null?void 0:X())};
f={};var L=_.ve((f["page-header-view-model-wiz__page-header-title"]=!0,f["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!U()},f["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return U()&&!V()},f["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=V,f["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=c,f));
f={};var E=_.ve((f["page-header-view-model-wiz__page-header-headline-image"]=!0,f["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!e().heroImage&&B()},f));
f={};var RR=_.ve((f["page-header-view-model-wiz__page-header-banner-container"]=b,f["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var CQ;return(b==null?void 0:b())&&((CQ=_.l(e().banner,_.wzB))==null?void 0:CQ.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},f));
f={};var uv=_.ve((f["page-header-view-model-wiz__page-header-content-metadata"]=!0,f["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=c,f));f={};var GS=_.ve((f["page-header-view-model-wiz__page-header-flexible-actions"]=!0,f["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!e().metadata||B()},f["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!B()},f));
f={};var k9=_.ve((f["page-header-view-model-wiz__page-header-attribution"]=!0,f["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=c,f));return _.w("yt-page-header-view-model",{class:W},_.w(_.G,{cond:c,then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-background"},_.w(_.nU,{data:function(){return e().background}},{cinematicContainerViewModel:function(CQ){return _.w(_.xJZ,{data:CQ.data,
topbarOffset:m})}}))}}),_.w(Vpy,{condition:function(){return!(Q==null||!Q())},
content:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-content"},_.w(_.G,{cond:function(){return(b==null?void 0:b())&&e().banner},
then:function(){return _.w("div",{class:RR},_.w(_.nU,{data:function(){return e().banner}},{imageBannerViewModel:_.P5h}))}}),_.w("div",{class:M},_.w(_.G,{cond:u,
then:function(){return _.w(_.nU,{data:function(){var CQ;if(!(CQ=e().animatedImage)){CQ=e();if(u()){var fQ=CQ=Object.assign({},CQ),iv=v(),hz=ipG(e()),ES=fQ.image,Wu=_.l(ES,ahv),pr=Wu==null?void 0:Wu.avatar,ay=_.l(pr,_.LU);if(ES&&pr&&ay){switch(iv){case 1:ay.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ay.avatarImageSize="AVATAR_SIZE_XXL";break;default:hz<4?ay.avatarImageSize="AVATAR_SIZE_XXL":ay.avatarImageSize="AVATAR_SIZE_XXXL"}_.S("web_enable_sink_page_header_view_model")&&(_.gA(pr,_.LU,Object.assign({},
ay)),Wu.avatar=Object.assign({},pr),_.gA(ES,ahv,Object.assign({},Wu)),fQ.image=Object.assign({},ES))}}CQ=CQ.image}return CQ}},{contentPreviewImageViewModel:function(CQ){return _.w(_.WB,{data:CQ.data,
className:E,imageSizeConfig:n})},
decoratedAvatarViewModel:function(CQ){return _.w(_.yc,{data:CQ.data,className:E})}})}}),_.w(_.G,{cond:function(){return!!e().heroImage&&!K()},
then:function(){return _.w(_.nU,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(CQ){return _.w(_.WB,{data:CQ.data,
className:E,imageSizeConfig:n})}})}}),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.G,{cond:function(){return!!e().heroImage&&K()},
then:function(){return _.w("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.w(_.nU,{data:function(){return e().heroImage}},{contentPreviewImageViewModel:function(CQ){return _.w(_.WB,{data:CQ.data,
className:E,imageSizeConfig:n})}}))}}),_.w(_.nU,{data:function(){return e().title}},{dynamicTextViewModel:function(CQ){return _.w(Ki8,{data:CQ.data,
className:L})}}),_.w(_.nU,{data:function(){return e().metadata}},{contentMetadataViewModel:function(CQ){return _.w(_.zhk,{data:CQ.data,
layout:function(){return D()?1:0},
className:uv,isOverlay:c,useMediumText:k})}}),_.w(_.G,{cond:function(){return e().description&&!D()},
then:function(){return _.w(_.nU,{data:function(){return e().description}},{descriptionPreviewViewModel:function(CQ){return _.w(C$,{data:CQ.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:c,maxLinesOverride:function(){return D()?void 0:1},
useMediumText:k})}})}}),_.w(_.G,{cond:function(){return e().attribution&&!B()},
then:function(){return _.w(_.nU,{data:function(){return e().attribution}},{attributionViewModel:function(CQ){return _.w(hhZ,{data:CQ.data,
className:k9,useMediumText:k})}})}}),_.w(_.G,{cond:function(){return e().actions&&!B()},
then:function(){return _.w(_.nU,{data:function(){return e().actions}},{flexibleActionsViewModel:function(CQ){return _.w(p2,{data:CQ.data,
layout:function(){return YIg(v())},
className:GS})}})}}))),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.G,{cond:function(){return e().description&&D()},
then:function(){return _.w(_.nU,{data:function(){return e().description}},{descriptionPreviewViewModel:function(CQ){return _.w(C$,{data:CQ.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:c,maxLinesOverride:function(){return D()?void 0:1},
useMediumText:k})}})}}),_.w(_.G,{cond:function(){return e().attribution&&B()},
then:function(){return _.w(_.nU,{data:function(){return e().attribution}},{attributionViewModel:function(CQ){return _.w(hhZ,{data:CQ.data,
className:k9,useMediumText:k})}})}}),_.w(_.G,{cond:function(){return e().actions&&B()},
then:function(){return _.w(_.nU,{data:function(){return e().actions}},{flexibleActionsViewModel:function(CQ){return _.w(p2,{data:CQ.data,
layout:function(){return YIg(v())},
className:GS})}})}})),_.w("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.w(_.nU,{data:function(){return e().bottomMetadataFlexibleContainer}},{flexibleContainer:function(CQ){return _.w(HRB,{data:CQ.data,
isOverlay:c})}})))}}))},"pd");
_.iRU.idomCompat=!0;_.mM(_.NN(function(W){var e=_.R(_.up(!1,void 0,"j5qbkc")),t=e.next().value,b=e.next().value;return _.w("yt-official-card-view-model",{class:_.ve("ytOfficialCardViewModelHost",W.className),style:_.$D({"background-color":function(){var m,q=ETK((m=W.data())==null?void 0:m.backgroundColor);return q?_.h8(q):void 0}})},_.w(_.nU,{data:function(){return W.data().header}},{pageHeaderViewModel:function(m){return _.w(_.iRU,{data:m.data,
noPadding:!0})}}),_.w(_.nU,{data:function(){return W.data().contents}},{horizontalShelfViewModel:function(m){return _.w(_.jM,{data:m.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.w(_.G,{cond:t,
then:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandedContent"},_.w(_.nU,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(m){return _.w(_.jM,{data:m.data,
sizing:"MINI"})}}),_.w("div",{class:"ytOfficialCardViewModelCollapseButton"},_.w(_.nU,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
onClick:function(){b(!t())}})}})))},
else:function(){return _.w("div",{class:"ytOfficialCardViewModelExpandButton"},_.w(_.nU,{data:function(){return W.data().expandButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
onClick:function(){b(!t())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.Eu,
className:_.Eu}});var znQ=_.$b({buttonViewModel:_.MV});_.tA(UHc);_.a5(UHc,"ytw-search-friction-view-model",{propNames:["data"]});_.n$=_.NN(function(W){var e=_.zT("markdown-div"),t,b=(t=_.ee().resolve(_.Wi(_.zf)))==null?void 0:t();_.nh(function(){var m=e.value;var q=new TGb,Q=new Map(q.JSC$7347_sanitizerTable.globalAttributePolicies);Q.set("style",{policyAction:4});q.JSC$7347_sanitizerTable=new lD(q.JSC$7347_sanitizerTable.allowedElements,q.JSC$7347_sanitizerTable.elementPolicies,q.JSC$7347_sanitizerTable.allowedGlobalAttributes,Q,q.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes);var X=["data-time"];if(X===void 0)Q=
new Set(q.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes),Q.add("data-"),q.JSC$7347_sanitizerTable=new lD(q.JSC$7347_sanitizerTable.allowedElements,q.JSC$7347_sanitizerTable.elementPolicies,q.JSC$7347_sanitizerTable.allowedGlobalAttributes,q.JSC$7347_sanitizerTable.globalAttributePolicies,Q);else{Q=new Set(q.JSC$7347_sanitizerTable.allowedGlobalAttributes);X=_.R(X);for(var I=X.next();!I.done;I=X.next()){I=I.value;if(I.indexOf("data-")!==0)throw Error("ra`"+I);Q.add(I)}q.JSC$7347_sanitizerTable=
new lD(q.JSC$7347_sanitizerTable.allowedElements,q.JSC$7347_sanitizerTable.elementPolicies,Q,q.JSC$7347_sanitizerTable.globalAttributePolicies,q.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes)}Q=new Set(q.JSC$7347_sanitizerTable.allowedGlobalAttributes);Q.add("class");q.JSC$7347_sanitizerTable=new lD(q.JSC$7347_sanitizerTable.allowedElements,q.JSC$7347_sanitizerTable.elementPolicies,Q,q.JSC$7347_sanitizerTable.globalAttributePolicies,q.JSC$7347_sanitizerTable.globallyAllowedAttributePrefixes);
_.KF(m,_.jRU(q.build(),Epc(W.text())));AIc(e.value)},"FI2gYe");
t={};return _.w("div",null,_.w("markdown-div",{class:_.ve("ytwMarkdownDivHost",(t.ytwMarkdownDivDark=b,t.ytwMarkdownDivHostSmall=function(){var m;return((m=W.isSmallText)==null?void 0:m.call(W))||!1},t)),
el:e}))},"rd");
_.n$.idomCompat=!0;var YnN=_.NN(function(W){var e=W.imageData;var t=_.LD(W.isInList,!1),b=function(){return t()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.w("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.w(_.G,{cond:function(){return e().image},
then:function(m){return _.w(_.A_,{data:m,alt:function(){return b().alt},
contentMode:function(){return b().contentMode},
targetWidth:function(){return b().targetWidth},
targetHeight:function(){return b().targetHeight},
className:function(){return b().className}})}}),_.w("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.w("div",{class:_.ve("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.w(_.WL,{text:function(){return e().title}})),_.w(_.lV,{each:function(){var m;
return(m=e().description)!=null?m:[]}},function(m){return _.w("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.w(f$,{content:m}))})))},"sd"),z4S=_.NN(function(W){var e=W.list;
var t=function(){var b;return(b=e().items)!=null?b:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelListContent"},_.w(_.G,{cond:function(){return e().title},
then:function(b){return _.w("div",{class:_.ve("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.w(_.WL,{text:b}))}}),_.w(_.G,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.w("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.w(_.lV,{each:t},function(b){return _.w("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.w(f$,{content:b,isInList:!0}))}))}}),_.w(_.G,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.w("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.w(_.lV,{each:t},function(b){return _.w("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.w(f$,{content:b,isInList:!0}))}))}}),_.w(_.G,{cond:function(){return e().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelImageList"},_.w(_.lV,{each:t},function(b){return _.w("div",{class:"ytwGenAiRichTextViewModelListItem"},_.w(f$,{content:b,isInList:!0}))}))}}))},"td"),UJo=_.NN(function(W){var e=W.table;
return _.w("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.w("thead",null,_.w("tr",null,_.w(_.lV,{each:function(){var t,b;return(b=(t=e().header)==null?void 0:t.cells)!=null?b:[]}},function(t){return _.w("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.w(_.lV,{each:function(){return t.contents}},function(b){return _.w(f$,{content:b})}))}))),_.w("tbody",null,_.w(_.lV,{each:function(){var t;
return(t=e().rows)!=null?t:[]}},function(t){return _.w("tr",null,_.w(_.lV,{each:function(){return t.cells}},function(b){return _.w("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.w(_.lV,{each:function(){return b.contents}},function(m){return _.w(f$,{content:m})}))}))})))},"ud"),f$=_.NN(function(W){var e=W.content;
var t=_.LD(W.isInList,!1),b=function(){var m,q;return(q=(m=e().contentBlock)==null?void 0:m.contents)!=null?q:[]};
return _.w("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.w(_.G,{cond:function(){return e().text},
then:function(m){return _.w(_.WL,{className:"ytwGenAiRichTextViewModelText",text:m})}}),_.w(_.G,{cond:function(){return e().image},
then:function(m){return _.w(YnN,{imageData:m,isInList:t})}}),_.w(_.G,{cond:function(){return e().list},
then:function(m){return _.w(z4S,{list:m})}}),_.w(_.G,{cond:function(){return e().contentBlock},
then:function(){return _.w("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.w(_.lV,{each:b},function(m){return _.w(f$,{content:m,isInList:!1})}))}}),_.w(_.G,{cond:function(){return e().table},
then:function(m){return _.w(UJo,{table:m})}}))},"vd"),LiP=_.NN(function(W){var e={};
e=_.DT("ytwGenAiRichTextViewModelHost",(e.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.r8("search_overview_link_style")),e));return _.w("gen-ai-rich-text-view-model",{class:e},_.w(f$,{content:function(){return W.data().content}}))},"wd");_.tA(NoR);_.tA(HL);_.E7y=_.NN(function(W){var e=W.data;var t=function(){var n;return((n=e().loadingUi)!=null?n:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},b=function(){return e().isLoading&&(t()==="UNSPECIFIED"||t()==="GHOST_CARD")},m=function(){return!e().isLoading},q=function(){return!!e().content&&!e().contents},Q=function(){return!!e().contents},X=function(){return!!e().nextQueryButtons},I=function(){return e().isLoading&&t()==="INVISIBLE"},u=function(){var n,f;
return(f=(n=e().headerIcon)==null?void 0:n.iconType)!=null?f:""},c=function(){var n;
return(n=e().content)!=null?n:""},v=function(){return!!e().sourcesSection},D,B=!((D=_.ee().resolve(_.Wi(_.zf)))==null||!D()),k=_.SC(function(){var n=[],f=e().contents;
if(f)for(var M=0;M<f.length;M++){var K=_.l(f&&f[M],BJr);K&&n.push(K)}return n},void 0,"ycU97e");
_.nt(function(){e().isLoading||_.Tv("so_re",void 0,"search_overview_answer")});
return _.w("ytd-overview-answer-view-model",{class:function(){var n={};n=(n.ytdOverviewAnswerViewModelHost=!0,n.ytdOverviewAnswerViewModelDarkBackground=B&&!I(),n.ytdOverviewAnswerViewModelLightBackground=!B&&!I(),n);return _.DT(n)}},_.w(_.G,{cond:function(){return!I()},
then:function(){return _.w(_.qD,null,_.w("h2",null,_.w("div",{class:"ytdOverviewAnswerViewModelHeader"},_.w(_.G,{cond:u,then:function(n){return _.w("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.w(_.kD,{icon:n}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.w("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return e().headerText}),_.w("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.w(_.WL,{text:function(){return e().headerSubtext}}))))),_.w(_.G,{cond:b,
then:function(){return NoR()}}),_.w(_.G,{cond:m,
then:function(){return _.w(_.qD,null,_.w(_.G,{cond:q,then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelText"},_.w(_.n$,{text:c,isSmallText:!0}))}}),_.w(_.G,{cond:Q,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelRichText"},_.w(_.lV,{each:k},function(n){return _.w(LiP,{data:n})}))}}),_.w(_.G,{cond:X,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.w(_.nU,{data:function(){return e().nextQueryButtons}},{buttonViewModel:function(n){return _.w(_.MV,{data:n.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.jM}))}}),_.w("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.w("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.w(_.G,{cond:function(){return!!_.l(e().likeButtonViewModel,_.Tz)&&!!_.l(e().dislikeButtonViewModel,_.Jv)},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.w(_.jt,{data:function(){return _.l(e().likeButtonViewModel,_.Tz)},
disableIconAnimation:!0}),_.w(_.yA,{data:function(){return _.l(e().dislikeButtonViewModel,_.Jv)}}))}})),_.w(_.G,{cond:function(){var n;
return(n=e().sourcesSection)==null?void 0:n.headerText},
then:function(n){return _.w("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.w(_.WL,{text:n}))}})),_.w(_.G,{cond:v,
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelSources"},_.w(_.nU,{data:function(){var n;return(n=e().sourcesSection)==null?void 0:n.sourcesShelf}},{buttonViewModel:_.MV,
horizontalShelfViewModel:function(n){return _.w(_.jM,{data:n.data,includeMargin:!0,hasPeek:!0})}}))}}),_.w(_.G,{cond:function(){return e().disclaimerText},
then:function(){return _.w("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.w(_.WL,{text:function(){return e().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var A$o=_.NN(function(W){var e=W.data;var t=W.active;var b=_.zT("transcript-segment-view-model");_.nh(function(){var m,q,Q,X=((m=_.ee().resolve(_.Wi(_.zf)))==null?0:m())?(q=e())==null?void 0:q.darkThemeColorPalette:(Q=e())==null?void 0:Q.lightThemeColorPalette;X&&(X.additiveBackground&&b.value.style.setProperty("--timestamp-active-background-color",_.h8(X.additiveBackground)),X.textSecondary&&b.value.style.setProperty("--timestamp-active-color",_.sr(X.textSecondary)))},"KHcbwb");
W={};return _.w("transcript-segment-view-model",{class:_.ve("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=t,W.ytwTranscriptSegmentViewModelHostModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),W)),el:b},_.w(_.G,{cond:function(){var m;return(m=e())==null?void 0:m.timestamp},
then:function(m){var q={};return _.w("div",{class:_.ve("ytwTranscriptSegmentViewModelTimestamp",(q.ytwTranscriptSegmentViewModelTimestampActive=t,q))},m)}}),_.w(_.WL,{text:function(){var m,q,Q;
return(Q=(m=e())==null?void 0:m.attributedText)!=null?Q:{content:(q=e())==null?void 0:q.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var NaZ=_.NN(function(W){var e=W.data;return _.w("div",{class:"yt-video-attributes-section-view-model__header"},_.w("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return e().headerTitle}),_.w(_.G,{cond:function(){return e().headerSubtitle},
then:function(){return _.w("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return e().headerSubtitle})}}))},"zd"),dJP=_.NN(function(W){function e(n){return Math.max(Math.min(n,0),u()-X())}
var t=W.data;var b,m=_.zT("div",function(n){if(_.S("web_metadata_carousel_elref_bugfix")){var f=function(){c(n.clientWidth)};
f();window.ResizeObserver&&(b=new ResizeObserver(f),b.observe(n))}}),q=_.zT("div",function(n){I(n.scrollWidth)}),Q=_.R(_.up(0,void 0,"I9GbH"));
W=Q.next().value;Q=Q.next().value;var X=W,I=Q;Q=_.R(_.up(0,void 0,"eQAn5b"));W=Q.next().value;Q=Q.next().value;var u=W,c=Q;W=_.R(_.up(0,void 0,"VU3lg"));var v=W.next().value,D=W.next().value;_.nt(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var n=function(){I(q.value.scrollWidth);c(m.value.clientWidth)};
n();if(window.ResizeObserver){var f=new ResizeObserver(n);f.observe(m.value);_.fh(function(){f.disconnect()})}}});
_.fh(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var n;(n=b)==null||n.disconnect()}});
var B=function(){D(e(v()+u()))},k=function(){D(e(v()-u()))};
return _.w("yt-video-attributes-section-view-model",null,_.w("div",{class:"yt-video-attributes-section-view-model"},_.w(_.G,{cond:function(){return t().headerTitle},
then:function(){return _.w(NaZ,{data:t})}}),_.w("div",{class:_.ve("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:m},_.w("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.$D({transform:function(){var n=v();_.Ot("HTML_DIR")==="rtl"&&(n*=-1);return"translateX("+n+"px)"}}),
el:q},_.w(_.nU,{data:function(){return t().videoAttributeViewModels}},{videoAttributeViewModel:r4v}))),_.w(_.nU,{data:function(){return t().footerButton}},{buttonViewModel:function(n){return _.w(_.MV,{data:n.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.w(_.G,{cond:function(){return v()<0&&t().previousButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.w(_.nU,{data:function(){return t().previousButton}},{buttonViewModel:function(n){return _.w(_.MV,{data:n.data,
onClick:B})}}))}}),_.w(_.G,{cond:function(){return v()>u()-X()&&t().nextButton},
then:function(){return _.w("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.w(_.nU,{data:function(){return t().nextButton}},{buttonViewModel:function(n){return _.w(_.MV,{data:n.data,
onClick:k})}}))}})))},"Ad");
dJP.idomCompat=!0;var WQD=_.NN(function(W){var e=W.data;var t=W.active;var b={},m={};return _.w("timeline-item-view-model",{class:_.ve("ytwTimelineItemViewModelHost",(b.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,b.ytwTimelineItemViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),b))},_.w("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.w("div",{class:_.ve("ytwTimelineItemViewModelTimestamp",(m.ytwTimelineItemViewModelTimestampActive=
t,m))},function(){return e().timestamp})),_.w("div",{class:"ytwTimelineItemViewModelContentItems"},_.w(_.nU,{data:function(){return e().contentItems}},{transcriptSegmentViewModel:function(q){return _.w(A$o,{data:q.data,
active:t})},
videoAttributesSectionViewModel:dJP})))},"Bd");var evr=_.NN(function(W){var e=W.data;W={};return _.w("timeline-chapter-view-model",{class:_.ve("ytwTimelineChapterViewModelHost")},_.w("div",{class:_.ve("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),W))},function(){return e().title}),_.w(_.nU,{data:function(){return e().contents}},{timelineItemViewModel:function(t){return _.w(WQD,{data:t.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(t){return _.w(dJP,{data:t.data})}}))},"Cd");var tWS=_.NN(function(W){var e=W.data;var t=_.zT("macro-markers-panel-item-view-model"),b=_.D_(_.lsQ,function(){var q;return(q=e().markersEngagementPanelSyncEntityKey)!=null?q:""}),m=function(){var q;
return((q=b())==null?void 0:q.activeItemIndex)===e().index};
W=_.Be(function(q){var Q,X,I,u,c;return _.F(function(v){if(v.nextAddress==1)return q.stopPropagation(),_.iJ(_.Vv(q),t.value,["A".toString(),"BUTTON".toString()])?v.return():(Q=_.Mk(e().onTap))?_.a(v,_.Iv(),2):v.return();X=v.yieldResult;u=(I=_.l(Q,_.z4))==null?void 0:I.startTimeSeconds;u===void 0||(c=X)!=null&&c.seekTo(u,!0);_.u8(v)})});
return _.w("macro-markers-panel-item-view-model",{class:_.ve("ytwMacroMarkersPanelItemViewModelHost",{"is-active":m}),el:t,"on:click":W,tabindex:0},_.w(_.nU,{data:function(){var q;return(q=e())==null?void 0:q.item}},{timelineChapterViewModel:function(q){return _.w(evr,{data:q.data,
active:m})},
timelineItemViewModel:function(q){return _.w(WQD,{data:q.data,active:m})},
videoAttributeViewModel:r4v}))},"Dd");
tWS.idomCompat=!0;_.mM(tWS,"macro-markers-panel-item-view-model",{props:{data:_.Eu}});_.mM(dJP,"yt-video-attributes-section-view-model",{props:{data:_.Eu}});var bIP=_.NN(function(W){var e=function(){var t,b,m;return(m=(t=W.data().leadingLogoAccessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?m:""};
return _.w("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.w(_.G,{cond:function(){return W.data().leadingLogo},
then:function(t){return _.w(_.A_,{className:"ytwFantasySectionHeaderViewModelLogo",data:t,alt:e})}}),_.w("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.w(_.WL,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.w(_.WL,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.w(_.nU,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var m0N=_.NN(function(W){var e={};e=_.ve("ytwFantasyTeamViewModelHost",(e.ytwFantasyTeamViewModelCompact=function(){var m;return!((m=W.compact)==null||!m.call(W))},e.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},e.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},e));
var t=function(){var m,q,Q;return(Q=(m=W.data().teamLogoAccessibility)==null?void 0:(q=m.accessibilityData)==null?void 0:q.label)!=null?Q:""},b=_.D_($6D,function(){return W.data().teamEntityKey});
return _.w("ytw-fantasy-team-view-model",{class:e},_.w(_.G,{cond:function(){return W.data().teamLogo},
then:function(m){return _.w(_.A_,{className:"ytwFantasyTeamViewModelLogo",data:m,alt:t})}}),_.w("div",{class:"ytwFantasyTeamViewModelMetadata"},_.w("div",{class:"ytwFantasyTeamViewModelHeader"},_.w(_.WL,{className:"ytwFantasyTeamViewModelScore",
text:function(){var m;return(m=b())==null?void 0:m.score}}),_.w(_.kD,{icon:function(){var m;
return(m=b())==null?void 0:m.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.w(_.WL,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var m;return(m=b())==null?void 0:m.projectedScore}})),_.w(_.WL,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.w(_.WL,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.w(_.WL,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.w(_.WL,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var m;return(m=b())==null?void 0:m.score}}))},"Fd");_.mM(_.NN(function(W){return _.w("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.w("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.w(_.nU,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:bIP})),_.w(_.nU,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:m0N}),_.w(_.nU,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:m0N}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.Eu}});var r9e=_.NN(function(W){var e=_.Ez(W,{shape:{},useCustomTabRenderable:!1}),t=e.shape;e=e.useCustomTabRenderable;var b=W.customTabRenderable,m=function(){return t().disabled},q=function(){return t().selected},Q=function(){return t().title},X=function(){return t().icon},I=_.zT("yt-tab-shape");
W=_.Be(function(v){var D;if(!m()&&((D=t().aTagConfig)==null?0:D.onclick))t().aTagConfig.onclick(v);return!1});
var u=_.Be(function(v){if(v.key==="Enter"||v.key==="ArrowUp"||v.key==="ArrowDown")v.preventDefault(),I.value.click();return!1}),c={};
return _.w("yt-tab-shape",{class:_.ve("yt-tab-shape-wiz",function(){return t().className},(c["yt-tab-shape-wiz__tab--last-tab"]=function(){return t().isLastTab},c["yt-tab-shape-wiz--host-disabled"]=m,c["yt-tab-shape-wiz--host-clickable"]=!b,c)),
role:b?void 0:"tab","aria-selected":q!=null?q:!1,"aria-disabled":m,tabindex:b?void 0:0,"on:click":W,"on:keydown":u,el:I,"tab-identifier":function(){return t().identifier},
"tab-title":Q},_.w(_.G,{cond:e,then:function(){return b()},
else:function(){var v={},D={};return _.w(_.qD,null,_.w("div",{class:_.ve("yt-tab-shape-wiz__tab",(v["yt-tab-shape-wiz__tab--tab-selected"]=q,v))},_.w(_.G,{cond:X,then:function(B){return _.w(_.kD,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return B().iconType}})}}),Q),_.w("div",{class:_.ve("yt-tab-shape-wiz__tab-bar",(D["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=q,D))}))}}))},"Hd");
r9e.idomCompat={callbacks:{customTabRenderable:!0}};_.RvU=_.NN(function(W){var e=W.shape;W=_.R(_.up(48,void 0,"r9IBlb"));var t=W.next().value,b=W.next().value;W=_.R(_.up(0,void 0,"Bd7rmd"));var m=W.next().value,q=W.next().value,Q=function(){return e().tabs},X=_.zT("yt-tab-group-shape"),I=function(){var u,c;
return(c=(u=Q())==null?void 0:u.findIndex(function(v){return v.selected}))!=null?c:-1};
_.nt(function(){var u=X.value.querySelectorAll("yt-tab-shape"),c=I()>-1?u[I()]:void 0;_.Tm.addJob(function(){b((c==null?void 0:c.getBoundingClientRect().width)||0)},8,0)});
_.nh(function(){var u=I(),c=_.Tm.addJob(function(){var v,D=((v=X.value)==null?void 0:v.querySelectorAll("yt-tab-shape"))||[],B;b(((B=u>-1?D[u]:void 0)==null?void 0:B.getBoundingClientRect().width)||0);for(B=v=0;B<u;B++)v+=D[B].offsetWidth+24;_.Ot("HTML_DIR")==="rtl"&&(v=-v);q(v)},8,0);
_.fh(function(){_.Tm.cancelJob(c)})},"EHixkc");
W={};return _.w("yt-tab-group-shape",{class:_.ve("yt-tab-group-shape-wiz",(W["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return e().isOverflowHidden},W)),
el:X},_.w(_.G,{cond:Q,then:function(u){return _.w(_.qD,null,_.w("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.w(_.lV,{each:u},function(c,v){return _.w(r9e,{shape:function(){return Object.assign({},c,{isLastTab:v()===u().length-1})},
customTabRenderable:c.customTabRenderable,useCustomTabRenderable:!!c.customTabRenderable})})),_.w(qgS,{width:t,
sliderOffset:m}))}}))},"Id");
_.RvU.idomCompat=!0;var qgS=_.NN(function(W){var e=_.LD(W.sliderOffset,0),t=W.width;return _.w("div",{class:"yt-tab-group-shape-wiz__slider",style:_.$D({width:function(){return t()+"px"},
transform:function(){return"translateX("+e()+"px)"}})})},"Jd");var Qnb=_.NN(function(W){var e=function(){var q,Q,X;return(X=(q=W.data().playerLogoAccessibility)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)!=null?X:""},t=_.D_(kbQ,function(){return W.data().playerEntityKey}),b={};
b=_.ve("ytwFantasyPlayerViewModelHost",(b.ytwFantasyPlayerViewModelPlaying=function(){var q;return!((q=t())==null||!q.isPlayerPlaying)},b.ytwFantasyPlayerViewModelOnField=function(){var q;
return((q=t())==null?void 0:q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},b.ytwFantasyPlayerViewModelRedZone=function(){var q;
return((q=t())==null?void 0:q.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},b));
var m=function(){var q,Q,X,I=((q=_.ee().resolve(_.Wi(_.zf)))==null?0:q())?(Q=W.data().playerLogoBackgroundColor)==null?void 0:Q.darkTheme:(X=W.data().playerLogoBackgroundColor)==null?void 0:X.lightTheme;return I===void 0?"":_.h8(I)};
return _.w("ytw-fantasy-player-view-model",{class:b},_.w(_.G,{cond:function(){return W.data().playerLogo},
then:function(q){return _.w("div",{class:"ytwFantasyPlayerViewModelLogo"},_.w("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.w(_.A_,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.$D({"background-color":m}),data:q,alt:e})),_.w("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.w(_.kD,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.w("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.w("div",{class:"ytwFantasyPlayerViewModelHeader"},_.w(_.WL,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var q;return(q=W.data())==null?void 0:q.playerNameText}}),_.w(_.WL,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var q;return(q=W.data())==null?void 0:q.playerDescriptionText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.WL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=t())==null?void 0:q.gamePeriodText}}),_.w(_.WL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=W.data())==null?void 0:q.opponentTeamText}}),_.w(_.WL,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var q;return(q=t())==null?void 0:q.gameStatusText}}),_.w(_.WL,{className:_.ve("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var q;return(q=t())==null?void 0:q.playerStatusText}})),_.w("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.w(_.WL,{text:function(){var q;
return(q=t())==null?void 0:q.playerStatsText}}))),_.w(_.WL,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var q;return(q=t())==null?void 0:q.fantasyScore}}))},"Kd");var FQZ=_.NN(function(W){return _.w("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.w(_.G,{cond:function(){return W.data().players},
then:function(e){return _.w(_.nU,{data:e},{fantasyPlayerViewModel:Qnb})}}))},"Ld");var Xny=_.NN(function(W){var e=_.R(_.ZT(function(){var m;return(m=W.data().selectedTabIdentifierKey)!=null?m:""})),t=e.next().value,b=e.next().value;
_.jm(function(){var m;(m=W.setSelectedTabSignal)==null||m.call(W,t)});
return _.w("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.w("div",{class:"ytTabbedViewModelTabGroup"},_.w(_.RvU,{shape:function(){var m=W.data(),q=[],Q={tabs:q};if(!m.tabs)return Q;m=_.R(m.tabs);for(var X=m.next(),I={};!X.done;I={tabViewModel:void 0},X=m.next())if(I.tabViewModel=_.l(X.value,nir),I.tabViewModel){var u=X=void 0;q.push({aTagConfig:{onclick:function(c){return function(){var v;b((v=c.tabViewModel.tabIdentifier)!=null?v:"")}}(I)},
identifier:I.tabViewModel.tabIdentifier,selected:t()===I.tabViewModel.tabIdentifier,title:(u=(X=I.tabViewModel.title)==null?void 0:X.content)!=null?u:""})}return Q}})),_.w(_.nU,{data:function(){var m,q=_.R((m=W.data().tabs)!=null?m:[]);
for(m=q.next();!m.done;m=q.next())if((m=_.l(m.value,nir))&&m.tabIdentifier===t())return m.content}},{fantasyRosterViewModel:FQZ}))},"Md");_.mM(_.NN(function(W){var e=_.R(dHK()),t=e.next().value,b=e.next().value;return _.w("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.w(_.WL,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.w(_.G,{cond:function(){return W.data().tabbedViewModel},
then:function(m){return _.w(_.nU,{data:m},{tabbedViewModel:function(q){return _.w(Xny,{data:q.data,setSelectedTabSignal:b})}})}}),_.w(_.G,{cond:function(){var m,q=(m=_.l(W.data().tabbedViewModel,fhU))==null?void 0:m.tabs;
m=_.l(q==null?void 0:q[0],nir);q=_.l(q==null?void 0:q[1],nir);var Q=m==null?void 0:m.tabIdentifier;if(t()===Q){var X,I;if(!((X=_.l(m==null?void 0:m.content,CDB))==null?0:(I=X.players)==null?0:I.length))return W.data().noUserTeamPlayersText}else{var u,c;if(!((u=_.l(q==null?void 0:q.content,CDB))==null?0:(c=u.players)==null?0:c.length))return W.data().noOpponentTeamPlayersText}},
then:function(m){return _.w(_.WL,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:m})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){return _.w("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.w(_.WL,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.w(_.G,{cond:function(){return W.data().matchupTeamPairs},
then:function(e){return _.w(_.lV,{each:e,keyBy:"INDEX"},function(t){return _.w("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.w(_.nU,{data:function(){return[t().firstTeam,t().secondTeam]}},{fantasyTeamViewModel:function(b){return _.w(m0N,{data:b.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=function(){var m,q,Q;return(Q=(m=W.data().userLogoAccessibility)==null?void 0:(q=m.accessibilityData)==null?void 0:q.label)!=null?Q:""},t=function(){var m,q,Q;
return(Q=(m=W.data().opponentLogoAccessibility)==null?void 0:(q=m.accessibilityData)==null?void 0:q.label)!=null?Q:""},b=_.D_(Zlz,function(){return W.data().entityKey});
return _.w("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.w(_.G,{cond:function(){return W.data().userLogo},
then:function(m){return _.w(_.A_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:m,alt:e})}}),_.w("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.w(_.WL,{text:function(){return W.data().title}})),_.w(_.G,{cond:function(){return W.data().opponentLogo},
then:function(m){return _.w(_.A_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:m,alt:t})}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.WL,{text:function(){var m;
return(m=b())==null?void 0:m.userWinNumberLabel}})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.w("div",{class:_.ve("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.$D({flex:function(){var m,q;return(q=(m=b())==null?void 0:m.userWinNumber)!=null?q:50}})}),_.w("div",{class:_.ve("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.$D({flex:function(){var m,q;return(q=(m=b())==null?void 0:m.opponentWinNumber)!=null?q:50}})})),_.w("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.w(_.WL,{text:function(){var m;
return(m=b())==null?void 0:m.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.Eu}});_.xD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var gb=function(){var W=_.O.apply(this,arguments)||this;W.darkerPanels=_.S("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.notSticky=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");W.mastheadHeight=
0;W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.Z(gb,_.O);_.r=gb.prototype;_.r.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||e.forEach(function(t){t.containerType=W})}};
_.r.getItemsPath=function(){return"data.contents"};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.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]]",
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",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:"ytd-channel-featured-content-renderer",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:"yt-section-header-view-model",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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")}}};
_.r.created=function(){this.JSC$14559_cachedViewportHeight=_.Ot("initialInnerHeight")||window.innerHeight};
_.r.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.r.handleIntersect=function(W){this.notSticky=W[0].intersectionRatio===1};
_.r.attached=function(){var W=this;document.addEventListener("scroll",_.aH(this,this.updateHeaderState));var e;this.mastheadHeight=((e=document.querySelector("ytd-masthead"))==null?void 0:e.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){W.handleIntersect(t)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.r.detached=function(){document.removeEventListener("scroll",_.aH(this,this.updateHeaderState));var W;(W=this.intersectionObserver)==null||W.disconnect();var e;(e=this.resizeObserver)==null||e.disconnect()};
_.r.updated=function(W){W.has("data")&&this.updateHeaderState()};
_.r.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(zgv(!this.notSticky))};
_.r.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.rz(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.r.onRetrieveLocation=function(W,e){this.containsComments()&&(this.firstCommentsLoaded=e.hasComments=!0)};
_.r.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.r.onLoadReloadContinuation=function(W,e){var t=this;W.stopPropagation();this.isReloading=!0;_.q2(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(b){var m=_.ee().resolve(_.Ti);b=e(b);m.postData(b).then(function(q){t.onReloadContinuationData(q)})}})};
_.r.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.r.computeContentsClass=function(W){return W?"reloading":""};
_.r.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.r.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.r.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.r.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.S("kevlar_disable_comments_auto_load")};
_.r.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.r.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.r.computeHasDestinationShelfRenderer=function(W){var e,t;return!!(W==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.destinationShelfRenderer)};
_.r.computeHasSectionGroupViewModel=function(W){var e,t;return!!(W==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.sectionGroupViewModel)};
_.r.computeHasQrCodeRenderer=function(W){var e,t;return!!(W==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.qrCodeRenderer)};
_.r.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.r.computeEpRestyle=function(W){return _.S("web_ep_restyling")&&W&&this.containsComments()};
_.r.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"||(W==null?void 0:W.targetId)==="engagement-panel-comments-section"};
_.r.computeSuppressPaddingDisclaimer=function(){var W,e,t,b;return!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:(b=t.productListHeaderRenderer)==null?0:b.suppressPaddingDisclaimer)};
_.r.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.r.dataChanged=function(){this.firstCommentsLoaded=!1};
_.r.observeDataContentsLength=function(){var W,e;((W=this.data)==null?0:(e=W.contents)==null?0:e.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.r.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.r.triggerContinuations=function(){for(var W=_.rz(this.hostElement).querySelector("#continuations").children,e=0;e<W.length;e++)W[e].trigger()};
_.r.triggerInitialContinuations=function(){for(var W=_.rz(this.hostElement).querySelector("#continuations").children,e=0;e<W.length;e++)W[e].triggerIfNotPreviouslyTriggered()};
_.r.handleYtItemSectionContinuation=function(W,e){var t;e&&((t=this.data)==null?void 0:t.sectionIdentifier)!==e||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.r.handleYtItemSectionReplace=function(W,e){var t;e&&((t=this.data)==null?void 0:t.sectionIdentifier)!==e||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.r.computeUseHeightHack=function(W){return W&&!_.S("kevlar_disable_height_hack")};
_.r.computeTopSpacingZero=function(W){return W};
_.r.continuationShowButtonChanged=function(){var W=_.rz(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.r.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("data-changed",this.data))};
_.Ec.Object.defineProperties(gb.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b,m,q,Q;return!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:(b=t.shelfRenderer)==null?0:(m=b.content)==null?0:(q=m.gridRenderer)==null?0:(Q=q.targetId)==null?0:Q.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e[0])==null?0:t.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.r8("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14559_cachedViewportHeight-130)/150)},
set:function(){}}});
gb.prototype.dataChangedForBinding=gb.prototype.dataChangedForBinding;gb.prototype.continuationShowButtonChanged=gb.prototype.continuationShowButtonChanged;gb.prototype.onYtDismissibleItemDismissedChange=gb.prototype.onYtDismissibleItemDismissedChange;gb.prototype.observeDataContentsLength=gb.prototype.observeDataContentsLength;gb.prototype.dataChanged=gb.prototype.dataChanged;gb.prototype.onServiceRequestCompleted=gb.prototype.onServiceRequestCompleted;gb.prototype.onLoadReloadContinuation=gb.prototype.onLoadReloadContinuation;
gb.prototype.onRetrieveLocation=gb.prototype.onRetrieveLocation;gb.prototype.commentsHidePanelButtonChanged=gb.prototype.commentsHidePanelButtonChanged;gb.prototype.dispatchChipBarIsSticky=gb.prototype.dispatchChipBarIsSticky;gb.prototype.updateLockupContainerTypes=gb.prototype.updateLockupContainerTypes;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],gb.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],gb.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],gb.prototype,"ytNextContinuationBehavior",void 0);
_.P([_.y(_.PB),_.Y("design:type",Object)],gb.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],gb.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],gb.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gb.prototype,"darkerPanels",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],gb.prototype,"engagementPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"commentsHidePanelButton",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"isWatchGrid",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"continuationShowButton",void 0);_.P([_.J({computed:"computeIsContinuationCommentSection(data)"}),_.Y("design:type",Boolean)],gb.prototype,"continuationIsCommentsSection",void 0);
_.P([_.J({value:!0}),_.Y("design:type",Boolean)],gb.prototype,"autoFill",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gb.prototype,"continuationDisablePrescanVisibility",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gb.prototype,"isReloading",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"isSearch",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"isConstrainedList",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"isWatch",void 0);
_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"eligibleToSwitchToGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gb.prototype,"notSticky",void 0);_.P([_.J({selector:_.KU}),_.Y("design:type",Object)],gb.prototype,"isGridViewEnabled",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Object)],gb.prototype,"epRestyle",void 0);
_.P([_.T("isWatch"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"hideShortsShelfHeader",null);_.P([_.T("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gb.prototype,"thumbnailWidth",null);_.P([_.T("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gb.prototype,"sizing",null);
_.P([_.T("isWatch","isGridViewEnabled","data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gb.prototype,"lockupContainerType",null);_.P([_.ul("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],gb.prototype,"updateLockupContainerTypes",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],gb.prototype,"pageSubtype",void 0);
_.P([_.J({computed:"computeContainerWidth()"}),_.Y("design:type",Number)],gb.prototype,"containerWidth",void 0);_.P([_.J(),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"isPlaylist",null);_.P([_.J(),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"isClipList",null);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"isCarouselInFeed",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"isPlaylistVideoContainer",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"isSearchFrictionPage",null);_.P([_.J({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Y("design:type",Boolean)],gb.prototype,"useHeightHack",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Y("design:type",Object)],gb.prototype,"topSpacingZero",void 0);_.P([_.J({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Y("design:type",Boolean)],gb.prototype,"showButton",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gb.prototype,"firstCommentsLoaded",void 0);_.P([_.J(),_.Y("design:type",Object)],gb.prototype,"continuationIsInitialLoad",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],gb.prototype,"isSearchDova",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],gb.prototype,"itemDismissed",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Y("design:type",String)],gb.prototype,"sectionIdentifier",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Y("design:type",String)],gb.prototype,"fitContainer",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Y("design:type",Boolean)],gb.prototype,"hasDestinationShelfRenderer",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Boolean)],gb.prototype,"staticCommentsHeader",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gb.prototype,"enableSqueezebackPanels",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gb.prototype,"enableAnchoredPanel",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Y("design:type",Boolean)],gb.prototype,"hasSectionGroupViewModel",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Y("design:type",Boolean)],gb.prototype,"hasQrCodeRenderer",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Y("design:type",Boolean)],gb.prototype,"suppressDisclaimerSeparator",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Y("design:type",String)],gb.prototype,"headerStyle",void 0);_.P([_.T("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gb.prototype,"lockupExperiments",null);
_.P([_.T("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"typographyBump",null);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],gb.prototype,"header",void 0);_.P([_.ul("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"dispatchChipBarIsSticky",null);
_.P([_.ul("commentsHidePanelButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"commentsHidePanelButtonChanged",null);_.P([_.wz("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],gb.prototype,"onRetrieveLocation",null);
_.P([_.wz("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Function]),_.Y("design:returntype")],gb.prototype,"onLoadReloadContinuation",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"onServiceRequestCompleted",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"dataChanged",null);
_.P([_.BG("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"observeDataContentsLength",null);_.P([_.wz("yt-dismissible-item-dismissed"),_.wz("yt-dismissible-item-undismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],gb.prototype,"onYtDismissibleItemDismissedChange",null);
_.P([_.ul("continuationShowButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"continuationShowButtonChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"dataChangedForBinding",null);_.P([_.h({is:"ytd-item-section-renderer",disableElementRegistration:!0})],gb);
_.H(gb,"ytd-item-section-renderer",function(){if(fPN!==void 0)return fPN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fPN=W},{mode:1});var ILo;var roG=_.zq(_.Gv("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var WSR={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var aLe={},mmG=(aLe[0]={title:_.tm(_.Gv("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Wm("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},aLe[1]={title:_.tm(_.Gv("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Wm("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},aLe);_.xD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Tw=function(){var W=_.O.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.isOnline=!1;W.shouldRenderDownloadsBanner=!1;W.shouldRenderDownloadsBannerUpsell=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.Z(Tw,_.O);Tw.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Tw.prototype.attached=function(){this.downloadsToRenderChanged()};
Tw.prototype.detached=function(){this.set("renderableData",{})};
Tw.prototype.downloadsToRenderChanged=function(){var W=_.Eb().getState().entities,e=_.yJ(W),t=_.S("kevlar_playlist_dl_page_killswitch")?FOQ(W):_.jw(W),b=_.mdL(W),m,q,Q,X=(Q=(q=((m=W.downloadsPageViewConfigurationEntity)!=null?m:{})[_.pG])==null?void 0:q.downloadsUpsellBannerVisibility)!=null?Q:{},I;m=(I=_.l(X,Q8h))!=null?I:{};I=_.o1(e);W=_.CG(W);this.set("renderableData",RV2(t,e,b,m,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,
this.isOnline,I,W))};
Tw.prototype.downloadsToRenderChanged=Tw.prototype.downloadsToRenderChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Tw.prototype,"renderableData",void 0);_.P([_.J({selector:_.oiv}),_.Y("design:type",Object)],Tw.prototype,"allVideosCount",void 0);_.P([_.J({selector:zWg}),_.Y("design:type",Object)],Tw.prototype,"allPlaylistCount",void 0);_.P([_.J({selector:Jm}),_.Y("design:type",Object)],Tw.prototype,"isOnline",void 0);_.P([_.J({selector:_.j7K}),_.Y("design:type",Object)],Tw.prototype,"shouldRenderDownloadsBanner",void 0);
_.P([_.J({selector:function(W){var e,t,b,m=(b=(t=((e=W.entities.downloadsPageViewConfigurationEntity)!=null?e:{})[_.pG])==null?void 0:t.downloadsUpsellBannerVisibility)!=null?b:{};return Jm(W)?!!m.visibleWithConnection:!!m.visibleWithoutConnection}}),
_.Y("design:type",Object)],Tw.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.P([_.J({selector:_.CyZ}),_.Y("design:type",Object)],Tw.prototype,"hasOptedIntoSmartDownloads",void 0);_.P([_.J({selector:_.niQ}),_.Y("design:type",Object)],Tw.prototype,"areAllSmartDownloadsDeleted",void 0);_.P([_.J({selector:fhZ}),_.Y("design:type",Object)],Tw.prototype,"smartDownloadsCompleted",void 0);
_.P([_.BG("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tw.prototype,"downloadsToRenderChanged",null);_.P([_.h({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Tw);
_.H(Tw,"ytd-offline-item-section-renderer",function(){if(ILo!==void 0)return ILo;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ILo=W},
{mode:1});var wnv;var utv;var JT=function(){return _.O.apply(this,arguments)||this};
_.Z(JT,_.O);
JT.prototype.onDataChanged=function(){if(this.JSC$14587_lastData){var W=this.getFilterClass(this.JSC$14587_lastData.status);W&&this.hostElement.classList.remove(W)}var e;(W=this.getFilterClass((e=this.data)==null?void 0:e.status))&&this.hostElement.classList.add(W);W==="selected"?_.rz(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.rz(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.rz(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.rz(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14587_lastData=this.data};
JT.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
JT.prototype.onDataChanged=JT.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JT.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JT.prototype,"onDataChanged",null);_.P([_.h({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],JT);
_.H(JT,"ytd-search-filter-renderer",function(){if(utv!==void 0)return utv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return utv=W},{mode:_.Qe("kevlar_poly_si_batch_j075")?1:2});var xA=function(){return _.O.apply(this,arguments)||this};
_.Z(xA,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xA.prototype,"data",void 0);_.P([_.h({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],xA);
_.H(xA,"ytd-search-filter-group-renderer",function(){if(wnv!==void 0)return wnv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wnv=W},{mode:_.Qe("kevlar_poly_si_batch_j075")?1:2});var c9N;var Oo=function(){return _.O.apply(this,arguments)||this};
_.Z(Oo,_.O);Oo.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.wJ());this.isCollapsed=!this.isCollapsed};
Oo.prototype.navigateToAboutTheseResultsPage=function(){var W=S5("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.Ty(window,W,"_blank"):_.st(Error("Rh"))};
Oo.prototype.dataChanged=function(){this.isCollapsed=!0};
Oo.prototype.computeShowBottomBorder=function(){var W,e,t;return!!((W=this.data)==null?0:(e=W.button)==null?0:e.toggleButtonRenderer)||!((t=this.data)==null||!t.aboutTheseResultsButton)};
Oo.prototype.dataChanged=Oo.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Oo.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Y("design:type",Boolean)],Oo.prototype,"showBottomBorder",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Oo.prototype,"renderCollapsibleMenu",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Oo.prototype,"isCollapsed",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oo.prototype,"dataChanged",null);_.P([_.h({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Oo);
_.H(Oo,"ytd-search-sub-menu-renderer",function(){if(c9N!==void 0)return c9N;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c9N=W},{mode:1});var vY8;var G$8=new _.W_("SECTION_LIST_RENDERER_TOKEN");var D0B;var MP=function(){return _.O.apply(this,arguments)||this};
_.Z(MP,_.O);MP.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],MP.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],MP.prototype,"headerStyle",void 0);_.P([_.h({is:"ytd-text-header-renderer",disableElementRegistration:!0})],MP);
_.H(MP,"ytd-text-header-renderer",function(){if(D0B!==void 0)return D0B;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return D0B=W},{mode:1});var Sgv;var so=function(){return _.O.apply(this,arguments)||this};
_.Z(so,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],so.prototype,"data",void 0);_.P([_.h({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],so);
_.H(so,"ytd-minor-moment-header-renderer",function(){if(Sgv!==void 0)return Sgv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Sgv=W},{mode:1});var Bpr;var hT=function(){return _.O.apply(this,arguments)||this};
_.Z(hT,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hT.prototype,"data",void 0);_.P([_.h({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],hT);
_.H(hT,"ytd-minor-moment-setting-alert-renderer",function(){if(Bpr!==void 0)return Bpr;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Bpr=W},{mode:1});var oYN;var lLb;var H$=function(){var W=_.O.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.na(128287);W.smartDownloadsDisabledVE=_.na(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.Z(H$,_.O);_.r=H$.prototype;_.r.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.XW(_.Sg(),this.smartDownloadsEnabledVE),_.XW(_.Sg(),this.smartDownloadsDisabledVE))};
_.r.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.q2(this.hostElement,"yt-settings-switch-ready")};
_.r.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.r.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.Er(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.S("kevlar_settings_switch_resolve_command_killswitch")?_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.r.handleUpdateSettingsSwitch=function(W){(W=_.l(W,E2P))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.r.onToggleSettingsSwitch=function(W,e){this.data&&this.data.id===W&&this.set("data.enabled",e!=null?e:!this.data.enabled)};
_.r.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.dv.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.r.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.fc(),e;W&&((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.ic(W,[this.smartDownloadsEnabledVE]),_.Yh(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.ic(W,[this.smartDownloadsDisabledVE]),_.Yh(W,[this.smartDownloadsEnabledVE])))};
_.r.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.a0(_.Sg(),this.activeVeForLogging)};
_.r.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.Ec.Object.defineProperties(H$.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
H$.prototype.dataChanged=H$.prototype.dataChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],H$.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],H$.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],H$.prototype,"data",void 0);_.P([_.J({selector:function(W,e){if(Object.keys(W==null?void 0:W.entities).length)switch(e){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return XzD(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Y("design:type",Object)],H$.prototype,"booleanSettingById",void 0);_.P([_.J(),_.Y("design:type",_.Cc)],H$.prototype,"activeVeForLogging",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"toggleAriaLabel",null);_.P([_.BG("data"),_.BG("booleanSettingById"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H$.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],H$);
_.H(H$,"ytd-settings-switch-renderer",function(){if(lLb!==void 0)return lLb;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lLb=W},{mode:1});var K$=function(){return _.O.apply(this,arguments)||this};
_.Z(K$,_.O);K$.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}}}}};
_.Ec.Object.defineProperties(K$.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],K$.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K$.prototype,"contentsClassName",null);_.P([_.h({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],K$);
_.H(K$,"ytd-minor-moment-setting-section-renderer",function(){if(oYN!==void 0)return oYN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return oYN=W},{mode:1});var ZIU;var P$=function(){return _.O.apply(this,arguments)||this};
_.Z(P$,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],P$.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],P$.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],P$);
_.H(P$,"ytd-empty-product-details-renderer",function(){if(ZIU!==void 0)return ZIU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZIU=W},{mode:1});var $0Z;var k$Z;var Vl=function(){var W=_.O.apply(this,arguments)||this;W.expanded=!0;return W};
_.Z(Vl,_.O);Vl.prototype.getBadgeRowClass=function(W,e,t){for(var b=_.R(this.hostElement.querySelectorAll("yt-img-shadow")),m=b.next();!m.done;m=b.next())m.value.onShow();W=W.selected;return t?W!==-1?W===e?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===e?"badge-line":"badge-hidden"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Vl.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Vl.prototype,"expanded",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Vl);
_.H(Vl,"ytd-sponsorships-loyalty-badges-renderer",function(){if(k$Z!==void 0)return k$Z;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return k$Z=W},{mode:1});var pnh;var iH=function(){var W=_.O.apply(this,arguments)||this;W.expanded=!0;return W};
_.Z(iH,_.O);iH.prototype.getContainerClasses=function(W,e){W=W?"expanded":"collapsed";e&&(W+=" item");return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iH.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],iH.prototype,"expanded",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],iH);
_.H(iH,"ytd-sponsorships-perk-renderer",function(){if(pnh!==void 0)return pnh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pnh=W},{mode:1});var y9r;var YA=function(){var W=_.O.apply(this,arguments)||this;W.expanded=!0;return W};
_.Z(YA,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],YA.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],YA.prototype,"expanded",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],YA);
_.H(YA,"ytd-sponsorships-perks-renderer",function(){if(y9r!==void 0)return y9r;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return y9r=W},{mode:1});var zw=function(){var W=_.O.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.Z(zw,_.O);zw.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
zw.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
zw.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.l((W=this.data)==null?void 0:W.expandButton,_.Md)}else{var e;this.expandCollapseButton=_.l((e=this.data)==null?void 0:e.collapseButton,_.Md)}};
zw.prototype.updateExpandCollapseButton=zw.prototype.updateExpandCollapseButton;zw.prototype.onDataChanged=zw.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zw.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zw.prototype,"isCollapsed",void 0);_.P([_.J(),_.Y("design:type",Object)],zw.prototype,"expandCollapseButton",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"onDataChanged",null);_.P([_.BG("data","isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"updateExpandCollapseButton",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],zw);
_.H(zw,"ytd-sponsorships-expandable-perks-renderer",function(){if($0Z!==void 0)return $0Z;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $0Z=W},{mode:1});var jnB;var Uo=function(){return _.O.apply(this,arguments)||this};
_.Z(Uo,_.O);Uo.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Uo.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uo.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Uo);
_.H(Uo,"ytd-sponsorships-actionable-message-renderer",function(){if(jnB!==void 0)return jnB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return jnB=W},{mode:1});var CxN;var L$=function(){return _.O.apply(this,arguments)||this};
_.Z(L$,_.O);_.r=L$.prototype;_.r.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.r.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.r.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.r.computeMessageContainerStyle=function(W){var e=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+e:"style-unspecified"+e};
_.r.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.r.onExpandedChanged=function(){var W=this;if(this.expanded)for(var e=_.R(this.hostElement.querySelectorAll("yt-img-shadow")),t=e.next();!t.done;t=e.next())t.value.onShow();_.Uc(this,function(){_.q2(W.hostElement,"yt-refit")})};
_.r.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
L$.prototype.onDataChanged=L$.prototype.onDataChanged;L$.prototype.onExpandedChanged=L$.prototype.onExpandedChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],L$.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],L$.prototype,"expanded",void 0);
_.P([_.ul("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L$.prototype,"onExpandedChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L$.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],L$);
_.H(L$,"ytd-sponsorships-expandable-message-renderer",function(){if(CxN!==void 0)return CxN;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CxN=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var nYy;var Eo=function(){return _.O.apply(this,arguments)||this};
_.Z(Eo,_.O);Eo.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"}}}}};
Eo.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.l(this.data.endButton,_.Md).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Eo.prototype.onDataChanged=Eo.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Eo.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eo.prototype,"onDataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Eo);
_.H(Eo,"ytd-sponsorships-heading-renderer",function(){if(nYy!==void 0)return nYy;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nYy=W},{mode:1});var fLN;var AT=function(){return _.O.apply(this,arguments)||this};
_.Z(AT,_.O);_.P([_.J(),_.Y("design:type",Object)],AT.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],AT);
_.H(AT,"ytd-sponsorships-links-renderer",function(){if(fLN!==void 0)return fLN;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fLN=W},{mode:1});var gYU;var NP=function(){return _.O.apply(this,arguments)||this};
_.Z(NP,_.O);_.r=NP.prototype;_.r.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.rz(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var e;(e=_.rz(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.removeAttribute("role")}};
_.r.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.r.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.r.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.r.getButtonDisabled=function(W){return W?void 0:""};
NP.prototype.onDataChanged=NP.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],NP.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],NP.prototype,"expanded",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NP.prototype,"onDataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],NP);
_.H(NP,"ytd-sponsorships-list-tile-renderer",function(){if(gYU!==void 0)return gYU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gYU=W},{mode:1});var TpZ;var J9Z;var db=function(){return _.O.apply(this,arguments)||this};
_.Z(db,_.O);db.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],db.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],db);
_.H(db,"ytd-sponsorships-promotion-renderer",function(){if(J9Z!==void 0)return J9Z;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return J9Z=W},{mode:1});var x0y;var WY=function(){return _.O.apply(this,arguments)||this};
_.Z(WY,_.O);WY.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],WY.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],WY);
_.H(WY,"ytd-sponsorships-purchase-option-renderer",function(){if(x0y!==void 0)return x0y;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return x0y=W},{mode:1});var OI8;var MWS;var sny=function(){return _.O.apply(this,arguments)||this};
_.Z(sny,_.O);_.P([_.J(),_.Y("design:type",Object)],sny.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],sny);
_.H(sny,"ytd-ypc-offer-promo-renderer",function(){if(MWS!==void 0)return MWS;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return MWS=W},{mode:1});var eY=function(){return _.O.apply(this,arguments)||this};
_.Z(eY,_.O);_.r=eY.prototype;
_.r.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"}}}}};
_.r.expansionCTA=function(W,e){return W&&(e?W.collapseCallToAction:W.expansionCallToAction)};
_.r.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.r.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.Uc(this,function(){_.q2(W.hostElement,"yt-refit")})};
_.r.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,e=(W=this.data)==null?void 0:W.onVisible;e&&this.ytComponentBehavior.resolveCommand(e)};
_.r.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.r.computeDisplaySeparator=function(){return!1};
_.r.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
eY.prototype.onDataChanged=eY.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],eY.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],eY.prototype,"data",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],eY.prototype,"expanded",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],eY.prototype,"purchaseButtonClicked",void 0);_.P([_.J({reflectToAttribute:!0,value:"show"}),_.Y("design:type",String)],eY.prototype,"titledisplaystatus",void 0);_.P([_.J({computed:"computeDisplayTitle(data.title)"}),_.Y("design:type",Boolean)],eY.prototype,"displayTitle",void 0);
_.P([_.J({computed:"computeDisplaySeparator(data)"}),_.Y("design:type",Boolean)],eY.prototype,"displaySeparator",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eY.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],eY);
_.H(eY,"ytd-sponsorships-tier-renderer",function(){if(OI8!==void 0)return OI8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return OI8=W},{mode:2});var t6=function(){return _.O.apply(this,arguments)||this};
_.Z(t6,_.O);
t6.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],t6.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],t6);
_.H(t6,"ytd-sponsorships-management-renderer",function(){if(TpZ!==void 0)return TpZ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return TpZ=W},{mode:1});var hvB;var bA=function(){return _.O.apply(this,arguments)||this};
_.Z(bA,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],bA.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],bA);
_.H(bA,"ytd-open-in-native-app-view-model",function(){if(hvB!==void 0)return hvB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hvB=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var HIe;var KQv;var Pxe=_.Nw(["top-"]),VWh=_.Nw(["bottom-"]),iIr=_.Nw(["left-"]),Yg8=_.Nw(["right-"]),zvv={},U0U=function(W,e,t){W.removeAttribute("top-"+t);W.removeAttribute("bottom-"+t);W.removeAttribute("left-"+t);W.removeAttribute("right-"+t);e&&(e.top&&_.P7([_.eH(Pxe)],W,"top-"+t,e.top),e.bottom&&_.P7([_.eH(VWh)],W,"bottom-"+t,e.bottom),e.left&&_.P7([_.eH(iIr)],W,"left-"+t,e.left),e.right&&_.P7([_.eH(Yg8)],W,"right-"+t,e.right))};
zvv.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var e,t=_.rz((e=this.hostElement)!=null?e:this),b;e=this.cardItemBoxBehaviorMarginTargetId&&t?t.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(b=this.hostElement)!=null?b:this;U0U(e,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var e,t=_.rz((e=this.hostElement)!=null?e:this),b;e=this.cardItemBoxBehaviorPaddingTargetId&&t?t.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(b=this.hostElement)!=null?b:this;U0U(e,W,"padding")}}];var m8={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 LQv;var EYD;var r7=function(){return _.O.apply(this,arguments)||this};
_.Z(r7,_.O);r7.prototype.textColorChanged_=function(){this.hostElement.style.color=m8[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
r7.prototype.textColorChanged_=r7.prototype.textColorChanged_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.P([_.y(zvv.YtCardItemBoxBehavior),_.Y("design:type",Object)],r7.prototype,"ytCardItemBoxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],r7.prototype,"data",void 0);_.P([_.ul("data.textColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r7.prototype,"textColorChanged_",null);
_.P([_.gz({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],r7);
_.H(r7,"yt-card-item-text-renderer",function(){if(EYD===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;LQv===void 0&&(LQv=document.createElement("template"));var b=LQv;t.call(e,b.content.cloneNode(!0),W.content.firstChild);EYD=W}W=EYD;return W},{mode:2});var A9e;var Np8;var q6=function(){return _.O.apply(this,arguments)||this};
_.Z(q6,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],q6.prototype,"data",void 0);_.P([_.gz({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],q6);
_.H(q6,"yt-card-item-badge-renderer",function(){if(Np8===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;A9e===void 0&&(A9e=document.createElement("template"));var b=A9e;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Np8=W}W=Np8;return W},{mode:2});var d0Z;var Wph;var Rx=function(){return _.O.apply(this,arguments)||this};
_.Z(Rx,_.O);Rx.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Rx.prototype,"data",void 0);_.P([_.gz({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Rx);
_.H(Rx,"yt-card-item-text-collection-renderer",function(){if(Wph===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;d0Z===void 0&&(d0Z=document.createElement("template"));var b=d0Z;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Wph=W}W=Wph;return W},{mode:2});var eEo;var t4N;var Qt=function(){return _.O.apply(this,arguments)||this};
_.Z(Qt,_.O);Qt.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]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Qt.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Number)],Qt.prototype,"iconSize",void 0);_.P([_.gz({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Qt);
_.H(Qt,"yt-card-item-text-with-button-renderer",function(){if(t4N===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;eEo===void 0&&(eEo=document.createElement("template"));var b=eEo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);t4N=W}W=t4N;return W},{mode:2});var FM=function(){return _.O.apply(this,arguments)||this};
_.Z(FM,_.O);FM.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],FM.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],FM.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],FM);
_.H(FM,"ytd-commerce-cart-summary-line-item-renderer",function(){if(KQv!==void 0)return KQv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return KQv=W},{mode:1});_.xD("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var XM=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;return W};
_.Z(XM,_.O);_.r=XM.prototype;_.r.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"}}}}};
_.r.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.r.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,e;if(((e=this.data)==null?0:e.cartButton)&&W.checkoutSummaryText){var t,b=Kv((t=this.data)==null?void 0:t.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",PL(W.checkoutSummaryText));if(W.checkoutDetailText){var m;t=Kv((m=this.data)==null?void 0:m.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",PL(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var q;
m=Kv((q=this.data)==null?void 0:q.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+m+".cardItemTextRenderer.text",PL(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(q=Kv((b=this.data)==null?void 0:b.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+q+".cardItemTextRenderer.text",PL(W.estimatedTotalPrice)))};
_.r.updateIsHidden=function(){var W,e=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;e!==void 0&&(this.hidden=e)};
_.r.updateCheckoutButton=function(){var W,e=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",e);var t;W=(t=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:t.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var b;t=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.checkoutButtonText;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:t})};
XM.prototype.entityChanged=XM.prototype.entityChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],XM.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XM.prototype,"fullWidth",void 0);_.P([_.J(),_.Y("design:type",Object)],XM.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XM.prototype,"compact",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XM.prototype,"hidden",void 0);
_.P([_.J({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:j2Z}),_.Y("design:type",Object)],XM.prototype,"commerceCartCheckoutButtonEntity",void 0);_.P([_.ul("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XM.prototype,"entityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],XM);
_.H(XM,"ytd-commerce-cart-checkout-button-renderer",function(){if(HIe!==void 0)return HIe;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return HIe=W},{mode:2});var bED;_.mjr={};
_.mjr.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",_.aH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.aH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.X5(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.X5(this.hostElement,[W]):_.IT(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var ruo;var q$v;var Ix=function(){return _.O.apply(this,arguments)||this};
_.Z(Ix,_.O);Ix.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.OZ("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.OZ("sharingToggleButtonAndDefaultButton")}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ix.prototype,"data",void 0);_.P([_.gz({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Ix);
_.H(Ix,"yt-card-item-actions-renderer",function(){if(q$v===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ruo===void 0&&(ruo=document.createElement("template"));var b=ruo;t.call(e,b.content.cloneNode(!0),W.content.firstChild);q$v=W}W=q$v;return W},{mode:2});var REk;var QlS;var Fpb;var XoZ;var Iwh;var awe;var ax=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.Z(ax,_.O);ax.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ax.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
ax.prototype.computeThemeImage_=function(W,e){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.h8(W.borderColor));return e&&W.imageDark?W.imageDark:W.imageLight};
ax.prototype.computeThemeIcon_=function(W){var e,t;if(!(W==null?0:(e=W.themedIcon)==null?0:(t=e.icon)==null?0:t.iconType))return!1;this.icon.style.color=m8[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.ao(W.themedIcon.icon.iconType)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(zvv.YtCardItemBoxBehavior),_.Y("design:type",Object)],ax.prototype,"ytCardItemBoxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ax.prototype,"data",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],ax.prototype,"fit",void 0);_.P([_.J(),_.Y("design:type",Boolean)],ax.prototype,"isDarkTheme_",void 0);_.P([_.J({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Y("design:type",Object)],ax.prototype,"themeImage_",void 0);_.P([_.J({computed:"computeThemeIcon_(data)"}),_.Y("design:type",Object)],ax.prototype,"themeIcon_",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],ax.prototype,"isCircular_",void 0);
_.P([_.vG("#image"),_.Y("design:type",Object)],ax.prototype,"image",void 0);_.P([_.vG("#icon"),_.Y("design:type",Object)],ax.prototype,"icon",void 0);_.P([_.gz({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ax);
_.H(ax,"yt-themed-image-renderer",function(){if(awe===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Iwh===void 0&&(Iwh=document.createElement("template"));var b=Iwh;t.call(e,b.content.cloneNode(!0),W.content.firstChild);awe=W}W=awe;return W},{mode:2});var w7=function(){return _.O.apply(this,arguments)||this};
_.Z(w7,_.O);w7.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"}}}}};
w7.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],w7.prototype,"data",void 0);_.P([_.J({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Y("design:type",String)],w7.prototype,"imagePlacement",void 0);
_.P([_.gz({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],w7);
_.H(w7,"yt-card-item-text-with-image-renderer",function(){if(XoZ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Fpb===void 0&&(Fpb=document.createElement("template"));var b=Fpb;t.call(e,b.content.cloneNode(!0),W.content.firstChild);XoZ=W}W=XoZ;return W},{mode:2});var uA=function(){return _.O.apply(this,arguments)||this};
_.Z(uA,_.O);uA.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"}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uA.prototype,"data",void 0);_.P([_.gz({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],uA);
_.H(uA,"yt-card-item-error-renderer",function(){if(QlS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;REk===void 0&&(REk=document.createElement("template"));var b=REk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);QlS=W}W=QlS;return W},{mode:2});var woB;var uGZ;_.xD("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var cY=function(){return _.O.apply(this,arguments)||this};
_.Z(cY,_.O);_.r=cY.prototype;
_.r.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"}}}}};
_.r.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.r.backgroundColorChanged_=function(){var W,e=(W=this.data)==null?void 0:W.backgroundColor;W=m8[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.rz(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.r.headerPromoBackgroundColorChanged_=function(){var W,e=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=m8[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.rz(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.r.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,e;this.isErrorRendererVisible_=!((e=this.data)==null||!e.errorRenderer)&&!W};
_.r.onYtToggleButton_=function(W,e){this.isExpanded_=e.toggled};
cY.prototype.onYtToggleButton_=cY.prototype.onYtToggleButton_;cY.prototype.errorRendererVisibilityChanged_=cY.prototype.errorRendererVisibilityChanged_;cY.prototype.headerPromoBackgroundColorChanged_=cY.prototype.headerPromoBackgroundColorChanged_;cY.prototype.backgroundColorChanged_=cY.prototype.backgroundColorChanged_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(zvv.YtCardItemBoxBehavior),_.Y("design:type",Object)],cY.prototype,"ytCardItemBoxBehavior",void 0);_.P([_.y(_.mjr.YtTappableItemBehavior),_.Y("design:type",Object)],cY.prototype,"ytTappableItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cY.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],cY.prototype,"isExpanded_",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],cY.prototype,"isErrorRendererVisible_",void 0);_.P([_.ul("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cY.prototype,"backgroundColorChanged_",null);_.P([_.ul("data.headerPromoBackgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cY.prototype,"headerPromoBackgroundColorChanged_",null);
_.P([_.ul("data.errorRenderer","isExpanded_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cY.prototype,"errorRendererVisibilityChanged_",null);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],cY.prototype,"onYtToggleButton_",null);_.P([_.gz({is:"yt-card-item-renderer",disableElementRegistration:!0})],cY);
_.H(cY,"yt-card-item-renderer",function(){if(uGZ===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;woB===void 0&&(woB=document.createElement("template"));var b=woB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);uGZ=W}W=uGZ;return W},{mode:2});_.xD("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var vY=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;return W};
_.Z(vY,_.O);_.r=vY.prototype;_.r.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.r.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.r.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,e=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;e!==void 0&&(this.hidden=e)}};
_.r.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,e,t,b=(t=_.l((e=this.data)==null?void 0:e.item,r2h))==null?void 0:t.headingRenderer;b&&(e=Kv(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.r.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var e,t,b=(t=_.l((e=this.data)==null?void 0:e.item,r2h))==null?void 0:t.headingRenderer;b&&(e=Kv(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+e+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?PL(W.shortHeaderSummaryText):W.headerSummaryText?PL(W.headerSummaryText):""))}else{var m;if(e=(m=_.l((b=this.data)==null?void 0:b.item,r2h))==null?void 0:m.additionalInfoRenderer)e=Kv(e,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".text",W.headerSummaryText?PL(W.headerSummaryText):"")}};
_.r.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,e,t,b=(t=_.l((e=this.data)==null?void 0:e.item,r2h))==null?void 0:t.additionalInfoRenderer;e=Kv(b,"buttonRenderer");var m;t=(m=this.commerceCartHeaderEntity)==null?void 0:m.isButtonDisabled;var q;m=(q=this.commerceCartHeaderEntity)==null?void 0:q.isButtonHidden;t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.isDisabled",t);m!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
m);var Q;W=(Q=W.checkoutButtonCommand)==null?void 0:Q.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+e+".buttonRenderer.command",W)};
vY.prototype.entityChanged=vY.prototype.entityChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],vY.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vY.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vY.prototype,"compact",void 0);_.P([_.J({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,e){return _.I1(W.entities,"commerceCartHeaderEntity",e)}}),
_.Y("design:type",Object)],vY.prototype,"commerceCartHeaderEntity",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vY.prototype,"hidden",void 0);_.P([_.ul("commerceCartHeaderEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vY.prototype,"entityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],vY);
_.H(vY,"ytd-commerce-cart-header-renderer",function(){if(bED!==void 0)return bED;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bED=W},{mode:1});var cuh;var v1e=_.ot(function(W,e){var t;return(t=W.onChangeCallback)==null?void 0:t.call(W,e)},1E3),Gto=_.NN(function(W){var e=W.data;
var t=W.iconMinus;W=W.iconPlus;var b=function(){return!!e().disabled},m=_.R(_.up(0,void 0,"r56zNb")),q=m.next().value,Q=m.next().value;
m={};m=_.ve("yt-spec-quantity-incrementer-shape__icon",(m["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return b()||q()===(e().onRemoveCommand?0:1)},m));
var X={};X=_.ve("yt-spec-quantity-incrementer-shape__icon",(X["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return q()>=e().maxValue||b()},X));
var I={};I=_.ve("yt-spec-quantity-incrementer-shape__text",(I["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return q()>e().maxValue},I["yt-spec-quantity-incrementer-shape__text--text-disabled"]=b,I));
var u=_.Be(function(){if(q()===1){var v,D;(D=(v=e()).onRemoveCommand)==null||D.call(v)}v=q()>e().maxValue?e().maxValue:q()-1;Q(v);v1e(e(),v);return!1}),c=_.Be(function(){if(q()===e().maxValue)return!1;
var v=q()+1;Q(v);v1e(e(),v);return!1});
_.jm(function(){Q(e().value)});
return _.w("quantity-incrementer-shape",null,_.w("div",{class:"yt-spec-quantity-incrementer-shape"},_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return q()===(e().onRemoveCommand?0:1)||b()},
"aria-label":function(){return q()!==1?e().minusLabel:e().minimumReachedLabel},
"on:click":u},_.w(_.jN,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:m},t()))),_.w("div",{class:I},q),_.w("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return q()>=e().maxValue||b()},
"aria-label":function(){return q()!==e().maxValue?e().plusLabel:e().maximumReachedLabel},
"on:click":c},_.w(_.jN,{model:{circular:!0}}),_.w("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.w("div",{class:X},W())))))},"Qd");_.mM(_.NN(function(W){function e(){t().onRemoveCommand&&_.K4(t().onRemoveCommand)}
var t=W.data;var b=_.D_(x1G,function(){return t().quantityIncrementerEntityKey});
return _.w("yt-quantity-incrementer-view-model",null,_.w(Gto,{data:function(){var m=t(),q;var Q=b()?!((q=b())==null||!q.disabled):!1;var X;q=b()?(X=b())==null?void 0:X.quantity:t().quantity;return Xd9(m,Q,e,q)},
iconMinus:function(){return _.w(_.kD,{icon:"BAR_HORIZONTAL",className:_.DT("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.w(_.kD,{icon:"ADD",className:_.DT("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.Eu}});var Gb=function(){var W=_.O.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.Z(Gb,_.O);Gb.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"}}}};
Gb.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.l((W=this.data)==null?void 0:W.picker,FwP)};
Gb.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
_.P([_.vG("ytd-dropdown-renderer"),_.Y("design:type",Object)],Gb.prototype,"dropdownEl",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gb.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Gb.prototype,"quantityColor",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gb.prototype,"compact",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Y("design:type",Object)],Gb.prototype,"hasQuantityIncrementer",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Gb);
_.H(Gb,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(cuh!==void 0)return cuh;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cuh=W},{mode:1});var Djv;var S$b;var Ds=function(){return _.O.apply(this,arguments)||this};
_.Z(Ds,_.O);Ds.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ds.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Ds.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",PL(W.disableActionName))};
Ds.prototype.updateButton=function(){var W,e=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;e!==void 0&&(this.set("data.actionButton.buttonRenderer.command",e),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Ds.prototype.entityChanged=Ds.prototype.entityChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],Ds.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,e){return _.I1(W.entities,"disabledCartItemEntity",e)}}),
_.Y("design:type",Object)],Ds.prototype,"disabledCartItemEntity",void 0);_.P([_.J(),_.Y("design:type",Object)],Ds.prototype,"data",void 0);_.P([_.ul("disabledCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ds.prototype,"entityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Ds);
_.H(Ds,"ytd-disabled-cart-item-renderer",function(){if(S$b!==void 0)return S$b;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return S$b=W},{mode:1});_.xD("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var SY=function(){var W=_.O.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.Z(SY,_.O);_.r=SY.prototype;
_.r.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"}}}};
_.r.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.r.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.r.computeNoOnTap=function(W){return!W};
_.r.updateQuantityColor=function(){if(this.pickerElement){var W,e=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=e}};
_.r.updateTotalPriceColor=function(){var W,e=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(e){var t;W=_.l((t=this.data)==null?void 0:t.quantityPicker,RYS);if(t=_.l(W==null?void 0:W.price,qjb))t.textColor=e}};
_.r.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,e=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;e!==void 0&&(this.hidden=e)}};
_.r.updateHideErrorMessage=function(){var W,e=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;e!==void 0&&(this.errorHidden=e)};
_.r.updateQuantity=function(){var W=this,e,t=(e=this.commerceCartItemEntity)==null?void 0:e.quantity,b;e=(b=this.commerceCartItemEntity)==null?void 0:b.totalPrice;if(t){this.updateTotalPriceColor();this.updateQuantityColor();var m;b=_.l((m=this.data)==null?void 0:m.quantityPicker,RYS);if(m=_.l(b==null?void 0:b.price,qjb))m.text=e?{simpleText:e.content}:void 0;if(e=_.l(b==null?void 0:b.picker,FwP))e.quantity=t;var q;if(m=(q=_.l(b==null?void 0:b.picker,acy))==null?void 0:q.entries){q=!1;e=void 0;m=
_.R(m);for(b=m.next();!b.done;b=m.next())b=b.value,b.dropdownItemRenderer&&(e||(e=b.dropdownItemRenderer),b.dropdownItemRenderer.isSelected=!1,t===b.dropdownItemRenderer.int32Value&&(q=!0,b.dropdownItemRenderer.isSelected=!0));!q&&e&&(e.isSelected=!0)}_.Uc(this,function(){var Q;W.set("data.quantityPicker",_.kJ.unsafeClone((Q=W.data)==null?void 0:Q.quantityPicker))})}};
SY.prototype.onYtRendererstamperFinished=SY.prototype.onYtRendererstamperFinished;SY.prototype.entityChanged=SY.prototype.entityChanged;_.P([_.J(),_.Y("design:type",Object)],SY.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],SY.prototype,"compact",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],SY.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],SY.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,e){return _.I1(W.entities,"commerceCartItemEntity",e)}}),
_.Y("design:type",Object)],SY.prototype,"commerceCartItemEntity",void 0);_.P([_.J(),_.Y("design:type",Object)],SY.prototype,"quantityPicker",void 0);_.P([_.J(),_.Y("design:type",Object)],SY.prototype,"compactQuantityPicker",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],SY.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],SY.prototype,"errorHidden",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Y("design:type",Object)],SY.prototype,"noOnTap",void 0);_.P([_.vG("ytd-commerce-cart-item-quantity-picker-renderer"),_.Y("design:type",Object)],SY.prototype,"pickerElement",void 0);_.P([_.vG("yt-button-renderer"),_.Y("design:type",Element)],SY.prototype,"firstButtonElement",void 0);
_.P([_.ul("commerceCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SY.prototype,"entityChanged",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SY.prototype,"onYtRendererstamperFinished",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],SY);
_.H(SY,"ytd-commerce-cart-item-renderer",function(){if(Djv!==void 0)return Djv;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Djv=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var B4P;var o18;var BY=function(){return _.O.apply(this,arguments)||this};
_.Z(BY,_.O);BY.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}}}}}};
BY.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
BY.prototype.updateCheckoutLineItems=function(){var W,e=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;e&&(W=e.map(function(t){a:{var b=t.price,m=t.description;switch(t.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":t={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:PL(m),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:PL(b),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:t={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:PL(m),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:PL(b),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return t}),this.set("data.summaryLineItems",W))};
BY.prototype.updateIsHidden=function(){var W,e=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;e!==void 0&&(this.hostElement.hidden=e)};
BY.prototype.entityChanged=BY.prototype.entityChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],BY.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],BY.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],BY.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:j2Z}),_.Y("design:type",Object)],BY.prototype,"commerceCartCheckoutButtonEntity",void 0);_.P([_.ul("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BY.prototype,"entityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],BY);
_.H(BY,"ytd-commerce-cart-summary-renderer",function(){if(o18!==void 0)return o18;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return o18=W},{mode:1});var lwU={};lwU.InjectBehavior=[dvs.InjectBehavior];var ZED;var $jU;var ox=function(){return _.O.apply(this,arguments)||this};
_.Z(ox,_.O);
ox.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:_.OZ("menuRenderer")}}};
ox.prototype.onMenuTap=function(W){W.stopPropagation()};
_.Ec.Object.defineProperties(ox.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 W,e;return!(((W=this.data)==null||!W.sectionHeading)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,e;return!(((W=this.data)==null||!W.image)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,e;return!(((W=this.data)==null||!W.menu)&&((e=this.data)==null?void 0:e.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.mjr.YtTappableItemBehavior),_.Y("design:type",Object)],ox.prototype,"ytTappableItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ox.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.accessibilityData"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ox.prototype,"ariaLabel",null);_.P([_.T("data.sectionHeading","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ox.prototype,"sectionHeadingVisible",null);_.P([_.T("data.image","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ox.prototype,"imageVisible",null);
_.P([_.T("data.menu","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ox.prototype,"menuVisible",null);_.P([_.gz({is:"yt-activity-item-renderer",disableElementRegistration:!0})],ox);
_.H(ox,"yt-activity-item-renderer",function(){if($jU===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ZED===void 0&&(ZED=document.createElement("template"));var b=ZED;t.call(e,b.content.cloneNode(!0),W.content.firstChild);$jU=W}W=$jU;return W},{mode:2});var ktP;var poo;var yuk;var jlr;var lA=function(){return _.O.apply(this,arguments)||this};
_.Z(lA,_.O);
lA.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"}}}}};
lA.prototype.backgroundColorChanged_=function(){var W,e=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=m8[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
lA.prototype.backgroundColorChanged_=lA.prototype.backgroundColorChanged_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lA.prototype,"data",void 0);
_.P([_.ul("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lA.prototype,"backgroundColorChanged_",null);_.P([_.gz({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],lA);
_.H(lA,"yt-offer-item-upsell-renderer",function(){if(jlr===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;yuk===void 0&&(yuk=document.createElement("template"));var b=yuk;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jlr=W}W=jlr;return W},{mode:2});_.xD("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Zs=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.Z(Zs,_.O);_.r=Zs.prototype;
_.r.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:_.OZ("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.r.computeContainerStyle_=function(W){return W};
_.r.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.r.computeShowSpinner_=function(W,e){return W&&e==="in-progress"};
_.r.computeShowMoreContentsButton_=function(W,e,t,b,m){return!(!(b&&b.length||m&&m.length&&t)||!W||e)};
_.r.onToggleButton_=function(W){var e=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var t,b;this.isExpanded_&&!this.data.continuationSection.length&&((t=this.data)==null?0:(b=t.continuation)==null?0:b.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.q2(this.hostElement,"yt-load-next-continuation",function(m){return e.getContinuationUrl_(e.data.continuation.onClickContinuationData,m)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.X5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.r.onShowMoreContentsButtonClicked_=function(W){var e=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.q2(this.hostElement,"yt-load-next-continuation",function(t){return e.getContinuationUrl_(e.data.continuations[0].nextContinuationData,t)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.X5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.r.getContinuationUrl_=function(W,e){var t=W.continuation;W=W.clickTrackingParams;var b=_.fc();W&&b&&_.zv(b,_.$5(W));return _.Ut(e,{continuation:t})};
_.r.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.rz(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(e){return e.classList.add("memberships-and-purchases")})};
_.r.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.r.updateCardOnClickCommand_=function(W){W=_.l(W,ArZ);var e,t;this.data&&((e=this.data)==null?0:e.targetId)&&W&&W.targetId===((t=this.data)==null?void 0:t.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.r.backgroundColorChanged_=function(){var W,e=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=m8[e||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Zs.prototype.backgroundColorChanged_=Zs.prototype.backgroundColorChanged_;Zs.prototype.dataChanged_=Zs.prototype.dataChanged_;Zs.prototype.nextContinuationDataUpdated_=Zs.prototype.nextContinuationDataUpdated_;Zs.prototype.onToggleButton_=Zs.prototype.onToggleButton_;_.P([_.y(_.PB),_.Y("design:type",Object)],Zs.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zs.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],Zs.prototype,"ytNextContinuationBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.P([_.y(lwU.InjectBehavior),_.Y("design:type",Object)],Zs.prototype,"injectBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zs.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Zs.prototype,"compact",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Zs.prototype,"isExpanded_",void 0);_.P([_.J({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Y("design:type",String)],Zs.prototype,"containerStyle_",void 0);_.P([_.J({value:"not-started"}),_.Y("design:type",String)],Zs.prototype,"continuationStatus_",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Y("design:type",Boolean)],Zs.prototype,"showSpinner_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Zs.prototype,"isOnClickCommand_",void 0);_.P([_.J({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Y("design:type",Boolean)],Zs.prototype,"showMoreContentsButton_",void 0);
_.P([_.J({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,e){return!e||W.entities?null:_.I1(W.entities,"cardItemContainerEntity",e)}}),
_.Y("design:type",Object)],Zs.prototype,"cardItemContainerEntity_",void 0);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Zs.prototype,"onToggleButton_",null);_.P([_.wz("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zs.prototype,"nextContinuationDataUpdated_",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zs.prototype,"dataChanged_",null);_.P([_.ul("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zs.prototype,"backgroundColorChanged_",null);_.P([_.gz({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Zs);
_.H(Zs,"yt-card-item-container-renderer",function(){if(poo===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ktP===void 0&&(ktP=document.createElement("template"));var b=ktP;t.call(e,b.content.cloneNode(!0),W.content.firstChild);poo=W}W=poo;return W},{mode:2});var $X=function(){return _.O.apply(this,arguments)||this};
_.Z($X,_.O);$X.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"}}}};
$X.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
$X.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
$X.prototype.updateNotification=function(){var W,e=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;e&&this.set("data.cartNotification",PL(e))};
$X.prototype.notificationEntityChanged=$X.prototype.notificationEntityChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$X.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],$X.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,e){return _.I1(W.entities,"commerceCartExpandableNotificationEntity",e)}}),
_.Y("design:type",Object)],$X.prototype,"commerceCartExpandableNotificationEntity",void 0);_.P([_.J({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,e){return _.I1(W.entities,"commerceCartPageStateEntity",e)}}),
_.Y("design:type",Object)],$X.prototype,"commerceCartPageStateEntity",void 0);_.P([_.vG("#spinner"),_.Y("design:type",HTMLElement)],$X.prototype,"spinner",void 0);_.P([_.ul("commerceCartExpandableNotificationEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$X.prototype,"notificationEntityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],$X);
_.H($X,"ytd-commerce-cart-renderer",function(){if(B4P!==void 0)return B4P;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return B4P=W},{mode:1});var CMh;var kX=function(){var W=_.O.apply(this,arguments)||this;W.bigImage=!1;return W};
_.Z(kX,_.O);_.Ec.Object.defineProperties(kX.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kX.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],kX.prototype,"bigImage",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kX.prototype,"placeholderImageUrl",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],kX);
_.H(kX,"ytd-empty-product-shelf-renderer",function(){if(CMh!==void 0)return CMh;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return CMh=W},{mode:1});var n1U;var pl=function(){var W=_.O.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.Z(pl,_.O);_.r=pl.prototype;_.r.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.r.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"}}}}};
_.r.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.r.attachVEs=function(W){W.trackingParams&&_.Sg().graftServerVe(W.trackingParams)};
_.r.handleUpdateMerchShelfAction=function(W){var e=this,t=_.l(W.updateMerchandiseShelfAction.merchandiseShelf,_.gZB);t&&(t.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){e.attachVEs(t);e.data=t},Number(t.renderDelayMs))):(this.attachVEs(t),this.data=t))};
_.r.updateOnResize=function(){if(this.JSC$14755_scrollContainer!==void 0&&this.JSC$14755_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$14755_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var e;switch((e=this.data)==null?void 0:e.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var t,
b;((t=this.data)==null?void 0:(b=t.items)==null?void 0:b.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.r.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Qy(this.updateOnResizeDebouncer,_.E5.after(100),this.updateOnResize)};
pl.prototype.debouncedUpdateOnResize=pl.prototype.debouncedUpdateOnResize;pl.prototype.dataChanged=pl.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],pl.prototype,"ytdHorizontalListBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],pl.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],pl.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pl.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pl.prototype,"itemStyle",void 0);_.P([_.J({value:6}),_.Y("design:type",Number)],pl.prototype,"initialCount",void 0);
_.P([_.J({value:"data.items"}),_.Y("design:type",String)],pl.prototype,"itemsPath",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pl.prototype,"watchMetadataRefresh",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pl.prototype,"skinnyMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pl.prototype,"metaPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pl.prototype,"inStructuredDescription",void 0);
_.P([_.vG("#items"),_.Y("design:type",HTMLDivElement)],pl.prototype,"items",void 0);_.P([_.vG("#scroll-container"),_.Y("design:type",HTMLDivElement)],pl.prototype,"JSC$14755_scrollContainer",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pl.prototype,"dataChanged",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pl.prototype,"debouncedUpdateOnResize",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],pl);
_.H(pl,"ytd-merch-shelf-renderer",function(){if(n1U!==void 0)return n1U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return n1U=W},{mode:2});var fw8;var jY=function(){var W=_.O.apply(this,arguments)||this;W.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 W};
_.Z(jY,_.O);_.r=jY.prototype;
_.r.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.r.addBackstageCommentAction=function(W){var e=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(e&&W){e=this.postIdToIndices(e);for(var t=0;t<e.length;t++){var b=e[t];if(b<0)break;b="data.contents."+b+".backstagePostThreadRenderer.comments";this.get(b)&&(this.get(b+".backstageCommentsRenderer.contents")&&this.push(b+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(b+".backstageCommentsRenderer.teaserContents")?
this.push(b+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(b+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.r.addBackstageReplyAction=function(W){var e=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);e&&W&&this.setCreatorReply(e,W)};
_.r.banAuthorAction=function(W){var e=this.get("banAuthorAction.commentId",W);e&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(e),this.removeFromStream(e,W))};
_.r.hideReportedCommentAction=function(W){var e=this.get("hideReportedCommentAction.commentId",W);e&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(e)),this.removeFromStream(e,W))};
_.r.replaceBackstageCommentAction=function(W){var e=this.get("replaceBackstageCommentAction.commentId",W),t=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(e&&t&&W){t=this.postIdToIndices(t);for(var b=0;b<t.length;b++){var m=t[b];if(m<0)break;var q=this.commentIdToIndex(e,m,!1);if(q>=0){var Q=this.get("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+q+".commentThreadRenderer.replies.commentRepliesRenderer");
Q&&(W.replies={commentRepliesRenderer:Q});this.splice("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",q,1,{commentThreadRenderer:W})}q=this.commentIdToIndex(e,m,!0);if(q>=0){if(Q=this.get("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(q+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:Q};this.splice("data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
q,1,{commentThreadRenderer:W})}}}};
_.r.replaceBackstagePostAction=function(W){var e=this.get("replaceBackstagePostAction.itemId",W);if(e){e=this.postIdToIndices(e);for(var t=0;t<e.length;t++){var b=e[t];if(b<0)break;var m=this.getPostRendererType(b),q=this.get("replaceBackstagePostAction.renderer."+m,W);if(!q&&m!=="sharedPostRenderer")break;var Q=!1;q||(Q=!0,q=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!q)break;var X={};Q?(_.gA(X,s4r,q),this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
X)):(_.gA(X,new _.z(m),q),this.set("data.contents."+b+".backstagePostThreadRenderer.post",X))}}};
_.r.replaceBackstageReplyAction=function(W){var e=this.get("replaceBackstageReplyAction.replyId",W),t=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);e&&W&&t&&this.setCreatorReply(t,W)};
_.r.removeCommentAction=function(W){var e=this.get("removeCommentAction.commentId",W);if(e){var t=this.get("removeCommentAction.parentCommentId",W);t&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(t,void 0):(t||(t=this.getParentPostId(e)),this.removeFromStream(e,t))}};
_.r.setCreatorReply=function(W,e){var t=this.getParentPostId(W);if(t){t=this.postIdToIndices(t);for(var b=0;b<t.length;b++){var m=t[b];if(m<0)break;var q=this.commentIdToIndex(W,m,!1);if(q>=0){var Q="data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+q;q=Q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Q+=".commentThreadRenderer.replies";e==void 0?(this.set(Q,{}),this.set(q,!1)):(this.set(Q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),
this.set(Q+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(q,!0))}q=this.commentIdToIndex(W,m,!0);q>=0&&(q="data.contents."+m+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+q,m=q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",q+=".commentThreadRenderer.replies",e==void 0?(this.set(q,{}),this.set(m,!1)):(this.set(q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:e}]}}),this.set(m,!0)))}}};
_.r.removeFromStream=function(W,e){if(e){e=this.postIdToIndices(e);for(var t=0;t<e.length;t++){var b=e[t];if(b<0)break;var m=this.commentIdToIndex(W,b,!1);m>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",m,1);m=this.commentIdToIndex(W,b,!0);m>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",m,1);b="data.contents."+b+".backstagePostThreadRenderer.post.backstagePostRenderer";
m=b+".backstageAttachment.pollRenderer.votedCommentId";this.get(m)===W&&(this.set(m,null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(e=this.postIdToIndices(W).reverse(),t=0;t<e.length;t++){b=e[t];if(b<0)break;m=this.getPostRendererType(b);var q=this.get("backstagePostThreadRenderer.post."+m,this.data.contents[b]);q.postId===W?this.splice("data.contents",b,1):m==="sharedPostRenderer"&&this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);q.scheduledPublishTimeSec&&_.RT(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.r.postIdToIndices=function(W){for(var e=[],t=0;t<this.data.contents.length;t++){var b=this.getPostRendererType(t);this.get("backstagePostThreadRenderer.post."+b+".postId",this.data.contents[t])===W&&e.push(t);if(b==="sharedPostRenderer"){var m=this.get("backstagePostThreadRenderer.post."+b+".originalPost.backstagePostRenderer.postId",this.data.contents[t]);b=this.get("backstagePostThreadRenderer.post."+b+".originalPost.postRenderer.postId",this.data.contents[t]);m!==W&&b!==W||e.push(t)}}return e};
_.r.commentIdToIndex=function(W,e,t){if(e<0)return-1;var b,m,q,Q,X=_.l((b=this.data)==null?void 0:(m=b.contents)==null?void 0:(q=m[e])==null?void 0:(Q=q.backstagePostThreadRenderer)==null?void 0:Q.comments,Onr);return(e=t?X==null?void 0:X.teaserContents:X==null?void 0:X.contents)&&e.length?e.findIndex(function(I){return _.l(I,IIZ).comment.commentRenderer.commentId===W}):-1};
_.r.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.r.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],jY.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jY.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-backstage-items"})],jY);
_.H(jY,"ytd-backstage-items",function(){if(fw8!==void 0)return fw8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fw8=
W},{mode:1});var g1D;var T4v={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};
_.yQ({is:"ytd-comments",_template:function(){if(g1D!==void 0)return g1D;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return g1D=W},
behaviors:[_.tUD.YtHostElementBehavior,_.Pl.YtPlayerListenerBehavior,_.d.YtRendererBehavior,_.qM.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","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_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.initCommentsCsi_()},
contentsChanged_:function(W){W&&W.value&&W.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(W){W&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.gy("wn_comments");var W=_.fc();W&&_.fe({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(W){W=_.kJ.unsafeClone(W);var e,t,b;if(W=(e=W)==null?void 0:(t=e.createCommentAction)==null?void 0:(b=t.contents)==null?void 0:b.commentThreadRenderer){var m,q,Q,X,I,u;!this.isBackstage&&((m=this.data)==null?0:(q=m.header)==null?0:(Q=q.commentsHeaderRenderer)==null?0:(X=Q.createRenderer)==null?0:(I=X.commentSimpleboxRenderer)==null?0:(u=I.zeroStep)==null?0:u.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var c,v,D,B;this.isBackstage&&((c=this.data)==null?0:(v=c.header)==null?0:(D=v.commentsHeaderRenderer)==null?0:(B=D.zeroStateMessage)==null?0:B.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}},
doReplyInsert_:function(W,e,t,b){b?this.splice(W,b,0,e):this.push(W,e)},
getRepliesPath_:function(W){return"data.contents."+W+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(W,e){W=this.getRepliesPath_(W);return e?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(W){W=_.kJ.unsafeClone(W);var e,t,b=(e=W)==null?void 0:(t=e.createCommentReplyAction)==null?void 0:t.parentCommentId,m,q;if(e=(m=W)==null?void 0:(q=m.createCommentReplyAction)==null?void 0:q.contents)if(b=this.commentIdToIndex_(b),!(b<0))if(m=this.getRepliesPath_(b),this.get(m)){var Q,X;W=(Q=W)==null?void 0:(X=Q.createCommentReplyAction)==null?void 0:X.replyToCommentId;Q=this.getRepliesContentsPath_(b,!1);this.get(Q)&&(X=this.get(Q).length,m=Q+"."+(X-1)+".continuationItemRenderer",
this.get(m+".button")?(m=this.replyIdToIndex_(W,b,!1),this.doReplyInsert_(Q,e,m,X-1)):this.get(m)||(X=this.replyIdToIndex_(W,b,!1),this.doReplyInsert_(Q,e,X,null)));Q=this.getRepliesContentsPath_(b,!0);this.get(Q)?(b=this.replyIdToIndex_(W,b,!0),(!W||b>=0)&&this.doReplyInsert_(Q,e,b,null)):this.set(Q,[e])}else this.set(m,{commentRepliesRenderer:{teaserContents:[e]}})},
hideReportedCommentAction_:function(W){var e,t=W==null?void 0:(e=W.hideReportedCommentAction)==null?void 0:e.commentId;if(t){var b;W=W==null?void 0:(b=W.hideReportedCommentAction)==null?void 0:b.parentCommentId;t=t.replace("#",".");W||(W=this.getParentCommentId_(t));this.remove_(t,W)}},
getParentCommentId_:function(W){W=W.split(".");if(W[1])return W[0]},
removeCommentAction_:function(W){var e,t=W==null?void 0:(e=W.removeCommentAction)==null?void 0:e.commentId;if(t){var b;W=W==null?void 0:(b=W.removeCommentAction)==null?void 0:b.parentCommentId;t=t.replace("#",".");W||(W=this.getParentCommentId_(t));this.remove_(t,W)}},
pinCommentAction_:function(W){W=_.kJ.unsafeClone(W);var e,t,b=(e=W)==null?void 0:(t=e.pinCommentAction)==null?void 0:t.commentId;b&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(b),this.insert_(W,!0))},
unpinCommentAction_:function(W){W=_.kJ.unsafeClone(W);var e,t,b=(e=W)==null?void 0:(t=e.unpinCommentAction)==null?void 0:t.commentId;if(b){var m,q,Q;if(W=(m=W.unpinCommentAction)==null?void 0:(q=m.actionResult)==null?void 0:(Q=q.update)==null?void 0:Q.commentThreadRenderer)this.remove_(b),this.insert_(W)}},
banAuthorAction_:function(W){var e,t=W==null?void 0:(e=W.banAuthorAction)==null?void 0:e.commentId;if(t){var b;W=W==null?void 0:(b=W.banAuthorAction)==null?void 0:b.parentCommentId;t=t.replace("#",".");W||(W=this.getParentCommentId_(t));this.remove_(t,W)}},
commentIdToIndex_:function(W){var e;return W&&(e=this.data)!=null&&e.contents?this.data.contents.findIndex(function(t){var b,m;return W===((t==null?void 0:(b=t.commentThreadRenderer)==null?void 0:b.commentViewModel)&&((m=_.l(t.commentThreadRenderer.commentViewModel,v2y))==null?void 0:m.commentId))}):-1},
insert_:function(W,e){var t,b;if((t=this.data)==null?0:(b=t.contents)==null?0:b.some(function(q){return!(q==null||!q.commentThreadRenderer)}))for(t=0,b=this.data.contents.length;t<b;t++){var m=this.data.contents[t].commentThreadRenderer;
if(T4v[W.renderingPriority]>=T4v[m.renderingPriority]){e&&T4v[W.renderingPriority]==T4v[m.renderingPriority]?this.splice("data.contents",t,1,{commentThreadRenderer:W}):this.splice("data.contents",t,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])},
doReplyRemove_:function(W,e,t){W=this.replyIdToIndex_(W,e,t);W<0||(e=this.getRepliesContentsPath_(e,t),this.splice(e,W,1))},
remove_:function(W,e){e=this.commentIdToIndex_(e);e<0?(e=this.commentIdToIndex_(W),e<0||this.splice("data.contents",e,1)):(this.doReplyRemove_(W,e,!1),this.doReplyRemove_(W,e,!0))},
replyIdToIndex_:function(W,e,t){if(e<0)return-1;e=this.getRepliesContentsPath_(e,t);e=this.get(e);if(!e||!e.length)return-1;t=0;for(var b=e.length;t<b;t++){var m=void 0,q=void 0;if(((m=e[t])==null?void 0:(q=m.commentViewModel)==null?void 0:q.commentId)===W)return t}return-1},
computeIsBackstage_:function(W){return!!W},
tickForCommentsTimer_:function(W){_.Jy(W,void 0,"wn_comments")},
reloadComments_:function(W){W=_.l(W,ui8);var e;(W==null?0:(e=W.command)==null?0:e.continuationCommand)&&_.X5(this,[W.command])}});var Cl=function(){return _.D0.apply(this,arguments)||this};
_.Z(Cl,_.D0);_.r=Cl.prototype;_.r.bindIf=function(W,e,t){return W?e:t};
_.r.bindIfDefined=function(W,e){return W!==void 0?W:e};
_.r.booleanString=function(W){return(!!W).toString()};
_.r.equals=function(){for(var W=_.$N.apply(0,arguments),e=W[0],t=1;t<W.length;t++)if(e!=W[t])return!1;return!0};
_.r.isGreaterThan=function(W,e){return W>e};
_.r.isLessThan=function(W,e){return W<e};
_.r.logicalAND=function(){for(var W=_.$N.apply(0,arguments),e=!!W[0],t=1;t<W.length;t++)e=e&&!!W[t];return e};
_.r.logicalOR=function(){for(var W=_.$N.apply(0,arguments),e=!!W[0],t=1;t<W.length;t++)e=e||!!W[t];return e};
_.r.toBool=function(W){return!!W};
Cl.prototype.toBool=Cl.prototype.toBool;Cl.prototype.logicalOR=Cl.prototype.logicalOR;Cl.prototype.logicalAND=Cl.prototype.logicalAND;Cl.prototype.isLessThan=Cl.prototype.isLessThan;Cl.prototype.isGreaterThan=Cl.prototype.isGreaterThan;Cl.prototype.equals=Cl.prototype.equals;Cl.prototype.booleanString=Cl.prototype.booleanString;Cl.prototype.bindIfDefined=Cl.prototype.bindIfDefined;Cl.prototype.bindIf=Cl.prototype.bindIf;_.P([_.SB()],Cl);_.Juh=[Cl.prototype];var xj8;var OEB;var nl=function(){return _.O.apply(this,arguments)||this};
_.Z(nl,_.O);nl.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
nl.prototype.onBackIconTap_=function(){window.history.back()};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nl.prototype,"data",void 0);_.P([_.gz({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],nl);
_.H(nl,"yt-header-with-back-renderer",function(){if(OEB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;xj8===void 0&&(xj8=document.createElement("template"));var b=xj8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);OEB=W}W=OEB;return W},{mode:2});var M4e;var slv;var fl=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(fl,_.O);_.r=fl.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.r.dataChanged=function(){var W=this;if(this.data){var e=this.setUrl();e&&_.eQ({destination:window,iframe:this.iframe,origin:_.syB(e.toString()),channelName:"yt-iframe",onMessage:function(t){(t=W.getCommunicationCommand(t.data))&&W.ytComponentBehavior.resolveCommand(t)},
onEstablished:function(){}})}};
_.r.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.J7(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.fF(this.iframe,W),W}};
_.r.getCommunicationCommand=function(W){var e;if((e=this.data)!=null&&e.onCommunicationCommandsMap){e=this.data.onCommunicationCommandsMap.find(function(m){return m.key===W});
if(e==null?0:e.value)return e==null?void 0:e.value;try{var t=KOU(_.Xb(W)),b=this.data.onCommunicationCommandsMap.find(function(m){return m.key===(t==null?void 0:_.T9(t,1))});
if(b==null?0:b.value)return b==null?void 0:b.value}catch(m){}}};
fl.prototype.dataChanged=fl.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],fl.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],fl.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fl.prototype,"data",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],fl.prototype,"isDarkTheme",void 0);_.P([_.vG("#iframe"),_.Y("design:type",HTMLIFrameElement)],fl.prototype,"iframe",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fl.prototype,"dataChanged",null);_.P([_.gz({is:"yt-iframe-renderer",disableElementRegistration:!0})],fl);
_.H(fl,"yt-iframe-renderer",function(){if(slv===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;M4e===void 0&&(M4e=document.createElement("template"));var b=M4e;t.call(e,b.content.cloneNode(!0),W.content.firstChild);slv=W}W=slv;return W},{mode:2});_.g7=function(W){_.ka.call(this);this.callback=W;this.bezier=new Dub(0,0,.4,0,.2,1,1,1);this.delay=new _.ds(this.next,window,this);this.JSC$14786_animating=!1;_.w$(this,this.delay)};
_.Z(_.g7,_.ka);_.g7.prototype.isAnimating=function(){return this.JSC$14786_animating};
_.g7.prototype.start=function(W,e,t){this.config={from:W,to:e,duration:t,startTime:(0,_.eJ)()};this.JSC$14786_animating=!0;this.next()};
_.g7.prototype.stop=function(){this.delay.stop();this.JSC$14786_animating=!1;this.config=void 0};
_.g7.prototype.next=function(){if(this.config){var W=this.config,e=W.from,t=W.to,b=W.duration;W=W.startTime;var m=(0,_.eJ)()-W;W=this.bezier;b=BD8(W,m/b);if(b==0)W=W.y0;else if(b==1)W=W.y3;else{m=Zu(W.y0,W.y1,b);var q=Zu(W.y1,W.y2,b);W=Zu(W.y2,W.y3,b);m=Zu(m,q,b);q=Zu(q,W,b);W=Zu(m,q,b)}W=_.Mw(W,0,1);this.callback(e+(t-e)*W);W<1?this.delay.start():this.JSC$14786_animating=!1}};_.Tb=new _.W_("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var hEe={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Kpk=function(W,e,t,b){_.ka.call(this);this.JSC$14794_miniAppId=W;this.localReleaseId=e;this.derivedDeviceInterface=t;this.isForeground=b;this.JSC$14794_playNonceResolver=new _.Xu;this.playPingTimerId=NaN;this.playPingIntervalMs=_.mn("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.mn("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.S("enable_displaying_ppn");this.JSC$14794_miniAppClientDataProvider=_.ee().resolve(_.Tb);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;HE8(this);var m=setTimeout(function(){_.JC(new _.o_("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14794_playNonceResolver.promise.then(function(){clearTimeout(m)})};
_.Z(Kpk,_.ka);var V4o=function(W,e){W.JSC$14794_playNonceResolver.resolve(e!=null?e:jV(8));W.enableDisplayingPpn&&PM8(W).then(function(t){W.JSC$14794_miniAppClientDataProvider.clientData.set("post_play_nonce",t)})},PM8=function(W){return _.F(function(e){return e.nextAddress==1?_.a(e,W.JSC$14794_playNonceResolver.promise,2):e.return(e.yieldResult)})},HE8=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$14794_playNonceResolver.promise,2);e=b.yieldResult;t={miniAppInfo:{externalPostId:W.JSC$14794_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:e,derivedDeviceInterface:W.derivedDeviceInterface}};_.fe(t);_.u8(b)})},Y$y=function(W){W.state!==0?_.JC(new _.o_("[MiniAppPlayLogger] recordPlayStart failed with state "+hEe[W.state])):(W.state=1,J6(W,"ma_cl"),xX(W,"PLAY_EVENT_TYPE_PLAY_START"),iEy(W))},zEZ=function(W){W.isForeground=!1;
xX(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},UjS=function(W){W.state!==1&&W.state!==2?_.JC(new _.o_("[MiniAppPlayLogger] recordPlayEnd failed with state "+hEe[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,q5g(),xX(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Lp8=function(W,e){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),xX(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):e&&(J6(W,"ma_fua"),xX(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
Kpk.prototype.logError=function(W){var e=this,t;_.F(function(b){if(b.nextAddress==1)return W.metadata.externalPostId=e.JSC$14794_miniAppId,t=W.metadata,_.a(b,Promise.race([e.JSC$14794_playNonceResolver.promise,new Promise(function(m){setTimeout(function(){m("")},3E4)})]),2);
t.postPlayNonce=b.yieldResult;W.metadata.localReleaseId=e.localReleaseId;W.loggingError.level="WARNING";_.gQ(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.u8(b)})};
var E18=function(W,e,t,b){var m,q,Q,X,I,u;_.F(function(c){if(c.nextAddress==1)return _.a(c,W.JSC$14794_playNonceResolver.promise,2);m=c.yieldResult;q={externalPostId:W.JSC$14794_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:m,sdkVersion:t,api:e};b!==void 0&&(q.networkRequestsMeasurement={networkRequests:_.bQ(b,1),cachedRequests:_.bQ(b,2),transferredBytes:_.bQ(b,3)},(Q=b)==null?0:_.lI(Q,df,6))&&(q.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((X=_.mx(b,
df,6))==null?void 0:x2(X,1))||"0",cacheHits:((I=_.mx(b,df,6))==null?void 0:x2(I,2))||"0",cachedBytes:((u=_.mx(b,df,6))==null?void 0:x2(u,3))||"0"});_.nJ("miniAppSdkUsage",q);_.u8(c)})},N4b=function(W,e,t){var b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K;
_.F(function(U){if(U.nextAddress==1)return _.a(U,W.JSC$14794_playNonceResolver.promise,2);b=U.yieldResult;m={externalPostId:W.JSC$14794_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:b,sdkVersion:t,measurementWindow:{startTimestampMs:String(fY(e,1)),endTimestampMs:String(fY(e,2))},frameRate:{averageFrameTimeDeltaMs:g2(e,3),averageFrameIdleTimeMs:g2(e,4)}};_.lI(e,Wz,5)&&(m.networkRequests={networkRequests:(q=R7(e))==null?void 0:_.bQ(q,1),cachedRequests:(Q=R7(e))==null?void 0:_.bQ(Q,2),transferredBytes:(X=
R7(e))==null?void 0:_.bQ(X,3),sameOriginStatusCodeToCounts:Aue((I=R7(e))==null?void 0:eQK(I,4)),crossOriginStatusCodeToCounts:Aue((u=R7(e))==null?void 0:eQK(u,5))},(c=R7(e))==null?0:_.lI(c,df,6))&&(m.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((v=R7(e))==null?void 0:(D=_.mx(v,df,6))==null?void 0:x2(D,1))||"0",cacheHits:((B=R7(e))==null?void 0:(k=_.mx(B,df,6))==null?void 0:x2(k,2))||"0",cachedBytes:((n=R7(e))==null?void 0:(f=_.mx(n,df,6))==null?void 0:x2(f,3))||"0"});_.lI(e,
TkS,7)&&(m.gameCapture={averageFrameTimeDeltaMs:(M=_.mx(e,TkS,7))==null?void 0:g2(M,1),averageFrameIdleTimeMs:(K=_.mx(e,TkS,7))==null?void 0:g2(K,2)});_.nJ("miniAppPerformanceMetrics",m);_.u8(U)})},djB=function(W,e,t){var b,m;
return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.JSC$14794_playNonceResolver.promise,2);b=q.yieldResult;m={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$14794_miniAppId,postPlayNonce:b,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:e};m.rejectedReason=t||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.nJ("miniAppAdEvent",m);_.u8(q)})};
Kpk.prototype.disposeInternal=function(){_.ka.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var xX=function(W,e,t,b){t=t===void 0?{}:t;b=b===void 0?!1:b;var m,q,Q,X;_.F(function(I){if(I.nextAddress==1)return m=W.isForeground,q=W.beforeReady,_.a(I,W.JSC$14794_playNonceResolver.promise,2);Q=I.yieldResult;X={externalPostId:W.JSC$14794_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:Q,type:e};t.sequenceGroup=Q;X.playState=q?"PLAY_STATE_NOT_READY":m?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.nJ("miniAppPlayEvent",X,t);
b&&_.fJ();_.u8(I)})},J6=function(W,e){var t;
_.F(function(b){if(b.nextAddress==1)return t=(0,_.eJ)(),_.a(b,W.JSC$14794_playNonceResolver.promise,2);_.Tv(e,t);_.u8(b)})},iEy=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.Fe(function(){W.state!==1&&W.state!==2?_.JC(new _.o_("[MiniAppPlayLogger] reportPlayPing failed with state "+hEe[W.state])):xX(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},Aue=function(W){return Array.from(W.entries()).map(function(e){var t=_.R(e);
e=t.next().value;t=t.next().value;return{key:e,value:t}})};var WB8=_.mn("show_mini_app_ad_frequency_cap_ms",0),e5y=function(){this.showAdIntervalMs=WB8;this.isRateLimited=!0},tqr=function(W,e){setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
W.showMiniAppAdCommand=e.showMiniAppAdCommand;W.isEmbeddedInWebview=e.isEmbeddedInWebview;W.playLogger=e.playLogger},m8r=function(W,e){var t;
return _.F(function(b){if(b.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return b.return(bob(W,e,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(W.isRateLimited)return b.return(bob(W,e,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));W.adResolver=new _.Xu;t=W6r(new gv,e);i0(W.showMiniAppAdCommand,e1y(t));W.isRateLimited=!0;setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
return _.a(b,W.adResolver.promise,2)}return b.return(b.yieldResult)})};
e5y.prototype.onAdFinished=function(W){W=IHk(W);var e;(e=this.adResolver)==null||e.resolve(W)};
var bob=function(W,e,t){var b;return _.F(function(m){if(m.nextAddress==1)m=_.a(m,(b=W.playLogger)==null?void 0:djB(b,vfQ(e),t),2);else{var q=m.return;var Q=new XLe;Q=_.rT(Q,1,2);m=q.call(m,Q)}return m})};var rPb=new _.W_("INNERTUBE_MANAGER_TOKEN");var qfe=function(){this.callbacks={}};
qfe.prototype.initialize=function(W){var e=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(t){R58(e,t)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(t){R58(e,t)})};
var R58=function(W,e){if(e.data)try{var t=KOU(e.data);if(_.Hu(_.oP(t,1))!=null){var b=UWb(_.T9(t,2));switch(_.T9(t,1)){case "yt-mini-app-load-audio-state":var m,q;(q=(m=W.callbacks).onAudioStateLoaded)==null||q.call(m,_.nY(b,oz(b,ff,1)));break;case "yt-mute-mini-app":var Q,X;(X=(Q=W.callbacks).onMuteMiniApp)==null||X.call(Q);break;case "yt-unmute-mini-app":var I,u;(u=(I=W.callbacks).onUnmuteMiniApp)==null||u.call(I);break;case "yt-playable-exit":var c,v;(v=(c=W.callbacks).onExit)==null||v.call(c);
break;case "yt-post-play-nonce":var D,B;(B=(D=W.callbacks).onPostPlayNonceReceived)==null||B.call(D,Oq(b,2,ff));break;case "yt-confirm-exit-mini-app":var k,n;(n=(k=W.callbacks).confirmExitMiniApp)==null||n.call(k);break;case "yt-confirm-exit-mini-app-edu":var f,M;(M=(f=W.callbacks).confirmExitMiniAppEdu)==null||M.call(f);break;case "yt-benchmarking-response":var K,U;(U=(K=W.callbacks).onNativeBenchmarkingMessageReceived)==null||U.call(K,Oq(b,2,ff));break;case "yt-mini-app-load-3p-consent-state":var V,
L;(L=(V=W.callbacks).multiplayer3pAckStateLoaded)==null||L.call(V,_.nY(b,oz(b,ff,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var E,RR;(RR=(E=W.callbacks).exitMiniAppSeenStateLoaded)==null||RR.call(E,_.nY(b,oz(b,ff,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var uv,GS;(GS=(uv=W.callbacks).onNavigateToNewMiniApp)==null||GS.call(uv);break;case "yt-game-data-available":var k9,CQ;(CQ=(k9=W.callbacks).onGameDataAvailable)==null||CQ.call(k9,Oq(b,2,ff));break;case "yt-pause-mini-app":var fQ,
iv;(iv=(fQ=W.callbacks).onPauseMiniApp)==null||iv.call(fQ);break;case "yt-resume-mini-app":var hz,ES;(ES=(hz=W.callbacks).onResumeMiniApp)==null||ES.call(hz);break;case "yt-playable-ad-finished":var Wu,pr;(pr=(Wu=W.callbacks).onAdFinished)==null||pr.call(Wu,Oq(b,2,ff))}}else _.JC(Error("Sh"))}catch(ay){_.gQ(Error("Th"))}else _.JC(Error("Uh"))};var DmR=function(W){this.rpcErrorCode=W};var OF=function(W,e,t){this.intervalMs=W;this.apiFunc=e;this.type=t;this.schedulerReady=!0};
OF.prototype.call=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1){if(e.type!==1&&W===e.cachedValue)return b.return();e.pendingApiRequestResolver||(e.pendingApiRequestResolver=new _.Xu);t=e.pendingApiRequestResolver.promise;e.cachedValue=W;return _.a(b,QIe(e),2)}return b.return(t)})};
OF.prototype.flush=function(W){W=W===void 0?!1:W;var e=this;return _.F(function(t){return e.cachedValue===void 0?t.return():_.a(t,e.apiFunc(e.cachedValue,W),0)})};
var QIe=function(W){var e,t,b;return _.F(function(m){switch(m.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return m.return();W.schedulerReady=!1;e=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.Qh(m,2);if(W.cachedValue===void 0){m.jumpTo(4);break}return _.a(m,W.apiFunc(W.cachedValue),5);case 5:t=m.yieldResult,e.resolve(t);case 4:_.Hi(m,3);break;case 2:b=_.w9(m),e.reject(b);case 3:setTimeout(function(){return _.F(function(q){W.schedulerReady=!0;return _.a(q,
QIe(W),0)})},W.intervalMs),_.u8(m)}})};var of2=window.location.origin+"/miniapp_cloudsaves",ShG=[400,401],FBP=_.mn("cloud_save_game_data_rate_limit_ms",3E3),aeb=function(W){var e=this;this.JSC$14838_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=FBP;this.initialDownloadDataSucceeded=!1;this.JSC$14838_playNonceResolver=new _.Xu;this.scottyUploadRateLimiter=new OF(this.cloudSaveIntervalMs,function(t,b){return XIU(e,t,b)},2);
this.downloadDataPromise=IeS(this);this.downloadDataPromise.then(function(){e.initialDownloadDataSucceeded=!0}).catch(function(){})},wID=function(W,e){e.then(function(t){return W.JSC$14838_playNonceResolver.resolve(t)})},u2U=function(W){return _.F(function(e){return W.cachedData===void 0?e.return(W.downloadDataPromise):e.return(W.cachedData)})},cPZ=function(W,e){return _.F(function(t){W.cachedData=e;
if(!W.initialDownloadDataSucceeded)throw Error("Vh");return _.a(t,W.scottyUploadRateLimiter.call(e),0)})},vxh=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},GjD=function(W,e){var t,b;
return _.F(function(m){if(m.nextAddress==1)return t=W.JSC$14838_miniAppId,_.a(m,Promise.race([W.JSC$14838_playNonceResolver.promise,vxh()]),2);b={"X-YouTube-MiniAppId":t,"X-YouTube-PostPlayNonce":m.yieldResult};"DELEGATED_SESSION_ID"in _.JJ&&hr9(e,b);return m.return(b)})},XIU=function(W,e,t){t=t===void 0?!1:t;
return _.F(function(b){return GWS()?_.S("enable_cloud_save_error_popup_after_retry")?b.return(new Promise(function(m,q){var Q,X,I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:Q=0,X=!0,u=I=null;case 2:if(!(X&&Q++<2)){v.jumpTo(4);break}_.Qh(v,5);return _.a(v,D8v(W,e,t),7);case 7:I=v.yieldResult;X=I.ok?!1:!ShG.includes(I.status);_.Hi(v,2);break;case 5:u=c=_.w9(v);X=BCg(u);v.jumpTo(2);break;case 4:I?I.ok?(M6(W,FBP),m()):(M6(W,W.cloudSaveIntervalMs*2),q(Error("Wh`"+String(I.status),{cause:{rpcErrorCode:I.status}}))):
(M6(W,W.cloudSaveIntervalMs*2),q(u||Error("Xh"))),_.u8(v)}})})):b.return(new Promise(function(m,q){var Q,X;
return _.F(function(I){if(I.nextAddress==1){if(W.JSC$14838_miniAppId==="")return q(Error("Yh")),I.return();_.Qh(I,2);return _.a(I,D8v(W,e,t),4)}if(I.nextAddress!=2)return Q=I.yieldResult,Q.ok?(M6(W,FBP),m()):(M6(W,W.cloudSaveIntervalMs*2),q(Error("Wh`"+String(Q.status),{cause:{rpcErrorCode:Q.status}}))),_.Hi(I,0);X=_.w9(I);M6(W,W.cloudSaveIntervalMs*2);q(X);_.u8(I)})})):b.return()})},D8v=function(W,e,t){t=t===void 0?!1:t;
var b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return b=_.eK((new TextEncoder).encode(e)),m=l9s(),_.a(Q,GjD(W,m),2);q=Q.yieldResult;return Q.return(fetch(m,{method:"POST",body:new Blob([b]),headers:q,keepalive:t}))})},IeS=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1){if(!GWS())return b.return("");if(W.JSC$14838_miniAppId==="")throw Error("Yh");if(W.loadAttempts>2)return b.return(W.downloadDataPromise);_.Qh(b,2);return _.a(b,Sf8(W),4)}if(b.nextAddress!=2)return e=b.yieldResult,b.return(e);t=_.w9(b);if(BCg(t)&&++W.loadAttempts<2)return b.return(IeS(W));throw t;})},Sf8=function(W){var e,t,b,m,q;
return _.F(function(Q){switch(Q.nextAddress){case 1:return _.Qh(Q,2),e=l9s(),_.a(Q,GjD(W,e),4);case 4:return t=Q.yieldResult,_.a(Q,fetch(e,{method:"GET",headers:t}),5);case 5:return b=Q.yieldResult,b.ok?_.a(Q,b.text(),6):Q.return(Promise.reject(Error("Zh`"+String(b.status),{cause:new DmR(b.status)})));case 6:return m=Q.yieldResult,Q.return((new TextDecoder).decode(_.Xb(m)));case 2:return q=_.w9(Q),Q.return(Promise.reject(q))}})},M6=function(W,e){W.cloudSaveIntervalMs=e;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
aeb.prototype.flush=function(){var W=this;return _.F(function(e){return W.initialDownloadDataSucceeded?_.a(e,W.scottyUploadRateLimiter.flush(!0),0):e.return()})};var Bwy=rv(mO(1),tr(1)),oxb=rv(mO(1),tr(3)),sF=function(W){this.callbacks=W};
_.r=sF.prototype;_.r.onAudioToggled=function(W,e){(e===void 0||e)&&_.X_("yt-mini-app-is-audio-enabled",W,2592E3)};
_.r.onPause=function(){this.onAudioToggled(!1,!1)};
_.r.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.r.returnNativeBenchmarkingMessage=function(){};
_.r.sendGameData=function(){};
_.r.sendStartGameFrameCapture=function(){};
var Z0L=function(W,e,t){this.callbacks=W;var b=this;this.sdkVersion=new _.Xu;this.channel=new PK9(_.eQ({destination:window,iframe:e,origin:(new URL(t.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var m=h6;var q=mO(5);var Q=new BkS;Q=_.sq(Q,1,1E4);q=_.mT(q,4,jw8,Q);m(b,q);b.onAudioToggled(b.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){b.sdkVersion.resolve("")},1E4)};
_.Z(Z0L,sF);_.r=Z0L.prototype;_.r.onAudioToggled=function(W,e){sF.prototype.onAudioToggled.call(this,W,e===void 0?!0:e);e=h6;var t=mO(2),b=new DZy;W=_.Rh(b,1,W);W=_.mT(t,3,jw8,W);e(this,W)};
_.r.onPause=function(){sF.prototype.onPause.call(this);h6(this,mO(3))};
_.r.onResume=function(){sF.prototype.onResume.call(this);h6(this,mO(4))};
_.r.returnNativeBenchmarkingMessage=function(W){var e=h6,t=mO(6);var b=tr(_.lI(W,U8,1)?1:2);W=_.lI(W,U8,1)?W:null;b=_.mT(b,5,by,W);e(this,rv(t,b))};
_.r.sendGameData=function(W){var e=h6,t=mO(7);W=_.mT(t,5,jw8,W);e(this,W)};
_.r.sendStartGameFrameCapture=function(){h6(this,mO(9))};
var HY=function(W,e,t){var b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return b=W.callbacks,m=b.onSdkCalled,q=e,_.a(Q,W.sdkVersion.promise,2);m.call(b,q,Q.yieldResult,t);_.u8(Q)})};
Z0L.prototype.onMessage=function(){var W=this;return YG9(Q9,function(e){var t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv,GS,k9,CQ,fQ,iv,hz,ES,Wu,pr,ay,PU,cu,LQ,sB,z1,FD,DD,nr,UB,ZD,US,Ha,zZ;return _.F(function(qo){switch(qo.nextAddress){case 1:if(!MSN(e.data))return _.JC(Error("$h")),qo.return();t=_.Js(e.data,1);_.S("enable_iframe_message_get_type_via_fields")&&(b=e.data,t=m=_.Js(b,1));switch(t){case 8:if(e.data.hasMetadata()){var sS=W.sdkVersion,ST=sS.resolve;var SP=e.data.getMetadata();SP=_.T9(SP,
1);ST.call(sS,SP);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return qo.jumpTo(2);case 16:if(!_.ZI(e.data,fHZ,14,FQ))return qo.return();q=_.M7(e.data,fHZ,14,FQ);(X=(Q=W.callbacks).onGameFrameReceived)==null||X.call(Q,q);return qo.return();case 17:if(!_.ZI(e.data,nLk,15,FQ))return qo.return();(u=(I=W.callbacks).onGameAudioReceived)==null||u.call(I,_.M7(e.data,nLk,15,FQ));return qo.return();case 1:if(sS=_.M7(e.data,Zvb,2,FQ))switch(_.Js(sS,1)){case 1:W.callbacks.onFirstFrameReady();if(_.S("enable_network_request_logging_on_game_events")&&
_.lI(sS,Wz,4)){HY(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.mx(sS,Wz,4));break}HY(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(SP=(ST=W.callbacks).onGameReady)==null||SP.call(ST);if(_.S("enable_network_request_logging_on_game_events")&&_.lI(sS,Wz,4)){HY(W,"MINI_APP_SDK_API_GAME_READY",_.mx(sS,Wz,4));break}HY(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.ZI(sS,eO,3,$ZN))W.callbacks.onResourceLoaded(_.M7(sS,eO,3,$ZN))}return qo.return();case 3:return qo.jumpTo(3);case 4:return qo.jumpTo(4);
case 2:return qo.jumpTo(5);case 9:return qo.jumpTo(6);case 10:return W.callbacks.onClick(),qo.return();case 5:return qo.jumpTo(7);case 11:if(!_.ZI(e.data,AX,9,FQ))return qo.return();c=_.M7(e.data,AX,9,FQ);(D=(v=W.callbacks).onBenchmarkingMessageReceived)==null||D.call(v,c);sS=e.reply;ST=mO(1);SP=tr(1);var y8=new AX;var I$=new Uint8Array(adg(c,oz(c,wLP,6))|0);y8=v3(y8,5,wLP,_.xv(I$,!1));SP=_.mT(SP,5,by,y8);sS.call(e,rv(ST,SP));return qo.return();case 12:return qo.jumpTo(8);case 13:return qo.jumpTo(9);
case 15:if(!_.S("enable_open_yt_content"))return e.reply(oxb),qo.return();if(!_.ZI(e.data,C0h,12,FQ))return e.reply(rv(mO(1),tr(2))),qo.return();sS=_.M7(e.data,C0h,12,FQ);B=_.T9(sS,1);W.callbacks.onOpenYTContent(B);e.reply(Bwy);return qo.return();case 14:return qo.jumpTo(10);default:return qo.return()}qo.jumpTo(0);break;case 2:if(!_.ZI(e.data,qd,5,FQ))return qo.return();ST=e.data;sS=oz(ST,FQ,5);ST=ST.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(sS=jK(ST,ST[_.oy]|0,qd,sS))||(sS=qd[Vw])||
(sS=new qd,kv(sS.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),sS=qd[Vw]=sS);k=sS;sS=_.eh(k,NU,1,_.tE());n=_.R(sS);f=n.next();case 12:if(f.done){qo.jumpTo(14);break}M=f.value;K=new _.o_;K.level=_.Js(M,2)===1?"WARNING":"ERROR";U=kWg(M.getSource());return _.a(qo,W.sdkVersion.promise,15);case 15:V={source:U,sdkVersion:qo.yieldResult};_.lg(_.oP(M,6))!=null?(K.message=M.getMessage(),K.stack=_.T9(M,5),V.sdkErrorType=pdL(_.Js(M,6)),_.lg(_.oP(M,7))!=null&&(V.sdkApi=yoQ(_.Js(M,7)))):K.stack=void 0;
E=L=void 0;(E=(L=W.callbacks).onError)==null||E.call(L,{loggingError:K,metadata:V});f=n.next();qo.jumpTo(12);break;case 14:return qo.return();case 3:return _.Qh(qo,16),sS=W.callbacks,ST=sS.onSave,SP=_.M7(e.data,SRr,4,FQ),SP=_.T9(SP,1),_.a(qo,ST.call(sS,SP),18);case 18:e.reply(Bwy);_.Hi(qo,17);break;case 16:return RR=_.w9(qo),uv=YL,GS=RR,k9=W.callbacks,CQ="MINI_APP_SDK_API_SAVE_DATA",_.a(qo,W.sdkVersion.promise,19);case 19:uv(GS,k9,CQ,qo.yieldResult),e.reply(oxb);case 17:return _.a(qo,HY(W,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return qo.return();case 4:return _.Qh(qo,21),_.a(qo,W.callbacks.onLoad(),23);case 23:fQ=qo.yieldResult;sS=e.reply;ST=mO(1);SP=tr(1);y8=new SRr;y8=_.Ga(y8,1,fQ);SP=_.mT(SP,3,by,y8);sS.call(e,rv(ST,SP));_.Hi(qo,22);break;case 21:return iv=_.w9(qo),hz=YL,ES=iv,Wu=W.callbacks,pr="MINI_APP_SDK_API_LOAD_DATA",_.a(qo,W.sdkVersion.promise,24);case 24:hz(ES,Wu,pr,qo.yieldResult),e.reply(oxb);case 22:return _.a(qo,HY(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return qo.return();case 5:_.Qh(qo,
26);W.callbacks.onSendHighScore(xa(_.M7(e.data,xZ8,3,FQ).getValue()));e.reply(rv(mO(1),tr(1)));_.Hi(qo,27);break;case 26:return ay=_.w9(qo),PU=YL,cu=ay,LQ=W.callbacks,sB="MINI_APP_SDK_API_SEND_SCORE",_.a(qo,W.sdkVersion.promise,28);case 28:PU(cu,LQ,sB,qo.yieldResult),e.reply(oxb);case 27:return _.a(qo,HY(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return qo.return();case 6:if(!_.ZI(e.data,Ov8,8,FQ)){qo.jumpTo(30);break}sS=_.M7(e.data,Ov8,8,FQ);sS=_.Js(sS,1);return _.a(qo,HY(W,yoQ(sS)),30);case 30:return qo.return();
case 7:return sS=e.reply,ST=mO(1),SP=tr(1),y8=W.callbacks.getLanguage(),SP=v3(SP,4,by,M9(y8)),sS.call(e,rv(ST,SP)),_.a(qo,HY(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return qo.return();case 8:if(!_.ZI(e.data,J3k,10,FQ))return qo.return();z1=_.M7(e.data,J3k,10,FQ);FD=W.callbacks;DD=FD.onSdkPerformanceUpdate;return _.a(qo,W.sdkVersion.promise,33);case 33:return DD.call(FD,z1,qo.yieldResult),qo.return();case 9:sS=e.data;ST=oz(sS,FQ,11);if(_.Hu(_.oP(sS,ST))==null)return e.reply(rv(mO(1),tr(2))),
qo.return();nr=Oq(e.data,11,FQ);W.callbacks.onShareInviteCode(nr);e.reply(Bwy);return _.a(qo,HY(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return qo.return();case 10:if(_.ZI(e.data,G_B,13,FQ)){qo.jumpTo(35);break}return _.a(qo,W.callbacks.onShowMiniAppAd(2),36);case 36:return UB=qo.yieldResult,e.reply(rv(mO(1),pL8(UB))),_.a(qo,HY(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return qo.return();case 35:sS=_.M7(e.data,G_B,13,FQ);a:switch(_.Js(sS,1)){case 1:sS={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:sS={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:sS={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}ZD=sS;US=ZD.adType;Ha=ZD.sdkApi;sS=W.callbacks;ST=sS.onShowMiniAppAd;SP=_.M7(e.data,G_B,13,FQ);SP=_.T9(SP,2);return _.a(qo,ST.call(sS,US,SP||void 0),38);case 38:return zZ=qo.yieldResult,e.reply(rv(mO(1),pL8(zZ))),_.a(qo,HY(W,Ha),39);case 39:return qo.return()}})})};
var h6=function(W,e){_.F(function(t){W.channel.send(e);_.u8(t)})},z_=function(W,e,t){this.callbacks=W;
var b=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=qwQ(e,(new URL(t.toString())).origin);this.gameSnacks=new rZD(W);this.gameSnacks.page.onReady(function(){b.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){b.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var m,q;(q=(m=b.callbacks).onGameReady)==null||q.call(m)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(m,q){try{b.callbacks.onSendHighScore(q)}catch(Q){YL(Q,b.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(m,q){var Q;return _.F(function(X){if(X.nextAddress==1)return _.Qh(X,2),_.a(X,b.callbacks.onSave(b.decoder.decode(q)),4);if(X.nextAddress!=2)return _.Hi(X,0);Q=_.w9(X);YL(Q,b.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return X.return()})});
this.gameSnacks.storage.onLoad(function(){var m,q;return _.F(function(Q){if(Q.nextAddress==1)return _.Qh(Q,2),_.a(Q,b.callbacks.onLoad(),4);if(Q.nextAddress!=2)return m=Q.yieldResult,Q.return(b.encoder.encode(m));q=_.w9(Q);YL(q,b.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Q.return(b.encoder.encode(""))})});
this.gameSnacks.init()};
_.Z(z_,sF);z_.prototype.onAudioToggled=function(W,e){sF.prototype.onAudioToggled.call(this,W,e===void 0?!0:e);var t;(t=this.gameSnacks)==null||t.audio.update(W)};
z_.prototype.onPause=function(){sF.prototype.onPause.call(this);var W;(W=this.gameSnacks)==null||W.game.pause()};
z_.prototype.onResume=function(){sF.prototype.onResume.call(this);var W;(W=this.gameSnacks)==null||W.game.resume()};var lee=jcz,Zob=_.NN(function(W){var e=W.data;var t=W.loadingProgress;W=_.R(_.up("",void 0,"LYYTdd"));var b=W.next().value,m=W.next().value;W=_.R(_.up(!1,void 0,"K0waae"));var q=W.next().value,Q=W.next().value,X=[],I=function(){return"transform: scaleX("+(_.TQ(t)||0)+")"},u=null,c=function(){var k;
return(k=e()&&u)!=null?k:u=e().showAnniversaryAnimation?6:lee()};
_.nh(function(){var k;if(e().timeOutMessages&&((k=e().timeOutMessages)==null?0:k.length)){u=null;k=_.R(X);for(var n=k.next();!n.done;n=k.next())clearTimeout(n.value);X.length=0;C1Z(e().timeOutMessages,X,m,Q)}},"hrKvCe");
var v=function(){return!!e().persistentErrorMessageTitle},D=function(){return t!==void 0},B=function(){return e().title};
return _.w("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var k,n=(k=e().backgroundImage)==null?void 0:k.sources,f;return(n==null?0:n.length)?"background-image: url("+((f=n[0])==null?void 0:f.url)+")":
""}}),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.w(_.G,{cond:function(){return!v()},
then:function(){var k={};return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.w(_.G2,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+c()},
data:function(){var n="loading_animation_"+c();return{animationConfig:{name:n,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+n+".json",loop:!0,autoplay:!0}}}})),_.w("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.w(_.G,{cond:B,
then:function(){return _.w("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},B)}}),_.w("p",{class:_.ve("mini-app-splash-screen-view-model-wiz__timeout-message",(k["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return q()},k)),
"aria-live":"polite"},b),_.w(_.G,{cond:D,then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.w("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:I}))}})))}}),_.w(_.G,{cond:v,
then:function(){return _.w("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.w("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return e().persistentErrorMessageTitle}),_.w(_.G,{cond:function(){return!!e().persistentErrorMessageDescription},
then:function(){return _.w("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return e().persistentErrorMessageDescription})}}))}})))},"Sd");var $8h=new _.W_("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var kjN=N5;N5=function(W){function e(t){if(t){var b,m;(b=t.__spec)==null||(m=b.didUnmount)==null||m.call(b);for(b=0;b<t.childNodes.length;b++)e(t.childNodes[b])}}
kjN==null||kjN(W);C4(function(){for(var t=0;t<W.length;t++)e(W[t])})};var pIv=_.NN(function(W){var e=W.data;var t=W.score;var b=W.formattedScore;var m=W.onScoreChanged;var q=W.isEmbeddedInWebview;var Q=_.Um("yt-mini-app-score-button-view-model"),X=function(){var B;return _.l(e==null?void 0:(B=e())==null?void 0:B.buttonViewModel,_.kb)},I=function(){var B;
return(t==null?void 0:t())||Number(e==null?void 0:(B=e())==null?void 0:B.lastScore)||0},u=function(){var B;
return(b==null?void 0:b())||((B=X())==null?void 0:B.title)||""},c,v=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),v=isNaN(W)?1:W/100;_.nh(function(){m==null||m(I());var B;var k=_.Mk((B=X())==null?void 0:B.onTap);if(k){B=_.l(k,qWP);var n,f,M;B=_.l(B==null?void 0:(n=B.panelLoadingStrategy)==null?void 0:(f=n.inlineContent)==null?void 0:(M=f.dialogViewModel)==null?void 0:M.customContent,tFh)}else B=void 0;if(n=B)n.score=u()},"KZFi5e");
W=_.Be(function(){var B,k,n=e==null?void 0:(B=e())==null?void 0:(k=B.loggingDirectives)==null?void 0:k.trackingParams;n&&_.wS(_.ee().resolve(_.ky),n);return!1});
_.nt(function(){if(Q.value){var B=Q.value.querySelector("button"),k=X();B&&k&&nfv(B,k);dQ("yt-share-playable-with-high-score",function(){var n=I().toString(),f=e==null?void 0:e().onShareHighScoreCommand,M=e==null?void 0:e().highScoreShareClientParamIdentifier,K=q==null?void 0:q();f&&(K?(M=new UUZ,n=_.Ga(M,2,n),i0(f,n.JSC$10323_serializeBinary())):M&&(_.ee().resolve($8h).clientParams.set(M,{miniAppClientParams:{highScore:n}}),wdg(f,!1)))})}});
var D=function(){var B=X();B&&(t==null?0:t())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(c,u()));c=u();return{numberValue:I(),numberText:u(),heightPx:36,fontSizeMultiplier:v,shouldAnimate:!(t==null||!t())&&!0}};
return _.w("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.DT("mini-app-score-button-view-model-wiz",(B["mini-app-score-button-view-model-wiz--is-visible"]=I()!==0,B))},
el:Q,"on:click":W},d$(!1,function(){return _.w("span",{style:"display:none;"},I)}),_.w(_.nU,{data:function(){var B;
return e==null?void 0:(B=e())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.w(_.MV,{data:B.data,
animatedTextProps:D})}}))},"Td");var feZ=_.NN(function(W){var e,t=(e=_.Ie("yt-mini-app-is-theater-mode-enabled"))!=null?e:!1,b=_.S("enable_playable_container_save_button"),m=_.S("enable_play_next_destination_page_in_toolbar");e={};return _.w("ytm-mini-app-top-bar-view-model",null,_.w("div",{class:_.ve("yt-mini-app-top-bar-view-model",(e["yt-mini-app-top-bar-view-model--mobile"]=!1,e["yt-mini-app-top-bar-view-model--desktop"]=!0,e))},_.w("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.w(_.G,{cond:function(){var q;
return!!W.data().backButtonEdu&&!((q=W.isExitMiniAppSeen)==null?0:q.call(W))},
then:function(){return _.w(_.nU,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.MV})},
else:function(){return _.w(_.nU,{data:function(){return W.data().backButton}},{buttonViewModel:_.MV})}}),_.w(_.G,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.w(_.nU,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.MV})}}),_.w(_.G,{cond:function(){return W.data().title&&!0},
then:function(){return _.w("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.w(_.G,{cond:function(){var q;
return(q=W.isDesktopPlayPage)==null?void 0:q.call(W)},
then:function(){return _.w(_.qD,null,_.w(yP8,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.w(jI8,{enableSaveButton:function(){return _.TQ(b)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.w(CYk,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.w(_.G,{cond:function(){return!1},
then:function(){return _.w(_.nU,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(q){return _.w(_.MV,{data:q.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.w(yP8,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.w("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.w(_.nU,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(q){var Q=q.data;
return _.w(_.fU,{data:function(){var X,I;return Object.assign({},Q(),{isToggled:(I=(X=W.isAudioEnabled)==null?void 0:X.call(W))!=null?I:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.w(_.nU,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(q){var Q=q.data;
return _.w("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.w(_.fU,{data:function(){return Object.assign({},Q(),{isToggled:t})},
useOutlinedIcon:!0}))}}),_.w(nxo,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.w(_.G,{cond:function(){return _.TQ(m)&&W.data().viewAllButton&&!1},
then:function(){return _.w(_.nU,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.MV})}}),_.w(_.G,{cond:function(){var q;
return!((q=W.isDesktopPlayPage)==null?0:q.call(W))},
then:function(){return _.w(_.qD,null,_.w(jI8,{enableSaveButton:function(){return _.TQ(b)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.w(CYk,{menuButton:function(){return W.data().menuButton}}))}}))))},"Ud");
feZ.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var CYk=_.NN(function(W){return _.w(_.nU,{data:W.menuButton},{buttonViewModel:_.MV})},"Vd"),jI8=_.NN(function(W){var e=W.enableSaveButton;
var t=W.saveButton;var b=W.isSaved;var m=W.onSaveToggled;return _.w(_.G,{cond:function(){return e()&&!(t==null||!t())},
then:function(){return _.w(_.nU,{data:function(){var q=_.l(t==null?void 0:t(),_.pU),Q;return{toggleButtonViewModel:Object.assign({},q,{isToggled:(Q=b==null?void 0:b())!=null?Q:!(q==null||!q.isToggled)})}}},{toggleButtonViewModel:function(q){return _.w(_.fU,{data:q.data,
onToggle:m})}})}})},"Wd"),yP8=_.NN(function(W){var e=W.highScoreButton;
var t=W.score;var b=W.formattedScore;var m=W.onScoreChanged;var q=W.isEmbeddedInWebview;return _.w(_.nU,{data:e},{miniAppScoreButtonViewModel:function(Q){return _.w(pIv,{data:Q.data,score:t,formattedScore:b,onScoreChanged:m,isEmbeddedInWebview:q})}})},"Xd"),nxo=_.NN(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.w(_.qD,null):_.w(_.nU,{data:W},{buttonViewModel:_.MV})},"Yd");_.gxr=new _.W_("DESKTOP_CURRENT_PAGE");var sIN=_.NN(function(W){var e=W.data;var t=_.S("force_active_time_logging_webview"),b=!1,m=new qfe,q=void 0,Q=void 0,X=_.ee().resolve(rPb),I=new e5y,u=void 0,c=void 0,v=[],D=void 0,B=void 0,k=!1,n=!1,f=!1,M=!1,K=new _.Xu,U=_.ee().resolve($8h),V=_.ee().resolve(_.Tb),L=_.ee().resolve(_.Wi(wF)),E,RR=(E=_.ee().resolve(_.Wi(_.gxr)))==null?void 0:E.getCurrentPage(),uv=!1,GS=0,k9=function(VK){VK.preventDefault();return VK.returnValue=""},CQ;
W=_.R(_.up(!((CQ=_.Ie("yt-mini-app-is-audio-enabled"))!=null&&!CQ),void 0,"uFSsEd"));var fQ=W.next().value,iv=W.next().value,hz;CQ=_.R(_.up(!((hz=_.Ie("exit-mini-app-seen-state"))==null||!hz),void 0,"CVZNXc"));var ES=CQ.next().value,Wu=CQ.next().value;hz=_.R(_.up(!1,void 0,"N46A8c"));var pr=hz.next().value,ay=hz.next().value;hz=_.R(_.up(void 0,void 0,"qhL0Nd"));var PU=hz.next().value,cu=hz.next().value;hz=_.R(_.up(void 0,void 0,"oOXpte"));var LQ=hz.next().value,sB=hz.next().value;hz=_.R(_.up(!0,void 0,
"u4kGne"));var z1=hz.next().value,FD=hz.next().value;hz=_.R(_.up(!1,void 0,"HoQxGc"));var DD=hz.next().value,nr=hz.next().value;hz=_.R(_.up(void 0,void 0,"lWcQie"));var UB=hz.next().value,ZD=hz.next().value;hz=_.R(_.up(0,void 0,"yw8Rmf"));var US=hz.next().value,Ha=hz.next().value,zZ=_.zT("mini-app-container-view-model"),qo=function(){return e().isEmbeddedInWebview},sS=function(){return e().hasPlayNextShelf};
dQ("yt-page-type-changed",function(VK){if(_.S("enable_is_mini_app_page_active_bugfix"))VK.detail.newPageSubtype==="mini_app"&&VK.detail.newPageType==="ytd-browse"||!z1()||y8();else if(VK=_.w0S()==="mini_app",VK!==z1())if(FD(VK),VK){var R$;VK=(R$=e().playableId)==null?void 0:R$.toString();VK!==void 0&&window.location.href.includes(VK)&&!n&&(M=!0,ST(),un(uh.value))}else VK||y8()});
dQ("yt-action",function(VK){VK.detail.actionName==="yt-engagement-panel-visible-changed"&&VK.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&VK.detail.args[2]==="PAmini_app_panel"&&y8();_.S("enable_is_mini_app_page_active_bugfix")?VK.detail.actionName==="yt-history-load"&&!z1()&&(RR==null?0:RR.active)?(FD(!0),ST(),un(uh.value)):VK.detail.actionName==="yt-history-load"&&z1()&&!e().isEmbeddedInWebview&&Ba():z1()&&VK.detail.actionName==="yt-history-load"&&(M?M=!1:e().isEmbeddedInWebview||Ba())});
_.fh(function(){SP()});
_.nh(function(){ST()},"IGuu2e");
var ST=function(){var VK=e().playableId,R$=e().localReleaseId,hS=e().derivedDeviceInterface;if(n)_.JC(new _.o_("[MiniAppContainerViewModel] onEnter was called more than once"));else{n=!0;q=new Kpk(VK,R$,hS,document.visibilityState==="visible");Y$y(q);Q=new aeb(VK);Two(X,VK);tqr(I,{showMiniAppAdCommand:e().showMiniAppAdCommand,isEmbeddedInWebview:e().isEmbeddedInWebview,playLogger:q});k49()&&(B=document.body.style.backgroundColor,_.O8(document.body,"background-color","black"));JE();GZ();K=new _.Xu;
if(e().isEmbeddedInWebview){if(VK=(new URLSearchParams(window.location.search)).get("postPlayNonce"))V4o(q,VK),uv=!0;m.initialize({onAudioStateLoaded:function(dE){q9(dE)},
onMuteMiniApp:function(){q9(!1)},
onUnmuteMiniApp:function(){q9(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(dE){uv||(V4o(q,dE),uv=!0)},
confirmExitMiniApp:function(){var dE,dR,LF;return _.F(function(cR){if(cR.nextAddress==1)return e().confirmExitMiniAppCommand?_.a(cR,Promise.race([K.promise,Promise.resolve(!1)]),2):cR.return();(dE=cR.yieldResult)?!e().confirmExitMiniAppCommandEdu||(LF=(dR=ES)==null?void 0:dR())!=null&&LF?oG(e().confirmExitMiniAppCommand):(oG(e().confirmExitMiniAppCommandEdu),_.X_("exit-mini-app-seen-state","true",2592E6)):oG(e().closeMiniAppCommand);_.u8(cR)})},
onNativeBenchmarkingMessageReceived:function(dE){dE=c3b(_.IP9(dE));if(_.ZI(dE,_.Vg,3,aHP)){var dR=_.M7(dE,_.Vg,3,aHP),LF=ugc();var cR=xa(LF.getSeconds())-xa(dR.getSeconds());dR=_.bQ(LF,2)-_.bQ(dR,2);cR<0&&dR>0?(cR+=1,dR-=1E9):cR>0&&dR<0&&(--cR,dR+=1E9);cR=(new U8).setSeconds(cR);cR=_.kE(cR,2,_.ZM(dR),0);_.bF(dE,1,cR)}var jj;(jj=c)==null||jj.returnNativeBenchmarkingMessage(dE)},
multiplayer3pAckStateLoaded:function(dE){Ba(dE)},
exitMiniAppSeenStateLoaded:function(dE){e().confirmExitMiniAppCommandEdu&&Wu(dE)},
onNavigateToNewMiniApp:function(){oG(e().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(dE){dE=new URLSearchParams(dE);var dR=void 0;dE.has("invite_code")&&(dR=new lHb,dE=dE.get("invite_code"),dR=_.Ga(dR,1,dE));if(dE=dR){var LF;(LF=c)==null||LF.sendGameData(dE)}},
onPauseMiniApp:function(){b=!0;I$()},
onResumeMiniApp:function(){b=!0;Rm()},
onAdFinished:function(dE){I.onAdFinished(dE)}});
e().showMultiplayer3pConsentDialogCommand||K.resolve(!0);oG(e().onContainerReadyCommand)}else V4o(q),K.resolve(!0);wID(Q,PM8(q));PM8(q).then(function(dE){dE={miniAppPlayData:{postPlayNonce:dE}};var dR,LF=(dR=e().loggingDirectives)==null?void 0:dR.trackingParams;LF&&_.Sg().stateChanged(LF,dE)});
VK=e().showSignInDialogCommand;!GWS()&&VK&&(_.X_("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),oG(VK));e().confirmExitMiniAppCommand&&L&&(VK=I99(e().confirmExitMiniAppCommand))&&(L.customConfirmationCommand=VK)}},SP=function(){B&&_.O8(document.body,"background-color",B);
k=!1;D&&D.release();Q.flush().catch(function(VK){_.JC(VK)});
X.flush().catch(function(VK){_.JC(VK)});
UjS(q);Je();c=void 0;JPN(U)},y8=function(){FD(!1);
SP();ay(!1);ZD(void 0);cu(void 0);sB(void 0);GS=0;Ha(0);n=!1},I$=function(){var VK;
(VK=c)==null||VK.onPause();D&&D.release();Q.flush().catch(function(R$){_.JC(R$)});
X.flush().catch(function(R$){_.JC(R$)});
zEZ(q)},Rm=function(){var VK;
(VK=c)==null||VK.onResume();GZ();VK=q;VK.isForeground=!0;xX(VK,"PLAY_EVENT_TYPE_PLAY_RESUME")},q9=function(VK){var R$;
(R$=c)==null||R$.onAudioToggled(VK);iv(VK)},Ba=function(VK){e().showMultiplayer3pConsentDialogCommand&&(e().isEmbeddedInWebview&&VK!==void 0&&K.resolve(VK),!VK&&_.w0S()==="mini_app"&&oG(e().showMultiplayer3pConsentDialogCommand))},HF=function(){var VK,R$,hS,dE;
return _.F(function(dR){if(dR.nextAddress==1){!e().isLivestream||e().disableVideoCapture||(VK=c)!=null&&VK.sendStartGameFrameCapture();R$=(new URL(window.location.href)).searchParams;if(R$.has("invite_code")){var LF=new lHb,cR=R$.get("invite_code");hS=_.Ga(LF,1,cR);(dE=c)==null||dE.sendGameData(hS)}pr()||(ay(!0),LF=q,LF.state!==1?_.JC(new _.o_("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+hEe[LF.state])):(_.qz("mini_app_ids_without_game_ready").includes(LF.JSC$14794_miniAppId)&&(LF.gameReady=
!0),LF.state=2,LF.beforeReady=!1,J6(LF,"ma_ffr"),xX(LF,"PLAY_EVENT_TYPE_PLAY_READY")));return _.a(dR,K.promise,2)}oG(e().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();e().isEmbeddedInWebview||Ba();_.u8(dR)})},HU=function(){var VK=q;
VK.gameReady=!0;J6(VK,"ma_gr")},kl=function(VK){var R$;
return _.F(function(hS){if(hS.nextAddress==1)return _.Qh(hS,2),_.a(hS,cPZ(Q,VK),4);if(hS.nextAddress!=2)return _.Hi(hS,0);R$=_.w9(hS);oG(e().showSavingErrorPopupCommand);throw R$;})},WR=function(){var VK,R$;
return _.F(function(hS){if(hS.nextAddress==1)return _.Qh(hS,2),_.a(hS,u2U(Q),4);if(hS.nextAddress!=2)return VK=hS.yieldResult,hS.return(VK);R$=_.w9(hS);oG(e().showLoadingErrorDialogCommand);throw R$;})},mf=function(VK){q.logError(VK)},Ch=function(VK,R$,hS){E18(q,VK,R$,hS)},KP=function(VK,R$){N4b(q,VK,R$)},Pi=function(){!t&&e().isEmbeddedInWebview||_.tC();
Lp8(q,!0);k||(window.addEventListener("beforeunload",k9,{capture:!0}),k=!0)},Sh=function(VK){var R$,hS,dE,dR,LF,cR,jj;
return _.F(function(Cn){if(Cn.nextAddress==1)return X&&(!u||u<VK)&&VK>0?_.a(Cn,x88(X,VK),3):Cn.jumpTo(0);R$=Cn.yieldResult;hS=_.R(R$);dE=hS.next().value;dR=hS.next().value;LF=dE;cR=dR;((jj=LF)==null?0:jj.displayString)&&cR&&(cu(cR),sB(LF.displayString));_.u8(Cn)})},XY=function(VK){var R$=e().onBenchmarkingMessageReceivedCommand;
if(R$){var hS=ugc();_.mT(VK,3,aHP,hS);i0(R$,vLe(VK))}},oM=function(VK){var R$=e().onGameFrameReceivedCommand;
if(R$){var hS=new gv;var dE=new EVZ;var dR=fY(VK,1);dE=_.Zt(dE,1,dR);VK=_.T9(VK,2);VK=_.Ga(dE,2,VK);hS=_.bF(hS,2,VK);i0(R$,e1y(hS))}},Zg=function(VK){var R$=e().onGameAudioDataReceivedCommand;
if(R$){var hS=new gv;var dE=new Njr;VK=_.T9(VK,1);dE=_.Ga(dE,1,VK);hS=_.bF(hS,4,dE);i0(R$,e1y(hS))}},x9=function(){var VK=new URLSearchParams(window.location.search);
if(e().isEmbeddedInWebview&&VK&&VK.get("override_hl")==="true"&&VK.get("hl"))return VK.get("hl");VK=document.documentElement.lang;return VK!==""?VK:_.hm},KQ=function(VK){var R$=e().onShareInviteCodeCommand;
if(R$)if(e().isEmbeddedInWebview){var hS=new UUZ;VK=_.Ga(hS,1,VK);i0(R$,EGy(VK))}else hS=e().inviteCodeShareClientParamIdentifier,U.clientParams.set(hS,{miniAppClientParams:{inviteCode:VK}}),oG(R$)},cU=function(VK){var R$,hS,dE;
return _.F(function(dR){if(dR.nextAddress==1)return R$=e().onMiniAppOpenYtContentRequested,X&&_.S("enable_open_yt_content")&&R$?_.a(dR,Ooy(X,VK),3):dR.jumpTo(0);hS=dR.yieldResult;if(hS==="OK")if(e().isEmbeddedInWebview){var LF=new Y8v;dE=v3(LF,2,ff,M9(VK));i0(R$,L5e(dE))}else V.clientData.set("video_id",VK),oG(R$);_.u8(dR)})},rE=function(VK){GS+=_.bQ(VK,3);
VK=Math.min(Math.log(1+GS/15E6*9)/Math.log(10),.99);Ha(VK);CO(VK)},CO=_.ot(function(VK){var R$=e().updateLoadingProgressCommand;
if(R$){var hS=new Y8v;VK=v3(hS,3,ff,_.FC(VK));i0(R$,L5e(VK))}},100),a$=function(VK){return m8r(I,VK)},GZ=function(){var VK,R$;
((VK=_.HgZ())==null?void 0:(R$=VK.wakeLock)==null?void 0:R$.request)!=null&&_.HgZ().wakeLock.request("screen").then(function(hS){D=hS}).catch(function(){})},uh=_.zT("iframe");
_.nh(function(){e().isSupportedCountry&&(GWS()||_.S("enable_sign_in_promo")||!e().showSignInDialogCommand?un(uh.value):oG(e().onMiniAppReadyCommand))},"B7Lcnd");
var Bu=function(){return _.w("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return pr()?0:-1},
el:uh})},un=function(VK,R$){R$=R$===void 0?!1:R$;
var hS=Ry();hS&&(R$||hS.toString()!==VK.getAttribute("src"))&&(c=$mg(e().source,{isAudioEnabled:fQ,onFirstFrameReady:HF,onGameReady:HU,onSave:kl,onLoad:WR,onError:mf,onSdkCalled:Ch,onSdkPerformanceUpdate:KP,onClick:Pi,onSendHighScore:Sh,onBenchmarkingMessageReceived:XY,getLanguage:x9,onShareInviteCode:KQ,onResourceLoaded:rE,onOpenYTContent:cU,onShowMiniAppAd:a$,onGameFrameReceived:oM,onGameAudioReceived:Zg},VK,hS),lL(VK,"load",function(){J6(q,"ma_il");lL(VK,"load",function(){un(VK,!0)})}),_.fF(VK,
hS))},Ry=function(){var VK=e().url;
if(VK&&(VK=_.J7(VK),VK!==null)){if(e().source&&e().source==="MINI_APP_SOURCE_GAMESNACKS")VK=_.m_(VK,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.S("enable_origin_query_parameter_bugfix")){var R$=_.fn(_.Q2z(VK.toString()));R$=new URLSearchParams(R$||"");R$.set("origin",window.location.origin);R$=R$.toString();VK=_.Xh(VK).toString();VK=_.Fh(Jzy.exec(VK)[0]+(R$.trim()?"#"+R$:""))}return VK}},Gy=function(){var VK={};
VK=_.ve("yt-mini-app-container-view-model__loading-screen",(VK["yt-mini-app-container-view-model__loading-screen--fade-out"]=pr,VK));var R$=function(){return pr()?1:US()};
return _.w("div",{class:VK},_.w(_.nU,{data:function(){return e().splashScreen}},{miniAppSplashScreenViewModel:function(hS){return _.w(Zob,{data:hS.data,
loadingProgress:R$})}}))},JE=function(){v=[];
v.push(_.p4(window,"visibilitychange",function(){f||b&&qo()||(document.visibilityState==="visible"?Rm():I$())}));
v.push(_.p4(window,"pagehide",function(){SP()}));
v.push(_.p4(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&zZ.value.dispatchEvent(new Event("tap"))},0)}));
v.push(_.p4(zZ.value,"pointerdown",function(){Lp8(q,!1)},!0));
v.push(_.p4(zZ.value,"pause",function(){f=!0;I$()}));
v.push(_.p4(zZ.value,"play",function(){f=!1;Rm()}));
v.push(_.p4(zZ.value,"exit",function(){SP()}));
var VK=navigator.keyboard,R$=VK&&VK.lock;v.push(_.p4(window,Oeo,function(){nr(sTZ());sTZ()?(e().hasPlayNextShelf&&eN("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Vm("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),R$&&VK.lock(["Escape"])):(e().hasPlayNextShelf&&Vm("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),eN("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),R$&&VK.unlock())}));
e().showMultiplayer3pConsentDialogCommand&&v.push(_.p4(window,"yt-playables-ack-3p-data-usage",function(){MqN(X)}));
e().confirmExitMiniAppCommandEdu&&v.push(_.p4(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.X_("exit-mini-app-seen-state","true",2592E6)}));
e().onGameAudioDataReceivedCommand&&v.push(_.p4(window,"message",function(hS){hS=hS.event_;var dE=uh.value.src;if(dE&&hS.origin===(new URL(dE)).origin&&hS.data&&hS.data.type==="GAME_AUDIO"&&hS.data.audio&&hS.data.audio.length>0){var dR=new FileReader;dR.onload=function(){var LF=new gv;var cR=new Njr;cR=_.Ga(cR,1,dR.result);LF=_.bF(LF,4,cR);i0(e().onGameAudioDataReceivedCommand,e1y(LF))};
dR.readAsDataURL(new Blob([hS.data.audio]))}}))},Je=function(){v.forEach(function(VK){Zj(VK)});
window.removeEventListener("beforeunload",k9,{capture:!0})},oG=function(VK){VK&&wdg(VK,e().isEmbeddedInWebview||!1)},Vm=function(VK,R$){VK=_.R(zZ.value.getElementsByClassName(VK));
for(var hS=VK.next();!hS.done;hS=VK.next())hS.value.classList.add(R$)},eN=function(VK,R$){VK=_.R(zZ.value.getElementsByClassName(VK));
for(var hS=VK.next();!hS.done;hS=VK.next())hS.value.classList.remove(R$)};
return function(){var VK={};VK=_.ve("yt-mini-app-container-view-model",(VK["yt-mini-app-container-view-model--desktop"]=!0,VK["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},VK["yt-mini-app-container-view-model--ios-web-view"]=k49(),VK["yt-mini-app-container-view-model--no-top-bar"]=function(){return!e().topBar},VK["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return e().hasPlayNextShelf},VK["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return e().hasPlayNextShelf},VK["yt-mini-app-container-view-model--show-peek-below"]=function(){return!DD()&&e().hasPlayNextShelf},VK));
var R$={};R$=_.ve("yt-mini-app-container-view-model__content",(R$["yt-mini-app-container-view-model__content--desktop-content"]=!0,R$["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return e().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},R$["yt-mini-app-container-view-model--desktop-play-page"]=function(){return e().hasPlayNextShelf},R$));
return _.w("mini-app-container-view-model",{el:zZ},_.w("div",{class:VK},_.w(_.G,{cond:function(){return e().topBar&&!DD()},
then:function(){return _.w(_.nU,{data:function(){return e().topBar}},{miniAppTopBarViewModel:function(hS){return _.w(feZ,{data:hS.data,
isAudioEnabled:fQ,onAudioToggled:function(dE){q9(dE)},
score:PU,formattedScore:LQ,onScoreChanged:function(dE){u=dE},
isEmbeddedInWebview:qo,isSaved:UB,onSaveToggled:function(dE){ZD(dE)},
isExitMiniAppSeen:ES,isDesktopPlayPage:sS})}})}}),_.w("div",{class:R$},_.w(_.G,{cond:z1,
then:function(){return Bu()}}),_.w(_.G,{cond:function(){return!e().isEmbeddedInWebview},
then:function(){return Gy()}}))))}()},"Zd");
sIN.idomCompat=!0;_.mM(sIN,"mini-app-container-view-model",{props:{data:_.Eu}});var h58=_.NN(function(W){var e=W.data;return _.w("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.w("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Be(function(){var t=e().onTap;t&&_.K4(t)})},_.w(_.G,{cond:function(){return e().icon},
then:function(t){return _.w(_.kD,{icon:function(){return t().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.w("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return e().title})))},"$d");
h58.idomCompat=!0;var Hoe=_.NN(function(W){var e=_.zT("div"),t=_.R(_.up(void 0,void 0,"kFCJ0c")),b=t.next().value,m=t.next().value;t=_.R(_.up(void 0,void 0,"PIPgWd"));var q=t.next().value,Q=t.next().value;t=_.R(_.up(void 0,void 0,"rV66ob"));var X=t.next().value,I=t.next().value,u=function(){var M=b();return M!==void 0?Math.abs(M):void 0},c=function(){var M=u();
return M===void 0||M<=3},v=function(){var M=u();
var K=q(),U=X();M=M!==void 0&&K!==void 0&&U!==void 0?K-U-M:void 0;return M===void 0||M<=3},D=function(M){e.value&&e.value.scrollBy({top:0,
left:(_.Ot("HTML_DIR")==="rtl"?-1:1)*M*e.value.clientWidth,behavior:"smooth"})},B=function(){var M;
m((M=e.value)==null?void 0:M.scrollLeft);var K;Q((K=e.value)==null?void 0:K.scrollWidth);var U;I((U=e.value)==null?void 0:U.clientWidth)},k=function(){D(-.5)},n=function(){D(.5)};
t=_.Be(function(){B()});
_.jm(function(){B();if(e.value){var M=new ResizeObserver(B);M.observe(e.value);_.fh(function(){M.disconnect()})}});
var f={};return _.w("yt-sponsorships-scrollable-shelf",{class:_.ve("ytdSponsorshipsScrollableShelfHost",W.className)},_.w("div",{class:_.ve("ytdSponsorshipsScrollableShelfContent",(f.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return W.data().previousButton&&W.data().nextButton&&!c()&&!v()},f.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return W.data().previousButton&&!c()&&v()},f.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return W.data().nextButton&&
c()&&!v()},f)),
el:e,"on:scroll":t},W.children),_.w(_.G,{cond:function(){return!c()},
then:function(){return _.w(_.nU,{data:function(){return W.data().previousButton}},{buttonViewModel:function(M){return _.w(_.MV,{data:M.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:k})}})}}),_.w(_.G,{cond:function(){return!v()},
then:function(){return _.w(_.nU,{data:function(){return W.data().nextButton}},{buttonViewModel:function(M){return _.w(_.MV,{data:M.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:n})}})}}))},"ae");
Hoe.idomCompat=!0;var PYP=_.NN(function(W){var e=W.data;W={};return _.w("yt-sponsorships-hub",{class:_.ve("ytdSponsorshipsHubHost",(W.ytdSponsorshipsHubHostIndented=function(){return e().indented},W))},_.w("div",{class:"ytdSponsorshipsHubHeader"},_.w("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.w("div",{class:"ytdSponsorshipsHubAvatar"},_.w(_.nU,{data:function(){return e().avatar}},{avatarViewModel:_.pz})),_.w(_.G,{cond:function(){return e().badgeImage},
then:function(t){return _.w("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.w("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.w("div",{class:"ytdSponsorshipsHubBadge"},_.w(_.A_,{data:t,targetWidth:24,targetHeight:24,alt:""}))))}})),_.w("div",{class:"ytdSponsorshipsHubDetails"},_.w("div",{class:"ytdSponsorshipsHubTierName"},function(){return e().tierName}),_.w("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return e().membershipType}),_.w("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return e().membershipDurationOrExpiry})),_.w("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.w(_.nU,{data:function(){return e().manageButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.w(_.nU,{data:function(){return e().actionMenuButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.w("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return e().perksTitle}),_.w(Hoe,{data:function(){return{previousButton:e().previousPerkButton,
nextButton:e().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.w("div",{class:"ytdSponsorshipsHubPerkCards"},_.w(_.nU,{data:function(){return e().perkCards}},{sponsorshipsHubPerkCardViewModel:h58}),_.w(_.G,{cond:function(){return e().viewAllPerksButton},
then:function(t){return _.w(KBN,{data:t})}}))))},"be");
PYP.idomCompat=!0;var KBN=_.NN(function(W){var e=W.data;return _.w("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.w(_.nU,{data:function(){return e().button}},{buttonViewModel:_.MV}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.w("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return e().title}),_.w("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return e().subtitle})))},"ce");
KBN.idomCompat=!0;_.mM(PYP,"yt-sponsorships-hub",{props:{data:_.Eu}});_.VqN=_.NN(function(W){var e=W.data;return _.w("yt-dual-avatar-view-model",{class:_.ve("ytDualAvatarViewModelHost",W.className),style:_.$D({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var t;return((t=e().badgeCutoutRadius)!=null?t:14)+"px"}})},_.w("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.w(_.nU,{data:function(){return e().startAvatar}},{avatarViewModel:_.pz}),_.w(_.nU,{data:function(){return e().endAvatar}},{avatarViewModel:_.pz})),_.w(_.nU,{data:function(){return e().badge}},
{contentPreviewImageViewModel:function(t){return _.w("div",{class:"ytDualAvatarViewModelBadge"},_.w(_.WB,{data:t.data}))}}))},"de");
_.VqN.idomCompat=!0;var Yfk=_.NN(function(W){var e=W.data;var t,b=!((t=_.ee().resolve(_.Wi(_.zf)))==null||!t());W=_.SC(function(){var c,v,D=b?(c=e().header)==null?void 0:c.backgroundColorDarkMode:(v=e().header)==null?void 0:v.backgroundColorLightMode;if(D!==void 0)return _.h8(D)},void 0,"UX2G6c");
t=_.SC(function(){var c,v;return b?(c=e().header)==null?void 0:c.backgroundImagePart1Dark:(v=e().header)==null?void 0:v.backgroundImagePart1Light},void 0,"GPAi1d");
var m=_.SC(function(){var c,v;return b?(c=e().header)==null?void 0:c.backgroundImagePart2Dark:(v=e().header)==null?void 0:v.backgroundImagePart2Light},void 0,"nboJld"),q=_.SC(function(){return _.Ot("HTML_DIR")==="rtl"},void 0,"LGJceb"),Q=_.zT("yt-sponsorships-perks-list"),X=!1,I=function(){var c=Q.value;
if(c&&!X){var v,D=(v=c.parentElement)==null?void 0:v.parentElement;if(D)for(c=c.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),v=0;v<c.length;++v){var B=c[v];if(B instanceof HTMLElement){D.scrollTo({top:B.offsetTop+B.clientHeight/2-D.clientHeight/2,behavior:"smooth"});X=!0;break}}}};
_.nt(function(){var c=Q.value;if(c){var v=new ResizeObserver(I);v.observe(c);_.fh(function(){v.disconnect()})}});
var u={};return _.w("yt-sponsorships-perks-list",{el:Q,class:_.ve("ytdSponsorshipsPerksListHost",(u.ytdSponsorshipsPerksListHorizontalPadding=function(){return e().horizontalPaddingEnabled},u))},_.w("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.w("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.$D({"background-color":W})},_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.w(_.G,{cond:t,then:function(c){var v={};return _.w("div",{class:_.ve((v.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,v.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,v.ytdSponsorshipsPerksListFlipped=q,v))},_.w(_.A_,{data:c,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.w(_.G,{cond:m,
then:function(c){var v={};return _.w("div",{class:_.ve((v.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,v.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,v.ytdSponsorshipsPerksListFlipped=q,v))},_.w(_.A_,{data:c,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.w("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.w(_.nU,{data:function(){var c;
return(c=e().header)==null?void 0:c.dualAvatar}},{dualAvatarViewModel:_.VqN})))),_.w("div",{class:"ytdSponsorshipsPerksListBody"},_.w("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return e().title}),_.w(_.G,{cond:function(){return e().perks},
then:function(c){return _.w(_.lV,{each:c},function(v,D){var B={};return _.w("div",{class:_.ve("ytdSponsorshipsPerksListPerkContainer",(B.ytdSponsorshipsPerksListSelectedPerk=function(){var k=D(),n=e().selectedPerkIndex;return k===n},B))},_.w(_.G,{cond:function(){return D()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.w(_.G,{cond:function(){return v.icon},
then:function(k){return _.w(_.kD,{icon:function(){return k().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.w("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.w("div",{class:"ytdSponsorshipsPerksListPerkTitle"},v.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.w(_.WL,{text:v.description})),_.w(_.G,{cond:function(){return v.instructions},
then:function(){var k,n;return _.w("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(k=v.instructions)==null?void 0:k.title),_.w("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.w(_.WL,{text:(n=v.instructions)==null?void 0:n.text})))}}))),_.w(_.G,{cond:function(){return v.emoji},
then:function(k){return _.w("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.w(_.lV,{each:function(){return k()}},function(n){return _.w(_.A_,{data:n,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.w(ioN,{data:v}))})}})))},"ee");
Yfk.idomCompat=!0;var ioN=_.NN(function(W){var e=W.data;var t=function(Q,X){return Q===X},b=function(){var Q=e();
Q=_.l(Q==null?void 0:Q.badgesShelf,WON);return Q!==void 0&&Q!==null?Q:{previousButton:{},nextButton:{}}},m=_.Um("div"),q=function(){var Q=m.value;
if(Q){var X=Q.parentElement;if(X){Q=Q.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var I=0;I<Q.length;++I){var u=Q[I];if(u instanceof HTMLElement){X.scrollTo({left:u.offsetLeft+u.clientWidth/2-X.clientWidth/2,behavior:"instant"});break}}}}};
_.nt(function(){var Q=m.value;if(Q){var X=new ResizeObserver(q);X.observe(Q);_.fh(function(){X.disconnect()})}});
return _.w("div",null,_.w(_.G,{cond:function(){return e().badges},
then:function(Q){return _.w(Hoe,{data:b},_.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:m},_.w(_.lV,{each:function(){return Q()}},function(X,I){var u={},c={},v={};
return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.w(_.G,{cond:function(){return I()>0},
then:function(){return _.w("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.w("div",{class:_.ve("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(u.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return t(I(),e().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!t(I(),e().currentBadgeIndex)},u))},_.w("div",{class:_.ve("ytdSponsorshipsPerksListLoyaltyBadge",(c.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return t(I(),
e().currentBadgeIndex)},c.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!t(I(),e().currentBadgeIndex)},c))},_.w(_.G,{cond:function(){return X.image},
then:function(D){var B={};return _.w("div",{class:_.ve((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return t(I(),e().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!t(I(),e().currentBadgeIndex)},B))},_.w(_.A_,{data:D,
alt:""}))}})),_.w("div",{class:_.ve("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(v.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return t(I(),e().currentBadgeIndex)},v))},X.title)))})))}}))},"fe");
ioN.idomCompat=!0;_.mM(Yfk,"yt-sponsorships-perks-list",{props:{data:_.Eu}});_.mM(_.NN(function(W){return _.w("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.w(_.G,{cond:function(){return W.data().image},
then:function(e){return _.w(_.A_,{className:"ytwFantasyEmptyStateViewModelImage",data:e,ariaHidden:!0,alt:""})}}),_.w(_.WL,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.w(_.WL,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.w(_.nU,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(e){return _.w(_.MV,{data:e.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Eu}});var z5v;var f9z=_.$b({buttonRenderer:_.PA});_.tA(gfZ);_.a5(gfZ,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Kl=function(){var W=_.O.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.S("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.Z(Kl,_.O);_.r=Kl.prototype;_.r.hasShowDialogCommand=function(W){return!!_.l(W,qWP)};
_.r.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"}}}};
_.r.updateJoinButtonOverrides=function(){var W,e;(W=_.rz(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(e=W.polymerController)==null||e.set("overrides",this.joinButtonOverrides);if(W=_.rz(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.r.handleButtonRefreshAction=function(W){if(W=_.l(W,Zno))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.r.onYtServiceRequestError=function(W){_.mF(this.hostElement,W.detail.error.message)};
_.r.onTap=function(){var W;(W=this.data)!=null&&W.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.r.handleUnsubscribeAction=function(){var W,e,t;((W=this.data)==null?void 0:(e=W.membershipButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.style)==="STYLE_PRIMARY"&&_.rz(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Ec.Object.defineProperties(Kl.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.data)==null?void 0:W.membershipButton,t;W=(e==null?void 0:e.buttonRenderer)||_.l(e==null?void 0:(t=e.timedAnimationButtonRenderer)==null?void 0:t.buttonRenderer,_.Md);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return"button"}}});
Kl.prototype.onTap=Kl.prototype.onTap;Kl.prototype.onYtServiceRequestError=Kl.prototype.onYtServiceRequestError;Kl.prototype.updateJoinButtonOverrides=Kl.prototype.updateJoinButtonOverrides;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Kl.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Kl.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Kl.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.JX),_.Y("design:type",Object)],Kl.prototype,"ironButtonState",void 0);_.P([_.J(),_.Y("design:type",Object)],Kl.prototype,"data",void 0);
_.P([_.T("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kl.prototype,"hideJoin",null);_.P([_.J(),_.Y("design:type",String)],Kl.prototype,"subscribeKey",void 0);_.P([_.J({selectorArgs:["subscribeKey"],selector:ZXD}),_.Y("design:type",Object)],Kl.prototype,"subscriptionStateEntity",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Kl.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.P([_.T("subscriptionStateEntity"),_.J({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kl.prototype,"subscribed",null);_.P([_.T("subscribed","data.membershipButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kl.prototype,"joinButtonOverrides",null);_.P([_.T("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kl.prototype,"channelNameTabIndex",null);
_.P([_.T("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Kl.prototype,"channelNameRole",null);_.P([_.ul("joinButtonOverrides"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kl.prototype,"updateJoinButtonOverrides",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Kl.prototype,"onYtServiceRequestError",null);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Kl.prototype,"onTap",null);_.P([_.h({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Kl);
var U8U=_.Ro()(Kl,"ytd-video-owner-renderer",function(){if(z5v===void 0){var W=document.createElement("template");_.p(W,'\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]]" 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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);z5v=W}W=z5v;return W},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.mM(_.NN(function(W){var e=W.data;var t;W=_.R(_.up(!((t=_.Ie("yt-mini-app-is-theater-mode-enabled"))==null||!t),void 0,"LUeOgf"));var b=W.next().value,m=W.next().value,q;t=(q=_.ee().resolve(_.Wi(G$8)))!=null?q:function(){return _.w("div",null)};
_.YM("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){m(!0);_.X_("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.YM("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){m(!1);_.X_("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
q={};W={};var Q={};return _.w("mini-app-play-page-renderer",{class:_.ve("miniAppPlayPageRendererHost",(q.miniAppPlayPageRendererHostDetailsView=function(){return!b()},q))},_.w("div",{class:_.ve("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!b()},W))},_.w(_.nU,{data:function(){return e().containerViewModel}},{miniAppContainerViewModel:sIN}),_.w(_.G,{cond:function(){return e().channel&&e().subscribeButton},
then:function(){return _.w("div",{class:"miniAppPlayPageRendererChannelContainer"},_.w(_.nU,{data:function(){return e().channel}},{videoOwnerRenderer:function(X){return _.w(U8U,{data:X.data})}}),_.w(_.nU,{data:function(){return e().subscribeButton}},{subscribeButtonViewModel:function(X){return _.w(_.$I,{data:X.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.w(_.G,{cond:function(){return!b()&&e().description},
then:function(){return _.w("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.w("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return e().description}))}})),_.w("div",{class:_.ve("miniAppPlayPageRendererPlayNextContainer",(Q.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!b()},Q))},_.w(_.nU,{data:function(){return e().sectionList}},{sectionListRenderer:t})))},"he"),"mini-app-play-page-renderer",{props:{data:_.Eu}});var PY=function(){var W=_.O.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.Z(PY,_.O);_.r=PY.prototype;
_.r.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(W){switch(W.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",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},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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.r.created=function(){var W=this;this.JSC$14932_scrollAnimation=new _.g7(function(e){W.hostElement.scrollTop=e})};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.r.getItemsPath=function(){return"data.contents"};
_.r.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.r.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.r.computeShouldScrollInPanel=function(W){var e;return!!(W==null?0:(e=W.scrollPaneStyle)==null?0:e.scrollable)};
_.r.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.RH(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.r.scrollToTop=function(){this.hostElement.scrollTop=0};
_.r.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$14932_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.r.getItemByIdentifier=function(W){var e=this.contents.querySelectorAll("ytd-item-section-renderer");if(e&&e.length!==0){var t=Array.from(e).findIndex(function(b){return b.sectionIdentifier===W});
return e[t===-1?0:t]}};
_.r.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.g6(W).y+this.hostElement.scrollTop-_.g6(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Ec.Object.defineProperties(PY.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
PY.prototype.onScroll=PY.prototype.onScroll;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],PY.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],PY.prototype,"ytNextContinuationBehavior",void 0);
_.P([_.y(_.Juh),_.Y("design:type",Object)],PY.prototype,"ytBooleanLogicBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],PY.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],PY.prototype,"data",void 0);_.P([_.J({value:2}),_.Y("design:type",Number)],PY.prototype,"initialCount",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],PY.prototype,"autoFill",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Y("design:type",Boolean)],PY.prototype,"hasSortFilter",void 0);_.P([_.J({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Y("design:type",Boolean)],PY.prototype,"hideBottomSeparator",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Y("design:type",Boolean)],PY.prototype,"shouldScrollInPanel",void 0);
_.P([_.J(),_.Y("design:type",Object)],PY.prototype,"isSearch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],PY.prototype,"isConstrainedList",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],PY.prototype,"responsiveSizing",void 0);_.P([_.J(),_.Y("design:type",Object)],PY.prototype,"hasChipsBar",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],PY.prototype,"pageSubtype",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PY.prototype,"engagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PY.prototype,"liveChatEngagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],PY.prototype,"inReplyPanel",void 0);_.P([_.vG("#action-button"),_.Y("design:type",HTMLElement)],PY.prototype,"actionButton",void 0);_.P([_.J(),_.Y("design:type",Object)],PY.prototype,"scrollUpButtonData",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PY.prototype,"engagementPanelDropdown",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PY.prototype,"engagementPanelDialog",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PY.prototype,"isClipList",null);_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],PY.prototype,"monitorScrollElement",void 0);_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],PY.prototype,"contents",void 0);
_.P([_.wz("scroll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PY.prototype,"onScroll",null);_.P([_.h({is:"ytd-section-list-renderer",disableElementRegistration:!0})],PY);
var LBP=_.Ro()(PY,"ytd-section-list-renderer",function(){if(vY8===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);vY8=W}W=vY8;return W},{mode:1});var Exk;var APv;var Nw8;var d8k;var Vt=function(){return _.O.apply(this,arguments)||this};
_.Z(Vt,_.O);Vt.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Vt.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.Ec.Object.defineProperties(Vt.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.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)})}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Vt.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Vt.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Vt.prototype,"ytRendererStamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Vt.prototype,"data",void 0);
_.P([_.J({selectorArgs:["data.likeStatusEntityKey"],selector:sZ}),_.Y("design:type",Object)],Vt.prototype,"likeStatusEntity",void 0);_.P([_.T("data","likeStatusEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vt.prototype,"likeButtonRenderer",null);_.P([_.h({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Vt);
_.H(Vt,"ytd-slim-metadata-toggle-button-renderer",function(){if(d8k!==void 0)return d8k;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return d8k=W},{mode:1});var iA=function(){var W=_.O.apply(this,arguments)||this;W.minimizePipBreakages=_.S("web_pip_minimize_breakages");W.showEqualizer=_.S("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.S("kevlar_watch_color_update");W.actionMap={};return W};
_.Z(iA,_.O);_.r=iA.prototype;_.r.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"}}}};
_.r.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.r.computeSelected=function(W){return!(W==null||!W.selected)};
_.r.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.r.computeLargerPlaylistThumbs=function(W,e){return _.S("web_enable_playlist_bigger_thumbnails")&&!e};
_.r.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.r.onYtServiceRequestSent=function(W,e){e.endpoint&&this.isHideEnclosingAction(e.endpoint)&&!this.selected&&kCh(_.K5(),this.data.videoId)};
_.r.isHideEnclosingAction=function(W){var e=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return e||W};
_.r.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.r.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Ec.Object.defineProperties(iA.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("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 W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
iA.prototype.onYtServiceRequestSent=iA.prototype.onYtServiceRequestSent;iA.prototype.canReorderChanged=iA.prototype.canReorderChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],iA.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.Hl),_.Y("design:type",Object)],iA.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iA.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"withinMiniplayer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iA.prototype,"minimizePipBreakages",void 0);_.P([_.J({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"selected",void 0);
_.P([_.J({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"useColorPalette",void 0);_.P([_.J({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"largerPlaylistThumbs",void 0);_.P([_.J(),_.Y("design:type",Object)],iA.prototype,"showEqualizer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"canReorder",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"touchPersistentDragHandle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iA.prototype,"handleIsHovered",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iA.prototype,"watchColorUpdate",void 0);_.P([_.J(),_.Y("design:type",String),_.Y("design:paramtypes",[])],iA.prototype,"reorderIcon",null);
_.P([_.T("largerPlaylistThumbs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],iA.prototype,"thumbnailWidth",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iA.prototype,"showActionButtons",null);_.P([_.BG("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iA.prototype,"canReorderChanged",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],iA.prototype,"onYtServiceRequestSent",null);_.P([_.h({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],iA);
_.H(iA,"ytd-playlist-panel-video-renderer",function(){if(Nw8!==void 0)return Nw8;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Nw8=W},{mode:2});var YX=function(){return _.O.apply(this,arguments)||this};
_.Z(YX,_.O);YX.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],YX.prototype,"data",void 0);_.P([_.h({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],YX);
_.H(YX,"ytd-playlist-panel-supported-items",function(){if(APv!==void 0)return APv;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return APv=
W},{mode:1});Mwb=!0;WMU("\\P{N}");var TCG;var Wrb=_.Gv("END_OF_PLAYLIST",void 0,"End of playlist"),eXU=_.Gv("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),zb=function(){var W=_.O.apply(this,arguments)||this;W.minimizePipBreakages=_.S("web_pip_minimize_breakages");W.updatedCoursePanel=_.S("move_three_dot_menu_to_playlist_panel_header_for_courses");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";W.isHovered=!1;W.modernPanels=_.S("kevlar_watch_modern_panels");
W.expandLabel=_.Gv("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.Gv("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.Z(zb,_.O);_.r=zb.prototype;
_.r.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"}}}};
_.r.created=function(){this.scrollThrottle=new _.eS(this.onThrottledScroll,1E3,this)};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
_.r.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.r.computeCollapsible=function(W){return!W};
_.r.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.r.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.r.computeHasToolbarButton=function(W,e){return!(!W||!(e||W.saveButton||W.menu))};
_.r.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.r.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.r.attached=function(){var W=this;try{_.ee().resolve(_.Oj).setPlaylistComponent(this.hostElement)}catch(e){if(_.S("kevlar_park_on_playlist_token_killswitch"))throw e;_.sj().parkOrScheduleJob(function(){_.ee().resolve(_.Oj).setPlaylistComponent(W.hostElement)},2,"ci")}_.m1(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.r.detached=function(){_.ry(this.hostElement)};
_.r.computeTrailingIcon=function(W,e,t){return t?e?"yt-icons:collapse":"yt-icons:close":e?"yt-icons:expand":_.S("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.r.computeIndexMessage=function(W,e){return O0z(W+1)+" / "+O0z(e)};
_.r.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.r.collapseChanged=function(){var W=this;this.collapsed||(_.CU(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.r.hiddenChanged=function(){var W=this;this.hidden||_.CU(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.r.setupReordering=function(){var W=_.rz(this.hostElement).querySelector("#items");byU?_.LNy(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.LNy(this.ytReorderableBehavior,W,W)};
_.r.scrollToCurrentVideo=function(){var W=this;_.Tm.addJob(function(){var e=_.rz(W.hostElement).querySelector("#items");if(e){e.style.setProperty("padding-bottom","");var t=_.rz(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(t){e=t.parentElement||_.pd(document);var b=e||_.pd(document);var m=_.g6(t),q=_.g6(b),Q=_.kZ8(b);if(b==_.pd(document)){var X=m.x-b.scrollLeft;m=m.y-b.scrollTop}else X=m.x-q.x-Q.left,m=m.y-q.y-Q.top;t=ovr(t);q=b.clientHeight-
t.height;Q=b.scrollLeft;var I=b.scrollTop;Q+=X-(b.clientWidth-t.width)/2;b=new _.jH(Q,I+(m-q/2));e.scrollLeft=b.x;e.scrollTop=b.y}}},8)};
_.r.dataChanged=function(){var W=this;_.U4h(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Uc(this,function(){_.kM(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.r.onTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.r.onFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.r.updateNowPlayingOverlay=function(){_.S("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.r.onPlaylistLockupNowPlaying=function(W,e){e&&(this.activeNowPlayingRenderer=e);this.updateNowPlayingOverlay()};
_.r.onScroll=function(){this.scrollThrottle.fire()};
_.r.onThrottledScroll=function(){var W=this;_.kM(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.r.onToggleExpanded=function(W){!this.collapsible||W&&(_.Er(W).tagName==="A"||_.NA(_.LB(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.r.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.Qx(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.r.handleCollapsedFromData=function(W){if(W){var e=W.playlistPanelCollapseState;e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||e==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),e=e==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==e&&this.setCollapsed(e)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(e=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==e&&this.setCollapsed(e),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.r.handleDrop=function(W){var e=W.currDragItem;W=e.data.playlistSetVideoId;var t=_.HZ(e.parentNode.childNodes,e),b=void 0;t>0&&(b=e.parentNode.childNodes[t-1].data.playlistSetVideoId);e=_.K5();if(e.responsePlaylistData&&e.responsePlaylistData.contents){var m=E0D(W,e.responsePlaylistData);e.responsePlaylistData=(0,_.kJ.unsafeClone)(e.responsePlaylistData);ZQQ(e.responsePlaylistData.contents,m,t);e.queueProxy?e7Z(e.queueProxy,m,t,W,b):e.playlistProxy&&e7Z(e.playlistProxy,m,t,W,b);_.P2(e,_.Vn(e,e.response?
e.response.autoplayRenderer:void 0))}};
_.r.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.r.colorPaletteChanged=function(){var W,e=((W=this.data)==null?void 0:W.contents)||[],t;W=_.R(e);for(e=W.next();!e.done;e=W.next()){e=e.value;var b=void 0;if((b=e.playlistPanelVideoRenderer)==null?0:b.selected){W=e.playlistPanelVideoRenderer;b=e=void 0;(t=this.isDarkTheme?(e=W)==null?void 0:e.darkColorPalette:(b=W)==null?void 0:b.lightColorPalette)&&_.T2(this.hostElement,t);break}}this.useColorPalette=!!t};
_.Ec.Object.defineProperties(zb.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.playlistId)&&!((e=this.data)==null||!e.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.ee().resolve(_.Wi(_.Oj)),e;if(((e=this.data)==null?0:e.contents)&&(W==null?0:W.hasAutoplayData())){var t;if(((t=this.playlistLoopStateEntity)==null?void 0:t.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var b,m;var q=(b=this.data.contents[W])==null?void 0:(m=b.playlistPanelVideoRenderer)==null?void 0:m.title}}else{var Q,X=(Q=_.l(W.getAutoplayEndpoint(),_.z4))==null?void 0:Q.videoId,I,u;q=(I=this.data.contents.find(function(c){var v;
return((v=c.playlistPanelVideoRenderer)==null?void 0:v.videoId)===X}))==null?void 0:(u=I.playlistPanelVideoRenderer)==null?void 0:u.title}return q}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.Ub(this.data.nextVideoLabel)+":":Wrb:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.zq(eXU);var e;return(e=this.data)==null?void 0:e.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.playlistButtons)==null?void 0:(t=e.menuRenderer)==null?void 0:t.topLevelButtons;if(b)for(W=_.R(b),e=W.next();!e.done;e=W.next())if(e=e.value,e.playlistLoopButtonRenderer)return e.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}}});
zb.prototype.colorPaletteChanged=zb.prototype.colorPaletteChanged;zb.prototype.onPlaylistLockupNowPlaying=zb.prototype.onPlaylistLockupNowPlaying;zb.prototype.updateNowPlayingOverlay=zb.prototype.updateNowPlayingOverlay;zb.prototype.onFullscreenChanged=zb.prototype.onFullscreenChanged;zb.prototype.onTheaterModeChanged=zb.prototype.onTheaterModeChanged;zb.prototype.dataChanged=zb.prototype.dataChanged;zb.prototype.hiddenChanged=zb.prototype.hiddenChanged;zb.prototype.collapseChanged=zb.prototype.collapseChanged;
zb.prototype.onRenderStamperFinished=zb.prototype.onRenderStamperFinished;zb.prototype.onMouseLeave=zb.prototype.onMouseLeave;zb.prototype.onMouseEnter=zb.prototype.onMouseEnter;_.P([_.y(_.gf),_.Y("design:type",Object)],zb.prototype,"ironResizableBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(Y1P.YtPlaylistPanelBehavior),_.Y("design:type",Object)],zb.prototype,"ytPlaylistPanelBehavior",void 0);_.P([_.y(_.e$.YtTaskEmitterBehavior),_.Y("design:type",Object)],zb.prototype,"ytTaskEmitterBehavior",void 0);_.P([_.y(_.E_P),_.Y("design:type",Object)],zb.prototype,"ytReorderableBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],zb.prototype,"ytdReduxBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],zb.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"autoplayData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zb.prototype,"withinMiniplayer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"minimizePipBreakages",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"updatedCoursePanel",void 0);_.P([_.J({computed:"setMenuData_(data)"}),_.Y("design:type",Object)],zb.prototype,"menuRendererData",void 0);_.P([_.J({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],zb.prototype,"overflowMenuDataTopRow",void 0);_.P([_.J({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],zb.prototype,"overflowMenuData",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"hideHeaderText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"useColorPalette",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Y("design:type",Boolean)],zb.prototype,"collapsible",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"collapsed",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zb.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Y("design:type",Boolean)],zb.prototype,"hasPlaylistButtons",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Y("design:type",Boolean)],zb.prototype,"hasSeparateSaveButton",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Y("design:type",Boolean)],zb.prototype,"hasToolbar",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Y("design:type",String)],zb.prototype,"playlistType",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"isHovered",void 0);_.P([_.J({selectorArgs:["playlistLoopStateEntityKey"],selector:_.CsR}),_.Y("design:type",Object)],zb.prototype,"playlistLoopStateEntity",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"modernPanels",void 0);_.P([_.J({value:56}),_.Y("design:type",Number)],zb.prototype,"scrollMargin",void 0);_.P([_.J({computed:"computeCanReorder(data)"}),_.Y("design:type",Boolean)],zb.prototype,"canReorder",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"expandLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"collapseLabel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"isFloating",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"metaPanel",void 0);_.P([_.J({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Y("design:type",String)],zb.prototype,"trailingIcon",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],zb.prototype,"isDarkTheme",void 0);
_.P([_.J({selector:_.gO}),_.Y("design:type",Boolean)],zb.prototype,"miniplayerIsActive",void 0);_.P([_.J({selector:function(W){return W.watch.playerState}}),
_.Y("design:type",Number)],zb.prototype,"playerState",void 0);_.P([_.J({selector:_.HS}),_.Y("design:type",Boolean)],zb.prototype,"isFullscreen",void 0);_.P([_.J({selector:_.hv}),_.Y("design:type",Boolean)],zb.prototype,"isTheaterMode",void 0);_.P([_.J(),_.Y("design:type",Object)],zb.prototype,"activeNowPlayingRenderer",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zb.prototype,"moveThreeDotMenuToTopRow",null);
_.P([_.T("data","autoplayData","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zb.prototype,"nextVideoTitle",null);_.P([_.T("data","nextVideoTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],zb.prototype,"nextVideoLabel",null);_.P([_.T("collapsed"),_.Y("design:type",String),_.Y("design:paramtypes",[])],zb.prototype,"buttonAriaLabel",null);
_.P([_.T("data","playlistId","longBylineText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zb.prototype,"mixLongByLine",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zb.prototype,"playlistLoopStateEntityKey",null);_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"onMouseEnter",null);
_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"onMouseLeave",null);_.P([_.J({reflectToAttribute:!0}),_.T("data","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zb.prototype,"showNextVideoHeader",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"onRenderStamperFinished",null);
_.P([_.ul("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"collapseChanged",null);_.P([_.ul("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"hiddenChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"dataChanged",null);
_.P([_.ul("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"onTheaterModeChanged",null);_.P([_.ul("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"onFullscreenChanged",null);_.P([_.ul("playerState","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"updateNowPlayingOverlay",null);
_.P([_.wz("yt-playlist-lockup-now-playing-active"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],zb.prototype,"onPlaylistLockupNowPlaying",null);_.P([_.ul("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"colorPaletteChanged",null);_.P([_.h({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],zb);
_.tck=_.Ro()(zb,"ytd-playlist-panel-renderer",function(){if(Exk===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);Exk=W}W=Exk;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var bkk;var UF=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework");return W};
_.Z(UF,_.O);UF.prototype.computeShouldButtonBeVertical=function(W,e){return W||e};
UF.prototype.onYtServiceRequestSent=function(W,e){(W=_.l(e.endpoint,_.UR))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.SX("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
UF.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
UF.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$14957_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$14957_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14957_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14957_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Ec.Object.defineProperties(UF.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return H0z(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;if(this.data&&((W=this.data)==null||!W.hideDislikeButton)){var e;return H0z(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}}}});
UF.prototype.onYtServiceRequestSent=UF.prototype.onYtServiceRequestSent;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],UF.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UF.prototype,"vertical",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],UF.prototype,"textTransform",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UF.prototype,"useShortsIcon",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UF.prototype,"underIconLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],UF.prototype,"modern",void 0);_.P([_.J({value:"left"}),_.Y("design:type",String)],UF.prototype,"buttonTooltipPosition",void 0);
_.P([_.J(),_.Y("design:type",Object)],UF.prototype,"overrides",void 0);_.P([_.vG("#like-button"),_.Y("design:type",Object)],UF.prototype,"JSC$14957_ytdLikeToggleButtonRenderer",void 0);_.P([_.vG("#dislike-button"),_.Y("design:type",Object)],UF.prototype,"JSC$14957_ytdDislikeToggleButtonRenderer",void 0);_.P([_.T("data","likeStatusEntity.likeStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UF.prototype,"likeButton",null);
_.P([_.T("data","likeStatusEntity.likeStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UF.prototype,"dislikeButton",null);_.P([_.J({computed:"computelikeStatusEntityKey(data)"}),_.Y("design:type",String)],UF.prototype,"likeStatusEntityKey",void 0);_.P([_.J({selectorArgs:["likeStatusEntityKey"],selector:sZ}),_.Y("design:type",Object)],UF.prototype,"likeStatusEntity",void 0);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],UF.prototype,"onYtServiceRequestSent",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],UF);
var mp8=_.Ro()(UF,"ytd-like-button-renderer",function(){if(bkk===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);bkk=W}W=bkk;return W},{mode:1});_.r0v={};
_.r0v.YtConditionalRendererBehavior=[_.d.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,e){var t=this,b,m;return _.F(function(q){switch(q.nextAddress){case 1:if(!e)return t.hidden=!0,t.showSpinner=!1,q.return();if((b=W)==null?0:(m=b.visibilityCondition)==null?0:m.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return q.jumpTo(5);default:return q.jumpTo(6)}t.showSpinner=
!1;t.hidden=!0;return _.a(q,t.shouldShow_(W),4);case 4:t.hidden=!q.yieldResult;q.jumpTo(0);break;case 5:return _.a(q,t.shouldShow_(W),8);case 8:t.showSpinner=q.yieldResult;t.hidden=!1;q.jumpTo(0);break;case 6:return t.showSpinner=!1,_.a(q,t.shouldShow_(W),9);case 9:t.hidden=!q.yieldResult,_.u8(q)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.RT(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.F(function(e){return e.nextAddress==1?navigator.permissions?_.a(e,navigator.permissions.query({name:"geolocation"}),3):e.jumpTo(2):e.nextAddress!=2?(W=e.yieldResult,e.return(Promise.resolve(W.state==="granted"))):e.return(Promise.resolve(!1))})}}];var qYe=function(W,e){e=e===void 0?{}:e;return function(t){var b=document.createElement(W),m;var q=(m=b.polymerController)!=null?m:b;PB2(b,q,t,e);return b}}("yt-icon"),RXB=_.S("web_bypass_polymer_yt_icon")&&_.S("kevlar_use_wil_icons")?_.NN(function(W){var e=W.icon;
var t=W.active;var b=W.className;var m=W.style;var q=W.dataSelected;var Q=W.dataDisabled;var X=W.role;var I=W.themeOverride;var u=W.animateIcon;var c=W.ariaHidden;var v=W.ariaExpanded;var D=W.ariaLabel;var B=W.tabindex;var k=W.id;var n=W.iconFilter;var f=function(){var U=e==null?void 0:e(),V=null,L=void 0;U&&(U=bjB(U),U=DKK(U),U.length&&(V=U[1],L=U[0]));return{iconName:V,iconSetName:L}},M=function(){return meP(f().iconName,t==null?void 0:t(),void 0,void 0,f().iconSetName,_.ee().resolve(_.wA))},K=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:n==null?void 0:n()}};
return _.w(_.G,{cond:u,then:function(){return _.w(qYe,{icon:e,active:t,className:b,style:m,dataSelected:q,dataDisabled:Q,role:X,themeOverride:I,ariaHidden:c,ariaExpanded:v,ariaLabel:D,tabindex:B,id:k,iconFilter:n})},
else:function(){return _.w(_.G,{cond:M,then:function(U){return _.w(HlR,{data:U,options:K})}})}})},"ie"):qYe;var Qah=function(W){var e=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];UuD();_.Nz("ytglobal.ytUtilActivityCallback_",function(){_.Qx(W,"yt-user-activity")});
new eI(function(){return e.JSC$14971_onMouseMove});
document.addEventListener("scroll",function(){return e.onScroll});
window.addEventListener("resize",function(){return e.onResize})},FrN=function(W,e,t){e in W.eventJobIds||(t=_.g0().addLowPriorityJob(function(){_.tC();
delete W.eventJobIds[e]},t),W.eventJobIds[e]=t)};
Qah.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&FrN(this,"scroll",200)};
Qah.prototype.onResize=function(){FrN(this,"resize",200)};
Qah.prototype.JSC$14971_onMouseMove=function(){FrN(this,"mousemove",100)};
_.Ep=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var XkZ=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
XkZ.prototype.showFeedbackDialog=function(W,e,t,b){var m=Idv();if(!m)return!1;var q=NCQ();q.productId=m;e&&(q.flow="submit",q.report={description:e});t&&(Idv()==="59"?q.callback=_.hJ(function(){_.nJ("userFeedbackEvent",{});t()}):q.callback=_.hJ(t));
q.bucket=b||_.Ot("GOOGLE_FEEDBACK_BUCKET","Other");adD(q);W=wkr(this,"GFEEDBACK",W);try{_.ano(q,W)}catch(Q){return _.st(Q),!1}return!0};
XkZ.prototype.showHelpDialog=function(W,e,t){var b=this,m=Idv();if(!m)return!1;var q={helpCenterPath:"/youtube",productData:wkr(this,"GUIDED_HELP",t)};adD(q);var Q=NCQ();Q.context=W||q.productData.context||"default";Q.defaultHelpArticleId=e;Q.enableSendFeedback=!0;(_.HO("gapi.load")||function(X,I){return I()})("client",function(){try{var X=EPy(m,q);
if(_.S("web_always_load_chat_support")&&!b.chatSupportLoaded)try{X.JSC$8021_loadChatSupport(Q),b.chatSupportLoaded=!0}catch(I){}X.startHelp(Q)}catch(I){_.st(I)}})};
var Idv=function(){var W=_.Ot("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.st(Error("di"));return W},adD=function(W){W&&(W.locale=_.S("kevlar_help_use_locale")?_.Ot("INNERTUBE_CONTEXT_HL","en"):_.Ot("HTML_LANG","en"))},wkr=function(W,e,t){var b=W.productData;
delete b.origin;b.device=_.vZ();var m;a:{if(m=document.createElement("canvas")){var q=m.getContext("experimental-webgl",{stencil:!0});if(q){var Q=q.getExtension("WEBGL_debug_renderer_info");if(Q){m=q.getParameter(Q.UNMASKED_RENDERER_WEBGL);break a}}if(q=m.getContext("webgl")){m=q.getParameter(q.RENDERER);break a}}m=null}b.gpu=m;b.isSDC=!!_.Ot("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(m=_.Ot("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.kJ.extend(b,m);_.EfL(e,b);_.AoQ(b);(W=_.Qx(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(b.autonav_pause_state=W[0]);W=_.uN();b.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";t&&_.kJ.extend(b,t);return b};
XkZ.prototype.resetProductData=function(){this.productData={}};var u$B=function(W){this.feedbackManager=new XkZ(W)};
u$B.prototype.showFeedbackDialog=function(W,e,t,b){return this.feedbackManager.showFeedbackDialog(W,e,t,b)};
u$B.prototype.showHelpDialog=function(W,e,t){return this.feedbackManager.showHelpDialog(W,e,t)};var c0Z=function(){this.baseUrl="";this.aTag=document.createElement("a")},dPh=function(W,e,t){t=t===void 0?{}:t;
t.pbj||(t.pbj=1);t=_.g5D(e,t);W.baseUrl&&t&&!_.Lt(t)[1]&&!_.Et(t)&&(e=W.baseUrl,qs(e,"/")&&(e=e.slice(0,-1)),_.m2(t,"/")&&(t=t.slice(1)),t=e+"/"+t);yE(W.aTag,S5(t||""));return W.aTag.href};
c0Z.prototype.fetchData=function(W){return _.VlG(W)};
c0Z.prototype.postData=function(W,e){var t={method:"POST"};if(e){for(var b=_.R(Object.keys(e)),m=b.next();!m.done;m=b.next()){m=m.value;var q=e[m];_.tk(q)&&(e[m]=JSON.stringify(q))}t.postParams=e}return _.VlG(W,t)};
_.W8B=function(W,e,t,b,m){W=dPh(W,e,t);if(!W)throw b=Error("ei"),Object.assign(b,{params:e}),b;return _.VlG(W,m,b)};
c0Z.prototype.requestDataForServiceEndpoint=function(W,e){if(_.l(W,_.GsG))return this.fetchData("/getAccountSwitcherEndpoint");e=e||{};var t=_.l(W,$GD);t?e.se=t.base64EncodedServiceEndpoint:e.sej=JSON.stringify(W);(t=_.fc())&&_.S("enable_service_ajax_csn")&&(e.csn=t);e.theme=_.jf();_.l(W,cYs)&&_.Ot("DELEGATION_CONTEXT")&&(e.delegation_context=JSON.stringify(_.Ot("DELEGATION_CONTEXT")));t=null;for(var b in W)if(qs(b,"Endpoint")||qs(b,"Command")){t=b;break}if(!t){var m=Error("fi");Object.assign(m,{params:W});
_.CLs(m,"WARNING");return new _.c3(function(Q,X){X(m)})}b={name:t};
var q;(t=(q=_.l(W,_.c6))==null?void 0:q.signal)&&(b.signal=t);(q=_.Yq(window.location.href))&&q.internalcountrycode&&(b.internalcountrycode=q.internalcountrycode);q="/service_ajax";_.S("debug_forward_web_query_parameters")&&(q=_.VvQ(q,window.location.search));q=_.Ut(q,b);W.clickTrackingParams&&_.Aj(q,{itct:W.clickTrackingParams});return this.postData(q,e)};_.vUD=new _.W_("GFEEDBACK_TOKEN");var Glr;var DpZ;var SYS;var Bnv;var Ll=function(){var W=_.O.apply(this,arguments)||this;W.compact=!1;return W};
_.Z(Ll,_.O);Ll.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ll.prototype.computeHasIcon_=function(W){return!!W};
Ll.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.r0v.YtConditionalRendererBehavior),_.Y("design:type",Object)],Ll.prototype,"ytConditionalRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ll.prototype,"data",void 0);
_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],Ll.prototype,"icon_",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Y("design:type",Boolean)],Ll.prototype,"hasIcon_",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Y("design:type",Boolean)],Ll.prototype,"signInIcon_",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ll.prototype,"compact",void 0);
_.P([_.gz({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Ll);
_.H(Ll,"yt-player-error-message-renderer",function(){if(Bnv===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;SYS===void 0&&(SYS=document.createElement("template"));var b=SYS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Bnv=W}W=Bnv;return W},{mode:2});var oU8;var ldZ;var EF=function(){return _.O.apply(this,arguments)||this};
_.Z(EF,_.O);EF.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EF.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],EF.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],EF.prototype,"icon_",void 0);_.P([_.gz({is:"yt-player-kav-renderer",disableElementRegistration:!0})],EF);
_.H(EF,"yt-player-kav-renderer",function(){if(ldZ===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;oU8===void 0&&(oU8=document.createElement("template"));var b=oU8;t.call(e,b.content.cloneNode(!0),W.content.firstChild);ldZ=W}W=ldZ;return W},{mode:2});_.mM(_.NN(function(W){var e=_.zT("div"),t=_.R(_.up(0,void 0,"gCmSbf")),b=t.next().value,m=t.next().value;t=_.R(_.up(null,void 0,"Rj9zMe"));var q=t.next().value,Q=t.next().value;_.nt(function(){e3G(e.value,m,Q);e.value.scrollIntoView()});
t=tnG.bind(null,W.data,b);dQ("resize",function(){var X=q();if(b()===1&&X!==null){var I;(I=window.grecaptcha)==null||I.reset(X)}});
return _.w("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.w("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.w("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var X,I;return(X=W.data().accessibility)==null?void 0:(I=X.accessibilityData)==null?void 0:I.label}),_.w(_.WL,{text:t,
className:_.ve("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.w("div",{el:e,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.bt}});var bZL=!1;_.ZkZ=_.NN(function(W){var e=W.data;return _.w("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.w(_.G,{cond:function(){return e().icon},
then:function(t){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.w(_.A_,{data:t,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.w(_.G,{cond:function(){return e().title},
then:function(t){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.w(_.WL,{text:t}))}}),_.w(_.G,{cond:function(){return e().description},
then:function(t){return _.w("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.w(_.WL,{text:t}))}}),_.w(_.nU,{data:function(){return e().primaryButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.w(_.nU,{data:function(){return e().secondaryButton}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.ZkZ.idomCompat=!0;var $ph=_.NN(function(W){var e=W.data;_.NZ();return _.w("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.w("div",{class:"player-interstitial-renderer-wiz__scrim"},_.w(_.nU,{data:function(){return e().content}},{interstitialViewModel:_.ZkZ})))},"le");
$ph.idomCompat=!0;_.mM($ph,"yt-player-interstitial-renderer",{props:{data:_.Eu}});var A6=function(){var W=_.O.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.Z(A6,_.O);A6.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"}}}};
A6.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.l(W,s3r)){var e;if(W=(e=_.l(W,s3r))==null?void 0:e.newPlayerErrorMessageRenderer)this.data=W}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],A6.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],A6.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],A6.prototype,"status",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A6.prototype,"noBackground",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A6.prototype,"compact",void 0);_.P([_.gz({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],A6);
var klZ=_.Ro()(A6,"yt-playability-error-supported-renderers",function(){if(DpZ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Glr===void 0&&(Glr=document.createElement("template"));var b=Glr;t.call(e,b.content.cloneNode(!0),W.content.firstChild);DpZ=W}W=DpZ;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var mbc=void 0,qkG=void 0;var FsD=new JGh;var pkb=function(W){this.store=W;this.gZj=new _.Md8},o1K=function(W,e,t){var b,m;
if(!(m=((b=e.playabilityStatus)==null?void 0:b.status)!=="OK")){W=W.store;var q;m=e.offlineState&&((q=e.videoDetails)==null?0:q.videoId)?_.S("enable_pl_r_c_cd")?jUG(W.getState().entities,e.videoDetails.videoId):!!tOZ(W.getState().entities,e.videoDetails.videoId):!1}if(m)return!0;m=u9G(e);if(m===1){if(_.S("ab_v_vid_sig")){var Q,X=(Q=e.videoDetails)==null?void 0:Q.videoId;if(!X||!t||X!==t){var I;e=new _.o_("282054944_vid",{gTk:t,cRq:(I=e.videoDetails)==null?void 0:I.videoId});_.gQ(e)}}return!0}fUS=
0;var u,c;I=(X=e.auxiliaryUi)==null?void 0:(u=X.messageRenderers)==null?void 0:(c=u.bkaEnforcementMessageViewModel)==null?void 0:c.displayType;if(m!==3&&(I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;I={reason:_.tm(_.Gv("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.S("ks_something_wrong_learn_more")?gTR("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.tm(_.Gv("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:_.tm("282054944")};y0b(e,{playerErrorMessageRenderer:I});return!1},lwZ=function(W,e){if(Lyz(e)){_.um(1,!0);
var t=(t=Lyz(e))&&_.rgG()?t:void 0;t?(y0b(e,{enforcementMessageViewModel:t}),W.gZj.increment("IN_PLAYER"),_.um(5)):(W.gZj.increment("SKIP_DISPLAY"),_.um(2))}},y0b=function(W,e){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:e});W.videoDetails=void 0};
pkb.prototype.handleResponse=function(W,e){if(W.playabilityStatus){var t,b,m,q=(e==null?void 0:(t=e.innerTubeRequest)==null?void 0:t.videoId)||(e==null?void 0:(b=e.innerTubeRequest)==null?void 0:(m=b.playerRequest)==null?void 0:m.videoId);o1K(this,W,q)&&lwZ(this,W)}};
pkb[dU]=[w0];var S$D=new _.W_("ADBLOCK_DETECTION_SERVICE_TOKEN");var ti=function(W){this.lVW=W};
ti.prototype.bindInnertubeChallengeFetcher=function(W){this.lVW.bicf(W)};
ti.prototype.registerChallengeFetchedCallback=function(W){this.lVW.bcr(W)};
ti.prototype.getLatestChallengeResponse=function(){return this.lVW.blc()};var fdZ;_.N6=function(W,e,t){var b=this;this.network=W;this.options=e;this.networkStatusManager=t;this.qI=null;if(e.useBotguardEverywhere){var m=new _.Xu;this.qI=m.promise;_.tz.ytAtRC&&_.lJ(_.Tm,function(){var q,Q;return _.F(function(X){if(X.nextAddress==1){if(!_.tz.ytAtRC)return X.return();q=jaD(null);return _.a(X,b.sJ(q),2)}Q=X.yieldResult;_.tz.ytAtRC&&_.tz.ytAtRC(JSON.stringify(Q));_.u8(X)})});
SkQ().then(function(q){var Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return q.bindInnertubeChallengeFetcher(function(v){return b.sJ(jaD(v))}),_.a(c,jhc(),2);
Q=c.yieldResult;X=q.getLatestChallengeResponse();I=X.challenge;if(!I)throw Error("gi");u={challenge:I,ma:ej(I),iq:Q,bgChallenge:new dk};m.resolve(u);q.registerChallengeFetchedCallback(function(v){v=v.challenge;if(!v)throw Error("hi");v={challenge:v,ma:ej(v),iq:Q,bgChallenge:new dk};b.qI=Promise.resolve(v)});
_.u8(c)})})}else e.preload&&Cqb(this,new Promise(function(q){_.kM(_.Tm,function(){q(nUS(b))},0)}))};
fdZ=function(W){var e={preload:!0,useBotguardEverywhere:!0},t=!1;if(typeof e==="boolean")var b={preload:e};else typeof e==="undefined"?b={preload:!0}:(b=e,t=!!e.n2P);e=t?void 0:new _.Yn;_.N6.instance=new _.N6(W,b,e);return _.N6.instance};
_.N6.prototype.oTK=function(){var W=this;return _.F(function(e){return e.nextAddress==1?_.a(e,Promise.race([W.qI,null]),2):e.return(!!e.yieldResult)})};
_.N6.prototype.uR3=function(W,e,t){var b=this,m,q,Q;return _.F(function(X){b.qI===null&&Cqb(b,nUS(b));m=!1;q={};Q=function(){var I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:return _.a(v,b.qI,2);case 2:I=v.yieldResult;q.challenge=I.challenge;if(!I.iq){"c1a"in I.ma&&(q.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");v.jumpTo(3);break}u=Object.assign({},{c:I.challenge,e:W},e);_.Qh(v,4);m=!0;if(_.S("attbs")&&!b.options.useBotguardEverywhere){c=_.JK8(I.iq,{c6:u});v.jumpTo(6);break}return _.a(v,
I.iq.snapshot({c6:u}),7);case 7:c=v.yieldResult;case 6:c?q.webResponse=c:q.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Hi(v,3);break;case 4:_.w9(v),q.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var D=I.ma,B={};if(D.c6a){var k=Number(_.Ot("DCLKSTAT",0));B.reportingStatus=String(Number(D.c)^(isNaN(k)?0:k))}D.c6b&&(B.broadSpectrumDetectionResult=String(Number(D.c)^Number(_.Ot("CATSTAT",0))));q.adblockReporting=B}return v.return(q)}})};
return X.return(Promise.race([Q(),gUB(t,function(){var I=Object.assign({},q);m&&(I.error="ATTESTATION_ERROR_VM_TIMEOUT");return I})]))})};
var jaD=function(W){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(e.interpreterHash=W);return e},nUS=function(W,e){e=e===void 0?0:e;
var t,b,m,q,Q,X,I,u,c,v,D,B;return _.F(function(k){switch(k.nextAddress){case 1:t=jaD(M5o().iTq);if(_.S("att_fet_ks"))return _.Qh(k,7),_.a(k,W.sJ(t),9);_.Qh(k,4);return _.a(k,Tno(W,t),6);case 6:Q=k.yieldResult;m=Q.z99;q=Q.nAa;b=Q;_.Hi(k,3);break;case 4:return _.w9(k),_.JC(Error("ii`"+e)),J0y(W,864E5),k.return({challenge:"",ma:{},iq:void 0,bgChallenge:void 0});case 9:b=k.yieldResult;if(!b)throw Error("ji");if(!b.challenge)throw Error("ki");m=b.challenge;q=ej(m);if("c1a"in q&&(!b.bgChallenge||!b.bgChallenge.program))throw Error("li");
_.Hi(k,3);break;case 7:X=_.w9(k);_.JC(X);e++;if(e>=5)return _.JC(Error("ii`"+e)),J0y(W,864E5),k.return({challenge:"",ma:{},iq:void 0,bgChallenge:void 0});I=1E3*Math.pow(2,e-1)+Math.random()*1E3;return k.return(new Promise(function(n){_.kM(_.Tm,function(){n(nUS(W,e))},I)}));
case 3:u=DbK(q);J0y(W,u*1E3);c=void 0;if(!("c1a"in q&&b.bgChallenge)){k.jumpTo(10);break}v=GcR(b.bgChallenge);_.Qh(k,11);return _.a(k,hOr(M5o(),v),13);case 13:_.Hi(k,12);break;case 11:return D=_.w9(k),_.JC(D),k.return({challenge:m,ma:q,iq:c,bgChallenge:v});case 12:return _.Qh(k,14),c=new _.xr({challenge:v,nS:{xM:"aGIf"}}),_.a(k,c.bde,16);case 16:_.Hi(k,10);break;case 14:B=_.w9(k),_.JC(B),c=void 0;case 10:return k.return({challenge:m,ma:q,iq:c,bgChallenge:v})}})};
_.N6.prototype.sJ=function(W){var e=this,t;return _.F(function(b){t=e.networkStatusManager;if(!t||t.isNetworkAvailable())return b.return(e.network.sJ(W));_.xh("att_pna",void 0,"attestation_challenge_fetch");return b.return(new Promise(function(m){t.listenOnce("publicytnetworkstatus-online",function(){e.network.sJ(W).then(m)})}))})};
var xpS=function(W){if(!W)throw Error("ji");if(!W.challenge)throw Error("ki");var e=W.challenge,t=ej(e);if("c1a"in t&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("li");return Object.assign({},W,{z99:e,nAa:t})},Tno=function(W,e){var t,b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:t=void 0,b=0,m={};case 2:if(!(b<5)){X.jumpTo(4);break}if(!(b>0)){X.jumpTo(5);break}m.nPn=1E3*Math.pow(2,b-1)+Math.random()*1E3;return _.a(X,new Promise(function(I){return function(u){_.kM(_.Tm,function(){u(void 0)},I.nPn)}}(m)),5);
case 5:return _.Qh(X,7),_.a(X,W.sJ(e),9);case 9:return q=X.yieldResult,X.return(xpS(q));case 7:t=Q=_.w9(X),Q instanceof Error&&_.JC(Q);case 8:b++;m={nPn:void 0};X.jumpTo(2);break;case 4:throw t;}})},Cqb=function(W,e){W.qI=e},OkP=function(W){var e,t,b;
return _.F(function(m){if(m.nextAddress==1)return _.a(m,Promise.race([W.qI,null]),2);e=m.yieldResult;var q=nUS(W);W.qI=q;(t=e)==null||(b=t.iq)==null||b.dispose();_.u8(m)})},J0y=function(W,e){var t=Date.now()+e,b=function(){var m;
return _.F(function(q){m=t-Date.now();return m<1E3?_.a(q,OkP(W),0):(_.kM(_.Tm,b,Math.min(m,6E4)),q.jumpTo(0))})};
b()},gUB=function(W,e){return new Promise(function(t){_.kM(_.Tm,function(){t(e())},W)})};var Mcy=function(){};
Mcy.prototype.processContext=function(W){var e=_.N6.instance;if(!e)return _.zr();var t=$bZ(W);return t?new Yi(e.uR3(t,lPR(W),500).then(function(b){var m;(W==null?0:(m=W.innerTubeRequest)==null?0:m.context)||(W.innerTubeRequest.context={});m=W.innerTubeRequest.context;m.request||(m.request={});m.request.attestationResponseData=b})):_.zr()};var sak=function(W){this.innertubeTransportService=W};
sak.prototype.sJ=function(W){_.xh("att_fsr",void 0,"attestation_challenge_fetch");return _.x0(this.innertubeTransportService,W,_.Am(_.s0B)).then(function(e){_.xh("att_frr",void 0,"attestation_challenge_fetch");return e})};_.hXS=function(W){this.innertubeTransportService=W};var Hky=new _.W_("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var KrZ=function(){},VcD=function(W,e,t,b,m){var q=_.Ot("YPC_MB_URL");
_.qKL(q).then(function(){Pqb(q,W,e,t,b,m)})},Pqb=function(W,e,t,b,m,q){try{var Q=payments.business.integration,X=payments.business.integration.Style.create().withMaterialDesignStyle(),I=Q.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.S("enable_window_constrained_buy_flow_dialog")&&(I=I.usingPopupStyle("windowConstrained"));q&&(I=I.usingCloseCallback(q));var u=t?t:_.Ot("YPC_GB_LANGUAGE"),c=_.Ot("SESSION_INDEX");Q.bootstrap.fromPaymentsUrl(W);Q.bootstrap.asMashupMode(I).usingGaiaIndex(c).usingLocale(u).usingStyle(X).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Q.standaloneContextAuthId.forGaia()).purchaseManager(e,function(v){b&&b(v)}).load(void 0,m)}catch(v){throw m&&m(v),_.gQ(v),v;
}};var ikU=new _.W_("PURCHASE_MANAGER_TOKEN");var YYB=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(e){W.videos=e},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(e){W.recommendedVideos=e}}};
YYB.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(e){return!!_.pyQ(e)}).map(function(e){var t=_.pyQ(e);
a:{var b;if(e.playlistVideoRenderer&&((b=e.playlistVideoRenderer)==null?0:b.voteSortTiebreaker))var m=e.playlistVideoRenderer.voteSortTiebreaker;else{if(_.l(e,mz)){var q;if(b=(m=_.l(e,mz))==null?void 0:(q=m.playlistItemData)==null?void 0:q.voteSortTiebreaker){m=b;break a}}m=""}}return{itemId:t,videoId:_.Coz(e),voteCount:_.n89(e),voteSortTiebreaker:m}}),this.continuationsPresent=!!_.l(W[W.length-1],_.Q$))};
var zXb=function(W,e){return W.videos.findIndex(function(t){return t.itemId===e})},UpU=function(W,e){return W.recommendedVideos.findIndex(function(t){return t.itemId===e})},LrD=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.ee().resolve(_.tQ).resolveCommand(W)};var EUe=function(){YYB.apply(this,arguments)};
_.Z(EUe,YYB);
var xb8=function(W,e,t,b){if(!W.parentElem)throw Error("qi");var m=zXb(W,e);m===-1&&(m=UpU(W,e),m=m!==-1?m+W.videos.length:-1);if(m===-1)throw Error("ri");var q=m>=W.videos.length?W.recommendedVideos[m-W.videos.length]:W.videos[m];q.voteCount=t;q.voteSortTiebreaker=Date.now().toString();m>=W.videos.length?W.recommendedVideos.splice(m-W.videos.length,1):W.videos.splice(m,1);var Q=W.videos;for(var X=0,I=Q.length-1;X<=I;){var u=Math.floor((X+I)/2);if(Q[u].voteCount<q.voteCount)I=u-1;else if(Q[u].voteCount>q.voteCount)X=
u+1;else{a:{var c=q.voteSortTiebreaker;var v=Q[u].voteSortTiebreaker;if(c.length!==v.length)c=c.length>v.length;else{for(var D=0;D<c.length;D++){var B=c.charCodeAt(D),k=v.charCodeAt(D);if(B>k){c=!0;break a}if(B<k)break}c=!1}}c?I=u-1:X=u+1}}Q=X;if(Q===-1)throw Error("si");W.videos.splice(Q,0,q);m!==Q&&A08(W,m,Q,e,t,b)},A08=function(W,e,t,b,m,q){var Q,X=(Q=W.parentElem)==null?void 0:Q.children,I=Math.min(e,t),u=Math.max(e,t);
if(X)for(Q=I;Q<=u;Q++)X[Q].style.viewTransitionName="item-"+String(Q);document.startViewTransition(function(){if(W.parentElem){var c=W.parentElem.children;if(!(!c||e<0||e>=c.length||t<0||t>=c.length)){var v=c[e];if(v){v.remove();W.showRefreshPill=t>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){c=c[t]||null;var D;(D=W.parentElem)==null||D.insertBefore(v,c)}_.q2(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:t,itemId:b,newVoteCount:m,voteStatus:q,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(X)for(var c=
I;c<=u;c++)X[c].style.viewTransitionName="";
if(W.showRefreshPill)LrD(_.Gv("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var v;if(v=c=(v=W.parentElem)==null?void 0:v.children[t])v=c.getBoundingClientRect(),c=v.bottom,v=!(v.top>=0&&c<=W.clientHeight);v&&(v=_.D8(e>t?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(e-t)),LrD(v))}})};var WCD=function(W,e){var t=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):e&&(this.innertubeTransportServicePromise=e(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new OF(3E3,function(b){return Nnk(t,b)},0);
this.validateMiniAppVideoIdRateLimiter=new OF(3E3,function(b){return dp8(t,b)},1)},Two=function(W,e){W.JSC$15083_miniAppId=e;
W.reportMiniAppValueRateLimiter=new OF(3E3,function(t){return Nnk(W,t)},0);
W.validateMiniAppVideoIdRateLimiter=new OF(3E3,function(t){return dp8(W,t)},1)},x88=function(W,e){var t;
return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.reportMiniAppValueRateLimiter.call(e),2);t=b.yieldResult;return b.return([t,e])})},Nnk=function(W,e){var t,b,m,q,Q,X,I;
return _.F(function(u){switch(u.nextAddress){case 1:return _.a(u,W.innertubeTransportServicePromise,2);case 2:return t=u.yieldResult,b=_.Am(Yub),m=Date.now(),q={externalPostId:W.JSC$15083_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(m/1E3),nanos:Math.round(m%1E3*1E6)},intValue:""+e}},_.Qh(u,3),_.a(u,_.x0(t,q,b),5);case 5:Q=u.yieldResult;_.Hi(u,4);break;case 3:throw X=_.w9(u),X;case 4:if(Q){if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("ti`"+
Q.errorMetadata.status);if(I=Q.userStatResult)return u.return(I);throw Error("ui");}throw Error("vi");}})},MqN=function(W){var e,t,b,m,q;
_.F(function(Q){switch(Q.nextAddress){case 1:return _.a(Q,W.innertubeTransportServicePromise,2);case 2:return e=Q.yieldResult,t=_.Am(Yub),b={externalPostId:W.JSC$15083_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Qh(Q,3),_.a(Q,_.x0(e,b,t),5);case 5:m=Q.yieldResult;_.Hi(Q,4);break;case 3:throw q=_.w9(Q),q;case 4:if(m==null)throw Error("vi");if("error"in m&&m.error)throw m.error;if(m.errorMetadata)throw Error("ti`"+m.errorMetadata.status);_.u8(Q)}})};
WCD.prototype.flush=function(){var W=this;return _.F(function(e){return e.nextAddress==1?_.a(e,W.reportMiniAppValueRateLimiter.flush(),2):_.a(e,W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Ooy=function(W,e){return _.F(function(t){return t.nextAddress==1?_.a(t,W.validateMiniAppVideoIdRateLimiter.call(e),2):t.return(t.yieldResult)})},dp8=function(W,e){var t,b,m,q,Q,X;
return _.F(function(I){switch(I.nextAddress){case 1:return _.a(I,W.innertubeTransportServicePromise,2);case 2:return t=I.yieldResult,b=_.Am(M1Z),m={videoId:e},_.Qh(I,3),_.a(I,_.x0(t,m,b),5);case 5:q=I.yieldResult;_.Hi(I,4);break;case 3:throw Q=_.w9(I),Q;case 4:if(q){if("error"in q&&q.error)throw q.error;if(q.errorMetadata)throw Error("ti`"+q.errorMetadata.status);if(X=q.playabilityStatus)return I.return(X.status);throw Error("wi");}throw Error("vi");}})};
WCD[dU]=[_.Wi(_.J8),_.Wi(vIZ)];var ejS=function(){this.clientData=new Map};
ejS.prototype.getData=function(W){return this.clientData.get(W)};var tZN=function(W){this.store=W};
tZN.prototype.handleResponse=function(W){(W=_.l(W.frameworkUpdates,EZ))&&_.vm(W,this.store)};
tZN[dU]=[_.hh];var bmb=new _.W_("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var maP={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_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[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 rfh=new _.W_("ICON_SET_TOKEN"),qGP=new _.W_("ICON_URL_PROVIDER_TOKEN"),RjP=new _.W_("PREFETCH_ICONS_TOKEN"),QqN=new _.W_("ICON_MAP_FN_TOKEN");var d7={},FCo=(d7.ACCESS_TIME="clock",d7.ACCOUNT_BOX="person_account",d7.ACCOUNT_BOX_CAIRO="person_account_cairo",d7.ACCOUNT_CIRCLE="person_circle",d7.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",d7.ACCOUNT_LINKED="account_link_success",d7.ACCOUNT_UNLINKED="account_link",d7.ADD_FRIEND="people",d7.ADD_MODERATOR="shield_add",d7.ADD_TO_LIBRARY=qw("add"),d7.ADD_TO_PLAYLIST="add",d7.ADD_TO_QUEUE_TAIL="list_queue",d7.ADD_TO_REMOTE_QUEUE="list_music",d7.ADD_TO_WATCH_LATER="clock",d7.ADD_VIDEO_LINK="film_strip_add",
d7.ALERT_WARN_RED="alert_triangle",d7.ARROW_BACK="arrow_left",d7.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",d7.ARROW_DROP_DOWN="chevron_down",d7.ARROW_DROP_UP="chevron_up",d7.ARROW_FORWARD="arrow_right",d7.AUDIOTRACK="audio",d7.AUTO_AWESOME="sparkle",d7.AVATAR_ANONYMOUS="person_circle",d7.AVATAR_LOGGED_OUT="person_circle",d7.BACK="arrow_left",d7.BAR_CHART="bar_graph",d7.BLOCK="slash_circle_left",d7.BLOCK_USER="slash_circle_left",d7.BOOKMARK_BORDER="bookmark",d7.BREAKING_NEWS_ALT_1="article_alert",
d7.BROADCAST_CAIRO="podcast_cairo",d7.BUG_REPORT="bug",d7.CAMERA_ALT="camera",d7.CAMPAIGN="megaphone",d7.CANCEL="x_circle",d7.CAPTIONS="closed_caption",d7.CAST_OUTLINE="chromecast",d7.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",d7.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",d7.CHAT="message_bubble_left",d7.CHAT_BUBBLE="message_bubble_empty",d7.CHAT_SPARK="spark_message_bubble_left",d7.CHECK_BOX_OUTLINE_BLANK="box_empty",d7.CHECK_CIRCLE_OUTLINE="check_circle",d7.CHECK_CIRCLE_THICK="check_circle",d7.CLARIFY=
"article_clarify",d7.CLOSED_CAPTION_SELECTED="closed_caption",d7.CLOSE="x_mark",d7.CLOUD_UPLOAD="cloud_arrow_up",d7.COLLAPSE="chevron_up",d7.COLLAPSE_CAIRO="chevron_up_cairo",d7.COLLECTION="layers",d7.COLOR_LENS="palette",d7.COMMENT="message_bubble_right",d7.CONSENT_SHIELD="person_shield",d7.CONTENT_CUT="scissors",d7.CONTENT_CUT_CAIRO="scissors_cairo",d7.COURSE=_.S("web_enable_course_icon_update")?"creator_academy":"lightbulb",d7.COURSE_CAIRO=_.S("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",d7.CREATION_LIVE="radar_live",d7.CREATION_POST="box_pencil",d7.CREATION_UPLOAD="my_videos",d7.CREATION_UPLOAD_RED="upload",d7.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",d7.CREATOR_STUDIO="youtube_studio",d7.DASHBOARD="grid_asymmetrical",d7.DELETE="trash_can",d7.DELETE_SWEEP="trash_can",d7.DESKTOP="laptop",d7.DISLIKE="thumb_down",d7.DISLIKE_SELECTED="thumb_down",d7.DISMISSAL="x_mark",d7.DISMISS_QUEUE="list_remove",d7.DONE_ALL="check_double",d7.DOWN_ARROW="arrow_down",d7.DO_NOT_DISTURB=
"slash_circle_left",d7.DRAFT="paper_corner_folded",d7.DRAG_HANDLE="bars_2",d7.EDIT="pencil",d7.EMOJI="face_very_happy",d7.EMOJI_FLAGS="flag",d7.EMOJI_OBJECTS="lightbulb",d7.EMOJI_PEOPLE="face_very_happy",d7.EMOJI_RECENT="clock",d7.EMPTY_HEART="heart",d7.EMPTY_LIKE="thumb_up",d7.ERROR_BLACK="alert_circle",d7.ERROR_OUTLINE="alert_circle",d7.EXIT_APP="arrow_in",d7.EXIT_TO_APP="arrow_in",d7.EXPAND="chevron_down",d7.EXPAND_ALL="chevron_expand",d7.EXPAND_CAIRO="chevron_down_cairo",d7.EXPAND_LESS="chevron_up",
d7.EXPAND_MORE="chevron_down",d7.EXPLORE="compass",d7.EXPLORE_DESTINATION="compass",d7.EXTERNAL_LINK="open_new",d7.FAB_UPLOAD="upload",d7.FACE_HAPPY_OUTLINE="face_happy",d7.FACT_CHECK="article_check",d7.FASHION_LOGO="fashion",d7.FASHION_LOGO_CAIRO="fashion_cairo",d7.FAVORITE="heart",d7.FEEDBACK="message_bubble_alert",d7.FEEDBACK_CAIRO="message_bubble_alert_cairo",d7.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",d7.FILL_ARROW_SOLID_UP_16="arrow_solid_up",d7.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
d7.FILTER="menu_filter",d7.FIRST_PAGE="chevron_first",d7.FLAG="flag",d7.FULL_HEART="heart",d7.GAME_CONSOLE_DPAD="game_console_dpad",d7.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",d7.GAMING_LOGO="gaming",d7.GAMING_LOGO_CAIRO="gaming_cairo",d7.GO_TO_PAGE="arrow_right",d7.GROUPS="people_group",d7.HAPPY="face_happy",d7.HEALTH_AND_SAFETY="shield_plus",d7.HELP="question_circle",d7.HELP_CAIRO="question_circle_cairo",d7.HELP_OUTLINE="question_circle",d7.HIDE="slash_circle_left",d7.IMAGE="image",
d7.INFINITY_ICON="infinity",d7.INFO="info_circle",d7.INFO_OUTLINE="info_circle",d7.INSERT_CHART_OUTLINED="bar_graph_box_vertical",d7.INSERT_PHOTO="image",d7.KEEP="pin",d7.KEEP_OFF="pin_off",d7.KEYBOARD="keyboard",d7.KEYBOARD_ARROW_DOWN="chevron_down",d7.KEYBOARD_ARROW_UP="chevron_up",d7.KIDS_BLOCK="slash_circle_left",d7.LANGUAGE="globe",d7.LAST_PAGE="chevron_last",d7.LAUNCH="open_new",d7.LEARNING="lightbulb",d7.LEARNING_CAIRO="lightbulb_cairo",d7.LIBRARY_ADD=qw("library_add"),d7.LIBRARY_OUTLINE="library",
d7.LIBRARY_REMOVE=qw(),d7.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",d7.LIKES_PLAYLIST="thumb_up",d7.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",d7.LIKE="thumb_up",d7.LIKE_SELECTED="thumb_up",d7.LIVE="radar_live",d7.LIVE_CAIRO="radar_live_cairo",d7.LIVE_UNLISTED="link",d7.LOCATION_ON="location_point",d7.LOCATION_PIN="location_point",d7.LOOP="arrow_repeat",d7.LOOP_ACTIVE="arrow_repeat",d7.LOOP_ONE="arrow_repeat_1",d7.LOOP_ONE_ACTIVE="arrow_repeat_1",d7.MEH="face_meh",d7.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
d7.MESSAGE="message_bubble_left",d7.MICROPHONE_ON="mic",d7.MIX="youtube_mix",d7.MONETIZATION_ON="dollar_sign_circle",d7.MONEY_FILL="dollar_sign_container",d7.MONEY_FILL_JPY="yen_sign_container",d7.MONEY_HEART="dollar_sign_heart",d7.MORE_HORIZ="overflow_horizontal",d7.MORE_VERT="overflow_vertical",d7.MUSIC="audio",d7.MUSIC_CAIRO="audio_cairo",d7.MUSIC_NOTE_SYMBOL="music",d7.MUSIC_SHUFFLE="arrow_shuffle",d7.MY_CHANNEL="person_circle",d7.MY_LOCATION="location_point",d7.NEWS_STORY="news",d7.NEXT="chevron_right",
d7.NOTIFICATIONS="bell",d7.NOTIFICATIONS_ACTIVE="bell_on",d7.NOTIFICATIONS_CAIRO="bell_cairo",d7.NOTIFICATIONS_DONE_CHECKMARK="check",d7.NOTIFICATIONS_INBOX="bell",d7.NOTIFICATIONS_NONE="bell",d7.NOTIFICATIONS_OFF="bell_off",d7.NOT_INTERESTED="slash_circle_left",d7.OFFICIAL_ARTIST_BADGE="audio",d7.OFFLINE_CLOUD="cloud_off",d7.OFFLINE_DOWNLOAD="download",d7.OFFLINE_DOWNLOAD_CAIRO="download_cairo",d7.OFFLINE_PAUSE="pause",d7.OPEN_IN_NEW="open_new",d7.OUTLINE_ADJUST="adjust",d7.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",d7.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",d7.OUTLINE_BAG="bag",d7.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",d7.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",d7.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",d7.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",d7.PAID="dollar_sign",d7.PAUSE_OUTLINED="pause",d7.PAYMENT="credit_card",d7.PERSON_RADAR_FILLED="person_radar",d7.PHONE_DOWNLOAD="mobile_download",d7.PLAYABLES_LOGO="tic_tac_toe",d7.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
d7.PLAYLISTS="list_play_arrow",d7.PLAYLISTS_CAIRO="list_play_arrow_cairo",d7.PLAYLIST_ADD=qw("list_add"),d7.PLAYLIST_ADD_CHECK=qw("list_check"),d7.PLAYLIST_PLAY="list_play_arrow",d7.PLAY_ALL="play_arrow",d7.PLAY_CIRCLE="play_arrow_circle",d7.PLAY_OUTLINED="play_arrow_circle",d7.PRIVACY_INFO="shield",d7.PRIVACY_PRIVATE="lock",d7.PRIVACY_PUBLIC="earth",d7.PRIVACY_UNLISTED="link",d7.PROMOTE="megaphone",d7.PURCHASES="price_tag",d7.PURCHASE_SUPER_CHAT="super_chat",d7.PURCHASE_SUPER_STICKER="super_sticker",
d7.QUESTION_ANSWER="message_bubble_question",d7.QUEUE_PLAY_LAST="list_queue_last",d7.QUEUE_PLAY_NEXT="list_play_arrow",d7.REMIX_FILLED="youtube_shorts_remix",d7.REMOVE="bar_circle",d7.REMOVE_CIRCLE="bar_circle",d7.REMOVE_CIRCLE_OUTLINE="bar_circle",d7.REMOVE_DONE="check_double_off",d7.REMOVE_FROM_HISTORY="bar_circle",d7.REMOVE_FROM_PLAYLIST="bar_circle",d7.REMOVE_MODERATOR="shield_off",d7.REPLAY="arrow_circle",d7.REPLAY_10="skip_back_10",d7.REPORT_PROBLEM="alert_triangle",d7.SAD="face_sad",d7.SAVE_PLAYLIST=
qw("library_add"),d7.SCHEDULE="clock",d7.SCHOOL="creator_academy",d7.SCREEN_FULLSCREEN="screen_full",d7.SEARCH_HISTORY="arrow_time",d7.SELL="price_tag",d7.SETTINGS="gear",d7.SETTINGS_CAIRO="gear_cairo",d7.SETTINGS_LIGHT="gear",d7.SETTINGS_MATERIAL="gear",d7.SHARE_ARROW="share",d7.SHIELD_WITH_AVATAR="person_shield",d7.SHOPPING_BAG="bag",d7.SHOPPING_BAG_CAIRO="bag_cairo",d7.SHOPPING_CART="cart",d7.SHORTS_COMMENT="youtube_shorts_message_bubble_right",d7.SHORTS_DISLIKE="youtube_shorts_thumb_down",d7.SHORTS_LIKE=
"youtube_shorts_thumb_up",d7.SHORTS_SHARE="youtube_shorts_share",d7.SHUFFLE="arrow_shuffle",d7.SLOW_MODE_OFF="message_bubble_left",d7.SOCIAL="people",d7.SORT="menu_sort",d7.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",d7.SPEED_1X="1x",d7.SPEED_1_POINT_2X="1_point_2x",d7.SPEED_1_POINT_5X="1_point_5x",d7.SPEED_1_POINT_8X="1_point_8x",d7.SPEED_2X="2x",d7.SPEED_POINT_2X="point_2x",d7.SPEED_POINT_8X="point_8x",d7.SPONSORSHIP_STAR=_.S("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",d7.STAFF_PICK=
"spotlight",d7.START_DVR="add",d7.STAR_BORDER="star",d7.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",d7.STICKER_EMOTICON="face_happy",d7.STOP_DVR="stop",d7.SUBSCRIBE="youtube_logo_icon",d7.SUBSCRIBE_PLUS="add_cairo",d7.SUBSCRIPTION_MANAGER="gear",d7.SUPERVISOR_ACCOUNT="people",d7.SUPER_CHAT_FOR_GOOD="hands_heart",d7.SWAP_HORIZ="arrow_swap_horizontal",d7.SWITCH_ACCOUNTS="person_account",d7.TAB_ACCOUNT="person",d7.TAB_ACTIVITY="bell",d7.TAB_BOOKMARK="bookmark",d7.TAB_EXPLORE="compass",d7.TAB_HOME=
"home",d7.TAB_HOME_CAIRO="home_cairo",d7.TAB_INBOX="mail",d7.TAB_LIKED="thumb_up",d7.TAB_MUSIC_PREMIUM="youtube_music",d7.TAB_SHORTS="youtube_shorts",d7.TAB_SHORTS_CAIRO="youtube_shorts_cairo",d7.TAB_SUBSCRIPTIONS="subscriptions",d7.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",d7.TAB_TRENDING="fire",d7.TIMER="stopwatch",d7.TRAILER="youtube_originals",d7.TRENDING="fire",d7.TRENDING_CAIRO="fire_cairo",d7.TRENDING_UP="rating_up",d7.TROPHY="trophy",d7.TROPHY_CELEBRATIONS="fireworks",d7.TUNE="adjust",
d7.UNBLOCK_USER="bar_circle",d7.UNLIMITED="youtube_logo_icon",d7.UNPLUGGED_LIVE_GUIDE="radar_live",d7.UNPLUGGED_SPORTS="eye_off",d7.UPLOADS="library",d7.UP_ARROW="arrow_up",d7.VERTICAL_ALIGN_BOTTOM="download",d7.VERY_HAPPY="face_very_happy",d7.VERY_SAD="face_very_sad",d7.VIDEOGAME_ASSET="gaming",d7.VIDEOS="play_arrow_circle",d7.VIDEO_CALL="video_camera_add",d7.VIDEO_LIBRARY_WHITE="library",d7.VIDEO_YOUTUBE="youtube_logo_icon",d7.VIEW_LIST="list_view",d7.VIEW_LIST_CAIRO="list_view_cairo",d7.VISIBILITY=
"eye",d7.VISIBILITY_OFF="eye_off",d7.VOLUME_MUTE="volume_off",d7.VOLUME_UP="volume_on",d7.WALLPAPER="image",d7.WARNING="alert_triangle",d7.WATCH_HISTORY="arrow_time",d7.WATCH_HISTORY_CAIRO="arrow_time_cairo",d7.WATCH_LATER="clock",d7.WATCH_LATER_CAIRO="clock_cairo",d7.WATCH_RELATED_MIX="youtube_mix",d7.WHAT_TO_WATCH="home",d7.YOUTUBE_MUSIC_MONOCHROME="youtube_music",d7.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",d7.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",d7.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",d7.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",d7.YT_OUTLINE_MUSIC_24="music",d7);var WJ={},Xso=(WJ.ACCESS_TIME="clock",WJ.ACCOUNT_BOX="person_square",WJ.ACCOUNT_BOX_CAIRO="person_square",WJ.ACCOUNT_CIRCLE="person_circle",WJ.ACCOUNT_CIRCLE_CAIRO="person_circle",WJ.ACCOUNT_LINKED="account_link",WJ.ACCOUNT_UNLINKED="account_link",WJ.ADD_CIRCLE="add_circle",WJ.ADD_FRIEND="person_child",WJ.ADD_TO_LIBRARY="bookmark",WJ.ADD_TO_PLAYLIST="add",WJ.ADD_TO_QUEUE_TAIL="queue",WJ.ADD_TO_REMOTE_QUEUE="playlist_audio",WJ.ADD_TO_WATCH_LATER="clock",WJ.ADD_VIDEO_LINK="film_strip_add",WJ.ADMIN_PANEL_SETTINGS=
"gear",WJ.ALERT_WARN_RED="alert_triangle",WJ.ALIGN_LEFT="text_align_left",WJ.ARROWS_ALERT="arrow_split_alert",WJ.ARROW_BACK="arrow_left",WJ.ARROW_CIRCLE="arrow_counterclockwise",WJ.ARROW_CIRCLE_PLAY="replay",WJ.ARROW_CIRCLE_RIGHT="arrow_clockwise",WJ.ARROW_DIAGONAL="arrow_up_left",WJ.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",WJ.ARROW_DROP_DOWN="triangle_down",WJ.ARROW_DROP_UP="triangle_up",WJ.ARROW_FORWARD="arrow_right",WJ.ARROW_PAUSE="pause_history",WJ.ARROW_UNDO="undo",WJ.ARTICLE="text_page",WJ.ARTICLE_ALERT=
"text_page_alert",WJ.ARTICLE_CHECK="text_page_check",WJ.ARTICLE_CLARIFY="text_page_info",WJ.AUDIOTRACK="audio",WJ.AUDIO_BADGE="audio_badge",WJ.AUDIO_SURROUND="surround_sound",WJ.AVATAR_ANONYMOUS="person_circle",WJ.AVATAR_LOGGED_OUT="person_circle",WJ.BACK="arrow_left",WJ.BAR_CHART="chart_bar",WJ.BAR_CIRCLE="minus_circle",WJ.BAR_HORIZONTAL="minus",WJ.BLOCK="circle_slash",WJ.BLOCK_USER="circle_slash",WJ.BOOKMARK_BORDER="bookmark",WJ.BOX_OPEN_CHECK="quiz",WJ.BOX_PENCIL="square_pencil",WJ.BREAKING_NEWS_ALT_1=
"text_page_alert",WJ.BROADCAST="podcast",WJ.BROADCAST_CAIRO="podcast",WJ.BUG_REPORT="bug",WJ.CAMERA_ALT="camera",WJ.CAMPAIGN="megaphone",WJ.CANCEL="x_circle",WJ.CAPTIONS="closed_captions",WJ.CAST_ICON="chromecast",WJ.CAST_OUTLINE="chromecast",WJ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",WJ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",WJ.CHAT="text_bubble",WJ.CHAT_BUBBLE="bubble",WJ.CHECK_BOX="check_square",WJ.CHECK_BOX_OUTLINE_BLANK="square",WJ.CHECK_CIRCLE_FILLED="check_circle",WJ.CHECK_CIRCLE_OUTLINE=
"check_circle",WJ.CHECK_CIRCLE_THICK="check_circle",WJ.CHECK_DOUBLE="check_done",WJ.CHECK_DOUBLE_OFF="check_done_slash",WJ.CHEVRON_LEFT="chevron_left",WJ.CHEVRON_RIGHT="chevron_right",WJ.CHEVRON_RIGHT_CAIRO="chevron_right",WJ.CIRCLES_OVERLAP="account_link",WJ.CLAPPERBOARD_CAIRO="clapperboard",WJ.CLARIFY="text_page_info",WJ.CLOCK_ARROWS="clock_split",WJ.CLOCK_ARROWS_ALERT="clock_split_alert",WJ.CLOSED_CAPTION="closed_captions",WJ.CLOSED_CAPTION_SELECTED="closed_captions",WJ.CLOSE="x",WJ.CLOUD_UPLOAD=
"cloud_arrow_up",WJ.COLLAPSE="chevron_up",WJ.COLLAPSE_CAIRO="chevron_up",WJ.COLLECTION="square3d_stack",WJ.COLOR_LENS="paint_palette",WJ.COMMENT="text_bubble",WJ.CONSENT_SHIELD="person_shield",WJ.CONTENT_CUT="scissors",WJ.CONTENT_CUT_CAIRO="scissors",WJ.COURSE="graduation_cap",WJ.COURSE_CAIRO="graduation_cap",WJ.CREATION_LIVE="live",WJ.CREATION_POST="square_pencil",WJ.CREATION_UPLOAD="video",WJ.CREATION_UPLOAD_RED="upload",WJ.CREATOR_ACADEMY="graduation_cap",WJ.CREATOR_STUDIO="youtube_studio",WJ.DARK_THEME=
"theme",WJ.DELETE="trash_can",WJ.DELETE_SWEEP="trash_can",WJ.DESKTOP="laptop",WJ.DISLIKE="thumb_down",WJ.DISLIKE_SELECTED="thumb_down",WJ.DISMISSAL="x",WJ.DISMISS_QUEUE="playlist_x",WJ.DOGFOOD="pawprint",WJ.DOLLAR_SIGN="dollar_sign_circle",WJ.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",WJ.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",WJ.DOWN_ARROW="arrow_down",WJ.DO_NOT_DISTURB="circle_slash",WJ.DRAFT="document",WJ.EARTH="globe",WJ.EDIT="pencil",WJ.EMOJI="face_very_happy",WJ.EMOJI_FLAGS="flag",WJ.EMOJI_OBJECTS=
"lightbulb",WJ.EMOJI_PEOPLE="face_very_happy",WJ.EMOJI_RECENT="clock",WJ.EMPTY_HEART="heart",WJ.EMPTY_LIKE="thumb_up",WJ.ERROR_BLACK="alert_circle",WJ.ERROR_OUTLINE="alert_circle",WJ.ERROR_WHITE="alert_circle",WJ.EXIT_APP="arrow_in",WJ.EXIT_TO_APP="arrow_in",WJ.EXPAND="chevron_down",WJ.EXPAND_ALL="chevron_expand",WJ.EXPAND_CAIRO="chevron_down",WJ.EXPAND_LESS="chevron_up",WJ.EXPAND_MORE="chevron_down",WJ.EXPLORE="compass",WJ.EXPLORE_DESTINATION="compass",WJ.EXTERNAL_LINK="arrow_up_right",WJ.EYE_OFF=
"eye_slash",WJ.FAB_UPLOAD="upload",WJ.FACE_HAPPY_OUTLINE="face_happy",WJ.FACE_MEH="face_neutral",WJ.FACT_CHECK="text_page_check",WJ.FASHION_LOGO="fashion",WJ.FASHION_LOGO_CAIRO="fashion",WJ.FAVORITE="thumb_up",WJ.FEEDBACK="alert_bubble",WJ.FEEDBACK_CAIRO="alert_bubble",WJ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",WJ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",WJ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",WJ.FLAG_CAIRO="flag",WJ.FLASH_OFF="flash_slash",WJ.FLASH_ON="flash",WJ.FULL_HEART="heart",WJ.GAMING_LOGO=
"gaming",WJ.GAMING_LOGO_CAIRO="gaming",WJ.GO_TO_PAGE="arrow_right",WJ.GROUPS="person3",WJ.HAND_SWIPE_LEFT="gesture_swipe_left",WJ.HAND_SWIPE_RIGHT="gesture_swipe_right",WJ.HAPPY="face_happy",WJ.HEALTH_AND_SAFETY="shield_health",WJ.HEART_BOX="heart_cube",WJ.HELP="help_circle",WJ.HELP_CAIRO="help_circle",WJ.HELP_OUTLINE="help_circle",WJ.HIDE="circle_slash",WJ.INCOGNITO_CAIRO="incognito",WJ.INFINITY_ICON="infinity",WJ.INFO="info_circle",WJ.INFO_OUTLINE="info_circle",WJ.INSERT_CHART_OUTLINED="chart_bar_square",
WJ.INSERT_PHOTO="image",WJ.KEEP="pin",WJ.KEEP_OFF="pin_slash",WJ.KEYBOARD="keyboard",WJ.KEYBOARD_ARROW_DOWN="chevron_down",WJ.KEYBOARD_ARROW_UP="chevron_up",WJ.KIDS_BLOCK="circle_slash",WJ.LANGUAGE="globe",WJ.LAUNCH="arrow_up_right",WJ.LEARNING="lightbulb",WJ.LEARNING_CAIRO="lightbulb",WJ.LIBRARY_ADD="bookmark",WJ.LIBRARY_IMAGE="image_stack",WJ.LIBRARY_MUSIC="audio_square_stack",WJ.LIBRARY_OUTLINE="play_square_stack",WJ.LIBRARY_REMOVE="bookmark",WJ.LIBRARY_SAVED="check_square_stack",WJ.LIKES_PLAYLIST=
"thumb_up",WJ.LIKES_PLAYLIST_CAIRO="thumb_up",WJ.LIKE="thumb_up",WJ.LIKE_SELECTED="thumb_up",WJ.LIST_QUEUE="queue",WJ.LIVE_CAIRO="live",WJ.LIVE_UNLISTED="link",WJ.LOCATION_ON="location_pin",WJ.LOCATION_PIN="location_pin",WJ.LOCATION_POINT="location_pin",WJ.LOOP="repeat",WJ.LOOP_ACTIVE="repeat",WJ.LOOP_ONE="repeat1",WJ.LOOP_ONE_ACTIVE="repeat1",WJ.MEET="google_meet",WJ.MEH="face_neutral",WJ.MEMBERSHIPS="memberships",WJ.MEMBERS_ONLY_MODE_OFF="text_bubble",WJ.MENU_FILTER="filter",WJ.MESSAGE="text_bubble",
WJ.MESSAGE_BUBBLE_GEAR="bubble_gear",WJ.MESSAGE_BUBBLE_LEFT="text_bubble",WJ.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",WJ.MESSAGE_BUBBLE_OVERLAP="bubble_stack",WJ.MESSAGE_BUBBLE_QUESTION="help_bubble",WJ.MICROPHONE_ON="mic",WJ.MONETIZATION_ON="dollar_sign_circle",WJ.MONEY_FILL="dollar_sign_rectangle",WJ.MONEY_FILL_JPY="yen_sign_rectangle",WJ.MONEY_HAND="dollar_sign_circle_hand",WJ.MONEY_HEART="dollar_sign_heart",WJ.MOON_Z="sleep_timer",WJ.MORE_HORIZ="overflow_horizontal",WJ.MORE_VERT="overflow_vertical",
WJ.MUSIC="audio",WJ.MUSIC_CAIRO="audio",WJ.MUSIC_EXPLICIT_BADGE="explicit",WJ.MUSIC_NEW_RELEASE="audio_badge",WJ.MUSIC_NOTE_SYMBOL="audio",WJ.MUSIC_SCISSORS="audio_scissors",WJ.MUSIC_SHUFFLE="shuffle",WJ.MY_CHANNEL="person_circle",WJ.MY_LOCATION="location_pin",WJ.MY_VIDEOS="video",WJ.MY_VIDEOS_CAIRO="video",WJ.NEWS_CAIRO="news",WJ.NEWS_STORY="news",WJ.NEXT="chevron_right",WJ.NOTE_ADD="bubble_pencil",WJ.NOTIFICATIONS="bell",WJ.NOTIFICATIONS_ACTIVE="bell_waves",WJ.NOTIFICATIONS_CAIRO="bell",WJ.NOTIFICATIONS_DONE_CHECKMARK=
"check",WJ.NOTIFICATIONS_INBOX="bell",WJ.NOTIFICATIONS_NONE="bell",WJ.NOTIFICATIONS_OFF="bell_slash",WJ.NOT_INTERESTED="circle_slash",WJ.OFFICIAL_ARTIST_BADGE="audio",WJ.OFFLINE_CLOUD="cloud_slash",WJ.OFFLINE_DOWNLOAD="download",WJ.OFFLINE_DOWNLOAD_CAIRO="download",WJ.OFFLINE_PAUSE="pause",WJ.OPEN_IN_NEW="arrow_up_right",WJ.OUTLINE_ADJUST="adjust",WJ.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",WJ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",WJ.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",WJ.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",WJ.OUTLINE_BAG="bag",WJ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",WJ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",WJ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",WJ.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",WJ.PAID="dollar_sign_circle",WJ.PAUSE_OUTLINED="pause",WJ.PAYMENT="credit_card",WJ.PEOPLE="person_child",WJ.PEOPLE_2="person2_rectangle",WJ.PEOPLE_GROUP="person3",WJ.PEOPLE_NOTE="bubble_asterisk",WJ.PERSON_2="person2",WJ.PERSON_ACCOUNT="person_square_stack",WJ.PERSON_MINUS=
"person_x",WJ.PERSON_MUSIC="person_audio",WJ.PERSON_RADAR="person_waves",WJ.PERSON_RADAR_FILLED="person_waves",WJ.PERSON_SETTING="person_gear",WJ.PHONE="phone",WJ.PHONE_DOWNLOAD="mobile_arrow_down",WJ.PICTURE_IN_PICTURE="picture_in_picture",WJ.PLAYABLES_LOGO="playables",WJ.PLAYABLES_LOGO_CAIRO="playables",WJ.PLAYLISTS="playlist",WJ.PLAYLISTS_CAIRO="playlist",WJ.PLAYLIST_ADD_CHECK="bookmark",WJ.PLAY_ALL="play",WJ.PLAY_ARROW="play",WJ.PLAY_ARROW_CIRCLE="play_circle",WJ.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
WJ.PLAY_CIRCLE="play_circle",WJ.PLAY_OUTLINED="play_circle",WJ.PODCAST_ADD="podcast_add",WJ.PODCAST_CHECK="podcast_check",WJ.PRIVACY_INFO="shield_x",WJ.PRIVACY_PRIVATE="lock",WJ.PRIVACY_PUBLIC="globe",WJ.PRIVACY_UNLISTED="link",WJ.PROMOTE="megaphone",WJ.PURCHASES="price_tag",WJ.PURCHASE_SUPER_CHAT="super_chat",WJ.PURCHASE_SUPER_STICKER="super_sticker",WJ.QUESTION_ANSWER="help_bubble",WJ.QUESTION_CIRCLE="help_circle",WJ.QUEUE_PLAY_LAST="queue_last",WJ.QUEUE_PLAY_NEXT="playlist",WJ.QUOTATION_MARK="quote",
WJ.RADAR_LIVE="live",WJ.REMOVE="minus_circle",WJ.REMOVE_CIRCLE="minus_circle",WJ.REMOVE_CIRCLE_OUTLINE="minus_circle",WJ.REMOVE_FROM_HISTORY="minus_circle",WJ.REMOVE_FROM_PLAYLIST="minus_circle",WJ.REPLAY="arrow_counterclockwise",WJ.REPLAY_10="skip10_back",WJ.REPLAY_ARROW="replay",WJ.REPORT_PROBLEM="alert_triangle",WJ.RSS_OFF="rss_slash",WJ.SAD="face_sad",WJ.SAVE_PLAYLIST="bookmark",WJ.SCHEDULE="clock",WJ.SCHOOL="graduation_cap",WJ.SCREEN_DEFAULT="player_default",WJ.SCREEN_FULLSCREEN="player_full_enter",
WJ.SCREEN_LIGHT="ambient_mode",WJ.SCREEN_ROTATION="rotate_portrait",WJ.SCREEN_SWITCH="player_switch",WJ.SEARCH_CAIRO="search",WJ.SEARCH_HISTORY="history",WJ.SELL="price_tag",WJ.SETTINGS="gear",WJ.SETTINGS_CAIRO="gear",WJ.SETTINGS_LIGHT="gear",WJ.SETTINGS_MATERIAL="gear",WJ.SETTINGS_REMOTE="remote_waves",WJ.SHARE="share",WJ.SHARE_ARROW="share",WJ.SHARE_CAIRO="share",WJ.SHIELD="shield_x",WJ.SHIELD_OFF="shield_slash",WJ.SHIELD_WITH_AVATAR="person_shield",WJ.SHOPPING_BAG="bag",WJ.SHOPPING_BAG_CAIRO="bag",
WJ.SHOPPING_CART="cart",WJ.SHORTS_COMMENT="text_bubble",WJ.SHORTS_DISLIKE="thumb_down",WJ.SHORTS_LIKE="thumb_up",WJ.SHORTS_SHARE="share",WJ.SKIP_FORWARD_30="skip30_forward",WJ.SLASH_CIRCLE_RIGHT="circle_slash",WJ.SLOW_MODE_OFF="text_bubble",WJ.SOCIAL="person_child",WJ.SPARKLE="sparkles",WJ.SPARK_IMAGE="image_spark",WJ.SPARK_RADAR="spark_waves",WJ.SPARK_VIDEO="video_spark",WJ.SPEAKER_GROUP="speaker_stack",WJ.SPEAKER_OFF="speaker_slash",WJ.SPEED_1X="n1x",WJ.SPEED_1_POINT_2X="n1point2x",WJ.SPEED_1_POINT_5X=
"n1point5x",WJ.SPEED_1_POINT_8X="n1point8x",WJ.SPEED_2X="n2x",WJ.SPONSORSHIP_STAR="memberships",WJ.SPORTS="basketball",WJ.SPOTLIGHT="spotlight",WJ.STAFF_PICK="spotlight",WJ.START_DVR="add",WJ.STAR_BORDER="star",WJ.STAR_HALF="star_half_filled",WJ.STAR_SHOOTING="hype",WJ.STICKER="sticker",WJ.STICKER_EMOTICON="face_happy",WJ.STOP_DVR="stop",WJ.SUBSCRIBE="youtube",WJ.SUBSCRIBE_PLUS="add",WJ.SUBSCRIPTION_MANAGER="gear",WJ.SUPERSTAR="super_star",WJ.SUPERVISOR_ACCOUNT="person_child",WJ.SWAP_HORIZ="arrow_swap_horizontal",
WJ.SWITCH_ACCOUNTS="person_square_stack",WJ.TAB_ACCOUNT="person",WJ.TAB_ACTIVITY="bell",WJ.TAB_BOOKMARK="bookmark",WJ.TAB_EXPLORE="compass",WJ.TAB_HOME="home",WJ.TAB_HOME_CAIRO="home",WJ.TAB_INBOX="mail",WJ.TAB_LIKED="thumb_up",WJ.TAB_MUSIC_PREMIUM="youtube_music",WJ.TAB_SHORTS="shorts",WJ.TAB_SHORTS_CAIRO="shorts",WJ.TAB_SUBSCRIPTIONS="subscriptions",WJ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",WJ.TAB_TRENDING="trending",WJ.TARGET="target",WJ.TARGET_ADD="target_add",WJ.TEMPLATE_ADD="template_add",
WJ.TEXT="font",WJ.TIMER="stopwatch",WJ.TRENDING_CAIRO="trending",WJ.TRENDING_UP="arrow_trend_up",WJ.TROPHY_CAIRO="trophy",WJ.TROPHY_CELEBRATIONS="fireworks",WJ.TROPHY_STAR="star_trophy",WJ.TUNE="adjust",WJ.TV_OFF="tv_slash",WJ.UNBLOCK_USER="minus_circle",WJ.UNFAVORITE="thumb_down",WJ.UNLIMITED="youtube",WJ.UNPLUGGED_LIVE_GUIDE="live",WJ.UNPLUGGED_SPORTS="eye_slash",WJ.UPLOADS="play_square_stack",WJ.UP_ARROW="arrow_up",WJ.VERTICAL_ALIGN_BOTTOM="chevron_down_end",WJ.VERTICAL_ALIGN_TOP="chevron_up_end",
WJ.VERY_HAPPY="face_very_happy",WJ.VERY_SAD="face_very_sad",WJ.VIDEOS="play_circle",WJ.VIDEO_CALL="video_camera_add",WJ.VIDEO_LIBRARY_WHITE="play_square_stack",WJ.VIDEO_QUALITY_4K="n4k",WJ.VIDEO_QUALITY_8K="n8k",WJ.VIDEO_YOUTUBE="youtube",WJ.VIEW_LIST_CAIRO="view_list",WJ.VIEW_MODULE="view_column3_row2",WJ.VISIBILITY="eye",WJ.VISIBILITY_OFF="eye_slash",WJ.VOLUME_DOWN="volume_min",WJ.VOLUME_MUTE="volume_mute",WJ.VOLUME_OFF="volume_mute",WJ.VOLUME_STABLE="stable_volume",WJ.VOLUME_UP="volume_max",WJ.WALLPAPER=
"image",WJ.WARNING="alert_triangle",WJ.WATCH_HISTORY="history",WJ.WATCH_HISTORY_CAIRO="history",WJ.WATCH_LATER="clock",WJ.WATCH_LATER_CAIRO="clock",WJ.WATCH_RELATED_MIX="mix",WJ.WHAT_TO_WATCH="home",WJ.YOUTUBE_LINKED_TV="tv_mobile",WJ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",WJ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",WJ.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",WJ.YOUTUBE_SHORTS_ARROW_UP="arrow_up",WJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",WJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"shorts_empty",WJ.YOUTUBE_SHORTS_OUTLINE_24="shorts",WJ);var I$S={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,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,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,
7,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,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,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,9,12],[0,9,16],[0,9,24],[1,9,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,9,24],[1,9,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,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,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,8,18],[1,8,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,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,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,8,24],[1,8,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,3,24],[1,3,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,9,24],[1,9,16],[1,9,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,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,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,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,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,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,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,6,24],[1,6,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,3,24],[1,3,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:[[1,3,24]],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,17,13],[0,17,24],[1,17,16],[1,17,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,2,16],[1,2,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,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,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,7,18],[1,7,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]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,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,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,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,10,24],[1,10,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_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,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,7,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,9,24],[1,9,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,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,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,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,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,1,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,7,12],[0,7,24],
[1,7,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,11,24],[1,11,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,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,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,5,24]],skip_previous:[[0,5,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,8,12],[0,8,16],[0,8,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,3,12],[0,3,16],[0,3,18],[0,3,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,3,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,10,24],[1,10,18],[1,10,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,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,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,2,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,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,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,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,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,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,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 a$o={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],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,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,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,1,24]],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,7,24,!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,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,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,1,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,1,24]],audio:[[0,9,24],[1,9,24]],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]],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_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],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,9,24],[1,9,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,10,24]],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,8,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_right:[[1,6,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,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],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,9,24],[1,9,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,1,24]],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,4,24],[1,4,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:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,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,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],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,6,24],[1,6,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,3,24],[1,3,24]],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,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,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_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]],heart:[[0,17,24],[1,17,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,2,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,9,24]],info_circle_spark:[[1,1,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,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],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,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,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_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]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,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,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,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,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,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,1,24],[1,1,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,1,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,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,
3,24],[1,3,24]],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,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,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,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,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,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,12,24],[1,12,24]],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:[[1,10,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,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,
2,24],[1,2,24]],skip10_back:[[1,1,24]],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,1,24]],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,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,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,1,24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,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,3,24],[1,3,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,3,24],[1,3,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,10,24],[1,10,24]],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,2,24],[1,2,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,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,3,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,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],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:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,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,2,24]],waveform_spark:[[1,2,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,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 wsk={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",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"},eE=function(W){this.iconUrlProvider=W};
eE.prototype.resolveIcon=function(W,e){var t=wsk[W.iconName.toUpperCase()];t&&(W.iconName=t);var b=W.iconName;b=b.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(b,!!t)||b.toLowerCase()});if(_.S("enable_web_delhi_icons")||t){var m;return g8G(a$o,W,((m=this.iconUrlProvider)==null?void 0:m.getYtStandardUrl)||xbK,e)}var q;return g8G(I$S,W,((q=this.iconUrlProvider)==null?void 0:q.getYtStandardUrl)||JgL,e)};
eE.prototype.mapIconTypeToStandardName=function(W,e){return _.S("enable_web_delhi_icons")||e?Xso[W.toUpperCase()]:FCo[W.toUpperCase()]};
eE[dU]=[_.Wi(qGP)];var ucy=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),cfy=function(W){this.urlProvider=this.iconUrlProvider=W};
_.Z(cfy,eE);
cfy.prototype.resolveIcon=function(W,e){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var t=Object.assign({},W);W.iconName==="menu"&&(_.S("enable_web_delhi_icons")||(t.iconName="bars_3"),t.iconStyle="youtube_outline");W.iconSetName==="socialNetworksRound"&&(W.iconName==="mail"&&(t.iconName="email"),W.iconName==="embed"&&(t.iconSize=60));W.iconName==="more"&&(t.iconName="overflow_horizontal");
W.iconName==="fullscreen"&&(t.iconName="screen_full");W.iconName==="premium_standalone"&&(t.iconName="premium_standalone_cairo");_.S("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(t.iconName="circles_overlap_check",t.iconStyle="youtube_fill");_.S("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(t.iconName="circles_overlap",t.iconStyle="youtube_outline");ucy.has(W.iconName)&&(t.iconStyle="youtube_fill");_.S("enable_web_delhi_icons")&&W.iconName==="playlist_add"&&
(t.iconName="bookmark");W=Object.assign({},t,{iconName:(eE.prototype.mapIconTypeToStandardName.call(this,t.iconName)||t.iconName).toLowerCase()});var b;return(W=g8G(maP,W,((b=this.urlProvider)==null?void 0:b.getUrl)||OZK,e))?W:eE.prototype.resolveIcon.call(this,t,e)};
cfy[dU]=[_.Wi(qGP)];_.vmk=1;var tL=function(){};
_.Z(tL,se);tL.prototype.resolveCommand=function(W){var e,t;return _.F(function(b){e=_.l(W,$w8);if(!e)return b.return();t=Number(e.enableDelayedPacfLoggingTvMs);if(isNaN(t)){var m=Iu();H9y(m,e,0)}else H9y(Iu(),e,t);_.u8(b)})};_.br=function(){};
_.Z(_.br,se);
_.br.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u;return _.F(function(c){b=_.l(W,kLy);q=(m=e.form)==null?void 0:m.element;X=(Q=q)==null?void 0:Q.closest("ytd-enforcement-message-view-model");if(!b||!X)return c.return();t.allowAdsAction||(I=b.fundingChoiceInstructionPageUrl,t.allowAdsAction=new N6S(window,_.J7(I)));var v=t.allowAdsAction;v.wallElement=X;v.allowAdsPopup.style.setProperty("display","flex","important");var D=v.scrollManager;D.originalBodyOverflow=D.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow;D.JSC$8045_domHelper.JSC$7372_document_.body.style.overflow=
"hidden";v.wallElement.style.setProperty("display","none","important");XKv(v.accessibilityManager,v.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((u=t.allowAdsAction.allowAdsPopup)&&u instanceof HTMLElement)for(v=_.R(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),D=v.next();!D.done;D=v.next()){var B=_.R(D.value);D=B.next().value;B=B.next().value;u.style.setProperty(D,B)}_.u8(c)})};
_.br.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var mP=function(){};
_.Z(mP,se);mP.prototype.resolveCommand=function(W){var e;return _.F(function(t){e=_.l(W,M3h);if(!e)return t.return();kNK(W);_.u8(t)})};var rY=function(W){this.JSC$15123_commandHandler=W};
_.Z(rY,se);
rY.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1){t=_.l(W,Fme);if((b=t)==null||!b.text||!navigator.clipboard)return c.return();_.Qh(c,2);return _.a(c,navigator.clipboard.writeText(t.text),4)}if(c.nextAddress!=2){if(!t.successActions||t.successActions.length===0)return c.return();m=_.R(t.successActions);for(q=m.next();!q.done;q=m.next())Q=q.value,e.JSC$15123_commandHandler.resolveCommand(Q);return _.Hi(c,0)}_.w9(c);if(!t.failureActions||t.failureActions.length===
0)return c.return();X=_.R(t.failureActions);for(I=X.next();!I.done;I=X.next())u=I.value,e.JSC$15123_commandHandler.resolveCommand(u);_.u8(c)})};
rY[dU]=[_.tQ];var qy=function(W){this.JSC$15127_commandHandler=W};
_.Z(qy,se);
qy.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D;return _.F(function(B){switch(B.nextAddress){case 1:b=_.l(W,ixB);if(!b)return B.return();_.Qh(B,2);if(!b.imageBytes&&!b.imageUrl)throw Error("xi");if(!b.imageUrl){if(b.imageBytes){q=b.imageBytes;Q=q.replace(/-/g,"+").replace(/_/g,"/");var k=h3K(Q);m=_.Z1(k)}B.jumpTo(4);break}return _.a(B,fetch(b.imageUrl),5);case 5:return X=B.yieldResult,_.a(B,X.blob(),6);case 6:I=B.yieldResult,m=_.Z1(I);case 4:v=(u=e)==null?void 0:(c=u.form)==
null?void 0:c.element;D=document.createElement("a");yE(D,m);v.appendChild(D);D.download="";D.click();v.removeChild(D);URL.revokeObjectURL(_.v7(m));b.successCommand&&t.JSC$15127_commandHandler.resolveCommand(b.successCommand);_.Hi(B,0);break;case 2:_.w9(B),b.errorCommand&&t.JSC$15127_commandHandler.resolveCommand(b.errorCommand),_.u8(B)}})};
qy[dU]=[_.tQ];var Rk=function(W){this.store=W};
_.Z(Rk,se);Rk.prototype.resolveCommand=function(W){var e=this,t,b,m;return _.F(function(q){b=(t=_.l(W,_.luD))==null?void 0:t.entityBatchUpdate;if(!b)return q.jumpTo(0);m=Object.assign({},b,{mutations:[].concat(_.kP(b.mutations||[]))});return _.a(q,_.vm(m,e.store),0)})};var GuU=function(W){this.JSC$15134_commandHandler=W;this.feedbackDialogMap=new Map};
GuU.prototype.openDialog=function(W,e){(W=this.feedbackDialogMap.get(W))&&this.JSC$15134_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},e)};
GuU[dU]=[_.tQ];var QM=new _.W_("FEEDBACK_CONTROLLER_TOKEN");var Ff=new _.W_("APP_STORE_TOKEN");var Xf=function(W,e){this.store=W;this.controller=e};
_.Z(Xf,se);Xf.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U;return _.F(function(V){if(V.nextAddress==1){b=_.l(W,_.Ol);if(q=(m=b)==null?void 0:m.contentId)for(X=_.R(((Q=b)==null?void 0:Q.actions)||[]),I=X.next();!I.done;I=X.next())u=I.value,DaB(t,u,q);D=(c=e)==null?void 0:(v=c.form)==null?void 0:v.element;return _.a(V,_.X5(D,[W]).catch(function(){}),2)}B=V.yieldResult;
((k=B)==null?0:(n=k.data)==null?0:(f=n.feedbackResponses)==null?0:f.length)&&(K=(M=B.data.feedbackResponses[0])==null?void 0:M.followUpDialog)&&q&&(U=t.controller)!=null&&U.feedbackDialogMap.set(q,K);_.u8(V)})};
var DaB=function(W,e,t){var b=_.l(e,_.wy);if(b){b=_.R(b.commands||[]);for(var m=b.next();!m.done;m=b.next())DaB(W,m.value,t)}_.l(e,_.$i)&&W.store.dispatch(_.SX("commandEntity",M9S(t),{key:t,command:e}));_.l(e,lnr)&&W.store.dispatch(_.SX("commandEntity",M9S(t),{key:t,command:e}))};
Xf[dU]=[Ff,QM];var Ik=function(W){this.controller=W};
_.Z(Ik,se);Ik.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q;return _.F(function(X){b=_.l(W,_.hC);q=(m=b)==null?void 0:m.targetId;if(((Q=b)==null?void 0:Q.signal)!=="TELL_US_WHY"||!q)return X.return();t.controller.openDialog(q,e);_.u8(X)})};
Ik[dU]=[QM];var ak=function(W){this.store=W};
_.Z(ak,se);ak.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u;return _.F(function(c){b=_.l(W,FQS);q=(m=b)==null?void 0:m.contentId;I=(Q=e)==null?void 0:(X=Q.form)==null?void 0:X.element;u=_.X5(I,[W]);q&&t.undo(q);return _.a(c,u,0)})};
ak.prototype.undo=function(W){this.store.dispatch(_.SX("commandEntity",M9S(W),{key:W,command:void 0}))};
ak[dU]=[Ff];var wY=function(W){this.JSC$15149_commandHandler=W};
_.Z(wY,se);wY.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u;return _.F(function(c){t=_.l(W,sth);b=t.flowStateKey;m=t.validationFailureCommand;q=t.submitValidFormCommand;Q=zF(_.r0,[b||""]);X=_.l(Q,Hdh);((I=X)==null?0:I.isValid)&&q&&e.JSC$15149_commandHandler.resolveCommand(q);((u=X)==null?0:u.isValid)||!m||e.JSC$15149_commandHandler.resolveCommand(m);_.u8(c)})};
wY[dU]=[_.tQ];var ur=function(W){this.innertubeTransportService=W};
_.Z(ur,se);ur.prototype.resolveCommand=function(W,e){var t=this,b;return _.F(function(m){return _.a(m,_.z2(t.innertubeTransportService,W,(b=e)==null?void 0:b.form).then(function(q){var Q,X;e==null||(Q=e.commandController)==null||(X=Q.onSuccess)==null||X.call(Q,W,q)},function(q){var Q,X;
e==null||(Q=e.commandController)==null||(X=Q.onServerError)==null||X.call(Q,W,q)}),0)})};
ur[dU]=[_.J8];var cJ=function(){};
_.Z(cJ,se);cJ.prototype.resolveCommand=function(W){var e,t,b,m;return _.F(function(q){if(e=_.l(W,_.EiU)){if(t=e.gtmId)b=_.Ot("GL",""),_.CT(t,b);(m=e.gtmData)&&_.nT(m)}_.u8(q)})};var vJ=function(W,e){this.innertubeTransportService=W;this.JSC$15160_actionRouter=e};
_.Z(vJ,se);vJ.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){t=_.l(W,YlS);if(!t)return m.return();b=t.command;if(!b)return m.return();e.JSC$15160_actionRouter.triggerAction("yt-insert-rich-section-action",t);return _.a(m,_.z2(e.innertubeTransportService,b,{disableCache:!0}),0)})};
vJ[dU]=[_.J8,Nd];KsS.bind(null,hM);var SGD=KsS.bind(null,mCo);Vns.bind(null,hM);var B_y=Vns.bind(null,mCo);Yk2.bind(null,hM);var omN=Yk2.bind(null,mCo);var Gd=function(){};
_.Z(Gd,se);
Gd.prototype.resolveCommand=function(W){var e,t,b,m,q,Q,X,I,u,c;return _.F(function(v){e=_.l(W,lIZ);if(!e)return v.return();b=((t=e.operations)==null?void 0:t.operations)||[];m=_.R(b);for(q=m.next();!q.done;q=m.next())if(Q=q.value,Q.insertItemSectionContent){var D=Q.insertItemSectionContent,B=D.contents||[];D.insertByPositionInSection?SGD(D.insertByPositionInSection.sectionTargetId,B,D.insertByPositionInSection.position):D.insertByRelativePositionInSection&&D.insertByRelativePositionInSection.sectionTargetId&&D.insertByRelativePositionInSection.itemTargetId&&
B_y(D.insertByRelativePositionInSection.sectionTargetId,D.insertByRelativePositionInSection.itemTargetId,B,D.insertByRelativePositionInSection.relativePosition)}else Q.replaceSection?(D=Q.replaceSection,B={},D.replaceByTargetId?B=D.replaceByTargetId:D.replaceByGroupId&&(B={targetId:D.replaceByGroupId.groupId,newContent:D.replaceByGroupId.newContent,undoKey:""}),B.newContent&&Rtb(B.targetId,{continuationItems:[B.newContent]})):Q.removeItem?(D=Q.removeItem,D.removeByTargetId&&D.sectionTargetId&&omN(D.sectionTargetId,
D.removeByTargetId.targetIds||[])):Q.removeSection&&(Q.removeSection.removeByTargetId?(X=void 0,l$P(((X=Q.removeSection)==null?void 0:X.removeByTargetId.targetIds)||[])):Q.removeSection.removeByGroupId&&(I=void 0,l$P(((I=Q.removeSection)==null?void 0:I.removeByGroupId.groupIds)||[])));c=((u=e.operations)==null?void 0:u.scrollConfig)||{};Zmb(c);_.u8(v)})};
var l$P=function(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next())Rtb(e.value,{continuationItems:[]})},Zmb=function(W){if(W.scrollToItem){var e=W.scrollToItem.item||{},t=e.itemTargetId;
e=e.sectionTargetId;if(t&&e){var b=document.querySelector("[data-target-id="+e+"]"),m=b==null?void 0:b.querySelector("[data-target-id="+t+"]");b&&m&&setTimeout(function(){var q=m.offsetTop-b.offsetTop,Q;if(((Q=W.scrollToItem)==null?void 0:Q.scrollPosition)==="SCROLL_POSITION_CENTER")q-=b.offsetHeight/2,q+=m.offsetHeight/2;else{var X;((X=W.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_END"&&(q-=b.offsetHeight,q+=m.offsetHeight)}b.scroll({top:q,behavior:"smooth"})},100)}}};var Dv=new _.W_("CLIENT_NAME_TOKEN");var $aB=new _.W_("DEFAULT_STORE_EXPIRATION_TOKEN");var B4G=new _.W_("CLIENT_LOCATION_SERVICE_TOKEN");var SE=function(W,e,t){this.clientName=W||_.Ot("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=e||_.fB.getInstance();this.JSC$15188_commandHandler=t||_.uL.instance};
_.Z(SE,se);SE.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){b=(t=_.l(W,nry))==null?void 0:t.onComplete;e.clientLocationService.clearLocationPlayabilityToken(e.clientName);b&&e.JSC$15188_commandHandler.resolveCommand(b);_.u8(m)})};
SE[dU]=[Dv,B4G,_.tQ];var BJ=function(W){this.innertubeTransportService=W};
_.Z(BJ,se);BJ.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q;return _.F(function(X){q=(b=e)==null?void 0:(m=b.form)==null?void 0:m.element;return _.a(X,_.z2(t.innertubeTransportService,W,(Q=e)==null?void 0:Q.form).then(function(I){TYz(q,new CustomEvent("yt-service-request-completed"),{data:I},_.Ot("openPopupConfig"))}),0)})};
BJ[dU]=[_.J8];var ok=function(){};
_.Z(ok,se);ok.prototype.resolveCommand=function(W){var e,t;return _.F(function(b){e=_.l(W,idr);t=document.querySelector("mini-app-container-view-model");if(!e||!t)return b.return();e.isPlaying?t.dispatchEvent(new Event("play")):t.dispatchEvent(new Event("pause"));_.u8(b)})};var lr=function(){};
_.Z(lr,se);lr.prototype.resolveCommand=function(W){var e,t,b,m,q,Q,X;return _.F(function(I){e=_.l(W,VOB);if((t=e)==null||!t.paramKeys)return I.return();b=e.paramKeys;m=_.Ya(window.location.href);q=_.R(b);for(Q=q.next();!Q.done;Q=q.next())X=Q.value,m.JSC$8077_queryData_.remove(X);window.history.replaceState(window.history.state,document.title,m.toString());_.u8(I)})};var kuh=function(){this.dropdownMap=new Map};_.psB=new _.W_("DROPDOWN_CONTROLLER_TOKEN");var Zv=function(W){this.controller=W};
_.Z(Zv,se);Zv.prototype.resolveCommand=function(W){var e=this,t,b,m,q;return _.F(function(Q){t=_.l(W,ZfS);if(!t)return Q.return();b=t;m=b.dropdownId;q=b.selectedOptionIndex;if(m===void 0||q===void 0)return Q.return();var X=e.controller.dropdownMap.get(m);X&&X(q);_.u8(Q)})};
Zv[dU]=[_.psB];var $k=function(W){this.controller=W};
_.Z($k,se);$k.prototype.resolveCommand=function(W){var e=this,t;return _.F(function(b){return(t=_.l(W,srv))?_.a(b,e.controller.closeDialog(),0):b.return()})};
$k[dU]=[_.Z4];var kk=function(W){this.controller=W};
_.Z(kk,se);kk.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){t=_.l(W,oZb);if(!t)return m.return();var q,Q=t.panelIdentifier||((q=t.identifier)==null?void 0:q.tag);if(!Q)throw Error("yi");return(b=Q)?_.a(m,e.controller.hidePanel(b),0):m.jumpTo(0)})};
kk[dU]=[_.oL];var pS=function(W,e){this.innertubeTransportService=W;this.controller=e};
_.Z(pS,se);pS.prototype.resolveCommand=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return t=_.l(W,l6y),(b=t)!=null&&b.panelId?_.a(Q,e.controller.getReloadContinuation(t.panelId),2):Q.return();if(Q.nextAddress!=3)return(m=Q.yieldResult)?_.a(Q,_.z2(e.innertubeTransportService,W,{continuation:m}),3):Q.return();q=Q.yieldResult;return _.a(Q,e.controller.updatePanel(t.panelId,q.content,!1),0)})};
pS[dU]=[_.J8,_.oL];var yM=function(W,e,t){this.innertubeTransportService=W;this.JSC$15224_screenManager=e;this.JSC$15224_commandHandler=t};
_.Z(yM,se);
yM.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1){t=_.l(W,_.a5B);if(!t)return I.return();if(t.commands)for(b=_.R(t.commands),m=b.next();!m.done;m=b.next())q=m.value,e.JSC$15224_commandHandler.resolveCommand(q,{disableClickTracking:!0});Q=_.$5(W.clickTrackingParams);_.FW(e.JSC$15224_screenManager,21760,Q,{layer:7,parentLayer:0});return _.a(I,_.z2(e.innertubeTransportService,W),2)}X=I.yieldResult;if(!X)return I.return();e.JSC$15224_screenManager.graftServerVe(X.trackingParams,Q,
7);_.u8(I)})};
yM[dU]=[_.J8,_.ky,_.tQ];var jE=new _.W_("PANEL_LOADING_STRATEGY_TOKEN");var CS=function(W,e){this.controller=W;this.panelLoadingStrategy=e};
_.Z(CS,se);
CS.prototype.resolveCommand=function(W,e){var t=this,b,m,q;return _.F(function(Q){b=_.l(W,qWP);if((m=b)==null||!m.panelLoadingStrategy)return Q.return();q=function(X){var I,u,c,v,D,B,k,n,f;return _.F(function(M){u=_.l((I=X.dialogViewModel)==null?void 0:I.header,$dv);c={viewModel:X.dialogViewModel};v={};if(k=_.S("web_enable_dialog_header_label")?(D=u)==null?void 0:(B=D.headline)==null?void 0:B.content:void 0)v.ariaLabel=k;b.dismissOnBackgroundTap===!1&&(v.isModal=!0);return X.dialogViewModel?_.a(M,
t.controller.openDialog(c,(n=e)==null?void 0:(f=n.form)==null?void 0:f.element,v),0):M.return()})};
return _.a(Q,t.panelLoadingStrategy.execute({command:W,data:b.panelLoadingStrategy,renderFn:q,createScreenConfig:{layer:4}}),0)})};
CS[dU]=[_.Z4,jE];var nS=function(W,e,t){this.innertubeTransportService=W;this.controller=e;this.JSC$15244_screenManager=t};
_.Z(nS,se);
nS.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k;return _.F(function(n){switch(n.nextAddress){case 1:b=_.l(W,_.xB);if(!b)return n.return();var f,M=b.panelIdentifier||((f=b.identifier)==null?void 0:f.tag);if(!M)throw Error("yi");m=M;return _.a(n,t.controller.isVisible(m,!0),2);case 2:if((q=n.yieldResult)&&b.blockIfPanelOpen)return n.return();I=(X=(Q=t.controller).getPanelContent)==null?void 0:X.call(Q,m);if(!(f=I))if(b){var K;f=((K=b.globalConfiguration)==null?void 0:K.initialState)||
b.engagementPanel;if(K=!f)K=!!(b==null?0:(M=b.engagementPanelPresentationConfigs)==null?0:M.engagementPanelPopupPresentationConfig);K&&(f=_.z3Q(b.panelIdentifier,b.identifier))}else f=void 0;u=f;c=b.engagementPanelPresentationConfigs;v=b.engagementPanelExtras;return _.a(n,t.controller.showPanel(m,u,c,v,(D=e)==null?void 0:(B=D.form)==null?void 0:B.element),3);case 3:if(!b.globalConfiguration){n.jumpTo(0);break}_.FW(t.JSC$15244_screenManager,32633);return _.a(n,_.z2(t.innertubeTransportService,W),5);
case 5:return k=n.yieldResult,t.JSC$15244_screenManager.graftServerVe(k.trackingParams),_.a(n,t.controller.updatePanel(m,k.content,!0,v,void 0,k.updatePanelContinuationData),0)}})};
nS[dU]=[_.J8,_.oL,_.ky];var fS=function(W,e){this.controller=W;this.panelLoadingStrategy=e};
_.Z(fS,se);fS.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I;return _.F(function(u){b=_.l(W,_.BS);if((m=b)==null||!m.panelLoadingStrategy)return u.return();X=yfr(t.controller,(q=e)==null?void 0:(Q=q.form)==null?void 0:Q.element);I=function(c){return _.F(function(v){return c.sheetViewModel?_.a(v,t.controller.openSheet({viewModel:c.sheetViewModel},X),0):v.return()})};
return _.a(u,t.panelLoadingStrategy.execute({command:W,data:b.panelLoadingStrategy,renderFn:I,createScreenConfig:{layer:0}}),0)})};
fS[dU]=[_.lR,jE];var gY=function(W,e){this.controller=W;this.JSC$15252_commandHandler=e};
_.Z(gY,se);gY.prototype.resolveCommand=function(W,e){var t=this,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){b=_.l(W,phr);var X=_.l(b.showCommand,_.xB),I,u,c=(u=X==null?void 0:X.panelIdentifier)!=null?u:X==null?void 0:(I=X.identifier)==null?void 0:I.tag;if(!c)throw Error("zi");m=c;return _.a(Q,t.controller.isVisible(m),2)}return(q=Q.yieldResult)?_.a(Q,t.controller.hidePanel(m),0):_.a(Q,t.JSC$15252_commandHandler.resolveCommand(b.showCommand,e),0)})};
gY[dU]=[_.oL,_.tQ];var Td=function(W,e,t){this.innertubeTransportService=W;this.controller=e;this.JSC$15255_screenManager=t};
_.Z(Td,se);
Td.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR;return _.F(function(uv){switch(uv.nextAddress){case 1:return b=t=_.l(W,yqD),m=b.targetPanelIdentifier,q=b.contentSourcePanelIdentifier,Q=b.globalConfiguration,((X=m)==null?0:X.tag)&&((I=q)==null?0:I.tag)?Q?_.a(uv,e.controller.showPanel(m.tag,_.z3Q(m.tag,m),void 0,void 0,void 0),5):_.a(uv,(D=(v=e.controller).getPanel)==null?void 0:D.call(v,q.tag),4):uv.return();case 4:B=uv.yieldResult;u=(k=B)==null?void 0:
(f=(n=k).getPanelContent)==null?void 0:f.call(n);uv.jumpTo(3);break;case 5:return _.a(uv,_.z2(e.innertubeTransportService,W),6);case 6:M=uv.yieldResult,((K=M)==null?0:K.trackingParams)&&e.JSC$15255_screenManager.graftServerVe(M.trackingParams),u=(U=M)==null?void 0:U.content,c=(V=M)==null?void 0:V.updatePanelContinuationData;case 3:if(E=(L=u)==null?void 0:L.engagementPanelSectionListRenderer)return _.a(uv,e.controller.showPanel(m.tag,void 0,void 0,void 0,void 0,{content:E.content,secondaryHeaderContent:(RR=
E.header)!=null?RR:{},targetId:E.targetId},c),0);uv.jumpTo(0)}})};
Td[dU]=[_.J8,_.oL,_.ky];var JL=function(W){this.JSC$15262_commandHandler=W};
_.Z(JL,se);
JL.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return(t=_.l(W,OVh))?_.a(I,_.Iv(),2):I.return();b=I.yieldResult;if(!b)return I.return();var u=b,c=(m=t)==null?void 0:m.languageCode,v=(q=t)==null?void 0:q.isAutoTranslated;u.getVideoData&&_.LsD(u).length&&((c=AgR(u,c,v))?u.setOption("captions","track",c):(u.setOption("captions","stickyLoading",{}),u.setOption("captions","track",{})));Q=b.isSubtitlesOn()?_.Gv("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Gv("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");X=_.dO(Q);e.JSC$15262_commandHandler.resolveCommand(X);_.u8(I)})};
JL[dU]=[_.tQ];var xk=function(W,e){this.shortsPlayerPromise=W;this.JSC$15266_commandHandler=e};
_.Z(xk,se);
xk.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return(t=_.l(W,Wme))?_.a(c,e.shortsPlayerPromise,2):c.return();b=c.yieldResult;var v=Ne9(b);v!=null&&v.length||(b.loadModule("captions"),v=Ne9(b));m=v;if((q=m)==null||!q.length)return Q=_.Gv("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.dO(Q),e.JSC$15266_commandHandler.resolveCommand(X),c.return();b.toggleSubtitles();I=b.isSubtitlesOn()?_.Gv("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Gv("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.dO(I);e.JSC$15266_commandHandler.resolveCommand(u);_.u8(c)})};
xk[dU]=[_.hge,_.tQ];var Oa=function(W){this.JSC$15269_playerPromise=W};
_.Z(Oa,se);Oa.prototype.resolveCommand=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return(t=_.l(W,$Rk))?_.a(Q,e.JSC$15269_playerPromise,2):Q.return();b=Q.yieldResult;m=b.getVideoData().video_id;t.videoId===m&&(q=Number(t.offsetFromVideoStartMilliseconds),q>=0&&b.seekTo(q/1E3));_.u8(Q)})};
Oa[dU]=[_.Rv];var jqU=_.X4("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),My=function(W){this.store=W};
_.Z(My,se);
var CKP=function(W){var e,t,b,m;return _.F(function(q){if(q.nextAddress==1)return e=_.Ot("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,t=_.Ot("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,b=e||t,W.mainAppPlayer=new iZ(b),_.a(q,W.mainAppPlayer.api,2);m=q.yieldResult;m.addEventListener("onStateChange",W.JSC$15273_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.pauseOnNavigation.bind(W));_.u8(q)})};
My.prototype.JSC$15273_playerStateChangeListener=function(W){switch(W){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"}nmb(this)};
var nmb=function(W){W.store.dispatch(_.SX("sfvAudioItemCurrentlyPlayingEntity",jqU,{key:jqU,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
My.prototype.pauseOnNavigation=function(){var W=this,e,t,b,m;return _.F(function(q){if(q.nextAddress==1){if(!W.mainAppPlayer){var Q=new _.o_("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.gQ(Q);return q.return()}return _.a(q,W.mainAppPlayer.api,2)}e=q.yieldResult;b=(t=e)==null?void 0:t.getPlayerState();b!==1||(m=e)!=null&&m.pauseVideo();_.u8(q)})};
My.prototype.playVideo=function(W,e,t){var b=this,m,q;return _.F(function(Q){if(Q.nextAddress==1)return _.a(Q,(m=b.mainAppPlayer)==null?void 0:m.api,2);q=Q.yieldResult;if(!b.mainAppPlayer||!q){var X=new _.o_("Error: mainAppPlayer is unavailable",b.mainAppPlayer);_.gQ(X);return Q.return()}return _.a(Q,b.mainAppPlayer.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+e,player_params:t}),0)})};
My.prototype.pauseVideo=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1){if(!W.mainAppPlayer){var m=new _.o_("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.gQ(m);return b.return()}return _.a(b,W.mainAppPlayer.api,2)}e=b.yieldResult;(t=e)==null||t.pauseVideo();_.u8(b)})};
My.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V;return _.F(function(L){if(L.nextAddress==1)return t=_.l(W,EcN),m=(b=t)==null?void 0:b.nowPlayingEntityValue,Q=(q=t)==null?void 0:q.externalVideoId,v=Number((c=(X=t)==null?void 0:(I=X.defaultStartPoints)==null?void 0:(u=I[0])==null?void 0:u.offsetMs)!=null?c:"0"),M=Number((f=(D=t)==null?void 0:(B=D.defaultStartPoints)==null?void 0:(k=B[0])==null?void 0:(n=k.duration)==null?void 0:n.seconds)!=null?f:"15"),V=(U=
(K=t)==null?void 0:K.playerParams)!=null?U:"",m&&Q?e.mainAppPlayer?L.jumpTo(2):_.a(L,CKP(e),2):L.return();if(L.nextAddress!=6){if(e.nowPlayingEntityValue&&m===e.nowPlayingEntityValue)return e.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.a(L,e.pauseVideo(),0):_.a(L,e.playVideo(v,M,V),0);e.externalVideoId=Q;e.nowPlayingEntityValue=m;e.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.a(L,e.playVideo(v,M,V),6)}nmb(e);return L.jumpTo(0)})};
My[dU]=[w0];var sa=function(W){this.JSC$15293_commandHandler=W};
_.Z(sa,se);sa.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return(b=_.l(W,MFh))?_.a(I,_.Iv(),2):I.return();m=I.yieldResult;if(!m)return I.return();(q=bgs(m))?t.JSC$15293_commandHandler.resolveCommand(q,e):(Q=_.Gv("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),X=_.dO(Q),t.JSC$15293_commandHandler.resolveCommand(X));_.u8(I)})};
sa[dU]=[_.tQ];var hL=function(W){this.JSC$15296_playerPromise=W};
_.Z(hL,se);hL.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q;return _.F(function(X){if(X.nextAddress==1){t=_.l(W,kRe);if(!t)return X.return();b=t.overlayRenderer;return b?(m=_.l(b,s7B))?_.a(X,e.JSC$15296_playerPromise,3):X.jumpTo(0):X.return()}q=X.yieldResult;q.renderChapterSeekingAnimation(1,_.Ub(m.text),(Q=m.icon)==null?void 0:Q.iconType);_.u8(X)})};
hL[dU]=[_.Rv];var HJ=function(W){this.store=W};
_.Z(HJ,se);
HJ.prototype.resolveCommand=function(W){var e=this,t,b,m;return _.F(function(q){if(q.nextAddress==1){t=_.l(W,HYh);if(!t)return q.return();b="";(m=e.store.getState().collabInviteLink)&&t.id===m.playlistId?b=m.inviteLinkURL:t.shortUrl&&(b=t.shortUrl);return b?_.a(q,navigator.clipboard.writeText(b),3):q.jumpTo(0)}var Q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Gv("COPY_LINK_SUCCESS_TOAST")}}}}};_.ee().resolve(_.tQ).resolveCommand(Q);_.u8(q)})};
HJ[dU]=[Ff];var KS=function(W,e){this.innertubeTransportService=W;this.JSC$15306_commandHandler=e};
_.Z(KS,se);KS.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D;return _.F(function(B){if(B.nextAddress==1)return(b=_.l(W,_.Hz))?_.a(B,_.z2(t.innertubeTransportService,W,(m=e)==null?void 0:m.form),2):B.return();(q=B.yieldResult)&&q.errorMetadata&&(Q=q,X=_.dO(Q.error.message),t.JSC$15306_commandHandler.resolveCommand(X));I=q;if((u=I)==null?0:u.actions)for(c=_.R(I.actions),v=c.next();!v.done;v=c.next())D=v.value,t.JSC$15306_commandHandler.resolveCommand(D);_.u8(B)})};
KS[dU]=[_.J8,_.tQ];var PJ=function(){};
_.Z(PJ,se);PJ.prototype.resolveCommand=function(W){var e;return _.F(function(t){e=_.l(W,fIr);if(!e)return t.return();(new Hzk(e)).show();_.u8(t)})};_.VM=new _.W_("PLAYLIST_EDIT_CONTROLLER_TOKEN");var ir=function(W,e,t,b){this.store=W;this.innertubeTransportService=e;this.controller=t;this.JSC$15314_commandHandler=b};
_.Z(ir,se);
ir.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv,GS,k9,CQ,fQ;return _.F(function(iv){if(iv.nextAddress==1){b=_.l(W,_.Jr);if(!b)return iv.return();if(b.clientActions){m=_.R(b.clientActions);for(q=m.next();!q.done;q=m.next())Q=q.value,t.JSC$15314_commandHandler.resolveCommand(Q);var hz,ES=e==null?void 0:(hz=e.form)==null?void 0:hz.element;ES&&_.q2(ES,"yt-dismissible-item-action",b.clientActions)}return _.a(iv,_.z2(t.innertubeTransportService,W,(X=e)==
null?void 0:X.form),2)}if(I=iv.yieldResult)I.errorMetadata?(u=I,c=_.dO(u.error.message),t.JSC$15314_commandHandler.resolveCommand(c),"error"in I&&((v=e)==null?0:(D=v.commandController)==null?0:D.onServerError)&&((B=e)==null||(k=B.commandController)==null||k.onServerError(W,I))):(n=e)==null||(f=n.commandController)==null||(K=(M=f).onSuccess)==null||K.call(M,W,I);U=I;((V=U)==null?0:V.collaborationInviteLink)&&b.playlistId&&(_.S("web_enable_invite_collaborators_link")||_.S("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
t.store.dispatch(_.rO({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:b.playlistId,inviteLinkUrl:U.collaborationInviteLink}}));((L=U)==null?0:L.redirectEndpoint)&&t.JSC$15314_commandHandler.resolveCommand(U.redirectEndpoint);((E=U)==null?0:(RR=E.newHeader)==null?0:RR.playlistHeaderRenderer)?f$B(t.controller,U.newHeader.playlistHeaderRenderer):((uv=U)==null?0:(GS=uv.newHeader)==null?0:GS.musicEditablePlaylistDetailHeaderRenderer)&&f$B(t.controller,U.newHeader.musicEditablePlaylistDetailHeaderRenderer);
t.controller.playlistVideoListElement&&((k9=U)==null?0:(CQ=k9.playlistEditResults)==null?0:(fQ=CQ[0])==null?0:fQ.playlistEditVideoAddedResultData)&&((ES=t.controller.playlistVideoListElement)==null||ES.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:U.playlistEditResults[0].playlistEditVideoAddedResultData})));_.u8(iv)})};
ir[dU]=[Ff,_.J8,_.VM,_.tQ];var Yk=function(W,e){this.controller=W;this.JSC$15324_commandHandler=e};
_.Z(Yk,se);Yk.prototype.resolveCommand=function(W,e){var t=this,b,m,q;return _.F(function(Q){b=_.l(W,Kcb);t.controller.showRefreshPill&&((m=b)==null?0:m.command)&&(t.JSC$15324_commandHandler.resolveCommand((q=b)==null?void 0:q.command,e),t.controller.showRefreshPill=!1);_.u8(Q)})};
Yk[dU]=[_.W$,_.tQ];var zd=function(W,e){this.store=W;this.JSC$15328_commandHandler=e||_.uL.instance};
_.Z(zd,se);zd.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D;return _.F(function(B){b=_.l(W,eS8);m=t.store.getState().radioButtonGroup;if((q=b)==null?0:q.command)t.JSC$15328_commandHandler.resolveCommand((Q=b)==null?void 0:Q.command,e);else if(m&&((X=b)==null?void 0:X.formId)===m.currentFormId)for(I=Object.values(m.commandsMap),u=_.R(I),c=u.next();!c.done;c=u.next())v=c.value,(D=_.Mk(v))&&t.JSC$15328_commandHandler.resolveCommand(D,e);_.u8(B)})};
zd[dU]=[_.hh];var Ua=new _.W_("USER_PREFS");var LS=function(W){this.JSC$15333_prefCookie=W};
_.Z(LS,se);LS.prototype.resolveCommand=function(W){var e=this,t;return _.F(function(b){(t=_.l(W,ZYy))&&typeof t.useListView==="boolean"&&(_.oT(0,155,t.useListView),e.JSC$15333_prefCookie.save());_.u8(b)})};
LS[dU]=[Ua];var Ea=function(W){this.JSC$15337_prefCookie=W};
_.Z(Ea,se);Ea.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q;return _.F(function(X){t=_.l(W,T2B);if((b=t)==null||!b.gl)return X.return();m=t.gl;q={persist_gl:"1",gl:m};e.JSC$15337_prefCookie.set("gl",m);e.JSC$15337_prefCookie.save();Q=YSZ(q);_.VI(Q);_.u8(X)})};
Ea[dU]=[Ua];var AL=function(W){this.JSC$15341_prefCookie=W};
_.Z(AL,se);AL.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){t=_.l(W,VuZ);if(!t)return m.return();b=!1;t.flagNum&&typeof t.value==="boolean"?(_.oT(0,t.flagNum,t.value),b=!0):t.key&&typeof t.stringValue==="string"&&(e.JSC$15341_prefCookie.set(t.key,t.stringValue),b=!0);b&&e.JSC$15341_prefCookie.save();_.u8(m)})};
AL[dU]=[Ua];var Ny=new _.W_("PREF_STORAGE_PROMISE_TOKEN");var dY=function(W){this.JSC$15345_prefStoragePromise=W};
_.Z(dY,se);dY.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return(t=_.l(W,Yq8))?_.a(m,e.JSC$15345_prefStoragePromise,2):m.return();b=m.yieldResult;return b===void 0||t.key===void 0||t.value===void 0?m.return():_.a(m,b.set(t.key,t.value),0)})};
dY[dU]=[Ny];var gmv=function(W){this.innertubeTransportService=W};
_.Z(gmv,se);gmv.prototype.resolveCommand=function(W,e){var t=this,b,m;return _.F(function(q){(b=_.l(W,_.SUy))&&b&&b.isFirstRequest&&(_.gy("search_overview_answer"),_.Tv("so_rq",void 0,"search_overview_answer"));return _.a(q,_.z2(t.innertubeTransportService,W,(m=e)==null?void 0:m.form),0)})};
gmv[dU]=[_.J8];var T_y=function(){};
_.Z(T_y,se);
T_y.prototype.resolveCommand=function(W){var e,t,b,m,q,Q,X,I,u;return _.F(function(c){e=_.l(W,ZHZ);if((t=e)==null?0:t.sectionIdentifier){if(e.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(m=(b=document.getElementsByTagName(e.sectionIdentifier))==null?void 0:b.item(0))m.scrollIntoView({behavior:"smooth"}),(q=hLZ(m))&&q.focus({preventScroll:!0});return c.return()}Q=document.querySelector("[section-identifier="+e.sectionIdentifier+"]");X=document.querySelector("[section-identifier="+e.referenceSectionIdentifier+
"]");if(!Q)return c.return();I=e.verticalScrollOffsetDp?e.verticalScrollOffsetDp:0;X&&(I-=X.offsetTop);window.scrollTo({top:Q.offsetTop+I,behavior:"smooth"});(u=hLZ(Q))&&u.focus({preventScroll:!0})}_.u8(c)})};var WE=function(){};
_.Z(WE,se);
WE.prototype.resolveCommand=function(W){var e,t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1){e=_.l(W,Y4y);if(!e||!e.imageBytes||!navigator.clipboard)return I.return();if(e.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.gQ(Error("Bi")),I.return();_.Qh(I,2);b=(t=e)==null?void 0:t.imageBytes;m=b.replace(/-/g,"+").replace(/_/g,"/");q=h3K(m);Q={};X=[new ClipboardItem((Q[q.type]=q,Q))];return _.a(I,navigator.clipboard.write(X),4)}if(I.nextAddress!=2)return _.Hi(I,0);
_.w9(I);_.u8(I)})};var e0=function(W,e){this.innertubeTransportService=W;this.JSC$15360_commandHandler=e};
_.Z(e0,se);e0.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return(b=_.l(W,z9b))?_.a(I,_.z2(t.innertubeTransportService,W,(m=e)==null?void 0:m.form),2):I.return();(q=I.yieldResult)&&q.errorMetadata&&b.onFailureCommand&&t.JSC$15360_commandHandler.resolveCommand(b.onFailureCommand);Q=q;((X=Q)==null?0:X.shareCommand)&&t.JSC$15360_commandHandler.resolveCommand(Q.shareCommand,e);_.u8(I)})};
e0[dU]=[_.J8,_.tQ];var tY=function(){};
_.Z(tY,se);tY.prototype.resolveCommand=function(W){var e,t;return _.F(function(b){e=_.l(W,hz8);if(!e||!navigator.share)return b.return();t={url:e.url};try{return b.return(navigator.share(t))}catch(m){}_.u8(b)})};var bP=function(){};
_.Z(bP,se);bP.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.u8(W)})};var mN=function(W){this.JSC$15370_navigationConfirmationService=W};
_.Z(mN,se);mN.prototype.resolveCommand=function(){var W=this;return _.F(function(e){W.JSC$15370_navigationConfirmationService.cancelPendingNavigation();_.u8(e)})};
mN[dU]=[wF];var rV=function(W){this.JSC$15373_screenManager=W};
_.Z(rV,se);rV.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u;return _.F(function(c){m=(b=e.form)==null?void 0:b.event;Q=(q=e.form)==null?void 0:q.element;if(!m)throw new _.o_("Event not passed in when resolving command");X=_.R(m.composedPath());for(I=X.next();!I.done;I=X.next())if(u=I.value,u.tagName==="YT-COPY-LINK-RENDERER")return u.copyUrlToClipboard(),Q&&_.Pe(t.JSC$15373_screenManager,Q),c.return();_.u8(c)})};
rV[dU]=[_.ky];var q4=function(){this.JSC$15377_miniAppClientDataProvider=_.ee().resolve(_.Tb)};
_.Z(q4,se);q4.prototype.resolveCommand=function(){var W=this,e,t;return _.F(function(b){if(W.JSC$15377_miniAppClientDataProvider.clientData.has("video_id")){var m=W.JSC$15377_miniAppClientDataProvider,q=m.clientData.get("video_id");q&&m.clientData.delete("video_id");e="https://youtube.com/watch?v="+q;t=S5(e);if(t===void 0)throw Error("Ci`"+e);_.Ty(window,t)}_.u8(b)})};var RW=function(){};
_.Z(RW,se);RW.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.u8(W)})};var Qj=function(){};
_.Z(Qj,se);Qj.prototype.resolveCommand=function(){var W;return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.I6Z(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.u8(e)})};var Fl=function(W){this.JSC$15384_navigationConfirmationService=W};
_.Z(Fl,se);
Fl.prototype.resolveCommand=function(){var W=this;return _.F(function(e){var t=W.JSC$15384_navigationConfirmationService,b=_.ee().resolve(_.$6),m;if(((m=t.navigateParams)==null?void 0:m.data)!==void 0){var q;_.PsN(b,t.navigateParams.endpoint,t.navigateParams.data,(q=t.navigateParams.navigationType)!=null?q:1,t.navigateParams.tempData,t.navigateParams.isMiniplayer,void 0,!0);t.navigateParams=void 0;t.customConfirmationCommand=void 0}else t.navigateParams&&(b.navigate(t.navigateParams.endpoint,t.navigateParams.reload,
t.navigateParams.params,t.navigateParams.tempData,t.navigateParams.requestType,t.navigateParams.createScreenConfig,!0),t.navigateParams=void 0,t.customConfirmationCommand=void 0);_.u8(e)})};
Fl[dU]=[wF];var Xl=function(){};
_.Z(Xl,se);Xl.prototype.resolveCommand=function(){return _.F(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.u8(W)})};var IW=function(W){this.JSC$15389_prefStorage=W};
_.Z(IW,se);IW.prototype.resolveCommand=function(){var W=this,e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,W.JSC$15389_prefStorage,2);case 2:return(e=b.yieldResult)?_.a(b,e.set("sfvle",!1),3):b.return();case 3:return _.a(b,e.set("sfvles",!0),4);case 4:t=_.B6(),_.oT(0,203,!1),_.oT(0,204,!0),t.save(),_.u8(b)}})};
IW[dU]=[Ny];var aW=function(W){this.JSC$15392_prefStorage=W};
_.Z(aW,se);aW.prototype.resolveCommand=function(){var W=this,e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,W.JSC$15392_prefStorage,2);case 2:return(e=b.yieldResult)?_.a(b,e.set("sfvle",!0),3):b.return();case 3:return _.a(b,e.set("sfvles",!0),4);case 4:t=_.B6(),_.oT(0,203,!0),_.oT(0,204,!0),t.save(),_.u8(b)}})};
aW[dU]=[Ny];_.JfZ=new _.W_("SNACKBAR_CONTROLLER_TOKEN");var wV=function(W){this.controller=W};
_.Z(wV,se);wV.prototype.resolveCommand=function(W){var e=this,t;return _.F(function(b){t=_.l(W,rrU);if(!t)return b.return();var m=e.controller;m.closeSnackbarFn&&m.closeSnackbarFn();_.u8(b)})};
wV[dU]=[_.JfZ];var uP=function(W){this.controller=W};
_.Z(uP,se);uP.prototype.resolveCommand=function(W){var e=this,t,b,m;return _.F(function(q){t=_.l(W,RkU);if(!t)return q.return();b=_.l(t.content,SWb);if(!b)return q.return();var Q=e.controller,X=b,I=(m=t.animationStyle)!=null?m:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Q.showSnackbarFn)Q.showSnackbarFn({snackbarViewModel:X,animationStyle:I,durationMs:t.durationSeconds*1E3});else throw Error("lj");_.u8(q)})};
uP[dU]=[_.JfZ];var cE=function(){};
_.Z(cE,se);cE.prototype.resolveCommand=function(W){var e;return _.F(function(t){e=_.l(W,iYU);if(!e||typeof e.key!=="string"||typeof e.value!=="string")return t.return();window.localStorage.setItem(e.key,e.value);_.u8(t)})};var vE=function(W){this.store=W};
_.Z(vE,se);vE.prototype.resolveCommand=function(W){var e=this,t;return _.F(function(b){t=_.l(W,QnD);if(!t||!t.stepId||!t.token)return b.return();e.store.dispatch(Kth({stepId:t.stepId,token:t.token,isSelected:!1}));_.u8(b)})};
vE[dU]=[Ff];var Gs=function(W,e,t){this.innertubeTransportService=W;this.store=e;this.JSC$15411_screenManager=t};
_.Z(Gs,se);
Gs.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L,E,RR,uv;return _.F(function(GS){t=_.l(W,zHk);if(!t||(b=t.stepIds)==null||!b.length)return GS.return();m=e.store.getState().talkToRecs;q=[];Q=[];X=_.R(t.stepIds);for(I=X.next();!I.done;I=X.next())for(u=I.value,c=void 0,(v=(c=m.stepStates[u])==null?void 0:c.userQuery)&&Q.push({userQuery:v.userQuery,userQueryToken:v.token}),D=void 0,B=(D=m.stepStates[u])==null?void 0:D.selectionStates,k=_.R(Object.entries(B)),n=
k.next();!n.done;n=k.next())f=n.value,M=_.R(f),K=M.next().value,U=M.next().value,V=K,L=U,L.isSelected&&q.push(V);E={selectedChipTokens:q,userQueries:Q,submittedStepIds:t.stepIds};RR={browseTalk2recsFormData:E};t.browseEndpoint?(uv=W,_.gA(uv,_.Sf,t.browseEndpoint)):t.command&&(uv=t.command);return uv?_.a(GS,_.z2(e.innertubeTransportService,uv,{formData:RR,disableCache:!0}).then(function(k9){(k9==null?0:k9.trackingParams)&&e.JSC$15411_screenManager.graftServerVe(k9==null?void 0:k9.trackingParams)}),
0):GS.return()})};
Gs[dU]=[_.J8,Ff,_.ky];var DE=function(W){this.store=W};
_.Z(DE,se);DE.prototype.resolveCommand=function(W){var e=this,t;return _.F(function(b){t=_.l(W,RvZ);if(!t||!t.stepId||!t.token)return b.return();e.store.dispatch(Kth({stepId:t.stepId,token:t.token,isSelected:!0}));_.u8(b)})};
DE[dU]=[Ff];var S0=function(W){this.store=W};
_.Z(S0,se);S0.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X;return _.F(function(I){b=_.l(W,UwZ);if(!b||!b.stepId||!b.userQueryToken)return I.return();X=(Q=(m=e)==null?void 0:(q=m.form)==null?void 0:q.userQuery)!=null?Q:"";t.store.dispatch(_.rO({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:b.stepId,userQueryToken:b.userQueryToken,userQuery:X}}));_.u8(I)})};
S0[dU]=[Ff];_.xak=new _.W_("TIMELY_ACTIONS_CONTROLLER_TOKEN");var yj=function(W){this.controller=W};
_.Z(yj,se);yj.prototype.resolveCommand=function(W){var e=this,t,b,m,q;return _.F(function(Q){t=_.l(W,BUB);if(!t)return Q.return();b=t;m=b.id;q=b.isVisible;if(m===void 0||q===void 0)return Q.return();var X;(X=e.controller.timelyActionsMap.get(m))==null||X(m,q);_.u8(Q)})};
yj[dU]=[_.xak];var Omv=function(){this.timelyActionsMap=new Map};var j0=function(W){this.JSC$15438_commandHandler=W};
_.Z(j0,se);j0.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q;return _.F(function(X){t=_.l(W,_.Zh);if(!t)return X.return();q=(b=t.item)==null?void 0:(m=b.notificationTextRenderer)==null?void 0:m.successResponseText;if(!q)return X.return();Q=_.Nf(q);e.JSC$15438_commandHandler.resolveCommand(Q);_.u8(X)})};
j0[dU]=[_.tQ];var CN=function(W,e){this.innertubeTransportService=W;this.JSC$15443_playerApiPromise=e};
_.Z(CN,se);
CN.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c;return _.F(function(v){if(v.nextAddress==1)return _.a(v,e.JSC$15443_playerApiPromise,2);t=v.yieldResult;b=t.getOption("captions","track");m=Object.assign({},_.l(W,_.auP));(Q=(q=t.getVideoData())==null?void 0:q.video_id)?m.externalVideoId=Q:_.Kt(Error("Di"));if((X=b)==null?0:X.languageCode)m.languageCode=b.languageCode;if((I=b)==null?0:I.kind)m.kind=b.kind;if((u=b)==null?0:u.name)m.name=b.name;c=Object.assign({},W,{getTranscriptEndpoint:m});return _.a(v,
_.z2(e.innertubeTransportService,c),0)})};
CN[dU]=[_.J8,_.Rv];var nN=function(){};
_.Z(nN,se);nN.prototype.resolveCommand=function(W){var e,t,b,m,q,Q,X,I;return _.F(function(u){e=_.l(W,W5D);if((t=e)==null||!t.paramKeyValuePairs)return u.return();b=window.location.href;m=_.R(e.paramKeyValuePairs);for(q=m.next();!q.done;q=m.next())Q=q.value,Q.key&&Q.value&&(X={},b=_.zn(b,(X[Q.key]=Q.value,X)));I=_.ee().resolve(_.Xa);_.Fa(I,b);_.u8(u)})};var fN=function(W,e){this.JSC$15450_commandHandler=W;this.innertubeTransportService=e};
_.Z(fN,se);
fN.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U;return _.F(function(V){switch(V.nextAddress){case 1:return(q=(b=e)==null?void 0:(m=b.form)==null?void 0:m.element)&&_.ER(q),Q=_.B6().get("hl"),X="",_.Qh(V,2),_.a(V,RCG(Q),4);case 4:X=V.yieldResult;_.Hi(V,3);break;case 2:return _.w9(V),q&&_.A3(q),_.gQ(Error("Fi"),"ERROR"),V.return();case 3:I=_.l(W,zkP);if(!I)return q&&_.A3(q),V.return();(v=(u=I.commerceActionConfig)==null?void 0:(c=u.commandLifeCycleConfig)==null?
void 0:c.onStartCommand)&&t.JSC$15450_commandHandler.resolveCommand(v);return _.a(V,_.z2(t.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:X}}}),5);case 5:(D=V.yieldResult)?(q&&_.A3(q),((f=D)==null?0:f.command)&&t.JSC$15450_commandHandler.resolveCommand(D.command),(U=(M=I.commerceActionConfig)==null?void 0:(K=M.commandLifeCycleConfig)==null?void 0:K.onSuccessCommand)&&t.JSC$15450_commandHandler.resolveCommand(U)):(q&&_.A3(q),_.gQ(Error("Gi")),(n=(B=I.commerceActionConfig)==null?
void 0:(k=B.commandLifeCycleConfig)==null?void 0:k.onFailureCommand)&&t.JSC$15450_commandHandler.resolveCommand(n)),_.u8(V)}})};
fN[dU]=[_.tQ,_.J8];var gV=function(W,e,t){this.store=W;this.JSC$15466_commandHandler=e;this.innertubeTransportService=t};
_.Z(gV,se);
gV.prototype.resolveCommand=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v;return _.F(function(D){b=_.l(W,Udy);m=b.googlePaymentPayload;b.onStartCommand&&t.JSC$15466_commandHandler.resolveCommand(b.onStartCommand);q=m.encryptedPurchaseParams;Q=m.ypcLogWalletAnalyticDataEndpoint;X=b.serializedTransactionFlowLoggingParams;I=m.serializedPaymentsClientParams;u=b.ypcCujContext;v=Xcc(t.innertubeTransportService,(c=e)==null?void 0:c.form,q,Q,X,I,u);return D.return(v.then(function(B){QFL(e==null?void 0:e.form,
!1);var k=t.store,n=t.JSC$15466_commandHandler,f=B.integratorData;f==null||f===""||B.error!=null?(String(B.error)==="-1"&&b.onDismissCommand?n.resolveCommand(b.onDismissCommand):String(B.error)!=="-1"&&b.onFailureCommand&&n.resolveCommand(b.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.gQ(Error("Hi"),"ERROR")):(b.googlePaymentEntityKey&&k.dispatch(_.SX("commerceAcquisitionClientPayloadEntity",b.googlePaymentEntityKey,{key:b.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:f,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),b.onSuccessCommand&&n.resolveCommand(b.onSuccessCommand));_.aT()},function(B){QFL(e==null?void 0:e.form,!1);
_.gQ(B,"ERROR");b.onFailureCommand&&t.JSC$15466_commandHandler.resolveCommand(b.onFailureCommand)}))})};
gV[dU]=[w0,_.tQ,_.J8];var Ts=function(W,e){this.JSC$15470_commandHandler=W;this.purchaseManager=e};
_.Z(Ts,se);
Ts.prototype.resolveCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c;return _.F(function(v){t=_.l(W,LOP);((b=t)==null?0:(m=b.commandLifeCycleConfig)==null?0:m.onStartCommand)&&e.JSC$15470_commandHandler.resolveCommand(t.commandLifeCycleConfig.onStartCommand);if(!((q=t)==null?0:(Q=q.googlePaymentPurchaseManagerPayload)==null?0:Q.securePayloadBytes))return _.gQ(Error("Ii"),"ERROR"),v.return();X=I88(_.Xb(t.googlePaymentPurchaseManagerPayload.securePayloadBytes));I=_.B6().get("hl");u=_.UZ();VcD(X.serialize(),
I,function(D){u.resolve(D)},function(D){u.reject(D)},u.resolve);
c=u.promise;return v.return(c.then(function(D){if(D)if(D==null?0:D.errorCode){_.gQ(Error("Ji`"+D.errorCode),"ERROR");var B,k;((B=t)==null?0:(k=B.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&e.JSC$15470_commandHandler.resolveCommand(t.commandLifeCycleConfig.onFailureCommand)}else if(D==null?0:D.isCancelled){var n,f;((n=t)==null?0:(f=n.commandLifeCycleConfig)==null?0:f.onCancelCommand)&&e.JSC$15470_commandHandler.resolveCommand(t.commandLifeCycleConfig.onCancelCommand)}else{var M,K;((M=t)==
null?0:(K=M.commandLifeCycleConfig)==null?0:K.onSuccessCommand)&&e.JSC$15470_commandHandler.resolveCommand(t.commandLifeCycleConfig.onSuccessCommand)}},function(D){_.gQ(D,"ERROR");
var B,k;((B=t)==null?0:(k=B.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&e.JSC$15470_commandHandler.resolveCommand(t.commandLifeCycleConfig.onFailureCommand)}))})};
Ts[dU]=[_.tQ,ikU];var MZD=function(W,e){this.JSC$15478_commandHandler=W;this.commandAllowlistOverride=e;var t;this.commandAllowlist=(t=this.commandAllowlistOverride)!=null?t:La};
MZD.prototype.handleResponse=function(W,e,t){var b,m=e==null?void 0:(b=e.config)==null?void 0:b.command;if(!m||this.commandAllowlist.some(function(q){return!!_.l(m,q)})){e=void 0;
t!==void 0&&(e={form:{element:t}});W.onResponseReceivedCommand&&this.JSC$15478_commandHandler.resolveCommand(W.onResponseReceivedCommand,e);W.onResponseReceivedAction&&this.JSC$15478_commandHandler.resolveCommand(W.onResponseReceivedAction,e);W.onResponseReceivedEndpoint&&this.JSC$15478_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,e);W.command&&this.JSC$15478_commandHandler.resolveCommand(W.command,e);if(W.onResponseReceivedCommands)for(t=_.R(W.onResponseReceivedCommands),b=t.next();!b.done;b=
t.next())this.JSC$15478_commandHandler.resolveCommand(b.value,e);if(W.onResponseReceivedActions)for(t=_.R(W.onResponseReceivedActions),b=t.next();!b.done;b=t.next())this.JSC$15478_commandHandler.resolveCommand(b.value,e);if(W.onResponseReceivedEndpoints)for(t=_.R(W.onResponseReceivedEndpoints),b=t.next();!b.done;b=t.next())this.JSC$15478_commandHandler.resolveCommand(b.value,e);if(W.actions)for(W=_.R(W.actions),t=W.next();!t.done;t=W.next())this.JSC$15478_commandHandler.resolveCommand(t.value,e)}};
MZD[dU]=[_.tQ,_.Wi(o_D)];var sqP=new _.W_("INNERTUBE_TOKEN_SERVICE");var hjr=new _.W_("SCHEDULER_TOKEN");var Hme=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
Hme.prototype.handleResponse=function(W,e){if(!e)throw Error("Ki");var t;if(W=(t=W.responseContext)==null?void 0:t.innertubeTokenJar){if(W.appTokens){var b,m,q;t=(b=e.innerTubeRequest.context)==null?void 0:(m=b.request)==null?void 0:(q=m.innertubeTokenJar)==null?void 0:q.appTokens;KCD(this,W.appTokens,this.tokenMap.app,t)}if(W.userTokens){var Q,X,I;e=(Q=e.innerTubeRequest.context)==null?void 0:(X=Q.request)==null?void 0:(I=X.innertubeTokenJar)==null?void 0:I.userTokens;KCD(this,W.userTokens,this.tokenMap.user,
e)}}};
Hme.prototype.processContext=function(W){W.request||(W.request={});var e=Object.keys(this.tokenMap.app).length,t=Object.keys(this.tokenMap.user).length;if(e||t)W.request.innertubeTokenJar={},e&&(W.request.innertubeTokenJar.appTokens=[].concat(_.kP(Object.values(this.tokenMap.app).flat()))),t&&(W.request.innertubeTokenJar.userTokens=[].concat(_.kP(Object.values(this.tokenMap.user).flat())))};
var KCD=function(W,e,t,b){e=_.R(e);for(var m=e.next(),q={};!m.done;q={token$jscomp$138:void 0},m=e.next()){q.token$jscomp$138=m.value;if(q.token$jscomp$138.type===void 0)throw new _.o_("InnerTube token has no type",q.token$jscomp$138);if(q.token$jscomp$138.clearTokens)t[q.token$jscomp$138.type]=[];else if(q.token$jscomp$138.value!==void 0){t[q.token$jscomp$138.type]||(t[q.token$jscomp$138.type]=[]);if(b!==void 0&&b.length){m=_.R(b);for(var Q=m.next(),X={};!Q.done;X={requestToken:void 0},Q=m.next())X.requestToken=
Q.value,Q=t[q.token$jscomp$138.type].findIndex(function(I){return function(u){return u===I.requestToken||(0,_.kJ.equals)(u,I.requestToken)}}(X)),Q>-1&&t[q.token$jscomp$138.type].splice(Q,1)}t[q.token$jscomp$138.type].push(q.token$jscomp$138);
q.token$jscomp$138.maxAgeSeconds&&Number(q.token$jscomp$138.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(I){return function(){var u=t[I.token$jscomp$138.type].indexOf(I.token$jscomp$138);u>-1&&t[I.token$jscomp$138.type].splice(u,1)}}(q),Number(q.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.o_("InnerTube token has no value",q.token$jscomp$138);
}};
Hme[dU]=[hjr];var PKv=new _.W_("LOCAL_INNERTUBE_ROUTER_TOKEN"),VZk=new _.W_("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var JY=function(W){this.serviceMap=W};
JY.prototype.shouldPreferLocalResponse=function(W,e){return(W=imB(this,W))?W.shouldPreferLocalResponse(e):!1};
JY.prototype.localInnertubeResponse=function(W,e){var t=this,b;return _.F(function(m){return(b=imB(t,W))?m.return(b.localInnertubeResponse(e)):m.return(Promise.reject(Error("Li")))})};
JY.prototype.canProvideFallbackResponse=function(W,e){return(W=imB(this,W))?W.canProvideFallbackResponse(e):!1};
JY.prototype.localFallbackInnertubeResponse=function(W,e){var t=this,b;return _.F(function(m){return(b=imB(t,W))?m.return(b.localFallbackInnertubeResponse(e)):m.return(Promise.reject(Error("Li")))})};
var imB=function(W,e){e=_.I_(e);return e?(W=W.serviceMap[e])?W:null:null};
JY[dU]=[VZk];var kB=function(){};
kB.prototype.shouldPreferLocalResponse=function(){return!1};
kB.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Mi")))})};
kB.prototype.canProvideFallbackResponse=function(){return!0};
kB.prototype.localFallbackInnertubeResponse=function(){var W,e,t;return _.F(function(b){W=nv("CLOSE_POPUP");e={openPopupAction:afQ()};t={actions:[W,e]};return b.return(t)})};var NaS=function(W,e){this.JSC$15528_upliftPromise=W;this.store=e};
_.r=NaS.prototype;_.r.shouldPreferLocalResponse=function(W){var e=W.videoId,t;if(t=e)t=jUG(this.store.getState().entities,W.videoId);return t&&C$L(this.store.getState().entities,e)?uoZ(this.store.getState().entities,W.playlistId):!1};
_.r.localInnertubeResponse=function(W){var e=this,t;return _.F(function(b){return(t=e.getPlayerResponse(W))?b.return(Promise.resolve(t)):b.return(Promise.reject(Error("Ni")))})};
_.r.canProvideFallbackResponse=function(W){return!!W.videoId};
_.r.localFallbackInnertubeResponse=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.JSC$15528_upliftPromise,2);t=e.getPlayerResponse(W);var m;t?m=b.return(Promise.resolve(t)):m=ZN(e.store.getState().entities,W.videoId)?b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tm(_.Gv("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:TmG()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tm(_.Gv("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gTR()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return m})};
_.r.getPlayerResponse=function(W){return tOZ(this.store.getState().entities,W.videoId)};var $B=function(W,e){this.localPlayerService=W;this.localWatchNextService=e};
$B.prototype.shouldPreferLocalResponse=function(W){var e=W.playerRequest;W=W.watchNextRequest;return!!(e&&this.localPlayerService.shouldPreferLocalResponse(e)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
$B.prototype.localInnertubeResponse=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){t=W.playerRequest;b=W.watchNextRequest;if(!t||!b)throw new _.o_("Missing streaming request",W);return _.a(Q,e.localPlayerService.localInnertubeResponse(t),2)}if(Q.nextAddress!=3)return m=Q.yieldResult,_.a(Q,e.localWatchNextService.localInnertubeResponse(b),3);q=Q.yieldResult;return Q.return({playerResponse:m,watchNextResponse:q})})};
$B.prototype.canProvideFallbackResponse=function(W){var e=W.playerRequest;W=W.watchNextRequest;return!!(e&&this.localPlayerService.canProvideFallbackResponse(e)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
$B.prototype.localFallbackInnertubeResponse=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return t=W.playerRequest,b=W.watchNextRequest,t&&b?_.a(Q,e.localPlayerService.localFallbackInnertubeResponse(t),2):Q.return(Promise.reject(new _.o_("Missing streaming request",W)));if(Q.nextAddress!=3)return m=Q.yieldResult,_.a(Q,e.localWatchNextService.localFallbackInnertubeResponse(b),3);q=Q.yieldResult;return Q.return({playerResponse:m,watchNextResponse:q})})};var o4=function(W){this.JSC$15538_persistentStorePromiseAccessor=W};
o4.prototype.shouldPreferLocalResponse=function(){return!1};
o4.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Oi")))})};
o4.prototype.canProvideFallbackResponse=function(){return!0};
o4.prototype.localFallbackInnertubeResponse=function(){var W=this,e,t;return _.F(function(b){return b.nextAddress==1?_.a(b,W.JSC$15538_persistentStorePromiseAccessor(),2):b.nextAddress!=3?(e=b.yieldResult)?_.a(b,e.get("service:guide:fallback"),3):b.return(Promise.reject(Error("Pi"))):(t=b.yieldResult)&&_.I4(t)?b.return(cVG(_.I4(t))):b.return(Promise.reject(Error("Qi")))})};var pn=function(){};
pn.prototype.shouldPreferLocalResponse=function(){return!1};
pn.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Ri")))})};
pn.prototype.canProvideFallbackResponse=function(){return!0};
pn.prototype.localFallbackInnertubeResponse=function(){var W,e,t;return _.F(function(b){W=nv("CLOSE_POPUP");e={openPopupAction:afQ()};t={actions:[W,e]};return b.return(t)})};var BN=function(){this.urlMap=YGv;this.fallbackCommand=_.DB};
BN.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!zjD(this,W):!1};
BN.prototype.localInnertubeResponse=function(W){var e=this,t;return _.F(function(b){return(t=W.url)?b.return(Uab(W,zjD(e,t))):b.return(Promise.reject(Error("Si")))})};
BN.prototype.canProvideFallbackResponse=function(){return!0};
BN.prototype.localFallbackInnertubeResponse=function(W){var e=this,t,b,m,q,Q,X,I;return _.F(function(u){t=W.url;if(!t)return u.return(Uab(W,e.fallbackCommand));if(b=zjD(e,t))return u.return(Uab(W,b));m=void 0;q=_.I_(t);q==="/watch"&&(Q=_.VV(t,"v"))&&(I=(X=_.VV(t,"list"))!=null?X:void 0,m=_.ew(Q,I));m||(m=e.fallbackCommand);return u.return(Uab(W,m))})};
var zjD=function(W,e){if(e)return W.urlMap[_.Kc(e)]},Uab=function(W,e){e&&W.parentTrackingParams&&(e.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},e.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:e})};var lC=function(W,e,t){this.JSC$15548_upliftPromise=W;this.store=e;this.JSC$15548_persistentStorePromiseAccessor=t};
lC.prototype.shouldPreferLocalResponse=function(){return!1};
lC.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Ti")))})};
lC.prototype.canProvideFallbackResponse=function(){return!0};
lC.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.F(function(e){return e.return(LCS(W))})};
var LCS=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,Xq(W.JSC$15548_upliftPromise,W.store),2);e=b.yieldResult;t={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[wcR(e)]}}}};return b.return(Emh(W,t))})},Emh=function(W,e){var t,b;
return _.F(function(m){if(m.nextAddress==1)return _.a(m,W.JSC$15548_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return t=m.yieldResult,_.a(m,a4(t),3);b=m.yieldResult;return m.return({responseContext:{},contents:e,topbar:b})})};var Dn=function(W,e,t){this.JSC$15555_upliftPromise=W;this.store=e;this.JSC$15555_persistentStorePromiseAccessor=t};
Dn.prototype.shouldPreferLocalResponse=function(W){var e=W.videoId;return e&&jUG(this.store.getState().entities,e)&&C$L(this.store.getState().entities,e)?uoZ(this.store.getState().entities,W.playlistId):!1};
Dn.prototype.localInnertubeResponse=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return(t=W.videoId)?_.a(m,e.JSC$15555_upliftPromise,2):m.return(Promise.reject(Error("Ui")));if(m.nextAddress!=3)return _.a(m,Afe(e,W,t),3);b=m.yieldResult;return m.return(N_b(e,b,t))})};
Dn.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
Dn.prototype.localFallbackInnertubeResponse=function(W){var e=this,t,b,m,q;return _.F(function(Q){switch(Q.nextAddress){case 1:return(t=W.videoId)?_.a(Q,e.JSC$15555_upliftPromise,2):Q.return(Promise.reject(Error("Ui")));case 2:return _.a(Q,Afe(e,W,t),3);case 3:b=Q.yieldResult;if(ZN(e.store.getState().entities,t)){Q.jumpTo(4);break}return _.a(Q,Xq(e.JSC$15555_upliftPromise,e.store),5);case 5:return m=Q.yieldResult,Q.return(dar(b,m));case 4:return jUG(e.store.getState().entities,t)&&C$L(e.store.getState().entities,
t)?Q.return(N_b(e,b,t)):(q={title:_.tm(_.Gv("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:TmG()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Q.return(dar(b,q)))}})};
var Afe=function(W,e,t){var b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return b=e.playlistId,m=_.ew(t,b),_.a(I,W.JSC$15555_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return q=I.yieldResult,_.a(I,a4(q),3);Q=I.yieldResult;X={responseContext:{},currentVideoEndpoint:m,topbar:Q};return I.return(X)})},N_b=function(W,e,t){if(W=ZN(W.store.getState().entities,t)){var b;
t=W.videoEntity;var m,q={title:bX(t.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.ml((b=t.localizedStrings)==null?void 0:b.viewCount),viewCount:_.ml((m=t.localizedStrings)==null?void 0:m.viewCount)}}};t.publishedTimestampMillis&&(q.dateText=_.ml(KOZ(new Date(Number(t.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:q};m=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:bX(_.Gv("SHOW_MORE",void 0,"Show more")),
showLessText:bX(_.Gv("SHOW_LESS",void 0,"Show less")),description:m.formattedDescription,owner:{videoOwnerRenderer:{title:bX(W.title),thumbnail:W.avatar}}}};e.contents={twoColumnWatchNextResults:{results:{results:{contents:[b,W]}}}}}return e},dar=function(W,e){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[wcR(e)]}}}};
return W};var Zn=function(W,e,t){this.JSC$15560_upliftPromise=W;this.store=e;this.JSC$15560_persistentStorePromiseAccessor=t};
Zn.prototype.shouldPreferLocalResponse=function(){return!1};
Zn.prototype.localInnertubeResponse=function(){return _.F(function(W){return W.return(Promise.reject(Error("Vi")))})};
Zn.prototype.canProvideFallbackResponse=function(){return!0};
Zn.prototype.localFallbackInnertubeResponse=function(){var W=this,e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return _.a(q,W.JSC$15560_persistentStorePromiseAccessor(),2);case 2:return e=q.yieldResult,_.a(q,a4(e),3);case 3:return t=q.yieldResult,b={responseContext:{},topbar:t},_.a(q,W.JSC$15560_upliftPromise,4);case 4:return _.a(q,Xq(W.JSC$15560_upliftPromise,W.store),5);case 5:return m=q.yieldResult,b.watchStatus={backgroundPromoRenderer:m},q.return(b)}})};var WbN=new _.W_("ENDPOINT_MAP");var eGh=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},sNU=function(W,e,t){var b,m=(b=e.config)==null?void 0:b.sequenceStrategy;
if(!m)return t();W.sequenceMap.has(m.sequenceKey)||W.sequenceMap.set(m.sequenceKey,[]);W=W.sequenceMap.get(m.sequenceKey);switch(m.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return tbU(W,e,t);case "REQUEST_SEQUENCE_TYPE_REPLACE":return b6U(W,e,t);default:throw new _.o_("Request could not be sequenced",e);}},tbU=function(W,e,t){var b,m,q;
return _.F(function(Q){W.length>0?(m=W[W.length-1],b=m.responsePromise.then(function(){return t()})):b=t();
q={request:e,responsePromise:b};W.push(q);mBZ(W,q);return Q.return(q.responsePromise)})},b6U=function(W,e,t){t=t();
if(W.length>0)for(var b=_.R(W),m=b.next();!m.done;m=b.next())m.value.responsePromise=t;var q={request:e,responsePromise:t};W.push(q);mBZ(W,q);return Promise.resolve().then(function(){return W.indexOf(q)>0?q.responsePromise.then(function(Q){return Object.assign({},Q,{sequenceMetaData:{skipProcessing:!0}})}):q.responsePromise})},mBZ=function(W,e){e.responsePromise.then(function(){var t=W.indexOf(e);
t>-1&&W.splice(t,1)})};var rZb=new _.W_("REQUEST_SEQUENCING");var x_=function(){};
_.Z(x_,F_);x_.prototype.getApiPaths=function(){return[]};
x_.prototype.getExtension=function(W){return _.l(W,uqr)};
x_.prototype.JSC$11051_buildRequest=function(W,e){W.recaptchaToken=e.recaptchaToken};
x_.prototype.getApiUrl=function(){return"/das_captcha"};var O1=function(){};
_.Z(O1,F_);O1.prototype.getApiPaths=function(){return YjU};
O1.prototype.getExtension=function(W){return _.l(W,Kzy)};
O1.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.createBackstagePostParams&&(W.createBackstagePostParams=e.createBackstagePostParams);t.comment_text&&(W.commentText=t.comment_text);if(t.attached_video_id)W.videoAttachment={videoId:t.attached_video_id};else if(t.image_poll_options)W.pollAttachmentData={options:t.image_poll_options};else if(t.poll_options)W.pollAttachment={choices:t.poll_options};else if(t.quiz_options)W.quizAttachmentData={options:t.quiz_options};else if(t.image_blob_id)W.imageAttachment=
{encryptedBlobId:t.image_blob_id},t.source_video_id&&(W.imageAttachment.sourceExternalVideoId=t.source_video_id),t.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(t.image_preview_coordinates));else if(t.images_data)W.imagesAttachment={imagesData:t.images_data};else if(t.clip_external_video_id!==void 0||t.clip_offset_ms!==void 0||t.clip_duration_ms!==void 0){var b,m,q,Q,X;W.clipAttachment={externalVideoId:(q=t.clip_external_video_id)!=null?q:"",offsetMs:(Q=(b=t.clip_offset_ms)==
null?void 0:b.toString())!=null?Q:"",durationMs:(X=(m=t.clip_duration_ms)==null?void 0:m.toString())!=null?X:""}}else t.shared_post_id&&(W.sharedPostAttachment={postId:t.shared_post_id});t.tagged_video_id&&(W.postCreationData={taggedVideoId:t.tagged_video_id});t.access_restrictions&&(typeof t.access_restrictions==="number"&&(e=t.access_restrictions,W.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof t.access_restrictions==="string"&&
(W.accessRestrictionsParams=t.access_restrictions));t.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=t.scheduled_publish_time_sec.toString())};var M4=function(){};
_.Z(M4,F_);M4.prototype.getApiPaths=function(){return drN};
M4.prototype.getExtension=function(W){return _.l(W,U_h)};
M4.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.decorateMessageParams&&(W.params=e.decorateMessageParams);t.text&&(W.text=t.text)};var s1=function(){};
_.Z(s1,F_);s1.prototype.getApiPaths=function(){return Suh};
s1.prototype.getExtension=function(W){return _.l(W,PCv)};
s1.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;t.video_id&&(W.videoId=t.video_id)};var hY=function(){};
_.Z(hY,F_);hY.prototype.getApiPaths=function(){return kIr};
hY.prototype.getExtension=function(W){return _.l(W,_.c6)};
hY.prototype.JSC$11051_buildRequest=function(W,e,t){t.suggestions_query&&(W.input=t.suggestions_query)};var HE=function(){};
_.Z(HE,F_);HE.prototype.getApiPaths=function(){return mMk};
HE.prototype.getExtension=function(W){return _.l(W,Vjr)};
HE.prototype.JSC$11051_buildRequest=function(W,e,t){t.comment_text!==void 0&&(W.commentText=t.comment_text);t.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=t.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=e.updateBackstagePostParams};var KN=function(){};
_.Z(KN,F_);KN.prototype.getApiPaths=function(){return bC};
KN.prototype.getExtension=function(W){return _.l(W,_.hp)};
KN.prototype.JSC$11051_buildRequest=function(W,e,t){t.formData&&(W.formData=t.formData);e.token?W.continuation=e.token:e.continuationTokenKey&&(t=_.Eb().getState(),e=_.I1(t.entities,"continuationTokenEntity",e.continuationTokenKey))&&(W.continuation=String(e.continuationToken))};
var qCB=function(){};
_.Z(qCB,F_);_.r=qCB.prototype;_.r.getApiPaths=function(){return bC};
_.r.getExtension=function(W){return _.l(W,_.Sf)};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$11058_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var e={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(e.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(e.params=W.params);W.query&&(e.query=W.query);return _.Y4("browse",e)}};
_.r.JSC$11051_buildRequest=function(W,e,t){e.browseId&&(W.browseId=e.browseId);e.params&&(W.params=e.params);e.query&&(W.query=e.query);t.formData?W.formData=t.formData:e.formData&&(W.formData=e.formData);e.browseId==="FEsubscriptions"&&_.B6().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");e.browseId==="SPaccount_playback"&&(t=_.B6(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:t.getFlag(65),flagAutoCaptionsDefaultOn:t.getFlag(66),
flagDisableInlinePreview:t.getFlag(186),flagAudioDescriptionDefaultOn:t.getFlag(198)});if(e.browseId==="FEwhat_to_watch"){t=_.B6();var b=t.getFlag(196);t.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:b}}})}e.browseId==="FEwhat_to_watch"&&(e=_.B6().getFlag(186),W.inlineSettingStatus=e?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.r.getRequestConfig=function(W,e){e=e===void 0?{}:e;var t={};if(W=this.JSC$11058_getStoreKey(W,e))t.storeStrategy={storeKey:W,disableCache:e.disableCache};_.S("web_log_browse_ticks_ks")||(t.requestTick="br_s",t.responseTick="br_r");return t};var PE=function(){};
_.Z(PE,F_);PE.prototype.getApiPaths=function(){return hYU};
PE.prototype.getExtension=function(W){return _.l(W,F5k)};
PE.prototype.JSC$11051_buildRequest=function(W,e,t){W.legacyYoutubeChannelUsername=t.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=t.legacyYouTubeChannelPassword||""};var Vj=function(){};
_.Z(Vj,F_);Vj.prototype.getApiPaths=function(){return UQo};
Vj.prototype.getExtension=function(W){return _.l(W,N0e)};
Vj.prototype.JSC$11051_buildRequest=function(W,e,t){t.recaptcha_response_token&&(W.recaptchaResponseToken=t.recaptcha_response_token);t.channel_id&&(W.channelId=t.channel_id)};var iP=function(){};
_.Z(iP,F_);iP.prototype.getApiPaths=function(){return rHk};
iP.prototype.getExtension=function(W){return _.l(W,m7y)};
iP.prototype.JSC$11051_buildRequest=function(W,e,t){e.externalChannelId&&(W.externalChannelId=e.externalChannelId);t.handle&&(W.handleUpdate={handle:t.handle},e.handleEditSource&&(W.handleUpdate.handleEditSource=e.handleEditSource))};var Y_=function(){};
_.Z(Y_,F_);Y_.prototype.getApiPaths=function(){return FID};
Y_.prototype.getExtension=function(W){return _.l(W,SqN)};
Y_.prototype.JSC$11051_buildRequest=function(W,e,t){e.request&&(W.channelId=e.request.channelId);var b;if(t==null?0:(b=t.uploadDefaults)==null?0:b.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=t.uploadDefaults.emojiReactionSet};var zs=function(){};
_.Z(zs,F_);zs.prototype.getApiPaths=function(){return azy};
zs.prototype.getExtension=function(W){return _.l(W,dwr)};
zs.prototype.JSC$11051_buildRequest=function(W,e,t){e.externalChannelId&&(W.externalChannelId=e.externalChannelId);e.channelHandleEntityKey&&(W.channelHandleEntityKey=e.channelHandleEntityKey);e.handleEditSource&&(W.handleEditSource=e.handleEditSource);t.handle?W.handle=t.handle:t.name&&(W.name=t.name)};var U1=function(){};
_.Z(U1,F_);U1.prototype.getApiPaths=function(){return P6e};
U1.prototype.getExtension=function(W){return _.l(W,yB8)};
U1.prototype.JSC$11051_buildRequest=function(W,e){e.actions?W.actions=e.actions:e.action&&(W.actions=[e.action])};var LN=function(){};
_.Z(LN,F_);LN.prototype.getApiPaths=function(){return V8e};
LN.prototype.getExtension=function(W){return _.l(W,_.hp)};
LN.prototype.JSC$11051_buildRequest=function(W,e){e.token&&(W.continuation=e.token)};var E1=function(){};
_.Z(E1,F_);E1.prototype.getApiPaths=function(){return GIy};
E1.prototype.getExtension=function(W){return _.l(W,_.hp)};
E1.prototype.JSC$11051_buildRequest=function(W,e){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.token&&(W.fetchCommentsParams={continuation:e.token})};var AY=function(){};
_.Z(AY,F_);AY.prototype.getApiPaths=function(){return LwU};
AY.prototype.getExtension=function(W){return _.l(W,pQ8)};
AY.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.createReplyParams&&(W.createReplyParams=e.createReplyParams);e.commentText&&(W.commentText=_.Ub(e.commentText));t.comment_text&&(W.commentText=t.comment_text);t.image_blob_id&&(W.imageAttachment={encryptedBlobId:t.image_blob_id});t.botguard_response&&(W.botguardResponse=t.botguard_response)};
_.Ec.Object.defineProperties(AY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N4=function(){};
_.Z(N4,F_);N4.prototype.getApiPaths=function(){return E0b};
N4.prototype.getExtension=function(W){return _.l(W,_.khe)};
N4.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.createCommentParams&&(W.createCommentParams=e.createCommentParams);e.commentText&&(W.commentText=_.Ub(e.commentText));e.videoPositionMention&&(W.videoPositionMention=e.videoPositionMention);e.sources&&(W.sources=e.sources);t.comment_text&&(W.commentText=t.comment_text);t.attached_video_id?W.videoAttachment={videoId:t.attached_video_id}:t.poll_options?W.pollAttachment={choices:t.poll_options}:t.image_blob_id?W.imageAttachment=
{encryptedBlobId:t.image_blob_id}:t.shared_post_id&&(W.sharedPostAttachment={postId:t.shared_post_id});t.access_restrictions&&typeof t.access_restrictions==="number"&&(e=t.access_restrictions,W.accessRestrictions={restriction:e!==1&&e===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});t.botguard_response&&(W.botguardResponse=t.botguard_response)};
_.Ec.Object.defineProperties(N4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dV=function(){};
_.Z(dV,F_);dV.prototype.getApiPaths=function(){return qPo};
dV.prototype.getExtension=function(W){return _.l(W,CS8)};
dV.prototype.JSC$11051_buildRequest=function(W,e,t){e.commentText&&(W.replyText=_.Ub(e.commentText));t.comment_text&&(W.replyText=t.comment_text);W.updateReplyParams=e.updateReplyParams};
_.Ec.Object.defineProperties(dV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var W5=function(){};
_.Z(W5,F_);W5.prototype.getApiPaths=function(){return R8y};
W5.prototype.getExtension=function(W){return _.l(W,jZ8)};
W5.prototype.JSC$11051_buildRequest=function(W,e,t){e.commentText&&(W.commentText=_.Ub(e.commentText));t.comment_text&&(W.commentText=t.comment_text);W.updateCommentParams=e.updateCommentParams};
_.Ec.Object.defineProperties(W5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ek=function(){};
_.Z(ek,F_);ek.prototype.getApiPaths=function(){return QjU};
ek.prototype.getExtension=function(W){return _.l(W,csB)};
ek.prototype.JSC$11051_buildRequest=function(W,e){e.settings&&(W.settings=e.settings)};var td=function(){};
_.Z(td,F_);td.prototype.getApiPaths=function(){return X1o};
td.prototype.getExtension=function(W){return _.l(W,WcB)};
td.prototype.JSC$11051_buildRequest=function(W,e){e.channelCreationToken&&(W.channelCreationToken=e.channelCreationToken);e.source&&(W.source=e.source)};var bs=function(){};
_.Z(bs,F_);bs.prototype.getApiPaths=function(){return UrS};
bs.prototype.getExtension=function(W){return _.l(W,bYB)};
bs.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;if(t.name&&(t.given_name||t.family_name))W=new _.o_("channel creation cannot set both GAIA and YouTube names",e),_.gQ(W);else{if(e.zeroStepChannelCreationParams){if(!t.comment_text){W=new _.o_("zero_step_create_comment_params but no zero_step_texts",e);_.gQ(W);return}W.zeroStepChannelCreationParams=e.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
t.comment_text,t.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=t.botguard_response))}W.channelCreationToken=e.channelCreationToken;t.given_name&&(W.givenName=t.given_name);t.family_name&&(W.familyName=t.family_name);e.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(t.name||t.handle||t.avatar_url||t.encryptedBlobId||t.isNameChanged!==void 0||t.isHandleChanged!==void 0||t.isDefaultProfilePhoto!==
void 0||t.obakeImageSource)W.overrideChannelCreationParams={},t.name&&(W.overrideChannelCreationParams.name=t.name),t.handle&&(W.overrideChannelCreationParams.handle=t.handle),t.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=t.avatar_url),t.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=t.encryptedBlobId),t.enableIdentityForAllChannelCreationDialog&&(t.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
t.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=t.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),t.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=t.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),t.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=t.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),t.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=t.obakeImageSource))}};var mL=function(){};
_.Z(mL,F_);mL.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?bTS:W&&W.status==="INDIFFERENT"?PTh:n6b};
mL.prototype.getExtension=function(W){return _.l(W,_.UR)};
mL.prototype.JSC$11051_buildRequest=function(W,e){e.target&&(W.target=e.target);if(e=this.getParams(e))W.params=e};
mL.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var rK=function(){};
_.Z(rK,F_);rK.prototype.getApiPaths=function(){return dQU};
rK.prototype.getExtension=function(W){return _.l(W,h9v)};
rK.prototype.JSC$11051_buildRequest=function(W,e){e.settingItemId&&(W.settingItemId=e.settingItemId);e.stringValue!=null&&e.stringValue!==void 0?W.newValue={stringValue:e.stringValue}:e.intValue?W.newValue={intValue:e.intValue}:e.boolValue!==null&&e.boolValue!==void 0?W.newValue={boolValue:e.boolValue}:(W=new _.o_("Unknown value type for SetSettingEndpoint.",e),_.gQ(W))};var qh=function(){};
_.Z(qh,F_);qh.prototype.getApiPaths=function(){return e8S};
qh.prototype.getExtension=function(W){return _.l(W,bfh)||void 0};
qh.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.channelIds&&(W.channelIds=e.channelIds);e.siloName&&(W.siloName=e.siloName);e.params&&(W.params=e.params);t.botguardResponse&&(W.botguardResponse=t.botguardResponse);t.feature&&(W.clientFeature=t.feature)};
_.Ec.Object.defineProperties(qh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var R2=function(){};
_.Z(R2,F_);R2.prototype.getApiPaths=function(){return b7o};
R2.prototype.getExtension=function(W){return _.l(W,HxB)||void 0};
R2.prototype.JSC$11051_buildRequest=function(W,e){e.channelIds&&(W.channelIds=e.channelIds);e.siloName&&(W.siloName=e.siloName);e.params&&(W.params=e.params)};
_.Ec.Object.defineProperties(R2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q7=function(W){this.shareClientParamsProvider=W};
_.Z(Q7,F_);Q7.prototype.getApiPaths=function(){return o6S};
Q7.prototype.getExtension=function(W){return _.l(W,I5v)||_.l(W,_.a5B)||_.l(W,X_e)};
Q7.prototype.JSC$11051_buildRequest=function(W,e){e.serializedShareEntity&&(W.serializedSharedEntity=e.serializedShareEntity);if(e.clientParamIdentifier){var t;if((t=this.shareClientParamsProvider)==null?0:t.clientParams.has(e.clientParamIdentifier)){t=this.shareClientParamsProvider;e=e.clientParamIdentifier;var b=t.clientParams.get(e);b&&t.clientParams.delete(e);W.clientParams=b}}};
Q7[dU]=[$8h];var FE=function(){};
_.Z(FE,F_);FE.prototype.getApiPaths=function(){return O5r};
FE.prototype.getExtension=function(W){return _.l(W,S8o)};
FE.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var XE=function(){};
_.Z(XE,F_);XE.prototype.getApiPaths=function(){return mQe};
XE.prototype.getExtension=function(W){return _.l(W,vVv)};
XE.prototype.JSC$11051_buildRequest=function(W,e){e.dismissal&&(W.items=[e.dismissal])};
_.Ec.Object.defineProperties(XE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var I2=function(){};
_.Z(I2,F_);I2.prototype.getApiPaths=function(){return jeh};
I2.prototype.getExtension=function(W){return _.l(W,_.Ol)||void 0};
I2.prototype.JSC$11051_buildRequest=function(W,e,t){W.feedbackTokens=[];e.feedbackToken&&W.feedbackTokens.push(e.feedbackToken);if(e=e.cpn||t.cpn)W.feedbackContext={cpn:e};W.isFeedbackTokenUnencrypted=!!t.is_feedback_token_unencrypted;W.shouldMerge=!1;t.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(t.extra_feedback_tokens))};
_.Ec.Object.defineProperties(I2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var a2=function(){};
_.Z(a2,F_);a2.prototype.getApiPaths=function(){return jeh};
a2.prototype.getExtension=function(W){return _.l(W,_.c6)};
a2.prototype.JSC$11051_buildRequest=function(W,e,t){t.feedback_tokens&&(W.feedbackTokens=t.feedback_tokens,W.shouldMerge=!0)};
_.Ec.Object.defineProperties(a2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wK=function(){};
_.Z(wK,F_);wK.prototype.getApiPaths=function(){return jeh};
wK.prototype.getExtension=function(W){return _.l(W,FQS)};
wK.prototype.JSC$11051_buildRequest=function(W,e){e.undoToken&&(W.feedbackTokens=[e.undoToken]);e.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=e.isUndoTokenUnencrypted)};
_.Ec.Object.defineProperties(wK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var us=function(){};
_.Z(us,F_);us.prototype.getApiPaths=function(){return w4B};
us.prototype.getExtension=function(W){return _.l(W,w98)};
us.prototype.JSC$11051_buildRequest=function(W,e){e.nextEndpoint&&_.l(e.nextEndpoint,_.KJ)?W.nextEndpoint={urlEndpoint:_.l(e.nextEndpoint,_.KJ)}:e.nextEndpoint&&_.l(e.nextEndpoint,_.z4)&&(W.nextEndpoint={watchEndpoint:_.l(e.nextEndpoint,_.z4)});e.setRacy&&(W.setRacy=e.setRacy);e.setControvercy&&(W.setControvercy=e.setControvercy)};var c5=function(W){this.JSC$15741_storeWithEntities=W};
_.Z(c5,F_);c5.prototype.getApiPaths=function(){return qu8};
c5.prototype.getExtension=function(W){return _.l(W,MQS)};
c5.prototype.JSC$11051_buildRequest=function(W,e){e.flowId&&(W.flowId=e.flowId);e.targetId&&(W.targetId=e.targetId);e.continuation&&(W.continuation=e.continuation);var t=e.flowStateEntityKey;if(e.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&t&&this.JSC$15741_storeWithEntities){var b;if(e=(b=this.JSC$15741_storeWithEntities.getState())==null?void 0:b.entities)if(b=_.R1(t).entityType,b=_.I1(e,b,t))W.flowState=b,W.flowStateEntityKey=t}};
_.Ec.Object.defineProperties(c5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
c5[dU]=[w0];var RGP=function(){};
_.Z(RGP,F_);_.r=RGP.prototype;_.r.getApiPaths=function(){return yhk};
_.r.JSC$11058_getStoreKey=function(){return _.Y4("guide")};
_.r.getRequestConfig=function(){var W=this.JSC$11058_getStoreKey(),e;W&&(e={storeStrategy:{storeKey:W}});return e};
_.r.isNavigationCommand=function(){return!0};
_.r.getExtension=function(W){return _.l(W,_.c6)};
_.r.JSC$11051_buildRequest=function(W){W.fetchLiveState=!0};var v5=function(){};
_.Z(v5,F_);v5.prototype.getApiPaths=function(){return H5h};
v5.prototype.getExtension=function(W){return _.l(W,lcB)};
v5.prototype.JSC$11051_buildRequest=function(){};var GA=function(){};
_.Z(GA,F_);GA.prototype.getApiPaths=function(){return KwS};
GA.prototype.getExtension=function(W){return _.l(W,ZsB)};
GA.prototype.JSC$11051_buildRequest=function(){};var DW=function(){};
_.Z(DW,F_);DW.prototype.getApiPaths=function(){return xrr};
DW.prototype.getExtension=function(W){return _.l(W,_.hp)};
DW.prototype.JSC$11051_buildRequest=function(W,e){e.token&&(W.continuation=e.token);var t,b;W==null||(t=W.context)==null||(b=t.user)==null||delete b.onBehalfOfUser};
DW.prototype.getRequestConfig=function(W){var e={},t;if(((t=this.getExtension(W))==null?void 0:t.sessionIndex)!==void 0){var b;e={authStrategy:{sessionIndex:(b=this.getExtension(W))==null?void 0:b.sessionIndex}}}return e};var Sk=function(){};
_.Z(Sk,F_);Sk.prototype.JSC$11051_getRequest=function(W){var e=this.getExtension(W),t=W="";if(e==null?0:e.popup)W="true";if(e==null?0:e.disableSignout)t="true";e={};return{input:"/getAccountSwitcherEndpoint",requestShell:ik("/getAccountSwitcherEndpoint","GET",(e["X-YouTube-Delegation-Context"]=_.Ot("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),e["X-YouTube-Account-Switcher-Popup"]=W,e["X-YouTube-Account-Switcher-Disable-Signout"]=t,e)),innerTubeRequest:{}}};
Sk.prototype.getApiPaths=function(){return[]};
Sk.prototype.getExtension=function(W){return _.l(W,_.GsG)};
Sk.prototype.JSC$11051_buildRequest=function(){};var B5=function(){};
_.Z(B5,F_);B5.prototype.JSC$11051_getRequest=function(W){var e="/cross_account_channel_transfer";(W=this.getExtension(W))&&(e=oSD(e,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:e,requestShell:ik(e,"GET"),innerTubeRequest:{}}};
B5.prototype.getApiPaths=function(){return[]};
B5.prototype.getExtension=function(W){return _.l(W,B08)};
B5.prototype.JSC$11051_buildRequest=function(){};var o2=function(){};
_.Z(o2,F_);o2.prototype.getApiPaths=function(){return RdZ};
o2.prototype.isNavigationCommand=function(){return!0};
o2.prototype.getExtension=function(W){return _.l(W,_.c6)};
o2.prototype.JSC$11051_buildRequest=function(W){var e=_.B6().get("gsml","");e&&(W.safetyModeLockerObfuscatedGaiaId=e);W.userInterfaceTheme=_.jf(!0);_.CB()?W.deviceTheme="DEVICE_THEME_SELECTED":_.uNS()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var ls=function(){};
_.Z(ls,F_);ls.prototype.getApiPaths=function(){return xrr};
ls.prototype.getExtension=function(W){return _.l(W,oBB)};
ls.prototype.JSC$11051_buildRequest=function(W,e){if(e&&e.requestType&&(W.requestType=e.requestType,e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var t=e.nextUrl;t&&(_.Z1K(t)||ND(t))&&(W.nextNavendpoint={urlEndpoint:{url:t}})}e&&e.channelSwitcherQuery&&(W.channelSwitcherQuery=e.channelSwitcherQuery);e&&e.triggerChannelCreation&&(W.triggerChannelCreation=e.triggerChannelCreation);var b;if(e==null?0:(b=e.contentOwnerConfig)==
null?0:b.externalContentOwnerId)W.contentOwnerConfig=e.contentOwnerConfig;W.callCircumstance=e&&e.requestType&&e.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var m,q;e=W==null?void 0:(m=W.context)==null?void 0:(q=m.user)==null?void 0:q.onBehalfOfUser;if(e!==void 0){W.obfuscatedSelectedGaiaId=e;var Q,X;W==null||(Q=W.context)==null||(X=Q.user)==null||delete X.onBehalfOfUser}var I,u;if(m=W==null?void 0:(I=W.context)==null?void 0:(u=I.user)==null?
void 0:u.serializedDelegationContext)W.selectedSerializedDelegationContext=m};var ZW=function(){};
_.Z(ZW,F_);ZW.prototype.getApiPaths=function(){return Bto};
ZW.prototype.getExtension=function(W){return _.l(W,vBv)};
ZW.prototype.JSC$11051_buildRequest=function(W,e){e.profileOwnerExternalChannelId&&(W.profileOwnerExternalChannelId=e.profileOwnerExternalChannelId);e.profileCardContext&&(W.profileCardContext=e.profileCardContext)};var $C=function(){};
_.Z($C,F_);$C.prototype.getApiPaths=function(){return M8S};
$C.prototype.getExtension=function(W){return _.l(W,w_N)};
$C.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var kC=function(){};
_.Z(kC,F_);kC.prototype.getApiPaths=function(){return zYk};
kC.prototype.getExtension=function(W){return _.l(W,_.yFU)};
kC.prototype.JSC$11051_buildRequest=function(W,e){if(e=e.createBroadcastRequest)W.useMasks=e.useMasks,W.broadcastType=e.broadcastType,W.broadcastSource=e.broadcastSource,W.broadcastMetadata=e.broadcastMetadata,W.broadcastMetadataMask=e.broadcastMetadataMask,W.videoMetadata=e.videoMetadata,W.videoMetadataMask=e.videoMetadataMask,W.liveChatSettingsUpdate=e.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=e.liveChatSettingsUpdateMask,W.cloneVideoId=e.cloneVideoId,W.cloneWithOverrides=e.cloneWithOverrides,
W.targetEntity=e.targetEntity,W.scheduledRedirectMetadata=e.scheduledRedirectMetadata};var pX=function(){};
_.Z(pX,F_);pX.prototype.getApiPaths=function(){return A2B};
pX.prototype.getExtension=function(W){return _.l(W,kDo)};
pX.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.params&&(W.params=e.params);t.questionText&&(W.questionText=t.questionText);t.optionText&&t.optionText.length>0&&(W.optionText=t.optionText)};var y7=function(){};
_.Z(y7,F_);y7.prototype.getApiPaths=function(){return Wy8};
y7.prototype.getExtension=function(W){return _.l(W,ZVk)};
y7.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var jk=function(){};
_.Z(jk,F_);jk.prototype.getApiPaths=function(){return aUN};
jk.prototype.getExtension=function(W){return _.l(W,SXS)};
jk.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var CX=function(){};
_.Z(CX,F_);CX.prototype.getApiPaths=function(){return u_r};
CX.prototype.getExtension=function(W){return _.l(W,Bu8)};
CX.prototype.JSC$11051_buildRequest=function(W,e,t){e.params&&(W.params=e.params);e.continuation&&(W.continuation=e.continuation);t.currentPlayerState&&t.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:t.currentPlayerState.playerOffsetMs.toString()})};var nX=function(){};
_.Z(nX,F_);nX.prototype.getApiPaths=function(){return chk};
nX.prototype.getExtension=function(W){return _.l(W,D3D)};
nX.prototype.JSC$11051_buildRequest=function(W,e,t){e.params&&(W.params=e.params);t.continuation&&(W.continuation=t.continuation);"hidden"in t&&(W.webClientInfo={isDocumentHidden:t.hidden});t.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=t.isInvalidationTimeoutRequest);t.invalidationPayload&&(e=GDZ(_.Xb(dM(t.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=x2(e,2));t.reloadActionPanel&&(W.reloadActionPanel=t.reloadActionPanel);t.fullReload&&(W.fullReload=t.fullReload);
t.currentPlayerState&&(W.currentPlayerState=t.currentPlayerState)};var fX=function(){};
_.Z(fX,F_);fX.prototype.getApiPaths=function(){return fUZ};
fX.prototype.getExtension=function(W){return _.l(W,$3h)};
fX.prototype.JSC$11051_buildRequest=function(W,e){W.params=e.params};var gK=function(){};
_.Z(gK,F_);gK.prototype.getApiPaths=function(){return w1e};
gK.prototype.getExtension=function(W){return _.l(W,C9h)};
gK.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var TA=function(){};
_.Z(TA,F_);TA.prototype.getApiPaths=function(){return v6e};
TA.prototype.getExtension=function(W){return _.l(W,nc8)};
TA.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var Jd=function(){};
_.Z(Jd,F_);Jd.prototype.getApiPaths=function(){return g6P};
Jd.prototype.getExtension=function(W){return _.l(W,pqr)};
Jd.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var xC=function(){};
_.Z(xC,F_);xC.prototype.getApiPaths=function(){return JhB};
xC.prototype.getExtension=function(W){return _.l(W,ynB)};
xC.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var OO=function(){};
_.Z(OO,F_);OO.prototype.getApiPaths=function(){return V1P};
OO.prototype.getExtension=function(W){return _.l(W,vce)};
OO.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var Mh=function(){};
_.Z(Mh,F_);Mh.prototype.getApiPaths=function(){return Ah8};
Mh.prototype.getExtension=function(W){return _.l(W,_.jrv)};
Mh.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.params&&(W.params=e.params);t.client_message_id&&(W.clientMessageId=t.client_message_id);t.recaptcha_token&&(W.recaptchaToken=t.recaptcha_token);t.rich_message&&t.rich_message.text_segments?(e=t.rich_message.text_segments.map(function(b){var m={};b.text&&(m.text=b.text);b.emoji_id&&(m.emojiId=b.emoji_id);return m}),W.richMessage={textSegments:e}):t.message&&(W.message=t.message);
t.currentPlayerState&&(W.currentPlayerState=t.currentPlayerState)};var sO=function(){};
_.Z(sO,F_);sO.prototype.getApiPaths=function(){return NtN};
sO.prototype.getExtension=function(W){return _.l(W,Cjv)};
sO.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var hd=function(){};
_.Z(hd,F_);hd.prototype.getApiPaths=function(){return t$Z};
hd.prototype.getExtension=function(W){return _.l(W,fYb)};
hd.prototype.JSC$11051_buildRequest=function(W,e,t){e.isUserInitiated&&(W.isUserInitiated=e.isUserInitiated);e.initiationSource&&(W.initiationSource=e.initiationSource);t.locationInfo&&(W.context.client.locationInfo=t.locationInfo)};var H5=function(){};
_.Z(H5,F_);H5.prototype.getApiPaths=function(){return Ttk};
H5.prototype.getExtension=function(W){return _.l(W,j8v)};
H5.prototype.JSC$11051_buildRequest=function(W,e,t){e.metadataUpdateRequest&&(e=e.metadataUpdateRequest,W.encryptedVideoId=e.encryptedVideoId,e.liveChat&&(e=e.liveChat,W.liveChat||(W.liveChat={}),e.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=e.performAsExternalChannelId),e.source&&(W.liveChat.source=e.source)));var b;if(t==null?0:(b=t.liveChat)==null?0:b.liveChatSettings)W.liveChat||(W.liveChat={}),t=t.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=t,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),t.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var KX=function(){};
_.Z(KX,F_);KX.prototype.getApiPaths=function(){return IzZ};
KX.prototype.getExtension=function(W){return _.l(W,_.KWP)};
KX.prototype.JSC$11051_buildRequest=function(W,e,t){t.continuation?W.continuation=t.continuation:e.videoId&&(W.videoId=e.videoId);t.clientParams&&(W.clientParams=t.clientParams)};var P5=function(){};
_.Z(P5,F_);P5.prototype.getApiPaths=function(){return GIy};
P5.prototype.getExtension=function(W){return _.l(W,_.Tr)};
P5.prototype.JSC$11051_buildRequest=function(W,e){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};e.videoId&&(W.fetchCommentsParams.encryptedVideoId=e.videoId);e.postId&&(W.fetchCommentsParams.postId=e.postId);e.externalChannelId&&(W.fetchCommentsParams.externalChannelId=e.externalChannelId);e.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=e.linkedCommentId);(0,_.kJ.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var V7=function(){};
_.Z(V7,F_);V7.prototype.getApiPaths=function(){return bC};
V7.prototype.JSC$11051_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
V7.prototype.getExtension=function(W){return _.l(W,_.c6)};var is=function(){};
_.Z(is,F_);is.prototype.getApiPaths=function(){return GIy};
is.prototype.JSC$11051_buildRequest=function(W,e){e.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");e.ctoken&&(W.ctoken=e.ctoken)};
var QfD=function(){};
_.Z(QfD,is);QfD.prototype.getExtension=function(W){return _.l(W,_.c6)};
var FbZ=function(){};
_.Z(FbZ,is);FbZ.prototype.getExtension=function(W){return _.l(W,X9P)};var YC=function(){};
_.Z(YC,F_);YC.prototype.getApiPaths=function(){return $Qh};
YC.prototype.getExtension=function(W){return _.l(W,_.c6)};
YC.prototype.JSC$11051_buildRequest=function(){};var zA=function(){};
_.Z(zA,F_);zA.prototype.getApiPaths=function(){return xQS};
zA.prototype.getExtension=function(W){return _.l(W,OxZ)||void 0};
zA.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params);e.secondaryParams&&(W.secondaryParams=e.secondaryParams)};var UO=function(){};
_.Z(UO,F_);UO.prototype.getApiPaths=function(){return OTZ};
UO.prototype.getExtension=function(W){return _.l(W,uRB)};
UO.prototype.JSC$11051_buildRequest=function(W,e){e.undo&&(W.undo=e.undo);e.serializedOptOut&&(W.serializedOptOut=e.serializedOptOut);e.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=e.serializedRecordInteractionsRequest)};var LX=function(){};
_.Z(LX,F_);LX.prototype.getApiPaths=function(){return hdD};
LX.prototype.getExtension=function(W){return _.l(W,cqh)};
LX.prototype.JSC$11051_buildRequest=function(W,e){e.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=e.serializedInteractionsRequest)};var EO=function(){};
_.Z(EO,F_);EO.prototype.getApiPaths=function(){return ZZG};
EO.prototype.getExtension=function(W){return _.l(W,kss)};
EO.prototype.JSC$11051_buildRequest=function(W,e,t){e=e===void 0?{}:e;t=t===void 0?{}:t;e.videoId?W.videoId=e.videoId:e.playlistId&&(W.playlistId=e.playlistId);var b,m=(b=e.offlineWebClientEligibility)!=null?b:t.offlineWebClientEligibility;m&&(W.offlineWebClientEligibility=m);var q;if(b=(q=e.preferredFormatType)!=null?q:t.preferredFormatType)W.preferredFormatType=b;var Q;if(q=(Q=e.lastOfflineQualitySettingsSavedMs)!=null?Q:t.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=q;
e.params&&(W.params=e.params)};var Ad=function(){};
_.Z(Ad,F_);Ad.prototype.getApiPaths=function(){return Ar};
Ad.prototype.getExtension=function(W){return _.l(W,_.hp)};
Ad.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.token&&(W.continuation=e.token);t.formData&&(W.formData=t.formData)};var Nh=function(){};
_.Z(Nh,F_);Nh.prototype.getApiPaths=function(){return Ar};
Nh.prototype.getExtension=function(W){return _.l(W,l6y)};
Nh.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;W.continuation=t.continuation};var dK=function(){};
_.Z(dK,F_);dK.prototype.getApiPaths=function(){return Ar};
dK.prototype.getExtension=function(W){return _.l(W,_.xB)};
dK.prototype.JSC$11051_buildRequest=function(W,e){var t,b=e.panelIdentifier||((t=e.identifier)==null?void 0:t.tag);b&&(W.panelId=b);var m;if((m=e.globalConfiguration)==null?0:m.params){var q;W.params=(q=e.globalConfiguration)==null?void 0:q.params}};
_.Ec.Object.defineProperties(dK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WD=function(){};
_.Z(WD,F_);WD.prototype.getApiPaths=function(){return Ar};
WD.prototype.getExtension=function(W){return _.l(W,qWP)};
WD.prototype.JSC$11051_buildRequest=function(W,e){e.panelLoadingStrategy&&SKR(W,e.panelLoadingStrategy)};var eD=function(){};
_.Z(eD,F_);eD.prototype.getApiPaths=function(){return Ar};
eD.prototype.getExtension=function(W){return _.l(W,p_B)};
eD.prototype.JSC$11051_buildRequest=function(W,e){e.loadingStrategy&&SKR(W,e.loadingStrategy)};var tW=function(){};
_.Z(tW,F_);tW.prototype.getApiPaths=function(){return Ar};
tW.prototype.getExtension=function(W){return _.l(W,_.BS)};
tW.prototype.JSC$11051_buildRequest=function(W,e){e.panelLoadingStrategy&&SKR(W,e.panelLoadingStrategy)};var bW=function(){};
_.Z(bW,F_);bW.prototype.getApiPaths=function(){return Ar};
bW.prototype.getExtension=function(W){return _.l(W,yqD)};
bW.prototype.JSC$11051_buildRequest=function(W,e){var t,b=(t=e.contentSourcePanelIdentifier)==null?void 0:t.tag;b&&(W.panelId=b);var m;if((m=e.globalConfiguration)==null?0:m.params){var q;W.params=(q=e.globalConfiguration)==null?void 0:q.params}};var mR=function(){};
_.Z(mR,F_);mR.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
mR.prototype.getExtension=function(W){return _.l(W,j3B)};
mR.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var rx=function(){};
_.Z(rx,F_);rx.prototype.getApiPaths=function(){return X4U};
rx.prototype.getExtension=function(W){return _.l(W,f5h)};
rx.prototype.JSC$11051_buildRequest=function(W,e){e.externalChannelId&&(W.externalChannelId=e.externalChannelId);e.superChatAction&&(W.superChatAction=e.superChatAction);e.superStickersAction&&(W.superStickersAction=e.superStickersAction)};var ql=function(){};
_.Z(ql,F_);ql.prototype.getApiPaths=function(){return Qeo};
ql.prototype.getExtension=function(W){return _.l(W,oFU)||_.l(W,yYg)};
ql.prototype.JSC$11051_buildRequest=function(W,e){e.videoIds?W.videoIds=e.videoIds:e.videoId&&(W.videoIds=[e.videoId]);e.playlistId&&(W.playlistId=e.playlistId);e.params&&(W.params=e.params);W.excludeWatchLater=!1};var RY=function(){};
_.Z(RY,F_);RY.prototype.getApiPaths=function(){return NSN};
RY.prototype.getExtension=function(W){return _.l(W,_.Hz)};
RY.prototype.JSC$11051_buildRequest=function(W,e,t){t.create_playlist_title?W.title=t.create_playlist_title:e.title&&(W.title=e.title);if(t.create_playlist_privacy_status&&typeof t.create_playlist_privacy_status==="number"){a:{var b=t.create_playlist_privacy_status;if(b!==0){if(b===1){b="PUBLIC";break a}if(b===2){b="UNLISTED";break a}}b="PRIVATE"}W.privacyStatus=b}else e.privacyStatus&&(W.privacyStatus=e.privacyStatus);t.create_playlist_description&&(W.description=t.create_playlist_description);e.videoIds&&
(W.videoIds=e.videoIds);e.params&&(W.params=e.params);e.sourcePlaylistId&&(W.sourcePlaylistId=e.sourcePlaylistId)};var Qr=function(){};
_.Z(Qr,F_);Qr.prototype.getApiPaths=function(){return ede};
Qr.prototype.getExtension=function(W){return _.l(W,JXe)};
Qr.prototype.JSC$11051_buildRequest=function(W,e){W.playlistId=e.playlistId};var Fv=function(){};
_.Z(Fv,F_);Fv.prototype.getApiPaths=function(){return DQN};
Fv.prototype.getExtension=function(W){return _.l(W,Q3D)};
Fv.prototype.JSC$11051_buildRequest=function(W,e){e.playlistId&&(W.playlistId=e.playlistId);e.params&&(W.params=e.params)};var Xv=function(){};
_.Z(Xv,F_);Xv.prototype.getApiPaths=function(){return seD};
Xv.prototype.getExtension=function(W){return _.l(W,_.Jr)||void 0};
Xv.prototype.JSC$11051_buildRequest=function(W,e){e.actions&&(W.actions=e.actions);e.params&&(W.params=e.params);e.playlistId&&(W.playlistId=e.playlistId)};var IY=function(){};
_.Z(IY,F_);_.r=IY.prototype;_.r.getApiPaths=function(){return HTU};
_.r.getExtension=function(W){return _.l(W,_.Za)};
_.r.JSC$11051_buildRequest=function(W,e){e.videoId&&(W.playerRequest={videoId:e.videoId},e.playerParams&&(W.playerRequest.params=e.playerParams),e.racyCheckOk&&(W.playerRequest.racyCheckOk=!!e.racyCheckOk),e.contentCheckOk&&(W.playerRequest.contentCheckOk=!!e.contentCheckOk));e.params&&(W.params=e.params);e.inputType&&(W.inputType=e.inputType);W.disablePlayerResponse=!0};
_.r.getRequestConfig=function(W){var e;(W=this.JSC$11058_getStoreKey(W))&&(e={storeStrategy:{storeKey:W}});_.S("web_log_reels_ticks")&&(e=e||{},e.requestTick="r_wrs",e.responseTick="r_wrr");return e};
_.r.JSC$11058_getStoreKey=function(W){W=this.getExtension(W);if(_.S("shorts_controller_retrieve_seedless_sequence_v2")){if((W==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Y4("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.S("web_prefetch_riw_for_next_video")||_.S("web_shorts_prefetch_service_enabled"))&&W!=null&&W.videoId){var e={videoId:W.videoId};W.params&&(e.params=W.params);return _.Y4("reel_item_watch",e)}};var aY=function(){};
_.Z(aY,F_);_.r=aY.prototype;_.r.getApiPaths=function(){return KyB};
_.r.getExtension=function(W){return _.l(W,_.Za)};
_.r.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;W.sequenceParams=e.sequenceParams;var b;((b=t)==null?0:b.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:t.contentPlaybackContext})};
_.r.JSC$11058_getStoreKey=function(W){if(_.S("shorts_controller_retrieve_seedless_sequence_v2")&&(W=this.getExtension(W),W==null?0:W.sequenceParams))return _.Y4("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.r.getRequestConfig=function(W){W=this.JSC$11058_getStoreKey(W);var e;W&&(e={storeStrategy:{storeKey:W}});_.S("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};
var wx=function(){};
_.Z(wx,F_);wx.prototype.getApiPaths=function(){return KyB};
wx.prototype.getExtension=function(W){return _.l(W,_.hp)};
wx.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.token&&(W.continuation=e.token);var b;((b=t)==null?0:b.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:t.contentPlaybackContext})};
wx.prototype.getRequestConfig=function(W){W=this.JSC$11058_getStoreKey(W);var e;W&&(e={storeStrategy:{storeKey:W}});_.S("reel_watch_sequence_request_log_ticks")&&(e=e||{},e.requestTick="r_wsrs",e.responseTick="r_wsrr",e.processorTick="r_wsrp");return e};var uW=function(){};
_.Z(uW,F_);uW.prototype.getApiPaths=function(){return rhN};
uW.prototype.getExtension=function(W){return _.l(W,_.OdD)};
uW.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.flagAction&&(W.action=e.flagAction);e.flagRequestType&&(W.flagRequestType=e.flagRequestType);e.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=e.additionalDetailCheckboxChecked);e.legalCheckboxChecked&&(W.legalCheckboxChecked=e.legalCheckboxChecked);e={};t.flag_issue_type!==void 0&&(e.issue=t.flag_issue_type);t.flag_affiliation!==void 0&&(e.affiliation=t.flag_affiliation);t.flag_full_name&&(e.fullName=t.flag_full_name);
Object.keys(e).length&&(W.legalReportDetails=e);if(t.flag_description||t.text)W.userComments=t.flag_description||t.text;e={};t.minutes!==void 0&&t.seconds!==void 0&&(e.minutes=t.minutes,e.seconds=t.seconds);t.vss_id&&(e.vssId=t.vss_id);Object.keys(e).length&&(W.videoReportDetails=e);e={};t.video_ids&&(e.videoIds=t.video_ids);t.impersonated_channel_url&&(e.impersonatedChannelUrl=t.impersonated_channel_url);Object.keys(e).length&&(W.channelAbuseReportDetails=e)};
_.Ec.Object.defineProperties(uW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cD=function(){};
_.Z(cD,F_);cD.prototype.getApiPaths=function(){return IUS};
cD.prototype.getExtension=function(W){return _.l(W,F6b)};
cD.prototype.JSC$11051_buildRequest=function(W,e){e.blockedForKidsContent&&(W.blockedForKidsContent=e.blockedForKidsContent)};var vD=function(){};
_.Z(vD,F_);vD.prototype.getApiPaths=function(){return iTh};
vD.prototype.getExtension=function(W){return _.l(W,pER)};
vD.prototype.JSC$11051_buildRequest=function(W,e,t){W.params=e.params;t.impersonated_channel_url&&(W.impersonatedChannelUrl=t.impersonated_channel_url)};var GO=function(){};
_.Z(GO,F_);GO.prototype.getApiPaths=function(){return CTS};
GO.prototype.getExtension=function(W){return _.l(W,_.Xqv)};
GO.prototype.JSC$11051_buildRequest=function(W,e){e.items&&(W.items=e.items);e.kidGaiaId&&(W.kidGaiaId=e.kidGaiaId)};var DC=function(){};
_.Z(DC,F_);DC.prototype.getApiPaths=function(){return Fyb};
DC.prototype.getExtension=function(W){return _.l(W,_.SUy)};
DC.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params);e.targetId&&(W.targetId=e.targetId)};var SD=function(){};
_.Z(SD,F_);SD.prototype.getApiPaths=function(){return Lyk};
SD.prototype.getExtension=function(W){return _.l(W,Iuy)};
SD.prototype.JSC$11051_buildRequest=function(W,e){e.externalVideoId&&(W.externalVideoId=e.externalVideoId);e.query&&(W.query=e.query);e.sourceTimelines&&(W.sourceTimelines=e.sourceTimelines)};var BD=function(){};
_.Z(BD,F_);BD.prototype.getApiPaths=function(){return E6k};
BD.prototype.getExtension=function(W){return _.l(W,_.hp)||void 0};
BD.prototype.JSC$11051_buildRequest=function(W,e){e.token&&(W.continuation=e.token)};
_.Xxr=function(){};
_.Z(_.Xxr,F_);_.r=_.Xxr.prototype;_.r.getApiPaths=function(){return E6k};
_.r.getExtension=function(W){return _.l(W,_.Bw)||void 0};
_.r.isNavigationCommand=function(){return!0};
_.r.JSC$11058_getStoreKey=function(W,e){e=e===void 0?{}:e;if(!e.disableCache&&(W=this.getExtension(W))&&W.query)return e={query:W.query},W.params&&(e.params=W.params),_.Y4("search",e)};
_.r.JSC$11051_buildRequest=function(W,e,t){e.query&&(W.query=e.query);e.params&&(W.params=e.params);if(!_.S("web_forward_suggest_stats_killswitch")){var b=_.l(e,eIr);b&&(W.suggestStats=b)}var m;!_.S("kevlar_searchbox_stats_killswitch")&&((m=t.tempData)==null?0:m.gs_l)&&!_.l(e,eIr)&&(W.webSearchboxStatsUrl="/search?oq="+(t.tempData.oq||"")+"&gs_l="+t.tempData.gs_l);var q;if((q=t.tempData)==null?0:q.entityMid)e=W.suggestionSearchParams||{},e.entityMid=t.tempData.entityMid,W.suggestionSearchParams=e};
_.r.getRequestConfig=function(W,e){e=e===void 0?{}:e;W=this.JSC$11058_getStoreKey(W,e);var t;W&&(t={storeStrategy:{storeKey:W}});_.S("web_log_search_ticks_ks")||(t=t||{},t.requestTick="sr_s",t.responseTick="sr_r");return t};var oY=function(){};
_.Z(oY,F_);oY.prototype.getApiPaths=function(){return lUB};
oY.prototype.getExtension=function(W){return _.l(W,z9b)};
oY.prototype.JSC$11051_buildRequest=function(W,e){e.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=e.serializedGetSharingProviderDataParams)};var lW=function(){};
_.Z(lW,F_);lW.prototype.getApiPaths=function(){return ZTP};
lW.prototype.getExtension=function(W){return _.l(W,fuv)};
lW.prototype.JSC$11051_buildRequest=function(W,e){e.endpoint&&(W.endpoint=e.endpoint);e.action&&(W.action=e.action)};var ZC=function(){};
_.Z(ZC,F_);ZC.prototype.getApiPaths=function(){return t1P};
ZC.prototype.getExtension=function(W){return _.l(W,xU8)};
ZC.prototype.JSC$11051_buildRequest=function(W,e){W.videoId=e.videoId;e.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:e.scheduledRedirectMetadataSourceVideoId})};var $d=function(){};
_.Z($d,F_);$d.prototype.getApiPaths=function(){return WIN};
$d.prototype.getExtension=function(W){return _.l(W,_.j78)};
$d.prototype.JSC$11051_buildRequest=function(W,e){W.params=e.params;W.correctionText=e.correctionText};var kd=function(){};
_.Z(kd,F_);kd.prototype.getApiPaths=function(){return o8v};
kd.prototype.getExtension=function(W){return _.l(W,_.auP)};
kd.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params);W.searchQuery=e.searchQuery;W.languageCode=e.languageCode;W.kind=e.kind;W.name=e.name;W.externalVideoId=e.externalVideoId};var pw=function(){};
_.Z(pw,F_);pw.prototype.getApiPaths=function(){return cH8};
pw.prototype.getExtension=function(W){return _.l(W,Pyy)};
pw.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.params=e.params)};var yr=function(W){this.JSC$16016_storeWithEntities=W};
_.Z(yr,F_);yr.prototype.getApiPaths=function(){return i5b};
yr.prototype.getExtension=function(W){return _.l(W,ify)||_.l(W,zkP)};
yr.prototype.JSC$11051_buildRequest=function(W,e,t){t.client_data&&(W.clientData=t.client_data);if(e.commerceActionConfig){var b=e.commerceActionConfig;e=b.actionId;b=b.commerceActionParams;e&&(W.actionId=e);b&&(W.commerceActionParams=b)}else{var m=e.actionId,q=e.commerceActionParams;t=e.entityKeys;m&&(W.actionId=m);q&&(W.commerceActionParams=q);var Q;e=(b=this.JSC$16016_storeWithEntities)==null?void 0:(Q=b.getState())==null?void 0:Q.entities;if(t&&e){b=[];Q=_.R(t);for(t=Q.next();!t.done;t=Q.next())if(m=
t.value,t=_.R1(m).entityType,m=_.I1(e,t,m))q={},b.push((q[t]=m,q));W.entityMutationPayloads=b}}};
yr.prototype.getRequestConfig=function(W){var e,t=(e=_.l(W,ify))==null?void 0:e.requestSequenceType;if(t&&W.clickTrackingParams&&t!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:t}}};
yr[dU]=[w0];var jD=function(){};
_.Z(jD,F_);jD.prototype.getApiPaths=function(){return vyN};
jD.prototype.getExtension=function(W){return _.l(W,_.IBo)};
jD.prototype.JSC$11051_buildRequest=function(W,e){e.feedbackData&&(W.feedbackData=e.feedbackData);e.params&&(W.itemParams=e.params)};
_.Ec.Object.defineProperties(jD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Cw=function(){};
_.Z(Cw,F_);Cw.prototype.getApiPaths=function(){return Gev};
Cw.prototype.getExtension=function(W){return _.l(W,aBe)};
Cw.prototype.JSC$11051_buildRequest=function(W,e,t){t.payments_payload&&(W.paymentsPayload=t.payments_payload);t.offer_params&&(W.offerParams=t.offer_params);e.transactionParams&&(W.transactionParams=e.transactionParams)};var nw=function(){};
_.Z(nw,F_);nw.prototype.getApiPaths=function(){return DMB};
nw.prototype.getExtension=function(W){return _.l(W,_.w2v)};
nw.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.buybucketParams&&(W.buybucketData={params:e.buybucketParams},e.stickerParams?W.buybucketData.stickerParams=e.stickerParams:(t.rich_chat_message?W.buybucketData.richChatMessage=t.rich_chat_message:t.chat_message_text&&(W.buybucketData.chatMessageText=t.chat_message_text),t.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=t.purchase_price_micros.toString())));e.donationAmountMicros&&(W.tipAmountMicros=e.donationAmountMicros,
e.tipParams&&(W.tipParams=e.tipParams));e.offerParams&&(W.offerParams=e.offerParams);e.productData&&(W.productData=e.productData);e.transactionParams&&(W.transactionParams=e.transactionParams)};var fw=function(){};
_.Z(fw,F_);fw.prototype.getApiPaths=function(){return SPN};
fw.prototype.getExtension=function(W){return _.l(W,v0D)};
fw.prototype.JSC$11051_buildRequest=function(W,e){e.updateFopParams&&(W.updateFopParams=e.updateFopParams)};var gx=function(){};
_.Z(gx,F_);gx.prototype.getApiPaths=function(){return BqB};
gx.prototype.getExtension=function(W){return _.l(W,_.Rw)};
gx.prototype.JSC$11051_buildRequest=function(W,e){e.couponCode&&(W.couponCode=e.couponCode);e.params&&(W.itemParams=e.params)};var TO=function(){};
_.Z(TO,F_);TO.prototype.getApiPaths=function(){return oyb};
TO.prototype.getExtension=function(W){return _.l(W,_.YWy)};
TO.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;e.params&&(W.params=e.params);t.ctk&&(W.clientToken=t.ctk)};var JW=function(W){this.JSC$16051_storeWithEntities=W};
_.Z(JW,F_);JW.prototype.getApiPaths=function(){return lzZ};
JW.prototype.getExtension=function(W){return _.l(W,_.Pz)};
JW.prototype.JSC$11051_buildRequest=function(W,e,t){t.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:t.purchase_price_micros.toString()}},t.rich_chat_message&&(W.productData.pdgData.richChatMessage=t.rich_chat_message),t.currency_code&&(W.productData.pdgData.currencyCode=t.currency_code));e.transactionParams&&(W.transactionParams=e.transactionParams);e.clientLocationContext&&(W.clientLocationContext=e.clientLocationContext);t.payments_payload&&(W.paymentsPayload=t.payments_payload);
t.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=t.funds_guarantee_callback_client_data);var b,m;t=(b=this.JSC$16051_storeWithEntities)==null?void 0:(m=b.getState())==null?void 0:m.entities;if(e.entityKeys&&t){b=[];e=_.R(e.entityKeys);for(m=e.next();!m.done;m=e.next()){var q=m.value;m=_.R1(q).entityType;if(q=_.I1(t,m,q)){var Q={};b.push((Q[m]=q,Q))}}W.entityMutationPayloads=b}};
JW[dU]=[w0];var xd=function(){};
_.Z(xd,F_);xd.prototype.getApiPaths=function(){return Z7P};
xd.prototype.getExtension=function(W){return _.l(W,uWB)};
xd.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;t.backend_analytics&&(W.serializedBackendAnalyticsEvent=t.backend_analytics);e.offerParams&&(W.offerParams=e.offerParams)};var OA=function(){};
_.Z(OA,F_);OA.prototype.getApiPaths=function(){return BqB};
OA.prototype.getExtension=function(W){return _.l(W,aFS)};
OA.prototype.JSC$11051_buildRequest=function(W,e){e.params&&(W.itemParams=e.params)};var Ml=function(){};
_.Z(Ml,F_);Ml.prototype.getApiPaths=function(){return $MZ};
Ml.prototype.getExtension=function(W){return _.l(W,_.NvD)};
Ml.prototype.JSC$11051_buildRequest=function(W,e,t){t.resume_time_ms&&(W.resumeTimeMs=t.resume_time_ms);e.pauseParams&&(W.pauseParams=e.pauseParams)};var sA=function(){};
_.Z(sA,F_);sA.prototype.getApiPaths=function(){return keh};
sA.prototype.getExtension=function(W){return _.l(W,_.c2P)};
sA.prototype.JSC$11051_buildRequest=function(W,e,t){t=t===void 0?{}:t;t.c&&(W.redeemCode=t.c);t.rd&&(W.riskData=t.rd);t.ctk&&(W.clientToken=t.ctk)};var hW=function(){};
_.Z(hW,F_);hW.prototype.getApiPaths=function(){return p4k};
hW.prototype.getExtension=function(W){return _.l(W,_.dde)};
hW.prototype.JSC$11051_buildRequest=function(W,e){e.resumeParams&&(W.resumeParams=e.resumeParams)};var HD=function(W,e){this.clientName=W;this.defaultExpirationDelayMs=e};
HD.prototype.put=function(W,e){var t=this,b;return _.F(function(m){b=Object.assign({},e.data);b.key=W;b.clientName=t.clientName;b.expireTimestampMs===void 0&&(b.expireTimestampMs=(Math.round((0,_.eJ)())+t.defaultExpirationDelayMs).toString());return m.return(t.putInternal(W,b))})};
HD[dU]=[Dv,$aB];var IrZ=function(){HD.apply(this,arguments);this.JSC$16081_responseStore=new Map};
_.Z(IrZ,HD);_.r=IrZ.prototype;_.r.get=function(W){var e=this;return _.F(function(t){return t.return(RL(e,W))})};
_.r.putInternal=function(W,e){var t=this,b,m,q;return _.F(function(Q){b=t.defaultExpirationDelayMs;e.expireTimestampMs&&(b=Number(e.expireTimestampMs)-Math.round((0,_.eJ)()),m=_.mn("mweb_override_response_store_expiration_ms"),m>0&&m<b&&(b=m));q=setTimeout(function(){t.remove(W)},b);
t.JSC$16081_responseStore.set(W,{entryData:e,timer:q});_.u8(Q)})};
_.r.remove=function(W){var e=this;return _.F(function(t){arh(e,W);_.u8(t)})};
_.r.removeAll=function(){var W=this;return _.F(function(e){W.JSC$16081_responseStore.forEach(function(t){clearTimeout(t.timer)});
W.JSC$16081_responseStore.clear();_.u8(e)})};
_.r.has=function(W){return!!this.JSC$16081_responseStore.get(W)};
_.r.getKeys=function(){return this.JSC$16081_responseStore.keys()};
var RL=function(W,e){if(W=W.JSC$16081_responseStore.get(e))return new _.qv(W.entryData)},arh=function(W,e){var t=W.JSC$16081_responseStore.get(e);
t&&(clearTimeout(t.timer),W.JSC$16081_responseStore.delete(e))};var BIK;var Zgc=function(W,e,t){HD.call(this,W,e);this.token=t};
_.Z(Zgc,HD);_.r=Zgc.prototype;_.r.get=function(W){var e=this,t,b;return _.F(function(m){return m.nextAddress==1?_.a(m,lf9(e.token),2):m.nextAddress!=3?(t=m.yieldResult,_.a(m,t.get("ResponseStore",[W,e.clientName]),3)):(b=m.yieldResult)?m.return(new _.qv(b)):m.return(void 0)})};
_.r.putInternal=function(W,e){var t=this,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,lf9(t.token),2);b=m.yieldResult;return _.a(m,b.put("ResponseStore",e),0)})};
_.r.remove=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,lf9(e.token),2);t=b.yieldResult;return b.return(t.delete("ResponseStore",[W,e.clientName]))})};
_.r.removeAll=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,lf9(W.token),2);e=t.yieldResult;return _.a(t,wHy(e,IDBKeyRange.only(W.clientName)),0)})};
_.r.has=function(){throw Error("Wi");};_.Kw=new _.W_("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wxU=function(W){var e;this.stateTagsData=(e=W.responseContext)==null?void 0:e.stateTags},uAr=function(W){var e;
return((e=W.stateTagsData)==null?void 0:e.stateTagsModified)||[]};var cZe;cZe=function(W){this.JSC$16094_responseStore=W};
_.YB=function(W,e,t){if(!_.S("state_tags_killswitch")){var b=new wxU(e);if(uAr(b).length>0){var m=W.JSC$16094_responseStore.getKeys();m=_.R(m);for(var q=m.next();!q.done;q=m.next()){q=q.value;var Q=RL(W.JSC$16094_responseStore,q);if(Q){var X=_.I4(Q);a:{var I=void 0;Q=uAr(b);X=((I=(new wxU(X)).stateTagsData)==null?void 0:I.relevantStateTags)||[];I=_.R(X);for(X=I.next();!X.done;X=I.next())if(X=X.value,X.stateTag!=null&&Q.includes(X.stateTag)&&X.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Q=
!0;break a}Q=!1}Q&&arh(W.JSC$16094_responseStore,q)}}}}var u;b=(u=e.responseContext)==null?void 0:u.maxAgeSeconds;_.S("web_prefetch_riw_for_next_video")&&!b&&e.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(b=3600);t&&b&&Number(b)>0&&(e=FX(e,b),W.JSC$16094_responseStore.put(t,new _.qv(e)))};
cZe.prototype.handleResponse=function(W,e){if(!e)throw Error("Xi");var t,b;e=(t=e.config)==null?void 0:(b=t.storeStrategy)==null?void 0:b.storeKey;_.YB(this,W,e)};
cZe[dU]=[_.rF];_.v12=new _.W_("STORE_RESPONSE_PROCESSOR_TOKEN");var vzh=function(W){this.JSC$16097_responseStore=W};
vzh.prototype.handleResponse=function(W,e){if(e.input.match(_.Am(KyB))){var t;if(W==null?0:(t=W.entries)==null?0:t.length)for(W=_.R(W.entries),e=W.next();!e.done;e=W.next()){t=e.value.command;var b=void 0;e=(b=_.l(t,_.Za))==null?void 0:b.unserializedPrefetchData;if(!t||!e)break;b=(new IY).JSC$11058_getStoreKey(t);var m=_.l(e,bsr),q=void 0,Q=void 0,X=void 0,I=_.mn("web_shorts_prefetch_service_ttl_seconds")>0?_.mn("web_shorts_prefetch_service_ttl_seconds"):Number((X=(q=m)==null?void 0:(Q=q.responseContext)==
null?void 0:Q.maxAgeSeconds)!=null?X:3600);b&&I>0&&(m=FX(m,I),this.JSC$16097_responseStore.put(b,new _.qv(m)));t=(new v1).JSC$11058_getStoreKey(t);e=_.l(e,HMr);q=m=b=void 0;Q=_.mn("web_shorts_prefetch_service_ttl_seconds")>0?_.mn("web_shorts_prefetch_service_ttl_seconds"):Number((q=(b=e)==null?void 0:(m=b.responseContext)==null?void 0:m.maxAgeSeconds)!=null?q:3600);t&&Q>0&&(e=FX(e,Q),this.JSC$16097_responseStore.put(t,new _.qv(e)))}}};
vzh[dU]=[_.rF];var G6v=function(W){this.innertubeTransportService=W};
G6v[dU]=[_.J8];var DBo=new _.W_("SUBMIT_API_SERVICE_TOKEN");var PD=function(){this.scheduler=_.g0()},SCP;
PD.prototype.pause=function(){throw Error("Yi");};
PD.prototype.resume=function(){throw Error("Yi");};
PD.prototype.queue=function(W){var e=this,t=_.UZ(),b=_.kM(this.scheduler,function(){try{var m;if(_.uL.instance)var q=_.uL.instance;else{var Q=new _.o_("Error: Unexpected uninitialized CommandHandler.");_.gQ(Q);q=void 0}(m=q)==null||m.resolveCommand(W.command);t.resolve()}catch(X){t.reject(X)}});
t.promise.thenCatch(function(m){m instanceof _.Lv&&e.scheduler.cancelJob(b)});
return t.promise};
PD.prototype.queueAll=function(W){var e=new Map;W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,e.set(t.id,this.queue(t));return e};var ozN=function(W,e){var t=this;this.taskModel=W;this.onTaskCancelledCallback=e;this.resolver=_.UZ();W=W.proto.prefetchConfig;if(!W)throw Error("Zi");if(!W.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(b){b instanceof _.Lv&&(B5e(t,t.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),t.onTaskCancelledCallback(t.taskModel.id,t.jobId),t.tick("pcc"));
throw b;});
this.timerName=this.taskModel.id;_.gy(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},lrv=function(W){switch(W.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},B5e=function(W,e){_.fe({prefetchInfo:{cancellationReason:e}},W.timerName)};
ozN.prototype.tick=function(W){_.Tv(W,void 0,this.timerName)};var iW=function(){var W=this;this.scheduler=_.g0();this.maxInflightTasks=_.mn("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.mn("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new J88;this.onTaskCancelled=function(e,t){t&&W.scheduler.cancelJob(t);Z68(W,e);Vr(W,3)}},$Bk=function(){iW.instance||(iW.instance=new iW);
return iW.instance};
iW.prototype.pause=function(){this.prefetchCoordinatorState=0};
iW.prototype.resume=function(){Vr(this,0)};
iW.prototype.queue=function(W){W=k6S(this,W);Vr(this,1);return W};
iW.prototype.queueAll=function(W){var e=new Map;W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,e.set(t.id,k6S(this,t));Vr(this,1);return e};
var k6S=function(W,e){var t=W.allPrefetchTasks.get(e.id);if(t)return t.cancellablePromise;try{var b=new ozN(e,W.onTaskCancelled)}catch(q){return _.jg(q)}t=b;t.tick("pcq");var m={prefetchInfo:{taskId:t.taskModel.id,isPrefetch:!0,fetchAction:t.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:t.taskModel.command.clickTrackingParams}};t.taskModel.csn&&(m.clientScreenNonce=t.taskModel.csn);_.fe(m,t.timerName);W.allPrefetchTasks.set(e.id,b);W.drainingHeap.insert(-lrv(b),b);return b.cancellablePromise},
Vr=function(W,e){W.prefetchCoordinatorState===e&&(W.prefetchCoordinatorState=2,pxo(W))},pxo=function(W){for(var e={};W.prefetchCoordinatorState!==0;e={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}e.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!e.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}e.taskId$jscomp$3=e.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(e.taskId$jscomp$3)){var t=-1;W.coordinatorTimeoutMs>0&&(t=_.kM(W.scheduler,function(b){return function(){Yd(W,b.taskId$jscomp$3,Error("aj"))}}(e),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(e.taskId$jscomp$3,t);if(!W.JSC$16115_commandHandler){if(!_.uL.instance){Yd(W,e.taskId$jscomp$3,Error("bj"));continue}W.JSC$16115_commandHandler=_.uL.instance}a:switch(e.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":t=1;break a;default:t=0}e.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(b){return function(){b.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$16115_commandHandler.resolveCommand(b.prefetchTask$jscomp$1.taskModel.command)||
Yd(W,b.taskId$jscomp$3,Error("cj"))}catch(m){Yd(W,b.taskId$jscomp$3,m)}}}(e),t,0)}}},yZb=function(W,e){(e=Z68(W,e))!=null&&(e.resolver.resolve(),e.tick("pce"));
Vr(W,3)},Yd=function(W,e,t){(e=Z68(W,e,t))!=null&&(e.resolver.reject(t),e.tick("pcc"),B5e(e,"CANCELLATION_REASON_ERROR"),Math.random()<=_.mn("prefetch_coordinator_error_logging_sampling_rate")&&(t=new _.o_("Prefetch Command failed.",e.taskModel.id,t.message),_.gQ(t)));
Vr(W,3)},Z68=function(W,e,t){var b=W.allPrefetchTasks.get(e);
b?((t=W.inflightPrefetchTasks.get(e))&&t!==-1&&W.scheduler.cancelJob(t),W.inflightPrefetchTasks.delete(e),W.allPrefetchTasks.delete(e)):_.JC(new _.o_("Unexpected missing prefetch task when deleting task.",e,t==null?void 0:t.message));return b};var jfS=function(W,e,t,b,m){this.id=W;this.triggerOn=e;this.cancelOn=t;this.command=b;this.proto=m};
_.Ec.Object.defineProperties(jfS.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var C_D=function(){this.JSC$16120_prefetchCoordinator=$Bk();SCP||(SCP=new PD);this.defaultCoordinator=SCP},nzZ;
C_D.getInstance=function(){nzZ||(nzZ=new C_D);return nzZ};
C_D.prototype.get=function(W){switch(W){case 0:return this.JSC$16120_prefetchCoordinator;default:return this.defaultCoordinator}};var zO=function(){this.coordinatorSupplier=C_D.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},T58=function(W){var e=_.fc()||void 0,t=Object.keys(fry)[0];
if(t){var b=W.taskIdByTriggerId.get(t);if(b!=null){W.taskIdByTriggerId.delete(t);t=[];b=_.R(b);for(var m=b.next();!m.done;m=b.next())if(m=W.tasks.get(m.value))e!=="UNDEFINED_CSN"&&(m.csn=e),t.push(m);t=pcG(t);e=[];t=_.R(t);for(b=t.next();!b.done;b=t.next()){m=_.R(b.value);b=m.next().value;m=m.next().value;b=W.coordinatorSupplier.get(b).queueAll(m);b=_.R(b);var q=b.next();for(m={};!q.done;m={taskId$jscomp$9:void 0},q=b.next()){var Q=_.R(q.value);q=Q.next().value;Q=Q.next().value;m.taskId$jscomp$9=
q;q=Q;e.push(m.taskId$jscomp$9);W.queuedPromisesByTask.set(m.taskId$jscomp$9,_.yd(q,function(X){return function(){gzN(W,X.taskId$jscomp$9)}}(m)))}}}}else _.JC(new _.o_("Unexpected malformed TriggerEvent."))};
zO.prototype.trigger=function(W,e){var t=this,b=this.tasks.get(W);if(!b||this.queuedPromisesByTask.has(W))return!1;JZB(this,W,b.triggerOn);e!=="UNDEFINED_CSN"&&(b.csn=e);e=this.coordinatorSupplier.get(b.taskType).queue(b);this.queuedPromisesByTask.set(W,_.yd(e,function(){gzN(t,W)}));
return!0};
zO.prototype.cancel=function(W){var e=this.queuedPromisesByTask.get(W);if(e)e.cancel();else return gzN(this,W)};
var gzN=function(W,e){W.queuedPromisesByTask.delete(e);var t=W.tasks.get(e);if(!t)return!1;W.tasks.delete(e);JZB(W,e,t.triggerOn);(t=kGD(t.cancelOn))&&(W=W.taskIdByCancelId.get(t))&&W.delete(e);return!0},JZB=function(W,e,t){(t=Object.keys(t)[0])&&(W=W.taskIdByTriggerId.get(t))&&W.delete(e)};var fry={taskRegistered:{}},UA=function(){zO.instance||(zO.instance=new zO);this.JSC$16129_taskManager=zO.instance};
_.Z(UA,se);
UA.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){t=_.l(W,mdS);if((b=t)==null||!b.tasks){var q=new _.o_("RegisterTasksCommand is missing tasks.");_.gQ(q);return m.return()}q=e.JSC$16129_taskManager;for(var Q=_.R(t.tasks),X=Q.next();!X.done;X=Q.next())if(X=X.value,X=X.id&&X.triggerOn&&X.cancelOn&&X.command?new jfS(X.id,X.triggerOn,X.cancelOn,X.command,X):void 0,X){var I=Object.keys(X.triggerOn)[0];if(I){var u=kGD(X.cancelOn);u?(q.tasks.set(X.id,X),q.taskIdByTriggerId.has(I)||q.taskIdByTriggerId.set(I,
new Set),q.taskIdByTriggerId.get(I).add(X.id),q.taskIdByCancelId.has(u)||q.taskIdByCancelId.set(u,new Set),q.taskIdByCancelId.get(u).add(X.id)):_.JC(new _.o_("Unexpected malformed cancelOn field."))}else _.JC(new _.o_("Unexpected malformed triggerOn field."))}else _.JC(new _.o_("Unexpected malformed Task proto."));T58(e.JSC$16129_taskManager);_.u8(m)})};var xBb={},O6h=(xBb.rendered={priority:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var e={};e.ramGb=_.tz.navigator.deviceMemory;var t={staticContext:{}};e.ramGb&&yVQ(e.ramGb)&&(t.staticContext.memoryTotalKbytes=(e.ramGb*1048576).toString());W.numCpu&&yVQ(W.numCpu)&&(t.staticContext.cpuCores=W.numCpu);if(_.S("web_enable_adaptive_appl_signal")){W={};e=_.O6("rses_dpj");var b=_.O6("rsef_dpj");e&&e>0&&b&&b>0&&(e=Math.ceil(b-e),e>0&&(W.loadLatency=e));W.loadLatency&&yVQ(W.loadLatency)&&
(t.appL=W.loadLatency.toString())}_.nJ("applicationStarted",t)}},xBb);var MbP=new _.W_("WINDOW_ON_ERROR"),sfv=new _.W_("ERROR_WEIGHT_MAPS"),hGS=new _.W_("INIT_ERROR");var H6r={},KbS=(H6r.initialized={priority:10,callback:function(W){W.injector.resolve(hGS)()}},H6r);var P_k=function(){},Vbb=function(){var W=_.HO("meta_logger_impl");
W||(W=new P_k,_.Nz("meta_logger_impl",W));return W},i6b=function(){Vbb().csiSubscriptionKey=vgL("meta_logging_csi_event",function(W){var e=W.timerName;
if(W=W.timelineData){_.gy(e,{startTime:W.startTime},e);W.infos&&_.fe(W.infos,e);for(var t=_.R(Object.keys(W.ticks)),b=t.next();!b.done;b=t.next())b=b.value,_.Tv(b,W.ticks[b],e)}})};
P_k.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Sbg(this.csiSubscriptionKey)};var YCS={},zGU=(YCS.initialized={priority:10,callback:function(){i6b()}},YCS);var UBZ=function(W,e){this.innertubeClientName=W;this.JSC$16145_prefCookie=e};
UBZ.prototype.record=function(){if(_.S("web_li_record_binary_eval_tick")){var W=_.O6("rsef_dpj");var e=_.O6("rses_dpj");W=W!==void 0&&e!==void 0?Math.round(W-e):void 0;if(W!==void 0&&W>0){e=_.Ie(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var t=this.poolSize;if(!(e.valuesSeen>=1E9)){if(e.valuesSample.length<t)e.valuesSample.push(W);else{var b=Math.floor(Math.random()*(e.valuesSeen+1));b<t&&(e.valuesSample[b]=W)}e.valuesSeen+=1}_.X_(this.storagePrefix+"-"+this.innertubeClientName,
e,2592E3);W=e.valuesSample;e=jFc(W);W=W.length<5?void 0:e<400?1:e<1700?2:3;W!==void 0&&(this.JSC$16145_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$16145_prefCookie.save())}}else _.ae(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16145_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16145_prefCookie.save()};
UBZ[dU]=[Dv,Ua];var LbS=function(){UBZ.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.Z(LbS,UBZ);var Ezk=new _.W_("PAGE_LOAD_TIME_TOKEN");var AZU=new _.W_("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Lw=function(W,e){this.JSC$16168_storeWithEntities=W;this.JSC$16168_commandHandler=e;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Lw.prototype.start=function(){this.JSC$16168_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Lw.prototype.observeDownloadingEntities=function(){var W=_.ZxK(this.JSC$16168_storeWithEntities.getState().entities).map(function(b){return $Uc(b)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var e={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Jws()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.tm(_.Gv("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16168_commandHandler.resolveCommand(e)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var t=lJ9(this.JSC$16168_storeWithEntities.getState().entities).map(function(b){return $Uc(b)});
this.downloadingEntities.filter(function(b){return t.includes(b)}).length&&(W={openPopupAction:IfG()},this.JSC$16168_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
Lw[dU]=[w0,_.tQ];var N5y;_.EA=function(W,e,t,b,m,q,Q,X){this.JSC$16171_playerApiPromise=W;this.JSC$16171_commandHandler=e;this.JSC$16171_screenManager=t;this.offlineWebClientEligibility=b;this.JSC$16171_prefStorage=m;this.JSC$16171_actionRouter=q;this.entityTypeMap=Q;this.JSC$16171_persistentStorePromiseAccessor=X;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
N5y=function(){var W=_.ee().resolve(_.EA),e;_.F(function(t){if(t.nextAddress==1)return W.downloadFailureListenerBound?t.return():_.a(t,W.JSC$16171_playerApiPromise,2);e=t.yieldResult;e.addEventListener("onOfflineOperationFailure",function(b){if(b.failureReason&&b.entityKey&&b.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(b.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var m=_.R1(b.entityKey).entityId;m&&W.JSC$16171_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
m)}else if(_.S("kevlar_woffle")){m=W.JSC$16171_commandHandler;var q=m.resolveCommand;b=b.failureReason;var Q=_.Gv("TRANSFER_FAILED",void 0,"Download failed");b==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Q=_.Gv("STORAGE_FULL",void 0,"Storage full"));q.call(m,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tm(Q),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.u8(t)})};
_.EA.prototype.deleteVideo=function(W,e){var t=this,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return _.a(Q,t.JSC$16171_playerApiPromise,2);b=Q.yieldResult;q={offlineLoggingData:{offlineDeleteReason:(m=e)!=null?m:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.a(Q,b.queueOfflineAction(W,t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",q),0)})};
_.EA.prototype.pauseVideoDownload=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.JSC$16171_playerApiPromise,2);t=b.yieldResult;t.pauseVideoDownload(W);_.u8(b)})};
_.EA.prototype.resumeVideoDownload=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.JSC$16171_playerApiPromise,2);t=b.yieldResult;return _.a(b,t.resumeVideoDownload(W),0)})};
_.EA[dU]=[_.Rv,_.tQ,_.ky,AZU,Ny,Nd,nON,c1];var dBb=new _.W_("DOWNLOAD_STATE_STORE_TOKEN");var W2B=function(W,e){this.JSC$16191_persistentStorePromiseAccessor=W;this.store=e;this.upliftCompletionResolver=new _.Xu},bQ9=function(){var W=_.ee().resolve(ecw),e;
_.F(function(t){switch(t.nextAddress){case 1:if(W.upliftImplPromise)return t.return(W.upliftImplPromise);_.Qh(t,2);W.upliftImplPromise=tGC(W);return _.a(t,W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.Hi(t,3);break;case 2:throw e=_.w9(t),W.upliftCompletionResolver.reject(e),e;case 3:return t.return(W.upliftImplPromise)}})},tGC=function(W){var e,t,b;
return _.F(function(m){switch(m.nextAddress){case 1:return _.MD("LOGGED_IN")?_.a(m,W.JSC$16191_persistentStorePromiseAccessor(),2):m.return();case 2:e=m.yieldResult;if(!e)return _.Tv("vdeur"),m.return();_.Tv("vdeus");_.Qh(m,3);return _.a(m,msu(e),5);case 5:t=m.yieldResult;W.store.dispatch(fcQ(t));e.observe(function(q){gFg(W.store,q)});
_.Hi(m,4);break;case 3:throw b=_.w9(m),_.Tv("vdeur"),b;case 4:_.Tv("vdeuc"),_.u8(m)}})},msu=function(W){var e;
return _.F(function(t){if(t.nextAddress==1)return _.a(t,xxK(W),2);e=t.yieldResult;return t.return(e.reduce(function(b,m){if(!m.data||!m.key||!m.entityType)return b;b[m.entityType]||(b[m.entityType]={});b[m.entityType][m.key]=m.data;return b},{}))})};
W2B[dU]=[c1,_.hh];var ecw;ecw=new _.W_("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.AW=new _.W_("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Nl=function(W,e){this.JSC$16194_persistentStorePromiseAccessor=W;this.transportService=e};
Nl.prototype.refresh=function(){var W=this,e,t,b,m;return _.F(function(q){if(q.nextAddress==1)return _.MD("LOGGED_IN")?_.a(q,W.JSC$16194_persistentStorePromiseAccessor(),2):q.return();if(q.nextAddress!=3)return(e=q.yieldResult)?_.a(q,GGv(e),3):q.return();if((t=q.yieldResult)&&!(Number(t.data.refreshTimestampMs||0)<(0,_.eJ)()))return q.return();b={browseId:"SPaccount_downloads"};m=_.Am(bC);_.x0(W.transportService,b,m).then(function(Q){var X;if(e&&(Q==null?void 0:(X=Q.responseContext)==null?void 0:
X.maxAgeSeconds)!==0){var I;X=(Q==null?void 0:(I=Q.responseContext)==null?void 0:I.maxAgeSeconds)||604800;I=String(Math.floor((0,_.eJ)())+X*1E3);e.put("service:downloads_settings:fallback",new _.qv({innertubeResponse:Q,refreshTimestampMs:I}))}});
_.u8(q)})};
Nl[dU]=[_.Kw,_.J8];var dx=function(W,e){this.JSC$16198_playerPromise=W;this.store=e;this.started=!1};
dx.prototype.start=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return W.started?t.return():_.a(t,W.JSC$16198_playerPromise,2);e=t.yieldResult;e.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));e.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(e.isOrchestrationLeader)W.updateIsLeader(e.isOrchestrationLeader());else{var b=new _.o_("Function isOrchestrationLeader is undefined",{"player.isReady":e.isReady(),"player.playVideo":e.playVideo?
"defined":"undefined"});_.gQ(b);W.updateIsLeader(!1)}W.started=!0;_.u8(t)})};
dx.prototype.updateIsLeader=function(W){this.store.dispatch(_.rO({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
dx[dU]=[_.Rv,_.hh];var rzB=function(W,e){this.networkStatusManager=W;this.JSC$16201_prefStoragePromise=e;this.redirectsToPreload=["https://youtube.com"]},qLB=function(){var W=_.ee().resolve(rzB),e,t,b,m,q,Q;
_.F(function(X){switch(X.nextAddress){case 1:return _.a(X,W.JSC$16201_prefStoragePromise,2);case 2:e=X.yieldResult;if(!(t=e)){X.jumpTo(3);break}return _.a(X,e.get("yt-redirect-prefetch-id"),4);case 4:t=X.yieldResult;case 3:if(t||!W.networkStatusManager.isNetworkAvailable())return X.return();b={cache:"reload",redirect:"manual"};m=_.R(W.redirectsToPreload);q=m.next();case 5:if(q.done){if(!e){X.jumpTo(0);break}return _.a(X,e.set("yt-redirect-prefetch-id",!0,86400),0)}Q=q.value;_.Qh(X,8);return _.a(X,
_.tz.fetch(Q,b),10);case 10:_.Hi(X,6);break;case 8:_.w9(X);case 6:q=m.next(),X.jumpTo(5)}})};var Wj=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
Wj.prototype.openDialog=function(W,e,t){var b=this,m;return _.F(function(q){(m=b.container)==null||m.openDialog(W,e,t);_.u8(q)})};
Wj.prototype.closeDialog=function(){var W=this,e;return _.F(function(t){(e=W.container)==null||e.closeDialog();_.u8(t)})};
Wj.prototype.isDialogOpen=function(){var W=this,e,t;return _.F(function(b){return b.return((t=(e=W.container)==null?void 0:e.isDialogOpen())!=null?t:!1)})};
Wj[dU]=[_.Wi(ICb)];_.RcS=new _.W_("POPUP_CONTROLLER_TOKEN");var QRQ=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
QRQ.prototype.registerPanel=function(W,e){if(W){this.panelMap.set(W,e);var t=this.pendingPanelResolvers.get(W);t&&(t.resolve(e),this.pendingPanelResolvers.delete(W))}};
QRQ.prototype.getPanel=function(W){var e=this,t;return _.F(function(b){return(t=e.panelMap.get(W))?b.return(t):b.return(F2u(e,W))})};
var F2u=function(W,e){var t,b;return _.F(function(m){if(t=W.pendingPanelResolvers.get(e))return m.return(t.promise);b=new _.Xu;W.pendingPanelResolvers.set(e,b);return m.return(b.promise)})},XZg=function(W){QRQ.call(this);
var e=this;this.popupController=W;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return e.panelMap.size}}};
_.Z(XZg,QRQ);_.r=XZg.prototype;_.r.getReloadContinuation=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.getPanel(W),2);t=b.yieldResult;return b.return(t.getReloadContinuation())})};
_.r.showPanel=function(W,e,t,b,m,q,Q){var X=this,I,u,c,v;return _.F(function(D){if(D.nextAddress==1){Q&&X.updatePanelContinuationDatas.set(W,Q);if((I=t)==null?0:(u=I.engagementPanelPopupPresentationConfig)==null?0:u.popupType){c=t.engagementPanelPopupPresentationConfig.popupType;m===void 0&&(m=document.body);var B=D.return,k=X.popupController,n=k.openPopup;a:switch(c){case "PANEL_POPUP_TYPE_DIALOG":var f="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":f="DROPDOWN";break a;default:throw Error("ej`"+
c);}return B.call(D,n.call(k,W,e,f,m))}return _.a(D,X.getPanel(W),2)}v=D.yieldResult;(e||q)&&v.updatePanel(e,!1,b,q);v.showPanel(b);_.u8(D)})};
_.r.hidePanel=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,e.getPanel(W),2);t=b.yieldResult;t.hidePanel();e.popupController.closePopup(W);_.u8(b)})};
_.r.isVisible=function(W,e){var t=this,b;return _.F(function(m){if(m.nextAddress==1)return e&&!t.panelMap.has(W)?m.return(!1):_.a(m,t.getPanel(W),2);b=m.yieldResult;return m.return(b.isVisible())})};
_.r.updatePanel=function(W,e,t,b,m,q){t=t===void 0?!1:t;var Q=this,X;return _.F(function(I){if(I.nextAddress==1){if(!e&&!m)return I.return();q&&Q.updatePanelContinuationDatas.set(W,q);return _.a(I,Q.getPanel(W),2)}X=I.yieldResult;X.updatePanel(e,t,b,m);_.u8(I)})};
_.r.registerPanelContent=function(W,e){W&&this.panelContentMap.set(W,e)};
_.r.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.r.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
XZg[dU]=[_.RcS];var ey=function(W,e){this.innertubeTransportService=W;this.JSC$16217_screenManager=e},IgM=function(W){var e;
return!((e=W.panelLoadingStrategy)==null||!e.requestTemplate)};
ey.prototype.makeRequest=function(W){var e=this,t,b;return _.F(function(m){switch(m.nextAddress){case 1:if(!IgM(e)){m.jumpTo(2);break}_.Qh(m,3);return _.a(m,_.z2(e.innertubeTransportService,W),5);case 5:return t=m.yieldResult,t?m.return(t.content):(_.gQ(Error("fj")),m.return(void 0));case 3:b=_.w9(m),_.gQ(b);case 2:return m.return(void 0)}})};
ey.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
ey.prototype.execute=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v;return _.F(function(D){if(D.nextAddress==1){t=W;b=t.data;m=t.fallbackVe;q=t.parentVe;Q=t.createScreenConfig;X=t.renderFn;I=t.command;e.panelLoadingStrategy=b;var B,k,n=((B=e.panelLoadingStrategy)==null?0:B.screenVe)?(k=e.panelLoadingStrategy)==null?void 0:k.screenVe:m;n&&_.FW(e.JSC$16217_screenManager,n,q,Q);return(u=e.getContent())?_.a(D,X(u),2):D.jumpTo(2)}return D.nextAddress!=4?IgM(e)?_.a(D,e.makeRequest(I),4):D.return():(v=c=D.yieldResult)?
_.a(D,X(v),0):D.return()})};
ey[dU]=[_.J8,_.ky];var t5=function(){};
t5.prototype.getContainer=function(){return _.ty()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
t5.prototype.openSheet=function(W,e){var t=this,b,m,q,Q,X,I;return _.F(function(u){switch(u.nextAddress){case 1:return b={stack:[],error:void 0,hasError:!1},_.Qh(u,2,3),m=Wf,_.a(u,t.isSheetOpen(),5);case 5:q=u.yieldResult;WBK(b,CVZ(m));if(q){if(e&&t.currentTarget===e)return(Q=t.getContainer())==null||Q.closeSheet(),u.return();t.pendingData={data:W,target:yfr(t,e)};return u.return()}W.viewModel&&(W={viewModel:W.viewModel});(X=t.getContainer())==null||X.openSheet(W,e);t.currentTarget=e;case 3:_.FY(u);
e5R(b);_.aG(u,0);break;case 2:I=_.w9(u),b.error=I,b.hasError=!0,u.jumpTo(3)}})};
t5.prototype.closeSheet=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,(e=W.getContainer())==null?void 0:e.closeSheet(),2);if(t.nextAddress!=4)return W.currentTarget=void 0,W.pendingData?_.a(t,W.openSheet(W.pendingData.data,W.pendingData.target),4):t.jumpTo(0);W.pendingData=void 0;_.u8(t)})};
t5.prototype.isSheetOpen=function(){var W=this,e,t;return _.F(function(b){return b.return((t=(e=W.getContainer())==null?void 0:e.isSheetOpen())!=null?t:!1)})};
var yfr=function(W,e){if(!_.S("web_parent_target_for_sheets"))return e;var t,b;return(b=(t=W.getContainer())==null?void 0:t.getParentTarget(e))!=null?b:e};var uC=window.documentPictureInPicture;var UxK=_.Nw(["dark"]),Lvc=_.Nw(["system-icons"]),E$c=_.Nw(["typography"]),AVS=_.Nw(["lang"]),NIK=_.Nw(["style"]),ViS=_.Nw(["dir"]),igQ=_.Nw(["rounded-container"]),YKK=_.Nw(["style"]),WiZ=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],bd=function(W){this.JSC$16229_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
bd.prototype.openWindow=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return window.documentPictureInPicture&&_.nQ()&&!e.currentPipWindow?_.a(m,(t=uC?uC:null)==null?void 0:t.requestWindow(W),2):m.return(!1);if(m.nextAddress!=3){b=m.yieldResult;if(!b)return m.return(!1);b.addEventListener("pagehide",function(){agl(e)});
b.addEventListener("resize",e.handlePipWindowResize);e.pipWindowResizeDelay=new _.ds(function(){e.currentPipWindow&&_.RT(e.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.aD(e.currentPipWindow.innerWidth,e.currentPipWindow.innerHeight)])},b);
dxs(b);tpS(b);return _.a(m,P3g(b),3)}if(!hCv())return m.return(!1);e.currentPipWindow=b;e.JSC$16229_eventForwarder=e4L(b,e.JSC$16229_clientRoot);e.pipWindowResizeDelay.start();return m.return(!0)})};
bd.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var agl=function(W){if(W.currentPipWindow){var e,t;(e=uC?uC:null)==null||(t=e.window)==null||t.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var b;(b=W.pipWindowResizeDelay)==null||b.dispose();W.pipWindowResizeDelay=void 0;var m;(m=W.JSC$16229_eventForwarder)==null||m.stop();W.JSC$16229_eventForwarder=void 0;e=_.R(W.onCloseCallbacks);for(t=e.next();!t.done;t=e.next())t=t.value,t();W.onCloseCallbacks=[];W.currentPipWindow=null}};
bd.prototype.getWindow=function(){return this.currentPipWindow};
var wZ$=function(W,e){var t;(t=W.onCloseCallbacks)==null||t.push(e)};
bd.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.nQ()};
_.Ec.Object.defineProperties(bd.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
bd[dU]=[fWN];var uDg=new _.W_("PICTURE_IN_PICTURE_CONTROLLER");var bRL=function(W,e){this.lengthY=this.lengthX=0;this.lengthX=e.x-W.x;this.lengthY=e.y-W.y};var czg=function(){},f$B=function(W,e){var t;
(t=W.headerElement)==null||t.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:e}))};var v9l=function(){};
v9l.prototype.openPopup=function(W,e,t,b){var m=this,q;return _.F(function(Q){if(!m.container)return Q.return();q={openPopupAction:{popup:e,popupType:t,uniqueId:W}};return Q.return(m.container.handleOpenPopupAction(q,b))})};
v9l.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var GSB=function(){this.openTunnels=new Map},uEL=function(W,e,t){if(FiK(t)){var b=_.VV(t,"gclid");
t={handleEvent:function(X){e&&!e.closed&&typeof e.postMessage==="function"&&X&&X.origin&&X.source===e&&X.data&&X.data.action==="gcl_setup"&&e.postMessage(Object.assign({},{action:"gcl_transfer"},b&&{gclid:b},{gadSource:2}),X.origin)}};
for(var m=_.R(W.openTunnels),q=m.next();!q.done;q=m.next()){var Q=_.R(q.value);q=Q.next().value;Q=Q.next().value;if(q.closed)try{window.removeEventListener("message",Q),W.openTunnels.delete(q)}catch(X){_.gQ(X)}}e&&W.openTunnels.size<15&&(W.openTunnels.set(e,t),window.addEventListener("message",t))}};var Dsw=function(){this.clientParams=new Map},JPN=function(W){for(var e=_.R(W.clientParams.keys()),t=e.next();!t.done;t=e.next())t=t.value,t.startsWith("yt-mini-app-share")&&W.clientParams.delete(t)};var SLw=function(W,e){_.ka.call(this);var t=this;this.shortsController=W;this.storeWithShorts=e;W=_.S8(this.storeWithShorts,_.Ti9,function(b){if(b){var m,q=(m=t.shortsController.getRoot())==null?void 0:m.getPlayer(),Q;(m=(Q=t.shortsController.alternativePlayerContainerElement)==null?void 0:Q.getPlayerContainer())&&(q==null||q.appendTo(m))}else{var X;Q=(X=t.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer().querySelector("#player");m=t.shortsController.activeIndex;
(X=(q=t.shortsController.getRoot())==null?void 0:q.querySelector('ytd-reel-video-renderer[id="'+m+'"] #player-container'))&&(Q==null||Q.appendTo(X,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.Z(SLw,_.ka);var md=function(W,e,t,b,m){var q=this;this.storeWithShorts=W;this.ephemeralResponseStore=e;this.store=t;this.innertubeTransportService=b;this.innertubeTransportLoader=m;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.MA(_.SS);this.isShortsPipActive=_.MA(_.BL);this.nextReelVe=_.na(56921);this.prevReelVe=_.na(56922);this.backButtonVe=_.na(22156);this.TEST_ONLY={getActiveModules:function(){return q.activeModules}}},Ozk,MUo,BGQ;
md.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push(new SLw(this,this.storeWithShorts)):(_.d6(this.activeModules),this.activeModules.length=0)};
md.prototype.getRoot=function(){return this.rootElement};
md.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.noB=function(W,e){var t,b,m,q,Q,X,I;return _.F(function(u){switch(u.nextAddress){case 1:return t=new IY,(b=t.JSC$11058_getStoreKey(e))&&W.ephemeralResponseStore.has(b)?_.a(u,W.ephemeralResponseStore.get(b),7):_.a(u,BGQ(W,e),4);case 4:m=u.yieldResult;if(!b){u.jumpTo(3);break}q=FX(m,3600);return _.a(u,W.ephemeralResponseStore.put(b,new _.qv(q)),3);case 7:m=(Q=u.yieldResult)==null?void 0:_.I4(Q);case 3:return((X=m)==null?0:X.replacementEndpoint)&&(I=_.l(m.replacementEndpoint,_.Za))&&m.sequenceContinuation&&
(I.sequenceParams=m.sequenceContinuation),u.return(m)}})};
Ozk=function(W,e){e=(new aY).JSC$11058_getStoreKey(e);return!!e&&W.ephemeralResponseStore.has(e)};
MUo=function(W,e,t){var b,m,q,Q,X;_.F(function(I){if(I.nextAddress==1){b=new aY;m=b.JSC$11058_getStoreKey(e);if(!m)return I.return();if(t.reelWatchSequenceResponse)return q=FX(t.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(m,new _.qv(q)),I.jumpTo(0);if(!W.ephemeralResponseStore.has(m))return I.jumpTo(0);X=t;return _.a(I,W.ephemeralResponseStore.get(m),4)}X.reelWatchSequenceResponse=(Q=I.yieldResult)==null?void 0:_.I4(Q);_.u8(I)})};
BGQ=function(W,e){var t=t===void 0?{}:t;var b,m,q;return _.F(function(Q){switch(Q.nextAddress){case 1:if(W.innertubeTransportService){b=W.innertubeTransportService;Q.jumpTo(2);break}if(!W.innertubeTransportLoader){_.st(Error("hj"));Q.jumpTo(2);break}return _.a(Q,W.innertubeTransportLoader(),4);case 4:b=Q.yieldResult;case 2:return _.a(Q,(m=b)==null?void 0:_.z2(m,e,t),5);case 5:return q=Q.yieldResult,Q.return(q)}})};
_.Ec.Object.defineProperties(md.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
md[dU]=[ooh,_.rF,w0,_.Wi(_.J8),_.Wi(vIZ)];_.o9w=new _.W_("STORAGE_MANAGER_TOKEN");var w8R=["touchmove","scroll"];var GHQ={onSpanEnd:function(W){if(W.parent==null){var e=W.name;_.gy(e);v7G(W,e)}}};var lg1=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},ZQC;
lg1.prototype.enqueue=function(W,e){e===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
lg1.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.r1=new _.W_("TOAST_MANAGER_TOKEN");var $s$=new _.W_("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.q1=new _.W_("VIEW_TRANSITION_COORDINATOR_TOKEN");var kSw=function(W){this.config=W;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;W=_.R(W.transitionConfigs);for(var e=W.next();!e.done;e=W.next())e=_.R(e.value).next().value,this.transitionTasksMap.set(e,[])};
kSw.prototype.registerElement=function(W,e,t){t=t===void 0?!1:t;for(var b=_.R(Object.keys(e)),m=b.next(),q={};!m.done;q={viewTransitionName:void 0},m=b.next()){m=m.value;q.viewTransitionName=e[m];var Q=this.elementTasksMap.get(W),X=void 0;if((X=Q)==null?0:X.has(m)){_.TT(new _.o_("Element already registered for transition",W,m));break}Q=Q||new Map;Q.set(m,{beforeTransition:function(I){return function(){W.style.viewTransitionName=I.viewTransitionName}}(q),
afterTransition:function(){W.style.viewTransitionName&&(W.style.viewTransitionName="")},
runOnce:t});this.elementTasksMap.set(W,Q)}};
var ARc=function(W,e){var t=W.elementTasksMap.get(e);t&&(t.clear(),t.size===0&&W.elementTasksMap.delete(e))};
kSw[dU]=[$s$];var pZB;_.yz1=_.NN(function(W){return _.w("basic-content-view-model",{class:_.ve("ytBasicContentViewModelHost",_.LD(W.className))},_.w(_.G,{cond:function(){return W.data().headline},
then:function(e){return _.w("div",{class:"ytBasicContentViewModelHeadline"},_.w(_.WL,{text:e}))}}),_.w(_.lV,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(e){return _.w("div",{class:"ytBasicContentViewModelParagraph"},_.w(_.G,{cond:function(){var t=e();return!!(t.header||t.customHeader||t.headline)},
then:function(){return _.w(pZB,{paragraph:e})}}),_.w(_.G,{cond:function(){return e().asset||e().text},
then:function(){return _.w("div",{class:"ytBasicContentViewModelParagraphContent"},_.w(_.G,{cond:function(){return e().asset},
then:function(t){return _.w("div",{class:"ytBasicContentViewModelParagraphAsset"},_.w(_.nU,{data:t},{contentPreviewImageViewModel:_.WB}))}}),_.w(_.G,{cond:function(){return e().text},
then:function(t){return _.w("div",{class:"ytBasicContentViewModelParagraphText"},_.w(_.WL,{text:t}))}}))}}))}))},"me");
pZB=_.NN(function(W){var e=W.paragraph;return _.w(_.qD,null,_.w(_.G,{cond:function(){return e().headline},
then:function(t){return _.w(_.WL,{text:t,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.w(_.nU,{data:function(){return e().header||e().customHeader}},{sectionHeaderViewModel:function(t){return _.w(_.mX,{data:t.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var Cvg=_.NN(function(W){var e=_.zT("yt-expandable-metadata-header-view-model"),t=_.Be(function(b){if(!_.iJ(_.Vv(b),e.value,["A".toString(),"BUTTON".toString()])){var m;(m=W.expandedCallback)==null||m.call(W,!1)}});
return _.w("yt-expandable-metadata-header-view-model",{el:e,class:"ytExpandableMetadataHeaderViewModelHost"},_.w(_.G,{cond:function(){return W.expanded()},
then:function(){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":t},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.w(_.G,{cond:function(){return W.data().expandedTitleImage},
then:function(b){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.w(_.A_,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.w("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.w(_.WL,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.w(_.WL,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.w(_.WL,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.nU,{data:function(){return W.data().infoButton}},{buttonViewModel:_.MV}),_.w(_.nU,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(b){return _.w(_.MV,{data:b.data,
onClick:function(){var m;(m=W.expandedCallback)==null||m.call(W,!1)}})}})))},
else:function(){return _.w(jRu,Object.assign({},W))}}))},"oe"),n9B=_.NN(function(W){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.w(_.G,{cond:function(){return W.data().collapsedLabelImage},
then:function(e){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.w(_.A_,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:e,alt:""}))}}),_.w(_.WL,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),jRu=_.NN(function(W){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Be(function(){var e;return void((e=W.expandedCallback)==null?void 0:e.call(W,!0))})},_.w("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.w(_.G,{cond:function(){return W.data().collapsedImage},
then:function(e){return _.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.w(_.A_,{width:16,height:16,data:e,alt:""}))}}),_.w(_.G,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.w(n9B,Object.assign({},W))}}),_.w("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.w(_.WL,{text:function(){return W.data().collapsedTitle}}))),_.w("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.w(_.G,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.w(n9B,Object.assign({},W))}}),_.w(_.nU,{data:function(){return W.data().infoButton}},{buttonViewModel:_.MV}),_.w(_.nU,{data:function(){return W.data().expandButton}},{buttonViewModel:function(e){return _.w(_.MV,{data:e.data,
onClick:function(){var t;(t=W.expandedCallback)==null||t.call(W,!0)}})}})))},"qe");_.fgu=_.NN(function(W){var e=_.R(_.ZT(function(){return W.data().initiallyExpanded})),t=e.next().value,b=e.next().value,m,q=(m=_.ee().resolve(_.Wi(_.zf)))==null?void 0:m(),Q=function(){var X=W.data().colorData;
if(X)return q?X==null?void 0:X.darkColorPalette:X==null?void 0:X.lightColorPalette};
return _.w("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.$D({"background-color":function(){var X=Q();return(X==null?0:X.section2Color)?_.h8(X.section2Color):""}})},_.w(_.nU,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(X){return _.w(Cvg,{data:X.data,
expanded:function(){return!!t()},
expandedCallback:function(I){b(I)}})}}),_.w(_.G,{cond:function(){return t()},
then:function(){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.w(_.nU,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(X){return _.w(_.jM,{data:X.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Q})},
videoSummaryContentViewModel:function(X){return _.w(q_v,{data:X.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(X){return _.w(_.bO,{data:X.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(X){return _.w(_.yz1,{data:X.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.w(_.nU,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(X){return _.w("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.w(_.MV,{data:X.data}))}}))}}))},"re");var g9S=_.NN(function(W){var e=W.text;var t=W.marqueeSpacing;var b=W.scrollDelay;var m=W.scrollDuration;var q=W.enableMarqueeScroll;W=W.large;var Q=_.R(_.up(!1,void 0,"kfNqfd")),X=Q.next().value,I=Q.next().value,u=_.R(_.up(0,void 0,"bYgZbf"));Q=u.next().value;var c=u.next().value,v=_.zT("marquee-scroll");u=_.zT("div");var D=_.zT("span"),B=_.ee().resolve(_.L4);_.nh(function(){if(q()){var f=D.value.getBoundingClientRect().width,M=v.value.getBoundingClientRect().width;if(f>M){var K=(B==="ltr"?-1:1)*
(f+(t?t():16));Promise.resolve().then(function(){I(!0);c(K)})}}},"giRlme");
var k={},n={};return _.w("marquee-scroll",{class:_.ve("ytMarqueeScrollHost",(k.ytMarqueeScrollHostLarge=W,k)),el:v},_.w("div",{id:"marquee-scroll-inner-container",class:_.ve("ytMarqueeScrollInnerContainer",(n.ytMarqueeScrollAnimationEnabled=function(){return X()},n)),
el:u,style:_.$D({gap:t?(0,_.$A)(t):"16px","animation-duration":m?NI8(m):"16s","animation-delay":b?NI8(b):"3s","--marquee-translate":(0,_.$A)(Q)})},_.w("span",{el:D,dir:"auto"},_.w(_.WL,{text:e,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.w(_.G,{cond:X,then:function(){return _.w("span",{"aria-hidden":"true",dir:"auto"},_.w(_.WL,{text:e,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.TGC=_.NN(function(W){var e=W.data;var t=W.overlayDensity;W=_.Be(function(){e().onTapCommand&&_.K4(e().onTapCommand);return!1});
var b=_.rRz(),m=function(){return(t==null?void 0:t())===1?22:16},q={};
return _.w("reel-sound-metadata-view-model",{class:_.ve("ytReelSoundMetadataViewModelHost",(q.ytReelSoundMetadataViewModelHostLarge=function(){return(t==null?void 0:t())===1},q)),
"on:click":W,tabindex:0,role:"button","on:keydown":b},_.w("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.w(_.G,{cond:function(){return e().musicIcon},
then:function(Q){return _.w(_.A_,{data:Q,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:m})}}),_.w("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.w(g9S,{text:function(){return e().soundMetadata},
enableMarqueeScroll:function(){return!!e().enableMarqueeScroll},
large:function(){return(t==null?void 0:t())===1}}))))},"te");var Jz$,xsC,Rs,hc1,K2T,sRT,iQl,VGC;Jz$=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];xsC=_.mn("wil_icon_max_concurrent_fetches",Infinity);
Rs=function(W,e,t){var b=this;this.iconSet=W;this.appDirection=e;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.tz.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.S("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.S("wil_icon_network_first");this.renderWhenIdle=_.S("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.S("wil_icon_load_immediately");this.isPurging=!1;W=function(){b.cacheStorageAvailable&&(b.cacheStorageAsync=_.tz.caches.open("yt-icons").then(function(q){return b.cacheStorageSync=q}).catch(function(){b.cacheStorageAvailable=!1}))};
t=(t==null?void 0:t())||{};t=_.R(Object.entries(t));for(e=t.next();!e.done;e=t.next()){var m=_.R(e.value);e=m.next().value;m=m.next().value;m=vO(m);OQ$(m);this.iconCache[e]=m.cloneNode(!0)}this.isPurging=MGU(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.sxG=function(W,e){var t=W.resolveIcon(e);return t?W.renderingMode===1?sRT(W,t,W.renderingMode):(e=W.iconCache[t.url])?(e=e.cloneNode(!0),hc1(W,e),sRT(W,t,W.renderingMode,e)):_.HQB(W,t).then(function(b){var m=b?0:1;hc1(W,b);return sRT(W,t,m,b)}):(_.TT(new _.o_("Icon not found",{iconShape:e})),function(){})};
hc1=function(W,e){if(e){W.counter+=1;W="_yt"+W.counter;e=[e].concat(_.kP(e.getElementsByTagName("*")));e=_.R(e);for(var t=e.next();!t.done;t=e.next())if(t=t.value,t.tagName==="style"&&t.textContent)t.textContent=K2T(t.textContent,W,!0);else for(var b=_.R(t.attributes),m=b.next();!m.done;m=b.next()){m=m.value;m.name==="id"&&(m.value+=W);["mask","fill","clip-path"].includes(m.name)&&(m.value=K2T(m.value,W));if(m.name==="style"){var q=t.style;try{q.cssText=K2T(q.cssText,W,!0)}catch(c){var Q=void 0,X=
void 0,I=void 0,u=void 0;Qb({error:((Q=c)==null?void 0:(I=(X=Q).toString)==null?void 0:I.call(X))||"",el:t.outerHTML,style:!!q,cssText:(u=q)==null?void 0:u.cssText})}}m.name==="xlink:href"&&(m.value=m.value.replace(/#(.*)/,"#$1"+W))}}};
K2T=function(W,e,t){var b=/url\(["']?#(.*?)["']?\)/;(t===void 0?0:t)&&(b=/url\(["']?#(.*?)["']?\)/g);return W.replace(b,"url(#$1"+e+")")};
sRT=function(W,e,t,b){return function(m,q){var Q=Object.assign({},{iconColor:"currentcolor",iconWidth:e.size+"px",iconHeight:e.size+"px",iconDisplay:"block"},q);q=_.DA("DIV");var X=Q.iconColor,I=Q.iconFilter;Q="width: "+Q.iconWidth+"; height: "+Q.iconHeight+"; display: "+Q.iconDisplay+";";I&&(Q+=" filter: "+I+";");t===0&&(Q+=" fill: "+X+";");t===1&&(I=e.url,Q+=" -webkit-mask: url("+I+") no-repeat center / cover; mask: url("+(I+") no-repeat center / cover; background-color: ")+X);e.allowMirroring&&
W.appDirection==="rtl"&&(Q+=" transform: scale(-1, 1); transform-origin: center center;");q.setAttribute("style",Q);t===0&&b&&q.appendChild(b);m.appendChild(q)}};
_.HQB=function(W,e){var t,b,m;return _.F(function(q){t=function(Q){return CF(Q)};
b=e.url;if(!PvQ(b))throw Error("jj");m=VGC(W,b);return q.return(m.then(function(Q){return Q.clone().text()}).then(function(Q){var X=t(Q);
Q=e.size;var I=_.DA("DIV");_.KF(I,X);X=_.BX(I.firstElementChild!==void 0?I.firstElementChild:_.eNr(I.firstChild,!0));Q=OQ$(X,Q);W.iconCache[b]=Q.cloneNode(!0);delete W.responsePromises[b];return Q}).catch(function(){}))})};
iQl=function(W){var e,t=(e=W.requestAninmationFrameResolver)==null?void 0:e.promise;t||(W.requestAninmationFrameResolver=new _.Xu,t=W.requestAninmationFrameResolver.promise,_.tz.requestAnimationFrame(function(){var b;(b=W.requestAninmationFrameResolver)==null||b.resolve();W.requestAninmationFrameResolver=null}));
return t};
VGC=function(W,e){var t,b;return _.F(function(m){if(m.nextAddress==1)return W.waitForAnimationFrame?_.a(m,iQl(W),2):m.jumpTo(2);t=W.responsePromises[e];t||(b=function(){var q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:if(!W.cacheStorageAvailable){q=void 0;I.jumpTo(2);break}if(Q=W.cacheStorageSync){I.jumpTo(3);break}return _.a(I,W.cacheStorageAsync,4);case 4:Q=I.yieldResult;case 3:q=Q;case 2:return X=q,W.isNetworkFirstStrategy?I.return(W.fetchAndUpdateCache(e,X).catch(W.getCacheStorageResponse.bind(W,
e,X))):I.return(W.getCacheStorageResponse(e,X).catch(W.fetchAndUpdateCache.bind(W,e,X)))}})},t=W.renderWhenIdle?new Promise(function(q,Q){_.kM(_.Tm,function(){b().then(q).catch(Q)},10)}):b(),W.responsePromises[e]=t);
return m.return(t.catch(function(q){delete W.responsePromises[e];Qb({error:(q==null?0:q.toString)?q.toString():"",url:e});throw q;}))})};
Rs.prototype.fetchAndUpdateCache=function(W,e){var t=this;return _.F(function(b){return b.return(YLw(t,W).then(function(m){zcQ(t,W,m,e);return m}))})};
var YLw=function(W,e){var t;return _.F(function(b){if(W.numFetches<xsC)return W.numFetches+=1,b.return(UsU(W,e).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var m=Object.keys(W.queuedResponseResolvers)[0],q=W.queuedResponseResolvers[m];delete W.queuedResponseResolvers[m];q.resolve(YLw(W,m))}}));
t=new _.Xu;W.queuedResponseResolvers[e]=t;return b.return(t.promise)})},UsU=function(W,e,t){t=t===void 0?2:t;
var b;return _.F(function(m){b={credentials:"same-origin",priority:"low"};return m.return(_.tz.fetch(e,b).then(function(q){return q.ok?q:Promise.reject(Error("kj`"+q.status+"`"+q.statusText))}).catch(function(q){if(t>0)return UsU(W,e,t-1);
throw q;}))})},zcQ=function(W,e,t,b){_.F(function(m){return b?m.return(new Promise(function(q){_.kM(_.Tm,function(){var Q,X;
return _.F(function(I){switch(I.nextAddress){case 1:if(!W.isNetworkFirstStrategy){Q=void 0;I.jumpTo(2);break}return _.a(I,b.match(e).catch(function(){}),3);
case 3:Q=I.yieldResult;case 2:if(X=Q){I.jumpTo(4);break}return _.a(I,b.put(e,t.clone()).catch(function(u){Qb({error:(u==null?0:u.toString)?u.toString():"",url:e})}),4);
case 4:q(),_.u8(I)}})},50)})):m.return()})};
Rs.prototype.getCacheStorageResponse=function(W,e){return _.F(function(t){return e?t.return(e.match(W).then(function(b){return b&&b.ok?b:Promise.reject()})):t.return(Promise.reject())})};
var OQ$=function(W,e){e===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+e+" "+e);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(m){var t;Qb({error:((t=m)==null?0:t.toString)?m.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(q){var b;Qb({error:((b=q)==null?0:b.toString)?q.toString():
""})}}return W},PvQ=function(W){for(var e=_.R(Jz$),t=e.next();!t.done;t=e.next())if(W.startsWith(t.value)&&W.endsWith(".svg"))return!0;
return!1};
Rs.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var Qb=function(W){_.JC(new _.o_("Error in IconManager",W))},MGU=function(W){if(_.S("wil_icons_cache_purge_killswitch"))return!1;
try{var e=_.tz.localStorage}catch(q){return!1}if(!e||!W.cacheStorageAvailable)return!1;var t=function(q){try{var Q;(Q=e)==null||Q.setItem("yt-icons-last-purged",q.toString())}catch(I){var X;Qb({error:((X=I)==null?0:X.toString)?I.toString():""})}},b=Number(e.getItem("yt-icons-last-purged"));
if(!b)return b=new Date,b=b.setDate(b.getDate()-Math.floor(Math.random()*90+1)),t(b),!1;if(function(q,Q){q=new Date(q);Q=new Date(Q);return Q.getMonth()-q.getMonth()+12*(Q.getFullYear()-q.getFullYear())}(b,Date.now())<3)return!1;
try{return _.tz.caches.delete("yt-icons").then(function(q){q&&t(Date.now());return q}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(q){var m;
Qb({error:((m=q)==null?0:m.toString)?q.toString():""});return!1}};
Rs[dU]=[rfh,_.L4,_.Wi(QqN)];_.FO=function(W,e){this.iconManager=W;this.iconsToFetch=e};
_.FO[dU]=[_.wA,_.Wi(RjP)];var L2Q=function(){};var E91=function(W,e,t){this.requestKey=W;this.qJI=e;this.xOW=t;this.ehb=function(){return new XMLHttpRequest};
this.skI=void 0;this.chW=[]};
E91.prototype.getLatestChallengeResponse=function(){return this.xOW};
var dtD=function(W,e,t){var b,m,q,Q;return _.F(function(X){if(X.nextAddress==1){_.gy("attestation_challenge_fetch");_.Tv("att_fs",void 0,"attestation_challenge_fetch");if(!W.skI)throw new _.CV(9,"Missing fetcher");return _.a(X,W.skI(e,t),2)}b=X.yieldResult;q=(m=b)==null?void 0:m.bgChallenge;if(!q)throw new _.CV(15,"Missing field");W.xOW=b;W.chW.forEach(function(I){I(b)});
Q=GcR(q);_.Tv("att_fc",void 0,"attestation_challenge_fetch");rqZ("attestation_challenge_fetch");return X.return(Q)})},lVS=function(W,e){var t,b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:t=new Fz(100,3E5,.25,2),b=void 0;case 2:if(!(t.currBackoffCount_<10)){X.jumpTo(4);break}_.Qh(X,5);if(!(t.currBackoffCount_>0)){X.jumpTo(7);break}return _.a(X,SnK(t.getValue()),7);case 7:return _.a(X,AzU(W,e),9);case 9:return m=X.yieldResult,X.return(m);case 5:q=_.w9(X);q instanceof _.CV?b=q:(Q=q instanceof Error?q.message:"Unknown",b=new _.CV(9,Q));QpP(t);X.jumpTo(2);break;case 4:if(b)throw b;throw new _.CV(9,"Unknown error");}})},AzU=function(W,
e){e=KTo(PFb(new HFU,e),W.requestKey);
var t=new _.Xu,b=W.ehb();b.open("POST",W.qJI);b.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");b.setRequestHeader("Content-Type","application/json+protobuf");b.onload=function(){if(_.xnK(b)){var m=N9y(b.responseText);t.resolve(m)}else t.reject(new _.CV(_.Ih(_.R_(b)),b.statusText))};
b.onerror=function(){t.reject(new _.CV(_.Ih(_.R_(b)),b.statusText))};
b.send(e.serialize());return t.promise};var dsw=function(W){this.networkStatusManager=W;this.isDownloaded=Dx2===void 0?function(){return!1}:Dx2;
this.isReady=!1;this.iUn=NGB(this)},NGB=function(W){var e;
return _.F(function(t){if(t.nextAddress==1)return _.a(t,jhc(),2);if(t.nextAddress!=3)return e=t.yieldResult,_.a(t,D9S(e),3);W.lV=t.yieldResult;o7D(W.lV).then(function(){W.isReady=!0});
return t.return(W.lV)})},WeM=function(W,e,t){W.lV?(W=W.lV.i8({c6:t,
kIq:!0,dgI:!0}),e.serviceIntegrityDimensions={poToken:W}):_.gQ(Error("mj"))};
dsw.prototype.processContext=function(W){var e=this;if(!W.input.match(_.Am(M1Z)))return _.zr();var t=W.innerTubeRequest,b=t.videoId;return!b||this.isDownloaded(t)||this.networkStatusManager&&!this.lV&&!this.networkStatusManager.isNetworkAvailable()?_.zr():this.lV?this.isReady?(WeM(this,t,b),_.zr()):new Yi(o7D(this.lV).then(function(){WeM(e,t,b)})):new Yi(this.iUn.then(function(m){return _.F(function(q){if(q.nextAddress==1)return _.a(q,o7D(m),2);
WeM(e,t,b);_.u8(q)})}))};var eNC=new _.W_("WEB_PO_CONTEXT_PROCESSOR");var tPT=function(W,e){var t=this;this.x5j=0;var b;this.bue=(b=e==null?void 0:e.bue)!=null?b:window;this.networkStatusManagerPromise=e==null?void 0:e.networkStatusManagerPromise;var m;this.requestKey=(m=e==null?void 0:e.requestKey)!=null?m:_.r8("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var q;this.iWD=(q=e==null?void 0:e.iWD)!=null?q:function(I){return new OX(I)};
var Q;b=(Q=e==null?void 0:e.rLP)!=null?Q:function(I,u,c){return new E91(I,u,c)};
this.bgChallenge=GcR(W.bgChallenge);this.ttlSeconds=DbK(ej(W.challenge||""));this.nj=b(this.requestKey,_.S("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.tz.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",W);Bas(this.nj);var X;this.wV0=(X=e==null?void 0:e.wV0)!=null?X:function(I){_.p4(t.bue.document,"visibilitychange",function(){t.bue.document.visibilityState===
"visible"&&I()})}},mo$=function(W){if(!W.iq){var e={maxAttempts:5,
cfK:W.ttlSeconds*1E3};lxK(W.bue);W.iq=W.iWD({nj:W.nj,nS:{disable:_.S("html5_web_po_disable_remote_logging"),xM:"aGIf",xI0:nSG("html5_web_po_experiment_ids"),wiI:_.S("wpo_dis_lfdms")?0:1E3,sO:_.S("wpo_gel_strz")?function(b){var m=O2r.get(b);m||(m=new xvP(b),m=new uQ(m),O2r.set(b,m));return m}:void 0},
gO7:e,koV:W.bgChallenge,x8K:ZRv});W.x5j=Date.now();UtN(W.iq,function(){W.x5j=Date.now()});
ga9(W.iq,function(){return _.F(function(b){return b.return(brQ(W))})});
var t=W.heK.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(b){b.listen("publicytnetworkstatus-online",t)});
W.wV0(t)}};
tPT.prototype.heK=function(){if(Date.now()>this.x5j+this.ttlSeconds*1E3){var W;(W=this.iq)==null||zOS(W)}};
var brQ=function(W){if(W.wvf)return W.wvf;if(!W.iq)throw Error("nj");W.wvf=new Hq({iq:W.iq,nj:W.nj,tMf:!0,onError:ZRv});return W.wvf},kHG=function(W,e){W=new tPT(W,e);
mo$(W);brQ(W)};var XO=function(W,e){this.store=W;this.queue=[];e==null||e.addEventListener("yt-navigate-start",this.reset.bind(this))};
XO.prototype.enqueue=function(W){var e=W.command,t=W.durationMs,b=W.elementToFocus;var m=W.label;var q=W.elementToFocus;W.command?m=_.Gv("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:m,shortcut:_.Gv("SHIFT_PLUS_ENTER")}):q&&(W=m+". "+_.Gv("SHIFT_PLUS_ENTER")+" for more information.",m=_.Gv("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:m,shortcut:_.Gv("SHIFT_PLUS_ENTER")},W));t={announcement:m,durationMs:t!=null?t:8E3};e?t.command=e:b&&(b.classList.add("ephemeral-action-focusable-element"),t.selector=b.tagName+
".ephemeral-action-focusable-element");this.queue.push(t);rkw(this)};
XO.prototype.activate=function(W){var e=_.g$2(this.store.getState());if(e){if(e==null?0:e.command)_.sD(e.command),this.store.dispatch(gOy(null));if(e==null?0:e.selector)e=document.querySelector(e.selector),_.W7G(e);W.preventDefault()}};
var rkw=function(W){if(!_.g$2(W.store.getState())&&W.queue.length){var e=W.queue.shift();e&&(W.previousAnnouncement===e.announcement&&(e.announcement+="\u00a0"),W.store.dispatch(gOy(e)),W.previousAnnouncement=e.announcement,W.timeoutId=setTimeout(function(){if(e.selector){var t;(t=document.querySelector(e.selector))==null||t.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(gOy(null));rkw(W)},e.durationMs))}};
XO.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(gOy(null));this.queue.length=0;this.timeoutId=void 0};
XO[dU]=[_.hh,_.$6];_.Is=new _.W_("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var qSB=new _.W_("AUTH_SERVICE_TOKEN");var jiG=_.Nw(["about:blank"]),y$K;var RN1=new _.W_("API_IFRAME_TOKEN"),QyT=new _.W_("FETCH_FN_TOKEN"),Feg=new _.W_("PARSE_FN_TOKEN"),XUU=new _.W_("WINDOW_REQUEST_TOKEN");var W_y;W_y=new _.W_("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.IDC=new _.W_("MISC_UI_SHARED_FLAGS_TOKEN");var aDT=function(){};
aDT.prototype.getFlag=function(W){if(W.configType!==2)throw Error("oj");return wUQ(W)};
var wUQ=function(W){switch(W.flagType){case "bool":return _.S(W.flagName);case "int":return _.Yv(_.mn(W.flagName));case "double":return _.mn(W.flagName);case "string":return _.r8(W.flagName);case "int32_list":return nSG(W.flagName);case "int64_list":return nSG(W.flagName).map(function(e){return _.Yv(e)});
case "string_list":return _.qz(W.flagName);default:throw Error("pj");}};var as=function(W,e,t){e=e===void 0?{}:e;TM.call(this,t===void 0?"uninitialized":t);this.env=W;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];e.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=e.shouldWaitOnAsyncImmediate)};
_.Z(as,TM);as.prototype.init=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.a(b,W(e.env),2):(W(e.env),b.jumpTo(2));if(b.nextAddress!=4)return e.jobSet?_.a(b,e.jobSet.completedResolver.promise,4):b.jumpTo(4);t=_.sj();t.parkOrScheduleJob(function(){e.transition("rendering")},10,"ci");
_.u8(b)})};
as.prototype.initialRender=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.a(b,W(e.env),2):(W(e.env),b.jumpTo(2));if(b.nextAddress!=4)return e.jobSet?_.a(b,e.jobSet.completedResolver.promise,4):b.jumpTo(4);t=_.sj();t.parkOrScheduleJob(function(){e.transition("rendered")},10,"cr");
_.u8(b)})};
as.prototype.afterRenderImmediate=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return e.processPluginOptions.shouldWaitOnAsyncImmediate?_.a(b,W(e.env),2):(W(e.env),b.jumpTo(2));if(b.nextAddress!=4)return e.jobSet?_.a(b,e.jobSet.completedResolver.promise,4):b.jumpTo(4);t=_.sj();t.parkOrScheduleJob(function(){e.transition("after-render-deferred")},10,"carml");
_.u8(b)})};
as.prototype.afterRenderDeferred=function(W){var e=this;return _.F(function(t){W(e.env);_.u8(t)})};var ubS={},ckw=(ubS.rendered={priority:0,callback:function(W){TTB(W.injector.resolve(pJ))}},ubS);var vvS=!1,MpR=0,Tav=null,ORG=null;var GZg=new _.W_("NETWORK_SLI_TOKEN");var Dol=function(W,e,t,b){this.networkSli=W;this.fetchFn=e;this.parseFn=t;this.requestFn=b};
Dol.prototype.fetch=function(W,e,t){var b=this,m,q,Q;return _.F(function(X){m=SSC(b,W,e);Q=(q=b.fetchFn)!=null?q:fetch;return X.return(Q(m).then(function(I){return b.handleResponse(I,t)}).catch(function(I){_.JC(I);
if((t==null?0:t.expectJsonStrict)&&I instanceof oe&&I.errorType===1)return Promise.reject(I)}))})};
var MMB=function(W,e,t,b){var m,q,Q,X,I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:return m=SSC(W,e,t),_.Qh(v,2),_.a(v,fetch(m),4);case 4:q=v.yieldResult;_.Hi(v,3);break;case 2:throw _.w9(v),new oe(2,"Failed to parse streaming response",m.url);case 3:if(!q.redirected&&!q.ok)throw(Q=W.networkSli)==null||Q.failure(),new _.o_("Streaming fetch request not ok",m.url);if(!q.body)throw new _.o_("No response body in streaming response",m.url);X={};if(_.S("web_streaming_fast"))return I=q.body.getReader(),
v.return(BBC(W,I,X,b));u=q.body.pipeThrough(new TextDecoderStream).getReader();c=new _.RU;return v.return(ovC(W,u,c,q1G,X,b))}})},SSC=function(W,e,t){if(W.networkSli){var b=_.I_(_.W6(e,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(b)}b=t;_.S("wug_networking_gzip_request")&&(b=Vwc(t));var m;return new ((m=W.requestFn)!=null?m:window.Request)(e,b)},BBC=function(W,e,t,b){var m,q,Q,X,I,u,c,v,D,B,k;
return _.F(function(n){switch(n.nextAddress){case 1:m=new TextDecoder("utf-8"),q="",Q=function(f){f=f.trim();f.length!==0&&f!=="]"&&f!=="["?(f.startsWith("[")&&(f=f.substring(1)),f.endsWith("]")&&(f=f.slice(0,-1)),f.endsWith(",")&&(f=f.slice(0,-1)),f=f.trim()):f=void 0;if(f)try{var M=JSON.parse(f);q1G(t,M);b==null||b(t,M)}catch(K){throw new oe(1,"Failed to parse streaming response",f);}},_.Qh(n,2,3);
case 5:return _.a(n,e.read(),8);case 8:X=n.yieldResult;I=X.value;if(u=X.done)return q.length>0&&Q(q),c=void 0,(c=W.networkSli)==null||c.success(),n.return(t);q+=m.decode(I,{stream:!0});v=q.split("\n");q=v.pop()||"";D=_.R(v);for(B=D.next();!B.done;B=D.next())k=B.value,Q(k);n.jumpTo(5);break;case 3:_.FY(n);e.releaseLock();_.aG(n,0);break;case 2:throw _.w9(n),new oe(1,"Failed to parse streaming response");}})},ovC=function(W,e,t,b,m,q){var Q,X,I,u,c,v,D,B,k;
return _.F(function(n){if(n.nextAddress==1)return _.a(n,e.read(),2);Q=n.yieldResult;X=Q.value;if(I=Q.done)return(u=W.networkSli)==null||u.success(),n.return(m);try{c=t.parse(X)}catch(f){throw new oe(1,"Failed to parse streaming response",X);}if(c!=null)for(v=_.R(c),D=v.next();!D.done;D=v.next())B=D.value,b(m,B),k=void 0,(k=q)==null||k(m,B);return n.return(ovC(W,e,t,b,m,q))})};
Dol.prototype.handleResponse=function(W,e){var t,b=(t=this.parseFn)!=null?t:JSON.parse;t=W.text().then(function(m){if((e==null?0:e.jspbResponseCtor)&&W.ok)return tKc(e.jspbResponseCtor,m);m=m.replace(")]}'","");if((e==null?0:e.expectJsonStrict)&&m)try{var q=b(m)}catch(X){throw new oe(1,"JSON parsing failed after fetch");}var Q;return(Q=q)!=null?Q:b(m)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),t=t.then(function(m){_.JC(new _.o_("Error: API fetch failed",W.status,W.url,m));return Object.assign({},m,{errorMetadata:{status:W.status}})}));
return t};
Dol[dU]=[_.Wi(GZg),_.Wi(QyT),_.Wi(Feg),_.Wi(XUU)];var lDg=new _.W_("NETWORK_MANAGER_TOKEN");var ZrU=[1,2,4,8,16,30],kZw=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.R(ZrU);for(var e=W.next();!e.done;e=W.next())this.brokenFrameSummarizers.push(new $oC(e.value/60*1E3))},pUw=function(W){var e=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||e},ykE=function(W){for(var e=[],t=_.R(W.brokenFrameSummarizers),b=t.next();!b.done;b=t.next())b=b.value,b=b.brokenFrameCount!==0?{severityMs:Math.round(b.targetFrameTimeMs),
eventCount:b.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(b.averageDurationBetweenEventsMs)}:void 0,b&&e.push(b);return{summaries:e,monitoringDurationMs:Math.round(W.elapsedTimeMs)}};
_.Ec.Object.defineProperties(kZw.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 $oC=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Ec.Object.defineProperties($oC.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var jy1=function(){};
jy1.prototype.start=function(W,e){var t=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var b=new kZw({maxTimeMs:W});this.monitor=b;this.lastSummaryInternal=void 0;this.metadataToLog=e;return new Promise(function(m){var q=function(Q){if(Q===void 0)t.stop(),m(void 0);else if(t.monitor!==b)Q=Object.assign({},ykE(b),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),m(Q);else{var X=t.monitor;if(!pUw(X)){X.frameCountInternal++;if(X.prevTime===void 0)X.startTime=
Q;else for(var I=Q-X.prevTime,u=_.R(X.brokenFrameSummarizers),c=u.next();!c.done;c=u.next()){c=c.value;var v=c.currTimeMs;c.currTimeMs+=I;I>c.targetFrameTimeMs+2&&(c.brokenFrameCount++,c.timeOfFirstBrokenFrameMs===void 0&&(c.timeOfFirstBrokenFrameMs=v),c.timeOfLastBrokenFrameMs=v)}X.prevTime=Q}pUw(t.monitor)?m(t.stop()):_.Tm.addJob(q,5,0)}};
_.Tm.addJob(q,5,0)})};
jy1.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var e=Object.assign({},ykE(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(e.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var t={droppedFramesSummary:e,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(t[W.type]=W.data);_.nJ("manualSmoothnessMeasurement",t)}this.monitor=void 0;this.lastSummaryInternal=e;this.metadataToLog=void 0;return e};_.ChM=new _.W_("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var nvl;nvl=function(W){this.JSC$16371_expiringStorage=new ZK(W)};
_.fDB=function(W){if(_.siG()&&(W=_.STG(_.Se()+"::"+W)))return new nvl(W)};
nvl.prototype.set=function(W,e,t){t=t!==void 0?Date.now()+t:void 0;this.JSC$16371_expiringStorage.set(W,e,t)};
nvl.prototype.get=function(W){return this.JSC$16371_expiringStorage.get(W)};
nvl.prototype.remove=function(W){this.JSC$16371_expiringStorage.remove(W)};var gvB=new _.W_("SESSION_STORAGE");_.w1=function(){};
_.w1.getInstance=function(){var W=_.HO("ytglobal.storage_");W||(W=new _.w1,_.Nz("ytglobal.storage_",W));return W};
_.w1.prototype.estimate=function(){var W,e,t;return _.F(function(b){W=navigator;return((e=W.storage)==null?0:e.estimate)?b.return(W.storage.estimate()):((t=W.webkitTemporaryStorage)==null?0:t.queryUsageAndQuota)?b.return(h4K()):b.return()})};
_.Nz("ytglobal.storageClass_",_.w1);var VpR=!!(mc[1]&8192);var P5v=!1;var TBg=_.Nw(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Jk$=_.Nw(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var YGv={"/":_.DB,"/?feature=ytca":_.DB,"/feed/downloads":_.nTL};var Sj=function(W,e,t){this.JSC$16383_upliftPromise=W;this.store=e;this.JSC$16383_persistentStorePromiseAccessor=t};
Sj.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?!0:!1};
Sj.prototype.localInnertubeResponse=function(W){var e=this;return _.F(function(t){return W.browseId==="FEdownloads"?_.S("kevlar_modern_downloads_page")?t.return(xoU(e)):t.return(Org(e)):W.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?t.return(MPB(e)):t.return(Promise.reject(Error("rj")))})};
Sj.prototype.canProvideFallbackResponse=function(){return!0};
Sj.prototype.localFallbackInnertubeResponse=function(W){var e=this,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return _.a(q,e.JSC$16383_persistentStorePromiseAccessor(),2);case 2:t=q.yieldResult;if(W.browseId!=="SPaccount_downloads"||!t){q.jumpTo(3);break}return _.a(q,GGv(t),4);case 4:if(b=q.yieldResult)return q.return(_.I4(b));case 3:return W.browseId==="FEwhat_to_watch"?q.return(syE(e)):(m=_.S("web_offline_continuation_automatic_retry")||_.S("web_offline_continuation_retry_button"))&&
W.continuation?q.return(hNC(e)):q.return(Hrw(e))}})};
var syE=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$16383_upliftPromise,2);e=_.ekQ(W.store.getState().entities);return e.length?t.return(Ke$(W,e)):t.return(Hrw(W))})},Org=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$16383_upliftPromise,2);if(b.nextAddress!=3)return e=Phw([{offlineItemSectionRenderer:{}}]),_.a(b,VPT(W,e),3);t=b.yieldResult;t.onResponseReceivedActions=[nv("REFRESH_DOWNLOADS")];return b.return(t)})},xoU=function(W){var e,t,b,m,q,Q,X,I,u,c,v,D,B;
return _.F(function(k){if(k.nextAddress==1)return _.a(k,W.JSC$16383_upliftPromise,2);if(k.nextAddress!=3)return e=W.store.getState(),t=e.entities,b=_.yJ(t),m=_.jw(t),q=_.CyZ(e),Q=_.j7K(e),X=_.niQ(e),I=_.mdL(t),u=_.o1(b),c=_.CG(t),v={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.HqD(b,m,I,q,Q,u,c,X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},D=_.Gv("DOWNLOADS",void 0,"Downloads"),_.a(k,irT(W,v,D),3);B=k.yieldResult;
B.onResponseReceivedActions=[nv("REFRESH_DOWNLOADS")];return k.return(B)})},MPB=function(W){var e,t,b,m,q,Q,X,I,u;
return _.F(function(c){if(c.nextAddress==1)return _.a(c,W.JSC$16383_upliftPromise,2);if(c.nextAddress!=3)return e=W.store.getState(),t=e.entities,b=_.yJ(t),m=_.o1(b),q=_.CG(t),Q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Pig(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},X=_.Gv("SMART_DOWNLOADS",void 0,"Smart downloads"),I=s9R(m,q),_.a(c,irT(W,Q,X,I),3);u=c.yieldResult;u.onResponseReceivedActions=[nv("REFRESH_DOWNLOADS")];
return c.return(u)})},Hrw=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1)return _.a(b,Xq(W.JSC$16383_upliftPromise,W.store),2);e=b.yieldResult;t=Phw([wcR(e)]);return b.return(VPT(W,t))})},hNC=function(W){var e,t,b,m;
return _.F(function(q){if(q.nextAddress==1)return e={},t=W.store.getState().continuation.continuationCommand,_.gA(e,_.hp,t),_.a(q,Xq(W.JSC$16383_upliftPromise,W.store,e,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);b=q.yieldResult;m={};_.gA(m,_.B28,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:b}}}],targetId:"browse-feedFEwhat_to_watch"});return q.return({responseContext:{},onResponseReceivedActions:[m]})})},Phw=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},Ke$=function(W,e){var t,b;
return _.F(function(m){var q={contents:fv(e)};t=q&&q.contents?q:{};_.S("kevlar_modern_downloads_page")&&(t=Object.assign({},_.VRK(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:t}}}]}};return m.return(VPT(W,b))})},VPT=function(W,e){var t,b;
return _.F(function(m){if(m.nextAddress==1)return _.a(m,W.JSC$16383_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return t=m.yieldResult,_.a(m,a4(t),3);b=m.yieldResult;return m.return({responseContext:{},contents:e,topbar:b})})},irT=function(W,e,t,b){var m,q;
return _.F(function(Q){if(Q.nextAddress==1)return _.a(Q,W.JSC$16383_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return m=Q.yieldResult,_.a(Q,a4(m),3);q=Q.yieldResult;var X=Q.return;var I=b;I=I===void 0?"":I;I={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:t}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Gv("SETTINGS",void 0,"Settings"),accessibilityText:_.Gv("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:Wm("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:I}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:t};
return X.call(Q,{responseContext:{},contents:e,topbar:q,header:{pageHeaderRenderer:I}})})};var YS1=function(){this.moduleRegistry={};this.fetchCount=0};
YS1.prototype.isFetching=function(){return this.fetchCount>0};
var PN=function(W,e){W.moduleRegistry[e.toString()]={asyncId:e,isFetching:!1};return W};
YS1.prototype.JSC$16394_loadModules=function(){for(var W=this,e=new Map,t=[],b=_.R(_.$N.apply(0,arguments)),m=b.next();!m.done;m=b.next()){m=m.value;var q=this.moduleRegistry[m];q?q.resolver?e.set(m,q.resolver):(q.resolver=new _.Xu,e.set(m,q.resolver),t.push(q.asyncId),q.isFetching=!0):(q=new _.Xu,e.set(m,q),q.resolve(void 0))}t.length&&(this.fetchCount+=1,_.yd(_.qQ.getMultipleAsync.apply(_.qQ,_.kP(t)).then(function(Q){for(var X=0;X<t.length;X++){var I=Q[X],u=W.moduleRegistry[t[X].toString()];u.isFetching=
!1;u.resolver.resolve(I)}}).catch(function(Q){for(var X=_.R(t),I=X.next();!I.done;I=X.next()){I=I.value;
var u=W.moduleRegistry[I.toString()];u.resolver=void 0;u.isFetching=!1;e.get(I.toString()).reject(Q)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.kP(e.values())).map(function(Q){return Q.promise}))};_.V$=new _.W_("MODULE_REGISTRY_TOKEN");var zN1={},Uo9=(zN1.rendered={priority:0,callback:function(W){a:{var e=void 0;try{var t;b:{if(_.egg()){var b=_.DgR(_.Se()+"::pom");if(b){var m=new yN(b);break b}}m=void 0}var q=(t=m)==null?void 0:t.get("role_text");if(!q)break a;e={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:q}]}}}}}}catch(I){}e&&W.injector.resolve(_.tQ).resolveCommand(e)}try{var Q=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Q){var X=JSON.parse(Q);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
X&&W.injector.resolve(_.tQ).resolveCommand(X)}}catch(I){}}},zN1);var LeT,Ev$={},AkQ=(Ev$.initialized={priority:10,callback:function(){LeT=nn()}},Ev$.rendering={callback:function(W){var e;
return _.F(function(t){if(t.nextAddress==1)return _.a(t,LeT,2);e=t.yieldResult;if(!e.endpoint)throw Error("tj`"+_.tz.location.href);Ji(W,e);_.u8(t)})}},Ev$);var NBC={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(_.kP(_.S("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(W){var e=W.stack;if(e.includes("chrome://")||e.includes("chrome-extension://")||W.message.includes("chrome-extension://")||e.includes("moz-extension://")||e.includes("local.adguard.org")||e.includes("auctioneer3.50million.club")||e.includes("youtubedownloader")||e.includes("youtube_home_page")||e.includes("is_youtube_video_no_longer_available")||
e.includes("switchScreenSizeHack")||e.includes("yt_main_big_banner.js")||e.includes("YouTubeCenter.js")||e.includes("/mytube.js")||e.includes("JSON.parseWrapper")||e.includes("/inj_js/common.js")||e.includes("firebug-lite")||e.includes(".repl.co/")||e.includes("linkfix")||e.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&e.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
e.includes("<anonymous>"))return!0;if(e.includes("https://www.youtube.com"))return!1;W=e.split("\n");if(!W.length)return!1;if(W.length<=3&&e.includes("s.onloadeddata"))return!0;e=0;for(var t=_.R(W),b=t.next();!b.done;b=t.next())b=b.value,(b.includes("https://")||b.includes("http://"))&&e++;return e/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.aP)return!1;var e=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),t=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return e||t||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var e=W.stack.trim().split("\n");e.length&&e[0].endsWith("Error: "+W.message)&&e.shift();e.length&&e[e.length-1].includes("at window.onerror (")&&e.pop();if(!e.length)return!0;if(W.message==="Script error.")return e[0].includes("www.youtube.com")||e.length>=2&&e[0].startsWith("at new")&&e[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.R(e);for(e=W.next();!e.done;e=W.next())if(e=e.value,!(e.includes("<anonymous>")||
e.startsWith("load@")||e.startsWith("global code@")||e.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.S("use_error_suppression"))var W=_.Ot("SUPPRESS_CLIENT_ERRORS",!1);else{if(W=_.G9)W=/Chrome\/(\d+)/.exec(_.vZ()),W=(W?parseFloat(W[1]):NaN)>=66;W=!(W||_.vb&&_.cb(65)||_.JQ&&_.cb(12.1)||Ei&&_.cb(79))}return W},
weight:500}]};var do1={},WUu=(do1.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:fWN,useValue:W.root});W.injector.addProvider({provide:MbP,useValue:c_Z});W.injector.addProvider({provide:sfv,useValue:NBC});var e={};W.injector.addProvider((e.provide=hGS,e.useFactory=function(t,b){return function(){ffG(t,b)}},e[dU]=[MbP,
sfv],e));W.injector.addProvider({provide:IL,useClass:IL})}},do1);var eQw={},tTB=(eQw.initialized={priority:3,callback:function(){var W;if(W=IZS()){W=W.replace("/",".");var e=_.B6();e.set("tz",W);e.save();W=!0}else W=!1;W||(W=_.B6(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},eQw);var bC9={},m9g=(bC9.initialized={priority:10,callback:function(W){W.injector.resolve(IL).start();W=_.im();var e=_.MD("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.MD("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.MD("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.MD("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.vN(_.OVv(),{mainAppWeb:Object.assign({},W,{pageType:e})});_.vN(sr9(),{mainAppWeb:Object.assign({},W,{pageType:e})});
_.vN(h1v(),{mainAppWeb:W});_.vN(HVv(),{mainAppWeb:W});Yi8(function(){_.GL(h1v(),"FAILURE");_.GL(HVv(),"FAILURE")});
r92();qgL();i7R()}},bC9);var rSC={},qBS=(rSC.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Tv("dl"),_.sj().processSignal("pcl");else{var W=function(){_.Tv("dl");_.sj().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},rSC);var RQT={},Q$l=(RQT.rendering={priority:0,callback:function(){var W=_.sj();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},RQT);var FUw=function(){};
_.Z(FUw,se);
FUw.prototype.resolveCommand=function(W,e){var t,b,m,q,Q,X,I,u;return _.F(function(c){m=(t=_.l(W,_.m_k))==null?void 0:(b=t.dialog)==null?void 0:b.commentReplyDialogRenderer;if(!m)throw new _.o_("No dialog in createCommentReplyDialogEndpoint");Q=(q=e.form)==null?void 0:q.event;if(!Q)throw new _.o_("Event not passed in when resolving command");X=_.R(Q.composedPath());for(I=X.next();!I.done;I=X.next())if(u=I.value,u.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||u.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return u.showReplyDialog(m),c.return();
_.u8(c)})};var ud=function(W){this.pageRequestService=W;this.JSC$16409_prefetchCoordinator=$Bk()};
_.Z(ud,se);ud.prototype.resolveCommand=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){t=_.l(W,MLZ);if((b=t)==null||!b.taskId)throw Error("uj");m=t.taskId;_.Qh(Q,2);return _.a(Q,_.Jak(e.pageRequestService,W,{},"").then(function(X){if(!X)throw Error("vj");},function(X){throw Error("wj`"+X);
}),4)}if(Q.nextAddress!=2)return yZb(e.JSC$16409_prefetchCoordinator,m),_.Hi(Q,0);
q=_.w9(Q);Yd(e.JSC$16409_prefetchCoordinator,m,q);_.u8(Q)})};
ud[dU]=[y$];var cj=function(W){this.innertubeTransportService=W};
_.Z(cj,se);cj.prototype.resolveCommand=function(W){var e=this,t,b;return _.F(function(m){t=_.l(W,h9v);if(t.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||t.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")b=t.boolValue?2:1,_.dv.getInstance().setState(b,!0,!0);return _.a(m,_.z2(e.innertubeTransportService,W),0)})};
cj[dU]=[_.J8];var vj={},Xuw=(vj.addToPlaylistEndpoint=dy(BJ),vj.addToToastAction=dy(j0),vj.adsControlFlowOpportunityReceivedCommand=dy(tL),vj.captionLanguageSelectActionCommand=dy(JL),vj.captionPickerEndpoint=dy(xk),vj.changeMiniAppPlayStateCommand=dy(ok),vj.changeTimelyActionVisibilityCommand=dy(yj),vj.channelCreationFormEndpoint=dy(ur),vj.clearLocationCommand=dy(SE),vj.clearUrlParamCommand=dy(lr),vj.copyLinkCommand=dy(HJ),vj.copyTextEndpoint=dy(rY),vj.createCommentReplyDialogEndpoint=hIv(FUw),vj.createPlaylistServiceEndpoint=
dy(KS),vj.dismissDialogEndpoint=dy($k),vj.entityUpdateCommand=dy(Rk),vj.feedbackEndpoint=dy(Xf),vj.getAnswerCommand=dy(gmv),vj.getPaymentsClientTokenCommand=dy(fN),vj.getTranscriptEndpoint=dy(CN),vj.googlePaymentBillingCommand=dy(gV),vj.googlePaymentPurchaseManagerCommand=dy(Ts),vj.hideEngagementPanelEndpoint=dy(kk),vj.hideSnackbarCommand=dy(wV),vj.insertRichSectionCommand=dy(vJ),vj.listMutationCommand=dy(Gd),vj.logGtmCommand=dy(cJ),vj.notifyDropdownOptionSelectedCommand=dy(Zv),vj.openAdAllowlistInstructionCommand=
dy(_.br),vj.openOnePickAddVideoModalCommand=dy(PJ),vj.persistSubscriptionsDisplayPreferencesCommand=dy(LS),vj.pingingEndpoint=dy(mP),vj.playlistEditEndpoint=dy(ir),vj.playlistVotingRefreshPopupCommand=dy(Yk),vj.refreshPanelEndpoint=dy(pS),vj.saveImageToDeviceEndpoint=dy(qy),vj.scrollToSectionEndpoint=hIv(T_y),vj.seekToVideoTimestampCommand=dy(Oa),vj.selectCountryCommand=dy(Ea),vj.setCookieCommand=dy(AL),vj.setLocalStorageCommand=dy(cE),vj.setPrefStorageEntryCommand=dy(dY),vj.setSettingEndpoint=dy(cj),
vj.sfvAudioItemPlaybackCommand=dy(My),vj.shareImageCommand=dy(WE),vj.sharingProviderDataCommand=dy(e0),vj.showCaptionLanguageSelectActionCommand=dy(sa),vj.showDialogCommand=dy(CS),vj.showEngagementPanelEndpoint=dy(nS),vj.showSheetCommand=dy(fS),vj.showSnackbarCommand=dy(uP),vj.showTransientPlayerScrimOverlayCommand=dy(hL),vj.submitFormWithValidationFlowCommand=dy(wY),vj.talkToRecsDeselectCommand=dy(vE),vj.talkToRecsNextCommand=dy(Gs),vj.talkToRecsSelectCommand=dy(DE),vj.talkToRecsUpdateTextCommand=
dy(S0),vj.toggleEngagementPanelCommand=dy(gY),vj.undoFeedbackEndpoint=dy(ak),vj.updateEngagementPanelContentCommand=dy(Td),vj.updateUrlParamCommand=dy(nN),vj.verifyCommand=dy(ur),vj.webNativeShareCommand=dy(tY),vj.webSubmitFormCommand=dy(zd),vj.ACK_PLAYABLES_3P_DATA_CONSENT=dy(bP),vj.CANCEL_NAVIGATION=dy(mN),vj.COPY_SHARE_URL=dy(rV),vj.MINI_APP_EXIT_DIALOG_SEEN=dy(RW),vj.MINI_APP_OPEN_URL=dy(q4),vj.REQUEST_MINI_APP_FULLSCREEN=dy(Qj),vj.RESUME_NAVIGATION=dy(Fl),vj.SHARE_PLAYABLE_WITH_HIGH_SCORE=dy(Xl),
vj.TELL_US_WHY=dy(Ik),vj);_.S("web_enable_prefetching_videos_on_home")&&(Xuw.prefetchWatchCommand=dy(ud),Xuw.registerTasksCommand=dy(UA));_.S("enable_share_panel_navigation_logging_fix_on_web")&&(Xuw.shareEntityServiceEndpoint=dy(yM));var KID=Object.assign({},Xuw);var IMl={},aMT=(IMl.initialized={priority:10,callback:ILs},IMl);var wug={},uCU=(wug.initialized={callback:function(W){var e={},t={};WLG().install((e.document_disposed={callback:function(){_.S("finalize_all_timelines")?q5g():ne();J$G("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.IWg();var b=W.injector.resolve(IL);b.intervalId!==void 0&&(b.intervalId&&_.Tm.cancelJob(b.intervalId),b.intervalId=void 0,--b.currentPartitionIndex,b=SOv(b),b>0&&y2Z({mainAppWeb:_.im(),survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));DrU(V9);iy!=null&&
iy.flush();rD&&rD.snapshotAndFlush();b=_.R(O2r.values());for(var m=b.next();!m.done;m=b.next())m.value.snapshotAndFlush()}},e),(t.flush_logs={callback:function(){_.fJ()}},t))}},wug);var cSl={},vlE=(cSl.rendered={priority:0,callback:function(){var W=new gPh;W.increment("STARTED");if(_.Ot("LOGGED_IN")&&_.Ot("SERVER_VERSION")!=="test"&&_.Ot("SERVER_VERSION")!=="dev"&&!GSS()&&!v9v()){W.increment("EXECUTING");var e=document.createElement("iframe");e.style.display="none";_.DSs(e,2,_.lF("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(e);W.increment("DONE")}}},cSl);var G1U={},D9B=(G1U.rendered={callback:function(){$Bk().resume()}},G1U);var SBl={acknowledgeChannelTouStrikeCommand:$Q(FE),addToPlaylistServiceEndpoint:$Q(ql),addToPlaylistEndpoint:$Q(ql),addUpcomingEventReminderEndpoint:$Q($C),browseEndpoint:$Q(qCB),channelCreationFormEndpoint:$Q(td),channelCreationServiceEndpoint:$Q(bs),claimLegacyYoutubeChannelEndpoint:$Q(PE),clearSearchHistoryEndpoint:$Q(v5),clearWatchHistoryEndpoint:$Q(GA),commerceActionCommand:kQ(yr),createBackstagePostEndpoint:$Q(O1),createBroadcastCommand:$Q(kC),createCommentEndpoint:$Q(N4),createCommentReplyEndpoint:$Q(AY),
createLiveChatPollEndpoint:$Q(pX),createPlaylistServiceEndpoint:$Q(RY),crossAccountChannelTransferEndpoint:$Q(B5),deleteLiveChatMessageCommand:$Q(y7),deletePlaylistEndpoint:$Q(Qr),deleteVideoEndpoint:$Q(ZC),dismissalEndpoint:$Q(XE),feedbackEndpoint:$Q(I2),flagEndpoint:$Q(uW),getAccountSwitcherEndpoint:$Q(Sk),verifyCommand:$Q(x_),getAccountsListInnertubeEndpoint:$Q(ls),getCommentsFromInboxCommand:$Q(P5),getDownloadActionCommand:$Q(EO),getFlowCommand:kQ(c5),getKidsBlocklistPickerCommand:$Q(cD),getNotificationMenuEndpoint:$Q(FbZ),
getPaymentInstrumentsParamsCommand:$Q(TO),getPaymentsClientTokenCommand:kQ(yr),getPdgBuyFlowCommand:$Q(mR),getReportFormEndpoint:$Q(vD),getSearchInVideoCommand:$Q(SD),getAnswerCommand:$Q(DC),getSurveyCommand:$Q(lW),getTranscriptEndpoint:$Q(kd),getPostVideoPreviewEndpoint:$Q(s1),decorateMessageEndpoint:$Q(M4),likeEndpoint:$Q(mL),liveChatActionEndpoint:$Q(fX),liveChatEndpoint:$Q(nX),liveChatItemContextMenuEndpoint:$Q(jk),liveChatPurchaseMessageEndpoint:$Q(gK),liveChatReplayEndpoint:$Q(CX),manageLiveChatUserEndpoint:$Q(Jd),
metadataUpdateCommand:$Q(H5),moderateLiveChatEndpoint:$Q(xC),modifyChannelNotificationPreferenceEndpoint:$Q(zA),notificationOptOutEndpoint:$Q(UO),openSuperStickerBuyFlowCommand:$Q(TA),performCommentActionEndpoint:$Q(U1),playlistEditEndpoint:$Q(Xv),playlistEditorEndpoint:$Q(Fv),profileCardCommand:$Q(ZW),recordNotificationInteractionsEndpoint:$Q(LX),reelWatchEndpoint:$Q(IY),refreshPanelEndpoint:$Q(Nh),removeUpcomingEventReminderEndpoint:$Q(OO),resolveLocationCommand:$Q(hd),revealBusinessEmailCommand:$Q(Vj),
searchEndpoint:$Q(_.Xxr),sendLiveChatMessageEndpoint:$Q(Mh),sendLiveChatVoteEndpoint:$Q(sO),setSettingEndpoint:$Q(rK),shareEntityServiceEndpoint:kQ(Q7),sharingProviderDataCommand:$Q(oY),showEngagementPanelEndpoint:$Q(dK),showMoreDrawerCommand:$Q(eD),showSheetCommand:$Q(tW),showDialogCommand:$Q(WD),subscribeEndpoint:$Q(qh),transcriptSubmitCaptionCorrectionCommand:$Q($d),undoFeedbackEndpoint:$Q(wK),unsubscribeEndpoint:$Q(R2),updateBackstagePostEndpoint:$Q(HE),updateCommentEndpoint:$Q(W5),updateCommentReplyEndpoint:$Q(dV),
updateCommentsSettingsEndpoint:$Q(ek),updateCreatorChannelInnertubeCommand:$Q(Y_),updateKidsBlacklistEndpoint:$Q(GO),updateEngagementPanelContentCommand:$Q(bW),updatePdgFeatureEnablementCommand:$Q(rx),updatedMetadataEndpoint:$Q(KX),validateChannelHandleCommand:$Q(zs),updateChannelPageSettingsEndpoint:$Q(iP),verifyAgeEndpoint:$Q(us),watchEndpoint:kQ(v1),whitelistEditEndpoint:$Q(pw),ypcCancelRecurrenceEndpoint:$Q(jD),ypcCompleteTransactionEndpoint:$Q(Cw),ypcFixInstrumentEndpoint:$Q(fw),ypcGetCartEndpoint:$Q(nw),
ypcGetOffersEndpoint:$Q(gx),ypcHandleTransactionEndpoint:kQ(JW),ypcLogWalletAnalyticDataEndpoint:$Q(xd),ypcOffersEndpoint:$Q(OA),ypcPauseSubscriptionCommand:$Q(Ml),ypcRedeemCodeEndpoint:$Q(sA),ypcResumeSubscriptionCommand:$Q(hW),ypcUpdateFopEndpoint:$Q(fw)},GB={},BE1=(GB.GET_ACCOUNT_MENU=$Q(o2),GB.GET_NOTIFICATIONS_MENU=$Q(QfD),GB.GET_NOTIFICATIONS_INBOX=$Q(V7),GB.GET_UNSEEN_NOTIFICATION_COUNT=$Q(YC),GB.GET_USER_MENTION_SUGGESTIONS=$Q(hY),GB.LOAD_GUIDE=$Q(RGP),GB.SUBMIT_FEEDBACK=$Q(a2),GB),Dl={},
olB=(Dl.CONTINUATION_REQUEST_TYPE_BROWSE=$Q(KN),Dl.CONTINUATION_REQUEST_TYPE_SEARCH=$Q(BD),Dl.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=$Q(DU),Dl.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=$Q(DW),Dl.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=$Q(E1),Dl.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=$Q(LN),Dl.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=$Q(wx),Dl.CONTINUATION_REQUEST_TYPE_GET_PANEL=$Q(Ad),Dl),lMT={player:kQ(v1),watchNext:$Q(GI)},ZCB={player:kQ(v1),reelItemWatch:$Q(IY),reelWatchSequence:$Q(aY)},
$9w={watchEndpoint:kQ(S1)},k1S={commandEndpointMap:SBl,signalEndpointMap:BE1,continuationEndpointMap:olB,watchEndpointMap:lMT,reelWatchEndpointMap:ZCB,streamingEndpointMap:$9w};var puw,ySC,j$g,CgC={disableAllTransitions:(ySC=(puw=window).matchMedia)==null?void 0:(j$g=ySC.call(puw,"(prefers-reduced-motion: reduce)"))==null?void 0:j$g.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var aL2={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 ut9=["videoPrimaryInfoRenderer","title"],c9c=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var nlM;nlM=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.fMM=_.NN(function(W){W=_.Ez(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var e=W.data,t=W.playlistData,b=W.expanded,m=W.onExpandClick,q=W.isReadyToResume,Q=function(){var c;return!((c=t())==null||!c.contents)},X=function(){var c=t();
return c&&c.totalVideos&&c.currentIndex!==void 0?c.currentIndex+1+" / "+c.totalVideos:""};
W=_.Be(function(){_.Sy(_.ee().resolve(_.Kn));return!1});
var I=_.Be(function(){Q()&&m&&m()}),u={};
return _.w("ytd-miniplayer-info-bar",{class:_.ve("ytdMiniplayerInfoBarHost",(u.ytdMiniplayerInfoBarHasPlaylistData=Q,u)),"on:click":I},_.w("div",{class:"ytdMiniplayerInfoBarContent"},_.w("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.w(_.WL,{text:function(){var c=e();var v=t();if(v==null?0:v.contents){var D;c=(D=_.drc(v))==null?void 0:D.title}else c=c==null?void 0:c.miniplayerTitle;return G$K(c)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.w(_.G,{cond:q,then:function(){return _.w(fCS,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:nlM})}}),_.w("h1",null,_.w(_.WL,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var c=e();var v=t();c=q()?{simpleText:_.Gv("CONTINUE_WATCHING",void 0,"Continue watching")}:(v==null?0:v.contents)?v.titleText:c==null?void 0:c.miniplayerSubtitle;return G$K(c)},
noEndpoints:!0,ellipsisTruncate:!0})),_.w(_.G,{cond:function(){return!!X()&&!q()},
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.w("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.w("span",null,X))}}))),_.w(_.G,{cond:Q,
then:function(){return _.w("div",{class:"ytdMiniplayerInfoBarExpand"},_.w(t3,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(c){m&&(m(),c.stopPropagation())}}},
iconName:function(){return b()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var glC;glC=_.NN(function(W){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.w(t3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.TEl=_.NN(function(W){W=_.Ez(W,{playabilityStatus:void 0,isDisabled:!1});var e=W.size,t=W.playabilityStatus,b=W.isDisabled,m=_.zT("div");W=_.R(_.up(void 0,void 0,"bJr0Se"));var q=W.next().value,Q=W.next().value;W=_.MA(_.BL);var X=!1,I=function(){return e().height<=0};
_.nh(function(){var D=e(),B=I(),k=q();k&&!B&&k.setInternalSize(D.width,D.height)},"OUOyKb");
_.jm(function(){var D,B,k;return _.F(function(n){if(n.nextAddress==1){D=_.ee().resolve(_.Kn);B=D.getPlayerElement();if(!D.isMiniplayerActive()||!B||!m.value)return n.return();B.appendTo(m.value);return _.a(n,B.getPlayerPromise(),2)}k=n.yieldResult;k.setSizeStyle(!1,!0);Q(k);_.u8(n)})});
_.fh(function(){u()});
_.nh(function(){var D=q();if(D)if(b()){var B=D.getPlayerState();(X=B===-1||B===1||B===3)&&D.pauseVideo()}else u()},"KKHe5");
var u=function(){if(X){X=!1;var D;(D=q())==null||D.playVideo()}},c=_.Be(function(){_.Sy(_.ee().resolve(_.Kn))}),v={};
return _.w("ytd-miniplayer-player-container",{class:_.ve("ytdMiniplayerPlayerContainerHost",(v.ytdMiniplayerPlayerContainerHidden=I,v.ytdMiniplayerPlayerContainerHostShortsPip=W,v)),style:_.$D({width:function(){return e().width+"px"},
height:function(){return e().height+"px"}})},_.w("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:m}),_.w(_.G,{cond:function(){return!!t()&&!_.qnz(t())},
then:function(){return _.w(klZ,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var D;return((D=t())==null?void 0:D.errorScreen)||null},
status:function(){var D;return((D=t())==null?void 0:D.status)||null}})}}),_.w(_.G,{cond:b,
then:function(){return _.w("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":c},_.w(glC,{onTap:function(){_.ee().resolve(_.Kn).close()}}))}}))},"we");_.JSE=_.NN(function(W){var e=W.toastData;var t=_.zT("ytd-miniplayer-toast");W=_.R(_.ZT(function(){return!!e()}));
var b=W.next().value,m=W.next().value;W=_.R(_.up(!1,void 0,"xkrBze"));var q=W.next().value,Q=W.next().value,X=function(){var c;return _.Ub((c=e())==null?void 0:c.data.title)};
_.nt(function(){_.Kx.requestAvailability();e()&&m(!1)});
var I,u;_.nh(function(){b()&&(_.q2(t.value,"iron-announce",{text:e().label+" "+X()}),I&&_.Tm.cancelJob(I),I=_.Tm.addLowPriorityJob(function(){Q(!0)},2500))},"OTdL1e");
_.nh(function(){q()&&(u&&_.Tm.cancelJob(u),u=_.Tm.addLowPriorityJob(function(){m(!1);Q(!1)},300))},"yybqib");
W={};return _.w("ytd-miniplayer-toast",{el:t,class:_.ve("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return b()},W.ytdMiniplayerToastClosing=function(){return q()},W))},_.w(_.G,{cond:function(){var c;
return(c=e())==null?void 0:c.data},
then:function(c){return _.w(ssy,{className:"ytdMiniplayerToastThumbnail",data:c,width:78})}}),_.w("div",{class:"ytdMiniplayerToastInfo"},_.w("div",{class:"ytdMiniplayerToastLabel"},function(){var c;
return(c=e())==null?void 0:c.label}),_.w("div",{class:"ytdMiniplayerToastTitle"},X)))},"xe");var y9Q;var nYR=null;var OCQ=_.NN(function(W){var e=W.progressState;var t=W.multiMarkersPlayerBarRenderer;var b=W.progressBarWidth;var m=function(){return J9S(t())},q=function(){return MWL(e())},Q=function(){return b()*(e().playedTime/e().videoDuration)};
return _.w("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.w(_.lV,{each:m},function(X,I){return _.w(x9w,{modifiedProps:q,chapters:m,index:I,playedProgressWidth:Q,backgroundGradientPosition:function(){var u=q(),c=m(),v=I(),D=Q();return(u.playedTime-hi(_.l(c[v],sl)))/u.playedTime*D}})}))},"ye"),x9w=_.NN(function(W){var e=W.modifiedProps;
var t=W.chapters;var b=W.index;var m=W.playedProgressWidth;var q=W.backgroundGradientPosition;W={};W=_.ve("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Q().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return Q().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Q().videoPosition==="seen"},W));
var Q=function(){return snR(e(),t(),b())},X=function(){var I=e();
var u=t(),c=b();if(snR(I,u,c).videoPosition!=="active")I=0;else{var v=hi(_.l(u[c],sl));I=(I.playedTime-v)/((hi(_.l(u[c+1],sl))||I.videoDuration)-v)}return I};
return _.w("div",{class:W,style:_.$D({width:function(){var I=e(),u=t(),c=b(),v=_.l(u[c],sl);u=_.l(u[c+1],sl);return(u?hi(u)-hi(v):I.videoDuration-hi(v))/I.videoDuration*100+"%"},
"background-color":function(){a:{var I=Q();switch(I.videoPosition){case "pending":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:I=""}}return I},
"background-size":function(){return(hvG(Q())?m():"")+"px"},
"background-position-x":function(){return(hvG(Q())?q():"")+"px"}})},_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var I=e(),u=t(),c=b();if(snR(I,u,c).videoPosition==="seen")var v=0;else v=hi(_.l(u[c],sl)),u=hi(_.l(u[c+1],sl))||I.videoDuration,I=I.videoDuration*I.percentLoaded,v=u<=I?1:v>=I?0:(I-v)/(u-v);return"width: "+v*100+"%"}}),_.w("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.$D({width:function(){return X()*100+"%"},
"background-size":function(){return(hvG(Q(),X())?m():"")+"px"},
"background-position-x":function(){return(hvG(Q(),X())?q():"")+"px"}})}))},"ze");var MTg=function(W,e){e=e===void 0?dNb:e;var t,b=[],m,q=!1;return function(){var Q=_.$N.apply(0,arguments);if(q&&t===this&&e(Q,b))return m;m=W.apply(this,Q);q=!0;t=this;b=Q;return m}}(function(W){var e=W.heatMarkers,t=W.minHeightDp===void 0?0:W.minHeightDp,b=W.maxHeightDp===void 0?60:W.maxHeightDp;
var m=m===void 0?!1:m;var q=1E3/e.length;W=[];W.push({x:0,y:100});for(var Q=0;Q<e.length;Q++){var X=void 0,I=((X=_.l(e[Q],MOo))==null?void 0:X.heatMarkerIntensityScoreNormalized)||0;X=(Q+.5)*q;I=100-_.Mw(I*100,t/321*100,b/321*100);Q!==0||m||W.push({x:0,y:I});W.push({x:X,y:I});Q===e.length-1&&W.push({x:1E3,y:I})}W.push({x:1E3,y:100});e="";for(t=0;t<W.length;t++)m=W[t],t===0?m="M "+m.x.toFixed(1)+","+m.y.toFixed(1):(b=mJS(W[t-1],W[t-2],m),q=mJS(m,W[t-1],W[t+1],!0),m=" C "+(b.x.toFixed(1)+","+b.y.toFixed(1)+
" "+q.x.toFixed(1)+","+q.y.toFixed(1)+" "+m.x.toFixed(1)+","+m.y.toFixed(1))),e+=m;return e});var s$l=_.NN(function(W){var e=W.progressBarProps;var t=W.config;var b={};W=_.ve("ytHeatSeekerHost",(b.ytHeatSeekerHighContrast=W.highContrast,b));var m=function(){return lLD(t().chapterData)};
return _.w("yt-progress-bar-heatseeker",{class:W,style:function(){var q;return"height: 320px; display: "+(e().isDragging&&((q=m())==null?0:q.heatMarkers)?"block":"none")}},_.w(_.G,{cond:m,
then:function(q){return _.w(_.G,{cond:function(){return q().heatMarkers},
then:function(){return _.w("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.w("path",{d:function(){return MTg(q())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var hQg=_.NN(function(W){var e=W.progressBarProps;var t=W.config;W={};W=_.ve("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return t().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return t().position===2},W));
return _.w("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.w("div",{class:W},_.w("div",{class:"ytProgressBarLineProgressBarBackground"}),_.w("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+e().percentLoaded*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var b=e();return"width: "+(b.videoDuration?_.Mw(b.hoveredTime/b.videoDuration,0,1):0)*100+"%"}}),_.w("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Sg9(e())*100+"%"}})))},"Be");
hQg.idomCompat=!0;var HCl=_.NN(function(W){var e=W.progressBarProps;var t=W.playheadData;var b=W.interpolateDotPosition;var m=W.hidePlayhead;W={};var q=_.ve("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return e().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!e().isDragging&&m()},W));
return _.w("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.$D({"margin-left":function(){return BpQ(e())*100+"%"},
transform:function(){return"translateX(-"+(b()?BpQ(e())*12:6)+"px)"}})},_.w(_.G,{cond:function(){var Q;
return(Q=_.LD(t)())==null?void 0:Q.playheadImage},
then:function(Q){var X={};return _.w("div",{class:_.ve("ytProgressBarPlayheadProgressBarPlayheadCustom",(X.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return e().isDragging},X.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!e().isDragging&&m()},X)),
style:_.$D({"transform-origin":function(){return(b()?BpQ(e())*20:10)+"px center"}})},_.w(_.A_,{data:Q,
alt:"","aria-hidden":"true"}))},
else:function(){return _.w("div",{class:q,style:_.$D({"transform-origin":function(){return(b()?BpQ(e())*12:6)+"px center"}})})}}))},"Ce");
HCl.idomCompat=!0;var Bj=function(W,e,t,b,m,q){this.getProgressBarRect=W;this.updateProgressBarRect=e;this.getFilmstripYPosition=t;this.setFineScrubbingDraggedTime=b;this.updateFilmStripDraggedYDistance=m;this.resetFilmStripYOffset=q;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.eS(this.onThrottledSeek,100,this)},KU$=function(W,e,t){return function(b){W.handleClick(b,e(),t())}},iCE=function(W,e){return function(t){Pgg(W,
t,VT$(t),e())}},YB9=function(W,e){return function(t){Pgg(W,t,{x:t.clientX,
y:t.clientY},e())}},U9U=function(W,e,t){return function(b){var m=e(),q=t();
zQU(W,b,VT$(b),m,q,!0);if(q.onTouchMove)q.onTouchMove(m)}},ElS=function(W,e,t){return function(b){LUE(W,b,e(),t())}},ASg=function(W,e){return function(){W.handleMouseLeave(e())}},NEE=function(W,e,t){return function(){var b=e(),m=t();
os(W,b,m);if(m.onTouchEnd)m.onTouchEnd(b)}},d9C=function(W,e,t){return function(){var b=e(),m=t();
os(W,b,m);if(m.onTouchEnd)m.onTouchEnd(b)}},WfU=function(W,e,t){return function(){os(W,e(),t())}},eyw=function(W){return function(e){if(e.keyCode===39||e.keyCode===38){var t,b;
(t=W())==null||(b=t.playerApi)==null||b.seekBy(5,void 0,void 0,72)}else if(e.keyCode===37||e.keyCode===40){var m,q;(m=W())==null||(q=m.playerApi)==null||q.seekBy(-5,void 0,void 0,71)}}},tKQ=function(W,e,t){return function(b){!t().disableScrubbing&&W.startPosition&&LUE(W,b,e(),t())}},bO$=function(W,e,t){return function(){if(!t().disableScrubbing)if(W.startPosition){var b=e(),m=t();
os(W,e(),t());if(m.onTouchEnd)m.onTouchEnd(b)}else e().setState({isDragging:!1})}},VT$=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},LUE=function(W,e,t,b){if(e.buttons!==1){if(e.movementX||e.movementY)e.preventDefault(),e.stopPropagation(),W=mS9(W,t,e.clientX),t.setState({isHovering:!0,
hoveredTime:W*t.videoDuration})}else reU(t),zQU(W,e,{x:e.clientX,y:e.clientY},t,b,!1)};
Bj.prototype.handleMouseLeave=function(W){reU(W)};
var reU=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},Pgg=function(W,e,t,b){W.startPosition||(W.startPosition=t,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=b.controlsVisible,e.stopPropagation(),_.S("medium_progress_bar_modification")||e.preventDefault())},zQU=function(W,e,t,b,m,q){if(W.startPosition)if(q&&m.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(t.y-W.startPosition.y)>Math.abs(t.x-W.startPosition.x))os(W,b,m);
else if(e.preventDefault(),e.stopPropagation(),b.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(t.x-W.startPosition.x)>=1),m.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(t.y-W.startPosition.y)>=60),!W.startPosition||t.y>=W.startPosition.y||(b.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:HI2(b.draggedTime,b,m.chapterData)}),W.setFineScrubbingDraggedTime(b.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
t.y,b))),W.hasDraggedTheMinimumDistance)){e=mS9(W,b,t.x);if(W.isDraggedForFineScrubbing){var Q;(Q=b.playerApi)==null||Q.pauseVideo();b.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:b.draggedTime,filmStripXDistance:HI2(e*b.videoDuration,b,m.chapterData)})}m.enableFineScrubbing&&(!m.enableFineScrubbing||W.getFilmstripYPosition(b)<68)||b.setState({draggedTime:e*b.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});var X;(X=
m.cancelAutohideControlsFn)==null||X.call(m)}},os=function(W,e,t){var b=t.enableFineScrubbing&&e.fineScrubbingActiveState!=="off";
if(e.isDragging||b){b={isDragging:!1,playedTime:e.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};t.enableFineScrubbing&&e.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),b.fineScrubbingActiveState="off");var m=m===void 0?nYR:m;var q=_.fc(0);q&&m&&_.U6(q,m,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(e.playedTime*1E3),endMediaTimeMs:Math.round(e.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});e.setState(b);
W.seekThrottle.fire(e.draggedTime,e,7);_.S("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(e);t.unmuteOnSeek&&(t=e.playerApi,e.volumeMuted&&(t==null||t.unMute()))}else e.setState({controlsVisible:!e.controlsVisible}),(q=t.triggerAutohideControlsAfterDelayFn)==null||q.call(t);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
Bj.prototype.handleClick=function(W,e,t){this.updateProgressBarRect();W.stopPropagation();W=mS9(this,e,W.clientX)*e.videoDuration;e.setState({playedTime:W});if(e.playerState!==2){var b;(b=t.triggerAutohideControlsAfterDelayFn)==null||b.call(t)}this.seekThrottle.fire(W,e,7)};
var mS9=function(W,e,t){W=W.getProgressBarRect(e);return _.Mw(0,(t-W.left)/W.width,1)};
Bj.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var e;(e=W.playerApi)==null||e.playVideo()}};
Bj.prototype.onThrottledSeek=function(W,e,t){if(e=e.playerApi){var b;if((b=e.getVideoData())==null?0:b.isLive)b=this.getProgressState(e),W+=(b==null?void 0:b.seekableStart)||0;e.seekTo(W,void 0,void 0,void 0,t)}};
Bj.prototype.getProgressState=function(W){var e=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(e)};var QpT,RyS,Ff$,IQM,qwC,aQU,wRQ,udu,ce1;QpT=_.NN(function(W){var e=W.progressBarProps;var t=W.config;var b=W.progressBarWidthPx;var m=W.chapterData;var q=YgK(e,function(){return t().isShortsPage}),Q=function(){return!e().isHovering&&!t().isShortsPage};
W={};var X=_.ve("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return t().isShortsPage&&!1},W));
return _.w("yt-player-storyboard",null,_.w(_.G,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.w(_.G,{cond:q,then:function(I){return _.w(_.G,{cond:Q,then:function(){return _.w("div",{class:X,"aria-hidden":"true"},_.w(qwC,{props:e,config:t,isBigboard:!0,chapterData:m}))},
else:function(){return _.w(RyS,{props:e,frame:I,config:t,progressBarWidthPx:b,chapterData:m})}})}})}}))},"De");
_.XRU=_.NN(function(W){var e=W.progressBarProps;var t=YgK(e,W.isShortsPage);return _.w("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.w(_.G,{cond:function(){return e().isDragging||e().isHovering},
then:function(){return _.w(_.G,{cond:t,then:function(b){return _.w(Ff$,{frame:b,props:e,isBigboard:!0})}})}}))},"Ee");
RyS=_.NN(function(W){var e=W.props;var t=W.frame;var b=W.config;var m=W.progressBarWidthPx;W=W.chapterData;var q={};q=_.ve("ytPlayerStoryboardHost",(q.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},q.ytPlayerStoryboardHostInlinePlayer=function(){return b().isInlinePlayer},q.ytPlayerStoryboardHostFadeIn=function(){return b().useFadeInAnimation},q));
return _.w("div",{class:q,"aria-hidden":"true",style:function(){var Q=e(),X=KQ9(t()),I=m();Q=Px2(Q)/Q.videoDuration;var u=I*Q,c=X/2+6;X=I-(X/2+6);return"left: "+(u<=c?c/I*100:u>=X?X/I*100:Q*100)+"%"}},_.w(_.G,{cond:function(){var Q=e();
return!(b().isShortsPage&&Q.videoDuration<15)},
then:function(){return _.w(Ff$,{frame:t,props:e,isBigboard:!1})}}),_.w(qwC,{props:e,
config:b,isBigboard:!1,chapterData:W}))},"Fe");
Ff$=_.NN(function(W){var e=W.frame;var t=W.props;var b=W.isBigboard;var m=function(){var X,I;return(I=(X=t().playerApi)==null?void 0:X.getVideoContentRect())!=null?I:{width:0,height:0}},q=function(){return KQ9(e())},Q=function(){var X=e();
return X?X.height/X.rows:0};
W={};W=_.ve((W.ytPlayerStoryboardBigboardImageWrapper=b,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!b()},W));
return _.w("div",{class:W,style:function(){return"width: "+(b()?m().width:q())+"px; height: "+(b()?m().height:Q())+"px;"}},_.w(IQM,{frame:e,
storyboardWidth:q,storyboardHeight:Q,storyboardScale:function(){return(b()?m().width:q())/q()}}))},"Ge");
IQM=_.NN(function(W){var e=W.frame;var t=W.storyboardWidth;var b=W.storyboardHeight;var m=W.storyboardScale;var q=function(){var Q=e().row,X=e().column,I=t(),u=b(),c=m();return{left:-X*I*c,top:-Q*u*c}};
return _.w("img",{src:function(){return e().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+q().left+"px; top: "+q().top+"px; width: "+e().width*m()+"px; height: "+e().height*m()+"px;"}})},"He");
qwC=_.NN(function(W){var e=W.props;var t=W.config;var b=W.isBigboard;var m=W.chapterData;W={};W=_.ve("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=b,W));return _.w("div",{class:W},_.w(_.G,{cond:b,then:function(){return _.w(_.qD,null,_.w(aQU,{props:e,config:t}),_.w(_.G,{cond:function(){a:{var q=e();var Q=t(),X=m(),I;if((Q==null?0:Q.activeChapter)&&((I=_.l(Q==null?void 0:Q.activeChapter,sl))==null?0:I.title))q=!0;else{Q=_.R(ZIZ(X));for(Q=Q.next();!Q.done;Q=Q.next()){q=(Q=_.l(Q.value,
hkv))&&VWv(q,Q);break a}q=!1}}return q},
then:function(){return _.w(wRQ,{props:e,config:t,isBigboard:!0,chapterData:m})}}))},
else:function(){return _.w(_.qD,null,_.w(wRQ,{props:e,config:t,isBigboard:!0,chapterData:m}),_.w(aQU,{props:e,config:t}))}}))},"Ie");
aQU=_.NN(function(W){var e=W.props;var t=W.config;W={};W=_.ve("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return t().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return e().isHovering||t().isShortsPage&&!0},W));
return _.w("div",{class:W},_.w(_.qD,null,function(){return _.iIQ(Px2(e()))}))},"Je");
wRQ=_.NN(function(W){var e=W.props;var t=W.config;var b=W.isBigboard;var m=W.chapterData;W={};b=_.ve("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=b,W));return _.w("div",{class:b},_.w(_.G,{cond:function(){return!t().isShortsPage},
then:function(){return _.w(udu,{props:e,activeChapter:function(){return t().activeChapter},
chapterData:m})}}))},"Ke");
udu=_.NN(function(W){var e=W.props;var t=W.activeChapter;var b=W.chapterData;return _.w(_.qD,null,_.w(_.lV,{each:function(){return ZIZ(b())},
keyBy:"INDEX"},function(m){return _.w(_.qD,null,_.w(_.G,{cond:function(){return _.l(m(),hkv)&&VWv(e(),_.l(m(),hkv))},
then:function(){return _.w(ce1,{timedMarker:function(){return _.l(m(),hkv)}})}}))}),_.w(_.G,{cond:function(){var m;
return t()&&((m=_.l(t(),sl))==null?void 0:m.title)},
then:function(m){return _.w(_.WL,{text:m,noPreWrap:!0})}}))},"Le");
ce1=_.NN(function(W){var e=W.timedMarker;return _.w(_.qD,null,_.w("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.w(_.kD,{icon:function(){return e().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.w(_.WL,{text:function(){return e().label},
noPreWrap:!0}))},"Me");_.vEC=_.NN(function(W){var e=W.progressBarProps;var t=W.playheadData;var b=W.config;W=_.zT("yt-progress-bar");var m=_.zT("div"),q=_.zT("div"),Q=_.R(_.up({width:0,left:0},void 0,"NcXsUb")),X=Q.next().value,I=Q.next().value,u=function(){q.value&&I(q.value.getBoundingClientRect())},c=function(){X().width<=0&&u();
return X()};
dQ("resize",u);var v=new Bj(c,function(){},function(){return 0},function(){},function(){},function(){}),D=function(){return e()};
Q=_.R(_.up(!1,void 0,"ZsF6Xc"));var B=Q.next().value,k=Q.next().value;Q=_.Be(function(){k(!0);b().position===2?setTimeout(function(){u()},100):u()});
var n=_.Be(function(){k(!1);ASg(v,D)()}),f=_.Be(function(hz){b().doSeekOnClick&&KU$(v,D,b)(hz);
return!1}),M=_.Be(function(hz){iCE(v,D)(hz);
return!1}),K=_.Be(function(hz){YB9(v,D)(hz);
return!1}),U=_.Be(function(hz){U9U(v,D,b)(hz);
return!1}),V=_.Be(function(hz){ElS(v,D,b)(hz);
return!1}),L=_.Be(function(){NEE(v,D,b)();
return!1}),E=_.Be(function(){d9C(v,D,b)();
return!1}),RR=_.Be(function(){WfU(v,D,b)();
return!1}),uv=_.Be(function(hz){eyw(D)(hz);
return!1});
dQ("mousemove",tKQ(v,D,b));dQ("mouseup",bO$(v,D,b));_.nt(function(){fLc(m.value);k(!1);u();bO$(v,D,b)()});
var GS={};GS=_.ve("ytPlayerProgressBarHost",function(){return b().className},(GS.ytPlayerProgressBarHostReadOnly=function(){return b().disableScrubbing},GS.ytPlayerProgressBarHostHidden=function(){return b().hideProgressBar&&!B()},GS.ytPlayerProgressBarHostLowerPlayer=function(){return b().position===0},GS.ytPlayerProgressBarHostBottomEdge=function(){return b().position===1},GS.ytPlayerProgressBarHostBottomInset=function(){return b().position===2},GS.ytPlayerProgressBarHostCustom=function(){return b().position===
3},GS));
var k9={},CQ=_.ve("ytPlayerProgressBarBackground",(k9.ytPlayerProgressBarBackgroundHide=function(){return b().position===2&&!B()&&!e().isDragging},k9));
k9={};k9=_.ve("ytPlayerProgressBarDragContainer",(k9.ytPlayerProgressBarDragContainerBottomEdge=function(){return b().position===1},k9));
var fQ={};fQ=_.ve("ytPlayerProgressBarProgressBar",(fQ.ytPlayerProgressBarProgressBarInset=function(){return b().position===2},fQ.ytPlayerProgressBarProgressBarInsetMinimized=function(){return b().position===2&&!B()&&!e().isDragging},fQ));
var iv=function(){return Math.floor(Sg9(e())*100)};
return _.w("yt-progress-bar",{el:W,class:GS},_.w(_.G,{cond:function(){return b().position===2},
then:function(){return _.w("div",{class:CQ})}}),_.w("div",{el:m,
"on:click":f,"on:touchstart":M,"on:touchmove":U,"on:mouseenter":Q,"on:mousedown":K,"on:mouseleave":n,"on:mousemove":V,"on:mouseup":E,"on:touchend":L,"on:touchcancel":RR,"on:keydown":uv,class:k9,role:"slider","aria-valuenow":iv,"aria-valuetext":function(){return iv()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return e().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Gv("SEEK_SLIDER")},_.w("div",{el:q,class:fQ},_.w(s$l,{progressBarProps:e,config:b,highContrast:function(){return!!b().isInlinePlayback}}),_.w(_.G,{cond:function(){return b().chapterData&&$0S(b().chapterData)},
then:function(){return _.w(OCQ,{progressState:e,multiMarkersPlayerBarRenderer:function(){return b().chapterData},
progressBarWidth:function(){return X().width}})},
else:function(){return _.w(hQg,{progressBarProps:e,config:b})}}),_.w(HCl,{progressBarProps:e,
playheadData:t,interpolateDotPosition:function(){return b().position!==2},
hidePlayhead:function(){return b().playheadDotBehavior===1&&!B()}}))),_.w(QpT,{progressBarProps:e,
config:function(){return{activeChapter:OIK(e(),b().chapterData),getProgressBarWidthPx:function(){return c().width},
isShortsPage:!!b().isShortsPage,isInlinePlayer:!!b().isInlinePlayback,useFadeInAnimation:!!b().isInlinePlayback}},
progressBarWidthPx:function(){return X().width},
chapterData:function(){return b().chapterData}}))},"Ne");
_.vEC.idomCompat=!0;Object.assign({},_.k$S(),{setState:function(){},
domMeasurements:{},appApi:_.D0G(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var GV9;
_.DS9=_.NN(function(){var W,e=(W=_.HN(zv9().playerApi))!=null?W:void 0;W=_.R(_.up(!1,void 0,"HLFBmb"));var t=W.next().value,b=W.next().value;W=_.R(_.up(!1,void 0,"lHH9bc"));var m=W.next().value,q=W.next().value;W=_.R(_.up(!1,void 0,"zsY7yd"));var Q=W.next().value,X=W.next().value;W=_.R(_.up(!1,void 0,"KeHQgc"));var I=W.next().value,u=W.next().value;W=_.R(_.up(0,void 0,"gLLCj"));var c=W.next().value,v=W.next().value;W=_.R(_.up(0,void 0,"s3RYkf"));var D=W.next().value,B=W.next().value;W=_.R(_.up(!1,void 0,
"Dn608e"));var k=W.next().value,n=W.next().value;W=_.R(_.up(0,void 0,"AnkH1b"));var f=W.next().value,M=W.next().value;W=_.R(_.up(0,void 0,"QYNL0b"));var K=W.next().value,U=W.next().value;W=_.R(_.up("",void 0,"Yzw45d"));var V=W.next().value,L=W.next().value;W=_.R(_.up(-1,void 0,"iiVI0c"));var E=W.next().value,RR=W.next().value,uv=_.SC(function(){var GS={controlsVisible:t(),isOverlayHidden:m(),shouldWaitToHideControls:Q(),isDragging:I(),isHovering:k(),videoDuration:f(),playedTime:K(),videoId:V(),draggedTime:D(),
hoveredTime:c(),playerState:E()};return Object.assign({},_.k$S(),GS,{domMeasurements:{},setState:function(k9){k9.controlsVisible!==void 0&&b(k9.controlsVisible);k9.isOverlayHidden!==void 0&&q(k9.isOverlayHidden);k9.shouldWaitToHideControls!==void 0&&X(k9.shouldWaitToHideControls);k9.isDragging!==void 0&&u(k9.isDragging);k9.isHovering!==void 0&&n(k9.isHovering);k9.draggedTime!==void 0&&B(k9.draggedTime);k9.hoveredTime!==void 0&&v(k9.hoveredTime);k9.videoDuration!==void 0&&M(k9.videoDuration);k9.playedTime!==
void 0&&U(k9.playedTime);k9.videoId!==void 0&&L(k9.videoId);k9.playerState!==void 0&&RR(k9.playerState)},
appApi:_.D0G(),playerApi:e})},void 0,"ZW7y9");
_.jm(function(){e==null||e.addEventListener("onVideoProgress",Cxc(uv));e==null||e.addEventListener("onVideoDataChange",jnG(uv));e==null||e.addEventListener("onStateChange",pnv(uv))});
_.fh(function(){if(e==null?0:e.isReady())e==null||e.removeEventListener("onVideoProgress",Cxc(uv)),e==null||e.removeEventListener("onVideoDataChange",jnG(uv)),e==null||e.removeEventListener("onStateChange",pnv(uv))});
return _.w("desktop-shorts-player-controls",null,_.w(GV9,{playerControlsProps:uv}))},"Oe");
GV9=_.NN(function(W){var e=W.playerControlsProps;return _.w("div",{class:"desktopShortsPlayerControlsWizHost"},_.w(_.vEC,{progressBarProps:e,config:function(){return{isShortsPage:!0,hideProgressBar:e().videoDuration<30&&e().playerState!==2&&!e().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.SwC=_.NN(function(W){function e(GS){GS!==0||v()?GS>50&&(v()||!B())?(D(!1),k(!0)):GS<=50&&(v()||B())&&(D(!1),k(!1)):D(!0)}
function t(GS,k9){var CQ;return _.F(function(fQ){if(fQ.nextAddress==1)return _.a(fQ,_.Iv(),2);CQ=fQ.yieldResult;k9&&CQ?(CQ.unMute(!0),GS&&(LQ9(GS,CQ.getVolume()),f(CQ.getVolume()))):CQ&&(CQ.mute(!0),GS&&LQ9(GS,0));_.u8(fQ)})}
function b(GS){var k9,CQ;return _.F(function(fQ){if(fQ.nextAddress==1)return _.a(fQ,_.Iv(),2);k9=fQ.yieldResult;CQ=50;k9&&(CQ=k9.getVolume(),k9.isMuted()?LQ9(GS,0):LQ9(GS,CQ));f(CQ);_.u8(fQ)})}
var m=W.orientation;W=_.zT("desktop-shorts-volume-controls");var q=_.zT("button"),Q=_.Um("input"),X=_.R(_.up(!1,void 0,"F6vt0d")),I=X.next().value,u=X.next().value,c=_.R(_.up(!1,void 0,"S5PCqb"));X=c.next().value;c=c.next().value;var v=X,D=c;c=_.R(_.up(!0,void 0,"Tgy4e"));X=c.next().value;c=c.next().value;var B=X,k=c;X=_.R(_.up(50,void 0,"Dq3efd"));var n=X.next().value,f=X.next().value;X=_.SC(function(){var GS=v();return _.S("web_shorts_keyboard_enable_mute_shortcut")?GS?_.Gv("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Gv("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):GS?_.Gv("UNMUTE_VOLUME",void 0,"Unmute"):_.Gv("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
c=_.SC(function(){var GS=v(),k9=B();return{sources:[{clientResource:{imageName:GS?_.S("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":k9?_.S("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.S("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var M=_.SC(function(){var GS=n();return v()?GS+"% volume muted":GS+"% volume"},void 0,"kvkmyc"),K=_.SC(function(){return m()==="vertical_down"},void 0,"zaNsZ");
_.nt(function(){function GS(){u(!0)}
function k9(){u(!1)}
Q&&Q.value&&(Q.value.addEventListener("focus",GS),Q.value.addEventListener("focusout",k9),b(Q.value).then(function(){e(Number(EYg(Q.value)))}));
q&&q.value&&(q.value.addEventListener("focus",GS),q.value.addEventListener("focusout",k9));_.fh(function(){var CQ;Q==null||(CQ=Q.value)==null||CQ.removeEventListener("focus",GS);var fQ;Q==null||(fQ=Q.value)==null||fQ.removeEventListener("focusout",k9);var iv;q==null||(iv=q.value)==null||iv.removeEventListener("focus",GS);var hz;q==null||(hz=q.value)==null||hz.removeEventListener("focusout",k9)})});
var U=_.Be(function(){if(Q&&Q.value){var GS=Number(EYg(Q.value));U0Z(GS);f(GS);Q.value.style.setProperty("--gradient-percent",GS+"%");e(GS)}return!1}),V=_.Be(function(){u(!0)}),L=_.Be(function(){Q&&Q.value&&(t(Q.value,v()),D(!v()));
return!1}),E={},RR={},uv={};
return _.w("desktop-shorts-volume-controls",{"on:pointerleave":_.Be(function(){u(!1)}),
class:_.ve("ytdDesktopShortsVolumeControlsHost",(E.ytdDesktopShortsVolumeControlsHostVertical=K,E.ytdDesktopShortsVolumeControlsHostExpanded=I,E)),el:W},_.w(_.G,{cond:function(){return!K()},
then:function(){var GS={};return _.w("div",{class:_.ve("ytdDesktopShortsVolumeControlsBackgroundScrim",(GS.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=I,GS))})}}),_.w("div",{class:_.ve((RR.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=K,RR))},_.w("button",{"aria-label":X,
title:X,el:q,"on:click":L,"on:pointerenter":V,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},c?_.w(_.A_,{data:c,alt:X,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.w("div",{class:_.ve("ytdDesktopShortsVolumeControlsSliderContainer",(uv.ytdDesktopShortsVolumeControlsSliderContainerExpanded=I,uv.ytdDesktopShortsVolumeControlsSliderContainerVertical=K,uv.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=K,uv.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return I()&&K()},uv))},_.w("input",{"aria-label":_.Gv("VOLUME"),
title:_.Gv("VOLUME"),el:Q,"on:input":U,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":n,"aria-valuetext":M,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.BlM=_.NN(function(W){var e=W.data;return _.w("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.w(_.XN,{command:function(){return e().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.w(_.G,{cond:function(){return e().iconName},
then:function(t){return _.w(_.kD,{icon:t})}}),_.w("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return e().text}),_.w(_.G,{cond:function(){return e().showEndChevron},
then:function(){return _.w(_.kD,{icon:"CHEVRON_RIGHT"})}})))},"Re");var oES=_.NN(function(W){var e=W.data;var t=W.overlayDensity;W={};return _.w("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.w(_.nU,{data:function(){return e().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(b){var m=b.data;
return _.w(_.yc,{data:function(){return(t==null?void 0:t())===1?Object.assign({},m(),{avatar:{avatarViewModel:Object.assign({},_.l(m().avatar,_.LU),{avatarImageSize:"AVATAR_SIZE_48"})}}):m()}})}}),_.w(_.nU,{data:function(){return e().avatarStackViewModel}},{avatarStackViewModel:function(b){return _.w(_.jU,{data:b.data})}}),_.w(_.WL,{className:_.ve("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(t==null?void 0:t())===1},W)),
text:function(){return e().channelName},
linkInheritColor:!0,userInput:!0}),_.w("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.w(_.nU,{data:function(){return e().subscribeButtonViewModel}},{subscribeButtonViewModel:function(b){var m=b.data;
return _.w(_.$I,{data:function(){return(t==null?void 0:t())===1?Object.assign({},m(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},m().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):m()},
isOverlay:!1})},
buttonViewModel:_.MV})),_.w("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.w(_.nU,{data:function(){var b,m;return(m=_.l((b=e())==null?void 0:b.sponsorButtonViewModel,tAy))==null?void 0:m.sponsorButton}},{buttonViewModel:function(b){return _.w(_.MV,{data:b.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var lQC=_.NN(function(W){var e=function(){var b;return(W==null?void 0:(b=W.overlayDensity)==null?void 0:b.call(W))===1?22:16},t={};
return _.w("yt-reel-multi-format-link-view-model",{class:_.ve("ytReelMultiFormatLinkViewModelHost",(t.ytReelMultiFormatLinkViewModelHostTall=!0,t.ytReelMultiFormatLinkViewModelHostLarge=function(){var b;return((b=W.overlayDensity)==null?void 0:b.call(W))===1},t))},_.w(_.XN,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Mk(W.data().command)},
dangerousStopPropagation:!1},_.w("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.w(_.G,{cond:function(){return W.data().icon},
then:function(b){return _.w(_.A_,{data:b,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:e})}}),_.w(_.WL,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
lQC.idomCompat=!0;var ZOM=_.NN(function(W){var e=W.data;var t=W.overlayDensity;var b=_.zT("yt-shorts-suggested-action-view-model");W=_.R(_.up(!1,void 0,"xDqzhe"));var m=W.next().value,q=W.next().value;W=_.R(_.up(!1,void 0,"LI9CFd"));var Q=W.next().value,X=W.next().value,I=function(){return e().isMultiLineSa},u=_.D_(pYZ,function(){var U,V;
return(V=(U=e().toggleableContent)==null?void 0:U.entityKey)!=null?V:""}),c=function(){var U,V,L;
return(L=e().toggleableContent)!=null&&L.entityKey?(V=(U=u())==null?void 0:U.value)!=null?V:!1:!1},v=function(){var U,V,L,E,RR,uv,GS,k9,CQ,fQ,iv;
return e().toggleableContent?c()?(U=e().toggleableContent)==null?void 0:U.toggledData:(V=e().toggleableContent)==null?void 0:V.untoggledData:{primaryText:(k9=(L=e().defaultContent)==null?void 0:L.primaryText)!=null?k9:e().text,secondaryText:(E=e().defaultContent)==null?void 0:E.secondaryText,onTapCommand:(CQ=(RR=e().defaultContent)==null?void 0:RR.onTapCommand)!=null?CQ:e().onTapCommand,icon:(fQ=(uv=e().defaultContent)==null?void 0:uv.icon)!=null?fQ:e().icon,image:(iv=(GS=e().defaultContent)==null?
void 0:GS.image)!=null?iv:e().image}},D=function(){return I()?e().trailingTapTarget:void 0};
W=function(U,V){return function(){return m()?V:U}};
var B={leadingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};W={};W=_.ve((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!I()},W.ytShortsSuggestedActionViewModelDynamicHost=I,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return I()&&Q()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return I()&&!Q()},W));
_.nt(function(){if(I()){var U=0,V;if((V=e().animationParams)==null?0:V.shouldExpand){var L,E;U=((E=(L=e().animationParams)==null?void 0:L.expansionDelaySecs)!=null?E:0)*1E3}var RR,uv=((RR=e().animationParams)==null?0:RR.shouldExpand)?setTimeout(function(){q(!0)},U):void 0,GS,k9;
U=((GS=e().animationParams)==null?0:GS.visibilityDelaySecs)?((k9=e().animationParams)==null?NaN:k9.visibilityDelaySecs)*1E3:0;var CQ=setTimeout(function(){X(!0)},U);
_.fh(function(){uv&&clearTimeout(uv);clearTimeout(CQ)})}});
var k=function(U){_.K4(U,Object.assign({},{form:{element:b.value}}))},n=_.Be(function(){var U,V=(U=v())==null?void 0:U.onTapCommand;
V&&k(V)}),f=_.Be(function(){var U,V;
if(U=(V=D())==null?void 0:V.onTapCommand)return k(U),!1}),M=_.$D({"vertical-align":"bottom",
"border-radius":function(){var U;return I()?((U=e().defaultContent)==null?0:U.isCircleImage)?"50%":"4px":"0px"},
width:function(){var U,V,L;return I()&&((U=e().defaultContent)==null?0:U.imageSize)?((L=(V=e().defaultContent)==null?void 0:V.imageSize)!=null?L:24)+"px":null},
height:function(){var U,V,L;return I()&&((U=e().defaultContent)==null?0:U.imageSize)?((L=(V=e().defaultContent)==null?void 0:V.imageSize)!=null?L:24)+"px":null}}),K={};
return _.w("yt-shorts-suggested-action-view-model",{class:W,el:b},_.w("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.w("button",{class:_.ve(function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var U;
return(U=e().useFullRoundedBorder)!=null&&U?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!D()&&I()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":I()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var U;
return(U=e().disableFixedHeight)!=null&&U?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(K.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(t==null?void 0:t())===1},K)),
"on:click":n},_.w(_.jN,{model:{color:4}}),_.w("div",{class:_.ve(function(){return I()?B.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.w(_.G,{cond:function(){var U;
return(U=v())==null?void 0:U.image},
then:function(U){return _.w(_.A_,{data:U,alt:"",className:function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:M})}}),_.w(_.G,{cond:function(){var U,V;
return(U=v())==null?void 0:(V=U.icon)==null?void 0:V.iconType},
then:function(U){return _.w(_.kD,{icon:U,active:c,className:function(){return I()?m()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.w(_.G,{cond:function(){var U;
return(U=v())==null?void 0:U.primaryText},
then:function(U){return _.w("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.w(_.WL,{text:U}))}}),_.w(_.G,{cond:function(){var U;
return(U=v())==null?void 0:U.secondaryText},
then:function(U){return _.w("div",{class:B.secondaryText},_.w(_.WL,{text:U}))}}))),_.w(_.G,{cond:D,
then:function(U){return _.w("div",{class:B.trailingSection,"aria-label":function(){var V;return(V=U().a11yLabel)!=null?V:""},
"on:click":f,role:"button",tabindex:0},_.w(_.jN,{model:{color:4}}),_.w(_.kD,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var $S$=_.NN(function(W){var e=W.data;var t=W.overlayDensity;var b=_.zT("yt-shorts-video-title-view-model");W=_.Be(function(Q){if(_.iJ(_.Vv(Q),b.value,["A".toString()]))return!1;(Q=e().truncatedTextOnTapCommand)&&_.K4(Q);return!1});
var m={},q={};return _.w("yt-shorts-video-title-view-model",{el:b,class:_.ve("ytShortsVideoTitleViewModelHost",(m.ytShortsVideoTitleViewModelHostClickable=function(){return!!e().truncatedTextOnTapCommand},m)),
"on:click":W},_.w("h2",{class:_.ve("ytShortsVideoTitleViewModelShortsVideoTitle",(q.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(t==null?void 0:t())===1},q))},_.w(_.WL,{text:function(){return e().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.kVC=_.NN(function(W){var e=W.data;var t=W.overlayDensity;return _.w("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.w(_.nU,{data:function(){return e().metadataItems}},{badgeViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.dr,{data:b.data}))},
playerDisclosureViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.BlM,{data:b.data}))},
shortsSuggestedActionViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(ZOM,{data:b.data,overlayDensity:t}))},
reelChannelBarViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(oES,{data:b.data,overlayDensity:t}))},
reelMultiFormatLinkViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(lQC,{data:b.data,overlayDensity:t}))},
shortsVideoTitleViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w($S$,{data:b.data,overlayDensity:t}))},
reelSoundMetadataViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.TGC,{data:b.data,overlayDensity:t}))},
toggleButtonViewModel:function(b){return _.w("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.w(_.fU,{data:b.data}))}}))},"We");var pRC=_.NN(function(W){var e=_.Ez(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),t=e.size,b=e.onTap,m=e.disabled,q=e.tooltipText;return _.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(t3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:t(),disabled:m(),tooltipText:q(),onTap:b}},
iconName:W.iconType}))},"Xe"),yeS=_.NN(function(W){function e(c){c.stopPropagation();
c.code==="ArrowUp"?(c.preventDefault(),d0S(X.value)):c.code==="ArrowDown"?(c.preventDefault(),Wpv(X.value)):c.code==="KeyM"?A92():(c.code==="KeyK"||c.code==="Space")&&NpK(I())}
var t=_.Ez(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=t.previousButtonDisabled;var b=t.nextButtonDisabled,m=t.data,q=t.playabilityStatus,Q=t.previewThumbnail,X=_.zT("ytd-shorts-miniplayer-overlay"),I=_.MA(_.Grg),u;_.jm(function(){(u=_.n8(X.value))&&u.addEventListener("keydown",e)});
_.fh(function(){var c;(c=u)==null||c.removeEventListener("keydown",e)});
t=function(){var c,v,D;return(c=m())==null?void 0:(v=c.reelPlayerOverlayRenderer)==null?void 0:(D=v.likeButton)==null?void 0:D.likeButtonRenderer};
return _.w("ytd-shorts-miniplayer-overlay",{el:X,class:"ytdShortsMiniplayerOverlayHost"},_.w("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.$D({"background-image":function(){var c=Q();return c?'url("'+_.qA(c.thumbnails)+'")':""}})}),_.w("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.w("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.w(pRC,{iconType:function(){var c=I();
return c===2||c===-1||c===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){NpK(I())},
tooltipText:function(){var c=I();return c===1||c===3?_.Gv("PLAYER_LABEL_PAUSE"):_.Gv("PLAYER_LABEL_PLAY")}}),_.w(_.SwC,{orientation:"horizontal_right"})),_.w("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.w(pRC,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){d0S(X.value)},
tooltipText:_.Gv("PREVIOUS_VIDEO_LABEL")}),_.w(pRC,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:b,onTap:function(){Wpv(X.value)},
tooltipText:_.Gv("NEXT_VIDEO_LABEL")}),_.S("web_shorts_pip_like_button")?_.w("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.w(mp8,{buttonTooltipPosition:"left",data:t,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.w("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.w(_.G,{cond:function(){var c,v;return _.l((c=m())==null?void 0:(v=c.reelPlayerOverlayRenderer)==null?void 0:v.metapanel,
_.NLr)},
then:function(c){return _.w("div",{class:_.ve("ytdShortsMiniplayerOverlayInteractive")},_.w(_.kVC,{data:c}))}})),_.w("div",{class:_.ve("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var c;return!((c=m())==null||!c.adsOverlay)||q()&&!r$v(q())}},_.w("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.w(_.DS9,null)))),_.w(_.G,{cond:function(){var c=m(),v,D;
c=_.l(c==null?void 0:(v=c.adsOverlay)==null?void 0:(D=v.fulfillmentContent)==null?void 0:D.fulfilledLayout,CCN);return _.l(c==null?void 0:c.renderingContent,JiU)},
then:function(c){return _.w("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.w(bqP,{data:c}))}}))},"Ye");var eEs=_.NN(function(){var W=_.R(_.up(new _.aD(NaN,NaN),void 0,"HSMFk")),e=W.next().value,t=W.next().value;W=_.R(_.up(!1,void 0,"uaAxwf"));var b=W.next().value,m=W.next().value,q=_.R(_.up(!1,void 0,"nVSwef"));W=q.next().value;var Q=q.next().value,X=_.ee().resolve(_.Kn).miniplayerPropSignalMap[0],I=X.data,u=X.shortsData,c=X.nextButtonDisabled,v=X.shortsPreviewThumbnail,D=X.previousButtonDisabled,B=X.externalPlaylistData;q=X.toastData;var k=X.playabilityStatus,n=X.isDisabled,f=X.playerVe,M=X.closeVe;
X=_.MA(_.BL);_.YM("yt-pip-window-resized",function(L){t(L)});
_.YM("yt-activate-pip-miniplayer",function(){return _.F(function(L){Q(!0);_.u8(L)})});
var K=function(){var L;return!((L=B())==null||!L.contents)&&b()},U=function(){var L=e(),E=!!I(),RR=K();
L=L.clone();E&&(L.height-=76);RR&&(L.height-=285);return L},V=function(){m(!b())};
_.nh(function(){var L=f(),E=_.fc(11),RR=_.nc(11);E&&RR&&L&&(_.Ke(E,RR,L),RR=M())&&(_.P6(E,L,[RR]),_.ic(E,[RR]))},"HPkp0c");
return _.w("ytd-pip-container",{class:"ytdPipContainerHost"},_.w(_.G,{cond:W,then:function(){return _.w(_.TEl,{isDisabled:n,playabilityStatus:k,size:U})}}),_.w(_.G,{cond:I,
then:function(){return _.w(_.fMM,{data:I,expanded:b,onExpandClick:V,playlistData:B})}}),_.w(_.G,{cond:K,
then:function(){return _.w("div",{class:"ytdPipContainerPlaylistPanel"},_.w(_.tck,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.w(_.G,{cond:X,
then:function(){return _.w(yeS,{data:u,nextButtonDisabled:c,previousButtonDisabled:D,playabilityStatus:k,previewThumbnail:v})}}),_.w("div",{class:"ytdPipContainerToast"},_.w(_.JSE,{toastData:q})))},"Ze");var ld=function(W,e){var t=this;this.pipController=W;this.JSC$16541_clientRoot=e;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=wn9();this.watchPipEnabled=_.S("web_watch_pip");this.shortsPipEnabled=_.S("web_shorts_pip");this.JSC$16541_watchWhileEnabled=_.S("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;_.S8(_.Eb(),_.wzG,function(b){t.isSingleOptionSurveyActive=b});
this.JSC$16541_onPlayerPlayVideo=this.JSC$16541_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);_.Vo(_.P3.getInstance(),this.miniplayerServiceActionMap,this.JSC$16541_clientRoot);W.pictureInPictureSupported()&&_.nJ("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},JdZ,MKw,TlS,spT,hyS,Mnb;
ld.prototype.handleMediaSessionPipActivation=function(){var W=this,e;return _.F(function(t){_.G3().mediaSessionPipActivation=!0;e=_.ee().resolve(_.WS);return e.isOnWatch()&&W.watchPipEnabled?(_.G3().watchPipActivation=!0,_.jpS(W,e.data),t.jumpTo(0)):e.isOnShorts()&&W.shortsPipEnabled?(_.G3().shortsPipActivation=!0,_.Cn9(W),t.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?_.a(t,nEB(W),0):t.jumpTo(0)})};
var nEB=function(W){var e,t,b,m;return _.F(function(q){if(q.nextAddress==1)return e=!W.miniplayerToPipMode,t=W.playerElement,b=W.miniplayerData,m=W.watchResponse,_.a(q,W.deactivate(),2);if(q.nextAddress!=3)return e?(_.G3().mediaSessionPipActivation=!0,_.G3().watchPipActivation=!0):_.G3().miniplayerButtonActivation=!0,_.a(q,W.activate(t,b,m),3);W.miniplayerToPipMode=e;_.u8(q)})};
ld.prototype.onDownloadedVideoDeleted=function(W){var e,t=_.l((e=this.miniplayerData)==null?void 0:e.watchEndpoint,_.z4),b,m;t&&((b=this.watchResponse)==null?void 0:(m=b.playerResponse)==null?void 0:m.offlineState)!==void 0&&(e=t.videoId)&&W&&e===W&&this.close()};
ld.prototype.onShowMiniplayerCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v,D,B,k;return _.F(function(n){switch(n.nextAddress){case 1:return t=_.l(W,HVh),m=(b=t)==null?void 0:b.miniplayerCommand,q=_.l(m,_.z4),m&&q&&!e.active?_.a(n,_.p5.getInstance(),2):n.return();case 2:return Q=n.yieldResult,_.a(n,(X=Q)==null?void 0:X.get("yt-miniplayer-shown-video-id"),3);case 3:I=n.yieldResult;u=q.videoId;if(!u||I===u)return n.return();c=_.ee().resolve(_.WS);if(c.isOnWatch())return _.JC(Error("Fj")),n.return();
v={channelItem:{externalId:btoa(u)}};e.readyToResumeVe=_.na(121253,void 0,void 0,v);_.G3().showMiniplayerCommandActivation=!0;return _.a(n,_.sON(e,m,!0),4);case 4:return e.active?(_.Zl(e,{readyToResumeVe:e.readyToResumeVe,continueWatching:!0,premiumBranding:!((D=t)==null||!D.showPremiumBranding)}),_.S("ytd_miniplayer_to_wiz")&&_.Zl(e,{isReadyToResume:!0}),e.isReadyToResume=!0):_.Zl(e,{continueWatching:!0,premiumBranding:!((B=t)==null||!B.showPremiumBranding)}),_.a(n,(k=Q)==null?void 0:k.set("yt-miniplayer-shown-video-id",
q.videoId),5);case 5:e.readyToResumeVe=void 0,_.u8(n)}})};
ld.prototype.init=function(W){this.miniplayerEl?_.JC(new _.o_("MiniplayerService already initialized.")):this.miniplayerEl=W};
ld.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.JC(new _.o_("MiniplayerService used before initialized."));return W};
_.jpS=function(W,e){if(W.isInitialized()){var t=_.vYK(e.response,e.playerResponse),b=_.ee().resolve(_.WS).getPlayerFromWatch();_.G3().currentEndpoint=t.watchEndpoint||null;W.activate(b,t,e)}};
_.Cn9=function(W){if(W.isInitialized()){var e=_.ee().resolve(_.WS).getPlayerFromShorts();W.activate(e)}};
JdZ=function(W,e){var t;(t=!W.isInitialized())||(t=_.ee().resolve(_.WS).isOnWatch()&&W.watchPipMode,t=!(W.isMiniplayerActive()&&(_.G3().userActivation||_.G3().lockupActivation||t)));if(t)return!1;fQC(W,e)?_.Sy(W):Mnb(W,e);return W.watchPipMode?!_.ee().resolve(_.WS).isOnWatch():!0};
ld.prototype.isMiniplayerActive=function(){return this.active};
var fQC=function(W,e){var t;e=(t=_.l(e,_.z4))==null?void 0:t.videoId;var b,m;W=(m=_.l((b=W.miniplayerData)==null?void 0:b.watchEndpoint,_.z4))==null?void 0:m.videoId;return e!=null&&e===W};
ld.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.q2(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.RT(this.miniplayerEl,"yt-navigate-home-action"))};
_.sON=function(W,e,t,b){t=t===void 0?!1:t;var m,q,Q;return _.F(function(X){switch(X.nextAddress){case 1:if(W.active){X.jumpTo(2);break}m=_.ee().resolve(_.WS);if(Q=(q=W.playerElement)!=null?q:m.getPlayerFromWatch()){X.jumpTo(3);break}return _.a(X,_.ee().resolve(_.Rv),4);case 4:Q=m.getPlayerFromWatch();case 3:if(!Q){_.JC(Error("Hj"));X.jumpTo(2);break}return _.a(X,W.activate(Q,b),2);case 2:return W.active?_.a(X,Mnb(W,e,t),0):X.return()}})};
ld.prototype.activate=function(W,e,t){var b=this,m,q,Q,X,I,u,c,v,D;return _.F(function(B){switch(B.nextAddress){case 1:if(!b.isInitialized())return B.return();if(!W)return _.JC(Error("Hj")),B.return();if(_.AHe()||b.isMiniplayerActive())var k=!0;else k=_.G3().watchPipActivation||_.G3().watchWhileActivation,_.ee().resolve(_.WS).isOnWatch()&&!k?(_.JC(new _.o_("miniplayer activated on watch page")),k=!0):k=_.G3().watchWhileActivation?b.userDeactivatedWatchWhile||!!document.pictureInPictureElement||hCv():
!1;if(k)return Eyv(),B.return();m=_.G3().mediaSessionPipActivation;q=_.G3().shortsPipActivation;Q=_.G3().watchPipActivation;I=(X=_.G3().watchWhileActivation)||Q;u=Q||q;if(!b.pictureInPictureEnabled()||!u){B.jumpTo(2);break}return _.a(B,gEB(b,m),3);case 3:if(!B.yieldResult)return _.JC(Error("Gj")),Eyv(),B.return();case 2:return b.setActive(!0),b.watchResponse=t,b.playerElement=W,b.updateMiniplayerData(e),_.a(B,TlS(b,W),4);case 4:if(!b.active)return _.JC(new _.o_("miniplayer deactivated during activation")),
b.removePlayerListeners(),B.return();k=_.ee().resolve(_.Oj);k.addEventListener("yt-navigate",_.aH(b,b.onPlaylistNavigate));k.addEventListener("yt-playlist-data-updated",_.aH(b,b.JSC$16541_onPlaylistDataUpdated));b.JSC$16541_onPlaylistDataUpdated();Eyv();b.JSC$16541_watchWhileEnabled&&_.JeM(b,X);b.pictureInPictureEnabled()&&b.shortsPipEnabled&&(b.shortsPipMode=q,_.Eb().dispatch(OuB(b.shortsPipMode)));b.pictureInPictureEnabled()&&b.watchPipEnabled&&(b.watchPipMode=Q,_.Kvv(b.handleMediaSessionPipActivation));
b.player&&(c=b.player.getPlayerState(),v=c===1,_.Eb().dispatch(iuZ(c)),_.Qx(b.miniplayerEl,"yt-miniplayer-play-state-changed",[v]),_.G3().isVideoPlaying=v);_.Qx(b.miniplayerEl,"yt-miniplayer-endpoint-changed");xST(b);_.OOC(b);return b.shortsPipMode||b.watchPipMode?_.a(B,_.F5(b.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.S("ytd_miniplayer_to_wiz")?_.a(B,_.F5(b.miniplayerEl,"yt-activate-miniplayer",[I]),6):_.a(B,_.F5(b.miniplayerEl,"yt-activate-miniplayer-action",[W,I]),6);case 6:if(b.watchResponse&&
!_.S("miniplayer_copy_screen_on_activation_killswitch")){k=b.getScreenLayer();var n=_.fc(0),f=lYD(0);n&&f&&(_.T4(n,f,k),k===0&&BuK(void 0,0))}MKw(b);spT(b,!0);(D=b.getPlayerElement())==null||D.focusOnPlayer();_.u8(B)}})};
ld.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.Zl(this,{data:W})};
_.OOC=function(W){var e,t,b=((e=W.miniplayerData)==null?void 0:(t=e.miniplayerRenderer)==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";e=W.watchWhileMode||W.watchPipMode?b&&!_.ee().resolve(_.WS).isOnWatch():b;_.Zl(W,{isDisabled:e});var m,q;t=_.l((m=W.miniplayerData)==null?void 0:(q=m.miniplayerRenderer)==null?void 0:q.minimizedEndpoint,_.jO);e&&t&&_.ee().resolve(_.lR).openSheet({openPopupActionCommand:{openPopupAction:t}},W.miniplayerEl)};
MKw=function(W){if(W.watchResponse&&!hyS(W)){var e,t=(e=W.watchResponse.playerResponse)==null?void 0:e.trackingParams;t&&(_.Zl(W,{expandVe:_.na(35989),closeVe:_.na(34699),readyToResumeCloseVe:_.na(131070),repositionVe:_.na(226204),resizeVe:_.na(226205)}),_.Zl(W,{playerVe:_.$5(t)}))}};
TlS=function(W,e){return _.F(function(t){if(t.nextAddress==1)return e.preparePlayer(),_.a(t,e.getPlayerPromise(),2);W.player=t.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$16541_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.u8(t)})};
_.r=ld.prototype;_.r.JSC$16541_onPlayerPlayVideo=function(W){var e=W.sessionData&&"autonav"in W.sessionData,t;W.sessionData&&W.sessionData.itct&&(t=W.sessionData.itct);var b=W.watchEndpoint;e=b&&e?_.M0g(b,t):_.ew(W.videoId,W.listId||void 0,t);W.sessionData&&_.Aj(_.l(e.commandMetadata,_.ez).url,W.sessionData);Mnb(this,e)};
_.r.onPlayerExpandMiniplayer=function(){_.Sy(this)};
_.r.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.r.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),e=W===1;_.Eb().dispatch(iuZ(W));_.Eb().dispatch(_.U$P(W));_.Qx(this.miniplayerEl,"yt-miniplayer-play-state-changed",[e]);_.G3().isVideoPlaying=e;if(W===0){e=!_.dv.getInstance().isAutoplaySetExplicitly();var t,b,m,q,Q,X,I=(t=this.watchResponse.response)==null?void 0:(b=t.contents)==null?void 0:(m=b.twoColumnWatchNextResults)==null?void 0:(q=m.autoplay)==null?void 0:(Q=q.autoplay)==null?void 0:(X=Q.autoplayExplicitChoiceDialogRenderer)==
null?void 0:X.confirmDialogRenderer;e&&I&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.r.onPlaylistNavigate=function(W,e){var t=this,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1){if(!_.l(e.endpoint,_.z4))return c.return();_.G3().currentEndpoint=e.endpoint;_.Qx(t.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.ee().resolve(_.WS).isOnWatch()&&(t.watchWhileMode||t.watchPipMode))return c.return();W.stopPropagation();(q=(m=_.l((b=e.endpoint)==null?void 0:b.commandMetadata,_.ez))==null?void 0:m.url)&&e.tempData&&!_.kJ.isEmpty(e.tempData)&&_.Aj(q,e.tempData);Q={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};X=new EIS(function(){return t.getPlayerElement()},Q,{layer:t.getScreenLayer()});
I=function(v){X.processChunk({endpoint:e.endpoint,data:v})};
HOE(t);t.miniplayerFetchRequest=KfQ(t,e.endpoint,I);_.Qh(c,2);return _.a(c,t.miniplayerFetchRequest,4)}if(c.nextAddress!=2)return u=c.yieldResult,PnM(t,u),_.Hi(c,0);_.w9(c);_.u8(c)})};
_.r.JSC$16541_onPlaylistDataUpdated=function(){var W=_.ee().resolve(_.Oj).getPlaylistData();this.hasPlaylistData=!!W;_.Zl(this,{externalPlaylistData:W||{}})};
_.r.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.ee().resolve(_.WS).isOnWatch()||this.shortsPipMode)){var e;(e=this.getPlayerElement())==null||e.stop()}this.deactivate()}else _.K5().closeMiniplayer(this.miniplayerEl)};
_.r.deactivate=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){if(!e.isInitialized()||!e.active)return Q.return();e.setActive(!1);HOE(e);(t=!!W&&fQC(e,W))&&e.isSingleOptionSurveyActive&&_.RT(e.miniplayerEl,"yt-show-watch-page-survey",[e.isSingleOptionSurveyActive]);return _.a(Q,VKE(e),2)}if(Q.nextAddress!=3){spT(e,!1);e.isReadyToResume=!1;e.watchResponse=void 0;e.updateMiniplayerData(void 0);e.shortsPipMode&&(e.shortsPipMode=!1,_.Eb().dispatch(OuB(e.shortsPipMode)),agl(e.pipController),
(b=e.player)==null||b.setInternalSize(NaN,NaN));e.watchPipMode&&(e.watchPipMode=!1,agl(e.pipController));(m=e.watchWhileMode)&&_.JeM(e,!1);e.removePlayerListeners();var X=_.ee().resolve(_.Oj);X.removeEventListener("yt-navigate",_.aH(e,e.onPlaylistNavigate));X.removeEventListener("yt-playlist-data-updated",_.aH(e,e.JSC$16541_onPlaylistDataUpdated));_.G3().currentEndpoint=null;_.Qx(e.miniplayerEl,"yt-miniplayer-endpoint-changed");e.playerElement=null;Eyv();return e.shortsPipMode||e.watchPipMode?Q.jumpTo(3):
_.a(Q,_.F5(e.miniplayerEl,_.S("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[t,m]),3)}(q=e.player)==null||q.setInternalSize(NaN,NaN);e.player=null;_.u8(Q)})};
var VKE=function(W){var e;return _.F(function(t){e=_.ee().resolve(_.WS);return W.shortsPipMode?_.a(t,e.movePlayerToShorts(W.playerElement),0):_.a(t,e.movePlayerToWatch(W.playerElement),0)})};
ld.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16541_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
ld.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.RT(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.RT(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Eb().dispatch(_.rO({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.JeM=function(W,e){W.watchWhileMode=e;_.Zl(W,{watchWhile:e})};
spT=function(W,e){if(!hyS(W))if(W.shortsPipMode||W.watchPipMode){var t;(t=W.player)==null||t.setDocumentPictureInPicture(e)}else{var b;(b=W.player)==null||b.setMinimized(e)}};
hyS=function(W){return W.watchWhileMode&&_.S("kevlar_watch_while_counterfactual")};
_.Sy=function(W){var e;return _.F(function(t){switch(t.nextAddress){case 1:if(!W.isInitialized())return t.return();_.Qh(t,2);return _.a(t,W.miniplayerFetchRequest,4);case 4:_.Hi(t,3);break;case 2:_.w9(t);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(e={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.q2(W.miniplayerEl,"yt-navigate-cache",e)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.q2(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.u8(t)}})};
Mnb=function(W,e,t){var b,m,q,Q;return _.F(function(X){if(X.nextAddress==1){if(fQC(W,e))return X.return();_.G3().currentEndpoint=e;_.Qx(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Qx(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.G3().isVideoPlaying=!1;b={clientParams:{miniplayer:!0,autoSaveToQueue:!t}};m=new EIS(function(){return W.getPlayerElement()},b,{layer:W.getScreenLayer(),
parentLayer:0},void 0,W.readyToResumeVe);q=function(I){var u,c,v=Object.assign({},(u=I.playerResponse)==null?void 0:(c=u.playerConfig)==null?void 0:c.playbackStartConfig,{startPaused:!0}),D;t&&((D=I.playerResponse)==null?0:D.playerConfig)&&(I.playerResponse.playerConfig.playbackStartConfig=v);m.processChunk({endpoint:e,data:I})};
HOE(W);W.miniplayerFetchRequest=KfQ(W,e,q);_.Qh(X,2);return _.a(X,W.miniplayerFetchRequest,4)}if(X.nextAddress!=2)return Q=X.yieldResult,PnM(W,Q),_.Hi(X,0);_.w9(X);_.u8(X)})};
ld.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var HOE=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)},KfQ=function(W,e,t){var b=_.lT.instance,m,q=(m=_.l(e.commandMetadata,_.ez))==null?void 0:m.url,Q;
m=!q||_.S("disable_miniplayer_tempdata")?{}:(Q=Q8v(q))!=null?Q:{};return iC(b,e,m,window.location.href,"watch",function(X,I){t(I)},function(X){return X!==W.miniplayerFetchRequest})},PnM=function(W,e){var t;
_.F(function(b){if(!e)return b.return();W.watchResponse=e;MKw(W);xST(W);t=_.vYK(e.response,e.playerResponse);if(W.isMiniplayerActive()){e.response&&(W.playerElement.watchNextData=e.response);var m=_.kJ.getValueByKeys.apply(_.kJ,[e].concat(_.kP(qy8)));_.kJ.getValueByKeys.apply(_.kJ,[e].concat(_.kP(I4e)))&&m&&_.ee().resolve(_.Oj).setAutoplayRenderer(m);if(m)if(_.S("kevlar_is_pupi_enabled")){var q,Q,X,I,u,c=((q=e.response)==null?0:(Q=q.playerOverlays)==null?0:(X=Q.playerOverlayRenderer)==null?0:(I=X.autonavToggle)==
null?0:(u=I.autoplaySwitchButtonRenderer)==null?0:u.enabled)?2:1;_.dv.getInstance().setState(c,!1,!1)}else q=oZD()?2:1,(c=W.player)==null||c.setAutonavState(q);W.updateMiniplayerData(t);_.OOC(W)}_.u8(b)})},xST=function(W){var e,t,b=(e=W.watchResponse)==null?void 0:(t=e.playerResponse)==null?void 0:t.playabilityStatus,m;
e=b==null?void 0:(m=b.miniplayer)==null?void 0:m.miniplayerRenderer;(e==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&e.minimizedEndpoint&&_.X5(W.miniplayerEl,[e.minimizedEndpoint]);_.Zl(W,{miniplayerRenderer:e,playabilityStatus:b})};
ld.prototype.openToast=function(W,e){_.Zl(this,{toastData:{data:W,label:e}})};
_.Zl=function(W,e){var t=W.miniplayerEl,b;for(b in e)t[b]=e[b];(0,W.miniplayerPropSignalMap[1])(e)};
ld.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.rz(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
ld.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var gEB=function(W,e){e=e===void 0?!1:e;var t,b,m,q,Q,X,I;return _.F(function(u){if(u.nextAddress==1){t=navigator.userActivation.isActive||e;if(!t||!W.pictureInPictureSupported())return u.return(!1);b=iOM(W);m=b.width;q=b.height;return _.a(u,W.pipController.openWindow({width:m,height:q}),2)}Q=u.yieldResult;X=W.pipController.getWindow();if(!X||!Q)return u.return(!1);X.document.body.style.overflow="hidden";I=t4c(X);wZ$(W.pipController,function(){Yw9(W);I()});
return u.return(!0)})},iOM=function(W){var e=_.G3().shortsPipActivation,t,b;
W=e?.5625:(b=(t=W.player)==null?void 0:t.getVideoAspectRatio())!=null?b:16/9;t=Math.min(window.innerWidth,window.innerHeight)/2;e=e?0:76;return W>1?new _.aD(t,e+t/W):new _.aD(t*W,e+t)},Yw9=function(W){var e;
_.F(function(t){e=_.ee().resolve(_.WS);return e.isOnWatch()&&W.watchPipMode||e.isOnShorts()&&W.shortsPipMode?_.a(t,W.deactivate(),0):W.miniplayerToPipMode?_.a(t,nEB(W),0):W.watchPipMode?_.a(t,_.Sy(W),0):t.jumpTo(0)})};
ld.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Ec.Object.defineProperties(ld.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
ld[dU]=[uDg,fWN];var zyM="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(" "),
USC="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(" "),Lfg="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
EEu="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var AeC=null;var NlC={},dSC=(NlC.initialized={priority:10,callback:function(W){var e=_.ee();e.addProvider({provide:W_y,useClass:aDT});e.addProvider({provide:_.IDC,useFactory:function(){return new ePo}});
e.addProvider({provide:Dv,useValue:_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});e.addProvider({provide:$aB,useValue:5184E6});e.addProvider({provide:hjr,useValue:_.g0()});e.addProvider({provide:Ezk,useClass:Jbh});e.addProvider({provide:HB,useClass:HB});e.addProvider({provide:_.Rv,useFactory:function(){return M_S.promise}});
e.addProvider({provide:_.hge,useFactory:function(){return _.sEU.promise}});
e.addProvider({provide:JdS,useValue:function(){var X;return((X=_.tv())==null?void 0:X.getPlayer())||null}});
var t={};e.addProvider((t.provide=_.Kw,t.useFactory=function(X,I){return function(){return $xD(X,I)}},t[dU]=[Dv,
$aB],t));t={};e.addProvider((t.provide=_.rF,t.useClass=IrZ,t[dU]=[Dv,$aB],t));t={};e.addProvider((t.provide=_.v12,t.useClass=cZe,t[dU]=[_.rF],t));e.addProvider({provide:Ff,useFactory:_.Eb});e.addProvider({provide:w0,useFactory:_.Eb});e.addProvider({provide:dBb,useFactory:_.Eb});e.addProvider({provide:ooh,useFactory:_.Eb});e.addProvider({provide:_.hh,useFactory:_.Eb});e.addProvider({provide:c1,useValue:_.uX});e.addProvider({provide:qSB,useClass:ZeL});e.addProvider({provide:bmb,useClass:tZN});e.addProvider({provide:yr,
useClass:yr});e.addProvider({provide:v1,useClass:v1});e.addProvider({provide:GI,useClass:GI});e.addProvider({provide:S1,useClass:S1});e.addProvider({provide:JW,useClass:JW});e.addProvider({provide:c5,useClass:c5});e.addProvider({provide:Q7,useClass:Q7});e.addProvider({provide:WbN,useValue:k1S});e.addProvider({provide:_.ky,useFactory:_.Sg});e.addProvider({provide:Ua,useFactory:_.B6});t={};e.addProvider((t.provide=tWL,t.useFactory=function(X){return function(I){var u=u===void 0?{}:u;var c,v,D=(v=_.l((c=
I.endpoint)==null?void 0:c.commandMetadata,_.ez))==null?void 0:v.rootVe;if(D){var B,k;if(c=I.previousCsn||((k=_.l((B=I.endpoint)==null?void 0:B.commandMetadata,Gho))==null?void 0:k.parentCsn)){var n=n===void 0?{}:n;if(c!==_.fc(n.layer)||D!==lYD(n.layer))ynG(c,n.cttAuthInfo,n.layer||0),BuK(c,n.layer||0),B=n.layer||0,_.xq(orG(B===void 0?0:B),D);u.parentCsn=c}I.endpoint&&c?JHB(X,I.endpoint,u):_.FW(X,D,void 0,u);var f;((f=I.response)==null?0:f.trackingParams)&&X.graftServerVe(I.response.trackingParams);
var M;((M=I.playerResponse)==null?0:M.trackingParams)&&X.graftServerVe(I.playerResponse.trackingParams);var K;((K=I.reelWatchSequenceResponse)==null?0:K.trackingParams)&&X.graftServerVe(I.reelWatchSequenceResponse.trackingParams)}}},t[dU]=[_.ky],t));
t={};e.addProvider((t.provide=ecw,t.useClass=W2B,t[dU]=[c1,_.hh],t));t={};e.addProvider((t.provide=dx,t.useClass=dx,t[dU]=[_.Rv,_.hh],t));t={};e.addProvider((t.provide=Lw,t.useClass=Lw,t[dU]=[w0,_.tQ],t));e.addProvider({provide:_.RcS,useClass:v9l});t={};e.addProvider((t.provide=_.oL,t.useClass=XZg,t[dU]=[_.RcS],t));e.addProvider({provide:_.lR,useClass:t5});e.addProvider({provide:_.JfZ,useClass:L2Q});e.addProvider({provide:_.Z4,useClass:Wj});t={};e.addProvider((t.provide=_.VM,t.useClass=czg,t[dU]=
[_.VM],t));e.addProvider({provide:_.W$,useClass:EUe});e.addProvider({provide:ur,useClass:ur});e.addProvider({provide:BJ,useClass:BJ});e.addProvider({provide:jE,useClass:ey});t={};e.addProvider((t.provide=fS,t.useClass=fS,t[dU]=[_.lR,jE],t));_.S("web_enable_feedback_endpoint_resolver")&&(t={},e.addProvider((t.provide=Xf,t.useClass=Xf,t[dU]=[Ff,QM],t)),e.addProvider({provide:QM,useClass:GuU}));_.S("web_enable_feedback_endpoint_resolver_batch_2")&&(t={},e.addProvider((t.provide=ak,t.useClass=ak,t[dU]=
[Ff],t)),t={},e.addProvider((t.provide=Ik,t.useClass=Ik,t[dU]=[QM],t)));t={};e.addProvider((t.provide=CS,t.useClass=CS,t[dU]=[_.Z4,jE],t));t={};e.addProvider((t.provide=$k,t.useClass=$k,t[dU]=[_.Z4],t));t={};e.addProvider((t.provide=nS,t.useClass=nS,t[dU]=[_.J8,_.oL],t));t={};e.addProvider((t.provide=yM,t.useClass=yM,t[dU]=[_.J8,_.ky],t));e.addProvider({provide:WE,useClass:WE});t={};e.addProvider((t.provide=zd,t.useClass=zd,t[dU]=[Ff],t));e.addProvider({provide:uP,useClass:uP});e.addProvider({provide:wV,
useClass:wV});t={};e.addProvider((t.provide=vE,t.useClass=vE,t[dU]=[Ff],t));t={};e.addProvider((t.provide=Gs,t.useClass=Gs,t[dU]=[_.J8,Ff],t));t={};e.addProvider((t.provide=DE,t.useClass=DE,t[dU]=[Ff],t));t={};e.addProvider((t.provide=S0,t.useClass=S0,t[dU]=[Ff],t));t={};e.addProvider((t.provide=kk,t.useClass=kk,t[dU]=[_.oL],t));t={};e.addProvider((t.provide=rV,t.useClass=rV,t[dU]=[_.ky],t));t={};e.addProvider((t.provide=IW,t.useClass=IW,t[dU]=[Ny],t));t={};e.addProvider((t.provide=aW,t.useClass=
aW,t[dU]=[Ny],t));e.addProvider({provide:Qj,useClass:Qj});e.addProvider({provide:Fl,useClass:Fl});e.addProvider({provide:mN,useClass:mN});t={};e.addProvider((t.provide=gY,t.useClass=gY,t[dU]=[_.oL,_.tQ],t));e.addProvider({provide:Gd,useClass:Gd});t={};e.addProvider((t.provide=pS,t.useClass=pS,t[dU]=[_.J8,_.oL],t));e.addProvider({provide:ok,useClass:ok});t={};e.addProvider((t.provide=ir,t.useClass=ir,t[dU]=[Ff,_.J8,_.VM],t));t={};e.addProvider((t.provide=KS,t.useClass=KS,t[dU]=[_.J8,_.tQ],t));e.addProvider({provide:SMe,
useValue:sOc});e.addProvider({provide:$TZ,useValue:tYz});e.addProvider({provide:PJ,useClass:PJ});t={};e.addProvider((t.provide=HJ,t.useClass=HJ,t[dU]=[Ff],t));t={};e.addProvider((t.provide=Yk,t.useClass=Yk,t[dU]=[_.W$,_.tQ],t));t={};e.addProvider((t.provide=wY,t.useClass=wY,t[dU]=[_.tQ],t));e.addProvider({provide:Rk,useFactory:function(){return new Rk(_.Eb())}});
e.addProvider({provide:B4G,useFactory:_.fB.getInstance});t={};e.addProvider((t.provide=SE,t.useClass=SE,t[dU]=[Dv,B4G,_.tQ],t));e.addProvider({provide:cJ,useClass:cJ});e.addProvider({provide:tL,useClass:tL});e.addProvider({provide:mP,useClass:mP});e.addProvider({provide:_.br,useClass:_.br});e.addProvider({provide:CN,useClass:CN});t={};e.addProvider((t.provide=My,t.useClass=My,t[dU]=[w0],t));t={};e.addProvider((t.provide=sa,t.useClass=sa,t[dU]=[_.tQ],t));_.S("web_enable_prefetching_videos_on_home")&&
(e.addProvider({provide:UA,useClass:UA}),e.addProvider({provide:ud,useClass:ud}));t={};e.addProvider((t.provide=j0,t.useClass=j0,t[dU]=[_.tQ],t));e.addProvider({provide:rY,useClass:rY});t={};e.addProvider((t.provide=e0,t.useClass=e0,t[dU]=[_.J8,_.tQ],t));t={};e.addProvider((t.provide=qy,t.useClass=qy,t[dU]=[_.tQ],t));e.addProvider({provide:cj,useClass:cj});e.addProvider({provide:xk,useClass:xk});t={};e.addProvider((t.provide=JL,t.useClass=JL,t[dU]=[w0,_.tQ],t));t={};e.addProvider((t.provide=gV,t.useClass=
gV,t[dU]=[w0,_.tQ,_.J8],t));t={};e.addProvider((t.provide=Ts,t.useClass=Ts,t[dU]=[_.tQ],t));t={};e.addProvider((t.provide=fN,t.useClass=fN,t[dU]=[_.tQ,_.J8],t));t={};e.addProvider((t.provide=hL,t.useClass=hL,t[dU]=[_.Rv],t));t={};e.addProvider((t.provide=Oa,t.useClass=Oa,t[dU]=[_.Rv],t));e.addProvider({provide:AL,useClass:AL});e.addProvider({provide:dY,useClass:dY});e.addProvider({provide:cE,useClass:cE});e.addProvider({provide:tY,useClass:tY});e.addProvider({provide:Ea,useClass:Ea});e.addProvider({provide:lr,
useClass:lr});e.addProvider({provide:LS,useClass:LS});_.S("kevlar_enable_mss_lazy_load")&&e.addProvider({provide:_.V$,useClass:YS1});e.addProvider({provide:_.B1,useClass:md});e.addProvider({provide:Nd,useFactory:function(){return _.P3.getInstance()}});
e.addProvider({provide:AZU,useFactory:sFc});e.addProvider({provide:Ny,useFactory:function(){return _.p5.getInstance()}});
e.addProvider({provide:nON,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});t={};e.addProvider((t.provide=_.EA,t.useClass=_.EA,t[dU]=[_.Rv,_.tQ,_.ky,AZU,Ny,Nd,nON,c1],t));e.addProvider({provide:_.Xa,useClass:cdh});e.addProvider({provide:_.psB,useClass:kuh});t={};e.addProvider((t.provide=Zv,t.useClass=Zv,t[dU]=[_.psB],t));t={};e.addProvider((t.provide=_.AW,t.useFactory=function(X){return X.upliftCompletionResolver.promise},t[dU]=[ecw],t));
t=_.MD("IS_SHELL_LOAD")?"aa":"eocs";var b=_.MD("IS_SHELL_LOAD")?3:2;_.sj().parkOrScheduleJob(function(){bQ9()},b,t);
_.sj().parkOrScheduleJob(function(){_.ee().resolve(dx).start()},2,"eocs");
_.sj().parkOrScheduleJob(function(){N5y()},2,"eocs");
_.sj().parkOrScheduleJob(function(){_.ee().resolve(Lw).start()},2,"eocs");
_.S("kevlar_debug_data_app_registration_ks")||qOs();e.addProvider({provide:_.gd,useValue:new Qah(W.root)});e.addProvider({provide:H3,useValue:new KuK});e.addProvider({provide:_.vUD,useValue:new u$B(W.root)});e.addProvider({provide:_.Ti,useValue:new c0Z});e.addProvider({provide:_.$6,useClass:uR});e.addProvider({provide:uDg,useClass:bd});_.S("kevlar_network_sli_killswitch")||e.addProvider({provide:GZg,useValue:BcD});e.addProvider({provide:RN1,useFactory:C5G});_.S("web_bind_fetch")&&(t={},e.addProvider((t.provide=
QyT,t.useFactory=n72,t[dU]=[_.Wi(RN1)],t)));_.S("web_bind_parse")&&(t={},e.addProvider((t.provide=Feg,t.useFactory=fxD,t[dU]=[_.Wi(RN1)],t)));_.S("web_bind_window_request")&&(t={},e.addProvider((t.provide=XUU,t.useFactory=g7v,t[dU]=[_.Wi(RN1)],t)));t={};e.addProvider((t.provide=VZk,t.useFactory=dJG,t[dU]=[_.AW,Ff,_.Kw],t));t={};e.addProvider((t.provide=PKv,t.useClass=JY,t[dU]=[VZk],t));e.addProvider({provide:rZb,useClass:eGh});e.addProvider({provide:sqP,useClass:Hme});t=[].concat(_.kP(La));_.S("web_continuation_response_processing")&&
t.push(_.hp);t.push(ify);_.S("enable_share_panel_navigation_logging_fix_on_web")&&t.push(_.a5B);e.addProvider({provide:o_D,useValue:t});e.addProvider({provide:ZEg,useClass:MZD});e.addProvider({provide:lDg,useClass:Dol});t={};e.addProvider((t.provide=S$D,t.useClass=pkb,t[dU]=[w0],t));_.Tm.addLowPriorityJob(function(){QOv()});
t={};e.addProvider((t.provide=$XD,t.useFactory=function(X){return function(I){var u,c=(u=_.l(I.commandMetadata,_.ez))==null?void 0:u.url;if(!c)throw new _.o_("No URL for PBJ Command",I);c=oSD(c,{pbj:"1"});u=hr9(c,{})||{};u=Object.assign({},u,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Ot("STS").toString()});I=_.w8({command:JSON.stringify(I),session_token:_.Ot("XSRF_TOKEN")});return X.fetch(c,{method:"POST",headers:u,body:I})}},t[dU]=[lDg],t));
t=[];t.push(e.resolve(sqP));b={};b=(b.client_location=_.fB.getInstance(),b.consistency=_.DMG(),b.entities=e.resolve(bmb),b.response_received_commands=e.resolve(ZEg),b.store=e.resolve(_.v12),b.tokens=e.resolve(sqP),b);if(_.S("web_shorts_prefetch_service_enabled")){var m=new vzh(e.resolve(_.rF));b.shorts_prefetch=m}b.adblock_detection=e.resolve(S$D);e.addProvider({provide:_.Yn,useClass:_.Yn});m=e.resolve(WbN);var q=[];_.S("PremiumClientSharedConfig__enable_att_context_processor")&&(e.addProvider({provide:Hky,
useClass:Mcy}),q.push(e.resolve(Hky)));if(_.S("owl_pl_await")){var Q={};e.addProvider((Q.provide=eNC,Q.useFactory=function(X){return new dsw(X)},Q[dU]=[_.Yn],Q));
q.push(e.resolve(eNC))}Tbo(m,e.resolve(lDg),e.resolve(qSB),b,e.resolve(_.rF),t,q,e.resolve(PKv),e.resolve(rZb));e.addProvider({provide:_.J8,useValue:_.Vp.instance});_.S("start_client_gcf")&&e.addProvider({provide:pJ,useValue:nnD()});e.addProvider({provide:rzB,useFactory:function(){return new rzB(_.ee().resolve(_.Yn),_.p5.getInstance())}});
_.sj().parkOrScheduleJob(function(){qLB()},1,"eocs");
t={};e.addProvider((t.provide=Nl,t.useClass=Nl,t[dU]=[_.Kw,_.J8],t));e.addProvider({provide:_.o9w,useFactory:_.w1.getInstance});_.sj().parkOrScheduleJob(function(){_.ee().resolve(Nl).refresh()},0,"eocs");
kPB(k1S.watchEndpointMap||{},m.reelWatchEndpointMap||{},W.injector.resolve(_.J8));e.addProvider({provide:y$,useValue:_.lT.instance});_.S("kevlar_signal_collection_killswitch")||(t={},e.addProvider((t.provide=LbS,t.useClass=LbS,t[dU]=[Dv,Ua],t)),_.sj().parkOrScheduleJob(function(){_.ee().resolve(LbS).record()},1,"eocs"));
_.S("web_debug_handler_registration_killswitch")||_.sj().parkOrScheduleJob(function(){mhL("DOWNLOAD_PES",Mis);_.S("offline_client_state_export_ks")||mhL("OFFLINE_CLIENT_STATE",JVL)},0,"eocs");
_.S("kevlar_prevent_polymer_dynamic_font_load")&&_.sj().parkOrScheduleJob(function(){var X=[_.bN(TBg),_.bN(Jk$)];X=_.R(X);for(var I=X.next();!I.done;I=X.next()){I=I.value;var u=document.createElement("link");_.VE(u,I,"stylesheet");document.head.appendChild(u)}},1,"eocs");
t=W.injector.resolve(_.J8);_.hXS.instance=new _.hXS(t);Be2(fdZ(new sak(t)));t={};W.injector.addProvider((t.provide=WT,t.useFactory=function(X){(X=X==null?void 0:X.getCurrentPage())?X=X.visibilityObserver:(AeC||(AeC=$MS()),X=AeC);return X},t[dU]=[_.Wi(_.WS)],t.skipCache=!0,t));
e.addProvider({provide:_.Kn,useClass:ld});e.addProvider({provide:wF,useClass:lWr});W.injector.addProvider({provide:BgB,useValue:RXB});e.addProvider({provide:mTy,useValue:MlD});e.addProvider({provide:_.zf,useValue:LSg});W=e.addProvider;ZQC||(ZQC=new lg1);W.call(e,{provide:_.r1,useValue:ZQC});e.addProvider({provide:_.L4,useValue:_.Ot("HTML_DIR")==="rtl"?"rtl":"ltr"});e.addProvider({provide:rfh,useClass:cfy});e.addProvider({provide:_.wA,useClass:Rs});_.ee().addProvider({provide:RjP,useValue:_.S("enable_web_delhi_icons")?
USC.concat(EEu):zyM.concat(Lfg)});e.addProvider({provide:_.FO,useClass:_.FO});e.addProvider({provide:_.ChM,useValue:new jy1});e.addProvider({provide:rPb,useClass:WCD});e.addProvider({provide:bP,useClass:bP});e.addProvider({provide:q4,useClass:q4});W={};e.addProvider((W.provide=Td,W.useClass=Td,W[dU]=[_.J8,_.oL],W));e.addProvider({provide:nN,useClass:nN});e.addProvider({provide:$8h,useClass:Dsw});e.addProvider({provide:Xl,useClass:Xl});e.addProvider({provide:Wse,useValue:sc8});e.addProvider({provide:_.Tb,
useClass:ejS});_.S("enable_payments_purchase_manager")&&e.addProvider({provide:ikU,useClass:KrZ});e.addProvider({provide:gvB,useFactory:function(){return function(X){return _.fDB(X)}}});
e.addProvider({provide:_.xak,useClass:Omv});W={};e.addProvider((W.provide=yj,W.useClass=yj,W[dU]=[_.xak],W));e.addProvider({provide:RW,useClass:RW});e.addProvider({provide:G$8,useValue:LBP});e.addProvider({provide:gHr,useValue:_.fgu});e.addProvider({provide:cdv,useClass:GSB});e.addProvider({provide:$s$,useValue:CgC});W={};e.addProvider((W.provide=_.q1,W.useClass=kSw,W[dU]=[$s$],W));_.S("web_ephemeral_actions")&&(W={},e.addProvider((W.provide=_.Is,W.useClass=XO,W[dU]=[_.hh,_.$6],W)));if(_.S("web_explore_hub_on_hover")||
_.S("web_client_explore_hub_on_hover"))W={},e.addProvider((W.provide=vJ,W.useClass=vJ,W[dU]=[_.J8,Nd],W));e.addProvider({provide:MYc,useValue:nXR});W={};e.addProvider((W.provide=DBo,W.useClass=G6v,W[dU]=[_.J8],W))}},NlC);var WTC={},eOE=(WTC.initialized={priority:10,callback:function(){if(!vvS){UuD();J$G("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Fe(_.Sz(J$G,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.S("log_heartbeat_with_lifecycles")){var W={};Up.instance||(Up.instance=new Up);Up.instance.install((W.document_visible={callback:xJS,priority:10},W.document_hidden={callback:xJS,priority:10},W))}else _.W3(document,"visibilitychange",xJS);vvS=!0}(W=_.fc())&&W!=="UNDEFINED_CSN"&&D3g(W)}},WTC);var t59={},bFw=(t59.initialized={callback:function(W){var e=_.na(232091),t=W.injector.resolve(_.ky);_.XW(t,e);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?bEg()&&_.a0(t,e):(W=W.injector.resolve(gvB)("refresh_detector"))&&(W.get("first_tab_load")?_.a0(t,e):W.set("first_tab_load","1"))}},t59);var mtg={},rKE=(mtg.initialized={priority:10,callback:Iwv},mtg);var qVu={},ROM=(qVu.initialized={priority:0,callback:function(){var W=new fVN,e="other";_.G9?e="chrome":_.vb?e="firefox":_.JQ?e="safari":Ei&&(e="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(t){W.increment(_.DK(),t,e)}).catch(function(){W.increment(_.DK(),!1,e)}):W.increment(_.DK(),!1,e)}},qVu);var QmQ={},FTC=(QmQ.rendering={priority:8,callback:aw2},QmQ);var X7U={},I1S=(X7U.rendering={priority:10,callback:ktG},X7U.rendered={callback:$jZ},X7U),a1T={},w7E=(a1T.rendering={callback:ktG},a1T.rendered={callback:$jZ},a1T);var uhC=!1,cKQ={},vNC=(cKQ.initialized={priority:10,callback:function(){uhC||(oMD({didPatch:function(W){W.el&&ZbD(W.el,W.props)},
didUnmount:function(W){osz(W.el)}}),uhC=!0)}},cKQ);var GyC=/^\/shorts\/?$/;_.xq("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(_.S("kevlar_enable_mss")){_.bt2(new uwN);var Dt$=!0,SVM,$s;Dt$=Dt$===void 0?!1:Dt$;SVM=SVM===void 0?!1:SVM;$s=$s===void 0?{}:$s;var BR9=$s.cssRowKey||"",oN9=$s.combinedSignature||"";!BR9&&window&&window._F_cssRowKey&&(BR9=window._F_cssRowKey,!oN9&&window._F_combinedSignature&&(oN9=window._F_combinedSignature));if(BR9&&typeof window._F_installCss!=="function")throw Error("vd");var l1l=$s.loaderClass||_.H_,ks=VmQ("base-js"),ZFC,$tQ=YtG("",ks);ZFC=_.Fh($tQ);var pb=new l1l(ZFC,BR9,oN9,Dt$,SVM),kyT=
$s.useCors||ks&&ks.hasAttribute("crossorigin"),p7l=$s.corsMode||ks&&ks.getAttribute("crossorigin");kyT&&(pb.useCors_=kyT);p7l&&(pb.corsMode_=p7l);$s.urlMaxLength&&(pb.urlMaxLength=$s.urlMaxLength);$s.fetchPriority&&(pb.fetchPriority=$s.fetchPriority);var yK$=f3();yK$.JSC$8099_loader_=pb;yK$.setBatchModeEnabled(!0)}
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Ij");W=new as({root:W,injector:_.ee()});W.install(eOE);var e={};W.install((e.initialized={priority:10,callback:cNS},e));_.S("wp_lat_b")&&(e={},W.install((e.initialized={priority:10,callback:function(){p8L()}},e)));
e={};W.install((e.rendered={priority:0,callback:aSc},e));e={};W.install((e.rendered={priority:0,callback:function(){_.Tm.addLowPriorityJob(function(){_.vmk>1&&(rNv(),XlL())},4E4)}},e));
W.install(qBS);W.install(bFw);W.install(vNC);UJs();W.install(uCU);W.install(WUu);W.install(m9g);W.install(KbS);W.install(zGU);W.install(aMT);W.install(dSC);_.S("kevlar_enable_mss_lazy_load")&&W.install(rKE);W.install(tTB);W.install(ROM);if(!_.MD("IS_SHELL_LOAD")||_.S("kevlar_fetch_initial_data_promise_client")||_.S("sw_nav_preload_pbj")){var t=_.I_(window.location.href);e=t&&t==="/watch";t=t&&t.match(GyC);e?W.install(w7E):t?W.install(FTC):W.install(I1S)}else W.install(AkQ);W.install(Q$l);_.S("web_enable_prefetching_videos_on_home")&&
W.install(D9B);_.S("start_client_gcf")&&W.install(ckw);W.install(O6h);(new gPh).increment("INSTALLED");W.install(vlE);W.install(Uo9);W.transition("initialized");DJL()})();
_.Fu=[[["NjYwa2luZCNhaGZnamE0NWE=","dmFsdWUjNnQ4NDZkeTk1cDRm"],"UEFVU0UjdXoydXg2Y3I4ZzZxQURfUExBQ0VNRU5UX0tJTkRf"]];_.QI=["b2JhbENhbGxiYWNrcyNmcTluN2JhczAycWNnbA==","ZXRlY3RlZCN2Znh6Zmc3YWZ2b3dvbkFibm9ybWFsaXR5RA==","ZTF3eDY5dmN5Mmg0b25BZFNraXAj","X3Jlc3BvbnNlI2xzNGV2c3dsdm5kdHJhd19wbGF5ZXI=","ZXJpbmdDb250ZW50I2Z1aDh1OHJjNmF2MXJlbmQ="];_.i6="b2JhbENhbGxiYWNrcyNmcTluN2JhczAycWNnbA== ZXRlY3RlZCN2Znh6Zmc3YWZ2b3dvbkFibm9ybWFsaXR5RA== ZTF3eDY5dmN5Mmg0b25BZFNraXAj X3Jlc3BvbnNlI2xzNGV2c3dsdm5kdHJhd19wbGF5ZXI= bGVsejN3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjb3RyMHh5Yg== aGJ5azB2d2xtM3FxYWJfc2FfZWYj ZXJpbmdDb250ZW50I2Z1aDh1OHJjNmF2MXJlbmQ=".split(" ");
_._ModuleManager_initialize=function(W,e){if(!_.C3){if(!_.n3)return;_.bt2(_.n3())}_.C3.setAllModuleInfoString(W,e)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy6','syi','syh','sye','syc','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.nb=function(W,e,t,b,m){var q={};e&&(q[e]=t);b?q.errorType=b:m&&(q.errorReason=m);_.nJ(W,q);_.fJ()};
_.fb=function(W){var e=_.sj();return _.Dvk(e,W,1)};
_.yQ({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var M59;var smg;var hOC=function(){};
_.r=hOC.prototype;_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._focusedChanged=function(){};
_.r._createRipple=function(){};
_.r.registered=function(){};
_.r._invalidChanged=function(){};
_.r.hasValidator=function(){};
_.r.validate=function(){};
_.r._getValidity=function(){};
_.r._requiredChanged=function(){};
_.r._valueChanged=function(){};
_.r._checkedChanged=function(){};
_.r._buttonStateChanged=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
hOC=_.yQ({is:"tp-yt-paper-radio-button",_template:function(){if(smg!==void 0)return smg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;M59===void 0&&(M59=document.createElement("template"));var b=M59;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return smg=W},
behaviors:[_.Wgv],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(){_.Uc(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),e=Math.floor(3*W);e%2!==W%2&&e++;this.updateStyles({"--paper-radio-button-ink-size":e+"px"})}})}});var HFu;var KT9;_.yQ({_template:function(){if(KT9!==void 0)return KT9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;HFu===void 0&&(HFu=document.createElement("template"));var b=HFu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return KT9=W},
is:"tp-yt-paper-radio-group",behaviors:[_.wgN],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(W){var e=this._valueToItem(W);if(!e||!e.hasAttribute("disabled")){if(this.selected){e=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{e&&(e.checked=!0);return}e&&
(e.checked=!1)}_.PG.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.ajN._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.ajN._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.PG._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.fx._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var PFC;_.xD("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var g1=function(){return _.O.apply(this,arguments)||this};
_.Z(g1,_.O);_.r=g1.prototype;_.r.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.r.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.r.computeHideSecondaryString=function(W){return!_.S("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.r.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.r.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.I_(window.location.href)!=="/account_transfer_channel"&&_.I_(window.location.href)!=="/gaia_link"&&_.I_(window.location.href)!=="/channel_switcher"||W!=="/account"?_.I_(window.location.href)===W:!0:!1};
_.r.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.X5(this.hostElement,[this.data.serviceEndpoint])};
g1.prototype.onTap=g1.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],g1.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Y("design:type",Boolean)],g1.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Y("design:type",String)],g1.prototype,"compactLinkStyle",void 0);
_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],g1.prototype,"icon",void 0);_.P([_.J({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",Object)],g1.prototype,"secondaryIcon",void 0);_.P([_.J({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],g1.prototype,"hasSecondary",void 0);_.P([_.J({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],g1.prototype,"hideSecondaryString",void 0);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g1.prototype,"onTap",null);_.P([_.h({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],g1);
_.H(g1,"ytd-compact-link-renderer",function(){if(PFC!==void 0)return PFC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return PFC=W},{mode:1});var V5C;_.xD("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var TB=function(){var W=_.O.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.S("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 W};
_.Z(TB,_.O);_.r=TB.prototype;_.r.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.jf()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.r.getCurrentTheme=function(){return _.CB()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.jf()};
_.r.onThemeSelected=function(W,e){var t=W||e?W:_.yI(),b=(t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!t&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.cHK(_.I_(window.location.href));_.oT(0,165,W);_.oT(0,174,e);this.prefs.save();b&&_.RT(this.hostElement,"yt-dark-mode-toggled-action",[t]);_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.r.onTap=function(){this.data.serviceEndpoint&&_.X5(this.hostElement,[this.data.serviceEndpoint])};
_.r.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.r.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.r.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
TB.prototype.onTap=TB.prototype.onTap;TB.prototype.dataChanged=TB.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],TB.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.E4),_.Y("design:type",Object)],TB.prototype,"paperItemBehaviors",void 0);_.P([_.J(),_.Y("design:type",Object)],TB.prototype,"data",void 0);_.P([_.J({value:function(){return _.B6()}}),
_.Y("design:type",_.tq)],TB.prototype,"prefs",void 0);_.P([_.J(),_.Y("design:type",Object)],TB.prototype,"label",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TB.prototype,"role",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TB.prototype,"tabindex",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TB.prototype,"dataChanged",null);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TB.prototype,"onTap",null);_.P([_.h({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],TB);
_.H(TB,"ytd-toggle-theme-compact-link-renderer",function(){if(V5C!==void 0)return V5C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return V5C=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var YVU,zOB;_.J5=function(W){return!!W.getOptions("captions")};
_.iFT=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
_.xs=function(W,e){_.OR(e,W,function(){return YVU[e]},function(t){YVU[e]=t;
if(!_.S("mweb_player_ve_show_ks")){var b=_.fc(0);b&&t&&_.Vx(b,t)}})};
_.O9=function(W){(W=YVU[W])&&_.a0(_.Sg(),W)};
YVU={};var UtQ;/*

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
*/
_.yQ({_template:function(){if(UtQ!==void 0)return UtQ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;zOB===void 0&&(zOB=document.createElement("template"));var b=zOB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return UtQ=W},
is:"tp-yt-paper-checkbox",behaviors:[_.Wgv],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Uc(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),e="px",t=W.match(/[A-Za-z]+$/);t!==null&&(e=t[0]);W=parseFloat(W);t=8/3*W;e==="px"&&(t=Math.floor(t),t%2!==W%2&&t++);this.updateStyles({"--paper-checkbox-ink-size":t+
e})}})},
_computeCheckboxClass:function(W,e){var t="";W&&(t+="checked ");e&&(t+="invalid");return t},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Nde._createRipple.call(this)}});var LT1=new _.z("radioButtonSurveyOptionRenderer"),ENg=new _.z("checkboxSurveyOptionRenderer");var AKE;var NRM;var dtM=0,M1=function(){var W=_.O.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+dtM;dtM++;return W};
_.Z(M1,_.O);M1.prototype.onTap=function(){_.q2(this.hostElement,"ytd-toggle-option-clicked")};
_.P([_.J(),_.Y("design:type",String)],M1.prototype,"label",void 0);_.P([_.J(),_.Y("design:type",String)],M1.prototype,"inputId",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],M1.prototype,"selected",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],M1.prototype,"isOverlay",void 0);_.P([_.h({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Y("design:paramtypes",[])],M1);
_.H(M1,"ytd-toggle-option-renderer",function(){if(NRM!==void 0)return NRM;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return NRM=W},{mode:1});var s9=function(){var W=_.O.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.Z(s9,_.O);s9.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.q2(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.Ec.Object.defineProperties(s9.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
s9.prototype.onTap=s9.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],s9.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],s9.prototype,"isToggleOption",void 0);_.P([_.J(),_.Y("design:type",Object)],s9.prototype,"isOverlay",void 0);_.P([_.T("data.responseText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],s9.prototype,"label",null);
_.P([_.wz("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],s9.prototype,"onTap",null);_.P([_.h({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],s9);
_.H(s9,"ytd-checkbox-survey-option-renderer",function(){if(AKE!==void 0)return AKE;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AKE=W},{mode:1});var WkC;var ee$;var h5=function(){var W=_.O.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.Z(h5,_.O);h5.prototype.onTap=function(){this.data&&(this.checked?_.RT(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.RT(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
h5.prototype.onTap=h5.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],h5.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],h5.prototype,"checked",void 0);_.P([_.J(),_.Y("design:type",Object)],h5.prototype,"isToggleOption",void 0);_.P([_.wz("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],h5.prototype,"onTap",null);
_.P([_.h({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],h5);
_.H(h5,"ytd-radio-button-survey-option-renderer",function(){if(ee$!==void 0)return ee$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ee$=W},{mode:1});var Hj=function(){var W=_.O.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.S("web_improve_shorts_response_rate");W.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 W};
_.Z(Hj,_.O);_.r=Hj.prototype;
_.r.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"}}}}};
_.r.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(t){var b;if((b=t[0])!=null&&b.isIntersecting){_.Gf().reportShown(W.hostElement);var m;(m=W.intersectionObserver)==null||m.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var e;(e=this.intersectionObserver)==null||e.observe(this.hostElement)};
_.r.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.r.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var e;((e=this.data)==null?void 0:e.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var t,b,m,q;this.darkColorPalette=(t=this.data)==null?void 0:(b=t.inlineContent)==null?void 0:(m=b.compactVideoRenderer)==null?void 0:(q=m.thumbnail)==null?
void 0:q.darkColorPalette;var Q,X,I,u;this.lightColorPalette=(Q=this.data)==null?void 0:(X=Q.inlineContent)==null?void 0:(I=X.compactVideoRenderer)==null?void 0:(u=I.thumbnail)==null?void 0:u.lightColorPalette;var c,v;if(((c=this.data)==null?0:(v=c.inlineContent)==null?0:v.compactVideoRenderer)&&this.isShortsStyle){var D,B,k,n;W=_.qA((D=this.data)==null?void 0:(B=D.inlineContent)==null?void 0:(k=B.compactVideoRenderer)==null?void 0:(n=k.thumbnail)==null?void 0:n.thumbnails);_.XB(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.r.handleRequestCompletion=function(){this.hostElement.hidden&&_.q2(this.hostElement,"yt-dismissible-item-dismissed")};
_.r.onPopupClosed=function(W){var e;((e=W.detail)==null?void 0:e.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.RT(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.r.handleInlineSurveyRatingSelect=function(W,e){var t=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=e;this.expanded=!!W;this.getOptionRenderers().forEach(function(b,m){t.notifyPath("followUpSurveyCommand.followUpOptions."+m+".checkboxSurveyOptionRenderer.checked");t.set("followUpSurveyCommand.followUpOptions."+m+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.RT(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.r.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.RT(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,e=(W=this.data)==null?void 0:W.dismissalEndpoint;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.r.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.RT(this.hostElement,"yt-close-popup-action"))};
_.r.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(b){return b.checked});
if(W.length===0)return;W=W.map(function(b){return b.responseEndpoint})}var e=[];
W.forEach(function(b,m){m!==0&&(b=_.l(b,_.Ol))&&b.feedbackToken&&e.push(b.feedbackToken)});
if(W=W[0]){var t={};e.length>0&&(t.extra_feedback_tokens=e);this.ytComponentBehavior.resolveCommand(W,{form:t})}}};
_.r.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(e){W.isSingleSelect=!!_.l(e,LT1);return W.isSingleSelect?_.l(e,LT1):_.l(e,ENg)}):[]};
_.r.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.r.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.r.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.r.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.sr(W)};
_.Ec.Object.defineProperties(Hj.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Hj.prototype.colorPaletteChanged=Hj.prototype.colorPaletteChanged;Hj.prototype.onPopupClosed=Hj.prototype.onPopupClosed;Hj.prototype.handleRequestCompletion=Hj.prototype.handleRequestCompletion;Hj.prototype.dataChanged=Hj.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Hj.prototype,"actionHandlerBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Hj.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Hj.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.vG("#follow-up-survey-options"),_.Y("design:type",Object)],Hj.prototype,"optionSelector",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"disableAnimation",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"isToggleOption",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"followUpSurveyCommand",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"selectedRatingEndpoint",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Hj.prototype,"expanded",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hj.prototype,"isSlimlineSurveyFollowUp",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hj.prototype,"isShortsStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hj.prototype,"styleOverrideAttribute",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Hj.prototype,"isSingleSelect",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"isDarkMode",void 0);
_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"lightColorPalette",void 0);_.P([_.J(),_.Y("design:type",Object)],Hj.prototype,"darkColorPalette",void 0);_.P([_.T("selectedRatingEndpoint","isShortsStyle"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Hj.prototype,"isOptionSelected",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hj.prototype,"roundedContainer",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hj.prototype,"improveShortsResponseRate",void 0);_.P([_.vG("#dismissible"),_.Y("design:type",HTMLElement)],Hj.prototype,"dismissibleEl",void 0);_.P([_.vG("#dismiss-button yt-icon-button"),_.Y("design:type",HTMLElement)],Hj.prototype,"dismissButtonEl",void 0);_.P([_.vG("#inline-survey-header yt-icon-button"),_.Y("design:type",HTMLElement)],Hj.prototype,"inlineHeaderDismissButtonEl",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hj.prototype,"dataChanged",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hj.prototype,"handleRequestCompletion",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Hj.prototype,"onPopupClosed",null);
_.P([_.ul("darkColorPalette","lightColorPalette","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hj.prototype,"colorPaletteChanged",null);_.P([_.h({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Hj);
_.H(Hj,"ytd-inline-survey-renderer",function(){if(WkC!==void 0)return WkC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WkC=W},{mode:1});var tdw=["en-CA","en","es-MX","fr-CA"];_.bPU=_.NN(function(W){var e=_.Ez(W,{isOverlay:!1,isModern:!1}),t=e.captionIconType,b=e.onClick;W=e.ariaLabel;var m=e.ariaPressed,q=e.isOverlay,Q=e.isModern;e=_.zT("button",function(u){_.xs(u,127299)});
var X=_.Be(function(u){_.O9(127299);b==null||b(u);return!1}),I={};
return _.w("ytm-closed-captioning-button",{class:_.ve("ytmClosedCaptioningButtonHost",(I.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return t()===-1&&q()},I.ytmClosedCaptioningButtonIconDisabled=function(){return t()===-1&&!q()},I))},_.w("button",{el:e,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":m,"on:click":X},_.w(_.kD,{icon:function(){var u="";var c=Q()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var v=_.B6().get("hl");c=!v||tdw.includes(v)?c:"SUBTITLES";v=t();switch(v){case -1:case 0:u=c;break;case 1:u=c+"_FILLED";break;default:_.Qw(v)}return u}})))},"$e");
_.bPU.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.UM=function(W){return function(e,t){var b=W||t.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(e,t,{get:function(){var m;return this.$?this.$[b]:(m=_.cG(this))==null?void 0:m.querySelector("#"+b)},
enumerable:!0,configurable:!0})}};_.Li=function(W){W=W===void 0?!1:W;_.ka.call(this);this.pubSub_=new _.uG(W);_.w$(this,this.pubSub_)};
_.QP(_.Li,_.ka);_.Li.prototype.subscribe=function(W,e,t){return this.isDisposed()?0:this.pubSub_.subscribe(W,e,t)};
_.Li.prototype.unsubscribe=function(W,e,t){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,e,t)};
_.Li.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.Li.prototype.publish=function(W,e){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var nCB=function(){_.nb("ypcRedeemFlowStarted")},cn=function(W){_.nb("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},fWQ=function(W,e,t){e&&t&&(W.videos.forEach(function(b){b.videoId===e&&(b.itemId=t)}),W.recommendedVideos.forEach(function(b){b.videoId===e&&(b.itemId=t)}))};var gCS;var TKB;/*

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
*/
_.yQ({_template:function(){if(TKB!==void 0)return TKB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;gCS===void 0&&(gCS=document.createElement("template"));var b=gCS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return TKB=W},
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(W,e){var t=this._resolveSrc(W);t!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||e?this._setLoading(!1):(this._resolvedSrc=t,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 W=this.$.sizedImgDiv.style,e=this.$.placeholder.style;W.backgroundSize=e.backgroundSize=this.sizing;W.backgroundPosition=e.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=e.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.rs(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var Jd1;var xh1;_.yQ({_template:function(){if(xh1!==void 0)return xh1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Jd1===void 0&&(Jd1=document.createElement("template"));var b=Jd1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return xh1=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var e=this.getAttribute("heading"),t=this.getAttribute("aria-label");typeof t==="string"&&t!==e||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var OXl=new _.z("addRendererToItemSectionAction");var MkQ;var vn=function(){return _.O.apply(this,arguments)||this};
_.Z(vn,_.O);vn.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vn.prototype,"rendererBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],vn.prototype,"dismissibleItemBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vn.prototype,"rendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vn.prototype,"data",void 0);_.P([_.h({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],vn);
_.H(vn,"ytd-comment-history-entry-renderer",function(){if(MkQ!==void 0)return MkQ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return MkQ=W},{mode:1});var s2B;_.xD("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.xD("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var G$=function(){return _.O.apply(this,arguments)||this};
_.Z(G$,_.O);_.r=G$.prototype;_.r.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.r.onTap=function(){this.data.recordClickEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.l(W,_.Tr)&&_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})};
_.r.readChanged=function(){var W;_.RH(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.r.dataChanged=function(){this.data&&_.RH(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.r.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.r.getEndpointURL=function(W){return W&&!_.l(W,_.Tr)?this.componentBehavior.computeHref_(W):null};
_.r.getEndpointData=function(W){return W&&!_.l(W,_.Tr)?W:null};
G$.prototype.computeThumbnailSize=G$.prototype.computeThumbnailSize;G$.prototype.dataChanged=G$.prototype.dataChanged;G$.prototype.readChanged=G$.prototype.readChanged;G$.prototype.onKeyUp=G$.prototype.onKeyUp;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],G$.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],G$.prototype,"data",void 0);_.P([_.J({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Y("design:type",Number)],G$.prototype,"thumbnailSize",void 0);_.P([_.wz("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],G$.prototype,"onKeyUp",null);
_.P([_.ul("data.read"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G$.prototype,"readChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G$.prototype,"dataChanged",null);_.P([_.ul("data.highPriorityNotification"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G$.prototype,"computeThumbnailSize",null);
_.P([_.h({is:"ytd-notification-renderer",disableElementRegistration:!0})],G$);
_.H(G$,"ytd-notification-renderer",function(){if(s2B!==void 0)return s2B;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s2B=W},{mode:1});var hqC;var DL=function(){return _.O.apply(this,arguments)||this};
_.Z(DL,_.O);DL.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"}}}};
DL.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],DL.prototype,"data",void 0);_.P([_.h({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],DL);
_.H(DL,"ytd-playlist-show-metadata-renderer",function(){if(hqC!==void 0)return hqC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return hqC=W},{mode:1});var HXl;_.xD("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var SW=function(){return _.O.apply(this,arguments)||this};
_.Z(SW,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],SW.prototype,"data",void 0);_.P([_.h({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],SW);
_.H(SW,"ytd-purchase-item-renderer",function(){if(HXl!==void 0)return HXl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HXl=W},{mode:1});var KLu;var PsQ={};PsQ.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.xD("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Bn=function(){return _.O.apply(this,arguments)||this};
_.Z(Bn,_.O);Bn.prototype.onYtNavigate=function(W){var e=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);e&&(W.stopPropagation(),this.openPopupBehavior.openPopup(e))};
Bn.prototype.onYtNavigate=Bn.prototype.onYtNavigate;_.P([_.y(PsQ.YtSimpleTextSectionBehavior),_.Y("design:type",Object)],Bn.prototype,"ytSimpleTextSectionBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],Bn.prototype,"openPopupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bn.prototype,"data",void 0);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Bn.prototype,"onYtNavigate",null);_.P([_.h({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Bn);
_.H(Bn,"ytd-simple-text-section-renderer",function(){if(KLu!==void 0)return KLu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KLu=W},{mode:1});var VkB;_.xD("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var on=function(){return _.O.apply(this,arguments)||this};
_.Z(on,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],on.prototype,"data",void 0);_.P([_.h({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],on);
_.H(on,"ytd-unlimited-page-feature-info-renderer",function(){if(VkB!==void 0)return VkB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return VkB=W},{mode:1});var iXU;var YOg;var lx=function(){return _.O.apply(this,arguments)||this};
_.Z(lx,_.O);lx.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.rd(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
lx.prototype.dataChanged=lx.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lx.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lx.prototype,"dataChanged",null);_.P([_.h({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],lx);
_.H(lx,"ytd-post-redemption-section-renderer",function(){if(YOg!==void 0)return YOg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YOg=W},{mode:1});var zqB;var ZL=function(){return _.O.apply(this,arguments)||this};
_.Z(ZL,_.O);ZL.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ZL.prototype,"data",void 0);_.P([_.h({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ZL);
_.H(ZL,"ytd-ypc-post-redemption-renderer",function(){if(zqB!==void 0)return zqB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zqB=W},{mode:1});_.xD("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var $Y=function(){var W=_.O.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.Z($Y,_.O);_.r=$Y.prototype;_.r.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.r.created=function(){this.riskService=new _.mxK;this.loadPaymentThenable=_.qKL(_.Ot("YPC_MB_URL"))};
_.r.ready=function(){var W=this;this.code.addEventListener("keypress",function(e){W.onCodeInputKeypress(e)})};
_.r.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(e){e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,t.type==="attributes"&&t.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.r.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.r.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.r.onRedeemButtonTap=function(W){W.stopPropagation();nCB();this.redeemCode()};
_.r.redeemCode=function(){var W=this;this.isLoading=!0;var e=this.riskService.init();_.pV([e,this.loadPaymentThenable]).then(function(){var t=W.data.redeemButton.buttonRenderer.serviceEndpoint,b=_.rVL(),m=payments.business.integration.ClientTokenFactory.createClientToken(_.l(t,_.c2P).countryCode,b);b={c:W.code.value.trim(),rd:window.btoa(b),ctk:m};t&&_.ee().resolve(_.tQ).resolveCommand(t,{form:Object.assign({},b,{element:W.hostElement})})},function(){W.showGenericError();
cn("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.st(Error("Vl"))})};
_.r.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var e,t;this.errorMessage=(e=W.detail)==null?void 0:(t=e.data)==null?void 0:t.errorMessage;var b,m;this.postRedemptionRenderer=(b=W.detail)==null?void 0:(m=b.data)==null?void 0:m.renderer;var q,Q;if(W=(q=W.detail)==null?void 0:(Q=q.data)==null?void 0:Q.redirectEndpoint)this.isLoading=!0,_.q2(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?cn("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.nb("ypcRedeemFlowSucceeded")};
_.r.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.zq(W);cn("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.r.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.r.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();cn("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();cn("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.nb("ypcRedeemFlowCancelled")}};
_.r.onInput=function(){var W=this;_.HG(this,"onInput",function(){var e=W.code.value.trim();W.redeemButtonDisabled=e.length<W.MIN_CODE_LENGTH||e.length>W.MAX_CODE_LENGTH},200)};
_.r.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(nCB(),this.redeemCode())};
_.r.computeImageUrl=function(W){return W?_.rd(W.thumbnails,600):null};
_.r.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
$Y.prototype.onInvokeInstrumentManagerActionError=$Y.prototype.onInvokeInstrumentManagerActionError;$Y.prototype.onInvokeInstrumentManagerActionCompleted=$Y.prototype.onInvokeInstrumentManagerActionCompleted;$Y.prototype.onYtServiceRequestError=$Y.prototype.onYtServiceRequestError;$Y.prototype.onYtServiceRequestCompleted=$Y.prototype.onYtServiceRequestCompleted;$Y.prototype.dataChanged=$Y.prototype.dataChanged;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$Y.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$Y.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Boolean)],$Y.prototype,"redeemButtonDisabled",void 0);
_.P([_.J(),_.Y("design:type",Object)],$Y.prototype,"errorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],$Y.prototype,"postRedemptionRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],$Y.prototype,"observer",void 0);_.P([_.vG("#code"),_.Y("design:type",HTMLInputElement)],$Y.prototype,"code",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$Y.prototype,"dataChanged",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$Y.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$Y.prototype,"onYtServiceRequestError",null);
_.P([_.wz("yt-invoke-instrument-manager-action-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$Y.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.P([_.wz("yt-invoke-instrument-manager-action-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$Y.prototype,"onInvokeInstrumentManagerActionError",null);_.P([_.h({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],$Y);
_.H($Y,"ytd-redeem-code-renderer",function(){if(iXU!==void 0)return iXU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return iXU=W},{mode:1});var Uhw;_.xD("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var kY=function(){var W=_.O.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.Z(kY,_.O);_.r=kY.prototype;_.r.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}}}}}};
_.r.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"};
_.r.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.r.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.sT("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.r.onYtServiceRequestCompleted=function(W){var e;if((e=W.detail.data)==null?0:e.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var t;if((t=W.detail.data)==null?0:t.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.r.computeEmailHref=function(W){return"mailto:"+W};
_.r.computeSafeUrl=function(W){if(W)return _.lF(W)};
_.r.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$19144_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.ee().resolve(_.tQ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.r.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Ec.Object.defineProperties(kY.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 W,e;return!((W=this.data)==null||!W.primaryLinks)&&!((e=this.data)==null?0:e.links)&&this.data.primaryLinks.every(function(t){return t.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.primaryLinks)&&!((e=this.data)==null?0:e.links)&&!this.shouldShowNewLinks}}});
kY.prototype.onYtServiceRequestCompleted=kY.prototype.onYtServiceRequestCompleted;kY.prototype.dataChanged=kY.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],kY.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.vG("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],kY.prototype,"JSC$19144_captchaTextarea",void 0);_.P([_.J(),_.Y("design:type",Object)],kY.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],kY.prototype,"businessEmailDisplayState",void 0);_.P([_.J(),_.Y("design:type",String)],kY.prototype,"businessEmail",void 0);_.P([_.J(),_.Y("design:type",String)],kY.prototype,"businessEmailErrorMessage",void 0);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kY.prototype,"hideDetailsSection",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kY.prototype,"dataChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kY.prototype,"shouldShowNewLinks",null);_.P([_.T("data","shouldShowLinks"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kY.prototype,"shouldShowLegacyLinks",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kY.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],kY);
_.H(kY,"ytd-channel-about-metadata-renderer",function(){if(Uhw!==void 0)return Uhw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Uhw=W},{mode:1});var LLl;_.xD("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var pI=function(){return _.O.apply(this,arguments)||this};
_.Z(pI,_.O);pI.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pI.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],pI);
_.H(pI,"ytd-channel-featured-content-renderer",function(){if(LLl!==void 0)return LLl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return LLl=W},{mode:1});var ECg;_.xD("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var y4=function(){var W=_.O.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return W};
_.Z(y4,_.O);_.r=y4.prototype;_.r.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.r.computeSource=function(W){return W.secondarySource?_.Ub(W.secondarySource):_.Ub(W.source)};
_.r.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.r.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.r.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.r.computeHasActionButton=function(W){return!!W.actionButton};
_.r.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.r.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.r.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
y4.prototype.dataChanged=y4.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],y4.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],y4.prototype,"imageWidth",void 0);_.P([_.J(),_.Y("design:type",Number)],y4.prototype,"imageHeight",void 0);
_.P([_.J({computed:"computeSecondaryEndpoint(data)"}),_.Y("design:type",Object)],y4.prototype,"secondaryEndpoint",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Y("design:type",Boolean)],y4.prototype,"hasActionButton",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Y("design:type",Boolean)],y4.prototype,"hasBottomSection",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Y("design:type",Boolean)],y4.prototype,"missingSource",void 0);_.P([_.J({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],y4.prototype,"icon",void 0);_.P([_.J({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",String)],y4.prototype,"secondaryIcon",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Y("design:type",String)],y4.prototype,"clarifyStyle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Y("design:type",String)],y4.prototype,"backgroundStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],y4.prototype,"roundContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],y4.prototype,"amsterdamEnabled",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y4.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-clarification-renderer",disableElementRegistration:!0})],y4);
_.H(y4,"ytd-clarification-renderer",function(){if(ECg!==void 0)return ECg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ECg=W},{mode:1});var AdT;var NKg;var jW=function(){var W=_.O.apply(this,arguments)||this;W.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return W};
_.Z(jW,_.O);_.r=jW.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.r.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.r.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.r.computePhoneContact=function(W){var e,t;return(e=W.contacts)==null?void 0:(t=e.find(function(b){var m;return(b==null?void 0:(m=b.icon)==null?void 0:m.iconType)==="PHONE"}))==null?void 0:t.actionText};
_.r.computeSmsContact=function(W){var e,t;return(e=W.contacts)==null?void 0:(t=e.find(function(b){var m;return(b==null?void 0:(m=b.icon)==null?void 0:m.iconType)==="SMS"}))==null?void 0:t.actionText};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jW.prototype,"amsterdamEnabled",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Y("design:type",Boolean)],jW.prototype,"useContacts",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Y("design:type",String)],jW.prototype,"phoneContact",void 0);_.P([_.h({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],jW);
_.H(jW,"ytd-single-action-emergency-support-renderer",function(){if(NKg!==void 0)return NKg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return NKg=W},{mode:1});_.xD("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var CI=function(){var W=_.O.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return W};
_.Z(CI,_.O);CI.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],CI.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],CI.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],CI.prototype,"amsterdamEnabled",void 0);
_.P([_.h({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],CI);
_.H(CI,"ytd-emergency-onebox-renderer",function(){if(AdT!==void 0)return AdT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AdT=W},{mode:1});var dhu;_.xD("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var nI=function(){return _.O.apply(this,arguments)||this};
_.Z(nI,_.O);nI.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nI.prototype,"data",void 0);_.P([_.h({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],nI);
_.H(nI,"ytd-exploratory-results-renderer",function(){if(dhu!==void 0)return dhu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dhu=W},{mode:1});var WRg;_.xD("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var fI=function(){var W=_.O.apply(this,arguments)||this;W.messageData=null;return W};
_.Z(fI,_.O);_.r=fI.prototype;_.r.onServiceRequestCompleted=function(W,e){W=e.actions||[];e=0;for(var t=W.length;e<t;e++){var b=W[e],m=void 0,q=void 0;if((m=_.l(b,_.$i))==null?0:(q=m.item)==null?0:q.messageRenderer)this.messageData=_.l(b,_.$i).item.messageRenderer}};
_.r.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.RH(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.r.computeThumbnailWidth=function(W){return W?126:56};
_.r.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.r.onSubmitTap=function(){var W=this.data,e=this.selectedResponseIndex;W!==void 0&&e!==void 0&&(W=W.responses[e],W.responseData&&_.ee().resolve(_.tQ).resolveCommand(W.responseData,{form:{element:this.hostElement}}))};
_.r.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&_.ee().resolve(_.tQ).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
fI.prototype.onSelectedResponseIndexChange=fI.prototype.onSelectedResponseIndexChange;fI.prototype.dataChanged=fI.prototype.dataChanged;fI.prototype.onServiceRequestCompleted=fI.prototype.onServiceRequestCompleted;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],fI.prototype,"messageData",void 0);
_.P([_.J(),_.Y("design:type",Number)],fI.prototype,"selectedResponseIndex",void 0);_.P([_.vG("#submit-button"),_.Y("design:type",HTMLButtonElement)],fI.prototype,"submitButton",void 0);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],fI.prototype,"onServiceRequestCompleted",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fI.prototype,"dataChanged",null);
_.P([_.ul("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fI.prototype,"onSelectedResponseIndexChange",null);_.P([_.h({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],fI);
_.H(fI,"ytd-feedback-elicitation-single-question-renderer",function(){if(WRg!==void 0)return WRg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WRg=W},{mode:1});var ewC;var gp=function(){return _.O.apply(this,arguments)||this};
_.Z(gp,_.O);gp.prototype.computeThumbnailWidth=function(W){return W?602:428};
gp.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gp.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],gp.prototype,"wide",void 0);_.P([_.h({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],gp);
_.H(gp,"ytd-newspaper-hero-video-renderer",function(){if(ewC!==void 0)return ewC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ewC=W},{mode:1});var tDQ;var T$=function(){return _.O.apply(this,arguments)||this};
_.Z(T$,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],T$.prototype,"rendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],T$.prototype,"data",void 0);_.P([_.h({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],T$);
_.H(T$,"ytd-newspaper-mini-video-renderer",function(){if(tDQ!==void 0)return tDQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tDQ=W},{mode:1});var bw$;_.xD("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var J9=function(){return _.O.apply(this,arguments)||this};
_.Z(J9,_.O);J9.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"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],J9.prototype,"data",void 0);_.P([_.h({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],J9);
_.H(J9,"ytd-newspaper-renderer",function(){if(bw$!==void 0)return bw$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bw$=W},{mode:1});var ml9;_.xD("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var xY=function(){var W=_.O.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.Z(xY,_.O);_.r=xY.prototype;_.r.attached=function(){_.ee();var W;(W=_.ee().resolve(_.Wi(_.VM)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.r.detached=function(){var W;(W=_.ee().resolve(_.Wi(_.VM)))!=null&&(W.playlistVideoListElement=void 0);W=_.ee().resolve(_.Wi(_.W$));_.S("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.r.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"}}}}}};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.r.dataChanged=function(){var W=_.ee().resolve(_.Wi(_.W$));if(_.S("web_enable_voting_animation")&&this.data&&W){var e=_.rz(this.hostElement).querySelector("#contents");e&&(W.parentElem=e);W.addVideos(this.data.contents)}_.U4h(this.ytReorderableBehavior)};
_.r.onRendererstamperFinished=function(){this.canReorder&&_.LNy(this.ytReorderableBehavior,_.rz(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.r.onPlaylistReloading=function(){this.isReloading=!0};
_.r.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var e=W.detail;W=this.data.contents.findIndex(function(m){var q;return((q=m.playlistVideoRenderer)==null?void 0:q.videoId)===e.videoId});
if(!(W<0)&&e.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",e.setVideoId),_.S("web_enable_voting_animation"))){var t;if(W=_.l((t=this.data.contents[W].playlistVideoRenderer)==null?void 0:t.engagementBar,_.ygL)){var b;(b=W.actions)==null||b.forEach(function(m){if(m=_.l(m,_.jOz))m.itemId=e.setVideoId})}(t=_.ee().resolve(_.Wi(_.W$)))&&fWQ(t,e.videoId,e.setVideoId)}}};
_.r.computeContentsClass=function(W){return W?"reloading":""};
_.r.computeIsSortable=function(W,e){return W&&e>0&&!this.isSegment&&!_.S("shorts_in_playlists_web")};
_.r.computeIsEditable=function(W){return W};
_.r.computeCanReorder=function(W){return W};
_.r.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.l(W,_.$7o).setVideoIds;for(var e=this.data.contents.length-1;e>=0;){var t=this.data.contents[e].playlistVideoRenderer;t&&t.setVideoId&&W.includes(t.setVideoId)&&this.splice("data.contents",e,1);e--}_.RT(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.r.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.zq(String(W+1)))};
_.r.handleDrop=function(W){W=W.currDragItem;var e=_.HZ(W.parentNode.childNodes,W),t=this.data.contents.splice(Number(_.Ub(W.data.index))-1,1)[0];this.data.contents.splice(e,0,t);e=e?this.get("contents."+(e-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,e);this.ytComponentBehavior.resolveCommand(W)};
_.r.buildReorderServiceEndpoint=function(W,e){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",e),this.data.onReorderEndpoint):null};
_.r.handleUpdatePlaylistAction=function(W){var e;(W=_.l((e=_.l(W,_.k9k))==null?void 0:e.updatedRenderer,_.P9P))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.r.handleAddRendererToItemSectionAction=function(W){var e,t=(e=_.l(W,OXl))==null?void 0:e.renderer,b;t&&((b=_.l(W,OXl))==null?void 0:b.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,t),W=_.ee().resolve(_.Wi(_.W$)),_.S("web_enable_voting_animation")&&W&&(t&&(e=_.pyQ(t))&&W.recommendedVideos.push({itemId:e,videoId:_.Coz(t),voteCount:_.n89(t),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.r.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.R(W);for(W=W.next();!W.done;W=W.next()){var e=void 0;return!!_.l((e=W.value.playlistVideoRenderer)==null?void 0:e.engagementBar,_.ygL)}return!1};
_.r.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.ee().resolve(_.Wi(_.W$)),_.S("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.r.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var e=W.detail;W=e.toIdx;var t=e.itemId,b=e.newVoteCount,m=e.voteStatus;e=e.hideItem;var q,Q,X=(q=this.data)==null?void 0:(Q=q.contents)==null?void 0:Q.findIndex(function(v){return _.pyQ(v)===t});
if(!(X<0)){q=this.data.contents[X];var I;if((I=q.playlistVideoRenderer)==null?0:I.voteCount)q.playlistVideoRenderer.voteCount=b;var u;if(I=_.l((u=q.playlistVideoRenderer)==null?void 0:u.engagementBar,_.ygL)){var c;(c=I.actions)==null||c.forEach(function(v){(v=_.l(v,_.jOz))&&v.initialState&&(v.initialState.votes=b,v.initialState.status=m)})}this.data.contents.splice(X,1);
e||this.data.contents.splice(W,0,q);this.updateIndices()}}};
xY.prototype.updateVideoData=xY.prototype.updateVideoData;xY.prototype.onAppendContinuationItemsActionFinished=xY.prototype.onAppendContinuationItemsActionFinished;xY.prototype.onUpdateSetVideoId=xY.prototype.onUpdateSetVideoId;xY.prototype.onPlaylistReloading=xY.prototype.onPlaylistReloading;xY.prototype.onRendererstamperFinished=xY.prototype.onRendererstamperFinished;xY.prototype.dataChanged=xY.prototype.dataChanged;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],xY.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],xY.prototype,"ytNextContinuationBehavior",void 0);
_.P([_.y(_.E_P),_.Y("design:type",Object)],xY.prototype,"ytReorderableBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],xY.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xY.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],xY.prototype,"isReloading",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xY.prototype,"isSegment",void 0);_.P([_.J({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Y("design:type",Boolean)],xY.prototype,"isSortable",void 0);_.P([_.J({computed:"computeIsEditable(data.isEditable)"}),_.Y("design:type",Boolean)],xY.prototype,"isEditable",void 0);_.P([_.J({computed:"computeCanReorder(data.canReorder)"}),_.Y("design:type",Boolean)],xY.prototype,"canReorder",void 0);
_.P([_.J({value:101}),_.Y("design:type",Number)],xY.prototype,"scrollMargin",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xY.prototype,"dataChanged",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xY.prototype,"onRendererstamperFinished",null);
_.P([_.wz("yt-playlist-reloading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xY.prototype,"onPlaylistReloading",null);_.P([_.wz("yt-update-set-video-id"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xY.prototype,"onUpdateSetVideoId",null);
_.P([_.wz("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xY.prototype,"onAppendContinuationItemsActionFinished",null);_.P([_.wz("yt-update-video-data-voting-animation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xY.prototype,"updateVideoData",null);_.P([_.h({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],xY);
_.H(xY,"ytd-playlist-video-list-renderer",function(){if(ml9!==void 0)return ml9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ml9=W},{mode:_.Qe("kevlar_poly_si_batch_j047")?1:2});var rWU;var Og=function(){return _.O.apply(this,arguments)||this};
_.Z(Og,_.O);Og.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"}}}}};
Og.prototype.onTextWrapperTap=function(W){var e=this.data&&this.data.navigationEndpoint;e&&!_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.q2(this.hostElement,"yt-navigate",{endpoint:e})};
Og.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.l(W.commandMetadata,_.Cf)&&_.l(W.commandMetadata,_.Cf).fireAutomatically&&_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})};
Og.prototype.dataChanged=Og.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Hl),_.Y("design:type",Object)],Og.prototype,"ytdLockupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Og.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Og.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Og.prototype,"biggerThumbsStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Og.prototype,"leftAligned",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Og.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Og);
_.H(Og,"ytd-movie-renderer",function(){if(rWU!==void 0)return rWU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rWU=W},{mode:1});var qAC;var M0=function(){var W=_.O.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.Z(M0,_.O);M0.prototype.attached=function(){this.pageAttachedTo=_.ee().resolve(_.WS).getCurrentPage();_.q2(this.hostElement,"yt-player-attached",this.player)};
M0.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.q2(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
M0.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.ee().resolve(_.Kn).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
M0.prototype.handleSignalActionPausePlayer=function(){_.bJ().pause()};
M0.prototype.dataChanged=M0.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],M0.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],M0.prototype,"rounded",void 0);_.P([_.vG("#player"),_.Y("design:type",Object)],M0.prototype,"player",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M0.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],M0);
_.H(M0,"ytd-channel-video-player-renderer",function(){if(qAC!==void 0)return qAC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qAC=W},{mode:1});var Rw9;var QYQ;var FR9;var sg=function(){var W=_.O.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.bh(W);W.active=!1;return W};
_.Z(sg,_.O);_.r=sg.prototype;_.r.detached=function(){this.stop()};
_.r.play=function(){var W=this,e,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return W.active=!0,e=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),t=e.videoId||W.data.videoId,b=e.startTimeSeconds||0,m=e.playerParams||null,_.S("kevlar_player_update_killswitch")?_.a(Q,W.playerEl.update({args:{video_id:t,startSeconds:b,player_params:m}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:t,startSeconds:b,player_params:m,autoplay:!0}),Q.jumpTo(2));if(Q.nextAddress!=4)return _.a(Q,W.playerEl.getPlayerPromise(),
4);q=Q.yieldResult;q.unloadModule("annotations_module");q.addEventListener("onStateChange",function(X){W.onPlayerStateChange(X)});
_.u8(Q)})};
_.r.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.q2(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.q2(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.r.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.r.resize=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.playerEl.getPlayerPromise(),2);e=t.yieldResult;e.setSize(NaN,NaN);_.u8(t)})};
_.P([_.J(),_.Y("design:type",Object)],sg.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],sg.prototype,"playing",void 0);_.P([_.J(),_.Y("design:type",Object)],sg.prototype,"playerId",void 0);_.P([_.vG("#player"),_.Y("design:type",Object)],sg.prototype,"playerEl",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],sg);
_.H(sg,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(FR9!==void 0)return FR9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return FR9=W},{mode:1});var XD9;var ICC;var h9=function(){var W=_.O.apply(this,arguments)||this;W.width=0;return W};
_.Z(h9,_.O);_.r=h9.prototype;_.r.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.aH(this,this.onEnded));this.mp4El.addEventListener("error",_.aH(this,this.onError))};
_.r.detached=function(){this.videoEl.removeEventListener("ended",_.aH(this,this.onEnded));this.mp4El.removeEventListener("error",_.aH(this,this.onError))};
_.r.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var e=this.videoEl.play();e?e.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.q2(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.q2(this.hostElement,"yt-video-thumbnail-not-playing")};
_.r.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.r.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.r.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.rd(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.r.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.r.onEnded=function(){this.stop();_.q2(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.r.onError=function(){_.q2(this.hostElement,"yt-video-thumbnail-error")};
_.r.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.r.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
h9.prototype.dataChanged=h9.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],h9.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],h9.prototype,"animatePlaceholderOnEntrance",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],h9.prototype,"autoplay",void 0);_.P([_.J({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Y("design:type",Object)],h9.prototype,"videoThumbnail",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],h9.prototype,"loop",void 0);_.P([_.J(),_.Y("design:type",Boolean)],h9.prototype,"isVideoPlaying",void 0);_.P([_.J(),_.Y("design:type",Object)],h9.prototype,"width",void 0);_.P([_.vG("#mp4"),_.Y("design:type",HTMLElement)],h9.prototype,"mp4El",void 0);_.P([_.vG("#placeholder"),_.Y("design:type",HTMLElement)],h9.prototype,"placeholderEl",void 0);_.P([_.vG("#video"),_.Y("design:type",HTMLVideoElement)],h9.prototype,"videoEl",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h9.prototype,"dataChanged",null);_.P([_.gz({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],h9);
_.H(h9,"yt-video-as-thumbnail-details",function(){if(ICC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;XD9===void 0&&(XD9=document.createElement("template"));var b=XD9;t.call(e,b.content.cloneNode(!0),W.content.firstChild);ICC=W}W=ICC;return W},{mode:2});var Hn=function(){var W=_.O.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.S("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.Z(Hn,_.O);_.r=Hn.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.r.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.r.attached=function(){this.onWindowResized()};
_.r.detached=function(){this.clearTimeouts()};
_.r.onWindowResized=function(){this.updateSize()};
_.r.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.r.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.play()};
_.r.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.stop()};
_.r.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(e){var t=function(){_.rz(W.hostElement).querySelector("#action-button").removeEventListener("animationend",t);_.Tm.cancelJob(b);e();W.transitioningOut=!1};
var b=_.kM(_.Tm,t,1E3);_.rz(W.hostElement).querySelector("#action-button").addEventListener("animationend",t);W.player&&(W.player.playing=!1)})};
_.r.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.r.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.r.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.r.onContentClick=function(W){if(!_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var e;if((e=this.data)==null?0:e.navigationEndpoint){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.navigationEndpoint)}}};
_.r.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.r.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.rz(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.r.setScrimLayer=function(W){var e=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.Ot("HTML_DIR")==="rtl"&&(W=-W);e&&(_.rz(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+e+")")};
_.r.isNarrower=function(){return this.hostElement.clientWidth<Hn.NARROW_VERSION_SIZE};
_.r.getScrimLayerColorStops=function(){var W,e=(W=this.data)==null?void 0:W.scrimColorValues;if(!e)return null;if(e.length===1)return W=_.h8(e[0]),W+" 0%, "+W+" 100%";if(e.length===3){var t=[0,72,98];return e.map(function(b,m){return _.h8(b)+" "+t[m]+"%"}).join(",")}return null};
_.r.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.rd((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.r.onPlaying=function(){this.startVideoTimeout()};
_.r.onEnded=function(){this.rotate()};
_.r.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var e=this.get("data.minPanelDisplayDurationMs");e&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.kM(_.Tm,function(){W.rotate()},e))}};
_.r.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.Tm.cancelJob(this.panelTimeoutJobId);var e=Date.now()-this.panelTimeoutJobStartMs;e=Math.max(0,this.get("data.minPanelDisplayDurationMs")-e);e=Math.max(this.get("data.minVideoPlayDurationMs")||0,e);this.videoTimeoutJobId=_.kM(_.Tm,function(){W.rotate()},e)}};
_.r.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Tm.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Tm.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.r.rotate=function(){this.clearTimeouts();_.q2(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Ec.Object.defineProperties(Hn.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.rz(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.rz(this.hostElement).querySelector("#video")}}});
_.Ec.Object.defineProperties(Hn,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Hn.prototype.onEnded=Hn.prototype.onEnded;Hn.prototype.onPlaying=Hn.prototype.onPlaying;Hn.prototype.dataChanged=Hn.prototype.dataChanged;_.P([_.y(_.xO),_.Y("design:type",Object)],Hn.prototype,"ytdGridStateAwareBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Hn.prototype,"componentBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Hn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.y(_.Juh),_.Y("design:type",Object)],Hn.prototype,"ytBooleanLogicBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Hn.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"disableGridStateAware",void 0);_.P([_.J(),_.Y("design:type",Object)],Hn.prototype,"data",void 0);_.P([_.J({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Hn.prototype,"panelLayout",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"animationEnabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"transitioningOut",void 0);
_.P([_.J({computed:"computeMetadataOrder(data)"}),_.Y("design:type",Boolean)],Hn.prototype,"metadataOrder",void 0);_.P([_.J({computed:"computeByline(data)"}),_.Y("design:type",Object)],Hn.prototype,"byline",void 0);_.P([_.J({computed:"computeAvatarSize(data)"}),_.Y("design:type",Number)],Hn.prototype,"avatarSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"narrow",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"narrower",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"layoutStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hn.prototype,"isCarouselInFeed",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"dataChanged",null);_.P([_.wz("yt-default-promo-panel-renderer-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"onPlaying",null);
_.P([_.wz("yt-default-promo-panel-renderer-ended"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"onEnded",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Hn);
_.H(Hn,"ytd-default-promo-panel-renderer",function(){if(QYQ!==void 0)return QYQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QYQ=W},{mode:1});_.xD("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var KI=function(){var W=_.O.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.Z(KI,_.O);_.r=KI.prototype;_.r.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]]"}}}}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.aH(this,this.onPageTypeChange));this.currentPageSubtype=_.Gi(location.pathname);this.onWindowResized()};
_.r.detached=function(){this.jobId&&_.Tm.cancelJob(this.jobId);this.updateSizeJobId&&_.Tm.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.aH(this,this.onPageTypeChange))};
_.r.onPageTypeChange=function(W){this.active=W.detail.newPageSubtype===this.currentPageSubtype};
_.r.onWindowResized=function(){this.updateSize()};
_.r.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.r.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.r.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Tm.cancelJob(this.jobId);var e=this.getCurrentPanelElement();e&&e.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(e||(e=this.getCurrentPanelElement()),e.playVideo()):this.startRotationJob()};
_.r.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var e=this.getCurrentPaginationElement();if(e){var t=_.rz(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?t.style.transform="translateX(0)":(e=e.offsetWidth+8,t.style.transform="translateX(-"+e*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/e)/2)+1)+"px)")}}};
_.r.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.CU(_.Tm,function(){W.getCurrentPanelElement().updateSize();W.updateSize()}))};
_.r.getCurrentPanelElement=function(){return _.rz(_.rz(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.r.getCurrentPaginationElement=function(){return _.rz(_.rz(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.r.getNavigationClass=function(W,e){return W===e?"selected":""};
_.r.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.r.onNavigationTap=function(W){var e=this,t=W.model.index;t!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){e.setCarouselItem(t)}),this.autorotateActive=!1)};
_.r.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var e=this.getCurrentPaginationElement();e&&(e.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){e.classList.remove("finished");W.setNextCarouselItem()}))}};
_.r.onVideoThumbnailError=function(){this.startRotationJob()};
_.r.onVideoNotPlaying=function(){this.startRotationJob()};
_.r.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.r.startRotationJob=function(){var W=this;_.Tm.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Tm.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.r.computeDotMenuVisible=function(W,e){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!e};
_.r.computePaginationThumbnailsVisible=function(W,e){var t,b;return((b=W==null?void 0:(t=W.paginationThumbnails)==null?void 0:t.length)!=null?b:0)>1&&!e};
_.r.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.r.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.r.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.r.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.r.isNarrower=function(W){return(W!=null?W:0)<Hn.NARROW_VERSION_SIZE};
KI.prototype.activeChanged=KI.prototype.activeChanged;KI.prototype.onVideoNotPlaying=KI.prototype.onVideoNotPlaying;KI.prototype.onVideoThumbnailError=KI.prototype.onVideoThumbnailError;KI.prototype.onVideoThumbnailEnded=KI.prototype.onVideoThumbnailEnded;KI.prototype.onDataChanged=KI.prototype.onDataChanged;_.P([_.y(_.xO),_.Y("design:type",Object)],KI.prototype,"ytdGridStateAwareBehavior",void 0);
_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],KI.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],KI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],KI.prototype,"currentItem",void 0);
_.P([_.J(),_.Y("design:type",Number)],KI.prototype,"currentItemIndex",void 0);_.P([_.J(),_.Y("design:type",Number)],KI.prototype,"rotationTimeout",void 0);_.P([_.J(),_.Y("design:type",Number)],KI.prototype,"loopCount",void 0);_.P([_.J({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],KI.prototype,"paginatorAlignment",void 0);_.P([_.J(),_.Y("design:type",Number)],KI.prototype,"jobId",void 0);
_.P([_.J(),_.Y("design:type",Number)],KI.prototype,"updateSizeJobId",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],KI.prototype,"isCarouselInFeed",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],KI.prototype,"narrower",void 0);_.P([_.J({computed:"computeDotMenuVisible(data, narrower)"}),_.Y("design:type",Object)],KI.prototype,"dotMenuVisible",void 0);
_.P([_.J({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Y("design:type",Object)],KI.prototype,"paginationThumbnailsVisible",void 0);_.P([_.J({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],KI.prototype,"layoutType",void 0);_.P([_.J({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],KI.prototype,"autorotateActive",void 0);_.P([_.J(),_.Y("design:type",Object)],KI.prototype,"active",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],KI.prototype,"disableGridStateAware",void 0);_.P([_.vG("#overlay"),_.Y("design:type",HTMLElement)],KI.prototype,"overlay",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KI.prototype,"onDataChanged",null);
_.P([_.wz("yt-video-thumbnail-ended"),_.wz("yt-default-promo-panel-renderer-rotate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KI.prototype,"onVideoThumbnailEnded",null);_.P([_.wz("yt-video-thumbnail-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KI.prototype,"onVideoThumbnailError",null);
_.P([_.wz("yt-video-thumbnail-not-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KI.prototype,"onVideoNotPlaying",null);_.P([_.BG("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KI.prototype,"activeChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],KI);
_.H(KI,"ytd-carousel-item-renderer",function(){if(Rw9!==void 0)return Rw9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Rw9=W},{mode:2});var aCw;var wD9;var uvQ;var cWw;var Pn=function(){var W=_.O.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.Z(Pn,_.O);Pn.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,e){return!(!W||e)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"correctedText",void 0);_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"correctedQuery",void 0);_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"correctedEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"originalText",void 0);_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"originalQuery",void 0);
_.P([_.J(),_.Y("design:type",Object)],Pn.prototype,"originalEndpoint",void 0);_.P([_.J({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Y("design:type",Boolean)],Pn.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.P([_.gz({is:"yt-search-query-correction",disableElementRegistration:!0})],Pn);
_.H(Pn,"yt-search-query-correction",function(){if(cWw===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;uvQ===void 0&&(uvQ=document.createElement("template"));var b=uvQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);cWw=W}W=cWw;return W},{mode:2});_.xD("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var V4=function(){return _.O.apply(this,arguments)||this};
_.Z(V4,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],V4.prototype,"data",void 0);_.P([_.gz({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],V4);
_.H(V4,"yt-did-you-mean-renderer",function(){if(wD9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;aCw===void 0&&(aCw=document.createElement("template"));var b=aCw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);wD9=W}W=wD9;return W},{mode:2});var vd1;var GO1;_.xD("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ix=function(){return _.O.apply(this,arguments)||this};
_.Z(ix,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ix.prototype,"data",void 0);_.P([_.gz({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ix);
_.H(ix,"yt-including-results-for-renderer",function(){if(GO1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;vd1===void 0&&(vd1=document.createElement("template"));var b=vd1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);GO1=W}W=GO1;return W},{mode:2});var DlT;var SAM;_.xD("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var YY=function(){return _.O.apply(this,arguments)||this};
_.Z(YY,_.O);YY.prototype.computeExtraClasses_=function(W,e){var t="";W&&(t+=" "+W.toLowerCase().replace(/_/g,"-"));e&&(t+=" "+e.toLowerCase().replace(/_/g,"-"));return t};
YY.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.rz(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.rd(W.image.thumbnails,Number.MAX_VALUE)+")")};
YY.prototype.computeUrlImg_=YY.prototype.computeUrlImg_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],YY.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YY.prototype,"computeUrlImg_",null);_.P([_.gz({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],YY);
_.H(YY,"yt-music-pass-feature-info-renderer",function(){if(SAM===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;DlT===void 0&&(DlT=document.createElement("template"));var b=DlT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);SAM=W}W=SAM;return W},{mode:2});var BxT;var odu;_.xD("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var z$=function(){return _.O.apply(this,arguments)||this};
_.Z(z$,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],z$.prototype,"data",void 0);_.P([_.gz({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],z$);
_.H(z$,"yt-no-results-found-showing-results-for-renderer",function(){if(odu===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;BxT===void 0&&(BxT=document.createElement("template"));var b=BxT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);odu=W}W=odu;return W},{mode:2});var lCT;var Zw1;_.xD("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Ug=function(){return _.O.apply(this,arguments)||this};
_.Z(Ug,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ug.prototype,"data",void 0);_.P([_.gz({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Ug);
_.H(Ug,"yt-results-without-quotes-renderer",function(){if(Zw1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;lCT===void 0&&(lCT=document.createElement("template"));var b=lCT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Zw1=W}W=Zw1;return W},{mode:2});var $lw;var kO9;_.xD("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var LI=function(){return _.O.apply(this,arguments)||this};
_.Z(LI,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],LI.prototype,"data",void 0);_.P([_.gz({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],LI);
_.H(LI,"yt-search-no-results-renderer",function(){if(kO9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;$lw===void 0&&($lw=document.createElement("template"));var b=$lw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);kO9=W}W=kO9;return W},{mode:2});var pDw;var yWQ;_.xD("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Eg=function(){return _.O.apply(this,arguments)||this};
_.Z(Eg,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Eg.prototype,"data",void 0);_.P([_.gz({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Eg);
_.H(Eg,"yt-showing-results-for-renderer",function(){if(yWQ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;pDw===void 0&&(pDw=document.createElement("template"));var b=pDw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);yWQ=W}W=yWQ;return W},{mode:2});var jYM;var CWS;var ndQ;var fCB;var A9=function(){var W=_.O.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.Z(A9,_.O);A9.prototype.toggleAnswer_=function(W){var e=_.Er(W);e&&e.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
A9.prototype.toggleAnswer_=A9.prototype.toggleAnswer_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],A9.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A9.prototype,"answerExpanded",void 0);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A9.prototype,"toggleAnswer_",null);
_.P([_.gz({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],A9);
_.H(A9,"yt-generic-faq-question-renderer",function(){if(fCB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ndQ===void 0&&(ndQ=document.createElement("template"));var b=ndQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);fCB=W}W=fCB;return W},{mode:2});_.xD("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var N0=function(){return _.O.apply(this,arguments)||this};
_.Z(N0,_.O);N0.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],N0.prototype,"data",void 0);_.P([_.gz({is:"yt-faq-section-renderer",disableElementRegistration:!0})],N0);
_.H(N0,"yt-faq-section-renderer",function(){if(CWS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;jYM===void 0&&(jYM=document.createElement("template"));var b=jYM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);CWS=W}W=CWS;return W},{mode:2});var gdC;var TxC;_.xD("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var dp=function(){return _.O.apply(this,arguments)||this};
_.Z(dp,_.O);
dp.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dp.prototype,"data",void 0);_.P([_.gz({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],dp);
_.H(dp,"yt-offer-item-expanded-renderer",function(){if(TxC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;gdC===void 0&&(gdC=document.createElement("template"));var b=gdC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);TxC=W}W=TxC;return W},{mode:2});var JW9;var xlQ;_.xD("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Wo=function(){return _.O.apply(this,arguments)||this};
_.Z(Wo,_.O);
Wo.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"}}}}};
Wo.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
Wo.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wo.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Y("design:type",Boolean)],Wo.prototype,"fullWidthMode",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Y("design:type",Boolean)],Wo.prototype,"borderlessMode",void 0);_.P([_.gz({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Wo);
_.H(Wo,"yt-offer-item-renderer",function(){if(xlQ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;JW9===void 0&&(JW9=document.createElement("template"));var b=JW9;t.call(e,b.content.cloneNode(!0),W.content.firstChild);xlQ=W}W=xlQ;return W},{mode:2});var OwE;var MDw;_.xD("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var e4=function(){return _.O.apply(this,arguments)||this};
_.Z(e4,_.O);e4.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
e4.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],e4.prototype,"data",void 0);_.P([_.J({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Y("design:type",String)],e4.prototype,"ariaLevel",void 0);_.P([_.J({value:"heading",reflectToAttribute:!0}),_.Y("design:type",String)],e4.prototype,"role",void 0);
_.P([_.J({value:-1,reflectToAttribute:!0}),_.Y("design:type",Number)],e4.prototype,"tabindex",void 0);_.P([_.gz({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],e4);
_.H(e4,"yt-subscription-product-header-renderer",function(){if(MDw===void 0){var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;OwE===void 0&&(OwE=document.createElement("template"));var b=OwE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MDw=W}W=MDw;return W},{mode:2});var sYT;var hwB;_.xD("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var tu=function(){return _.O.apply(this,arguments)||this};
_.Z(tu,_.O);tu.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:_.OZ("menuRenderer"),events:!0}}};
tu.prototype.onStampFinished_=function(){_.rz(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
tu.prototype.onStampFinished_=tu.prototype.onStampFinished_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tu.prototype,"data",void 0);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tu.prototype,"onStampFinished_",null);
_.P([_.gz({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],tu);
_.H(tu,"yt-subscription-product-renderer",function(){if(hwB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;sYT===void 0&&(sYT=document.createElement("template"));var b=sYT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);hwB=W}W=hwB;return W},{mode:2});var Hw1;var KR$;_.xD("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var bM=function(){return _.O.apply(this,arguments)||this};
_.Z(bM,_.O);bM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bM.prototype.imageScrimColorValuesChanged_=function(){var W,e=(W=this.data)==null?void 0:W.imageScrimColorValues;_.rz(this.hostElement).querySelector("#scrim").style.backgroundColor=e?_.h8(e[0]):"transparent"};
bM.prototype.imageScrimColorValuesChanged_=bM.prototype.imageScrimColorValuesChanged_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],bM.prototype,"data",void 0);
_.P([_.ul("data.imageScrimColorValues"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bM.prototype,"imageScrimColorValuesChanged_",null);_.P([_.gz({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],bM);
_.H(bM,"yt-subscription-product-upsell-offer-renderer",function(){if(KR$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Hw1===void 0&&(Hw1=document.createElement("template"));var b=Hw1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);KR$=W}W=KR$;return W},{mode:2});var PWM;var VDQ;var iwU;var YAM;var zwQ;var Ul$;var mp=function(){return _.O.apply(this,arguments)||this};
_.Z(mp,_.O);mp.prototype.onYtServiceRequestError_=function(W){_.mF(this.hostElement,W.detail.error.message)};
mp.prototype.onYtServiceRequestError_=mp.prototype.onYtServiceRequestError_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mp.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],mp.prototype,"collapsible",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],mp.prototype,"isManageRed",void 0);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mp.prototype,"onYtServiceRequestError_",null);_.P([_.gz({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],mp);
_.H(mp,"yt-single-ypc-offer-renderer",function(){if(Ul$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;zwQ===void 0&&(zwQ=document.createElement("template"));var b=zwQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Ul$=W}W=Ul$;return W},{mode:2});var r4=function(){return _.O.apply(this,arguments)||this};
_.Z(r4,_.O);r4.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],r4.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],r4.prototype,"isManageRed",void 0);_.P([_.gz({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],r4);
_.H(r4,"yt-single-ypc-offer-list-renderer",function(){if(YAM===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;iwU===void 0&&(iwU=document.createElement("template"));var b=iwU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);YAM=W}W=YAM;return W},{mode:2});var LRl;var EdS;_.xD("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var qj=function(){return _.O.apply(this,arguments)||this};
_.Z(qj,_.O);qj.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qj.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],qj.prototype,"isManageRed",void 0);_.P([_.gz({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],qj);
_.H(qj,"yt-ypc-offers-list-renderer",function(){if(EdS===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;LRl===void 0&&(LRl=document.createElement("template"));var b=LRl;t.call(e,b.content.cloneNode(!0),W.content.firstChild);EdS=W}W=EdS;return W},{mode:2});_.xD("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Rl=function(){return _.O.apply(this,arguments)||this};
_.Z(Rl,_.O);
Rl.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Rl.prototype,"data",void 0);_.P([_.gz({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Rl);
_.H(Rl,"yt-unlimited-manage-subscription-page-renderer",function(){if(VDQ===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;PWM===void 0&&(PWM=document.createElement("template"));var b=PWM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);VDQ=W}W=VDQ;return W},{mode:2});var AWC;var Nxg;var QL=function(){return _.O.apply(this,arguments)||this};
_.Z(QL,_.O);_.r=QL.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.r.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.r.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.r.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.r.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
QL.prototype.dataChanged_=QL.prototype.dataChanged_;_.P([_.y(_.ZJ),_.Y("design:type",Object)],QL.prototype,"ironA11yKeysBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],QL.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],QL.prototype,"offersVisible_",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QL.prototype,"dataChanged_",null);_.P([_.gz({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],QL);
_.H(QL,"yt-collapsible-ypc-offer-renderer",function(){if(Nxg===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;AWC===void 0&&(AWC=document.createElement("template"));var b=AWC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Nxg=W}W=Nxg;return W},{mode:2});var dlu;var WdS;_.xD("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var FG=function(){return _.O.apply(this,arguments)||this};
_.Z(FG,_.O);_.r=FG.prototype;_.r.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.r.dataChanged_=function(){if(this.data.backgroundImage){var W=_.rd(this.data.backgroundImage.thumbnails,screen.width),e=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=e?"linear-gradient(180deg, "+e+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.CT(this.data.gtmId,_.Ot("GL",""))}};
_.r.onYtServiceRequestError_=function(W){_.mF(this.hostElement,W.detail.error.message)};
_.r.getScrimLayerColorStops_=function(){var W,e,t=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(e=W.unlimitedHeaderV2Data)==null?void 0:e.scrimLayerColors;if(!t)return null;var b=100/t.length;return t.map(function(m,q){q*=b;return _.h8(m)+" "+q+"%"}).join(",")};
_.r.computeLogoWithPadding=function(W){var e,t,b;return(W=(e=W.unlimitedLogoImage)==null?void 0:(t=e.thumbnails)==null?void 0:(b=t[0])==null?void 0:b.height)&&W%31===0?!0:!1};
FG.prototype.onYtServiceRequestError_=FG.prototype.onYtServiceRequestError_;FG.prototype.dataChanged_=FG.prototype.dataChanged_;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.P([_.J({computed:"computeLogoWithPadding(data)"}),_.Y("design:type",Boolean)],FG.prototype,"logoWithPadding",void 0);
_.P([_.J(),_.Y("design:type",Object)],FG.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FG.prototype,"dataChanged_",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FG.prototype,"onYtServiceRequestError_",null);_.P([_.gz({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],FG);
_.H(FG,"yt-unlimited-page-header-renderer",function(){if(WdS===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;dlu===void 0&&(dlu=document.createElement("template"));var b=dlu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);WdS=W}W=WdS;return W},{mode:2});var eRu;var tyl;_.xD("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var XG=function(){return _.O.apply(this,arguments)||this};
_.Z(XG,_.O);XG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],XG.prototype,"data",void 0);_.P([_.gz({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],XG);
_.H(XG,"yt-unlimited-user-notification-renderer",function(){if(tyl===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;eRu===void 0&&(eRu=document.createElement("template"));var b=eRu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);tyl=W}W=tyl;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ue$=_.NN(function(W){var e=_.Ez(W,{numberOfChips:5}).numberOfChips;return _.w("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.w(_.lV,{each:function(){return Array(e==null?void 0:e())}},function(){return _.w("div",{class:"ytGhostChipShelfChip"})}))},"mg");_.cQC=_.NN(function(W){var e=_.wN(),t=_.ee().resolve(_.L4);_.jm(function(){requestAnimationFrame(function(){var m;(m=e.lottieEl)==null||m.addEventListener("DOMLoaded",function(){var q;(q=W.onLottieLoaded)==null||q.call(W)})})});
var b={};return _.w("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var m;return((m=W.data)==null?void 0:m.call(W).targetId)||""}},_.w(_.G2,{className:_.ve((b.ytChatLoadingViewModelRtl=t==="rtl",b)),
animationName:"YOUCHAT_LOADER",data:function(){var m;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((m=W.data)==null?void 0:m.call(W).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:e}))},"ng");
}catch(e){_._DumpException(e)}
try{
var JGg,xY1,OPl,Mdw,sGS,he$,HP1,P8B,AGC,Wr,EP$,YdB,Lk$,UYC,zeg,iPU,N9$,dYQ,W_$,eP9,e7,tHC,b81,qEg,mA,mLl,rH,tR,qT,rDu,bu,RPS,QDU,F_T,XKl,IRM,aRU,uU9,DL1,oJT,lR$,Z8M,kaS,yDC,CNg,nJS,fRl,gJM,JDT,xLC,O8Q,MHu,sDS,hPw,H8E,PNT,zPT,YEw,VHg,ULl,i8T,L_9,dLS,N6B,EJQ,AD$,QG,WE9,eFT,b3Q,FEu,XXC,IAC,aAB,wXQ,uzg,cEE,val,GgQ,DcM,B$g,oaC,lAC,qJl;
_.N1=function(W){var e=new _.o_("Error accessing DB");return _.CwG().then(function(t){return new Promise(function(b,m){try{var q=t.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);q.onsuccess=function(){var Q=q.result;b(Q?Q.value:null)};
q.onerror=function(){e.params={key:W,source:"onerror"};m(e)}}catch(Q){e.params={key:W,
thrownError:String(Q)},m(e)}})},function(){return null})};
_.T9B=function(W,e){var t=_.ceS(e);t!=="javascript:"&&t!=="data:"&&W.setAttribute("href",e)};
JGg=function(W,e){return _.I1(W.entities,"flowStateEntity",e)};
xY1=function(W){return _.Ms(W,function(e){return e.languageCode==="en"})};
OPl=function(W){var e=d1;if(_.iFT(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var t=_.Ms(_.LsD(W),function(b){return b.displayName===e});
W.setOption("captions","track",t)}};
Mdw=function(W){if(!W)return 0;var e=W.getPresentingPlayerType(),t=W.getVideoData();return t&&t.isLive?(W=W.getProgressState(e),W.seekableEnd-W.seekableStart):W.getDuration(e)};
sGS=function(W,e){for(var t=_.R(Object.keys(W)),b=t.next();!b.done;b=t.next())if(b=b.value,W[b]!==e[b])return!1;return!0};
he$=function(){return document.getElementById("player-control-overlay")};
HP1=function(W){W!==-1&&!_.S("player_controls_log_creation_killswitch")&&he$()&&(_.Tv("pcu_cs",W),_.Tv("pcu_ce"))};
P8B=function(W){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(W.subscribeButton?[W.subscribeButton,W.channelAccess]:[W.channelAccess]).map(function(e){return _.w("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz--button"},KkS(e)))}))};
_.VdC=function(W){var e=W.data;W=W.hideDivider;var t={};t=(t["yt-profile-identity-info-view-model-wiz__frame"]=!0,t["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!e.channelBanner,t);t={class:_.DT(t)};var b,m={imageBannerViewModel:{image:(b=e.channelBanner)==null?void 0:b.image,style:"IMAGE_BANNER_STYLE_INSET"}};b=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},e.channelBanner?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
KkS(m,{imageBannerViewModel:{isPositionRelative:!0}})):null);m=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},KkS(e.avatar));var q;var Q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},e.channelDisplayName),e.verifiedOrOacBadge?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.w(_.A_,{data:{thumbnails:[{url:(q=e.verifiedOrOacBadge)==null?void 0:q.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Q,KkS(e.threeDotMenu));Q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},e.channelHandle),e.channelPronouns&&e.channelHandle?_.w("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.w("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},e.channelPronouns)),_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},e.leftOfBulletInfo),e.leftOfBulletInfo&&e.rightOfBulletInfo?_.w("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},e.rightOfBulletInfo)));q=_.w("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},q,Q);return _.w("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.w("div",t,b,_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},m,q),e.channelDescription?_.w("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},e.channelDescription):
null,P8B(e),W?null:_.w("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
AGC=function(W,e){var t=_.LD(W,{}),b=iPU("top",e),m=iPU("bottom",e),q=iPU("left",e),Q=iPU("right",e);return _.$D({top:function(){return Wr(t().position,b)},
bottom:function(){return Wr(t().position,m)},
left:function(){return Wr(t().position,q)},
right:function(){return Wr(t().position,Q)},
position:function(){return Wr(t().positionType,YdB)},
height:function(){return Wr(t().height,e7)},
width:function(){return Wr(t().width,e7)},
"min-width":function(){return Wr(t().minWidth,e7)},
"min-height":function(){return Wr(t().minHeight,e7)},
"max-width":function(){return Wr(t().maxWidth,e7)},
"max-height":function(){return Wr(t().maxHeight,e7)},
"aspect-ratio":function(){return Wr(t().aspectRatio,String)},
"margin-top":function(){return Wr(t().margin,b)},
"margin-bottom":function(){return Wr(t().margin,m)},
"margin-left":function(){return Wr(t().margin,q)},
"margin-right":function(){return Wr(t().margin,Q)},
"padding-top":function(){return Wr(t().padding,b)},
"padding-bottom":function(){return Wr(t().padding,m)},
"padding-left":function(){return Wr(t().padding,q)},
"padding-right":function(){return Wr(t().padding,Q)},
"flex-direction":function(){return Wr(t().flexDirection,zeg)},
"justify-content":function(){return Wr(t().justifyContent,UYC)},
"align-items":function(){return Wr(t().alignItems,Lk$)},
"flex-grow":function(){return Wr(t().flexGrow,String)},
"flex-shrink":function(){return Wr(t().flexShrink,String)},
"flex-basis":function(){return Wr(t().flexBasis,e7)},
"align-self":function(){return Wr(t().alignSelf,Lk$)},
"flex-wrap":function(){return Wr(t().flexWrap,EP$)},
"align-content":function(){return Wr(t().alignContent,Lk$)}})};
Wr=function(W,e){return W!==void 0?e(W):void 0};
EP$=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
YdB=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Lk$=function(W){switch(W){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"}};
UYC=function(W){switch(W){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"}};
zeg=function(W){switch(W){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"}};
iPU=function(W,e){var t=e==="rtl";switch(W){case "top":var b=N9$;break;case "bottom":b=dYQ;break;case "left":b=W_$;break;default:b=eP9}return function(m){return Wr(b(m,t),e7)}};
N9$=function(W){var e=W.top;var t=W.vertical;W=W.all;var b;return(b=e!=null?e:t)!=null?b:W};
dYQ=function(W){var e=W.bottom;var t=W.vertical;W=W.all;var b;return(b=e!=null?e:t)!=null?b:W};
W_$=function(W,e){var t=W.left;var b=W.end;var m=W.start;var q=W.horizontal;W=W.all;var Q,X;return(X=(Q=t!=null?t:e?b:m)!=null?Q:q)!=null?X:W};
eP9=function(W,e){var t=W.right;var b=W.end;var m=W.start;var q=W.horizontal;W=W.all;var Q,X;return(X=(Q=t!=null?t:e?m:b)!=null?Q:q)!=null?X:W};
e7=function(W){var e=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return e+"px";case "YPC_DIMENSION_UNIT_FRACTION":return e+"%";default:return""+e}};
tHC=function(W){switch(W){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"}};
b81=function(W){var e=W!=null?W:{};W=e.fontRole;var t=e.fontSize;e=e.fontWeight;if(W!==null&&t!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(t){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(t){case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return e===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(t){case "YPC_FONT_SIZE_XL":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return e==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
qEg=function(W,e,t){function b(c){return Object.values(c).map(function(v){var D=v.productId;v=v.pricingOptionIndex;return tR(m(D).pricingOptions,v).pricingOptionId})}
function m(c){return X().get(c)}
function q(c){c=b(c);t(c)}
var Q=bu([W,e],function(c,v){var D=c==null?void 0:c.selectedPricingOptions;c={};var B=!0;if(D&&v.length)for(var k=_.R(v),n=k.next();!n.done;n=k.next()){n=n.value;var f=mLl(n.pricingOptions,function(U){a:{U=U.pricingOptionId;for(var V=_.R(D),L=V.next();!L.done;L=V.next())if(L.value===U){U=!0;break a}U=!1}return U});
if(f>=0){B=!1;var M=tR(n.pricingOptions,f),K=void 0;c[n.groupId]={productId:n.productId,pricingOptionIndex:f,pricingGroupAttributes:(K=M)==null?void 0:K.pricingGroupAttributes}}}B&&v.length&&(B=tR(v[0].pricingOptions,0),c[v[0].groupId]={productId:v[0].productId,pricingOptionIndex:0,pricingGroupAttributes:B==null?void 0:B.pricingGroupAttributes});return c}),X=bu([e],function(c){return new Map(c.map(function(v){return[v.productId,
v]}))}),I=bu([e],function(c){var v=new Map;
c=_.R(c);for(var D=c.next();!D.done;D=c.next()){var B=D.value;D=B.groupId;var k=B.productId;B=_.R(mA(B.pricingOptions));for(var n=B.next();!n.done;n=B.next()){var f=_.R(n.value);n=f.next().value;f=f.next().value;v.set(f.pricingOptionId,{groupId:D,productId:k,index:n,pricingOption:f,pricingGroupAttributes:f.pricingGroupAttributes})}}return v}),u=bu([e],function(c){var v=new Map;
c=_.R(c);for(var D=c.next();!D.done;D=c.next()){var B=D.value;D=B.groupId;var k=B.productId,n=void 0;B=_.R(mA((n=B.pricingGroups)!=null?n:[]));for(n=B.next();!n.done;n=B.next()){var f=_.R(n.value);n=f.next().value;f=f.next().value;v.set(f.pricingGroupId,{groupId:D,productId:k,index:n,pricingGroup:f,pricingGroupAttributes:f.pricingGroupAttributes})}}return v});
return{getProductById:m,isProductSelected:function(c){var v=m(c);if(!v)return!1;var D;return((D=Q()[v.groupId])==null?void 0:D.productId)===c},
getSelectedPricingOptions:function(){return Object.values(Q()).map(function(c){var v=c.productId;c=c.pricingOptionIndex;return tR(m(v).pricingOptions,c)})},
getSelectedPricingGroupAttributesByGroupId:function(c){var v;return(c=(v=Q()[c])==null?void 0:v.pricingGroupAttributes)?Array.from(c):void 0},
getSelectedProductByGroupId:function(c){var v;return(c=(v=Q()[c])==null?void 0:v.productId)?m(c):void 0},
onProductSelected:function(c){var v=m(c);if(v){var D=Q(),B;if(((B=D[v.groupId])==null?void 0:B.productId)!==c){var k,n;B=(n=(k=D[v.groupId])==null?void 0:k.pricingOptionIndex)!=null?n:0;rH(v.pricingOptions)<=B&&(B=0);k=tR(v.pricingOptions,B);var f;n={};q(Object.assign({},D,(n[v.groupId]={productId:c,pricingOptionIndex:B,pricingGroupAttributes:(f=k==null?void 0:k.pricingGroupAttributes)!=null?f:[]},n)))}}},
onPricingOptionSelected:function(c){var v=I().get(c);if(v){c=v.groupId;var D=v.productId;v=v.index;var B=Q(),k,n;if(((k=B[c])==null?void 0:k.productId)!==D||((n=B[c])==null?void 0:n.pricingOptionIndex)!==v){var f,M;k={};q(Object.assign({},B,(k[c]={productId:D,pricingOptionIndex:v,pricingGroupAttributes:(M=(f=B[c])==null?void 0:f.pricingGroupAttributes)!=null?M:[]},k)))}}},
onPricingGroupSelected:function(c){var v=u().get(c);if(v){c=v.groupId;var D=v.productId,B=v.pricingGroup.pricingGroupAttributes,k=m(D);if(k){v=Q();var n=v[c].pricingGroupAttributes,f;if(((f=v[c])==null?void 0:f.productId)!==D||!qT(rDu(n,rH(B)),B)){f=Array.from(B);for(B=rH(B);B<rH(n);B++){var M="",K=!1,U=Array.from(f);U.push(tR(n,B));for(var V=_.R(k.pricingGroups),L=V.next();!L.done;L=V.next())if(L=L.value,qT(L.pricingGroupAttributes,U)){f.push(tR(n,B));K=!0;break}else M===""&&rH(L.pricingGroupAttributes)===
U.length&&qT(rDu(L.pricingGroupAttributes,f.length),f)&&(M=tR(L.pricingGroupAttributes,B));K||f.push(M)}M=v[c].pricingOptionIndex;B=[];K=new Map;U=0;k=_.R(mA(k.pricingOptions));for(V=k.next();!V.done;V=k.next())L=_.R(V.value),V=L.next().value,L=L.next().value,qT(L.pricingGroupAttributes,f)&&B.push(V),qT(L.pricingGroupAttributes,n)&&K.set(V,U++);B.length===0?n=0:(n=K.get(M),n=n!==void 0&&n<B.length?B[n]:B[0]);k={};q(Object.assign({},v,(k[c]={productId:D,pricingOptionIndex:n,pricingGroupAttributes:f},
k)))}}}},
onClearGroupSelected:function(c){var v=Q();v[c]&&(v=Object.fromEntries(Object.entries(v).filter(function(D){return _.R(D).next().value!==c})),q(v))}}};
mA=function(W){return function t(){var b,m,q,Q,X;return _.X89(t,function(I){switch(I.nextAddress){case 1:_.IG(I,2),b=0,m=_.R(W),q=m.next();case 4:if(q.done){I.jumpTo(2);break}Q=q.value;X=_.Ix9;return _.a(I,[b++,Q],7);case 7:X(I.yieldResult);q=m.next();I.jumpTo(4);break;case 2:_.FY(I),_.aG(I,0)}})}()};
mLl=function(W,e){W=_.R(mA(W));for(var t=W.next();!t.done;t=W.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;if(e(b))return t}return-1};
rH=function(W){var e=0;for(W=W[Symbol.iterator]();!W.next().done;)++e;return e};
tR=function(W,e){W=_.R(mA(W));for(var t=W.next();!t.done;t=W.next()){var b=_.R(t.value);t=b.next().value;b=b.next().value;if(t===e)return b}};
qT=function(W,e){if(!W&&!e)return!0;if(!W||!e)return!1;W=Array.from(W);e=Array.from(e);if(W.length!==e.length)return!1;for(var t=0;t<W.length;t++)if(W[t]!==e[t])return!1;return!0};
rDu=function(W,e){e=e===void 0?Infinity:e;var t=[];W=_.R(mA(W));for(var b=W.next();!b.done;b=W.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;if(b>=e)break;b>=0&&t.push(m)}return t};
bu=function(W,e){var t,b;return function(){for(var m=W.map(function(Q){return Q()}),q=0;q<m.length;q++)if(!t||m[q]!==t[q]){t=m;
b=e.apply(null,_.kP(m));break}return b}};
RPS=function(W,e,t){var b=[];W=_.R(W);for(var m=W.next();!m.done;m=W.next()){m=m.value;var q=void 0;((q=e)==null?0:q.length)&&!qT(m.pricingGroupAttributes,e)||b.push({pricingOption:m,isSelected:t.includes(m.pricingOptionId)})}return b};
QDU=function(W,e){return _.I1(W.entities,"pdpStateEntity",e)};
F_T=function(W){var e,t;return!!(W.productId&&W.groupId&&((e=W.pricingOptions)==null?0:e.length)&&W.pricingOptions.every(function(b){return b.pricingOptionId})&&((t=W.pricingGroups)==null||!t.length||Array.isArray(W.pricingGroups)&&W.pricingGroups.every(function(b){return b.pricingGroupId&&b.pricingGroupAttributes&&b.pricingGroupAttributes.length>0})))};
XKl=function(W,e,t){return qEg(W,bu([e],function(b){return b.filter(F_T)}),t)};
IRM=function(W,e){return e.length===0?[W]:[W.slice(0,e[0]),W.slice(e[0])].filter(function(t){return t.length>0})};
aRU=function(W){switch(W){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""}};
uU9=function(W,e,t,b){b=Object.assign({},b);_.gA(b,wKw,{selectedOptionId:W,primaryButtonOverride:t});_.Yt().dispatch(_.SX("flowStateEntity",e,b))};
_.GaT=function(){if(!cDB){var W=_.R(_.up(new Map,void 0,"UJImUe"));cDB=W.next().value;vJ$=W.next().value}return cDB};
DL1=function(W){if(W)return _.GaT()().get(W)};
_.SEB=function(W,e){if(W&&e){var t=_.GaT();t().set(W,e);W=t();vJ$(new Map(W))}};
_.B6C=function(W){return{onSubmit:function(){var e;(e=DL1(W()))==null||e.onSubmit()},
isValid:function(){var e=DL1(W());return e?e.isValid():!0},
isSubmitting:function(){var e,t;return!!((e=DL1(W()))==null?0:(t=e.isSubmitting)==null?0:t.call(e))}}};
oJT=function(W,e){return _.I1(W.entities,"contextNoteFeedEntityPayload",e)};
lR$=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
Z8M=function(W){return[W.syncStep,W.asyncStep].filter(function(e){return e!==void 0})};
kaS=function(W){var e,t,b;if(W=(e=W.structuredContextNoteFormSchema)==null?void 0:(t=e.fieldSchemas)==null?void 0:(b=t.noteBody)==null?void 0:b.validationSchema)for(e=_.R(Z8M(W)),t=e.next();!t.done;t=e.next()){t=t.value.rules;if(!t)break;t=_.R(t);for(t=t.next();!t.done;t=t.next())return _.l(t.value,_.$L$)}};
yDC=function(W){if(W){W=_.R(Z8M(W));for(var e=W.next();!e.done;e=W.next()){e=e.value.rules;if(!e)break;e=_.R(e);for(e=e.next();!e.done;e=e.next())return _.l(e.value,pKE)}}};
CNg=function(W){if(W){W=_.R(Z8M(W));for(var e=W.next();!e.done;e=W.next()){e=e.value.rules;if(!e)break;e=_.R(e);for(e=e.next();!e.done;e=e.next())return _.l(e.value,jDl)}}};
nJS=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var e=_.Ya(W)}catch(t){return!1}if(e.toString()!==W)return!1;W=e.JSC$8077_domain_.split(".");return W.length>1&&W.every(function(t){return!!t})};
fRl=function(W,e,t,b){var m;b=(m=b.structuredContextNoteData)==null?void 0:m.createCommentEndpoint;if(m=_.l(b,_.khe))return m.commentText=_.zq(W),m.videoPositionMention=e,m.sources=t,b};
gJM=function(W){return W==null?void 0:W.stringValue};
JDT=function(W,e,t){W=W.map(function(b,m){return{listItemViewModel:{title:b.title,subtitle:b.subtitle,leadingImage:b.leadingImage,trailingImage:m===e?T6M:void 0,rendererContext:{commandContext:{onTap:b.onTap}}}}});
return Object.assign({},t&&{header:{panelHeaderViewModel:{title:t}}},{content:{listViewModel:{listItems:W}}})};
xLC=function(W,e){if(W&&e)switch(e){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
O8Q=function(W){var e;W=(e=W.options)==null?void 0:e.findIndex(function(t){return t.isSelected});
return W===void 0?-1:W};
MHu=function(W,e,t){var b=function(){return W().label},m={},q=_.ve("ytDropdownViewModelLabel",(m.ytDropdownViewModelLabelError=e,m));
return _.w(_.G,{cond:function(){return W().label&&!(t()===-1&&W().label&&!W().placeholderText)},
then:function(){return _.w("div",{class:q},_.w(_.WL,{text:b}))}})};
sDS=function(W,e){var t={};t=_.ve("ytDropdownViewModelTitle",(t.ytDropdownViewModelTitlePlaceholder=function(){return e()===-1},t));
return _.w("div",{class:t},_.w(_.WL,{text:function(){var b=W();var m=e();if(m===-1)b=b.placeholderText?b.placeholderText:b.label;else{var q,Q;b=(q=b.options)==null?void 0:(Q=q[m])==null?void 0:Q.title}return b}}))};
hPw=function(W,e){var t=function(){return W().hint};
return _.w(_.qD,null,_.w(_.G,{cond:function(){return t()&&!e()},
then:function(){return _.w("div",{class:_.ve("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.w(_.WL,{text:t,className:"ytDropdownViewModelSupportText"}))}}),_.w(_.G,{cond:e,
then:function(){return _.w("div",{id:"dropdown-view-model-error",role:"alert",class:_.ve("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.w(_.kD,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.w(_.WL,{text:e,className:"ytDropdownViewModelSupportText"}))}}))};
H8E=function(W,e){var t=_.ee().resolve(_.psB);_.nt(function(){var b=W().id;b&&t!=null&&t.dropdownMap.set(b,e)})};
PNT=function(W){W=_.l(W.scheduleButton,K_l);W=_.l(W==null?void 0:W.primaryButton,_.kb);W=_.l(W==null?void 0:W.onTap,_.OD);var e,t,b=((t=_.l(W,_.wy))==null?void 0:t.commands)||[W];t=_.R(b);for(W=t.next();!W.done&&!(e=_.l(W.value,_.yFU));W=t.next());var m;e=(m=e)==null?void 0:m.createBroadcastRequest;if(!e)throw Error("Lj");return e};
zPT=function(W,e,t){t=t===void 0?{}:t;var b,m;return _.F(function(q){if(b=VHg(e))return q.return(b);(m=i8T(W,e,t))&&YEw(e,m);return q.return(m)})};
YEw=function(W,e){var t=ULl(W);t&&e.then(function(b){_.ee().resolve(_.rF).put(t,new _.qv({innertubeResponse:b}))})};
VHg=function(W){if(W=ULl(W)){var e=_.ee().resolve(_.rF);if(e.has(W))return e.get(W).then(function(t){return t==null?void 0:_.I4(t)})}return null};
ULl=function(W){var e=_.l(W.endpoint,_.z4);if(e!=null&&e.videoId)return e={videoId:e.videoId},_.S("web_imp_player_mute_params")&&(e.mutedAtStart=W.startPlaybackInMutedState),_.Y4("inline_playback",e)};
i8T=function(W,e,t){W=_.z2(W,e.endpoint,L_9(e,t)).then(function(b){return b});
return Promise.resolve(W)};
L_9=function(W,e){e=_.S("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},e):Object.assign({},{vis:5,autonav:"1"},e);var t;e={contentPlaybackContext:_.pB(e,(t=_.l(W.endpoint.commandMetadata,_.ez))==null?void 0:t.url,window.location.href)};_.S("web_imp_player_mute_params")&&(e.overrideMutedAtStart=!W.startPlaybackInMutedState);return e};
dLS=function(W,e){var t=window.MutationObserver;t&&(RK=new t(function(b,m){b=_.R(b);for(var q=b.next();!q.done;q=b.next()){q=q.value;var Q;if(Q=q.type==="childList"&&q.target)a:{Q=W;q=EJQ(q.target);Q=EJQ(Q);for(var X=null,I=0;I<q.length;I++)if(Q.includes(q[I])){if(I===0){Q=!1;break a}X=q[I];break}X?(q=AD$(q,X),Q=AD$(Q,X),Q=q<Q):Q=!1}if(Q){e();m.disconnect();break}}}),(t=N6B())&&RK.observe(t,{childList:!0,
subtree:!0}))};
N6B=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
EJQ=function(W){for(var e=[];W;)e.push(W),W=W.parentElement;return e};
AD$=function(W,e){var t=Array.from(e.children);e=W.indexOf(e);return e>0?t.indexOf(W[e-1]):-1};
QG=function(W,e,t){t=t===void 0?{}:t;return _.Gv(W,t,e)};
WE9=function(W){switch(W){case "MUSIC":return!0;default:return!1}};
eFT=function(W){return W==null?void 0:W.filter(function(e){return e.premiereTrailerBadgeRenderer})};
b3Q=function(W){var e,t=W==null?void 0:(e=W.find(function(v){return v.thumbnailOverlayTimeStatusRenderer}))==null?void 0:e.thumbnailOverlayTimeStatusRenderer,b,m;
if((t==null?0:(b=t.icon)==null?0:b.iconType)&&WE9(t==null?void 0:(m=t.icon)==null?void 0:m.iconType)){var q;return{icon:t==null?void 0:(q=t.icon)==null?void 0:q.iconType}}var Q,X;var I=(W=(Q=W==null?void 0:(I=W.find(function(v){return v.thumbnailBottomOverlayViewModel}))==null?void 0:I.thumbnailBottomOverlayViewModel)==null?void 0:(X=Q.badges)==null?void 0:X.find(function(v){var D,B;
return((D=_.l(v,thQ))==null?void 0:(B=D.inlinePlaybackBadgeData)==null?void 0:B.replicateAsTimestamp)===!0}))?_.l(W,thQ):void 0;
if(I==null?0:I.icon){var u,c;if((I=(u=_.X$9(I==null?void 0:I.icon))==null?void 0:(c=u.clientResource)==null?void 0:c.imageName)&&WE9(I))return{icon:I}}return{}};
FEu=function(W,e){var t=mcE,b=_.R(_.up(rEU(new qJl(function(){},t,e)),void 0,"PAnyd")),m=b.next().value,q=b.next().value,Q=new qJl(function(X){q(X)},t,e);
_.nh(function(){Promise.resolve().then(function(){var X,I=(X=W())!=null?X:{};Q.playerControlsData=I;_.S("player_controls_skip_double_signal_old")&&(Q.lastSeenPlayerApi=_.HN(I.playerApi));_.S("player_controls_skip_double_signal_old")||(Q.lastSeenPlayerApi=_.HN(I.playerApi));RFQ(Q)});
_.fh(function(){QhB(Q)})},"HikUP");
_.fh(function(){QhB(Q)});
return function(){return m()}};
XXC=function(W){return function(e){var t=W(),b={playerState:e};if(e===1){var m;(m=t.playerApi)==null||m.loadModule("captions")}if(e===0){var q;(q=t.playerApi)==null||q.unloadModule("captions")}(e!==-1||_.S("web_imp_controls_set_player_state_killswitch"))&&t.setState(b)}};
IAC=function(W){return function(e){W().setState({playbackRate:e})}};
aAB=function(W){return function(e){var t=W(),b=t.playerApi,m=b==null?void 0:b.getVideoData(),q=(m==null?void 0:m.isLive)||!1;m=m==null?void 0:m.video_id;q={videoDuration:Mdw(b||void 0),isLive:q,videoId:m};q.videoId!==t.videoId&&(q=Object.assign({},_.k$S(b),q));if(e==null?0:e.playertype)q.playerType=e.playertype;if(b){q.captionsAvailable=_.J5(b);e=q;var Q;m=(Q=b.getStoryboardLevel(b.getNumberOfStoryboardLevels()-1))==null?void 0:Q.intervalMs;e.storyboardInterval=m?m/1E3:void 0;q.captionsAvailable&&
(q.captionsEnabled=_.iFT(b))}q.volumeMuted=!(b==null||!b.isMuted());t.setState(q)}};
wXQ=function(W){return function(e){var t=W(),b=t.playerApi;if(b){var m=b.getPresentingPlayerType();e={playedTime:e||0,percentLoaded:b.getVideoLoadedFraction(),playerType:m};t.playerState===0&&(e.playedTime=t.videoDuration);t.isLive&&(m=b.getProgressState(m),e.playedTime-=m.seekableStart,e.videoDuration=Mdw(b));if(t.playerType===1)b=!1;else{var q;if((q=t.uxConfig)==null?0:q.showCuedOverlay){var Q;b=!((Q=t.playerApi)==null?0:Q.getPlayerStateObject(t.playerType).isDomPaused)}else b=!0}b&&delete e.playedTime;
t.setState(e)}}};
uzg=function(W){return function(){var e=W(),t,b,m,q={volume:(m=(t=e.playerApi)==null?void 0:t.getVolume())!=null?m:0,volumeMuted:!((b=e.playerApi)==null||!b.isMuted())};e.setState(q)}};
cEE=function(W){return function(){var e=W(),t=e.playerApi;if(t){var b={captionsAvailable:_.J5(t)};b.captionsAvailable&&(b.captionsEnabled=_.iFT(t));e.setState(b)}}};
val=function(W){return function(){var e=W();if(e.playerApi&&!(e.volumeMuted||e.controlsVisible&&e.isProbablyAScreenreaderUser)){e.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var t;(t=document.querySelector(".player-control-play-pause-icon"))==null||t.focus()}}};
GgQ=function(W){return{appApi:Object.assign({},_.D0G(),{showCaptionsToggleToast:function(e){var t,b;(b=(t=W()).showCaptionsToggleToast)==null||b.call(t,e)},
openInMiniplayer:function(){var e,t;(t=(e=W()).openInMiniplayer)==null||t.call(e)}})}};
DcM=function(W,e){var t,b,m;return!!(W==null?0:(t=W.playerResponse)==null?0:(b=t.playerConfig)==null?0:(m=b.inlinePlaybackConfig)==null?0:m.showScrubbingControls)&&!(e==null?0:e.hideScrubbingControls)};
_.SJu=function(W){var e=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||e};
B$g={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};oaC=function(W,e){var t,b,m,q,Q;_.F(function(X){if(!e.length)return X.return([]);t=[];b=_.R(e);for(m=b.next();!m.done;m=b.next())q=m.value,(Q=W.resolveIcon(q))&&!W.iconCache[Q.url]&&t.push(_.HQB(W,Q).then(function(){}).catch(function(){}));
return X.return(Promise.all(t))})};
lAC=function(W,e){var t=[];e=(new Set(e)).values();e=_.R(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;for(var m=_.R(Object.values(B$g)),q=m.next();!q.done;q=m.next())t.push({iconName:b,iconStyle:q.value})}oaC(W.iconManager,t)};
_.Z3S=function(W,e,t){var b=t!=null?t:W.iconsToFetch;b!=null&&b.length?e!==void 0&&e>=0?_.kM(_.Tm,function(){lAC(W,b)},e):lAC(W,b):Promise.resolve()};
qJl=function(W,e,t){var b=this;this.renderFn=W;this.listeners=e;this.context=t;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var m;this.lastSeenPlayerApi=_.HN((m=this.playerControlsData)==null?void 0:m.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.k$S(),void 0);_.S("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){rEU(b).setState({playerState:-1});b.resetRecentlyNavigatedJobId&&_.Tm.cancelJob(b.resetRecentlyNavigatedJobId);
b.recentlyNavigated=!0;b.resetRecentlyNavigatedJobId=_.Tm.addJob(function(){b.recentlyNavigated=!1},8,1E4)})};
qJl.prototype.setState=function(W){if(!_.S("mweb_player_skip_no_op_state_changes")||!sGS(W,this.state))if(this.state=Object.assign({},this.state,W),!_.S("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.S("player_controls_log_creation_killswitch")||he$()||(W=(0,_.eJ)()),_.Tv("pcu_s"),_.Tv("pcu_se"),_.Tv("pcu_rs"),this.renderFn(rEU(this)),_.Tv("pcu_re"),HP1(W),_.Tm.addJob(function(){_.Tv("pcu_ap")},8)};
var rEU=function(W){var e;var t=_.HN((e=W.playerControlsData)==null?void 0:e.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:t,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},RFQ=function(W){W.listeners.forEach(function(e){W.eventListenerCleanupFunctions.push(e.register(function(){return rEU(W)},function(){return W.getData()}))})},
QhB=function(W){W.eventListenerCleanupFunctions.forEach(function(e){e()});
W.eventListenerCleanupFunctions.length=0};
qJl.prototype.getData=function(){return this.playerControlsData};
var Fm=new _.z("abuseReportFlowState");var $cg=new _.z("feedbackFormFlowState");var kg1=new _.z("inputBoxViewModel");var pXE=new _.z("flowNextStepCommand");var yEl=new _.z("flowPrevStepCommand");var jhQ=new _.z("updateFlowCommand");_.CQ$=new _.z("flowStepRenderer");_.$L$=new _.z("lengthValidationRule");var pKE=new _.z("regexValidationRule");var jDl=new _.z("selectedValidationRule");var naw=new _.z("talkToRecsViewModel");var fAC=new _.z("creatorGoalSetUpFlowDropdownItemViewModel");var gal=new _.z("creatorGoalSetUpFlowDropdownViewModel");var thQ=new _.z("thumbnailBadgeViewModel");_.T$1=new _.z("radioButtonGroupViewModel");var K_l=new _.z("panelFooterViewModel");var JE1=new _.z("ypcCancelRecurrenceCommand");var xc1=new _.z("cancellationFlowState");var wKw=new _.z("premiumPurchaseFlowState");var O3Q=new _.z("surveyAnswerCardRenderer");var Mh$=new _.z("showMoreButtonRenderer");var shu;var hFw,H3$=function(){if(hFw!==void 0)return hFw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;shu===void 0&&(shu=document.createElement("template"));var b=shu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return hFw=W};var Xm=function(){var W=_.O.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.Z(Xm,_.O);_.r=Xm.prototype;_.r.getGoalDropdownItems=function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.purchaseTargetDropdown,gal))==null?void 0:e.dropdownItems};
_.r.getTimerDropdownItems=function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.timerDropdown,gal))==null?void 0:e.dropdownItems};
_.r.getColorDropdownItems=function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.colorDropdown,gal))==null?void 0:e.dropdownItems};
_.r.getDropdownItemText=function(W){var e;return(e=_.l(W,fAC))==null?void 0:e.itemLabel};
_.r.getDropdownItemValue=function(W){W=_.l(W,fAC);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.r.updateFlowState=function(W){_.RT(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.r.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.r.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.r.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.r.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.r.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.r.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var e,t=_.l((e=this.data)==null?void 0:e.startGoalButton,_.kb);return Object.assign({},t,{state:W})};
_.Ec.Object.defineProperties(Xm,{template:{configurable:!0,enumerable:!0,get:function(){return H3$()}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"goal",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"goalDescription",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"timer",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"tier",void 0);
_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"startButtonId",void 0);_.P([_.J(),_.Y("design:type",Object)],Xm.prototype,"exampleButtonId",void 0);_.P([_.gz({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Xm);_.H(Xm,"yt-creator-goal-set-up-flow-view-model",function(){return H3$()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var KEC;var PQE;var VhT;var i3u=function(){return _.O.apply(this,arguments)||this};
_.Z(i3u,_.O);_.P([_.J(),_.Y("design:type",Object)],i3u.prototype,"data",void 0);_.P([_.gz({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],i3u);
_.H(i3u,"yt-survey-answer-card-renderer",function(){if(VhT===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;PQE===void 0&&(PQE=document.createElement("template"));var b=PQE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);VhT=W}W=VhT;return W},{mode:2});var YJ1;var zFS;var IK=function(){return _.O.apply(this,arguments)||this};
_.Z(IK,_.O);_.r=IK.prototype;_.r.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.r.selectedItemChanged=function(W){_.RT(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.r.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.l(W.model.item,O3Q)){var e=W.target;W=_.l(W.model.item,O3Q);W.onTapCommand?_.IT(e,[W.onTapCommand],e):this.data.onTapCommand&&_.IT(e,[this.data.onTapCommand],e);this.selectedItemChanged(W)}};
_.r.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.r.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
IK.prototype.onSelectedItemChanged=IK.prototype.onSelectedItemChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IK.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],IK.prototype,"selectedItem",void 0);_.P([_.J({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],IK.prototype,"isCancellationStyle",void 0);
_.P([_.ul("selectedItem"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IK.prototype,"onSelectedItemChanged",null);_.P([_.gz({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],IK);
_.H(IK,"yt-survey-flow-step-renderer",function(){if(zFS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;YJ1===void 0&&(YJ1=document.createElement("template"));var b=YJ1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);zFS=W}W=zFS;return W},{mode:2});var aK=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.Z(aK,_.O);aK.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.rO({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.RT(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],aK.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],aK.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aK.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],aK);
_.H(aK,"ytd-survey-flow-step-renderer",function(){if(KEC!==void 0)return KEC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return KEC=W},{mode:1});var KkS;KkS=_.$b({avatarViewModel:_.pz,buttonViewModel:_.MV,subscribeButtonViewModel:_.$I,imageBannerViewModel:_.P5h});_.UcS=_.SN(_.VdC);_.tA(_.VdC);var LEE;var wH=function(){return _.O.apply(this,arguments)||this};
_.Z(wH,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],wH.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wH.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],wH);
_.H(wH,"ytd-channel-history-renderer",function(){if(LEE!==void 0)return LEE;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LEE=W},{mode:1});var EaC;var AE9=function(){return _.O.apply(this,arguments)||this};
_.Z(AE9,_.O);_.P([_.J(),_.Y("design:type",Object)],AE9.prototype,"data",void 0);_.P([_.h({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],AE9);
_.H(AE9,"ytd-feature-enablement-info-renderer",function(){if(EaC!==void 0)return EaC;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return EaC=W},{mode:1});var N$B;var dcC;var uu=function(){var W=_.O.apply(this,arguments)||this;W.textBoxMaxLength=_.S("enable_tvod_campaign_code_integration")?15:12;return W};
_.Z(uu,_.O);_.r=uu.prototype;_.r.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.r.onSubmit=function(){var W=this.data.serviceEndpoint,e=_.l(W,_.Rw);e&&W&&(e.couponCode=this.userInput,_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}}))};
_.r.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.S("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.r.computeStyle=function(W){return W};
_.r.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.r.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.r.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.Ec.Object.defineProperties(uu.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
uu.prototype.dataChanged=uu.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uu.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],uu.prototype,"userInput",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uu.prototype,"disableApplyButton",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uu.prototype,"hideApplyButton",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],uu.prototype,"hideErrorMessage",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uu.prototype,"showTick",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uu.prototype,"showErrorMessage",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],uu.prototype,"couponStyle",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Y("design:type",Boolean)],uu.prototype,"showValidationBelowInput",void 0);_.P([_.J(),_.Y("design:type",Object)],uu.prototype,"textBoxMaxLength",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uu.prototype,"dataChanged",null);
_.P([_.T("showTick","showErrorMessage","userInput"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uu.prototype,"validationState",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],uu);
_.H(uu,"ytd-ypc-coupon-renderer",function(){if(dcC!==void 0)return dcC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dcC=W},{mode:1});var cr=function(){return _.O.apply(this,arguments)||this};
_.Z(cr,_.O);cr.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"}}}};
cr.prototype.computeStyle=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cr.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],cr.prototype,"buttonStyle",void 0);_.P([_.h({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],cr);
_.H(cr,"ytd-flow-bottom-bar-renderer",function(){if(N$B!==void 0)return N$B;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return N$B=W},{mode:1});var WJU;var eiC;var tCC;var vr=function(){return _.O.apply(this,arguments)||this};
_.Z(vr,_.O);vr.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vr.prototype.focus=function(W){this.title&&_.L_(this.title,W)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vr.prototype,"data",void 0);_.P([_.vG("#title"),_.Y("design:type",HTMLElement)],vr.prototype,"title",void 0);_.P([_.h({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],vr);
_.H(vr,"ytd-flow-top-bar-renderer",function(){if(tCC!==void 0)return tCC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return tCC=W},{mode:1});var bhM;var m5w;var rOC;var G8=function(){return _.O.apply(this,arguments)||this};
_.Z(G8,_.O);G8.prototype.freeTextValueChanged=function(){_.RT(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
G8.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.Ec.Object.defineProperties(G8.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(e=(W=this.data)==null?void 0:W.responseMaxLength)!=null?e:500,b;return((b=this.freeTextValue)!=null?b:"").length>=t?"maxed-out":""}}});
G8.prototype.freeTextValueChanged=G8.prototype.freeTextValueChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],G8.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],G8.prototype,"freeTextValue",void 0);_.P([_.vG("#user-input"),_.Y("design:type",HTMLTextAreaElement)],G8.prototype,"input",void 0);
_.P([_.T("freeTextValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G8.prototype,"characterLimitClass",null);_.P([_.ul("freeTextValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G8.prototype,"freeTextValueChanged",null);_.P([_.gz({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],G8);
_.H(G8,"yt-free-text-input-flow-step-renderer",function(){if(rOC===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;m5w===void 0&&(m5w=document.createElement("template"));var b=m5w;t.call(e,b.content.cloneNode(!0),W.content.firstChild);rOC=W}W=rOC;return W},{mode:2});var DX=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.Z(DX,_.O);DX.prototype.handleFreeTextFlowStepInputChanged=function(W){_.RT(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],DX.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],DX);
_.H(DX,"ytd-free-text-input-flow-step-renderer",function(){if(bhM!==void 0)return bhM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return bhM=W},{mode:1});var q01;var RiT;var QbB=function(){return _.O.apply(this,arguments)||this};
_.Z(QbB,_.O);_.P([_.J(),_.Y("design:type",Object)],QbB.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],QbB);
_.H(QbB,"ytd-metadata-line-renderer",function(){if(RiT!==void 0)return RiT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RiT=W},{mode:1});var S7=function(){return _.O.apply(this,arguments)||this};
_.Z(S7,_.O);S7.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],S7.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],S7.prototype,"isMasthead",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],S7);
_.H(S7,"ytd-media-product-renderer",function(){if(q01!==void 0)return q01;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return q01=W},{mode:1});var FJB;var Br=function(){return _.O.apply(this,arguments)||this};
_.Z(Br,_.O);Br.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Br.prototype.onBillboardImageLoaded=function(){_.q2(this.hostElement,"yt-refit")};
Br.prototype.onBillboardImageLoaded=Br.prototype.onBillboardImageLoaded;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Br.prototype,"data",void 0);_.P([_.vG("#billboardImage"),_.Y("design:type",Object)],Br.prototype,"billboardImage",void 0);_.P([_.wz("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Br.prototype,"onBillboardImageLoaded",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Br);
_.H(Br,"ytd-billboard-masthead-renderer",function(){if(FJB!==void 0)return FJB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return FJB=W},{mode:1});var XfU;var oK=function(){var W=_.O.apply(this,arguments)||this;W.smallSize=!1;return W};
_.Z(oK,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oK.prototype,"ytComponentBehaviorType",void 0);_.P([_.J(),_.Y("design:type",Object)],oK.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oK.prototype,"smallSize",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],oK);
_.H(oK,"ytd-bullet-formatted-string",function(){if(XfU!==void 0)return XfU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XfU=W},{mode:1});var I2u;var lu=function(){return _.O.apply(this,arguments)||this};
_.Z(lu,_.O);lu.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lu.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],lu);
_.H(lu,"ytd-offer-detail-renderer",function(){if(I2u!==void 0)return I2u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return I2u=W},{mode:1});var a2l;var ZX=function(){return _.O.apply(this,arguments)||this};
_.Z(ZX,_.O);ZX.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ZX.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],ZX);
_.H(ZX,"ytd-offer-detail-step-renderer",function(){if(a2l!==void 0)return a2l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return a2l=W},{mode:1});var wfl;var $H=function(){var W=_.O.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.Z($H,_.O);_.r=$H.prototype;_.r.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.r.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.r.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.r.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var e;this.componentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand)}};
_.r.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.r.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
$H.prototype.dataChanged=$H.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$H.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$H.prototype,"data",void 0);_.P([_.J({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$H.prototype,"hasEndpoint",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$H.prototype,"isInOfferModule",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$H.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],$H);
_.H($H,"ytd-channel-masthead-renderer",function(){if(wfl!==void 0)return wfl;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wfl=W},{mode:1});var u0C;var kH=function(){var W=_.O.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.Z(kH,_.O);_.r=kH.prototype;_.r.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.r.dataChanged=function(){this.resetStates()};
_.r.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.r.onExpandBtnClick=function(){var W,e=_.l((W=this.data)==null?void 0:W.showMoreButtonRenderer,Mh$);e&&_.wS(_.Sg(),e.trackingParams);this.isExpanded=!this.isExpanded};
_.r.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dd(_.LB(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.r.onBottomBarClick=function(){this.executeTapCommand()};
_.r.executeTapCommand=function(){var W,e=(W=this.data)==null?void 0:W.tapCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.r.resetStates=function(){this.isExpanded=!1};
_.Ec.Object.defineProperties(kH.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),e,t,b;return((e=this.data)==null?void 0:e.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((t=this.data)==null?0:(b=t.benefits)==null?0:b.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((e=_.l((W=this.data)==null?void 0:W.showMoreButtonRenderer,Mh$))==null?void 0:e.showMoreButtonTitle)||((t=this.data)==null?void 0:t.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((e=_.l((W=this.data)==null?void 0:W.showMoreButtonRenderer,Mh$))==null?void 0:e.showLessButtonTitle)||((t=this.data)==null?void 0:t.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var e;return(e=this.showMoreButtonTitle)!=null?e:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((e=this.data)==null?0:e.footerTitle)||((t=this.data)==null?0:t.footerSubtitle))}}});
kH.prototype.dataChanged=kH.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],kH.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",String)],kH.prototype,"thumbnailObjectFit",void 0);
_.P([_.J(),_.Y("design:type",String)],kH.prototype,"thumbnailObjectPosition",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Y("design:type",Boolean)],kH.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.P([_.J(),_.Y("design:type",Object)],kH.prototype,"isExpanded",void 0);_.P([_.J(),_.Y("design:type",Object)],kH.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.footerIcon)"}),_.Y("design:type",String)],kH.prototype,"icon",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kH.prototype,"dataChanged",null);_.P([_.T("data.thumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kH.prototype,"hasThumbnail",null);_.P([_.T("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kH.prototype,"enableExpandButton",null);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kH.prototype,"enableOfferContentIcon",null);_.P([_.T("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kH.prototype,"showMoreButtonTitle",null);_.P([_.T("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kH.prototype,"showLessButtonTitle",null);
_.P([_.T("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kH.prototype,"expandedBtnText",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kH.prototype,"enableBottomBar",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],kH);
_.H(kH,"ytd-offer-card-renderer",function(){if(u0C!==void 0)return u0C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return u0C=W},{mode:1});var cOB;var pi=function(){return _.O.apply(this,arguments)||this};
_.Z(pi,_.O);pi.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"}}}};
pi.prototype.onClick=function(W){if(!_.NA(W.composedPath()||[],this.hostElement,["A".toString()])){var e,t;if((W=(t=_.l((e=this.data)==null?void 0:e.actionButton,_.Md))==null?void 0:t.command)&&!this.ytComponentBehavior.resolveCommand(W)){var b;(b=_.Sg())==null||b.clickCommand(W);_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})}}};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],pi.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pi.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],pi);
_.H(pi,"ytd-offer-content-renderer",function(){if(cOB!==void 0)return cOB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cOB=W},{mode:1});var vK1;var yG=function(){return _.O.apply(this,arguments)||this};
_.Z(yG,_.O);yG.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Ec.Object.defineProperties(yG.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.title)||!((e=this.data)==null||!e.description)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yG.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yG.prototype,"hasHeaderData",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],yG);
_.H(yG,"ytd-offer-section-renderer",function(){if(vK1!==void 0)return vK1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vK1=W},{mode:1});var GQ1;var j7=function(){return _.O.apply(this,arguments)||this};
_.Z(j7,_.O);
j7.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],j7.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],j7);
_.H(j7,"ytd-offer-selection-step-renderer",function(){if(GQ1!==void 0)return GQ1;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GQ1=W},{mode:1});var D5T;var Ci=function(){return _.O.apply(this,arguments)||this};
_.Z(Ci,_.O);Ci.prototype.computeStyle=function(W){return W};
Ci.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.P([_.J({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Ci.prototype,"containerStyle",void 0);_.P([_.J({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Y("design:type",String)],Ci.prototype,"imageWidth",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ci.prototype,"data",void 0);
_.P([_.h({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Ci);
_.H(Ci,"ytd-confirmation-masthead-renderer",function(){if(D5T!==void 0)return D5T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return D5T=W},{mode:1});var S0B;var ni=function(){return _.O.apply(this,arguments)||this};
_.Z(ni,_.O);ni.prototype.computeStyle=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ni.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],ni.prototype,"containerStyle",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ni);
_.H(ni,"ytd-purchase-complete-detail-renderer",function(){if(S0B!==void 0)return S0B;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return S0B=W},{mode:1});var BPU;var fi=function(){var W=_.O.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.Z(fi,_.O);fi.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"}}}};
fi.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.CT(W,_.Ot("GL","")),this.setupConversionTracking())};
fi.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
fi.prototype.onDataChanged=fi.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fi.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],fi.prototype,"scriptsAppended",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fi.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],fi);
_.H(fi,"ytd-purchase-complete-step-renderer",function(){if(BPU!==void 0)return BPU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BPU=W},{mode:1});var oK9;var gH=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(gH,_.O);gH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gH.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gH.prototype,"darkerDarkTheme",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],gH);
_.H(gH,"ytd-ypc-transaction-error-message-renderer",function(){if(oK9!==void 0)return oK9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oK9=W},{mode:1});var l2w;var ZhC;var T8=function(){var W=_.O.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(e){if(W.isValidPhoneVerificationCompletionMessageEvent(e)){var t;((t=W.data)==null?0:t.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.Z(T8,_.O);T8.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.Et(W.origin);return W!==null&&W.includes("youtube.com")};
T8.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
T8.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],T8.prototype,"data",void 0);_.P([_.gz({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],T8);
_.H(T8,"yt-feature-enablement-soft-entry-renderer",function(){if(ZhC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;l2w===void 0&&(l2w=document.createElement("template"));var b=l2w;t.call(e,b.content.cloneNode(!0),W.content.firstChild);ZhC=W}W=ZhC;return W},{mode:1});var $5E;var kQB;var pf$;var yOu;var jbl=function(){return _.O.apply(this,arguments)||this};
_.Z(jbl,_.O);_.P([_.J(),_.Y("design:type",Object)],jbl.prototype,"data",void 0);_.P([_.gz({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],jbl);
_.H(jbl,"yt-benefits-item-renderer",function(){if(yOu===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;pf$===void 0&&(pf$=document.createElement("template"));var b=pf$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);yOu=W}W=yOu;return W},{mode:2});var CpQ;var nK9;var JR=function(){return _.O.apply(this,arguments)||this};
_.Z(JR,_.O);JR.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
JR.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JR.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Y("design:type",Boolean)],JR.prototype,"isWithoutPadding",void 0);_.P([_.gz({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],JR);
_.H(JR,"yt-benefits-section-renderer",function(){if(nK9===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;CpQ===void 0&&(CpQ=document.createElement("template"));var b=CpQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);nK9=W}W=nK9;return W},{mode:2});var xH=function(){return _.O.apply(this,arguments)||this};
_.Z(xH,_.O);xH.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
xH.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xH.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],xH.prototype,"isUsingLargeWidth",void 0);_.P([_.gz({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],xH);
_.H(xH,"yt-benefits-flow-step-renderer",function(){if(kQB===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;$5E===void 0&&($5E=document.createElement("template"));var b=$5E;t.call(e,b.content.cloneNode(!0),W.content.firstChild);kQB=W}W=kQB;return W},{mode:2});var f2w;var gKC;var OM=function(){return _.O.apply(this,arguments)||this};
_.Z(OM,_.O);OM.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.P([_.J(),_.Y("design:type",Object)],OM.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.P([_.J({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],OM.prototype,"isUsingLargeWidth",void 0);_.P([_.gz({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],OM);
_.H(OM,"yt-confirmation-flow-step-renderer",function(){if(gKC===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;f2w===void 0&&(f2w=document.createElement("template"));var b=f2w;t.call(e,b.content.cloneNode(!0),W.content.firstChild);gKC=W}W=gKC;return W},{mode:2});var TPT;var JOB;var x5E=function(){return _.O.apply(this,arguments)||this};
_.Z(x5E,_.O);_.P([_.J(),_.Y("design:type",Object)],x5E.prototype,"data",void 0);_.P([_.gz({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],x5E);
_.H(x5E,"yt-info-flow-step-renderer",function(){if(JOB===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;TPT===void 0&&(TPT=document.createElement("template"));var b=TPT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);JOB=W}W=JOB;return W},{mode:2});var OhE;var MC1;var sbE=function(){return _.O.apply(this,arguments)||this};
_.Z(sbE,_.O);_.P([_.J(),_.Y("design:type",Object)],sbE.prototype,"data",void 0);_.P([_.gz({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],sbE);
_.H(sbE,"yt-info-list-flow-step-renderer",function(){if(MC1===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;OhE===void 0&&(OhE=document.createElement("template"));var b=OhE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MC1=W}W=MC1;return W},{mode:2});var hiE=_.NN(function(W){var e=W.data;return _.w("styled-text-view-model",{class:_.ve("ytStyledTextViewModelHost",function(){return b81(e().fontAttributes)},function(){return tHC(e().color)})},_.w(_.WL,{text:function(){return e().text},
ariaLabel:function(){var t,b,m;return(m=(t=e().accessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?m:""}}))},"af");
hiE.idomCompat=!0;var HhB=_.NN(function(W){var e=function(){var m,q,Q,X;return(X=(Q=(m=W.alt)==null?void 0:m.call(W))!=null?Q:(q=W.data().accessibilityData)==null?void 0:q.label)!=null?X:""},t=function(){return W.data().imageWidth},b=function(){return W.data().imageHeight};
return _.w("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.w(_.G,{cond:function(){var m=W.data();if(m){var q,Q,X;var I=((q=_.ee().resolve(_.Wi(_.zf)))==null?0:q())?(Q=m.imageDark)!=null?Q:m.imageLight:(X=m.imageLight)!=null?X:m.imageDark}else I=void 0;return I},
then:function(m){return _.w(_.A_,Object.assign({},W,{data:m,alt:e,targetWidth:t,targetHeight:b,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
HhB.idomCompat=!0;var MT=_.NN(function(W){var e=W.data;W=_.LD(function(){return e().slots},[]);
var t=_.LD(function(){return e().layoutProperties},{}),b=_.ee().resolve(_.L4);
return _.w("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:AGC(t,b)},_.w(_.lV,{each:W,keyBy:"INDEX"},function(m){return _.w("div",{class:"ytContainerLayoutViewModelSlot",style:AGC(function(){return m().layoutProperties},b)},_.w(_.nU,{data:function(){return m().contents}},{containerLayoutViewModel:MT,
badgeViewModel:_.dr,buttonViewModel:_.MV,styledTextViewModel:hiE,contentPreviewImageViewModel:function(q){return _.w(_.WB,{data:q.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(q){return _.w(HhB,{data:q.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
MT.idomCompat=!0;var KJg=_.NN(function(W){var e=W.data;var t=W.stateFns;var b=function(){var u=e(),c=u.productId;return!(!u.clearGroupId&&!c)},m=function(){var u=e(),c=u.clearGroupId;
return(u=u.productId)?t().isProductSelected(u):c?t().getSelectedProductByGroupId(c)==null:!1},q=function(){var u=e(),c=u.clearGroupId;
if(u=u.productId)t().onProductSelected(u);else if(c)t().onClearGroupSelected(c)},Q=function(){var u=e(),c=u.clearGroupId;
if(u=u.productId){var v;return"group:"+(((v=t().getProductById(u))==null?void 0:v.groupId)||"")}return c?"group:"+c:""},X=_.LD(function(){return e().header},[]),I=_.LD(function(){return e().body},[]);
return _.w("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.w(_.G,{cond:function(){return X().length>0||b()},
then:function(){return _.w("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.w("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.w(_.nU,{data:X},{containerLayoutViewModel:function(u){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(MT,{data:u.data}))},
styledTextViewModel:function(u){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(hiE,{data:u.data}))}})),_.w(_.G,{cond:b,
then:function(){return _.w("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.w(_.kA,{checked:m,name:Q,onChange:q}))}}))}}),_.w(_.G,{cond:function(){return I().length>0},
then:function(){return _.w("div",null,_.w(_.nU,{data:I},{containerLayoutViewModel:function(u){return _.w("div",{class:"ytPdpCardSectionViewModelContentItem"},_.w(MT,{data:u.data}))}}))}}))},"df");
KJg.idomCompat=!0;var PpM=_.NN(function(W){var e=W.data;var t=W.stateFns;return _.w("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.w(_.G,{cond:function(){return e().banner},
then:function(b){return _.w("div",{class:"ytPdpCardViewModelBanner"},_.w(_.WL,{text:b}))}}),_.w(_.nU,{data:function(){return e().sections}},{pdpCardSectionViewModel:function(b){b=b.data;
var m={};return _.w("div",{class:_.ve("ytPdpCardViewModelSectionContainer",(m.ytPdpCardViewModelShowDividers=function(){return e().showDividers},m))},_.w(KJg,{data:b,
stateFns:t}))}}))},"ef");
PpM.idomCompat=!0;var VCl=_.NN(function(W){var e=W.data;var t=W.isOverlay;W={};return _.w("pdp-masthead-view-model",{class:_.ve("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=t,W))},_.w(_.nU,{data:function(){return e().image}},{contentPreviewImageViewModel:_.WB,
themedImageViewModel:function(b){return _.w(HhB,{data:b.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.w(_.G,{cond:function(){return e().title},
then:function(b){return _.w("h1",{class:"ytPdpMastheadViewModelHeading"},_.w(_.WL,{text:b,isOverlay:t}))}}),_.w(_.lV,{each:function(){var b;
return(b=e().finePrint)!=null?b:[]}},function(b){return _.w("div",{class:"ytPdpMastheadViewModelFinePrint"},_.w(_.WL,{text:b,
isOverlay:t}))}))},"ff");
VCl.idomCompat=!0;var ih$=_.NN(function(W){var e=W.data;var t=W.stateFns;var b=function(){return"pdp-pricing-group-selector-"+e().pricingGroupAttributeIds},m=_.LD(function(){return e().pricingGroupSelectorSectionHeader});
return _.w("pdp-pricing-group-selector-view-model",null,_.w(_.G,{cond:function(){return!!m()},
then:function(){return _.w(_.nU,{data:m},{sectionHeaderViewModel:function(q){q=q.data;var Q={};return _.w("div",{class:_.ve("ytPdpPricingGroupSelectorViewModelSectionHeader",(Q.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Q.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Q))},_.w(_.mX,{data:q}))}})}}),_.w("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.w(_.lV,{each:function(){var q=t().getSelectedProductByGroupId(e().groupId);
if(!q)return _.TT(Error("Jj`"+e().groupId)),[];var Q,X=(Q=e().pricingGroupAttributeIds)!=null?Q:[],I;if((I=q.pricingGroups)==null||!I.length||!X.length)return[];Q=q.pricingGroups.filter(function(D){return X.length?D.pricingGroupAttributes.every(function(B){return X.includes(B)}):!1});
q=[];if(X.length>0){Q=[].concat(_.kP(Q));I=_.R(X);for(var u=I.next(),c={};!u.done;c={targetAttrId:void 0},u=I.next())c.targetAttrId=u.value,u=Q.findIndex(function(D){return function(B){return B.pricingGroupAttributes.includes(D.targetAttrId)}}(c)),u!==-1&&(q.push(Q[u]),Q.splice(u,1))}var v=t().getSelectedPricingGroupAttributesByGroupId(e().groupId);
return q.map(function(D){var B=!1;v&&D.pricingGroupAttributes&&(B=qT(D.pricingGroupAttributes,v));return{pricingGroup:D,isSelected:B}})},
keyBy:function(q){return q.pricingGroup.pricingGroupId}},function(q){return _.w("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.w(_.nU,{data:function(){return q().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:MT})),_.w("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.w(_.kA,{checked:function(){return q().isSelected},
name:b,onClick:function(){t().onPricingGroupSelected(q().pricingGroup.pricingGroupId)}})))})))},"gf");
ih$.idomCompat=!0;var Y0T=_.NN(function(W){var e=W.data;var t=W.stateFns;var b=function(){var Q=t().getSelectedPricingOptions().map(function(u){return u.pricingOptionId}),X=t().getSelectedProductByGroupId(e().groupId);
if(!X)return _.TT(Error("Kj`"+e().groupId)),[];var I=t().getSelectedPricingGroupAttributesByGroupId(e().groupId);return RPS(X.pricingOptions,I,Q)},m=_.LD(function(){return e().pricingOptionSelectorSectionHeader}),q=function(){return b().length>1};
return _.w("pdp-pricing-option-selector-view-model",null,_.w(_.G,{cond:function(){return!!m()&&q()},
then:function(){return _.w(_.nU,{data:m},{sectionHeaderViewModel:function(Q){Q=Q.data;var X={};return _.w("div",{class:_.ve("ytPdpPricingOptionSelectorViewModelSectionHeader",(X.ytPdpPricingOptionSelectorViewModelFullBleed=!0,X.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,X))},_.w(_.mX,{data:Q}))}})}}),_.w(_.G,{cond:q,
then:function(){return _.w("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.w(_.lV,{each:b,keyBy:"INDEX"},function(Q){return _.w("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.w(_.nU,{data:function(){return Q().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:MT})),_.w("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.w(_.kA,{checked:function(){return Q().isSelected},
onClick:function(){t().onPricingOptionSelected(Q().pricingOption.pricingOptionId);var X=Q().pricingOption.onSelectPricingOption;if(X=_.Mk(X)){var I;(I=_.ee().resolve(_.tQ))==null||I.resolveCommand(X)}}})))}))}}))},"hf");
Y0T.idomCompat=!0;var zi$=_.NN(function(W){var e=W.data;var t=W.stateFns;return _.w("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.w(_.nU,{data:function(){var b,m;return(m=(b=t().getSelectedPricingOptions()[0])==null?void 0:b.primaryButton)!=null?m:e().emptyStateButton}},{buttonViewModel:_.MV}))},"jf");
zi$.idomCompat=!0;var U5u=_.NN(function(W){var e=W.stateFns;return _.w("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.w(_.nU,{data:function(){return e().getSelectedPricingOptions().flatMap(function(t){return t.summaryLines}).filter(function(t){return!!t})}},{containerLayoutViewModel:function(t){return _.w("div",{class:"ytPdpSummaryViewModelLineItem"},_.w(MT,{data:t.data}))}}))},"kf");
U5u.idomCompat=!0;var LJQ=_.NN(function(W){function e(f){var M=Q();_.Uz(_.gN("pdpStateEntity",M,{key:M,selectedPricingOptions:f}))}
var t=W.data;var b=W.internalScrolling;var m=W.stateFnsForTesting;var q=_.LD(function(){return t().allProducts},[]),Q=_.LD(function(){return t().pdpStateEntityKey},""),X=_.D_(QDU,Q),I=_.SC(function(){_.TQ(!0);
var f;return(f=m==null?void 0:m())!=null?f:XKl(X,q,e)},void 0,"pjJzrd"),u=_.LD(function(){return t().body},[]),c=_.LD(function(){return t().columnBreakHints},[]),v=function(){return t().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},D=function(){return v()||t().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.SC(function(){var f=_.dN(t().background),M;
if(f==null?0:(M=f.sources)==null?0:M.length){var K=K===void 0?!0:K;f=_.w$S(void 0,f.sources,void 0,K,K?1E3:void 0,K?void 0:1E3)}else f=null;return f},void 0,"GO4GAe");
W=_.$D({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}});
var k={};b=_.ve("ytPdpViewModelHost",(k.ytPdpViewModelHasBackground=function(){return D()||!!B()},k.ytPdpViewModelHasDarkBackground=D,k.ytPdpViewModelHasScrim=v,k.ytPdpViewModelInternalScrolling=_.LD(b,!1),k));
var n=function(f){var M={};return _.ve("ytPdpViewModelItem",(M.ytPdpViewModelFullBleed=function(){return _.UlR(f())==="dividerViewModel"||_.UlR(f())==="sectionHeaderViewModel"},M.ytPdpViewModelNoVerticalPadding=function(){return _.UlR(f())==="sectionHeaderViewModel"},M))};
_.nt(function(){var f=t().onStartCommand;if(f&&(f=_.Mk(f))){var M;(M=_.ee().resolve(_.tQ))==null||M.resolveCommand(f)}});
return _.w("pdp-view-model",{class:b,style:W},_.w("div",{class:"ytPdpViewModelColumnContainer"},_.w(_.lV,{each:function(){return IRM(u(),c())},
keyBy:"INDEX"},function(f){return _.w("div",{class:"ytPdpViewModelColumn"},_.w(_.nU,{data:f},{containerLayoutViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(MT,{data:M}))},
dividerViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(_.E$N,{data:M}))},
pdpCardViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(PpM,{data:M,
stateFns:I}))},
pdpMastheadViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(VCl,{data:M,
isOverlay:D}))},
pdpPricingGroupSelectorViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(ih$,{data:M,
stateFns:I}))},
pdpPricingOptionSelectorViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(Y0T,{data:M,
stateFns:I}))},
pdpPrimaryButtonViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(zi$,{data:M,
stateFns:I}))},
pdpSummaryViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(U5u,{data:M,
stateFns:I}))},
sectionHeaderViewModel:function(M,K){M=M.data;return _.w("div",{class:n(function(){return f()[K()]})},_.w(_.mX,{data:M}))}}))})))},"lf");
LJQ.idomCompat=!0;_.mM(LJQ,"pdp-view-model",{props:{data:_.Eu,stateFnsForTesting:_.bt,internalScrolling:_.bt}});var EK$=_.NN(function(W){var e=W.data;var t=W.className;var b=_.D_(_.r0,function(){return e().flowStateEntityKey});
return _.w("ytm-premium-purchase-button-renderer",{class:_.ve("yt-premium-purchase-button-renderer",t)},_.w(_.nU,{data:function(){var m;return(m=_.l(b(),wKw))==null?void 0:m.primaryButtonOverride}},{buttonRenderer:function(m){return _.w(_.PA,{data:m.data,
className:t})},
buttonViewModel:function(m){return _.w(_.MV,{data:m.data,className:t})}}))},"mf");
EK$.idomCompat=!0;var AOQ=_.NN(function(W){var e=W.data;W=W.className;var t=function(){return aRU(e().style)},b=_.ve("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",t),m=_.ve("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",t);
return _.w("yt-flow-bottom-bar-renderer",{class:_.ve("yt-flow-bottom-bar-renderer",W,t)},_.w(_.nU,{data:function(){return e().secondaryButton}},{buttonRenderer:function(q){return _.w(_.PA,{data:q.data,
className:m})},
buttonViewModel:function(q){return _.w(_.MV,{data:q.data,className:m})},
premiumPurchaseButtonRenderer:function(q){return _.w(EK$,{data:q.data,className:m})}}),_.w(_.nU,{data:function(){return e().primaryButton}},{buttonRenderer:function(q){return _.w(_.PA,{data:q.data,
className:b})},
buttonViewModel:function(q){return _.w(_.MV,{data:q.data,className:b})},
premiumPurchaseButtonRenderer:function(q){return _.w(EK$,{data:q.data,className:b})}}))},"nf");
AOQ.idomCompat=!0;_.mM(AOQ,"yt-flow-bottom-bar-renderer",{props:{data:_.Eu,className:_.Eu}});var NPl=_.NN(function(W){var e=_.ve(W.className,"ytOfferSummaryRendererHost");return _.w("yt-offer-summary-renderer",{class:e},_.w("div",{class:"ytOfferSummaryRendererTextContainer"},_.w("div",{class:"ytOfferSummaryRendererEyebrowText"},_.w(_.WL,{text:function(){return W.data().eyebrowText}})),_.w("div",{class:"ytOfferSummaryRendererTitle"},_.w(_.WL,{text:function(){return W.data().title}})),_.w("div",{class:"ytOfferSummaryRendererSubtitle"},_.w(_.WL,{text:function(){return W.data().subtitle}})),
_.w("div",{class:"ytOfferSummaryRendererFeatureListData"},_.w(_.lV,{each:function(){var t;
return(t=W.data().featureListData)!=null?t:[]}},function(t){var b;
return _.w("div",{class:"ytOfferSummaryRendererFeatureList"},_.w(_.kD,{icon:(b=t.icon)==null?void 0:b.iconType,active:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(t.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.w("div",{class:"ytOfferSummaryRendererFeatureListText"},_.w(_.WL,{text:t.text,
className:function(){return t.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.w("div",{class:"ytOfferSummaryRendererDescription"},_.w(_.WL,{text:function(){return W.data().description}}))))},"of");_.mM(_.NN(function(W){var e={};e=_.ve("ytOfferSummaryFlowStepRendererHost",(e.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,e));return _.w("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:e},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.w("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.w(_.WL,{text:function(){return W.data().header}})),_.w("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.w(_.WL,{text:function(){return W.data().subtitle}}))),_.w("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.w(_.nU,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(t){return _.w(NPl,{data:t.data,
className:W.flowClassName})}})))},"pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.bt,
flowClassName:_.bt,flowStateEntityKey:_.bt,shouldDisableHeaderTopMargin:_.bt}});var d5B=_.NN(function(W){var e=W.data;var t=W.className;var b=W.flowStateEntityKey;var m=W.selectionStepStyle;W=_.Be(function(I){var u=e(),c=b==null?void 0:b();I.target&&(I.stopPropagation(),I=c||"",c=_.r0(_.Yt().getState(),I),u=Object.assign({},c,{premiumPurchaseFlowState:{selectedOptionId:u.optionId,primaryButtonOverride:u.primaryButtonOverride}}),_.Yt().dispatch(_.SX("flowStateEntity",I,u)));return!1});
var q=function(){return(b==null?void 0:b())||""},Q=_.D_(_.r0,q);
_.nt(function(){var I=e(),u=q(),c=Q();I.defaultSelected&&u!==""&&I.primaryButtonOverride&&uU9(I.optionId||"",u,I.primaryButtonOverride,c)});
var X={};return _.w("ytm-option-item-renderer",{"on:click":W,class:_.ve(t,"ytm-option-item-renderer",(X["ytm-option-item-renderer--lp2-style"]=function(){return(m==null?void 0:m())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},X))},_.w("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.w("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var I=e(),u=q(),c=Q();c=_.l(c,wKw);return(c?(c==null?void 0:c.selectedOptionId)||"":I.defaultSelected&&u!==""?(I==null?void 0:I.optionId)||"":"")===e().optionId},
name:("input"+_.TR(_.Zm)).toString()})),_.w("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.w(_.G,{cond:function(){return e().eyebrowText},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.w(_.WL,{text:function(){return e().eyebrowText}}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-title"},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.w(_.WL,{text:function(){return e().subtitle}})),_.w(_.G,{cond:function(){return e().featureListData},
then:function(){return _.w("div",{class:"ytm-option-item-renderer__feature-list-data"},_.w(_.lV,{each:function(){return e().featureListData||[]}},function(I){var u,c=(u=I.icon)==null?void 0:u.iconType;
a:switch(I.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":u="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":u="ytm-option-item-renderer__feature-list-icon-small";break a;default:u="ytm-option-item-renderer__feature-list-icon-default"}return _.w("div",{class:"ytm-option-item-renderer__feature-list"},_.w(_.kD,{icon:c,className:u,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.w("div",{class:"ytm-option-item-renderer__feature-list-text"},_.w(_.WL,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.w("div",{class:"ytm-option-item-renderer__option-item-description"},_.w(_.WL,{text:function(){return e().description}}))))},"qf");var W7T=_.NN(function(W){var e=W.data;var t=W.flowClassName;var b=W.flowStateEntityKey;var m=W.selectionStepStyle;return _.w("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.w("div",{class:"yt-option-section-renderer__option-section-header-section"},_.w("div",{class:"yt-option-section-renderer__option-section-header"},_.w(_.WL,{text:function(){return e().title}}),_.w(_.nU,{data:function(){return e().titleBadge}},{badgeViewModel:function(q){return _.w(_.dr,
{data:q.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.w(_.G,{cond:function(){return e().subtitle},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.w(_.WL,{text:function(){return e().subtitle}}))}}),_.w(_.G,{cond:function(){return e().featureListData},
then:function(q){return _.w("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.w(_.lV,{each:q},function(Q){var X;return _.w("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.w(_.kD,{icon:(X=Q.icon)==null?void 0:X.iconType,active:function(){return Q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Q.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"}}}),_.w("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.w(_.WL,{text:Q.text,
className:function(){return Q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.w(_.G,{cond:function(){return e().secondaryTitle},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.w(_.WL,{text:function(){return e().secondaryTitle}}))}}),_.w(_.lV,{each:function(){return e().sectionDisclaimers||[]}},function(q){return _.w("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.w(_.WL,{text:q}))})),_.w(_.nU,{data:function(){return e().optionItems}},{optionItemRenderer:function(q){return _.w("div",{class:"yt-option-section-renderer__option-item"},_.w(d5B,{data:q.data,
className:t,flowStateEntityKey:b,selectionStepStyle:m}))}}),_.w(_.G,{cond:function(){return e().offerText},
then:function(){return _.w("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.w(_.WL,{text:function(){return e().offerText}}))}}))},"rf");
W7T.idomCompat=!0;var eTC=_.NN(function(W){var e=W.data;var t=W.flowClassName;var b=W.flowStateEntityKey;W=W.isDesktop;var m=function(){var u;return(u=e().flowStateEntityKey)!=null?u:b==null?void 0:b()},q=function(){return(m==null?void 0:m())||""},Q=function(){return e().style},X=_.D_(_.r0,q);
_.nt(function(){var u=e(),c=q(),v=X();!_.l(v,wKw)&&u.noPreselect&&c!==""&&u.defaultButtonOverride&&uU9("default",c,u.defaultButtonOverride,v)});
var I={};return _.w("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ve("ytm-option-selection-flow-step-renderer",(I["ytm-option-selection-flow-step-renderer--desktop"]=W,I["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return e().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},I))},_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.w(_.WL,{text:function(){return e().header}})),_.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.w(_.WL,{text:function(){return e().subtitle}}))),_.w(_.nU,{data:function(){return e().optionItems||[]}},{optionItemRenderer:function(u){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(d5B,{data:u.data,
className:t,flowStateEntityKey:m,selectionStepStyle:Q}))},
optionSectionRenderer:function(u){return _.w("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.w(W7T,{data:u.data,flowClassName:t,flowStateEntityKey:m,selectionStepStyle:Q}))}}))},"sf");
eTC.idomCompat=!0;_.mM(eTC,"yt-option-selection-flow-step-renderer",{props:{data:_.Eu,flowClassName:_.Eu,flowStateEntityKey:_.Eu,isDesktop:_.Eu}});var cDB,vJ$;_.sM=_.NN(function(W){var e=_.Ez(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),t=e.data,b=e.type;W=e.disablePadding;var m=e.disablePrimaryButton,q=e.onClickPrimaryButton,Q=function(){return t().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},X=function(){return{disabled:m(),
state:m()?"disabled":"active"}},I=function(){return t().leadingLabel||t().trailingLabel};
e={};return _.w("yt-panel-footer-view-model",{class:_.ve("yt-panel-footer-view-model-wiz",(e["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return t().shouldHideDivider},e["yt-panel-footer-view-model-wiz--disable-padding"]=W,e))},_.w(_.G,{cond:I,
then:function(){var u={},c={};return _.w("div",{class:_.ve("yt-panel-footer-view-model-wiz__text-row",(u["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var v=t();return!(!v.leadingLabel&&!v.trailingLabel||!v.primaryButton&&!v.secondaryButton)},u))},_.w(_.WL,{text:function(){return t().leadingLabel},
className:_.ve((c["yt-panel-footer-view-model-wiz--text-padding"]=I,c))}),_.w(_.WL,{text:function(){return t().trailingLabel}}))}}),_.w(_.G,{cond:Q,
then:function(){var u={};return _.w("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.w("div",{class:_.ve("yt-panel-footer-view-model-wiz__primary-button",(u["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return t().secondaryButton},u))},_.w(_.nU,{data:function(){return t().primaryButton}},{buttonViewModel:function(c){return _.w(_.MV,{data:c.data,
buttonOverrides:X,onClick:q})}})),_.w(_.nU,{data:function(){return t().secondaryButton}},{buttonViewModel:_.MV}))}}),_.w(_.G,{cond:function(){return!Q()},
then:function(){var u={},c={},v={};return _.w("div",{class:_.ve("yt-panel-footer-view-model-wiz__button-row",(u["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===b()},u))},_.w("div",{class:_.ve("yt-panel-footer-view-model-wiz__button-row--left-button",(c["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===b()},c["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!t().secondaryButton||0===b()},c["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===b()},c))},_.w(_.nU,{data:function(){return t().secondaryButton}},{buttonViewModel:_.MV})),_.w("div",{class:_.ve("yt-panel-footer-view-model-wiz__primary-button",(v["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===b()||1===b()},v["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===b()},v))},_.w(_.nU,{data:function(){return t().primaryButton}},{buttonViewModel:function(D){return _.w(_.MV,{data:D.data,
buttonOverrides:X,onClick:q})}})))}}))},"tf");
_.sM.idomCompat=!0;_.tmQ=_.NN(function(W){W=_.Ez(W,{disablePadding:!1});var e=W.data,t=W.disablePadding;W=_.B6C(function(){return e().formId});
var b=W.onSubmit,m=W.isValid,q=W.isSubmitting;return _.w("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.w(_.nU,{data:function(){return e().panelFooter}},{panelFooterViewModel:function(Q){return _.w(_.sM,{data:Q.data,
onClickPrimaryButton:function(){b()},
disablePrimaryButton:function(){return!m()||q()},
disablePadding:t})}}))},"uf");_.mM(_.tmQ,"yt-form-footer-view-model",{props:{data:_.Eu,disablePadding:_.Eu}});_.mM(_.NN(function(W){return _.w("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.w(_.G,{cond:function(){var e;return(e=W.data())==null?void 0:e.image},
then:function(e){return _.w(_.A_,{data:e,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.w(_.WL,{text:function(){var e;
return(e=W.data())==null?void 0:e.title}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.w(_.WL,{text:function(){var e;
return(e=W.data())==null?void 0:e.subtitle}})),_.w("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.w(_.nU,{data:function(){var e;
return(e=W.data())==null?void 0:e.viewTipsButton}},{buttonViewModel:_.MV}))))},"vf"),"yt-contributor-zero-state-view-model",{props:{data:_.Eu}});var btU=_.NN(function(W){var e=_.D_(oJT,_.LD(function(){var t;return(t=W.data())==null?void 0:t.noteFeedEntityKey},""));
return _.w("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.w(_.G,{cond:function(){var t,b;return(t=W.data())==null?void 0:(b=t.noteData)==null?void 0:b.isPinned},
then:function(){return _.w(_.kD,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.w(_.G,{cond:function(){var t,b;return(t=W.data())==null?void 0:(b=t.noteData)==null?void 0:b.isPublished},
then:function(){return _.w(_.kD,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.w(_.WL,{text:function(){var t,b;
return(t=W.data())==null?void 0:(b=t.noteData)==null?void 0:b.headerText}}),_.w("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.w(_.WL,{text:function(){var t,b;
return(t=W.data())==null?void 0:(b=t.noteData)==null?void 0:b.delimiter}})),_.w(_.WL,{text:function(){var t,b;
return(t=e())==null?void 0:(b=t.contributorNote)==null?void 0:b.publishedTimeText}})),_.w(_.nU,{data:function(){var t,b,m,q=(t=W.data())==null?void 0:t.noteData;
t=(b=e())==null?void 0:(m=b.contributorNote)==null?void 0:m.deleteAction;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:q.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:q.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:q.deleteDialogTitle}]},dialogMessages:[{runs:[{text:q.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:q.deleteActionText}]},command:{performCommentActionEndpoint:{action:t}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:q.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.w("div",{class:"ytNoteViewModelNoteContent"},_.w(_.WL,{text:function(){var t,b;
return(t=e())==null?void 0:(b=t.contributorNote)==null?void 0:b.text}})))},"wf");
btU.idomCompat=!0;_.mM(btU,"yt-note-view-model",{props:{data:_.Eu}});var hR=_.NN(function(W){var e=_.Ez(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),t=e.label,b=e.text,m=e.placeholder,q=e.hint;W=e.rows;var Q=e.overflowStyle,X=e.outline,I=e.disabled,u=e.disableNewLines,c=e.characterLimit,v=e.validation,D=e.onInput,B=_.zT("textarea");e=_.R(_.ZT(function(){return b()}));
var k=e.next().value,n=e.next().value;e=_.R(_.up(!1,void 0,"fXvinf"));var f=e.next().value,M=e.next().value,K=function(){M(!0)},U=function(){M(!1)};
_.nt(function(){var iv=B.value,hz=Q(),ES=k();hz==="expand-vertically"&&ES&&lR$(iv);B.value.addEventListener("focusin",K);B.value.addEventListener("focusout",U)});
_.fh(function(){B.value.removeEventListener("focusin",K);B.value.removeEventListener("focusout",U)});
var V=function(){var iv;return(iv=v())==null?void 0:iv.validate(k())},L=function(){return c()&&!V()&&k().length>c().maxChars},E=function(){return!!V()||L()};
e=_.Be(function(iv){if(!iv.currentTarget)return!1;iv=iv.currentTarget;n(iv.value);Q()==="expand-vertically"&&lR$(iv);D==null||D(iv.value);return!0});
var RR=_.Be(function(iv){u()&&iv.key==="Enter"&&iv.preventDefault();return!1}),uv=_.Be(function(){B.value.focus()}),GS=function(){return m()||t()},k9={},CQ={},fQ={};
return _.w("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.w("div",{class:_.ve("ytStandardsTextareaShapeTextareaContainer",(k9.ytStandardsTextareaShapeTextareaContainerOutline=X,k9.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=I,k9.ytStandardsTextareaShapeTextareaContainerOutlineError=E,k9)),"on:click":uv},_.w("label",{class:_.ve("ytStandardsTextareaShapeLabel",(CQ.ytStandardsTextareaShapeLabelFocused=f,CQ.ytStandardsTextareaShapeLabelDisabled=I,CQ.ytStandardsTextareaShapeLabelError=
function(){return E()&&!I()},CQ.ytStandardsTextareaShapeLabelHidden=function(){return!f()&&!k()&&!!GS()},CQ))},t),_.w("div",{class:_.ve("ytStandardsTextareaShapePlaceholder",(fQ.ytStandardsTextareaShapePlaceholderVisible=function(){return!f()&&!k()},fQ)),
"aria-hidden":"true"},GS),_.w("textarea",{el:B,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:I,placeholder:GS,"on:input":e,"on:keydown":RR},k)),_.w(_.G,{cond:function(){return q()&&!E()},
then:function(){var iv={};return _.w("div",{class:_.ve("ytStandardsTextareaShapeHint",(iv.ytStandardsTextareaShapeHintDisabled=I,iv))},_.w("div",{class:"ytStandardsTextareaShapeHintHintMessage"},q))}}),_.w(_.G,{cond:V,
then:function(){return _.w(mDC,{disabled:I},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.w(_.G,{cond:c,
then:function(iv){return _.w(_.G,{cond:L,then:function(){return _.w(mDC,{disabled:I},_.w("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return iv().errorMessage}),_.w("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return k().length+"/"+iv().maxChars}))}})}}))},"xf");
hR.idomCompat={callbacks:{onInput:!0}};var mDC=_.NN(function(W){var e={};return _.w("div",{class:_.ve("ytStandardsTextareaShapeError",(e.ytStandardsTextareaShapeErrorDisabled=W.disabled,e)),role:"alert"},_.w(_.kD,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"yf");_.rJ1=_.NN(function(W){var e=W.data;return _.w("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.w(hR,{text:W.text,label:function(){var t;return(t=e().contentProperties)==null?void 0:t.labelText},
placeholder:function(){var t;return(t=e().contentProperties)==null?void 0:t.placeholderText},
hint:function(){var t;return(t=e().contentProperties)==null?void 0:t.hintText},
outline:function(){var t;return!((t=e().displayProperties)==null?0:t.hideBorder)},
overflowStyle:function(){var t;return((t=e().displayProperties)==null?0:t.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var t;return(t=e().displayProperties)==null?void 0:t.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var t;return(t=e().displayProperties)==null?void 0:t.rows}}))},"zf");_.qt1=_.NN(function(W){var e=W.data;return _.w("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.w(hR,{text:W.text,label:function(){var t;return(t=e().contentProperties)==null?void 0:t.labelText},
placeholder:function(){var t;return(t=e().contentProperties)==null?void 0:t.placeholderText},
hint:function(){var t;return(t=e().contentProperties)==null?void 0:t.hintText},
outline:function(){var t;return!((t=e().displayProperties)==null?0:t.hideBorder)},
overflowStyle:function(){var t;return((t=e().displayProperties)==null?0:t.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var t;return(t=e().displayProperties)==null?void 0:t.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var t;return(t=e().displayProperties)==null?void 0:t.rows}}))},"Af");var RTC=_.NN(function(W){var e=_.R(_.ZT(function(){var GS,k9;return((GS=W.data().structuredContextNoteFormSchema)==null?0:(k9=GS.initialValues)==null?0:k9.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),t=e.next().value,b=e.next().value;
e=_.R(_.ZT(function(){W.data();return!1}));
var m=e.next().value,q=e.next().value;e=_.R(_.ZT(function(){W.data();return!1}));
var Q=e.next().value,X=e.next().value;e=_.R(_.ZT(function(){var GS,k9;return((GS=W.data().structuredContextNoteFormSchema)==null?0:(k9=GS.initialValues)==null?0:k9.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var I=e.next().value,u=e.next().value;e=_.R(_.ZT(function(){W.data();return!1}));
var c=e.next().value,v=e.next().value;e=_.R(_.ZT(function(){var GS,k9;return((GS=W.data().structuredContextNoteFormSchema)==null?0:(k9=GS.initialValues)==null?0:k9.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var D=e.next().value,B=e.next().value;e=_.R(_.ZT(function(){W.data();return!1}));
var k=e.next().value,n=e.next().value;e=_.R(_.ZT(function(){return!1}));
var f=e.next().value,M=e.next().value;_.nt(function(){var GS;_.SEB((GS=W.data().structuredContextNoteFormSchema)==null?void 0:GS.id,{isSubmitting:f,onSubmit:function(){M(!0);var k9=fRl(t(),I(),D(),W.data()),CQ=_.ee().resolve(_.tQ);k9&&CQ&&CQ.resolveCommand(k9,{commandController:{onSuccess:function(){M(!1)}}})},
isValid:function(){return m()&&!Q()&&!c()&&!k()}})});
var K=function(GS){if(GS!==void 0&&(b(GS),!m()&&GS.length>0&&q(!0),m())){var k9=kaS(W.data());if(k9){var CQ=k9.minLength;k9=k9.maxLength;CQ&&GS.length<CQ?X(!0):k9&&GS.length>k9?X(!0):X(!1)}}},U=function(GS){if(GS!==void 0){u(GS);
if(GS.length>0){var k9,CQ,fQ,iv,hz=yDC((k9=W.data())==null?void 0:(CQ=k9.structuredContextNoteFormSchema)==null?void 0:(fQ=CQ.fieldSchemas)==null?void 0:(iv=fQ.timestamp)==null?void 0:iv.validationSchema);if(hz&&(k9=hz.regex)&&!(new RegExp(k9)).test(GS)){v(!0);return}}v(!1)}},V=function(GS){if(GS!==void 0){var k9=GS.split(/[ \n]/).map(function(CQ){return CQ.trim()});
B(k9);if(GS.length>0)for(GS=_.R(k9),k9=GS.next();!k9.done;k9=GS.next())if(!nJS(k9.value)){n(!0);return}n(!1)}},L=function(){return{validate:function(GS){if(m()){var k9=kaS(W.data());
if(k9){var CQ=k9.minLength;k9=k9.translations;if(CQ&&GS.length<CQ)return k9==null?void 0:k9.minLengthErrorMessage}}}}},E=function(){var GS=kaS(W.data()),k9=GS==null?void 0:GS.maxLength,CQ;
GS=GS==null?void 0:(CQ=GS.translations)==null?void 0:CQ.maxLengthErrorMessage;if(k9&&GS)return{maxChars:k9,errorMessage:GS}},RR=function(){return{validate:function(GS){if(GS){var k9,CQ,fQ,iv,hz=yDC((k9=W.data())==null?void 0:(CQ=k9.structuredContextNoteFormSchema)==null?void 0:(fQ=CQ.fieldSchemas)==null?void 0:(iv=fQ.timestamp)==null?void 0:iv.validationSchema);
if(hz&&(k9=hz.regex,hz=hz.translations,k9&&!(new RegExp(k9)).test(GS)))return hz==null?void 0:hz.regexErrorMessage}}}},uv=function(){return{validate:function(GS){if(GS){var k9,CQ,fQ,iv,hz=CNg((k9=W.data())==null?void 0:(CQ=k9.structuredContextNoteFormSchema)==null?void 0:(fQ=CQ.fieldSchemas)==null?void 0:(iv=fQ.sources)==null?void 0:iv.validationSchema);
if(hz&&(k9=hz.translations,k9==null?0:k9.selectedErrorMessage))for(GS=GS.split(/[ \n]/).map(function(ES){return ES.trim()}),GS=_.R(GS),CQ=GS.next();!CQ.done;CQ=GS.next())if(!nJS(CQ.value))return GS=void 0,(GS=k9)==null?void 0:GS.selectedErrorMessage}}}};
return _.w("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.nU,{data:function(){var GS;return(GS=W.data())==null?void 0:GS.noteContents}},{textFormFieldViewModel:function(GS){return _.w(_.qt1,{data:GS.data,
onInput:K,validation:L,characterLimit:E})},
textFieldViewModel:function(GS){return _.w(_.rJ1,{data:GS.data,onInput:K,validation:L,characterLimit:E})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.nU,{data:function(){var GS;
return(GS=W.data())==null?void 0:GS.noteTimestamp}},{textFormFieldViewModel:function(GS){return _.w(_.qt1,{data:GS.data,
onInput:U,validation:RR})},
textFieldViewModel:function(GS){return _.w(_.rJ1,{data:GS.data,onInput:U,validation:RR})}})),_.w("div",{class:"ytStructuredContextNoteViewModelTextField"},_.w(_.nU,{data:function(){var GS;
return(GS=W.data())==null?void 0:GS.noteSources}},{textFormFieldViewModel:function(GS){return _.w(_.qt1,{data:GS.data,
onInput:V,validation:uv})},
textFieldViewModel:function(GS){return _.w(_.rJ1,{data:GS.data,onInput:V,validation:uv})}})))},"Bf");
RTC.idomCompat=!0;_.mM(RTC,"yt-structured-context-note-view-model",{props:{data:_.Eu}});var QAT=_.NN(function(W){var e=_.R(_.ZT(function(){var q;if((q=W.controlled)==null?0:q.call(W))return[];var Q;return(((Q=W.data())==null?void 0:Q.chips)||[]).map(function(X){X=_.l(X,_.Kf);if(X==null?0:X.selected)return gJM(X.chipValue)}).filter(function(X){return X!==void 0})})),t=e.next().value,b=e.next().value,m=function(q){var Q=gJM(q.chipValue);
if(Q!==void 0){var X;if((X=W.controlled)==null?0:X.call(W))return void W.controlled().onTap(Q);q=t().includes(Q)?[].concat(_.kP(t().filter(function(u){return u!==Q}))):[].concat(_.kP(t()),[Q]);
b(q);var I;if((I=W.uncontrolled)==null?0:I.call(W))W.uncontrolled().onUpdate(q)}};
return _.w("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.w(_.lV,{each:function(){return W.data().chips||[]}},function(q){return _.w("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.w(_.Ux8,{data:function(){return _.l(q,_.Kf)},
selected:function(){var Q;if(Q=_.l(q,_.Kf)){var X=gJM(Q.chipValue);if(X!==void 0){var I;Q=((I=W.controlled)==null?0:I.call(W))?W.controlled().selectedValues.includes(X):t().includes(X)}else Q=void 0}else Q=!1;return Q},
callback:m}))}))},"Cf");var F79=_.NN(function(W){var e=W.data;var t=function(){var X;return((X=e())==null?void 0:X.flowStateKey)||""},b=_.D_(_.r0,t),m=function(){var X;
return(X=_.l(b(),$cg))==null?void 0:X.chips},q=function(X){if(X!==void 0){var I=m()||[];
I=I.find(function(u){return u===X})?I.filter(function(u){return u!==X}):[].concat(_.kP(I),[X]);
I=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.l(b(),$cg),{chips:I})});_.Uz(_.SX("flowStateEntity",t(),I))}},Q=function(){var X;
return _.l((X=e())==null?void 0:X.inputBox,kg1)};
W=_.ot(function(X){var I=Q();I=!(I==null?0:I.maxChars)||X.length<=I.maxChars;X=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.l(b(),$cg),{detail:X}),abuseReportFlowState:Object.assign({},_.l(b(),Fm),{navigationEnabled:I})});_.Uz(_.SX("flowStateEntity",t(),X))},150);
return _.w("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.w("div",{class:"ytFeedbackFormViewModelChips"},_.w(_.nU,{data:function(){var X;return(X=e())==null?void 0:X.chipSelection}},{chipSelectionFormFieldViewModel:function(X){return _.w(QAT,{data:X.data,
controlled:function(){return{selectedValues:m()||[],onTap:q}}})}})),_.w("div",{class:"ytFeedbackFormViewModelInputBox"},_.w(hR,{text:function(){var X;
return(X=_.l(b(),$cg))==null?void 0:X.detail},
placeholder:function(){var X;return((X=Q())==null?void 0:X.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var X=Q();if(X&&X.maxChars)return{maxChars:X.maxChars,errorMessage:X.maxCharsExceededErrorMessage||""}},
onInput:W})),_.w("div",{class:"ytFeedbackFormViewModelFooterText"},_.w(_.WL,{text:function(){return e().footerText}})))},"Df");
F79.idomCompat=!0;_.mM(F79,"yt-feedback-form-view-model",{props:{data:_.Eu}});var XO1=_.NN(function(W){var e=W.data;var t=function(){return e().flowStateKey||""},b=_.D_(JGg,t),m=function(){return _.l(b(),Fm)},q=function(){if(_.S("enable_gff_accessibility_fix")){var Q=!0,X;
if((X=m())==null?0:X.navigationEnabled){var I;_.K4((I=m())==null?void 0:I.navigationCommand);Q=!1}X=Object.assign({},b(),{abuseReportFlowState:Object.assign({},m(),{isReportFormDirty:Q})});_.Uz(_.SX("flowStateEntity",t(),X))}else _.K4((Q=m())==null?void 0:Q.navigationCommand)};
return _.w("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.w("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.w(_.nU,{data:function(){return e().cancelButton}},{buttonViewModel:function(Q){return _.w(_.MV,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:q})}}),_.w(_.nU,{data:function(){var Q;
if(e().navButton){var X=Object;var I=X.assign,u=_.l(e().navButton,_.kb),c=((Q=m())==null?0:Q.navigationEnabled)||_.S("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",v,D;Q=_.l((v=m())==null?void 0:v.navigationCommand,_.OD);v=(D=_.l(Q,_.KJ))==null?void 0:D.url;X={buttonViewModel:I.call(X,{},u,{state:c,iconName:v?"OPEN_IN_NEW":""})}}else X=void 0;return X}},{buttonViewModel:function(Q){return _.w(_.MV,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:q})}})))},"Ef");
XO1.idomCompat=!0;_.mM(XO1,"yt-report-form-bottom-bar-view-model",{props:{data:_.Eu}});var IbC=_.NN(function(W){var e=W.nextStep;return _.w("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.w("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.w(_.kD,{icon:function(){return e().iconName||""}})),_.w("div",null,_.w(_.WL,{text:function(){return e().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ff"),abU=_.NN(function(W){var e=W.data;
var t,b=(t=_.ee().resolve(_.Wi(_.zf)))==null?void 0:t(),m=_.D_(_.r0,function(){return e().flowStateKey||""});
return _.w("yt-report-form-confirmation-page-view-model",{class:function(){var q;return((q=_.l(m(),Fm))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.w("div",{class:function(){var q;
return((q=_.l(m(),Fm))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.w(_.A_,{data:function(){return b&&e().imageDark?e().imageDark:e().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return e().confirmationHeader}),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.w(_.WL,{text:function(){return e().confirmationText}})),_.w("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.w(_.WL,{text:function(){return e().lawEnforcementText}})),
_.w("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return e().whatToExpectHeader}),_.w(_.G,{cond:function(){return e().nextSteps},
then:function(q){return _.w("div",null,_.w(_.lV,{each:q},function(Q){return _.w(IbC,{nextStep:Q})}))}}),_.w(_.G,{cond:function(){return e().legalReportText},
then:function(q){return _.w("div",null,_.w(_.WL,{text:q,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gf");
abU.idomCompat=!0;_.mM(abU,"yt-report-form-confirmation-page-view-model",{props:{data:_.Eu}});var wOu=_.NN(function(W){var e=W.data;var t=function(){var q;return((q=_.l(e().inputBox,kg1))==null?void 0:q.maxChars)||500},b=function(){return e().flowStateKey||""},m=_.D_(_.r0,b);
W=_.ot(function(q){q=Object.assign({},m(),{flowFormState:{isValid:q.length<=t()},abuseReportFlowState:{userComments:q,navigationEnabled:!(q.length>t()),isReportFormDirty:!0}});_.Yt().dispatch(_.gN("flowStateEntity",b(),q))},150);
_.nt(function(){var q=Object.assign({},m(),{flowFormState:{isValid:!0}});_.Yt().dispatch(_.gN("flowStateEntity",b(),q))});
return _.w("yt-report-form-details-page-view-model",{class:function(){var q;return((q=_.l(m(),Fm))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.w("h1",{class:function(){var q;
return((q=_.l(m(),Fm))==null?void 0:q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return e().detailsPageHeader}),_.w("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.w(_.WL,{text:function(){return e().bodyText}})),_.w("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.w(hR,{label:function(){var q;
return((q=_.l(e().inputBox,kg1))==null?void 0:q.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var q;return{errorMessage:((q=_.l(e().inputBox,kg1))==null?void 0:q.maxCharsExceededErrorMessage)||"",maxChars:t()}},
onInput:W})))},"Hf");
wOu.idomCompat=!0;_.mM(wOu,"yt-report-form-details-page-view-model",{props:{data:_.Eu}});var ux$=_.NN(function(W){var e=W.data;var t=W.selectedKey;var b=W.onSelected;var m=W.groupName;var q=function(){return e().text},Q=function(){return e().attributedText},X=function(){return e().subtext},I=function(){return e().attributedSubtext},u=_.w("div",{class:"ytRadioButtonItemViewModelLabel"},_.w(_.G,{cond:q,
then:function(){return _.w("div",null,q)}}),_.w(_.G,{cond:Q,
then:function(){return _.w(_.WL,{text:Q})}}),_.w(_.G,{cond:X,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},X)}}),_.w(_.G,{cond:I,
then:function(){return _.w("div",{class:"ytRadioButtonItemViewModelSubText"},_.w(_.WL,{text:I}))}})),c=function(){if(Q()){var D;
return(D=Q())==null?void 0:D.content}return q()},v=function(){if(I()){var D;
return(D=I())==null?void 0:D.content}return X()};
W={};return _.w("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.w(_.kA,{name:m,checked:function(){return!(t==null||!t()||e().key!==(t==null?void 0:t()))},
onChange:function(D){b==null||b(D.target,e(),m==null?void 0:m())},
labelRenderable:function(){return u},
ariaLabel:function(){return v()?c()+", "+v():c()},
className:_.ve((W.ytRadioButtonItemViewModelSubTitle=function(){return!!e().subtext},W))}))},"If");_.cJu=_.NN(function(W){var e=W.data;var t=W.onSelected;var b=W.selectedKey;var m=W.groupName;var q=function(){return(m==null?void 0:m())||e().key};
return _.w("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.w("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.w(_.nU,{data:function(){return e().radioButtons}},{radioButtonItemViewModel:function(Q){return _.w(ux$,{data:Q.data,
onSelected:t,selectedKey:b,groupName:q})}})))},"Jf");var vqC=_.NN(function(W){var e=W.data;var t=_.Um("div"),b=function(){return e().flowStateKey||""},m=_.D_(_.r0,b),q=function(){return _.l(m(),Fm)};
_.nh(function(){var Q,X;if(((Q=q())==null?0:Q.isReportFormDirty)&&((X=q())==null||!X.navigationEnabled)&&_.S("enable_gff_accessibility_fix")){var I;if(((I=q())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var u;(u=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||u.scrollIntoView()}else{var c;(c=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||c.scrollIntoView()}}},"VvP2Ne");
return _.w("yt-report-form-reason-select-page-view-model",{class:function(){var Q;return((Q=q())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.w("h1",{class:function(){var Q;
return((Q=q())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return e().pageHeader}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.w(_.WL,{text:function(){return e().bodyText}})),_.w("div",{class:function(){var Q;
return((Q=q())==null?void 0:Q.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.w(_.G,{cond:function(){var Q,X;
return((Q=q())==null?void 0:Q.isReportFormDirty)&&!((X=q())==null?0:X.navigationEnabled)&&_.S("enable_gff_accessibility_fix")},
then:function(){return _.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:t},_.w(_.kD,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.w("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return e().emptyReasonSelectErrorMessage}))}}),_.w(_.cJu,{data:function(){return _.l(e().radioButtonGroup,_.T$1)},
onSelected:function(Q,X){Q=Object.assign({},m(),{abuseReportFlowState:Object.assign({},q(),{reasonKey:X.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:X.command})});_.Uz(_.SX("flowStateEntity",b(),Q))},
selectedKey:function(){var Q;return(Q=q())==null?void 0:Q.reasonKey},
groupName:"report-form-reason-select-page"})))},"Kf");
vqC.idomCompat=!0;_.mM(vqC,"yt-report-form-reason-select-page-view-model",{props:{data:_.Eu}});var GnB=_.NN(function(W){var e=W.data;var t,b=(t=_.ee().resolve(_.Wi(_.zf)))==null?void 0:t();return _.w("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.w(_.A_,{data:function(){return b&&e().imageDark?e().imageDark:e().image},
alt:""})),_.w("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.w("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return e().header}),_.w(_.WL,{text:function(){return e().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Lf");
GnB.idomCompat=!0;_.mM(GnB,"yt-report-form-sign-in-page-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=function(){return e().titleSuperscript},b=function(){var c;
return(c=e().textInputPlaceholder)==null?void 0:c.content},m=function(c){c=c.target.value.trim();
var v=e().onUpdateText;v&&_.K4(v,{form:{userQuery:c}});e().userQuery=c},q=_.ot(function(c){m(c)},150),Q=_.Be(function(c){q(c);
return!1}),X=_.Be(function(c){c.key==="Enter"&&(m(c),(c=e().onNextStepCommand)&&_.K4(c,{forceClickLogging:!0}));
return!1}),I=_.zT("yt-talk-to-recs-view-model"),u=function(){if(_.S("web_hide_explore_hub_until_user_navigates_back_to_home")){var c,v,D;
(D=(v=(c=I.value)==null?void 0:c.closest("ytd-flow-step-renderer"))==null?void 0:v.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||D.click()}};
return _.w("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:I},_.w("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.w(_.nU,{data:function(){return e().topCornerButton}},{buttonViewModel:_.MV})),_.w("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.w("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.w(_.WL,{text:function(){return e().title}}),_.w(_.G,{cond:t,
then:function(){return _.w("sup",{class:"ytwTalkToRecsSuperScript"},_.w(_.WL,{text:t}))}})),_.w("div",{class:"ytwTalkToRecsSubtitle"},_.w(_.WL,{text:function(){return e().subtitle}})),_.w("div",{class:"ytwTalkToRecsChipsShelf"},_.w(_.nU,{data:function(){return e().answersShelf}},{chipsShelfViewModel:function(c){return _.w("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.w(_.bRS,{data:c.data,
callback:u,enableSingleChipSelection:!0}))}})),_.w(_.G,{cond:function(){return e().showOpenTextInput&&!_.S("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.w("div",{class:"ytwTalkToRecsUserInputBox"},_.w("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:b,value:function(){return e().userQuery},
"on:input":Q,"on:keyup":X,maxlength:200}))}})))},"Mf"),"yt-talk-to-recs-view-model",{props:{data:_.Eu}});var T6M={sources:[{clientResource:{imageName:"CHECK"}}]};_.DDu=_.NN(function(W){var e=_.zT("div");W=_.Ez(W,{error:void 0});var t=W.data,b=W.error,m=W.onSelected;W=_.R(_.ZT(function(){return O8Q(t())}));
var q=W.next().value,Q=W.next().value;H8E(t,function(v){Q(v);var D,B,k=xLC((D=t().options)==null?void 0:(B=D[v])==null?void 0:B.value,t().type);m==null||m(k);e.value.focus()});
W=_.Be(function(){if(!t().disabled){var v=t(),D=q(),B=e.value;v.options&&(v=JDT(v.options,D,v.label),_.ee().resolve(_.lR).openSheet({viewModel:v},B))}});
var X=_.qMc(),I=function(){return!!b()},u=function(){return!!t().disabled},c={};
c=_.ve("ytDropdownViewModelDropdownContainer",(c.ytDropdownViewModelDropdownContainerErrorBorder=I,c.ytDropdownViewModelDropdownContainerDisabled=u,c));return _.w("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.w("div",{class:c,"on:click":W,el:e,role:"combobox",tabindex:0,"on:keydown":X,"aria-invalid":I,"aria-disabled":u,"aria-describedby":function(){return I()?"dropdown-view-model-error":void 0}},_.w("div",{class:"ytDropdownViewModelText"},MHu(t,I,q),sDS(t,q)),_.w("div",{class:"ytDropdownViewModelChevronDown"},
_.w(_.kD,{icon:"CHEVRON_DOWN"}))),hPw(t,b))},"Nf");_.mM(_.NN(function(W){var e=W.data;var t=function(m){var q=PNT(e());q.videoMetadata||(q.videoMetadata={});q.videoMetadata.sponsorshipsMetadata||(q.videoMetadata.sponsorshipsMetadata={});q.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(m)},b=function(m){var q=PNT(e());
q.scheduledRedirectMetadata||(q.scheduledRedirectMetadata={});q.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(m)};
return _.w("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.w("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.w("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.w(_.WL,{text:function(){return e().title}}),_.w(_.kD,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.w(_.WL,{text:function(){return e().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.w(_.nU,{data:function(){return e().tierChoices}},{dropdownViewModel:function(m){return _.w("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.w(_.DDu,{data:m.data,
onSelected:t}))}}),_.w(_.nU,{data:function(){return e().startTimeChoices}},{dropdownViewModel:function(m){return _.w("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.w(_.DDu,{data:m.data,
onSelected:b}))}}),_.w(_.WL,{text:function(){return e().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.w("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.w(_.nU,{data:function(){return e().scheduleButton}},{panelFooterViewModel:_.sM})))},"Of"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;W=W.className===void 0?"":W.className;var t=_.D_(JGg,function(){return e().flowStateEntityKey||""}),b={};
b=_.ve("ytFlowBottomBarViewModelFlowBottomBarButtons",(b.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},b));
var m={},q=_.ve("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",b,(m.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},m.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},m));
m={};var Q=_.ve("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",b,(m.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},m.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},m));
b={};b=_.ve("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return e().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
b));
W=_.ve("ytFlowBottomBarViewModelHost",W);return _.w("yt-flow-bottom-bar-view-model",{class:W},_.w(_.G,{cond:function(){var X;return(X=e())==null?void 0:X.textSection},
then:function(X){return _.w("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.w(_.WL,{text:X}))}}),_.w("div",{class:b},_.w(_.nU,{data:function(){return e().secondaryButton}},{buttonViewModel:function(X){return _.w(_.MV,{data:X.data,
className:Q})}}),_.w(_.nU,{data:function(){return e().primaryButton}},{buttonViewModel:function(X){return _.w(_.MV,{data:X.data,
className:q,buttonOverrides:function(){var I;return{disabled:!((I=t())==null||!I.primaryButtonDisabled)}}})}})))},"Pf"),"yt-flow-bottom-bar-view-model",{props:{data:_.Eu,
className:_.bt}});var StQ="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Hr=function(){var W=_.O.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.hideBottomBar=!1;W.fitContent=!1;return W};
_.Z(Hr,_.O);_.r=Hr.prototype;_.r.ready=function(){_.S("enable_pdp_icon_prefetch")&&_.Z3S(_.ee().resolve(_.FO),0,StQ)};
_.r.focus=function(W){this.topBar?_.L_(this.topBar,W):this.paperDialog.focus(W)};
_.r.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16906_scroller&&(this.JSC$16906_scroller.dialogElement=this.paperDialog,this.JSC$16906_scroller.attached&&typeof this.JSC$16906_scroller.attached==="function"&&this.JSC$16906_scroller.attached())};
_.r.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var e;this.bottomBar=!((e=this.data)==null||!e.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.r.onProgressChanged=function(){var W,e,t=((e=(W=this.data)==null?void 0:W.progress)!=null?e:0)*100;this.progressElement.style.width=t+"%"};
_.r.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.r.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",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(W){return _.S("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Ec.Object.defineProperties(Hr.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var W;return _.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.l((W=this.data)==null?void 0:W.content,naw)}}});
Hr.prototype.onProgressChanged=Hr.prototype.onProgressChanged;Hr.prototype.onDataChanged=Hr.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hr.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hr.prototype,"enableScrollingFix",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hr.prototype,"bottomBar",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hr.prototype,"hideBottomBar",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hr.prototype,"containsExploreHub",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hr.prototype,"fitContent",void 0);_.P([_.vG("#progress"),_.Y("design:type",HTMLElement)],Hr.prototype,"progressElement",void 0);
_.P([_.vG("#scroller"),_.Y("design:type",Object)],Hr.prototype,"JSC$16906_scroller",void 0);_.P([_.vG("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],Hr.prototype,"topBar",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hr.prototype,"onDataChanged",null);_.P([_.ul("data.progress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hr.prototype,"onProgressChanged",null);
_.P([_.h({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Hr);
_.H(Hr,"ytd-flow-step-renderer",function(){if(eiC!==void 0)return eiC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return eiC=W},{mode:1});var BMu=function(W){this.resolveCommand=W;this.steps={}},oqM=function(W,e){e=_.R(e||[]);
for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=Object.values(t)[0],m=void 0;if((m=b)==null?0:m.stepId)W.steps[b.stepId]=t}},$DM=function(W,e){var t,b,m,q,Q;
return _.F(function(X){if((t=W.state)==null||!t.currentStepId)return X.return(void 0);b=lbU(W);if(!b)return X.return(Ztu(W));if(m=_.l(b,_.CQ$)){var I;((I=m.screenLoggingData)==null?0:I.screenVeType)&&_.FW(_.Sg(),m.screenLoggingData.screenVeType);((q=m)==null?0:q.onStepStartCommand)&&W.resolveCommand((Q=m)==null?void 0:Q.onStepStartCommand,{})}if(m&&e){I=m;var u,c,v,D;((u=e.flowLoggingData)==null?0:u.eventNamespace)&&((c=I.flowEventData)==null?0:c.eventType)&&((v=I.flowEventData)==null?0:v.eventMetadata)&&
((D=e.flowLoggingData)==null?0:D.flowType)&&(u=_.IX(e.flowLoggingData.eventNamespace,I.flowEventData.eventType,I.flowEventData.eventMetadata),_.aX(_.wD(),u,e.flowLoggingData.flowType));e.steps&&!e.steps.includes(b)&&e.steps.push(b)}return X.return(b)})};
BMu.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
BMu.prototype.handleUpdateFlowCommand=function(W){W.steps&&oqM(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(lbU(this)),this.awaitFlowContinuation=void 0)};
BMu.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Ztu=function(W){return _.F(function(e){return W.getFlowContinuationCommand?e.return(new Promise(function(t){W.awaitFlowContinuation=t;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):e.return(Promise.resolve(void 0))})},lbU=function(W){var e;
if((e=W.state)!=null&&e.currentStepId)return W.steps[W.state.currentStepId]};var Ki=function(){var W=_.O.apply(this,arguments)||this;W.flowState=new BMu(function(e,t){t=t===void 0?{}:t;_.uL.instance.resolveCommand(e,{form:{form:t,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.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"};return W};
_.Z(Ki,_.O);_.r=Ki.prototype;_.r.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.r.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"}}}};
_.r.focus=function(W){var e=this;_.hc(function(){var t=_.rz(e.hostElement).querySelector("ytd-flow-step-renderer");(t==null?0:t.topBar)?t.focus(W):e.topBar&&_.L_(e.topBar,W)},1)};
_.r.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.r.computeTopBarHidden=function(W){var e;return!((e=_.l(W,_.CQ$))==null||!e.topBarOverride)};
_.r.dataChanged=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1){((e=W.data)==null?0:e.steps)&&oqM(W.flowState,W.data.steps);if((t=W.data)==null?0:t.flowContinuationCommand){var m=W.flowState,q=W.data.flowContinuationCommand;q&&(m.getFlowContinuationCommand=q)}return _.a(b,$DM(W.flowState,W.data),2)}W.currentFlowStep=b.yieldResult;_.u8(b)})};
_.r.flowChanged=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1){if(!W.flow)return t.return();W.flowState.state=W.flow;W.isLoading=!0;return _.a(t,$DM(W.flowState,W.data),2)}e=t.yieldResult;if(!e||W.flow.isLoading)return t.return();W.currentFlowStep=e;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();_.u8(t)})};
_.r.autofocusAndRefit=function(){var W=this,e=_.ee().resolve(_.Wi(_.FN)),t=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),b=document.querySelector("yt-report-form-confirmation-page-view-model"),m=document.querySelector("yt-report-form-details-page-view-model"),q=document.querySelector("yt-report-form-reason-select-page-view-model"),Q=document.querySelector("yt-contributor-zero-state-view-model"),
X=document.querySelector("yt-structured-context-note-view-model"),I=document.querySelector("yt-note-view-model");(!t&&e&&e.isKeyBoardInUse()||b||!t&&m||!t&&q||Q||X||I)&&_.EH(this.hostElement);_.Uc(this,function(){_.q2(W.hostElement,"yt-refit")})};
_.r.handleUpdateFlowCommand=function(W){this.data&&(W=_.l(W,jhQ),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.r.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.l(W,pXE),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.gN("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.r.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.l(W,yEl),W.targetId===this.data.targetId)){var e=[].concat(_.kP(this.flow.stepIdStack||[]));e.length>1?(e.pop(),this.ytdReduxBehavior.dispatch(_.gN("flowStateEntity",this.flow.key,{currentStepId:e[e.length-1],stepIdStack:e}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.r.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.l(W,JE1),W.targetId===this.data.targetId&&W.endpointCommand)){var e=_.l(this.flow,xc1);e&&_.l(W.endpointCommand,_.IBo)&&(_.l(W.endpointCommand,_.IBo).feedbackData=e.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.r.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.gN("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Ki.prototype.flowChanged=Ki.prototype.flowChanged;Ki.prototype.dataChanged=Ki.prototype.dataChanged;Ki.prototype.onPopupClosed=Ki.prototype.onPopupClosed;_.P([_.y(_.fu),_.Y("design:type",Object)],Ki.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ki.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ki.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ki.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ki.prototype,"initialState",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ki.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Object)],Ki.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ki.prototype,"currentFlowStep",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ki.prototype,"onPopupClosed",null);_.P([_.J({selectorArgs:["data.flowStateEntityKey"],selector:JGg}),_.Y("design:type",Object)],Ki.prototype,"flow",void 0);_.P([_.vG("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],Ki.prototype,"topBar",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Ki.prototype,"dataChanged",null);_.P([_.BG("flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Ki.prototype,"flowChanged",null);_.P([_.h({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Ki);
_.knE=_.Ro()(Ki,"ytd-flow-root-renderer",function(){if(WJU!==void 0)return WJU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return WJU=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var pO9;var RK=null;_.mM(_.NN(function(W){return _.w("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.w("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.w(_.WL,{text:function(){return W.data().text}}),_.w("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Qf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Eu}});var yJU=_.NN(function(W){var e=W.playerControlsProps;var t=W.isShortsPage;return _.w("yt-bigboard",null,_.w(_.G,{cond:function(){return e().isDragging},
then:function(){return _.w("div",{class:"ytBigboardStoryboardHost"},_.w(_.XRU,{progressBarProps:e,isShortsPage:t}))}}))},"Rf");
yJU.idomCompat=!0;_.Pr={ACCOUNT_LABEL:QG("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:QG("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:QG("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:QG("AD_BADGE_HINT"),AD_BADGE_TEXT:QG("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:QG("ALL_CHANNELS_LABEL"),AMBIENT_MODE:QG("AMBIENT_MODE"),AMBIENT_MODE_OFF:QG("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:QG("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:QG("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:QG("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:QG("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:QG("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:QG("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:QG("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:QG("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:QG("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:QG("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:QG("AUTO_ZOOM","Auto zoom"),BACK:QG("BACK"),CANCEL:QG("CANCEL"),CHANNEL_SWITCHER_LABEL:QG("CHANNEL_SWITCHER_LABEL"),CLOSE:QG("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:QG("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:QG("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:QG("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:QG("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:QG("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:QG("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:QG("COMMENT_MODAL_CONTENT"),CONFIRM_OK:QG("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:QG("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:QG("COPIED_TO_CLIPBOARD"),COPY:QG("COPY"),COPY_DEBUG_INFO:QG("COPY_DEBUG_INFO"),COPY_EMBED_CODE:QG("COPY_EMBED_CODE"),
COPY_LINK_LABEL:QG("COPY_LINK_LABEL"),COPY_VIDEO_URL:QG("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:QG("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:QG("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:QG("DELETE_FROM_DOWNLOADS"),DIALOG:QG("DIALOG"),DONE:QG("DONE"),DOWNLOAD:QG("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:QG("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:QG("FLAG_CONFIRM"),FLAG_CONTENT:QG("FLAG_CONTENT"),FLAG_LABEL:QG("FLAG_LABEL"),FLAG_TITLE:QG("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:QG("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:QG("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:QG("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:QG("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:QG("HIDE_SEARCH_FILTERS_LABEL"),HOME:QG("HOME","Home"),INVALID_RESPONSE_RECEIVED:QG("INVALID_RESPONSE_RECEIVED"),LIBRARY:QG("LIBRARY","Library"),LISTENING:QG("LISTENING"),LOADING:QG("LOADING"),LONG_PRESS_MIC_TO_SPEAK:QG("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:QG("LOOP"),MENU_DESKTOP:QG("MENU_DESKTOP"),
MENU_EXIT:QG("MENU_EXIT"),MENU_FEEDBACK:QG("MENU_FEEDBACK"),MENU_HELP:QG("MENU_HELP"),MENU_IMPRESSUM:QG("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:QG("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:QG("MENU_SETTINGS"),MENU_SIGN_IN:QG("MENU_SIGN_IN"),MENU_TITLE:QG("MENU_TITLE"),MENU_YOUR_DATA:QG("MENU_YOUR_DATA"),MORE_INFO:QG("MORE_INFO"),MORE_OPTIONS:QG("MORE_OPTIONS"),MUTE_VOLUME:QG("MUTE_VOLUME"),NEW_PLAYLIST:QG("NEW_PLAYLIST"),NEXT_VIDEO:QG("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:QG("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:QG("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:QG("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:QG("NOT_FOUND_TITLE"),NO_DOWNLOADS:QG("NO_DOWNLOADS"),NO_MIC_INPUT:QG("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:QG("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:QG("OOPS_MESSAGE"),OPEN_APP:QG("OPEN_APP"),OPEN_YOUTUBE:QG("OPEN_YOUTUBE"),PAUSE:QG("PAUSE"),PLAY:QG("PLAY"),PLAYER_CAPTION:QG("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:QG("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:QG("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:QG("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:QG("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:QG("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:QG("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:QG("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:QG("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:QG("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:QG("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:QG("PLAYER_MINIMIZE"),PLAYER_NEXT:QG("PLAYER_NEXT"),PLAYER_PAUSE:QG("PLAYER_PAUSE"),PLAYER_PLAY:QG("PLAYER_PLAY"),
PLAYER_PREVIOUS:QG("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:QG("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:QG("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:QG("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:QG("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:QG("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:QG("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:QG("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:QG("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:QG("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:QG("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:QG("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:QG("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:QG("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:QG("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:QG("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:QG("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:QG("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:QG("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:QG("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:QG("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:QG("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:QG("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:QG("PLAY_ALL"),PLEASE_FIX_ERRORS:QG("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:QG("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:QG("PREVIOUS_VIDEO"),PRIVACY_POLICY:QG("PRIVACY_POLICY"),RELOAD:QG("RELOAD"),REQUIRED_LABEL:QG("REQUIRED_LABEL"),SAVE_PLAYLIST:QG("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:QG("SCRUB_SLIDE_USER_EDU"),SEARCH:QG("SEARCH","Search"),
SEARCH_APPEND_LABEL:QG("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:QG("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:QG("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:QG("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:QG("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:QG("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:QG("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:QG("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:QG("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:QG("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:QG("SEEK_SLIDER"),SETTINGS_LABEL:QG("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:QG("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:QG("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:QG("SHOW_LESS"),SHOW_MORE:QG("SHOW_MORE"),SHOW_PLAYER_CONTROLS:QG("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:QG("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:QG("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:QG("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:QG("SIGN_IN_ON_WEB"),STABLE_VOLUME:QG("STABLE_VOLUME"),STABLE_VOLUME_OFF:QG("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:QG("STABLE_VOLUME_ON"),STATS_FOR_NERDS:QG("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:QG("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:QG("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:QG("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:QG("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:QG("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:QG("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:QG("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:QG("TIMESTAMP_SECONDS"),TOGGLE_OFF:QG("TOGGLE_OFF"),TOGGLE_ON:QG("TOGGLE_ON"),TRENDING:QG("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:QG("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:QG("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:QG("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:QG("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:QG("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:QG("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:QG("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:QG("VIDEO_LINK_LABEL")};var jAU=_.NN(function(W){var e=W.playerApi;W=_.zT("button",function(b){_.xs(b,36843)});
var t=QG("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.w("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.w("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:t,"aria-label":t,"on:click":_.Be(function(){_.O9(36843);e&&e().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.w("span",null,_.w(_.kD,{icon:"FAST_FORWARD"}))))},"Sf");var CVu=_.NN(function(W){var e=W.appApi;W=_.zT("button",function(b){_.xs(b,62946)});
var t=QG("OPEN_IN_MINIPLAYER");return _.w("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.w("button",{el:W,class:"ytMiniplayerButtonButton",title:t,"aria-label":t,"on:click":_.Be(function(){_.O9(62946);var b,m;(m=(b=e()).openInMiniplayer)==null||m.call(b);return!1})},_.w(_.kD,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Tf");var nqQ=_.NN(function(W){var e=W.playerApi;W=_.zT("button",function(q){_.xs(q,142812)});
var t=_.R(_.up(!1,void 0,"I3VCyb")),b=t.next().value,m=t.next().value;t=function(){return QG("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(b()?1:2)})};
return _.w("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.w("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:t,"aria-label":t,"on:click":_.Be(function(){_.O9(142812);if(e){var q=e(),Q=b();q.setPlaybackRate(Q?1:2);m(!b())}return!1})},_.w("span",null,_.w(_.kD,{icon:function(){return b()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Uf");var fbB=_.NN(function(W){var e=W.title;var t=W.ariaLabel;var b=W.icon;var m=W.command;var q=W.veType;W=_.zT("button",function(Q){q&&_.xs(Q,q())});
return _.w("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.w("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:e,"aria-label":t,"on:click":_.Be(function(){q&&_.O9(q());m&&_.ee().resolve(_.tQ).resolveCommand(m())})},_.w(_.kD,{icon:b})))},"Vf");var d1="";var gqu=_.NN(function(W){var e=W.playerControlsProps,t=W.onClickFn;W=_.SC(function(){var q=e(),Q=-1;q.captionsAvailable&&(Q=q.captionsEnabled?1:0);return Q},void 0,"WecR8e");
var b=_.SC(function(){var q=e();return q.captionsAvailable?_.Gv(q.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Gv("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),m=_.SC(function(){var q=e();
q=q.captionsAvailable?q.captionsEnabled:void 0;return q},void 0,"Q17ly");
return _.w("yt-closed-captions-toggle-button",null,_.w(_.bPU,{captionIconType:W,ariaLabel:b,ariaPressed:m,onClick:function(q){var Q=e();if(Q.captionsAvailable){var X=Q.playerApi;if(X){var I=Q.playerApi;if(I){var u=d1;if(u){I=I.getOption("captions","track");var c;d1=(c=I?I.displayName:null)!=null?c:u}else _.J5(I)?(u=_.LsD(I),d1=u.length?(c=xY1(u))?c.displayName:u[0].displayName:""):d1=""}OPl(X);_.S("mweb_disable_set_state_captions_killswitch")&&Q.setState({captionsEnabled:!Q.captionsEnabled})}}var v,
D;(D=(v=Q.appApi).showCaptionsToggleToast)==null||D.call(v,Q);t==null||t(q)},
isOverlay:!0}))},"Wf");var TM$=_.NN(function(W){var e=W.data;return _.w("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.w(_.n2,{data:function(){return{type:16,text:_.Zq2(e().label)}}}))},"Xf");var JJM=_.NN(function(W){var e=_.ve("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.w("animated-seek-arrows",{class:_.ve("ytPlayerControlsAnimatedSeekArrowsHost")},_.w("span",{class:e}),_.w("span",{class:e}),_.w("span",{class:e}))},"Yf");
JJM.idomCompat=!0;var xDu=_.NN(function(){var W=_.Gv("PLAYER_SECONDS",{seconds_placeholder:"30"}),e=_.R(_.up(!1,void 0,"Yj8msb")),t=e.next().value,b=e.next().value,m=_.R(_.up(!1,void 0,"r9Z50e"));e=m.next().value;var q=m.next().value;m={};var Q=_.ve("jumpForwardOverlayOverlay",(m.jumpForwardOverlayOverlayHidden=e,m));_.nt(function(){var X=null,I=null,u=function(){X!==null&&_.g0().cancelJob(X);I!==null&&_.g0().cancelJob(I);q(!0);b(!0);_.F6(_.g0(),function(){q(!1)});
X=_.F6(_.g0(),function(){q(!0);I=_.F6(_.g0(),function(){b(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",u);_.fh(function(){window.removeEventListener("jump-forward-clicked",u)})});
return _.w("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.w(_.G,{cond:t,then:function(){return _.w("div",{class:Q},_.w(JJM,{direction:1,size:"large"}),_.w("div",null,W))}}))},"Zf");var Ot9=_.Pr.MUTE_VOLUME,Mm$=_.Pr.UNMUTE_VOLUME,sAM=_.NN(function(W){var e=W.muteIconType;var t=W.onClick;var b=W.useOutlineIcon;var m=W.useDelhiIcons;W=_.zT("button",function(X){_.xs(X,28662)});
var q=function(){var X=e(),I=b==null?void 0:b(),u=m==null?void 0:m(),c="",v="";switch(X){case -1:case 0:c=I?"VOLUME_OFF":u?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";v=Mm$;break;case 1:c=I?"VOLUME_UP_OUTLINE":u?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";v=Ot9;break;case 2:c=I?"VOLUME_DOWN_OUTLINE":u?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";v=Ot9;break;default:_.Qw(X)}return{iconName:c,ariaLabel:v}},Q=function(){return q().ariaLabel};
return _.w("ytm-mute-button",{class:"ytmMuteButtonHost"},_.w("button",{el:W,class:"ytmMuteButtonButton",title:Q,"aria-label":Q,"on:click":_.Be(function(X){_.O9(28662);t==null||t(X);return!1})},_.w("span",null,_.w(_.kD,{icon:function(){return q().iconName}}))))},"$f");var hTU=_.NN(function(W){var e=W.volumeProps;var t=W.onClickFn;var b=W.useOutlineIcon;var m=W.useDelhiIcons;return _.w("yt-mute-toggle-button",null,_.w(sAM,{muteIconType:function(){var q=e();return q.volumeMuted||q.volume===0?0:q.volume>50?1:2},
onClick:function(q){var Q=e().playerApi;Q&&(Q.isMuted()?Q.unMute():Q.mute(!1));t==null||t(q)},
useOutlineIcon:function(){return!(b==null||!b())},
useDelhiIcons:function(){return!(m==null||!m())}}))},"ag");
hTU.idomCompat=!0;var HtT=_.NN(function(W){var e=W.data;var t=_.zT("ytm-paid-content-overlay-renderer");return _.w("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:t,"on:animationend":_.Be(function(){t.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.w(_.XN,{command:function(){return e().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.w(_.G,{cond:function(){var b;return(b=e().icon)==null?void 0:b.iconType},
then:function(){return _.w("span",null,_.w(_.kD,{icon:function(){var b;return(b=e().icon)==null?void 0:b.iconType}}))}}),_.w("div",{class:"ytmPaidContentOverlayText"},_.w(_.WL,{text:function(){return e().text}})),_.w(_.G,{cond:function(){return e().navigationEndpoint},
then:function(){return _.w(_.kD,{icon:"CHEVRON_RIGHT"})}})))},"bg");
HtT.idomCompat=!0;var mcE=[].concat(_.kP([{register:function(W){var e=uzg(W),t;(t=W().playerApi)==null||t.addEventListener("onVolumeChange",e);return function(){}}},
{register:function(W){var e=cEE(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",e);W==null||W.addEventListener("captionssettingschanged",e);W==null||W.addEventListener("onCaptionsTrackListChanged",e);return function(){}}},
{register:function(W){if(!_.S("mweb_screenreader_accessible_player"))return function(){};
var e=val(W),t=document.querySelector("video");t==null||t.addEventListener("touchend",e);return function(){t==null||t.removeEventListener("touchend",e)}}},
{register:function(W){if(!_.S("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var e=val(W),t=document.querySelector("video");t==null||t.addEventListener("focus",e);return function(){t==null||t.removeEventListener("focus",e)}}}]),[{register:function(W){var e=XXC(W),t;
(t=W().playerApi)==null||t.addEventListener("onStateChange",e);return function(){}}},
{register:function(W){var e=IAC(W),t;(t=W().playerApi)==null||t.addEventListener("onPlaybackRateChange",e);return function(){}}},
{register:function(W){var e=aAB(W),t;(t=W().playerApi)==null||t.addEventListener("onVideoDataChange",e);return function(){}}},
{register:function(W){var e=wXQ(W),t,b;(t=W())==null||(b=t.playerApi)==null||b.addEventListener("onVideoProgress",e);return function(){}}}]);var K79=_.NN(function(W){var e=W.data;var t=function(){return _.Gv("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+e().playbackRate})};
return _.w(_.G,{cond:function(){return e().playbackRate&&e().playbackRate!==1},
then:function(){return _.w("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.w("div",{class:"ytPlaybackRateOverlayOverlay"},_.w(JJM,{direction:1,size:"small"}),_.w("div",{class:"ytPlaybackRateOverlayLabel"},t)))}})},"cg");var PVB=_.NN(function(W){var e=W.data;return _.w("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.w(_.G,{cond:function(){var t,b=(t=e())==null?void 0:t.playerResponse,m;return b==null?void 0:(m=b.paidContentOverlay)==null?void 0:m.paidContentOverlayRenderer},
then:function(t){return _.w(HtT,{data:t})}}))},"eg"),VmC=_.NN(function(W){var e=W.props;
var t=W.data;var b=W.options;var m=function(){var u,c,v,D;return(u=t())==null?void 0:(c=u.playerResponse)==null?void 0:(v=c.playerConfig)==null?void 0:(D=v.inlinePlaybackConfig)==null?void 0:D.showAudioControls},q=function(){var u,c;
if(m()&&((u=b())==null?void 0:(c=u.additionalButton)==null?void 0:c.button)!==void 0){var v,D,B;u=(v=t())==null?void 0:(D=v.playerApi)==null?void 0:(B=D.getSize())==null?void 0:B.height;if(!(u===void 0||u<180)){var k,n;return(k=b())==null?void 0:(n=k.additionalButton)==null?void 0:n.button}}},Q=function(){var u,c;
return(u=b())==null?void 0:(c=u.additionalButton)==null?void 0:c.thumbnailOverlayButtonRenderers},X=function(){var u,c;
return(u=b())==null?void 0:(c=u.additionalButton)==null?void 0:c.thumbnailOverlayButtonViewModels},I=function(){var u=[_.w(hTU,{volumeProps:e}),
_.w(gqu,{playerControlsProps:e})];q()===1&&u.push(_.w(jAU,{playerApi:function(){return e().playerApi}}));
q()===2&&u.push(_.w(CVu,{appApi:function(){return e().appApi}}));
q()===3&&u.push(_.w(nqQ,{playerApi:function(){return e().playerApi}}));
var c=Q();if(q()===4&&c){c=_.R(c);for(var v=c.next(),D={};!v.done;D={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},v=c.next()){v=v.value;D.tooltip$jscomp$2=v.tooltip;var B=void 0,k=void 0;D.ariaLabel$jscomp$20=((B=v.accessibility)==null?void 0:(k=B.accessibilityData)==null?void 0:k.label)||D.tooltip$jscomp$2;B=void 0;D.icon$jscomp$52=(B=v.icon)==null?void 0:B.iconType;D.command$jscomp$569=v.command;D.tooltip$jscomp$2&&D.ariaLabel$jscomp$20&&D.icon$jscomp$52&&
u.push(_.w(fbB,{title:function(n){return function(){return n.tooltip$jscomp$2}}(D),
ariaLabel:function(n){return function(){return n.ariaLabel$jscomp$20}}(D),
icon:function(n){return function(){return n.icon$jscomp$52}}(D),
command:function(n){return function(){return n.command$jscomp$569}}(D)}))}}c=X();
if(q()===4&&c)for(c=_.R(c),v=c.next(),D={};!v.done;D={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},v=c.next())v=v.value,D.tooltip$jscomp$3=v.title,D.ariaLabel$jscomp$21=v.accessibilityText||D.tooltip$jscomp$3,D.icon$jscomp$53=v.iconName,D.command$jscomp$570=_.Mk(v.onTap),D.tooltip$jscomp$3&&D.ariaLabel$jscomp$21&&D.icon$jscomp$53&&u.push(_.w(fbB,{title:function(n){return function(){return n.tooltip$jscomp$3}}(D),
ariaLabel:function(n){return function(){return n.ariaLabel$jscomp$21}}(D),
icon:function(n){return function(){return n.icon$jscomp$53}}(D),
command:function(n){return function(){return n.command$jscomp$570}}(D)}));
return u};
return _.w(_.G,{cond:m,then:function(){return _.w("div",{class:"ytInlinePlayerControlsTopRightControls"},_.w(_.lV,{each:I},function(u){return _.w("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.w("div",{class:"ytInlinePlayerControlsButtonIcon"},u))}))}})},"fg"),zTw=_.NN(function(W){var e=W.props;
var t=W.data;var b=W.options;W={};W=_.ve("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var m;return DcM(t(),b())&&((m=b())==null?void 0:m.insetProgressBar)&&(e().isHovering||e().isDragging)},W));
return _.w("div",{class:W},_.w(itg,{data:t}),_.w(_.G,{cond:function(){var m;return!((m=b())==null?0:m.hideTimeDisplay)},
then:function(){return _.w(YtE,{props:e,data:t})}}))},"gg"),itg=_.NN(function(W){var e=W.data;
return _.w(_.nU,{data:function(){var t;return eFT((t=e())==null?void 0:t.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:TM$})},"hg"),YtE=_.NN(function(W){var e=W.props;
var t=W.data;return _.w(_.G,{cond:function(){return e().isLive},
then:function(){return _.w(UDl,null)},
else:function(){return _.w(L7S,{props:e,data:t})}})},"ig"),L7S=_.NN(function(W){var e=W.props;
var t=W.data;var b=_.SC(function(){var m;return b3Q((m=t())==null?void 0:m.thumbnailOverlays)},void 0,"kUmuA");
return _.w("div",{class:_.ve("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Pr.PLAYER_TIME_ELAPSED+" "+_.iIQ(e().playedTime)}},_.w(_.n2,{data:function(){var m=_.iIQ(e().videoDuration-e().playedTime);
return Object.assign({},{type:16,text:m},b())}}))},"jg"),UDl=_.NN(function(){var W=_.ve("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.w("div",{class:W},_.w(_.n2,{data:{type:17,text:_.Pr.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"kg"),EqC=_.NN(function(W){var e=W.props;
var t=W.data;var b=W.options;return _.w(_.vEC,{progressBarProps:e,config:function(){var m,q=_.l((m=t())==null?void 0:m.multiMarkersPlayerBar,_.Ofr),Q;m=((Q=b())==null?0:Q.insetProgressBar)?2:1;var X;Q=(X=b())==null?void 0:X.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:m,chapterData:q,isInlinePlayback:!0,doSeekOnClick:Q,playheadDotBehavior:Q?1:0}}})},"lg");_.mM(_.NN(function(W){var e=W.data;var t=W.appApi;var b=W.options;var m=FEu(e,GgQ(t));W={};t={};return _.w("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.w("div",{class:_.ve("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return m().isHovering},W))}),_.w(xDu,null),_.w(K79,{data:m}),_.w(PVB,{data:e}),_.w(yJU,{playerControlsProps:m,
isShortsPage:!1}),_.w("div",{class:_.ve((t.ytInlinePlayerControlsControlsHidden=function(){return m().isDragging},t))},_.w(VmC,{props:m,
data:e,options:b}),_.w(zTw,{props:m,data:e,options:b})),_.w(_.G,{cond:function(){return DcM(e(),b())},
then:function(){return _.w(EqC,{props:m,data:e,options:b})}}))},"dg"),"yt-inline-player-controls",{props:{data:_.Eu,
appApi:_.bt,options:_.Eu}});var VG=function(){var W=_.O.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$16962_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$16962_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$16962_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.Z(VG,_.O);_.r=VG.prototype;
_.r.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.S("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"}}}};
_.r.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16962_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16962_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16962_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16962_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.aH(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.aH(this,this.onScroll))};
_.r.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.aH(this,this.onScroll))};
_.r.onPageTypeChange=function(){this.deactivate()};
_.r.onWindowResized=function(){this.deactivate()};
_.r.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.r.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var e;(e=this.player)==null||e.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.r.currentPageAllowed=function(){return!this.isWatchPage};
_.r.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var W=this.positionData,e=W.initialTopPosition,t=W.initialHorizontalPosition;_.XB(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-t+"px","--ytd-video-preview-translate-top":W.finalTopPosition-e+"px","--ytd-video-preview-original-top-position":e+"px","--ytd-video-preview-original-horizontal-position":t+"px",
"--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.r.handleOpenVideoPreviewAction=function(W){var e=this,t;return _.F(function(b){if(!e.currentPageAllowed())return b.return(0);e.opts=W;return(t=e.alignVideoPreviewForAnimation(W.thumbnail))?b.return(e.activate()):b.return(0)})};
_.r.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.r.onScroll=function(){var W,e;((W=this.opts)==null?0:W.isAutoplay)&&((e=this.opts)==null?0:e.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.r.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Tm.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.r.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.r.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",VG.JSC$16961_DEFAULT_CLICK_LOCATION_BEHAVIOR,VG.JSC$16961_CLICK_LOCATION_ID_MAP)};
_.r.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var e;return(e=this.opts)!=null&&e.mediaRenderer?!_.qN(this.opts.mediaRenderer).contains(W):!0};
_.r.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.r.onPlaybackStart=function(){var W=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$16962_preventProgressSaveTimer=
_.F6(_.Tm,function(){W.resetPreventProgressSaveTimer()},1E4);
var e;if((e=this.opts)==null?0:e.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.F6(_.Tm,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var t;this.player.setGlobalCrop(((t=this.opts)==null?0:t.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.r.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var e;return(e=this.opts)==null?void 0:e.roundedCornersSize}var t;if((t=this.opts)==null?0:t.enableRounding){var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="small")return 1;var m;if(((m=this.opts)==null?void 0:m.thumbnailSize)==="medium")return 2;var q;if(((q=this.opts)==null?void 0:q.thumbnailSize)==="large")return 3}return _.S("web_imp_inset_progress_bar")?3:0};
_.r.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.r.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.r.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.r.activate=function(){var W=this,e,t,b,m,q,Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:if(!W.currentPageAllowed())return c.return(0);t=(e=W.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint;b=_.Vp.instance;if(!t||!b)return c.return(0);W.playbackIntentTriggered=!0;((m=W.opts)==null?0:m.mediaRenderer)&&((q=W.opts)==null||!q.isAutoplay)&&dLS(W.opts.mediaRenderer,function(){W.deactivate()});
_.Uc(W,function(){W.revealPreviewUi()});
Q={};_.S("enable_unknown_lact_fix_on_html5")&&(_.ee().resolve(_.gd),Q.lact=_.be());W.videoPreviewFetchRequest=zPT(b,W.getInlinePlaybackRequestData(W.videoPreviewData),Q);_.Qh(c,2);return _.a(c,W.videoPreviewFetchRequest,4);case 4:X=c.yieldResult;if(((I=X)==null?void 0:(u=I.playabilityStatus)==null?void 0:u.status)==="OK")return c.return(W.handlePlayerResponse(X));throw Error("Mj");case 2:_.w9(c),W.deactivate();case 3:return c.return(1)}})};
_.r.getInlinePlaybackRequestData=function(W){var e,t=_.S("web_imp_player_mute_params")?((e=this.opts)==null?void 0:e.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:t}};
_.r.handlePlayerResponse=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v;return _.F(function(D){if(D.nextAddress==1){t=e.getInlinePlaybackVideoId();if(!(((b=W)==null?0:(m=b.videoDetails)==null?0:m.videoId)&&e.currentPageAllowed()&&e.playbackIntentTriggered&&e.opts&&t))return e.deactivate(),D.return(0);if(W.videoDetails.videoId!==t)return D.return(0);e.enableAudioControls=!!((q=W.playerConfig)==null?0:(Q=q.inlinePlaybackConfig)==null?0:Q.showAudioControls);W.trackingParams=e.getInlinePlaybackTrackingParams();
if(!e.inlinePlayer)return D.return(0);X={};if(u=_.l((I=e.videoPreviewData)==null?void 0:I.inlinePlaybackEndpoint,_.z4))X.watch_endpoint=u;if(e.videoPreviewData){var B,k=(B=_.l(e.videoPreviewData.inlinePlaybackEndpoint,_.z4))==null?void 0:B.startTimeSeconds;k!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
k,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(k*1E3))}e.inlinePlayer.loadVideoWithPlayerResponse(W,X);if(e.JSC$16962_playerPromise)return D.jumpTo(2);e.JSC$16962_playerPromise=e.inlinePlayer.getPlayerPromise();return _.a(D,e.JSC$16962_playerPromise,3)}D.nextAddress!=2&&(c=D.yieldResult,c.setInlinePreview(!0),c.setSizeStyle(!1,!0),e.ytPlayerListenerBehavior.listenToPlayerEvents(c,e.JSC$16962_playerEvents),e.player=c,_.q2(e.hostElement,"player-api-ready"));((v=e.opts)==
null?0:v.showPlayerControls)&&e.videoPreviewData&&e.player&&(e.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:e.videoPreviewData.thumbnailOverlays,playerApi:e.player},e.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!e.unroundCornersForPlayback,additionalButton:e.getAdditionalButtonType(e.videoPreviewData.thumbnailOverlays)});return D.return(2)})};
_.r.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.J3z(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.r.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,e=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(e==null?void 0:e.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(e==null?void 0:e.initialHorizontalPosition)};
_.r.getThumbnailPositionData=function(){var W,e;if((e=this.opts)==null||!e.thumbnail)return null;e=this.opts.thumbnail;var t=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var b=e.getBoundingClientRect();W=b.width;e=b.height;var m=b.top+window.scrollY;b=b.left+window.scrollX;var q=t?Math.ceil(W):W;t=t?Math.ceil(e):e;var Q=W/q;W={initialScale:Q,initialTopPosition:m-12*Q,finalTopPosition:m-12-(t-e)/2,initialHorizontalPosition:b-(12+(q-W)/2),finalHorizontalPosition:b-12-(q-W)/
2,videoPreviewWidth:q,videoPreviewHeight:t};return W};
_.r.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.rO({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.r.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Tm.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.r.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;RK&&(RK.disconnect(),RK=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.r.isValidThumbnailOverlayButton=function(W,e){W=W.thumbnailOverlayButtonRenderer;var t;return!!W&&!!W.tooltip&&!((t=W.icon)==null||!t.iconType)&&e.includes(W.icon.iconType)};
_.r.isValidThumbnailOverlayButtonViewModel=function(W,e){var t;W=_.l((t=W.thumbnailOverlayButtonViewModel)==null?void 0:t.overlayButton,_.kb);return!!W&&!!W.title&&!!W.iconName&&e.includes(W.iconName)};
_.r.getAdditionalButtonType=function(W){var e=this;if(_.S("web_imp_fastforward_button"))return{button:1};if(_.S("web_imp_miniplayer_button"))return{button:2};if(_.S("web_imp_playback_speed_button"))return{button:3};var t=["BOX_STACK_3"],b=(W||[]).filter(function(q){return e.isValidThumbnailOverlayButton(q,t)}).map(function(q){return q.thumbnailOverlayButtonRenderer});
if(b.length)return{button:4,thumbnailOverlayButtonRenderers:b};var m=["BOX_STACK_3"];W=(W||[]).filter(function(q){return e.isValidThumbnailOverlayButtonViewModel(q,m)}).map(function(q){return _.l(q.thumbnailOverlayButtonViewModel.overlayButton,_.kb)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.r.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.r.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.r.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Fe(function(){W.updateWatchEndpointStartTime()},1E3)};
_.r.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.r.resetPreventProgressSaveTimer=function(){this.JSC$16962_preventProgressSaveTimer!==null&&(_.Tm.cancelJob(this.JSC$16962_preventProgressSaveTimer),this.JSC$16962_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.r.updateWatchEndpointStartTime=function(W){var e=this.videoPreviewData;if(this.player&&e!=null&&e.inlinePlaybackEndpoint&&!this.JSC$16962_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var t=_.l(e.navigationEndpoint,_.z4);t&&(t.startTimeSeconds=W);if(e=_.l(e.inlinePlaybackEndpoint,_.z4))e.startTimeSeconds=W}};
_.r.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.r.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.r.openInMiniplayer=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1){t=(e=W.videoPreviewData)==null?void 0:e.navigationEndpoint;if(!t)return b.return();_.G3().lockupActivation=!0;return _.a(b,_.sON(_.ee().resolve(_.Kn),t),2)}_.G3().userActivation=!0;_.u8(b)})};
_.r.navigateToWatch=function(W){var e,t=(e=this.videoPreviewData)==null?void 0:e.navigationEndpoint;if(t){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(t,W,!0);else{if(_.S("web_thumbnail_to_watch_transition")){var b,m;(b=this.opts)==null||(m=b.onNavigateToWatchCallback)==null||m.call(b)}_.q2(this.hostElement,"yt-navigate",{endpoint:t})}this.deactivate()}};
_.r.getInlinePlaybackVideoId=function(){var W,e;return(e=_.l((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.z4))==null?void 0:e.videoId};
_.r.getInlinePlaybackTrackingParams=function(){var W,e;return(W=this.videoPreviewData)==null?void 0:(e=W.inlinePlaybackEndpoint)==null?void 0:e.clickTrackingParams};
_.r.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.r.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.Ec.Object.defineProperties(VG.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var e;return(e=this.opts)==null?void 0:e.videoPreviewData[this.videoPreviewDataIndex]}var t;return(t=this.opts)==null?void 0:t.videoPreviewData}}});
VG.prototype.onIsAdsVideoChange=VG.prototype.onIsAdsVideoChange;VG.prototype.onInlinePreviewIsEnabledChange=VG.prototype.onInlinePreviewIsEnabledChange;VG.prototype.optsChanged=VG.prototype.optsChanged;VG.prototype.onMouseLeave=VG.prototype.onMouseLeave;VG.JSC$16961_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);VG.JSC$16961_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"}];
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],VG.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],VG.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],VG.prototype,"componentBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],VG.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.N$.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],VG.prototype,"ytSparklesClickLocationBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],VG.prototype,"opts",void 0);_.P([_.J(),_.Y("design:type",Object)],VG.prototype,"playerControlsData",void 0);
_.P([_.J(),_.Y("design:type",Object)],VG.prototype,"playerControlsAppApi",void 0);_.P([_.J(),_.Y("design:type",Object)],VG.prototype,"playerControlsOptions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VG.prototype,"noAnimation",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VG.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VG.prototype,"active",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VG.prototype,"playing",void 0);_.P([_.J({selector:_.viG}),_.Y("design:type",Boolean)],VG.prototype,"inlinePreviewIsEnabled",void 0);_.P([_.J(),_.Y("design:type",String)],VG.prototype,"pagePath",void 0);_.P([_.J({selector:_.Tq}),_.Y("design:type",Boolean)],VG.prototype,"isWatchPage",void 0);_.P([_.T("videoPreviewData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VG.prototype,"thumbnailData",null);
_.P([_.T("opts","active"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"hidePlayerControls",null);_.P([_.T("opts"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"isAdsVideo",null);_.P([_.T("opts"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"roundedCornersSmall",null);
_.P([_.T("opts"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"roundedCornersMedium",null);_.P([_.T("opts"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"roundedCornersLarge",null);_.P([_.T("opts"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VG.prototype,"unroundCornersForPlayback",null);
_.P([_.T("opts","videoPreviewDataIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VG.prototype,"videoPreviewData",null);_.P([_.J(),_.Y("design:type",Object)],VG.prototype,"videoPreviewDataIndex",void 0);_.P([_.vG("#inline-player"),_.Y("design:type",Object)],VG.prototype,"inlinePlayer",void 0);_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],VG.prototype,"onMouseLeave",null);
_.P([_.BG("opts"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VG.prototype,"optsChanged",null);_.P([_.BG("inlinePreviewIsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VG.prototype,"onInlinePreviewIsEnabledChange",null);_.P([_.ul("isAdsVideo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VG.prototype,"onIsAdsVideoChange",null);
_.P([_.h({is:"ytd-video-preview",disableElementRegistration:!0})],VG);
_.H(VG,"ytd-video-preview",function(){if(pO9!==void 0)return pO9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pO9=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var PEC,V6E,i9g;PEC=function(W){return _.S("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_theater")};
V6E=function(){var W=document.createElement("canvas"),e=W.getContext("2d");if(!e)throw Error("Zl");_.O8(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:e}};
i9g=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.S("kevlar_watch_cinematics_css_blur")};
_.Y79=function(W,e,t){return Math.abs(W-e)<=(t||1E-6)};
_.ztg=function(W,e){return W==e?!0:W&&e?W.width==e.width&&W.height==e.height:!1};_.UCC=new _.z("notificationActionRenderer");var L9g=function(W){var e=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Xu;this.element.addEventListener("load",function(){e.loaded=!0;e.resolver.resolve(e.element)});
this.element.addEventListener("error",function(){e.failed=!0});
this.element.src=W};var E3C=function(W,e){this.image=W;this.frame=e};
E3C.prototype.drawToCanvas=function(W,e){var t=this.frame.width/this.frame.columns,b=this.frame.height/this.frame.rows,m=e.offsetX,q=e.offsetY;PEC(e)?(W.fillStyle=e.fullscreen?"#000":"#0f0f0f",W.fillRect(m,q,(e==null?void 0:e.width)||t,(e==null?void 0:e.height)||b)):W.drawImage(this.image,this.frame.column*t,this.frame.row*b,t,b,m,q,(e==null?void 0:e.width)||t,(e==null?void 0:e.height)||b)};
var Alu=function(W){this.color=W};
Alu.prototype.drawToCanvas=function(W,e){var t=e.offsetX,b=e.offsetY,m=e.width,q=e.height;W.fillStyle=PEC(e)?e.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(t,b,m,q)};var t0=function(W,e){_.Li.call(this);this.playerApi=e;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.aD(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();NiU(this,W);dC$(this);this.update()};
_.Z(t0,_.Li);t0.prototype.addEventListeners=function(){var W=this,e=function(){W.update()},t=function(m){W.paused||(m.type==="newdata"&&(W.mosaics.clear(),Whu(W),bq(W)),dC$(W),W.update())},b=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",e);this.playerApi.addEventListener("onVideoDataChange",t);this.playerApi.addEventListener("onStateChange",b);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",e);W.playerApi.removeEventListener("onVideoDataChange",t);W.playerApi.removeEventListener("onStateChange",b)})};
var NiU=function(W,e){W.cinematicContainerRenderer!==e&&(W.cinematicContainerRenderer=e,Whu(W),bq(W),W.colorStoreUpdateJobId=_.Tm.addLowPriorityJob(function(){var t;if((t=W.cinematicContainerRenderer.colorStore)!=null&&t.sampledColors){t=Infinity;for(var b=_.R(W.cinematicContainerRenderer.colorStore.sampledColors),m=b.next();!m.done;m=b.next()){m=m.value;var q=Number(m.key);q!==0&&q<t&&(t=q);q=_.h8(m.value);W.colorStore.set(m.key,q)}W.colorStoreTimeInterval=t}}))},Whu=function(W){W.colorStoreUpdateJobId&&
(_.Tm.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},eWB=function(W,e){var t;
return(t=W.getStoryboardFrame(e))==null?void 0:t.url};
t0.prototype.onPlayerStateChange=function(){this.update()};
t0.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var dC$=function(W){var e=W.getStoryboardFrame(0);e&&(e=new _.aD(e.width/e.columns,e.height/e.rows),_.ztg(W.currentStoryboardSize,e)||(W.currentStoryboardSize=e,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))},tR1=function(W,e){W.currentStoryboardIndex=e;
W.pendingStoryboardIndex=NaN;e=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new E3C(W.mosaics.get(e.url).element,e);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.eJ)()};
t0.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var bq=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
t0.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)bq(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)bq(this);else if(isNaN(this.lastUpdateTime)||!((0,_.eJ)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var e=this.colorStore.get(W);e?e!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=e,this.currentStoryboard=new Alu(e),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.eJ)()):(_.JC(new _.o_("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),bq(this))}else bq(this);else bqT(this,W)}};
var bqT=function(W,e){var t=W.getStoryboardFrameIndex(e);if(t!==W.currentStoryboardIndex&&t!==W.pendingStoryboardIndex){e=eWB(W,t);var b=W.mosaics.get(e);b?b.loaded&&tR1(W,t):(W.pendingStoryboardIndex=t,t=new L9g(e),W.mosaics.set(e,t),t.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var m=eWB(W,W.pendingStoryboardIndex);if(m){var q;(q=W.mosaics.get(m))!=null&&q.loaded&&tR1(W,W.pendingStoryboardIndex)}else bq(W)}}))}};
t0.prototype.getStoryboardFrameIndex=function(W){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,e)};
t0.prototype.getStoryboardFrame=function(W){var e=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,t,b;return((b=(t=this.playerApi).getStoryboardFrame)==null?void 0:b.call(t,W,e))||null};
t0.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var rn=function(W,e,t,b){b=b===void 0?!1:b;_.ka.call(this);this.cinematicContainerRenderer=e;this.playerApi=t;this.theater=this.fullscreen=!1;var m;this.ambientLightThemeEnabled=!b&&!!(e==null?0:(m=e.config)==null?0:m.enableInLightTheme);this.ambientFullscreenEnabled=b&&_.S("web_cinematic_fullscreen");this.container=document.createElement("div");W.appendChild(this.container);var q;if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")||(e==null?0:(q=e.config)==null?0:q.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);mOC(this);W=this.ambientV2Container||this.container;this.backCanvas=V6E();this.frontCanvas=V6E();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new t0(e,this.playerApi);_.w$(this,this.storyboardManager);this.addEventListeners();rw$(this)?qNu(this,100+mr(this)*3*2,100+mr(this)*3*2):RWE(this);Q91(this,this.storyboardManager.currentStoryboard)};
_.Z(rn,_.ka);var mOC=function(W){W.ambientV2Container?Fh9(W):(_.O8(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+XtT(W)+", "+IOB(W)+")"}),i9g()&&_.O8(W.container,"filter","blur("+_.mn("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Fh9=function(W){if(W.ambientV2Container){var e=W.playerApi.getVideoAspectRatio();
_.O8(W.container,{"aspect-ratio":""+e,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.O8(W.ambientV2Container,{"aspect-ratio":""+e,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+XtT(W)+", "+IOB(W)+")"});i9g()&&_.O8(W.ambientV2Container,"filter","blur("+_.mn("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
rn.prototype.setFullscreen=function(W,e){this.fullscreen=W;this.theater=!!e;mOC(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,aOM(this),W&&wt1(this,W)};
rn.prototype.addEventListeners=function(){var W=this,e=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(m){Q91(W,m)}),t=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){RWE(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(e);W.storyboardManager.unsubscribeByKey(t)});
if(this.ambientV2Container){var b=function(){Fh9(W)};
this.playerApi.addEventListener("onVideoDataChange",b);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",b)})}};
var RWE=function(W){if(!rw$(W)){var e=W.storyboardManager.currentStoryboardSize;isNaN(e.width)||isNaN(e.height)||qNu(W,Number(e.width)+mr(W)*3*2,Number(e.height)+mr(W)*3*2)}},qNu=function(W,e,t){W.backCanvas.element.width=e;
W.backCanvas.element.height=t;W.frontCanvas.element.width=e;W.frontCanvas.element.height=t},rw$=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Q91=function(W,e,t){t=t===void 0?!1:t;
var b=W.frontCanvas.element.getAnimations()[0];b?(b.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",b.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);aOM(W);e&&wt1(W,e);e=e?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.mn("cinematic_watch_fade_out_duration",500);b=_.mn("cinematic_watch_transition_frame_rate")/
1E3;var m={};b&&(m={easing:"steps("+Math.round(e*b)+")"});(t===void 0?0:t)||W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:e,iterations:1},m));W.frontCanvas.element.style.opacity="1"},aOM=function(W){var e=W.ambientLightThemeEnabled,t=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled&&!_.S("web_cinematic_fullscreen_v2");
W.frontCanvas.context.fillStyle=W.theater&&e||W.fullscreen&&t?"#000":"#0f0f0f";i9g()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},wt1=function(W,e){i9g()||(W.frontCanvas.context.filter="blur("+mr(W)+"px)");
W.frontCanvas.context.globalAlpha=_.mn("cinematic_watch_effect_opacity",.4);var t={offsetX:mr(W)*3,offsetY:mr(W)*3,theater:W.theater,fullscreen:W.fullscreen};rw$(W)&&(t.width=100,t.height=100);e.drawToCanvas(W.frontCanvas.context,t);W.frontCanvas.context.globalAlpha=1},mr=function(W){var e;
return(e=W.cinematicContainerRenderer.config.blurStrength)!=null?e:5},XtT=function(W){var e,t;
if((W.fullscreen||W.theater)&&((e=W.cinematicContainerRenderer.config)==null?0:(t=e.watchFullscreenConfig)==null?0:t.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var b;return(b=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?b:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},IOB=function(W){var e,t;
if((W.fullscreen||W.theater)&&((e=W.cinematicContainerRenderer.config)==null?0:(t=e.watchFullscreenConfig)==null?0:t.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var b;return(b=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?b:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
rn.prototype.disposeInternal=function(){_.ka.prototype.disposeInternal.call(this);this.container.remove()};
rn.prototype.clear=function(){Q91(this,void 0,!0)};
rn.prototype.pause=function(){this.storyboardManager.pause()};var uJE;uJE=_.B9(function(){var W,e,t=!((e=(W=document.createElement("canvas")).getContext)==null||!e.call(W,"2d")),b;W=!((b=CSS)==null||!b.supports("filter: blur(0)"));b=!!Element.prototype.animate&&!!Element.prototype.getAnimations;e=_.S("web_cinematic_fullscreen")||_.S("web_cinematic_theater_mode")||_.S("web_cinematic_light_theme")||!1;var m;return t&&W&&b&&(!e||!((m=CSS)==null||!m.supports("aspect-ratio: 1 / 1")))});
_.qp=function(W,e){_.Li.call(this);this.container=W;this.playerApi=e;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=cwu(this);this.update()};
_.Z(_.qp,_.Li);_.vTu=function(W){var e=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=e;W.update()};
_.GUM=function(W,e){W.settingEnabled=e;W.update()};
_.qp.prototype.setFullscreen=function(W,e){this.fullscreen=W;this.theater=!!e;this.update()};
_.DO9=function(W,e){W.cinematicContainerRenderer=e;W.cinematicContainerRenderer&&(W.cinematicsVe=_.na(W.isShorts()?227858:159022),_.XW(_.Sg(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.qp.prototype.isShorts=function(){var W,e;return((W=this.cinematicContainerRenderer)==null?void 0:(e=W.config)==null?void 0:e.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.qp.prototype.isAllowed=function(){var W;if(W=uJE()){var e,t,b;W=((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((b=this.cinematicContainerRenderer)==null||!b.colorStore)||((e=this.cinematicContainerRenderer)==null?void 0:e.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.S("web_cinematics_pausing")){var m,q;W=this.isDarkModeEnabled||!!((m=this.cinematicContainerRenderer)==
null?0:(q=m.config)==null?0:q.enableInLightTheme)}else{var Q,X;m=!!((Q=this.cinematicContainerRenderer)==null?0:(X=Q.config)==null?0:X.enableInLightTheme)&&(_.Ot("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||m}if(Q=W){var I,u;Q=!((u=(I=this.prefersReducedMotionQuery)==null?void 0:I.matches)!=null&&u)}return Q};
_.SNg=function(W){(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,dC$(W),W.update())};
_.qp.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var cwu=function(W){if(!_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=function(){W.update()};
e.addListener(t);W.addOnDisposeCallback(function(){e.removeListener(t)});
return e}};
_.qp.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new rn(this.container,W,this.playerApi,this.isDarkModeEnabled),_.w$(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var e=this.currentCinematicEffect;e.cinematicContainerRenderer!==
W&&(e.cinematicContainerRenderer=W,NiU(e.storyboardManager,W),mOC(e));W=_.B6();_.oT(0,194,!0);W.save();W=_.fc();this.cinematicsVe&&W&&_.ic(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.fc(),this.cinematicsVe&&W&&_.Yh(W,[this.cinematicsVe],!1,this.loggingClientData),_.NL(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Ec.Object.defineProperties(_.qp.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var DCC;var S7w;_.yQ({_template:function(){if(S7w!==void 0)return S7w;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=
W.content,t=e.insertBefore;DCC===void 0&&(DCC=document.createElement("template"));var b=DCC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return S7w=W},
is:"tp-yt-iron-pages",behaviors:[_.gf,_.PG],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var wrU;_.umC=function(){if(_.S("kevlar_home_skeleton")&&!wrU){var W=document.querySelector("#home-page-skeleton");W&&(_.Tv("hgcr"),_.BX(W),wrU=!0)}};
wrU=!1;_.$1=new _.z("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var m1T,q9M,RRE,QsU,Fdu,Xjg,Ilw,alg,uOl,c5u,D1C,B1l,osS,S91,vsw,GB1,$1$;_.bbu=function(W,e,t){e=e===void 0?5:e;if(e!==0){var b=typeof W==="function"?W():document.querySelector(W);b?(t==null?0:t.enableSmartFocus)?_.W7G(b):b.focus():setTimeout(function(){_.bbu(W,e-1,t)},500)}};
m1T=function(W){return String.raw.apply(String,[{raw:W}].concat(_.kP(_.$N.apply(1,arguments).map(function(e){return e instanceof Array?e.join(""):e}))))};
q9M=function(W){var e=_.$N.apply(1,arguments);if(!Array.isArray(W)||!Array.isArray(W.raw)||W.length!==W.raw.length||!_.SCG&&W===W.raw||!(_.SCG&&!_.B52||_.Im(W))||e.length+1!==W.length)throw new TypeError("ea");return new r5g(Object.freeze({strings:Object.freeze(W),args:Object.freeze(e)}))};
RRE=function(W){return _.WtG(_.dMQ(W&16777215))<.5};
QsU=function(W,e,t){var b=t.minimumRowsOfVideosBetweenSections===void 0?1:t.minimumRowsOfVideosBetweenSections;return W<(t.minimumRowsOfVideosAtStart===void 0?2:t.minimumRowsOfVideosAtStart)||e!==null&&W-e<=b?!1:!0};
Fdu=function(W,e){var t=0,b=0;W=_.R(W);for(var m=W.next();!m.done;m=W.next()){var q=m.value;if(q.richItemRenderer)q.richItemRenderer.rowIndex=b,q.richItemRenderer.colIndex=t++,t===e&&(t=0,b++);else if(q.richGroupRenderer&&q.richGroupRenderer.numColumns!==void 0)q.richGroupRenderer.rowIndex=b,q.richGroupRenderer.colIndex=t,t+=q.richGroupRenderer.numColumns,t===e&&(t=0,b++);else if(q.richSectionRenderer){var Q=m=void 0;if(q=_.l((m=q)==null?void 0:(Q=m.richSectionRenderer)==null?void 0:Q.content,_.rtP))q.rowIndex=
b++}}};
Xjg=function(W,e){var t=e.contentElement;e=e.rendererToTagNameMap;if(t&&e&&e.size!==0){for(var b=new Map,m=_.R(t.children),q=m.next();!q.done;q=m.next()){q=q.value;var Q=q.tagName.toLowerCase(),X=b.get(Q);X||(X=[],b.set(Q,X));X.push(q)}if(b.size!==0)for(m=Math.min(W.length,t.children.length),q=new Map,Q=0;Q<m;Q++){X=Object.keys(W[Q])[0];X=e.get(X);if(!X)break;var I=q.get(X);I===void 0&&(I=0,q.set(X,I));var u=b.get(X);if(!u||I>=u.length)break;q.set(X,I+1);X=u[I];I=t.children[Q];I!==X&&(_.YoR=!0,_.z2c.set(X,
!0),t.insertBefore(X,I),_.z2c.delete(X),_.YoR=!1)}}};
Ilw=function(W,e,t,b,m,q,Q){b=b===void 0?{}:b;if(!W||!W.length)return[];W=W.slice();var X=[],I=[];m=null;for(var u=0,c=function(M){I.sort(function(V,L){return L.skippedOnRow-V.skippedOnRow});
for(var K,U=(K=I.shift())==null?void 0:K.content;U;)!U.richSectionRenderer&&M||X.push(U),K=void 0,U=(K=I.shift())==null?void 0:K.content},v=void 0;W.length>0||I.length>0;){for(var D=[],B=e;B>0;){var k=void 0,n=void 0,f=(n=I[0]&&I[0].skippedOnRow<u?(k=I.shift())==null?void 0:k.content:void 0)!=null?n:W.shift();
if(!f)break;if(f.richItemRenderer)k=f.richItemRenderer.targetId,n=void 0,k&&((n=Q)==null?0:n.has(k))&&(k=Q.get(k),!v||k&&k.timestamp>v.timestamp)&&(v=k),D.push(f),B--;else if(f.richGroupRenderer&&f.richGroupRenderer.numColumns!==void 0)f.richGroupRenderer.numColumns<=B?(D.push(f),B-=f.richGroupRenderer.numColumns):B===e&&f.richGroupRenderer.numColumns>e?(D.push({richGroupRenderer:Object.assign({},f.richGroupRenderer,{numColumns:e})}),B=0):I.push({content:f,skippedOnRow:u});else if(f.richSectionRenderer)if(QsU(u,
m,b)&&B===e){X.push(f);m=u;u++;continue}else I.push({content:f,skippedOnRow:u});else if(f.continuationItemRenderer){c(!0);X.push(f);B=0;break}if(B===0)X.push.apply(X,_.kP(D));else if(!t&&W.length===0){c(!1);X.push.apply(X,_.kP(D));B=0;break}}u++;v&&(X.push(v.content),u++);v=void 0}Fdu(X,e);q&&Xjg(X,q);return X};
alg=function(){return _.$N.apply(0,arguments).flat().filter(function(W){return W}).join(";")};
uOl=function(){return q9M(wjQ,alg.apply(null,_.kP(_.$N.apply(0,arguments))))};
c5u=function(W){return W.talkToRecs};
D1C=function(W,e){if(e){var t=_.Eb().getState().entities.flowStateEntity,b=vsw(W),m=[e];b&&b!==e&&m.push(b);var q=!0,Q;if(t&&W.flowStateEntityKey&&((Q=t[W.flowStateEntityKey])==null?void 0:Q.primaryButtonDisabled)!==void 0){var X;q=!((X=t[W.flowStateEntityKey])==null||!X.primaryButtonDisabled)}GB1(W,b!=null?b:e,m,q)}};
B1l=function(W){return _.S8(_.Eb(),function(e){return e.entities.flowStateEntity},function(e,t){if(W.flowStateEntityKey){var b,m=e==null?void 0:(b=e[W.flowStateEntityKey])==null?void 0:b.currentStepId,q;
t=t==null?void 0:(q=t[W.flowStateEntityKey])==null?void 0:q.currentStepId;q=_.Eb().getState().talkToRecs;if(m&&m!==t){var Q;e=(e==null?void 0:(Q=e[W.flowStateEntityKey])==null?void 0:Q.stepIdStack)||Object.keys(q.stepStates);Q=!S91(q==null?void 0:q.stepStates[m]);GB1(W,m,e,Q)}}})};
osS=function(W){return _.S8(_.Eb(),c5u,function(e){var t=vsw(W);if(t){var b=Object.keys(e.stepStates);e=!S91(e==null?void 0:e.stepStates[t]);GB1(W,t,b,e)}})};
S91=function(W){var e=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(q,Q){return q||(W==null?void 0:W.selectionStates[Q].isSelected)},!1),t,b,m=!!(W==null?0:(t=W.userQuery)==null?0:(b=t.userQuery)==null?0:b.trim());
return e||m};
vsw=function(W){if(W.flowStateEntityKey){var e,t,b=(e=_.Eb().getState().entities.flowStateEntity)==null?void 0:(t=e[W.flowStateEntityKey])==null?void 0:t.currentStepId;if(b)return b}};
GB1=function(W,e,t,b){_.Eb().dispatch(_.SX("flowStateEntity",W.flowStateEntityKey,{currentStepId:e,stepIdStack:t,key:W.flowStateEntityKey,primaryButtonDisabled:b}))};
_.llE=function(W,e){return _.I1(W.entities,"youchatPendingResponseEntity",e)};
_.ZbC=function(W){return function(e){_.Uz(_.SX("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:e}))}};
$1$=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};
_.bV=function(W){this.__isSoyCss=!0;this.css=m1T.apply(null,[W.strings].concat(_.kP(W.args)))};
_.bV.prototype.toString=function(){return this.css};
var r5g=function(){_.bV.apply(this,arguments)};
_.Z(r5g,_.bV);var wjQ=_.Nw(["",""]);var kBC;var pju;_.yQ({_template:function(){if(pju!==void 0)return pju;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
var e=W.content,t=e.insertBefore;kBC===void 0&&(kBC=document.createElement("template"));var b=kBC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return pju=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var y5C=new _.z("talkToRecsFlowRenderer");var jsu=new _.z("flowRootRenderer");var Cdw=new _.z("learningJourneyQuizViewModel");var ns1=new _.z("chipsShelfViewModel");var flw=new _.z("responsiveContainerConfiguration");var gsU=new _.z("horizontalShelfViewModel");_.T1u=new _.z("engagementPanelSectionListRenderer");var J51=new _.z("conversationResourceViewModel");var x1T=function(){this.horizontal=!1},ObM=function(W,e){W.horizontal=e};
x1T.prototype.position=function(W,e,t,b){b=b===void 0?1:b;W=this.delta(W)*b+e;b=Math.max(e,t);return W>=Math.min(e,t)&&W<=b?W:t};
x1T.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var Il=function(W,e,t){e=e===void 0?_.pT():e;this.target=W;this.manager=e;this.touchAction=t;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Il.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(_.kP(this.events)));for(var W=_.R(this.events),e=W.next();!e.done;e=W.next())this.listen(e.value)}};
Il.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.kP(this.events)));for(var W=_.R(this.events),e=W.next();!e.done;e=W.next())this.unlisten(e.value)}};
Il.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
Il.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var al=function(){x1T.apply(this,arguments)};
_.Z(al,x1T);al.prototype.direction=function(W){var e=W.detail;W=e.deltaY;e=e.deltaX;return W&&!this.horizontal?W>0?"down":"up":e&&this.horizontal?e>0?"right":"left":"none"};
al.prototype.distance=function(W){return Math.abs(this.delta(W))};
al.prototype.delta=function(W){var e=this.direction(W),t=W.detail;W=t.deltaX;t=t.deltaY;return e==="up"||e==="down"?t||0:W||0};
al.prototype.velocity=function(W){var e=this.direction(W),t=W.detail;W=t.velocityX;t=t.velocityY;return Math.abs(e==="up"||e==="down"?t||0:W||0)};_.w4=function(W,e,t,b,m,q){m=m===void 0?new al:m;q=q===void 0?_.pT():q;Il.call(this,e,q,b);var Q=this;this.element=W;this.target=e;this.config=t;this.input=m;this.manager=q;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Q.config.draggingClass&&Q.element.classList.add(Q.config.draggingClass);Q.config.startAction&&Q.config.startAction()};
this.onPanMove=function(X){var I=Myg(Q,X);if(I){Q.move(X,I);I.fade&&Q.fade(X,I);var u=Q.input.direction(X);I.moveAction&&I.moveAction(ss$(Q,X,I),u)}};
this.onPanEnd=function(X){var I,u,c,v,D,B;return _.F(function(k){if(k.nextAddress==1){Q.animationRequestId&&cancelAnimationFrame(Q.animationRequestId);Q.animationRequestId=void 0;I=Myg(Q,X);if(!I)return k.return();u=I;c=u.triggerAction;v=u.fade;D=u.disableFinish;B=u.translateBack;var n=Q.input.velocity(X),f=Q.input.distance(X),M=Q.threshold(I);return n>.3&&f>10||f>M?D?k.jumpTo(6):v?_.a(k,hRw(Q,X),6):_.a(k,HbU(Q,X,I),6):B?_.a(k,Q.translateBack(X),3):k.jumpTo(3)}k.nextAddress!=3&&c&&c();Q.config.draggingClass&&
Q.element.classList.remove(Q.config.draggingClass);Q.reset();_.u8(k)})};
W=Object.keys(t.triggers);this.directions=new Set(W);ObM(this.input,this.directions.has("right")||this.directions.has("left"))};
_.Z(_.w4,Il);_.w4.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Myg=function(W,e){e=W.input.direction(e);return W.config.triggers[e]};
_.w4.prototype.move=function(W,e){var t=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var b=t.input.axis(W),m=t.input.position(W,t.config.startPosition,e.endPosition,e.moveRatio||1);t.element.style.transform="translate"+b+"("+m+"px)";t.animationRequestId=void 0}))};
var ss$=function(W,e,t){var b=t.moveRatio||1;t=Math.abs(W.config.startPosition-t.endPosition);return Math.min(W.input.distance(e)*b,t)/t};
_.w4.prototype.fade=function(W,e){var t=e.endOpacity;W=ss$(this,W,e);W>0&&(this.element.style.opacity=""+(((t||0)-1)*W+1))};
_.w4.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var HbU=function(W,e,t){var b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return b=W.input.delta(e)+W.config.startPosition,m=W.input.axis(e),q=t,Q=q.endPosition,X=q.transitionEndPosition,u=(I=X)!=null?I:Q,_.a(c,W.element.animate([{transform:"translate"+m+"("+b+"px)"},{transform:"translate"+m+"("+u+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+m+"("+u+"px)";_.u8(c)})};
_.w4.prototype.translateBack=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1){if(!e.element.style.transform)return m.return();t=e.input.axis(W);b=e.config.startPosition;return _.a(m,e.element.animate([{transform:e.element.style.transform},{transform:"translate"+t+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}e.element.style.transform="translate"+t+"("+b+"px)";_.u8(m)})};
var hRw=function(W,e){var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return t=W.input.delta(e)+W.config.startPosition,b=W.input.axis(e),m=t+70,q=W.element.style.opacity===""?1:W.element.style.opacity,_.a(Q,W.element.animate([{transform:"translate"+b+"("+t+"px)",opacity:q},{transform:"translate"+b+"("+m+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+b+"("+m+"px)";W.element.style.opacity="0";_.u8(Q)})};var uM=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.Z(uM,_.D0);_.r=uM.prototype;_.r.created=function(){var W=this;this.boundAutoScrollHandler=function(e){W.autoScroll(e)}};
_.r.detached=function(){this.hostElement.removeEventListener("mouseout",_.aH(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.aH(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.aH(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.r.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.aH(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.aH(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.aH(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.aH(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.aH(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.aH(this,this.endAutoScroll)),this.endAutoScroll())};
_.r.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var e;if(e=!this.autoScrollPaused&&this.scrollTarget)e=this.scrollTarget,e=e.scrollHeight-e.scrollTop!==e.clientHeight;e&&(e=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>e&&(this.scrollTarget.scrollTop+=Math.ceil(W/e),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.r.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.r.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
uM.prototype.autoScrollEnabledChanged=uM.prototype.autoScrollEnabledChanged;_.P([_.J(),_.Y("design:type",Object)],uM.prototype,"scrollRate",void 0);_.P([_.J(),_.Y("design:type",Object)],uM.prototype,"scrollTarget",void 0);_.P([_.J(),_.Y("design:type",Boolean)],uM.prototype,"autoScrollEnabled",void 0);_.P([_.ul("autoScrollEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uM.prototype,"autoScrollEnabledChanged",null);_.P([_.SB()],uM);_.Kdl=[uM.prototype];var Pdu;var co=function(){var W=_.O.apply(this,arguments)||this;W.buttonUpdate=_.S("web_button_rework");W.dismissButtonOverrides=_.S("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.Z(co,_.O);_.r=co.prototype;_.r.computeUrlImg=function(W){if(W)return _.qA(W.thumbnails)};
_.r.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.r.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.r.logoWithPadding=function(W){var e,t;return(W=(e=W.thumbnails)==null?void 0:(t=e[0])==null?void 0:t.height)&&W%31===0?!0:!1};
_.r.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.X5(this.hostElement,W.impressionEndpoints)};
_.r.observeBasicPalette=function(){var W,e,t=(W=this.data)==null?void 0:(e=W.colorData)==null?void 0:e.basicColorPaletteData;t?_.T2(this.hostElement,t):_.T2(this.hostElement,{})};
_.r.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var e;this.hasSupplementalText=!((e=this.data)==null||!e.supplementalText);if(_.S("web_button_rework")){var t,b,m,q;W=(t=this.data)==null?void 0:(b=t.actionButton)==null?void 0:(m=b.buttonRenderer)==null?void 0:(q=m.colorData)==null?void 0:q.basicColorPaletteData;var Q,X,I;if(!((Q=this.data)==null?0:(X=Q.actionButton)==null?0:(I=X.buttonRenderer)==null?0:I.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var u,c;this.set("data.actionButton.buttonRenderer",_.kJ.unsafeClone((u=this.data)==null?void 0:(c=u.actionButton)==null?void 0:c.buttonRenderer))}}};
_.r.observeDataForCounterfactual=function(){if(_.S("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.r.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var e,t,b;if((e=this.data)==null?0:(t=e.colorData)==null?0:(b=t.basicColorPaletteData)==null?0:b.foregroundActivatedColor)return W=_.sr(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.r.computeForcedDarkTheme=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.actionButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.style,m,q,Q;W=RRE(((m=this.data)==null?void 0:(q=m.colorData)==null?void 0:(Q=q.basicColorPaletteData)==null?void 0:Q.backgroundColor)||0);return b&&W};
_.r.computeForcedLightTheme=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.actionButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.style,m,q,Q;W=!RRE(((m=this.data)==null?void 0:(q=m.colorData)==null?void 0:(Q=q.basicColorPaletteData)==null?void 0:Q.backgroundColor)||0);return b&&W};
_.r.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.r.computeHasTitle=function(W){return!!W.title};
_.r.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.r.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.r.computeIsInfeedModernization=function(){var W,e,t,b,m=(W=this.data)==null?void 0:(e=W.actionButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:(b=t.colorData)==null?void 0:b.basicColorPaletteData;return(m==null?void 0:m.backgroundColor)===452984831||(m==null?void 0:m.backgroundColor)===218103808};
co.prototype.observeDataForCounterfactual=co.prototype.observeDataForCounterfactual;co.prototype.observeDataChanged=co.prototype.observeDataChanged;co.prototype.observeBasicPalette=co.prototype.observeBasicPalette;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],co.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],co.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],co.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],co.prototype,"buttonUpdate",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],co.prototype,"hasSupplementalText",void 0);_.P([_.J(),_.Y("design:type",Object)],co.prototype,"dismissButtonOverrides",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Boolean)],co.prototype,"hasTitle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Y("design:type",Object)],co.prototype,"forceDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Y("design:type",Object)],co.prototype,"forceLightTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],co.prototype,"dynamicTextHeight",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Object)],co.prototype,"hasOverflowButton",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Y("design:type",Object)],co.prototype,"isInfeedModernization",void 0);_.P([_.ul("data.colorData.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"observeBasicPalette",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"observeDataChanged",null);_.P([_.ul("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"observeDataForCounterfactual",null);_.P([_.h({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],co);
_.H(co,"ytd-banner-promo-renderer",function(){if(Pdu!==void 0)return Pdu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Pdu=W},{mode:1});var VyT;var ibT;var Y9U;var vo=function(){return _.O.apply(this,arguments)||this};
_.Z(vo,_.O);_.P([_.J(),_.Y("design:type",Object)],vo.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.P([_.h({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],vo);
_.H(vo,"ytd-hashtag-grid-tile-renderer",function(){if(Y9U!==void 0)return Y9U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Y9U=W},{mode:1});var Gt=function(){return _.O.apply(this,arguments)||this};
_.Z(Gt,_.O);Gt.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Gt.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,e;if(((W=this.data)==null||!W.isExpanded)&&(e=this.data)!=null&&e.tiles){W=this.data.tiles.length;e=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var t=Math.ceil(W/e);this.fullyVisibleRows=W%e===1&&t===2?1:Math.min(t,2);this.isShowMoreVisible=this.fullyVisibleRows<t}};
Gt.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Gt.prototype.updateRichGridTrendingHashtagsVisibility=Gt.prototype.updateRichGridTrendingHashtagsVisibility;_.P([_.J(),_.Y("design:type",Object)],Gt.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Number)],Gt.prototype,"fullyVisibleRows",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Gt.prototype,"isShowMoreVisible",void 0);_.P([_.J({selector:_.fG,value:0}),_.Y("design:type",Number)],Gt.prototype,"richGridItemsPerRow",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Gt.prototype,"ytdReduxBehavior",void 0);_.P([_.ul("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gt.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.P([_.h({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Gt);
_.H(Gt,"ytd-hashtag-grid-shelf-renderer",function(){if(ibT!==void 0)return ibT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ibT=W},{mode:1});var zRl;var U19;var Dw=function(){var W=_.O.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.S("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(Dw,_.O);_.r=Dw.prototype;_.r.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.r.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"}}}};
_.r.dataChanged=function(){var W=this;this.requestElementsPerRow();var e,t;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(t=this.data)==null?void 0:t.lightColorData;var b;if((b=this.currentColorPalette)==null?0:b.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Uc(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.r.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.r.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.r.computeIsFirstFeedItem=function(W){return W};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.r.getCurrentLogo=function(W,e){if(W)return e?W.darkLogoImage:W.lightLogoImage};
_.r.computeTitleStyle=function(W){var e;if((e=this.data)!=null&&e.title&&W&&W.textPrimary!==void 0)return"color:"+_.sr(W.textPrimary)+";"};
_.r.computeSubtitleStyle=function(W){var e;if((e=this.data)!=null&&e.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.sr(W.textSecondary)+";"};
_.r.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton&&W&&W.textPrimary!==void 0)return"--yt-button-color:"+_.sr(W.textPrimary)+";"};
_.r.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.sr(W.textPrimary)+";--yt-spec-icon-active-other:"+_.sr(W.textPrimary)+";"};
_.r.computeBackgroundStyle=function(W){if(W&&this.data){var e="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var t=_.qA((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);t&&(e+='background-image:url("'+t+'");')}W.backgroundColor!==void 0&&(e+="background-color:"+_.h8(W.backgroundColor)+";");return e}};
_.r.computeButton=function(){var W,e=Object.assign({},_.l((W=this.data)==null?void 0:W.showMoreButton,_.Md));if(this.modern&&e){e.style="STYLE_MONO_OUTLINE";var t;if(W=(t=this.currentColorPalette)==null?void 0:t.textPrimary)e.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return e};
_.r.shouldShowBottomButton=function(W,e){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&e<3};
_.r.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.r.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.r.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.r.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.r.computeHasSectionHeader=function(W){return!!W.header};
_.r.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var e;((e=this.data.dismissButton)==null?0:e.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var t,b;((t=this.data)==null?0:(b=t.primaryButton)==null?0:b.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.r.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var e=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.slimItemsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(e,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow),e)):(this.visibleVideos=this.data.content.slice(0,Math.min(e,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(e,this.elementsPerRow-1),e))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.r.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var e;this.hasMovieRenderer=!!_.l((e=this.data)==null?void 0:e.content[0],_.JFU)}else this.hasMovieRenderer=!1};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
_.r.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.R(this.hiddenMediaRenderers),e=W.next();!e.done;e=W.next())e.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.rz(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.r.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.r.logoWithPadding=function(W){var e,t,b;return(W=(e=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(t=e.thumbnails)==null?void 0:(b=t[0])==null?void 0:b.height)&&W%31===0?!0:!1};
_.r.onUpdateElementsPerRowAction=function(W,e,t){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);t&&this.slimItemsPerRow!==t&&(this.slimItemsPerRow=t)};
Dw.prototype.slimItemsPerRowChanged=Dw.prototype.slimItemsPerRowChanged;Dw.prototype.elementsPerRowChanged=Dw.prototype.elementsPerRowChanged;Dw.prototype.dataChanged=Dw.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Dw.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Dw.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Dw.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dw.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Dw.prototype,"currentColorPalette",void 0);_.P([_.J(),_.Y("design:type",Array)],Dw.prototype,"visibleVideos",void 0);_.P([_.J(),_.Y("design:type",Array)],Dw.prototype,"hiddenVideos",void 0);
_.P([_.J(),_.Y("design:type",Object)],Dw.prototype,"primaryButton",void 0);_.P([_.J({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],Dw.prototype,"elementsPerRow",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Dw.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Dw.prototype,"isExpanded",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Dw.prototype,"largeTitle",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Dw.prototype,"hasMovieRenderer",void 0);_.P([_.J(),_.Y("design:type",Number)],Dw.prototype,"slimItemsPerRow",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dw.prototype,"showLightVideoMetadata",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Dw.prototype,"showDarkVideoMetadata",void 0);_.P([_.J(),_.Y("design:type",Number)],Dw.prototype,"videoMetadataColor",void 0);
_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],Dw.prototype,"miniMode",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],Dw.prototype,"isFirstFeedItem",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Y("design:type",Boolean)],Dw.prototype,"hasSectionHeader",void 0);
_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Dw.prototype,"roundedContainer",void 0);_.P([_.GF("#visible-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],Dw.prototype,"visibleMediaRenderers",void 0);_.P([_.GF("#hidden-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],Dw.prototype,"hiddenMediaRenderers",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Dw.prototype,"modern",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dw.prototype,"dataChanged",null);_.P([_.ul("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dw.prototype,"elementsPerRowChanged",null);_.P([_.ul("slimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dw.prototype,"slimItemsPerRowChanged",null);
_.P([_.h({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Dw);
_.H(Dw,"ytd-brand-video-shelf-renderer",function(){if(U19!==void 0)return U19;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return U19=W},{mode:1});var Ldg;var S4=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(S4,_.O);_.r=S4.prototype;_.r.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.r.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"}}}};
_.r.dataChanged=function(){this.requestElementsPerRow();var W,e;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(e=this.data)==null?void 0:e.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.r.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.r.computeIsFirstFeedItem=function(W){return W};
_.r.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.r.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.r.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.r.computeTitleStyle=function(W){var e;if((e=this.data)!=null&&e.title&&W&&W.textPrimary!==void 0)return"color:"+_.sr(W.textPrimary)+";"};
_.r.computeSubtitleStyle=function(W){var e;if((e=this.data)!=null&&e.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.sr(W.textSecondary)+";"};
_.r.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.sr(W.textPrimary)+";--yt-spec-icon-active-other:"+_.sr(W.textPrimary)+";"};
_.r.computeBackgroundStyle=function(W){if(W&&this.data){var e="";W.backgroundColor!==void 0&&(e+="background-color:"+_.h8(W.backgroundColor)+";");return e}};
_.r.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.r.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var t;((t=this.currentColorPalette)==null?0:t.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)})}}};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
_.r.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.r.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
S4.prototype.elementsPerRowChanged=S4.prototype.elementsPerRowChanged;S4.prototype.dataChanged=S4.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],S4.prototype,"ytdDismissibleItemBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],S4.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],S4.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],S4.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],S4.prototype,"currentColorPalette",void 0);_.P([_.J(),_.Y("design:type",Object)],S4.prototype,"primaryButton",void 0);
_.P([_.J({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],S4.prototype,"elementsPerRow",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],S4.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],S4.prototype,"titleSize",void 0);_.P([_.J(),_.Y("design:type",Number)],S4.prototype,"videoMetadataColor",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],S4.prototype,"miniMode",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],S4.prototype,"isFirstFeedItem",void 0);_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],S4.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Boolean)],S4.prototype,"hasOverflowButton",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S4.prototype,"dataChanged",null);_.P([_.ul("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S4.prototype,"elementsPerRowChanged",null);_.P([_.h({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],S4);
_.H(S4,"ytd-brand-video-singleton-renderer",function(){if(Ldg!==void 0)return Ldg;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ldg=W},{mode:_.Qe("kevlar_poly_si_batch_j070")?1:2});var Esu;var A5g=_.NN(function(W){var e=W.data;return _.w(_.A_,{data:function(){return e().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(e().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var t=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":t=88;break a;default:t=88}return t},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return e().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"si"),d1l=_.NN(function(W){var e=W.metadataRow;
var t=W.delimiter;return _.w(_.lV,{each:function(){return e().textParts||[]},
keyBy:"INDEX"},function(b,m){return _.w(_.qD,null,_.w(_.WL,{text:b,noWrap:!0,userInput:!0}),_.w(N11,{delimiter:t,max:function(){return e().textParts.length},
index:m}))})},"ti"),N11=_.NN(function(W){var e=W.delimiter;
var t=W.max;var b=W.index;return _.w(_.G,{cond:function(){return(e==null?void 0:e())&&t()-1>b()},
then:function(){return _.w("span",null,e)}})},"ui"),WA1=_.NN(function(W){var e=W.data;
W={};return _.w("yt-profile-page-header-information-view-model",{class:_.ve("profile-page-header-information-view-model-wiz",(W["profile-page-header-information-view-model-wiz--mobile"]=!1,W))},_.w(_.G,{cond:function(){return e().onTap},
then:function(){return _.w(_.XN,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Mk(e().onTap)}},_.w(_.nU,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:A5g}))},
else:function(){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.w(_.nU,{data:function(){return e().thumbnail}},{profilePageHeaderThumbnailViewModel:A5g}))}}),_.w("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.w(_.G,{cond:function(){return e().onTap},
then:function(){return _.w(_.nU,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(t){var b=t.data;
return _.w(_.XN,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Mk(b().onTap)}},_.w(_.WL,{text:function(){return b().title}}))}})},
else:function(){return _.w(_.nU,{data:function(){return e().title}},{profilePageHeaderTitleViewModel:function(t){var b=t.data;
return _.w(_.WL,{text:function(){return b().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.w(_.nU,{data:function(){return e().metadata}},{profilePageHeaderMetadataViewModel:function(t){var b=t.data;
return _.w(_.G,{cond:function(){return b().metadataRows},
then:function(m){return _.w("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.w(_.lV,{each:m,keyBy:"INDEX"},function(q,Q){return _.w(_.qD,null,_.w(d1l,{metadataRow:q,delimiter:" \u2022 "}),_.w(N11,{delimiter:" \u2022 ",max:function(){return m().length},
index:Q}))}))}})}})))},"vi");
WA1.idomCompat=!0;_.mM(WA1,"yt-profile-page-header-information-view-model",{props:{data:_.Eu}});var Bo=function(){return _.O.apply(this,arguments)||this};
_.Z(Bo,_.O);Bo.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bo.prototype,"data",void 0);_.P([_.h({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Bo);
_.H(Bo,"ytd-effect-pivot-header-view-model",function(){if(Esu!==void 0)return Esu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Esu=
W},{mode:1});var eh9;var ol=function(){return _.O.apply(this,arguments)||this};
_.Z(ol,_.O);ol.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ol.prototype,"data",void 0);_.P([_.h({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ol);
_.H(ol,"ytd-source-pivot-header-renderer",function(){if(eh9!==void 0)return eh9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return eh9=W},{mode:1});_.t7U=_.NN(function(W){var e=W.data;W=_.zT("content-list-item-view-model");_.UQ(W,function(){return e().rendererContext});
var t=function(){var m;return _.zz((m=e())==null?void 0:m.rendererContext)},b={};
return _.w("content-list-item-view-model",{el:W,class:_.ve("ytContentListItemViewModelHost",(b.ytContentListItemViewModelTappable=t,b)),role:function(){return t()?"listitem":void 0},
tabindex:function(){return t()?0:void 0}},_.w("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.w("div",{class:"ytContentListItemViewModelImageContainer"},_.w(_.G,{cond:function(){return e().image},
then:function(m){return _.w(_.A_,{data:m,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.w(_.nU,{data:function(){var m;
return(m=e())==null?void 0:m.avatar}},{avatarViewModel:_.pz})),_.w("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.w("div",{class:_.ve("ytContentListItemViewModelTitle",function(){a:{switch(e().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var m="ytContentListItemViewModelProminentTitle";
break a}m=void 0}return m})},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"ytContentListItemViewModelMetadata"},_.w(_.nU,{data:function(){return e().metadata}},{contentMetadataViewModel:function(m){return _.w(_.zhk,{data:m.data,
layout:1})}})))),_.w("div",{class:"ytContentListItemViewModelActionButton"},_.w(_.nU,{data:function(){var m;
return(m=e())==null?void 0:m.actionButton}},{buttonViewModel:_.MV,
toggleButtonViewModel:_.fU})))},"wi");_.mM(_.NN(function(W){var e={},t={},b={},m={};return _.w("yt-card-view-model",{class:_.ve("ytCardViewModelHost",W.className,(e.ytCardViewModelOutline=function(){return W.data().cardStyle==="CARD_STYLE_OUTLINE"},e),(t.ytCardViewModelRaised=function(){return W.data().cardStyle==="CARD_STYLE_RAISED"||W.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},t),(b.ytCardViewModelTonal=function(){return W.data().cardStyle==="CARD_STYLE_TONAL"},b),(m.ytCardViewModelInverted=function(){return W.data().cardStyle===
"CARD_STYLE_INVERSE"},m))},_.w(_.nU,{data:function(){return W.data().background}},{cinematicContainerViewModel:function(q){return _.w(_.xJZ,{data:q.data})}}),_.w("div",{class:"ytCardViewModelContentWrapper"},_.w(_.nU,{data:function(){return W.data().content}},{contentListItemViewModel:function(q){return _.w(_.t7U,{data:q.data})}})),_.w(_.nU,{data:function(){return W.data().dismissAction}},{buttonViewModel:function(q){return _.w(_.MV,{data:q.data})}}))},"xi"),"yt-card-view-model",{props:{data:_.Eu,
className:_.Eu}});_.mM(_.NN(function(W){var e=function(){return _.l(W.data().flowRoot,jsu)};
_.nt(function(){var t=e(),b=function(){},m=function(){};
if(t){var q,Q,X,I=((X=_.l((q=e())==null?void 0:(Q=q.steps)==null?void 0:Q[0],_.CQ$))==null?void 0:X.stepId)||"";D1C(t,I);b=B1l(t);m=osS(t)}_.fh(function(){var u=e();u&&_.Eb().dispatch(_.SX("flowStateEntity",u.flowStateEntityKey));b();b=function(){};
m();m=function(){}})});
return _.w("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.w(_.ARN,{contentId:function(){return W.data().contentId}},function(){return _.w("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.w(_.G,{cond:e,
then:function(t){return _.w(_.knE,{data:t})}}))}))},"yi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Eu}});_.mM(_.NN(function(){return _.w("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.w("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.w(_.ue$,null)),_.w(_.NhD,{data:{rows:1},isExploreHub:!0}))},"zi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.mM(_.NN(function(W){var e=W.data;var t=W.standardUnitMinWidth;W=_.zT("ytd-chips-shelf-with-video-shelf-renderer");var b=_.R((0,_.t6y)(e)),m=b.next().value,q=b.next().value,Q=function(){var I,u=(I=m())==null?void 0:I.contents;return u==null||u.length===0},X=function(){q(Object.assign({},m(),{contents:[]}))};
_.ev(W,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var I=_.l(e().chipsShelf,ns1);if(I!=null&&I!=null&&I.autoselectChipOnVisible){var u,c,v=_.l(I==null?void 0:(u=I.contents)==null?void 0:u[(c=I.autoselectedChipIndex)!=null?c:0],_.Kf);v&&v.tapCommand&&_.K4(v.tapCommand)}}});
return _.w("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:W},_.w(_.ARN,{contentId:function(){return e().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.w("div",null,_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.w(_.nU,{data:function(){return e().header}},{sectionHeaderViewModel:function(I){return _.w(_.mX,{data:I.data,
disableHorizontalPadding:!0})}})),_.w("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.w(_.nU,{data:function(){return e().chipsShelf}},{chipsShelfViewModel:function(I){return _.w(_.bRS,{data:I.data,
callback:X,enableSingleChipSelection:!0})}})),_.w("div",null,_.w(_.G,{cond:Q,
then:function(){return _.w("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.w(_.NhD,{data:{rows:1},isExploreHub:!0}))}}),_.w(_.nU,{data:function(){var I;
return(I=m())==null?void 0:I.contents}},{richShelfRenderer:function(I){return _.w(_.bZS,{data:I.data,
isInnerShelf:!0,standardUnitMinWidth:t})}})))}))},"Ai"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Eu,
standardUnitMinWidth:_.Eu}});var lM=function(){return _.O.apply(this,arguments)||this};
_.Z(lM,_.O);
lM.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}}};
lM.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.P([_.y(_.fu),_.Y("design:type",Object)],lM.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],lM.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lM.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Number)],lM.prototype,"standardUnitMinWidth",void 0);_.P([_.h({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],lM);
_.H(lM,"ytd-rich-section-renderer",function(){if(zRl!==void 0)return zRl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return zRl=W},{mode:_.Qe("kevlar_poly_si_batch_j029")?
1:2});_.mM(_.UcS,"yt-profile-identity-info-view-model",{props:{data:_.Eu,hideDivider:_.Eu}});_.mM(_.iRU,"yt-page-header-view-model",{props:{data:_.Eu,noPadding:_.Eu,enableBanner:_.Eu,cinematicContainerTopbarOffset:_.Eu,allowCinematicContainerOverflow:_.Eu,displayAsSidebar:_.Eu,displayAsPanel:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=function(){var m;return(m=e().numColumns)!=null?m:2},b=function(){return t()>1?3:2};
W={};return _.w("ytd-rich-grid-group",{class:_.ve("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return e().colIndex===0},W)),
style:_.$D({"--ytd-rich-grid-group-num-columns":t,"--ytd-rich-grid-items-per-group":b})},_.w("div",{class:"ytdRichGridGroupContents"},_.w(_.nU,{data:function(){var m;return(m=e().contents)==null?void 0:m.slice(0,b())}},{richItemRenderer:function(m){return _.w(_.e3B,{data:m.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bi"),"ytd-rich-grid-group",{props:{data:_.Eu}});var Zw=function(){var W=_.O.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.S("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=
!1;W.showExploreHubContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.loggingRefactor=_.S("kevlar_rich_grid_logging_fix");W.resizeObserver=null;W.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"};W.rendererToTagNameMap=
new Map(Object.entries(W.contentMapping()).map(function(e){var t=_.R(e);e=t.next().value;t=t.next().value;return[e,t.component]}));
W.insertedContent=new Map;return W};
_.Z(Zw,_.O);_.r=Zw.prototype;_.r.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.R(_.rz(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=W.next();!e.done;e=W.next())e.value.useCompactList=this.useCompactList};
_.r.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.R(_.rz(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),e=W.next();!e.done;e=W.next())e=e.value,e.sizing=this.sizing,e.typographyBump=this.typographyBump};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.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]]"}}}};
_.r.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}}};
_.r.attached=function(){document.addEventListener("yt-page-type-changed",_.aH(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19335_throttledOnResize=new _.eS(this.resizeObserved,_.mn("rich_grid_resize_delay_ms",50),this)};
_.r.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.aH(this,this.onPageChange))};
_.r.insertRichSection=function(W){var e=W.richItemTargetId;W=W.richSectionRendererToInsert;e&&W&&(this.insertedContent.set(e,{content:W,timestamp:Date.now()}),this.reflowContent())};
_.r.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.r.computeIsInlinePreviewEnabled=function(W,e,t){return _.S("web_disable_inline_preview")?!1:!t&&_.SJu({miniplayerIsActive:W,miniplayerPlaybackState:e})};
_.r.computeSizing=function(){var W=_.Ik9(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":_.S("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.r.updateItemMinAndMaxWidth=function(){var W=_.mn("rich_grid_max_item_width",500);W>0&&_.XB(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var e;W=this.getRichItemMinWidth((e=this.hostElement)==null?void 0:e.clientWidth);W>0&&_.XB(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.r.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.r.resizeObserved=function(){_.Qx(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.r.navigateBackToHome=function(){_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var W=_.ee().resolve(_.WS).isOnWatch(),e,t=((e=_.Gi(location.pathname))==null?void 0:e.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(t)||W)&&this.gnomeContents&&_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);W&&this.exploreHubContents&&_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Eb().dispatch(_.rO({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.r.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.S("disable_chip_select_on_nav")||_.Qx(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Tm.addJob(function(){W.pageLoadingFromNavigation=!1;_.S("disable_chip_select_on_nav")&&_.S("h5_reset_cache_and_filter_before_update_masthead")&&W.resetCacheAndIsFilteredFeed();W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.S("web_hide_gnome_until_user_navigates_back_to_home")&&
(W.dataChanged(),_.Uc(W,function(){if(W.showGnomeContents){var e=Array.from(_.rz(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(b){b=_.rz(b).querySelector("ytd-rich-shelf-renderer");return!!b&&b.isGnomeShelf()});
if(e){e=e.offsetTop-W.contentsElement.offsetTop;var t=_.ee().resolve(_.WS).getCurrentPage();t&&t.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}));
_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(W.dataChanged(),_.Uc(W,function(){if(W.showExploreHubContents&&!_.S("web_explore_hub_no_scroll")){var e=Array.from(_.rz(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(b){return!!b.querySelector("ytd-talk-to-recs-flow-renderer")});
if(e){e=e.offsetTop-W.contentsElement.offsetTop;var t=_.ee().resolve(_.WS).getCurrentPage();t&&t.getPageScrollingElement().scrollTo({top:e,behavior:"smooth"})}}}))},8)):((_.S("web_hide_gnome_until_user_navigates_back_to_home")||_.S("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.r.dataChanged=function(){var W=this,e=_.mn("web_rich_grid_row_margin",0);e>0&&_.XB(this.hostElement,{"--ytd-rich-grid-row-margin":e+"px"});_.Qx(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Uc(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.XB(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.r.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var e;(e=this.resizeObserver)==null||e.disconnect();var t=!1;this.resizeObserver=new ResizeObserver(function(){if(t){var b;(b=W.resizeObserver)==null||b.disconnect();var m;(m=W.JSC$19335_throttledOnResize)==null||m.fire();requestAnimationFrame(function(){var Q;(Q=W.JSC$19335_throttledOnResize)==null||Q.fire();W.initResizeObserver()})}else if(t=!0,W.resizeOnObserverInit){var q;
(q=W.JSC$19335_throttledOnResize)==null||q.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.r.contentLengthChanged=function(){if(_.S("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Qx(this.hostElement,"ytd-rich-item-index-update-action")};
_.r.updateElementsPerRow=function(){_.Qx(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.rO({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.rO({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.r.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.r.onRichShelfRendererCollapse=function(W){if(this.shownItems){var e=W.detail;W=this.shownItems.findIndex(function(b){var m,q;return((q=_.l(b==null?void 0:(m=b.richSectionRenderer)==null?void 0:m.content,_.rtP))==null?void 0:q.trackingParams)===e});
var t=W+1;W<0||t>=this.contentsElement.children.length||!this.shownItems[t].richItemRenderer||this.contentsElement.children[t].scrollIntoView({behavior:"smooth",block:"start"})}};
_.r.onSoftReloadPage=function(){this.scrollUpToTop()};
_.r.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.r.handlePlaylistRemoveVideosAction=function(W){var e;if(((e=_.l(W,_.$7o))==null?0:e.setVideoIds)&&this.data&&this.data.contents){W=_.l(W,_.$7o).setVideoIds;for(e=this.data.contents.length-1;e>=0;){var t=_.l(this.data.contents[e],_.nf);(t=t&&_.l(t.content,_.OW))&&t.setVideoId&&W.includes(t.setVideoId)&&this.splice("data.contents",e,1);e--}this.updateIndices()}};
_.r.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.zq(String(W+1)))};
_.r.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var e;return!((e=W.slice(0,this.getItemsPerRow()))==null||!e.some(function(t){var b;t=_.l(t==null?void 0:(b=t.richItemRenderer)==null?void 0:b.content,_.hr);var m;return(t==null?void 0:t.inlinePlaybackEndpoint)&&(t==null?void 0:(m=t.thumbnailOverlays)==null?void 0:m.some(function(q){return q.thumbnailOverlayEndorsementRenderer}))}))};
_.r.refreshGridLayoutNew=function(W,e,t,b){var m=b.postsPerRow;var q=b.slimItemsPerRow;var Q=b.gameCardsPerRow;b=b.miniGameCardsPerRow;var X;if((X=this.data)==null||!X.contents||!this.containerWidth)return!1;var I;if((I=this.data.responsiveContainerConfiguration)==null?0:I.responsiveSize){var u=_.UOz(this.data.responsiveContainerConfiguration,this.containerWidth),c;X=_.NV(Object.assign({},u,{standardUnitMinWidth:(c=this.data)==null?void 0:c.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&u.isCompactList)}else X=_.NV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(u=this.data)==null?void 0:u.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=X.typographyBump;c=!1;if(W||this.elementsPerRow!==X.numItems||this.postsPerRow!==m||this.slimItemsPerRow!==q||this.gameCardsPerRow!==
Q||this.miniGameCardsPerRow!==b||this.gutter!==X.gutter)c=this.elementsPerRow!==X.numItems,this.elementsPerRow=X.numItems,this.postsPerRow=m,this.slimItemsPerRow=q,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=b,this.gutter=X.gutter,this.itemWidth=X.itemWidth,this.reflowContent(e),_.XB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":X.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(t);this.ytdReduxBehavior.dispatch(_.rO({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:X.maxContainerWidth}));return c};
_.r.refreshGridLayout=function(W,e){var t,b=(t=this.hostElement)==null?void 0:t.clientWidth;this.containerWidth=this.adjustRichGridWidth(b,!0);var m;if((m=this.data)==null||!m.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.S("rg_pending_reflow_ks")&&(W=!0,this.pendingForceReflow=!1);t=this.getRichItemMinWidth(b);var q=this.isShortsPanel?146:194,Q=this.getMiniGameCardMinWidth(),X=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
b=t=this.calcElementsPerRow(t,X);(m=t<=3&&this.miniModeAllowed())&&(t=this.calcElementsPerRow(240,4));var I=this.calcMaxSlimElementsPerRow(t,X,this.isDefaultGrid);X=this.calcElementsPerRow(q,I);var u=this.calcElementsPerRow(this.isCompactGrid?q:154,I);q=this.calcElementsPerRow(this.isCompactGrid?q:Q,I);Q=!1;if(this.sizing)return this.refreshGridLayoutNew(W,e,m,{postsPerRow:b,slimItemsPerRow:X,gameCardsPerRow:u,miniGameCardsPerRow:q});if(W||this.elementsPerRow!==t||this.postsPerRow!==b||this.slimItemsPerRow!==
X||this.gameCardsPerRow!==u||this.miniGameCardsPerRow!==q)Q=this.elementsPerRow!==t,this.elementsPerRow=t,this.postsPerRow=b,this.slimItemsPerRow=X,this.gameCardsPerRow=u,this.miniGameCardsPerRow=q,this.reflowContent(e),this.updateElementsPerRow(),_.XB(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)&&_.XB(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(m);_.Qx(this.hostElement,"yt-rich-grid-layout-refreshed");return Q};
_.r.getRichItemMinWidth=function(W){var e=_.mn("rich_grid_min_item_width",310);if(!_.S("kevlar_disable_min_width_override")){var t,b;e=(b=(t=this.data)==null?void 0:t.minItemWidth)!=null?b:e}return e+_.mFG(W)};
_.r.calcMaxSlimElementsPerRow=function(W,e,t){return(t===void 0?0:t)?W===1?2:W%2===0?_.S("web_shorts_2_by_3_reduce_items_per_row")&&W>=4?W/2*3-1:W/2*3:_.S("web_shorts_2_by_3_reduce_items_per_row")&&W>=3?W+1:W+2:e*2};
_.r.adjustRichGridWidth=function(W,e){var t=_.S("disable_rich_grid_guide_compensation");if(!this.isWatch&&!t){t=_.ee().resolve(_.Wi(_.Op));var b=t==null?void 0:t.guideElement;if(!(!t||t.getData()||b!=null&&b.opened||t.getMiniGuideVisible()))if(t.canFitPersistentGuide(W)&&t.getGuideExpandsAutomatically()){var m,q,Q=Number((m=window.getComputedStyle(this.hostElement))==null?void 0:(q=m.getPropertyValue("--app-drawer-width"))==null?void 0:q.replace("px",""));W-=Q||0}else if(t.canFitMiniGuide(W)){var X;
m=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(X=Q.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:X.replace("px",""));W-=m||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=e?32:48));return W};
_.r.calcElementsPerRow=function(W,e){var t=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),b=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((t+b)/(W+b))||1,e)};
_.r.reflowContent=function(W){var e=this;if(!this.isReflowing){this.isReflowing=!0;var t,b,m=!!((t=this.data)==null?0:(b=t.contents)==null?0:b.some(function(B){return _.l(B,_.Q$)}));
t=this.getItemsPerRow();var q;b=(q=this.data)==null?void 0:q.reflowOptions;W&&(_.Tv("rgr_s"),_.Uc(this,function(){_.Tv("rgr_nrf")}));
W={};(q=_.rz(this.hostElement).querySelector("#contents"))&&(W={contentElement:q,rendererToTagNameMap:this.rendererToTagNameMap});q=(q=this.data.contents)?q.slice():[];var Q=(_.S("web_hide_gnome_behind_feed_filter_chip")||_.S("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,X=_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,I=-1,u=-1;if(this.isHomePage&&X){for(X=0;X<q.length;X++){var c=void 0,v=void 0;_.l((c=q[X])==null?void 0:
(v=c.richSectionRenderer)==null?void 0:v.content,y5C)&&(u=X)}u>-1&&(this.exploreHubContents=q.splice(u,1))}if(this.isHomePage&&Q){for(u=0;u<q.length;u++)v=c=void 0,(X=_.l((c=q[u])==null?void 0:(v=c.richSectionRenderer)==null?void 0:v.content,_.rtP))&&Q&&(v=c=void 0,X=_.l((c=X)==null?void 0:(v=c.contents)==null?void 0:v[0],_.nf),c=void 0,_.l((c=X)==null?void 0:c.content,_.qXe)&&(I=u));I>-1&&(this.gnomeContents=q.splice(I,1))}var D=Ilw(q,t,m,b,this.getRichGridStyle(),W,this.insertedContent);m=function(){e.shownItems=
D;e.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(D),_.Uc(this,m)):m()}};
_.r.getFirstRowItems=function(W){for(var e=[],t=0;t<W.length;t++){var b=void 0,m=void 0,q=void 0,Q=void 0,X=void 0,I=void 0;if(((b=W[t])==null?void 0:(m=b.richItemRenderer)==null?void 0:m.rowIndex)===0||((q=W[t])==null?void 0:(Q=q.richGroupRenderer)==null?void 0:Q.rowIndex)===0||((X=W[t])==null?void 0:(I=X.richSectionRenderer)==null?void 0:I.rowIndex)===0)e.push(W[t]);else break}return e};
_.r.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.r.handleChipCloudChipSelectAction=function(W,e){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.S("web_hide_gnome_behind_feed_filter_chip")&&(e?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.r.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.S("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.r.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.S("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.r.terminateVideoPreview=function(){_.Qx(this.hostElement,"yt-terminate-video-preview-action")};
_.r.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},e;if((e=this.data)==null?0:e.trackingParams)this.loggingRefactor?_.Sg().stateChanged(this.data.trackingParams,W):(e=_.fc())&&_.Le(e,_.$5(this.data.trackingParams),W);_.Qx(this.hostElement,"ytd-rich-item-index-update-action")};
_.r.miniModeAllowed=function(){return _.S("disable_channels_mini_mode")?!1:this.isChannelPage};
_.r.getMiniGameCardMinWidth=function(){return 154};
_.r.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.rO({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.r.isCurrentPage=function(){return location.pathname===this.pagePath};
_.r.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.ee().resolve(_.WS).getCurrentPage();W&&W.setScrollTop(0)}};
_.r.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.r.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.r.maybeSetBigYoodle=function(){var W,e=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==e&&(this.bigYoodleData=e)};
_.r.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:_.S("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.r.getRichGridStyle=function(){var W,e;return(e=(W=this.data)==null?void 0:W.style)!=null?e:"RICH_GRID_STYLE_UNKNOWN"};
_.r.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,e=W.dispatch,t=this.getRichGridStyle();e.call(W,_.rO({type:"SET_RICH_GRID_STYLE",payload:t}))};
_.Ec.Object.defineProperties(Zw.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.ee().resolve(_.WS).getCurrentPage(),e,t,b;return(((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_audio_pivot"||_.S("web_enable_channel_pivot_panel")&&((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_channel_pivot"||_.S("web_enable_effect_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.ee().resolve(_.WS).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.ee().resolve(_.WS).getCurrentPage())==null?void 0:W.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 W;return this.hideChipsBar||(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.S("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.S("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((e=this.data)==null?0:(t=e.responsiveContainerConfiguration)==null?0:t.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.mn("web_continuation_handler_margin",0):0}}});
Zw.prototype.onIsShortsGridChange=Zw.prototype.onIsShortsGridChange;Zw.prototype.onReloadContinuationFinish=Zw.prototype.onReloadContinuationFinish;Zw.prototype.reflowContent=Zw.prototype.reflowContent;Zw.prototype.handleRerenderDownloadsData=Zw.prototype.handleRerenderDownloadsData;Zw.prototype.onRichShelfRendererCollapse=Zw.prototype.onRichShelfRendererCollapse;Zw.prototype.onRequestElementsPerRow=Zw.prototype.onRequestElementsPerRow;Zw.prototype.contentLengthChanged=Zw.prototype.contentLengthChanged;
Zw.prototype.dataChanged=Zw.prototype.dataChanged;Zw.prototype.onSizingChange=Zw.prototype.onSizingChange;Zw.prototype.onUseCompactListChange=Zw.prototype.onUseCompactListChange;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],Zw.prototype,"ironResizableBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zw.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],Zw.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Zw.prototype,"componentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Zw.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],Zw.prototype,"miniMode",void 0);_.P([_.J({value:[]}),_.Y("design:type",Array)],Zw.prototype,"shownItems",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Zw.prototype,"isReflowing",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Zw.prototype,"isFilteredFeed",void 0);_.P([_.J({selector:_.ah9}),_.Y("design:type",Boolean)],Zw.prototype,"guideIsExpanded",void 0);
_.P([_.J({selectorArgs:["entitySelectorType"],selector:function(W,e){if(_.S("kevlar_modern_downloads_page")&&e&&e!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(e){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var t=W.entities;e=_.yJ(t);var b=_.jw(t),m=_.CyZ(W),q=_.j7K(W);W=_.niQ(W);var Q=_.mdL(t),X=_.o1(e);t=_.CG(t);return _.HqD(e,b,Q,m,q,X,t,W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return e=_.yJ(W.entities),_.Pig(e);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return e=
_.ekQ(W.entities),_.VRK(e);default:_.JC(new _.o_("Error: entitySelectorType defined but not matched in selector.",W,e))}}}),
_.Y("design:type",Object)],Zw.prototype,"entityDrivenRichGridData",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"resizeOnObserverInit",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"bigYoodleData",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"mastheadData",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Zw.prototype,"isInlinePreviewDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"disableStickyFilterBar",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"transparentBackgroundChipsBar",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zw.prototype,"hideChipsBar",void 0);_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"isWatchDefaultLayout",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zw.prototype,"continuationShowButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zw.prototype,"rowReducedHorizontalMargin",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zw.prototype,"useCompactList",void 0);_.P([_.J({selector:function(W){return _.jw(W.entities).length>0}}),
_.Y("design:type",Object)],Zw.prototype,"manualDownloadsPresent",void 0);_.P([_.J({selector:function(W){return _.yJ(W.entities).length>0}}),
_.Y("design:type",Object)],Zw.prototype,"smartDownloadsPresent",void 0);_.P([_.J({selector:_.j7K}),_.Y("design:type",Object)],Zw.prototype,"shouldRenderDownloadsBanner",void 0);_.P([_.J({selector:_.CyZ}),_.Y("design:type",Object)],Zw.prototype,"hasOptedIntoSmartDownloads",void 0);_.P([_.ul("useCompactList"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onUseCompactListChange",null);
_.P([_.ul("sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onSizingChange",null);_.P([_.J({selector:_.Grg}),_.Y("design:type",Number)],Zw.prototype,"miniplayerPlaybackState",void 0);_.P([_.J({selector:_.gO}),_.Y("design:type",Boolean)],Zw.prototype,"miniplayerIsActive",void 0);
_.P([_.J({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],Zw.prototype,"isInlinePreviewEnabled",void 0);_.P([_.J({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Y("design:type",String)],Zw.prototype,"sizing",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zw.prototype,"elementsPerRow",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zw.prototype,"typographyBump",void 0);_.P([_.J(),_.Y("design:type",Number)],Zw.prototype,"itemWidth",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],Zw.prototype,"headerElement",void 0);_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],Zw.prototype,"contentsElement",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"dataChanged",null);
_.P([_.BG("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"contentLengthChanged",null);_.P([_.wz("yt-request-elements-per-row"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onRequestElementsPerRow",null);
_.P([_.wz("yt-rich-shelf-renderer-collapse"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Zw.prototype,"onRichShelfRendererCollapse",null);_.P([_.BG("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"handleRerenderDownloadsData",null);
_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zw.prototype,"entitySelectorType",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isSub",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isWatch",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isShortsPanel",null);_.P([_.J({reflectToAttribute:!0}),_.T("isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"reducedTopMargin",null);_.P([_.J({reflectToAttribute:!0}),_.T("data","isWatch","isWatchDefaultLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"noTopMargin",null);
_.P([_.J({reflectToAttribute:!0}),_.T("isInlinePreviewEnabled","shownItems"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"topRowEndorsement",null);_.P([_.T("data.header"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"hideHeader",null);_.P([_.wz("yt-rich-grid-reflow"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],Zw.prototype,"reflowContent",null);
_.P([_.wz("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onReloadContinuationFinish",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isSlimGrid",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isShortsGrid",null);
_.P([_.T("data","isSlimGrid","isShortsGrid"),_.J(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"noRichItemGutterMargins",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isShortsGridSlim",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isCompactGrid",null);
_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"isDefaultGrid",null);_.P([_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"hideChipsBarOnHome",null);_.P([_.T("data.targetId"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"hideChipsBarOnWatch",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onIsShortsGridChange",null);_.P([_.T("data.enableContentSpecificAspectRatio"),_.J(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zw.prototype,"force16By9ThumbnailAspectRatio",null);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Zw.prototype,"continuationTriggerOffset",null);_.P([_.h({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Zw);
_.H(Zw,"ytd-rich-grid-renderer",function(){if(VyT!==void 0)return VyT;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return VyT=W},{mode:2});var biT=_.NN(function(W){var e=W.thumbsUp,t=W.thumbsDown,b=W.rightAlignThumbs;W=_.R(_.up(!1,void 0,"FjNDrf"));var m=W.next().value,q=W.next().value;W=_.R(_.up(!1,void 0,"Tphjfb"));var Q=W.next().value,X=W.next().value;W={};return _.w("div",{class:_.ve("ytwThumbsUpDownThumbs",(W.ytwThumbsUpDownRightAlign=function(){return b==null?void 0:b()},W))},_.w(_.fU,{data:e,
onToggle:function(I){q(I);Q()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:m()}}}),_.w(_.fU,{data:t,
onToggle:function(I){X(I);m()&&q(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}))},"Ci");
biT.idomCompat=!0;var rRS=_.NN(function(W){var e=function(){return W.data().pendingStateEntityKey||""},t=_.D_(_.llE,e),b=function(){var X;
if(!(X=W.disabled())){var I;X=!((I=t())==null||!I.isPendingResponse)}return X},m=_.R(_.up(uOl(""),void 0,"aC8eBe")),q=m.next().value,Q=m.next().value;
_.jm(function(){requestAnimationFrame(function(){var X=W.data().onShowAnimationMs||0;X=X>0?uOl("--chip-animation-duration: "+X+"ms;"):uOl("");Q(X)})});
return _.w("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:q},_.w(_.lV,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(X){return _.w(mT$,{data:X,disabled:b,pendingStateKey:e,onError:W.onError})}))},"Di"),mT$=_.NN(function(W){var e=_.zT("button"),t=_.R(_.up(!0,void 0,"NaMiCd")),b=t.next().value,m=t.next().value,q=function(){return W.data().text.content},Q=_.Be(function(X){var I,u,c,v,D,B,k,n;
return _.F(function(f){switch(f.nextAddress){case 1:X.stopPropagation();if(W.disabled())return f.return();u=String(Math.floor(((I=_.av())==null?void 0:I.getCurrentTime())||0)*1E3);c="youchat-"+Date.now();v=function(){_.sD(W.data().onClick||{});var M={continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},K={inputComposerFormData:{clientMessageId:c,playerOffsetMs:u}};return new Promise(function(U,V){_.sD(M,{form:{formData:K},commandController:{onSuccess:function(L,
E){U(E)},
onServerError:function(L,E){V(E.error)}}})})};
D=_.ZbC(W.pendingStateKey());D(!0);_.bbu("#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");m(!1);_.Qh(f,2);return _.a(f,v(),4);case 4:_.Hi(f,3);break;case 2:B=_.w9(f),(n=(k=W).onError)==null||n.call(k,B);case 3:D(!1),_.u8(f)}})});
return _.w(_.G,{cond:b,then:function(){return _.w("div",{class:"ytwYouChatChipsDataChipWrapper"},_.w("button",{el:e,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"on:click":Q,tabindex:0},q))}})},"Ei");var qMQ=_.NN(function(W){var e=W.data;return _.w("yt-conversation-resource-view-model",{class:_.ve("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.w(_.nU,{data:function(){var t,b;return((t=e().conversationResourceData)==null?void 0:(b=t.learningGuideData)==null?void 0:b.sections)||[]}},{expandableMetadataViewModel:function(t){return _.w(_.fgu,{data:t.data})}}))},"Fi");
qMQ.idomCompat=!0;var RhQ=_.NN(function(W){var e=function(){var V;return(V=W.data().text)==null?void 0:V.content},t=function(){var V,L;
return(V=W.data().webData)==null?void 0:(L=V.textResult)==null?void 0:L.content},b=_.ee().resolve(_.L4),m=_.wN(),q=function(){return W.data().chatResponseStyle},Q=function(){return!W.data().transparentBackground},X=function(){return W.data().rightAlignThumbs},I=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},u=function(){var V;
return W.data().webData||((V=W.data().text)==null?void 0:V.content)||W.data().videoResultsData||W.data().conversationResourceViewModel||W.data().quiz},c=function(){var V;
return(V=W.data().videoResultsData)==null?void 0:V.videoShelf},v=function(){var V;
return _.l(((V=W.data().videoResultsData)==null?void 0:V.videoShelf)||{},gsU)},D=function(){var V;
return(V=W.data().webData)==null?void 0:V.sourcesShelf},B=function(){var V;
return _.l(((V=W.data().webData)==null?void 0:V.sourcesShelf)||{},gsU)},k=function(){return _.l(W.data().conversationResourceViewModel||{},J51)},n=function(){return _.l(W.data().quiz||{},Cdw)},f=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},M=function(){return _.l(W.data().thumbsUpViewModel,_.pU)},K=function(){return _.l(W.data().thumbsDownViewModel,_.pU)};
_.jm(function(){requestAnimationFrame(function(){var V;(V=W.shouldAnimateIcon)!=null&&V.call(W)&&$1$(m.lottieEl)})});
var U={};return _.w("you-chat-item-view-model",{class:_.ve("ytwYouChatItemViewModelYouChatItemViewModel",(U.ytwYouChatItemViewModelHostNoPadding=function(){return!1},U)),
"data-target-id":function(){return W.data().id||""}},_.w(_.G,{cond:function(){return W.data().removeIcon?!1:u()},
then:function(){var V={};return _.w("div",{"aria-hidden":"true"},_.w(_.G2,{className:_.ve("ytwYouChatItemViewModelIcon",(V.ytwYouChatItemViewModelRtl=b==="rtl",V.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:u())},V)),
animationName:"YOUCHAT_ICON",data:I,animationRef:m}))}}),_.w(_.G,{cond:u,
then:function(){var V={};return _.w("div",{class:_.ve("ytwYouChatItemViewModelHost",(V.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return q()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},V.ytwYouChatItemViewModelGradientBackground=Q,V)),
role:"alert"},_.w(_.G,{cond:e,then:function(L){return _.w(_.n$,{text:L})}}),_.w(_.G,{cond:t,
then:function(L){return _.w(_.n$,{text:L})}}),_.w(_.G,{cond:c,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.jM,{data:v,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.w(_.G,{cond:D,
then:function(){return _.w("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.w(_.jM,{data:B,hasPeek:!0,disableArrows:!1}))}}),_.w(_.G,{cond:k,
then:function(){return _.w(qMQ,{data:k})}}),_.w(_.G,{cond:n,
then:function(){return _.w(_.p8S,{data:n})}}),_.w(_.G,{cond:f,
then:function(){return _.w(biT,{thumbsUp:M,thumbsDown:K,rightAlignThumbs:X})}}))}}),_.w(_.G,{cond:function(){return W.data().chipsData},
then:function(V){return _.w(rRS,{data:V,disabled:W.pending,onError:W.onError})}}))},"Gi");
RhQ.idomCompat={callbacks:{onError:!0,onSend:!0}};var QKg=_.NN(function(W){var e=function(){return W.data().choiceSelectedText};
return _.w("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.w(_.G,{cond:e,then:function(){return _.w("div",{class:"ytYouChatUserTurnChoiceSelected"},_.w(_.WL,{text:e}))}}),_.w("div",{class:"ytYouChatUserTurnUserMessage"},function(){return W.data().text}))},"Hi");var FAB=_.NN(function(W){var e=_.R((0,_.rlv)(W.data)).next().value;return _.w("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.w(_.nU,{data:function(){return W.data().header}},{chipBarViewModel:_.LvN}),_.w(_.nU,{data:function(){return e().contents}},{accordionViewModel:_.C5B,
alertBannerViewModel:_.tpZ,chatLoadingViewModel:_.cQC,chatUserTurnViewModel:QKg,learningJourneyLoaderViewModel:_.kHB,lockupViewModel:function(t){return _.w(_.bO,{data:t.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:W.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(t){return _.w(RhQ,{data:t.data,pending:!1})}}))},"Ii");_.mM(_.NN(function(W){var e=_.R((0,_.rlv)(W.data)).next().value,t=_.zT("yt-section-list-renderer"),b=_.R(_.up(void 0,void 0,"rQpPgc")),m=b.next().value,q=b.next().value,Q=function(){var X;return _.l((X=W.data().sectionListLayoutConfiguration)==null?void 0:X.layoutConfiguration,flw)};
_.nt(function(){var X,I=(X=t.value)==null?void 0:X.clientWidth;if(Q()){X=Q();var u=X.responsiveSize;I=I<528?"CONTAINER_SIZE_NARROW":I<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var c=_.R(X.responsiveMap||[]);for(var v=c.next();!v.done;v=c.next())if(v=v.value,v.containerSize===I){c=v.containerType;break b}c=void 0}if(c&&u){b:{if(c==="CONTAINER_TYPE_VERTICAL_LIST")if(u==="RESPONSIVE_SIZE_STANDARD"){if(I!=="CONTAINER_SIZE_NARROW"){v="50%";break b}}else{v=I==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}v=void 0}X={responsiveSize:u,containerSize:I,containerType:c,force16By9ThumbnailAspectRatio:!X.enableContentSpecificAspectRatio,contentPreviewWidth:v,fullbleed:(c==="CONTAINER_TYPE_VERTICAL_LIST"||c==="CONTAINER_TYPE_GRID")&&I==="CONTAINER_SIZE_NARROW"&&!1}}else X=void 0}else X=void 0;q(X)});
return _.w("yt-section-list-renderer",{class:_.ve("ytSectionListRendererHost",W.className),el:t,"data-target-id":function(){return W.data().targetId||""}},_.w(_.nU,{data:function(){return e().contents}},{itemSectionRenderer:function(X){return _.w(FAB,{data:X.data,
containerLayoutConfig:m})}}))},"Ji"),"yt-section-list-renderer",{props:{data:_.Eu,
className:_.bt}});var Xr$;var IXM;var aX$=function(){return _.O.apply(this,arguments)||this};
_.Z(aX$,_.O);_.P([_.J(),_.Y("design:type",Object)],aX$.prototype,"data",void 0);_.P([_.gz({is:"yt-alert-renderer",disableElementRegistration:!0})],aX$);
_.H(aX$,"yt-alert-renderer",function(){if(IXM===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Xr$===void 0&&(Xr$=document.createElement("template"));var b=Xr$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);IXM=W}W=IXM;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.gNE=function(W,e){var t,b;e=e===void 0?{}:e;var m,q,Q,X,I,u,c,v,D,B,k,n;return _.F(function(f){switch(f.nextAddress){case 1:m=e;q=m.shouldWrap===void 0?!0:m.shouldWrap;Q=m.skipTransitionTimeoutMs===void 0?300:m.skipTransitionTimeoutMs;X=m.beforeTransition;I=m.afterTransition;if(!q||!document.startViewTransition||document.visibilityState==="hidden")return f.return(W());t=window.innerWidth;b=window.innerHeight;u=!1;(c=X)==null||c();_.Qh(f,2);v=document.startViewTransition(W);D=setTimeout(function(){v.skipTransition();
u=!0},Q);
return _.a(f,v.ready,4);case 4:return clearTimeout(D),_.a(f,v.finished,5);case 5:clearTimeout(D);(B=I)==null||B();_.Hi(f,0);break;case 2:k=_.w9(f),(n=I)==null||n(),k&&!u&&document.visibilityState!=="hidden"&&t===window.innerWidth&&b===window.innerHeight&&_.gQ(k),_.u8(f)}})};
_.yb=function(){for(var W=Array(36),e=0,t,b=0;b<36;b++)b==8||b==13||b==18||b==23?W[b]="-":b==14?W[b]="4":(e<=2&&(e=33554432+Math.random()*16777216|0),t=e&15,e>>=4,W[b]=_.o5S[b==19?t&3|8:t]);return W.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 TRC=_.Nw(['<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>']),
JKw=_.F$h(TRC);JKw.setAttribute("style","display: none;");document.head.appendChild(JKw.content);_.jy=_.lb2(function(W){var e=_.DA("DIV");W&&(e.className=W);e.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.DA("DIV");_.Dov(W,"200px","200px");e.appendChild(W);document.body.appendChild(e);W=e.offsetWidth-e.clientWidth;_.BX(e);return W});var xtQ;var OF$;var Cb=function(){var W=_.O.apply(this,arguments)||this;W.icon=null;return W};
_.Z(Cb,_.O);Cb.prototype.dismiss=function(){_.q2(this.hostElement,"yt-live-chat-error-message-dismiss")};
Cb.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
_.P([_.J(),_.Y("design:type",Object)],Cb.prototype,"data",void 0);_.P([_.J({computed:"computeIcon(data.icon)"}),_.Y("design:type",Object)],Cb.prototype,"icon",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Cb);
_.H(Cb,"yt-live-chat-error-message-renderer",function(){if(OF$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;xtQ===void 0&&(xtQ=document.createElement("template"));var b=xtQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);OF$=W}W=OF$;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var BoC,opT,liu,ZpC,CbC,npl,fig,gpB,ToS,jc,JI1,xHQ,Ck,Op9,MxU,sdS,hnT,HpS,KqE,PbT,Vx1,ipE,YIM,znC,UHQ,Lq$,EpQ,AIQ,No$,dHw,WS$,eVT,nk,tlM,b0g,mmT,RVU,Qc1,FSl,Xdl,I9l,a9E,roE,qhU,ugQ,cou,vfC,GW1,Dm$,wdM,BCM;BoC=function(W,e){return _.I1(W.entities,"timedMarkersListSyncEntity",e)};
opT=function(W,e){return _.I1(W.entities,"liveReactionsDataEntity",e)};
liu=function(W,e){W=_.I1(W.entities,"booleanEntity",e);return!(!W||!W.value)};
ZpC=function(W,e){var t=_.fc();t&&W&&_.Ke(t,_.$5(W),e)};
_.$HC=function(){_.S("web_watch_log_theater_mode")&&_.Y92("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.kKg=function(W,e,t){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var b=new Date(0),m=new Date(0);b.setUTCMilliseconds(e);m.setUTCMilliseconds(t);return W.replace("START_TIME_PLACEHOLDER",_.Pm(b,7)).replace("END_TIME_PLACEHOLDER",_.Pm(m,7))};
_.pPw=function(W){return W.watch.isWatchActive};
_.yIE=function(W){return _.hv(W)||_.HS(W)||_.EsZ(W)};
_.jdg=function(W){return!_.yIE(W)};
_.yq=function(W){return W.watch.watchScrollTop};
CbC=function(W){return W.watch.isLiveChatCollapsed};
npl=function(W){return W.watch.openEngagementPanels};
fig=function(W,e){return _.I1(W.entities,"booleanEntity",e)};
gpB=function(){return function(W){_.Uz(_.SX("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
ToS=function(W){switch(W){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}};
jc=function(W,e,t){var b=_.Mk(t);W&&e&&b&&W.getPlayerPromise().then(function(m){_.lWQ(b)&&_.fJ();(new _.$e(m)).executeCommand(b,e);_.S("continue_playback_on_desktop_companion_click")||m.pauseVideo()})};
JI1=function(W){var e=_.tv(),t;if(t=_.HO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;t=(b=t())==null?void 0:b.layoutId}else t=null;jc(e,t,W)};
xHQ=function(W){var e=_.tv(),t;if(t=_.HO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;t=(b=t())==null?void 0:b.layoutId}else t=null;jc(e,t,W)};
Ck=function(W,e){var t=W<0?"-":"";W=Math.abs(W);var b=Math.floor(W/3600),m=Math.floor(W)%3600,q=Math.floor(m/60);m=Math.floor(m)%60;var Q="";(e===void 0?0:e)&&(Q="."+Math.round((W-Math.floor(W))*10));return b>0?t+b+":"+(q<10?"0"+q:""+q)+":"+(m<10?"0"+m:""+m)+Q:t+q+":"+(m<10?"0"+m:""+m)+Q};
Op9=function(W){var e=W.match(/[^0-9:\.]/g);if(e&&e.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;e=1;for(var t=0;W.length>0;){var b=W.pop();if(b===void 0)break;var m=Number(b);if(b===""||isNaN(m))return null;t+=m*e;e*=60}return t};
MxU=function(W,e,t,b){W=Math.max(t,W);e=Math.min(e,b-t);W+e>b?(t=b,W=t-e):t=W+e;return{start:W,end:t}};
sdS=function(W,e,t,b,m,q){W<t?W=t:W+m>b&&(W=b-m);e>b&&(e=b);e=Math.min(W+q,Math.max(W+m,e));return{start:W,end:e}};
hnT=function(W,e,t,b,m,q){e>b?e=b:e-m<t&&(e=t+m);W<t&&(W=t);W=Math.min(e-m,Math.max(e-q,W));return{start:W,end:e}};
HpS=function(W){return _.S("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
KqE=function(W){return _.S("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
PbT=function(W){var e=_.tv(),t;if(t=_.HO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;t=(b=t())==null?void 0:b.layoutId}else t=null;jc(e,t,W)};
Vx1=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
ipE=function(W,e){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:e}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
YIM=function(W){var e=_.tv(),t;t=(t=_.HO("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.layoutId:null;jc(e,t,W)};
znC=function(W){var e=_.tv(),t;t=(t=_.HO("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.layoutId:null;jc(e,t,W)};
UHQ=function(W,e){e=e===void 0?!1:e;if(W.simpleText)W=[{text:W.simpleText}];else{var t;W=((t=W.runs)!=null?t:[]).map(function(b){return Object.assign({},b)})}if(e)for(e=_.R(W),t=e.next();!t.done;t=e.next())t.value.bold=!0;
return W};
Lq$=function(W){var e=W.startEndTimeTemplate,t=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(e&&t&&W)return _.zq(_.kKg(_.Ub(e),Number(t),Number(W)))};
EpQ=function(W,e){var t,b,m=W==null?void 0:(t=W.viewCount)==null?void 0:(b=t.videoViewCountRenderer)==null?void 0:b.shortViewCount;if(!e&&m)return m;var q,Q;return W==null?void 0:(q=W.viewCount)==null?void 0:(Q=q.videoViewCountRenderer)==null?void 0:Q.viewCount};
AIQ=function(W,e){var t=W==null?void 0:W.relativeDateText;return!e&&t?[t,!0]:[W==null?void 0:W.dateText,!1]};
No$=function(W,e,t,b,m){b=b===void 0?!0:b;m=m===void 0?"":m;var q=EpQ(W,e),Q=_.R(AIQ(W,e)),X=Q.next().value;Q=Q.next().value;e=e?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var I=[];t&&q&&I.push(q);!t&&Q||!X||I.push(X);W=[].concat(_.kP(I),[e,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?Lq$(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(u){return!!u});
t={runs:[]};for(q=0;q<W.length;q++)t.runs.push.apply(t.runs,_.kP(UHQ(W[q],b))),q<W.length-1&&t.runs.push({text:" "+m+" ",bold:b});return t};
dHw=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
WS$=function(W){var e,t,b,m;if(W=W==null?void 0:(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.results)==null?void 0:(m=b.results)==null?void 0:m.contents){var q,Q;return(Q=(q=W.find(function(X){return!!X.videoPrimaryInfoRenderer}))==null?void 0:q.videoPrimaryInfoRenderer)==null?void 0:Q.updatedMetadataEndpoint}};
eVT=function(W,e){var t;return(t=W.sourceConfigs)==null?void 0:t.find(function(b){return b.videoId===e})};
nk=function(W){return W==="End of video"||W==="End of playlist"};
tlM=function(W){var e,t,b,m;return(e=W.getWatchNextResponse())==null?void 0:(t=e.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(m=b.playlist)==null?void 0:m.playlist};
b0g=function(W){var e,t,b,m,q,Q;return(e=tlM(W))==null?void 0:(t=e.playlistButtons)==null?void 0:(b=t.menuRenderer)==null?void 0:(m=b.topLevelButtons)==null?void 0:(q=m[0])==null?void 0:(Q=q.playlistLoopButtonRenderer)==null?void 0:Q.playlistLoopStateEntityKey};
mmT=function(W){var e=_.ee().resolve(_.Oj),t;return(e=(t=_.l(e.getAutoplayEndpoint(),_.z4))==null?void 0:t.playlistId)&&e===W};
RVU=function(W,e,t,b,m){function q(){_.Tm.cancelJob(fk);var Q=roE(e,t/W.getPlaybackRate()),X=Q.hours,I=Q.minutes;Q=(Q.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(qhU(X,I));b&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(qhU(X,I,!0));(X>0||I>0)&&!m&&(fk=_.lJ(_.Tm,q,Q))}
_.Tm.cancelJob(fk);fk=_.lJ(_.Tm,q)};
Qc1=function(W,e,t){function b(){_.Tm.cancelJob(gn);var m=roE(e,t),q=m.hours;m=m.minutes;var Q=6E4/W.getPlaybackRate();if(q>0||m>0)W.setSleepTimerTimeLeft(qhU(q,m,!0)),gn=_.lJ(_.Tm,b,Q)}
_.Tm.cancelJob(gn);gn=_.lJ(_.Tm,b)};
FSl=function(W,e){var t=W.getVolume()/(e/500),b=function(m){_.Tm.cancelJob(Tl);var q=Math.floor(m-t);W.setVolume(q,!1);q>0&&(Tl=_.lJ(_.Tm,function(){b(q)},500))};
_.Tm.cancelJob(Tl);Tl=_.lJ(_.Tm,function(){b(W.getVolume())})};
Xdl=function(W,e){_.Tm.cancelJob(Tl);e&&W.syncVolume()};
I9l=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Gv("SLEEP_TIMER_DISRUPTED")}}}}};_.ee().resolve(_.tQ).resolveCommand(W)};
a9E=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
roE=function(W,e){W=W+e-(0,_.eJ)();if(W<=0)return{hours:0,minutes:0,seconds:0};var t=new wdM(0,0,0,0,0,0,W);W=t.getHours();e=t.getMinutes();t=t.getSeconds();t!==0&&e++;e!==0&&e%60===0&&(W++,e=0);return{hours:W,minutes:e,seconds:t}};
qhU=function(W,e,t){return W>0&&e>0?t?_.Gv("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:e.toString()}):_.Gv("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:e.toString()}):W>0?t?_.D8("TIME_LEFT_HOURS",W):_.D8("TIME_HOURS",W):t?_.Gv("TIME_LEFT_MINUTES",{minutes:e.toString()}):_.Gv("TIME_MINUTES",{minutes:e.toString()})};
ugQ=function(W,e){if(W.timelyActions)return W.timelyActions.find(function(t){var b;return((b=_.l(t,J0))==null?void 0:b.cueRangeId)===e})};
cou=function(W){var e=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.XH(W);W.keyMap_.forEach(function(t,b){_.PZ(e,b)||this.remove(b)},W)};
vfC=function(W,e){W.reloadContinuationItemsCommandMatcher=e};
_.xU=function(W,e){W.insertBefore(e,W.childNodes[0]||null)};
GW1=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.uI&&W==0)return!0;switch(W){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 _.w2;default:return!1}};
Dm$=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(GW1(W.keyCode))return!0;switch(W.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!_.w2;default:return W.keyCode<166||W.keyCode>183}};
wdM=function(W,e,t,b,m,q,Q){this.date=typeof W==="number"?new Date(W,e||0,t||1,b||0,m||0,q||0,Q||0):new Date(W&&W.getTime?W.getTime():_.RP())};
_.QP(wdM,_.$F);_.r=wdM.prototype;_.r.getHours=function(){return this.date.getHours()};
_.r.getMinutes=function(){return this.date.getMinutes()};
_.r.getSeconds=function(){return this.date.getSeconds()};
_.r.getMilliseconds=function(){return this.date.getMilliseconds()};
_.r.getUTCDay=function(){return this.date.getUTCDay()};
_.r.getUTCHours=function(){return this.date.getUTCHours()};
_.r.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.r.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.r.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.r.setHours=function(W){this.date.setHours(W)};
_.r.setMinutes=function(W){this.date.setMinutes(W)};
_.r.setSeconds=function(W){this.date.setSeconds(W)};
_.r.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.r.setUTCHours=function(W){this.date.setUTCHours(W)};
_.r.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.r.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.r.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.r.add=function(W){_.$F.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.r.JSC$9284_toIsoString=function(W){var e=_.$F.prototype.JSC$9284_toIsoString.call(this,W);return W?e+"T"+_.m5(this.getHours(),2)+":"+_.m5(this.getMinutes(),2)+":"+_.m5(this.getSeconds(),2):e+"T"+_.m5(this.getHours(),2)+_.m5(this.getMinutes(),2)+_.m5(this.getSeconds(),2)};
_.r.equals=function(W){return this.getTime()==W.getTime()};
_.r.toString=function(){return this.JSC$9284_toIsoString()};
_.r.clone=function(){var W=new wdM(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.ShT=function(W){return _.rO({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
BCM=new _.z("imageTileRenderer");var ofU=new _.z("adGridCardCollectionViewModel");var l99=new _.z("carouselTitleViewModel");var Z0B=new _.z("ctaCarouselItemViewModel");var $mM=new _.z("textFieldViewModel");_.kWM=new _.z("engagementPanelHeaderShowNavigationButtonCommand");var pdB=new _.z("hideEngagementPanelScrimAction");var yoC=new _.z("setActivePanelItemAction");var jcS=new _.z("showEngagementPanelScrimAction");var C1u=new _.z("updateEngagementPanelAction");var nfg=new _.z("updateSearchInVideoResultsAction");var f9S=new _.z("transcriptCueGroupRenderer");var gfu=new _.z("transcriptCueRenderer");var TCE=new _.z("transcriptFooterRenderer");var JoM=new _.z("engagementPanelAdSubtitleRenderer");var xml=new _.z("videoDescriptionFantasySectionViewModel");var O0S=new _.z("deleteClipEngagementPanelCommand");var MlC=new _.z("loopCommand");var scw=new _.z("changeCreatorEndscreenVisibilityCommand");var hV$=new _.z("liveChatCallForQuestionsRenderer");var H0S=new _.z("updateTimedMarkersSyncObserverCommand");var J0=new _.z("timelyActionViewModel");var KSM=new _.z("timelyActionsOverlayViewModel");var P1g=new _.z("repeatChapterCommand");var VlT=new _.z("watchPlayerOverflowMenuCommand");var i01=new _.z("compositeVideoOverlayRenderer");var Yh9=new _.z("sortFilterSubMenuRenderer");var zV9=new _.z("switchListItemViewModel");var Umg=new _.z("inputComposerViewModel");var LSM=new _.z("transcriptEditSegmentCommand");var EfB=new _.z("transcriptUpdateSegmentTextCommand");var AoC=new _.z("transcriptSearchBoxRenderer");var NCC=new _.z("transcriptSegmentListRenderer");var dmC=new _.z("transcriptSegmentRenderer");_.WsU=new _.z("updateDateTextAction");var e3E=new _.z("updateTitleAction");var tnE=new _.z("updateViewershipAction");var bZB=new _.z("carouselLockupRenderer");var mbQ=new _.z("expandableVideoDescriptionBodyRenderer");var rgT=new _.z("videoDescriptionYouchatSectionViewModel");_.OY=_.mn("kevlar_watch_page_horizontal_margin",24);_.qkE=_.mn("kevlar_watch_page_columns_top_padding",24);_.R31=426+_.OY*2;_.Mp=_.mn("kevlar_watch_two_column_width_threshold",1E3);_.QOg=_.OY*2;_.FsC=_.mn("kevlar_watch_secondary_width",402);_.XyT=_.mn("kevlar_watch_max_player_width",1280);_.IPl=_.mn("kevlar_watch_flexy_metadata_height",136);_.aPS=_.QOg+310+_.OY;_.wyC=_.QOg+360+_.OY;var u9T={PAUSE_CHAT:18};var cgC;var v8u;var sY=function(){return _.O.apply(this,arguments)||this};
_.Z(sY,_.O);sY.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
sY.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.l(this.data.button,_.kb);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Ec.Object.defineProperties(sY,{template:{configurable:!0,enumerable:!0,get:function(){if(v8u===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;cgC===void 0&&(cgC=document.createElement("template"));var b=cgC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);v8u=W}W=v8u;return W}}});
_.P([_.y(_.H1),_.Y("design:type",Object)],sY.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({selectorArgs:["data.enabledEntityKey"],selector:liu,observer:"onEnabledChange"}),_.Y("design:type",Boolean)],sY.prototype,"enabled",void 0);_.P([_.J(),_.Y("design:type",Object)],sY.prototype,"data",void 0);_.P([_.gz({is:"yt-disableable-button-view-model",noInjection:!0})],sY);var Gc$;var Dbw;var SkC=["transVert01","transVert02","transVert03"],BeU="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),h0=function(){var W=_.O.apply(this,arguments)||this;W.emojiManager=_.MM;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.Z(h0,_.O);_.r=h0.prototype;_.r.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.r.desktopFountainEmojiSizePxChanged=function(){_.XB(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.r.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.r.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.SX("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.kP(this.emojiContainer.children)).forEach(function(e){e.remove()})};
_.r.detached=function(){this.cleanupFountain()};
_.r.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.kJ.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.r.processEmojiBucket=function(W){var e=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var t=this.reactionBuckets[W];this.generateEmojiAnimations(t);if(W<this.reactionBuckets.length-1){var b;if(t==null?0:(b=t.duration)==null?0:b.seconds)this.emojiBucketTimerId=setTimeout(function(){e.processEmojiBucket(W+1)},Number(t.duration.seconds)*1E3)}}};
_.r.generateEmojiAnimations=function(W){var e=this,t=this.getRandomEmojiIdFromBucketWithOverride(W);if(t&&t!==this.noEmojiIdentifier){var b=0;W.targetEps?(b=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(t,!1,W.emojiAnimationMs,b),b=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(t),b=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){e.generateEmojiAnimations(W)},b)}};
_.r.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var e=W.totalReactions,t=1,b=_.R(W.reactionsData),m=b.next();!m.done;m=b.next())m=m.value,(m.reactionWeightOverride||m.reactionWeightOverride===0)&&m.reactionCount&&(e-=m.reactionCount,t-=m.reactionWeightOverride);b=!0;t<0&&(b=!1,e=W.totalReactions,t=1);if(b&&t>0&&e===0)if(t===1){m=0;for(var q=_.R(W.reactionsData),Q=q.next();!Q.done;Q=q.next())Q=
Q.value,Q.reactionCount&&Q.reactionCount>0&&m++;m=1/m;q=_.R(W.reactionsData);for(Q=q.next();!Q.done;Q=q.next())Q.value.reactionWeightOverride=m}else for(m=1/(1-t),q=_.R(W.reactionsData),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q.reactionWeightOverride&&(Q.reactionWeightOverride*=m);m=Math.random();q=0;Q=_.R(W.reactionsData);for(var X=Q.next();!X.done;X=Q.next())if(X=X.value,X.reactionCount&&(q=(X.reactionWeightOverride||X.reactionWeightOverride===0)&&b?q+X.reactionWeightOverride:q+t*X.reactionCount/
e,q>m&&(X.reactionCount--,W.totalReactions--,X=this.reactionItemToEmojiString(X),X!==this.noEmojiIdentifier)))return X;return this.noEmojiIdentifier};
_.r.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.r.createEmojiAnimation=function(W,e,t,b){e=e===void 0?!1:e;this.lastEmojiRequestedForTesting=W;var m=W.startsWith("yt-icons:"),q=_.xy(this.emojiManager,W);if(q||m){var Q=document.createElement("emoji");Q.classList.add("yt-emoji-fountain-view-model");Q.classList.add(SkC[Math.floor(Math.random()*SkC.length)]);var X=document.createElement("div");X.classList.add("yt-emoji-fountain-view-model");X.classList.add("horizontal-container");X.classList.add(BeU[Math.floor(Math.random()*BeU.length)]);e?(t=document.createElement("div"),
t.classList.add("user-reaction-bubble"),t.classList.add("yt-emoji-fountain-view-model"),X.appendChild(t)):(t&&(Q.style.animationDuration=t+"ms",X.style.animationDuration=t+"ms"),b&&(Q.style.width=b+"px",Q.style.height=b+"px"));m?(m=document.createElement("yt-icon"),m.polymerController.icon=W,b&&(m.style.width=b+"px",m.style.height=b+"px"),W=m):W=this.emojiManager.createEmoji(q,!1);W.classList.add("yt-emoji-fountain-view-model");X.appendChild(W);Q.appendChild(X);this.emojiContainer.appendChild(Q);
Q.addEventListener("animationend",function(){Q.remove()});
var I,u;if((I=this.data)==null?0:(u=I.loggingDirectives)==null?0:u.trackingParams)e=e?_.na(183501):_.na(183500),ZpC(this.data.loggingDirectives.trackingParams,e),_.CrS(e);setTimeout(function(){Q&&Q.remove()},2E3)}};
_.r.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.r.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.r.linearInterpolateBounded=function(W,e,t,b,m){m=Math.min(Math.max(m,W),t);return(e*(t-m)+b*(m-W))/(t-W)};
h0.prototype.onEmojiFountainDataEntityUpdate=h0.prototype.onEmojiFountainDataEntityUpdate;h0.prototype.desktopFountainEmojiSizePxChanged=h0.prototype.desktopFountainEmojiSizePxChanged;h0.prototype.isActiveChanged=h0.prototype.isActiveChanged;_.P([_.J(),_.Y("design:type",_.JH)],h0.prototype,"emojiManager",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],h0.prototype,"ytLiveChatReduxBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],h0.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,e){return _.I1(W.entities,"emojiFountainDataEntity",e)}}),
_.Y("design:type",Object)],h0.prototype,"emojiFountainData",void 0);_.P([_.J(),_.Y("design:type",Boolean)],h0.prototype,"isActive",void 0);_.P([_.ul("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"isActiveChanged",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],h0.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",String)],h0.prototype,"lastEmojiRequestedForTesting",void 0);
_.P([_.J({value:function(){return _.mn("desktop_fountain_emoji_size_px",20)}}),
_.Y("design:type",Number)],h0.prototype,"desktopFountainEmojiSizePx",void 0);_.P([_.ul("desktopFountainEmojiSizePx"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"desktopFountainEmojiSizePxChanged",null);_.P([_.vG("#emoji-container"),_.Y("design:type",HTMLElement)],h0.prototype,"emojiContainer",void 0);
_.P([_.ul("emojiFountainData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h0.prototype,"onEmojiFountainDataEntityUpdate",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],h0);
_.H(h0,"yt-emoji-fountain-view-model",function(){if(Dbw===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Gc$===void 0&&(Gc$=document.createElement("template"));var b=Gc$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Dbw=W}W=Dbw;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var o8g;var lP$;var Hk=function(){return _.O.apply(this,arguments)||this};
_.Z(Hk,_.O);Hk.prototype.onChoiceChanged=function(){this.data&&_.XB(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Hk.prototype.onChoiceChanged=Hk.prototype.onChoiceChanged;_.P([_.J(),_.Y("design:type",Object)],Hk.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hk.prototype,"onChoiceChanged",null);_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Hk);
_.H(Hk,"yt-live-chat-banner-poll-choice",function(){if(lP$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;o8g===void 0&&(o8g=document.createElement("template"));var b=o8g;t.call(e,b.content.cloneNode(!0),W.content.firstChild);lP$=W}W=lP$;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ZZE;var $bu;var Kk=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework_with_live");W.small=!1;return W};
_.Z(Kk,_.O);Kk.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
Kk.prototype.computeId=function(){return this.data&&this.data.targetId};
_.P([_.y(_.KT.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Kk.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.P([_.J({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],Kk.prototype,"id",void 0);_.P([_.J(),_.Y("design:type",Object)],Kk.prototype,"buttonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],Kk.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Kk.prototype,"modern",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Y("design:type",Object)],Kk.prototype,"small",void 0);_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-button"})],Kk);
_.H(Kk,"yt-live-chat-button",function(){if($bu===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ZZE===void 0&&(ZZE=document.createElement("template"));var b=ZZE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);$bu=W}W=$bu;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kcC;var pyC;var Pk=function(){var W=_.O.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.Z(Pk,_.O);_.r=Pk.prototype;_.r.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]]"}}}}}};
_.r.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.r.onYtRendererstamperFinished=function(){this.menuButton=_.rz(this.hostElement).querySelector("#menu-button")};
_.r.dataChanged=function(){var W,e;if((e=_.l((W=this.data)==null?void 0:W.overflowMenuButton,_.Md))==null?0:e.command)this.data.contextMenuEndpoint=_.l(this.data.overflowMenuButton,_.Md).command};
_.r.onButtonClick=function(){var W,e=_.l((W=this.data)==null?void 0:W.askQuestionButton,_.Md);if(e){if(e.trackingParams&&(W=_.$5(e.trackingParams))){var t=_.fc();t&&_.zv(t,W)}_.q2(this.hostElement,"innertube-command",e.command)}};
Pk.prototype.onYtRendererstamperFinished=Pk.prototype.onYtRendererstamperFinished;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],Pk.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],Pk.prototype,"ytLiveChatItemBehavior",void 0);_.P([_.J({observer:"dataChanged"}),_.Y("design:type",Object)],Pk.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Pk.prototype,"inCollapsedBanner",void 0);_.P([_.J(),_.Y("design:type",Object)],Pk.prototype,"buttonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],Pk.prototype,"questionButtonOverrides",void 0);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pk.prototype,"onYtRendererstamperFinished",null);
_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Pk);
_.H(Pk,"yt-live-chat-call-for-questions-renderer",function(){if(pyC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;kcC===void 0&&(kcC=document.createElement("template"));var b=kcC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);pyC=W}W=pyC;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ygB={};ygB.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var e=_.gDh(W.hostElement);e.length&&e[e.length-1].focus()})},
isAttachedChanged_:function(W,e){W?this.focusChild_():e&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.LB(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var jOS;var CoS;var Vq=function(){return _.O.apply(this,arguments)||this};
_.Z(Vq,_.O);Vq.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Vq.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
_.P([_.vG("#confirm_button"),_.Y("design:type",Object)],Vq.prototype,"confirmButton",void 0);_.P([_.vG("#cancel_button"),_.Y("design:type",Object)],Vq.prototype,"cancelButton",void 0);_.P([_.J(),_.Y("design:type",n8l)],Vq.prototype,"data",void 0);_.P([_.J({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vq.prototype,"hidden",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(ygB.YtLiveChatDialogBehavior),_.Y("design:type",Object)],Vq.prototype,"ytLiveChatDialogBehavior",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Vq);
var n8l=_.H(Vq,"yt-live-chat-dialog-renderer",function(){if(CoS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;jOS===void 0&&(jOS=document.createElement("template"));var b=jOS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);CoS=W}W=CoS;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var fPQ;var g8T,Te1=function(){if(g8T!==void 0)return g8T;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;fPQ===void 0&&(fPQ=document.createElement("template"));var b=fPQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return g8T=W};var JgB;var xbw;var iq=function(){var W=_.O.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.Z(iq,_.O);_.r=iq.prototype;
_.r.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.FB)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var e;if((e=this.data)==null?0:e.disabled)this.disabled=!0};
_.r.computeId=function(W){return W};
_.r.computeIcon=function(W,e){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var t,b;return e&&((t=this.data)==null?0:(b=t.toggledIcon)==null?0:b.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.r.logPDGEntryPoint=function(){_.Ntc(_.IX("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")};
_.r.immediatelyShowTooltip=function(){var W=_.rz(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.r.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.r.onClick=function(W){var e;((e=this.data)==null?0:e.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.q2(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.r.computeShowTooltip=function(W,e){return!!(W&&W.tooltip&&e)};
_.r.maybeUpdateTooltipText=function(){var W=this,e;if((e=this.data)==null?0:e.tooltip){var t=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.FB)(W.tooltip).textContent=t},250)}};
_.r.handleLiveChatActions=function(W){var e=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(t){(t=e.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",t))&&t.durationSec===t.fullDurationSec&&e.startBubble(e.colorFromDecimal(t.startBackgroundColor))}))};
_.r.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.r.startBubble=function(W){_.XB(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.r.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.r.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
iq.prototype.onAnimationEnd=iq.prototype.onAnimationEnd;iq.prototype.disabledChanged=iq.prototype.disabledChanged;iq.prototype.dataChanged=iq.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.KT.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],iq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iq.prototype,"data",void 0);_.P([_.J({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],iq.prototype,"id",void 0);_.P([_.J({notify:!0,reflectToAttribute:!0}),_.Y("design:type",Object)],iq.prototype,"active",void 0);
_.P([_.J({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Y("design:type",Object)],iq.prototype,"icon",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iq.prototype,"disabled",void 0);_.P([_.J({computed:"computeShowTooltip(data, disabled)"}),_.Y("design:type",Object)],iq.prototype,"showTooltip",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iq.prototype,"useToggledActiveState",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iq.prototype,"dataChanged",null);_.P([_.ul("disabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iq.prototype,"disabledChanged",null);_.P([_.wz("animationend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iq.prototype,"onAnimationEnd",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],iq);
_.H(iq,"yt-live-chat-icon-toggle-button-renderer",function(){if(xbw===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;JgB===void 0&&(JgB=document.createElement("template"));var b=JgB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);xbw=W}W=xbw;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var OZw;var MnC;var YU=function(){return _.O.apply(this,arguments)||this};
_.Z(YU,_.O);YU.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P([_.J(),_.Y("design:type",Object)],YU.prototype,"data",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],YU);
_.H(YU,"yt-live-chat-message-input-prompt-header-renderer",function(){if(MnC===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;OZw===void 0&&(OZw=document.createElement("template"));var b=OZw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MnC=W}W=MnC;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var sOQ;var h3w;var HZC;var Ks1;var PoC;var Vn9;var iZg=function(){return _.O.apply(this,arguments)||this};
_.Z(iZg,_.O);_.P([_.J(),_.Y("design:type",Object)],iZg.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],iZg);
_.H(iZg,"yt-live-chat-message-subtext-renderer",function(){if(Vn9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;PoC===void 0&&(PoC=document.createElement("template"));var b=PoC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Vn9=W}W=Vn9;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var zl=function(){var W=_.O.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.Z(zl,_.O);zl.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zl.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],zl.prototype,"subtextOnBottom",void 0);_.P([_.J(),_.Y("design:type",Object)],zl.prototype,"buttonOverrides",void 0);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],zl);
_.H(zl,"yt-live-chat-message-renderer",function(){if(Ks1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;HZC===void 0&&(HZC=document.createElement("template"));var b=HZC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Ks1=W}W=Ks1;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var YkU;var z3C;var UY=function(){var W=_.O.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.Z(UY,_.O);_.r=UY.prototype;_.r.computeId=function(){return this.data.id};
_.r.computeInputData=function(){return this.data.inputData};
_.r.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.r.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.r.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.r.getLiveChatRichMessageInput=function(){return _.rz(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.r.clearInput=function(){_.rz(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.r.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.r.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.r.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.r.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.r.onInputFocusOut=function(){this.isInputDirty=!0};
_.r.onClickCloseButton=function(){_.q2(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
UY.prototype.handleTextInputCharCountChanged=UY.prototype.handleTextInputCharCountChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],UY.prototype,"data",void 0);_.P([_.J({computed:"computeId(data.id)"}),_.Y("design:type",String)],UY.prototype,"id",void 0);_.P([_.J({computed:"computeInputData(data.inputData)"}),_.Y("design:type",Object)],UY.prototype,"inputData",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Y("design:type",Object)],UY.prototype,"isRemovable",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Y("design:type",Object)],UY.prototype,"hasPrefilledText",void 0);_.P([_.J({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Y("design:type",Number)],UY.prototype,"charactersRemaining",void 0);
_.P([_.J(),_.Y("design:type",Number)],UY.prototype,"characterCount",void 0);_.P([_.J(),_.Y("design:type",Object)],UY.prototype,"isInputDirty",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Y("design:type",Object)],UY.prototype,"overCharacterLimit",void 0);_.P([_.J({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Y("design:type",Object)],UY.prototype,"underCharacterLimit",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Y("design:type",Object)],UY.prototype,"showErrorMessage",void 0);_.P([_.wz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],UY.prototype,"handleTextInputCharCountChanged",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],UY);
_.H(UY,"yt-live-chat-poll-editor-input",function(){if(z3C===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;YkU===void 0&&(YkU=document.createElement("template"));var b=YkU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);z3C=W}W=z3C;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var UbU;var LsC;var E81={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Lk=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.Z(Lk,_.O);_.r=Lk.prototype;
_.r.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"}}}}};
_.r.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.l((W=this.data)==null?void 0:W.startButton,_.Md)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.r.computeId=function(){return this.data&&this.data.id||""};
_.r.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.r.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.r.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.r.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.r.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.r.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var e=this.pollEditorInfoWithDefaults,t=e.minPollOptionChars,b=e.maxPollOptionChars,m=e.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>e.maxPollQuestionChars)return!1;e=_.rz(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(e).every(function(q,Q){q=q.characterCount;!q&&m[Q]&&(q=W.ytRendererBehavior.getSimpleString(m[Q]).length);return q!==void 0&&q>=t&&q<=b})};
_.r.isValidPollChanged=function(){var W;_.l((W=this.data)==null?void 0:W.startButton,_.Md)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.r.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,e=W.maxPollOptionChars,t=W.optionPlaceholderText,b=W.customOptionPlaceholderText,m=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:b[this.currentNumPollOptions]||t,maxCharacterLimit:e},maxCharacterLimit:e,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!b[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},m.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=m.charCountErrorText),m.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=m.charsRemainingAltLabel),m.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=m.removeOptionAltText),this.push("pollOptionsData",W),m=Array.from(_.rz(_.rz(this.hostElement).querySelector("#poll-options")).children),m.forEach(function(q,Q){q.polymerController.set("data.id",Q)}),_.rz(m[m.length-1]).querySelector("#input").focus())};
_.r.getPollOptionInputValues=function(){var W=this,e=[],t=_.rz(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),b=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(t).forEach(function(m,q){var Q=null;m=m.getLiveChatRichMessageInput();var X;(m==null?0:(X=m.textSegments)==null?0:X.length)?Q=_.He(m):b[q]&&(Q=W.formattedStringToLiveChatRichMessageInput(b[q]));e.push(Q)});
return e};
_.r.requestCreateAndStartPoll=function(W){var e=this.getPollOptionInputValues();if(!e.some(function(b){return!b})){e={optionText:e};
var t=_.rz(_.rz(this.hostElement).querySelector("#poll-question")).firstChild;t&&t.liveChatRichMessageInput&&(e.questionText=_.He(t.liveChatRichMessageInput));_.X5(this.hostElement,[W,e])}};
_.r.selectedChanged=function(){if(this.selected){var W=_.rz(_.rz(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var e;(e=_.rz(W).querySelector("#button")||_.qN(W).querySelector("button"))==null||e.focus()}}};
_.r.handleTextInputChanged=function(W){var e;((e=W.target)==null?void 0:e.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.r.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.r.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.r.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.q2(this.hostElement,"picker-cancelled"),_.RT(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.r.onCloseClick=function(){_.q2(this.hostElement,"picker-cancelled");_.RT(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.r.handlePollEditorInputClosed=function(W){var e=this.pollOptionsData.findIndex(function(t){return t.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",e,1);this.isValidPoll=this.getIsValidPoll()};
_.r.onPickerCancelled=function(){this.reset()};
_.r.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.rz(_.rz(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.rz(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.R(Array.from(W));for(var e=W.next();!e.done;e=W.next())e.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.r.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.Ec.Object.defineProperties(Lk.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(E81,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Lk.prototype.onPickerCancelled=Lk.prototype.onPickerCancelled;Lk.prototype.handlePollEditorInputClosed=Lk.prototype.handlePollEditorInputClosed;Lk.prototype.handleServiceRequestCompleted=Lk.prototype.handleServiceRequestCompleted;Lk.prototype.handleServiceRequestSent=Lk.prototype.handleServiceRequestSent;Lk.prototype.handleTextInputChanged=Lk.prototype.handleTextInputChanged;Lk.prototype.selectedChanged=Lk.prototype.selectedChanged;Lk.prototype.isValidPollChanged=Lk.prototype.isValidPollChanged;
Lk.prototype.shouldInitializePollChanged=Lk.prototype.shouldInitializePollChanged;Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Lk.prototype,"modern",void 0);
_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"closeButtonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"startButtonOverrides",void 0);_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"addOptionButtonOverrides",void 0);_.P([_.J({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Y("design:type",String)],Lk.prototype,"id",void 0);_.P([_.J({value:function(){return[]}}),
_.Y("design:type",Array)],Lk.prototype,"pollOptionsData",void 0);_.P([_.T("pollEditorInfoWithDefaults"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lk.prototype,"pollQuestionData",null);_.P([_.J({value:0}),_.Y("design:type",Number)],Lk.prototype,"pollQuestionCharacterCount",void 0);_.P([_.T("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lk.prototype,"pollQuestionCharactersRemaining",null);
_.P([_.J({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Y("design:type",Boolean)],Lk.prototype,"overQuestionCharacterLimit",void 0);_.P([_.T("data.pollEditorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lk.prototype,"pollEditorInfoWithDefaults",null);_.P([_.J({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Y("design:type",Number)],Lk.prototype,"currentNumPollOptions",void 0);
_.P([_.J({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lk.prototype,"hasMaxNumPollOptions",void 0);_.P([_.T("pollEditorInfoWithDefaults","pollOptionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Lk.prototype,"shouldInitializePoll",null);_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"isValidPoll",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lk.prototype,"createPollRequestInFlight",void 0);_.P([_.J(),_.Y("design:type",Object)],Lk.prototype,"selected",void 0);_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Y("design:type",Boolean)],Lk.prototype,"showQuestionErrorMessage",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"dataChanged",null);_.P([_.ul("shouldInitializePoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"shouldInitializePollChanged",null);_.P([_.ul("isValidPoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"isValidPollChanged",null);
_.P([_.ul("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"selectedChanged",null);_.P([_.wz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lk.prototype,"handleTextInputChanged",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"handleServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lk.prototype,"handleServiceRequestCompleted",null);
_.P([_.wz("yt-live-chat-poll-editor-input-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Lk.prototype,"handlePollEditorInputClosed",null);_.P([_.wz("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lk.prototype,"onPickerCancelled",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Lk);
_.H(Lk,"yt-live-chat-poll-editor-panel-renderer",function(){if(LsC===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;UbU===void 0&&(UbU=document.createElement("template"));var b=UbU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);LsC=W}W=LsC;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Ag$;var Nel;var EY=function(){return _.O.apply(this,arguments)||this};
_.Z(EY,_.O);EY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
EY.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Ec.Object.defineProperties(EY.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,e;return(W=this.data)==null?void 0:(e=W.title)==null?void 0:e.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.Mk((W=this.data)==null?void 0:W.onTapCommand)}}});
_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],EY.prototype,"ytEndpointBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],EY.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EY.prototype,"itemId",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EY.prototype,"hasPromotion",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EY.prototype,"innertubeCommand",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],EY);
_.H(EY,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Nel===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Ag$===void 0&&(Ag$=document.createElement("template"));var b=Ag$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Nel=W}W=Nel;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var dbU;var WvE;var A0=function(){var W=_.O.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.Z(A0,_.O);_.r=A0.prototype;_.r.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.r.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.rz(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.r.onCloseBuyFlow=function(){_.q2(this.hostElement,"picker-cancelled")};
_.r.onCloseClick=function(){_.q2(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.l(this.data.closeButton,_.kb))};
_.r.onCloseEngageWithAudienceEditorPanels=function(){_.q2(this.hostElement,"picker-cancelled")};
A0.prototype.observeSelected=A0.prototype.observeSelected;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],A0.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A0.prototype,"id",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],A0.prototype,"selected",void 0);_.P([_.J(),_.Y("design:type",Object)],A0.prototype,"closeButtonId",void 0);_.P([_.ul("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A0.prototype,"observeSelected",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],A0);
_.H(A0,"yt-live-chat-product-picker-panel-view-model",function(){if(WvE===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;dbU===void 0&&(dbU=document.createElement("template"));var b=dbU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);WvE=W}W=WvE;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var eCT;var tiU;var Np=function(){var W=_.O.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.S("kevlar_system_icons");return W};
_.Z(Np,_.O);_.r=Np.prototype;_.r.attached=function(){_.S("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.r.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.r.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.r.computeDisabled=function(W){return!!W};
_.r.computeCommand=function(W,e){return e?void 0:W};
_.r.computeTooltip=function(W,e){return e&&W?W:""};
_.r.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Ec.Object.defineProperties(Np.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.S("live_chat_compute_product_button_aria_label"))return"";var W="",e,t,b;if((e=this.data)==null?0:(t=e.text)==null?0:(b=t.runs)==null?0:b.length)W=this.data.text.runs[0].text||"";else{var m,q;if((m=this.data)==null?0:(q=m.text)==null?0:q.simpleText)W=this.data.text.simpleText}var Q,X,I;if((Q=this.data)==null?0:(X=Q.subtext)==null?0:(I=X.runs)==null?0:I.length)W&&(W+=". "),W+=this.data.subtext.runs[0].text||
"";else{var u,c;if((u=this.data)==null?0:(c=u.subtext)==null?0:c.simpleText)W&&(W+=". "),W+=this.data.subtext.simpleText}return W}}});
_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],Np.prototype,"ytEndpointBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Np.prototype,"data",void 0);_.P([_.J({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],Np.prototype,"iconId",void 0);
_.P([_.J({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],Np.prototype,"icon",void 0);_.P([_.J({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Y("design:type",Object)],Np.prototype,"disabled",void 0);_.P([_.J({computed:"computeCommand(data.command, disabled)"}),_.Y("design:type",Object)],Np.prototype,"command",void 0);_.P([_.J({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Y("design:type",String)],Np.prototype,"tooltip",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Np.prototype,"systemIcons",void 0);_.P([_.T("data.text","data.subtext"),_.J(),_.Y("design:type",String),_.Y("design:paramtypes",[])],Np.prototype,"ariaLabel",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Np);
_.H(Np,"yt-live-chat-product-button-renderer",function(){if(tiU===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;eCT===void 0&&(eCT=document.createElement("template"));var b=eCT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);tiU=W}W=tiU;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var bg9;var mxw;var dn=function(){var W=_.O.apply(this,arguments)||this;W.selected=!1;W.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 W};
_.Z(dn,_.O);_.r=dn.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.computeId=function(W){return W.id||""};
_.r.onCloseClick=function(){_.q2(this.hostElement,"picker-cancelled")};
_.r.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.r.onCloseBuyFlow=function(){_.q2(this.hostElement,"picker-cancelled")};
_.r.onCloseEngageWithAudienceEditorPanels=function(){_.q2(this.hostElement,"picker-cancelled")};
dn.prototype.observeSelected=dn.prototype.observeSelected;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dn.prototype,"data",void 0);
_.P([_.J({computed:"computeId(data)",reflectToAttribute:!0}),_.Y("design:type",String)],dn.prototype,"id",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],dn.prototype,"selected",void 0);_.P([_.ul("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dn.prototype,"observeSelected",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],dn);
_.H(dn,"yt-live-chat-product-picker-renderer",function(){if(mxw===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;bg9===void 0&&(bg9=document.createElement("template"));var b=bg9;t.call(e,b.content.cloneNode(!0),W.content.firstChild);mxw=W}W=mxw;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var rVB;var qKB;var RCT;var QFB;var Ws=function(){return _.O.apply(this,arguments)||this};
_.Z(Ws,_.O);Ws.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()};
Ws.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Ws.prototype.created=function(){this.ids={background:_.yb(),maskOne:_.yb(),maskTwo:_.yb(),gradient:_.yb(),largeBackground:_.yb(),largeGradientOne:_.yb(),largeGradientTwo:_.yb(),largeGradientPath:_.yb()}};
Ws.prototype.maybeLoadAnimationBackground=Ws.prototype.maybeLoadAnimationBackground;_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Ws.prototype,"useLargeBackground",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Ws.prototype,"useAnimationBackground",void 0);_.P([_.J({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Y("design:type",Boolean)],Ws.prototype,"useRegularBackground",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ws.prototype,"ids",void 0);_.P([_.J(),_.Y("design:type",Object)],Ws.prototype,"lottieAnimation",void 0);_.P([_.vG("#animation-background"),_.Y("design:type",HTMLDivElement)],Ws.prototype,"animationBackground",void 0);_.P([_.ul("useAnimationBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ws.prototype,"maybeLoadAnimationBackground",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Ws);
_.H(Ws,"yt-live-interactivity-component-background",function(){if(QFB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;RCT===void 0&&(RCT=document.createElement("template"));var b=RCT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);QFB=W}W=QFB;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var eZ=function(){var W=_.O.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.S("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.Z(eZ,_.O);_.r=eZ.prototype;
_.r.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]]"}}}}}};
_.r.onCharacterCountChanged=function(W){var e,t,b,m,q=(t=_.l(this==null?void 0:(e=this.data)==null?void 0:e.creatorCallForQuestions,hV$))==null?void 0:(b=t.inputField)==null?void 0:(m=b.liveChatTextInputFieldRenderer)==null?void 0:m.maxCharacterLimit,Q,X;q!=null&&(W==null?void 0:(Q=W.detail)==null?void 0:Q.characterCount)!=null&&_.l(this==null?void 0:(X=this.data)==null?void 0:X.startButton,_.Md)&&(e=W.detail.characterCount>q,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||e),this.showInputErrorMessage=e)};
_.r.onCloseClick=function(){_.q2(this.hostElement,"picker-cancelled");_.RT(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.onPickerCancelled=function(){var W=_.rz(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.r.handleOpenQnaStartPanel=function(){var W=_.rz(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.r.handleStartButtonAction=function(W){var e=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var t=_.rz(this.hostElement).querySelector("#qna-creator-text-input-field"),b;(t==null?0:(b=t.liveChatRichMessageInput)==null?0:b.textSegments)&&t.liveChatRichMessageInput.textSegments.length!==0&&(b={rich_message:_.He(t.liveChatRichMessageInput)},_.X5(this.hostElement,[W,b]).then(function(){_.q2(e.hostElement,"picker-cancelled")}))}};
_.r.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.r.handleServiceRequestCompleted=function(W){var e;W=W==null?void 0:(e=W.detail)==null?void 0:e.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.RT(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.r.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
eZ.prototype.handleServiceRequestError=eZ.prototype.handleServiceRequestError;eZ.prototype.handleServiceRequestCompleted=eZ.prototype.handleServiceRequestCompleted;eZ.prototype.handleServiceRequestSent=eZ.prototype.handleServiceRequestSent;eZ.prototype.onPickerCancelled=eZ.prototype.onPickerCancelled;eZ.prototype.onCharacterCountChanged=eZ.prototype.onCharacterCountChanged;_.P([_.J(),_.Y("design:type",Object)],eZ.prototype,"characterCount",void 0);
_.P([_.J(),_.Y("design:type",Object)],eZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],eZ.prototype,"showInputErrorMessage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],eZ.prototype,"startQnaRequestInFlight",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],eZ.prototype,"modern",void 0);_.P([_.J(),_.Y("design:type",Object)],eZ.prototype,"buttonOverrides",void 0);
_.P([_.J(),_.Y("design:type",Object)],eZ.prototype,"closeButtonOverrides",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],eZ.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.y(_.sP.YtLiveChatItemBehavior),_.Y("design:type",_.hH)],eZ.prototype,"ytLiveChatItemBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],eZ.prototype,"ytActionHandlerBehavior",void 0);_.P([_.wz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eZ.prototype,"onCharacterCountChanged",null);_.P([_.wz("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eZ.prototype,"onPickerCancelled",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eZ.prototype,"handleServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eZ.prototype,"handleServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eZ.prototype,"handleServiceRequestError",null);_.P([_.h({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],eZ);
_.H(eZ,"yt-live-chat-qna-start-panel-renderer",function(){if(qKB===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;rVB===void 0&&(rVB=document.createElement("template"));var b=rVB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);qKB=W}W=qKB;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Fvg;var XcQ;var tf=function(){return _.O.apply(this,arguments)||this};
_.Z(tf,_.O);tf.prototype.dismiss=function(){_.q2(this.hostElement,"yt-live-chat-error-message-dismiss")};
tf.prototype.edit=function(){_.q2(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.P([_.J(),_.Y("design:type",Object)],tf.prototype,"data",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],tf);
_.H(tf,"yt-live-chat-text-actions-error-message-renderer",function(){if(XcQ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Fvg===void 0&&(Fvg=document.createElement("template"));var b=Fvg;t.call(e,b.content.cloneNode(!0),W.content.firstChild);XcQ=W}W=XcQ;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var IfT;var afC;var wc$;var uou;var bK=function(){var W=_.O.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.Z(bK,_.O);bK.prototype.sendReaction=function(){var W,e,t=((W=this.data)==null?void 0:W.emojiId)||((e=this.data)==null?void 0:e.emoteId),b;t&&((b=this.data)==null?0:b.shouldTriggerAnimation)&&_.RT(this.hostElement,"yt-create-user-reaction-animation",[t]);var m;(W=_.Mk((m=this.data)==null?void 0:m.onTap))&&_.cg(W,this.hostElement);this.showNewnessDot&&_.RT(this.hostElement,"yt-hide-newness-dot")};
bK.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
bK.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.Ec.Object.defineProperties(bK.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!(((W=this.data)==null?0:W.emojiId)||((e=this.data)==null?0:e.emoteId))}}});
_.P([_.J(),_.Y("design:type",Object)],bK.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],bK.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],bK.prototype,"newnessDotEligible",void 0);_.P([_.T("data.maybeShowNewnessDot"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bK.prototype,"showNewnessDot",null);_.P([_.T("data.emojiId","data.emoteId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bK.prototype,"useYtImage",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],bK);
_.H(bK,"yt-reaction-control-panel-button-view-model",function(){if(uou===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;wc$===void 0&&(wc$=document.createElement("template"));var b=wc$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);uou=W}W=uou;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var cVE;var v$C;var mC=function(){var W=_.O.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.Z(mC,_.O);_.r=mC.prototype;_.r.expandedButtonsChanged=function(){var W,e;_.XB(this.hostElement,{"--expanded-buttons-height":((e=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?e:0)*36+"px"})};
_.r.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}}};
_.r.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.r.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.r.onFocusIn=function(){this.onMouseEnter()};
_.r.onFocusOut=function(){this.onMouseLeave()};
_.r.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var e;(e=W.expandedButtons.querySelector("button"))==null||e.focus()},100)};
_.r.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.Ec.Object.defineProperties(mC.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,e;return _.kJ.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((e=this.data)==null?void 0:e.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
mC.prototype.expandedButtonsChanged=mC.prototype.expandedButtonsChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],mC.prototype,"ytLiveChatReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mC.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],mC.prototype,"reactionControlPanelExpanded",void 0);_.P([_.J({selectorArgs:["data.liveReactionsDataEntityKey"],selector:opT}),_.Y("design:type",Object)],mC.prototype,"liveReactionsData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],mC.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],mC.prototype,"newnessDotEligible",void 0);
_.P([_.T("liveReactionsData","data.expandedButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mC.prototype,"expandedButtonsData",null);_.P([_.T("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.J({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mC.prototype,"showNewnessDot",null);_.P([_.vG("#expanded-buttons"),_.Y("design:type",HTMLElement)],mC.prototype,"expandedButtons",void 0);
_.P([_.ul("expandedButtonsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mC.prototype,"expandedButtonsChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],mC);
_.H(mC,"yt-reaction-control-panel-view-model",function(){if(v$C===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;cVE===void 0&&(cVE=document.createElement("template"));var b=cVE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);v$C=W}W=v$C;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var r_=new _.sH("yt-live-chat"),GGg=Date.parse("2024-7-24"),qa=function(){var W=_.O.apply(this,arguments)||this;W.emojiManager=_.MM;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.Z(qa,_.O);_.r=qa.prototype;_.r.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=r_.getCreationTime("emoji-customization-count"))&&W<GGg&&r_.set("emoji-customization-count","0"),W=Number(r_.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,r_.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.r.hideNewnessDot=function(){this.newnessDotEligible=!1;r_.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.r.handleReactionsMute=function(W){var e=_.fc(),t=_.na(206221),b={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};e&&_.zv(e,t,b);this.reactionsMuted=W};
_.r.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.r.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}}};
_.Ec.Object.defineProperties(qa.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
qa.prototype.liveReactionsSettingChanged=qa.prototype.liveReactionsSettingChanged;qa.prototype.emojiCustomizationEnabledChanged=qa.prototype.emojiCustomizationEnabledChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.H1),_.Y("design:type",Object)],qa.prototype,"ytLiveChatReduxBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],qa.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qa.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",_.JH)],qa.prototype,"emojiManager",void 0);_.P([_.J(),_.Y("design:type",Object)],qa.prototype,"newnessDotEligible",void 0);_.P([_.J(),_.Y("design:type",Object)],qa.prototype,"newnessDotImpressionCounted",void 0);
_.P([_.J({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:liu}),_.Y("design:type",Boolean)],qa.prototype,"liveReactionsSetting",void 0);_.P([_.J({selectorArgs:["data.liveReactionsDataEntityKey"],selector:opT}),_.Y("design:type",Object)],qa.prototype,"liveReactionsData",void 0);_.P([_.J({value:function(){var W=_.S("enable_lwe_web_mute"),e=r_.get("allow-reactions");return e===void 0?!1:!e&&W}}),
_.Y("design:type",Boolean)],qa.prototype,"reactionsMuted",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qa.prototype,"liveReactionsEnabled",null);_.P([_.ul("data.emojiCustomizationEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qa.prototype,"emojiCustomizationEnabledChanged",null);
_.P([_.ul("liveReactionsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qa.prototype,"liveReactionsSettingChanged",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],qa);
_.H(qa,"yt-reaction-control-panel-overlay-view-model",function(){if(afC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;IfT===void 0&&(IfT=document.createElement("template"));var b=IfT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);afC=W}W=afC;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DxU={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var e=this.$.pickers.selected;if(e){_.rz(this.hostElement).removeAttribute(e+"-open");var t="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(t="#picker-buttons",e==="emoji"&&_.rz(this.hostElement).querySelector("#emoji-picker-button")&&(t="#emoji-picker-button"));if(t=_.rz(this.hostElement).querySelector(t).querySelector("#"+e))t.active=!1}t=W;e==W&&(t=null);e!=
W&&_.rz(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=t;_.RT(this.hostElement,"yt-live-chat-picker-changed",[t])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Rq=function(){var W=_.O.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.S("kevlar_system_icons");W.tallerEmojiPicker=_.S("live_chat_taller_emoji_picker");
W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.Z(Rq,_.O);_.r=Rq.prototype;
_.r.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"}}}};
_.r.attached=function(){window.addEventListener("resize",this.onResize)};
_.r.detached=function(){window.removeEventListener("resize",this.onResize)};
_.r.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.r.sendMessage=function(){var W=this,e,t,b,m;return _.F(function(q){if(W.sendDisabled)return q.return();W.isTooltipVisible&&_.RT(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();e=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!e)return q.return();b=((t=_.l(e,_.jrv))==null?void 0:t.clientIdPrefix)||"";m={client_message_id:b+String(W.numSentMessages++),rich_message:_.He(W.input.liveChatRichMessageInput)};
W.pendingMessageId=m.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.X5(W.hostElement,[e,m]);W.input.setLiveChatRichMessageInput(null)}_.u8(q)})};
_.r.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.r.onSendCompleted=function(W,e){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",e.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",e.data);this.pendingMessageId=""};
_.r.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.RT(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.r.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var e,t;(e=_.rz(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(t=e.querySelector("#qna-creator-text-input-field"))==null||t.focus()}};
_.r.onComponentReplaced=function(W){var e,t;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((e=W.replacement.liveChatMessageInputRenderer)==null?0:(t=e.headerRenderer)==null?0:t.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.r.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.r.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.r.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.RT(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.RT(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.r.onOpenPopupAction=function(W,e){var t=this;e===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.RT(t.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.r.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.r.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.r.focusChanged=function(){this.maybeToggleCharacterCount()};
_.r.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.r.computeId=function(){return this.data&&this.data.targetId||""};
_.r.computeSendDisabled=function(W,e,t,b){W=!!(!W||e&&W>e||b);(e=_.rz(this.hostElement).querySelector("#send-button"))&&e.children.length&&(e.children[0].disabled=W);return W};
_.r.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.r.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.r.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.r.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.r.errorMessageChanged=function(){var W=this;_.hc(function(){_.RT(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.r.computeAuthorNameColor=function(W){var e;if(_.S("live_chat_author_name_color_usernames")&&(W==null?0:(e=W.authorName)==null?0:e.simpleText))return _.vRL(_.GYg(W.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.vRL(_.X1(W.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var t;return _.S("live_chat_simple_color_usernames")&&(W==null?0:(t=W.authorName)==null?0:t.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.X1(W.authorUsernameColorDark):_.X1(W.authorUsernameColorLight):""};
_.r.onIsTooltipVisibleChanged=function(){var W=_.rz(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.r.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.Ec.Object.defineProperties(Rq.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.pickers)==null?void 0:e.find(function(t){return t.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Rq.prototype.onIsTooltipVisibleChanged=Rq.prototype.onIsTooltipVisibleChanged;Rq.prototype.errorMessageChanged=Rq.prototype.errorMessageChanged;Rq.prototype.onErrorMessageEdit=Rq.prototype.onErrorMessageEdit;Rq.prototype.onErrorMessageDismiss=Rq.prototype.onErrorMessageDismiss;Rq.prototype.focusChanged=Rq.prototype.focusChanged;Rq.prototype.characterCountChanged=Rq.prototype.characterCountChanged;Rq.prototype.onEmojiSelect=Rq.prototype.onEmojiSelect;Rq.prototype.handlePickerButtonToggle=Rq.prototype.handlePickerButtonToggle;
Rq.prototype.onSendError=Rq.prototype.onSendError;Rq.prototype.onSendCompleted=Rq.prototype.onSendCompleted;Rq.prototype.sendMessage=Rq.prototype.sendMessage;Rq.prototype.dataChanged=Rq.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Rq.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(DxU.YtPickerBehavior),_.Y("design:type",Object)],Rq.prototype,"ytPickerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.KT.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Rq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"hasFiredInitialFocusActions",void 0);
_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"isBeforeFocusEnabled",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"data",void 0);_.P([_.J({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],Rq.prototype,"id",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"characterCount",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"maxCharacterLimit",void 0);
_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"remainingCharacterCount",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rq.prototype,"inputExpanded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Rq.prototype,"inputFocused",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Rq.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.P([_.J(),_.Y("design:type",_.P4)],Rq.prototype,"participantsManager",void 0);
_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"buttonOverrides",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rq.prototype,"inReplyPanel",void 0);_.P([_.T("characterCount, maxCharacterLimit, countdownActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"sendDisabled",null);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"countdownRatio",void 0);
_.P([_.T("countdownRatio"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Rq.prototype,"countdownStrokeDashOffset",null);_.P([_.T("countdownRatio"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"countdownActive",null);_.P([_.T("data.interactionMessage"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"hasInteractionMessage",null);
_.P([_.T("data.emojiPickerButton"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"hasEmojiPickerButton",null);_.P([_.T("data, characterCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"showAvatar",null);_.P([_.T("data.pickers"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rq.prototype,"hasProductPickerPanelViewModel",null);
_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"errorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"genericErrorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"isTooltipVisible",void 0);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"tooltipTimeout",void 0);_.P([_.T("data.onInitialFocusCommand"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Rq.prototype,"tooltipMessage",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rq.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rq.prototype,"tallerEmojiPicker",void 0);_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Rq.prototype,"authorNameColor",null);_.P([_.J(),_.Y("design:type",Object)],Rq.prototype,"sendReplyMessageInFlight",void 0);_.P([_.vG("#input"),_.Y("design:type",_.F8P)],Rq.prototype,"input",void 0);
_.P([_.vG("#count"),_.Y("design:type",HTMLElement)],Rq.prototype,"count",void 0);_.P([_.vG("#input-container"),_.Y("design:type",HTMLElement)],Rq.prototype,"inputContainer",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"dataChanged",null);_.P([_.wz("yt-live-chat-send-message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Rq.prototype,"sendMessage",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.Ap]),_.Y("design:returntype")],Rq.prototype,"onSendCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"onSendError",null);
_.P([_.wz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rq.prototype,"handlePickerButtonToggle",null);_.P([_.wz("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rq.prototype,"onEmojiSelect",null);
_.P([_.ul("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"characterCountChanged",null);_.P([_.ul("inputFocused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"focusChanged",null);_.P([_.wz("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"onErrorMessageDismiss",null);
_.P([_.wz("yt-live-chat-error-message-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rq.prototype,"onErrorMessageEdit",null);_.P([_.ul("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"errorMessageChanged",null);_.P([_.ul("isTooltipVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rq.prototype,"onIsTooltipVisibleChanged",null);
_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Rq);
_.H(Rq,"yt-live-chat-message-input-renderer",function(){if(h3w===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;sOQ===void 0&&(sOQ=document.createElement("template"));var b=sOQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);h3w=W}W=h3w;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var SK$;var BIw;var QR=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.Z(QR,_.O);
QR.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"}}}};
QR.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
QR.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.RT(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.Ec.Object.defineProperties(QR.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.panels)==null?void 0:e.find(function(t){return t.liveChatProductPickerPanelViewModel}))!==void 0}}});
QR.prototype.onButtonToggle=QR.prototype.onButtonToggle;_.P([_.y(DxU.YtPickerBehavior),_.Y("design:type",Object)],QR.prototype,"ytPickerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],QR.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QR.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Object)],QR.prototype,"firedOnClickCommand",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QR.prototype,"inReplyPanel",void 0);_.P([_.T("data.pickers"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QR.prototype,"hasProductPickerPanelViewModel",null);
_.P([_.wz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QR.prototype,"onButtonToggle",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],QR);
_.H(QR,"yt-live-chat-restricted-participation-renderer",function(){if(BIw===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;SK$===void 0&&(SK$=document.createElement("template"));var b=SK$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);BIw=W}W=BIw;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Fc=function(){var W=_.O.apply(this,arguments)||this;W.genericErrorMessage=_.zq("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.Z(Fc,_.O);Fc.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}}}}}};
_.Ec.Object.defineProperties(Fc,{template:{configurable:!0,enumerable:!0,get:function(){return Te1()}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Fc.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Fc.prototype,"genericErrorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],Fc.prototype,"inReplyPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fc.prototype,"hideBorder",void 0);
_.P([_.gz({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Fc);_.H(Fc,"yt-live-chat-engagement-panel-input-renderer",function(){return Te1()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var o$T,lfl;o$T=_.na(115994);lfl=_.na(115993);_.Xc=function(W,e,t){var b=this;var m=t.dragDownAction;this.layer=0;this.JSC$19984_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$19984_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var q=_.Sg();_.I0(q,o$T,this.layer);_.I0(q,lfl,this.layer);this.dragDownAction=function(){m();_.Pe(q,{visualElement:b.fullscreen?o$T:lfl})};
this.gesture=new _.w4(W,e,this.JSC$19984_watchConfig,"pandown");this.attach()};
_.Xc.prototype.attach=function(){this.gesture.attach()};
_.Xc.prototype.detach=function(){this.gesture.detach()};
_.Xc.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$19984_watchFullScreenConfig:this.JSC$19984_watchConfig};var ZgQ={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.kJ.unsafeClone(W[0]);var e=this.macros||{},t=this.getAdModuleClient_();if(!t)return _.aT();W.loggingUrls.forEach(function(b){if(b.baseUrl){var m=b.baseUrl;var q=e;q=q===void 0?{}:q;m=t.getOptions().includes("replaceUrlMacros")?_.ZWe(t,"replaceUrlMacros",{url:m,additionalMapping:q}):m;b.baseUrl=m}},this);
W=[W]}return _.X5(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.tv(this);return W?(W=W.getPlayer())?new _.$e(W):null:null}}]};var $xC;var Iq=function(){var W=_.O.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.S("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.Z(Iq,_.O);_.r=Iq.prototype;_.r.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var e=_.fc(),t=this.get("data.donateButton.buttonRenderer.trackingParams");e&&t&&_.zv(e,_.$5(t));this.ytOpenPopupBehavior.openPopup(W)}};
_.r.onShowMore=function(){this.isCollapsed=!1;var W=_.fc(),e=this.get("data.expandButton.buttonRenderer.trackingParams");W&&e&&_.zv(W,_.$5(e))};
_.r.onShowLess=function(){this.isCollapsed=!0};
_.r.dataChanged=function(){_.XB(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.r.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.RT(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.r.computeHeaderBackgroundUrl=function(W,e){if(W)return e?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.r.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.r.headerBackgroundClass=function(){return _.Ot("HTML_DIR")==="rtl"?"flip":""};
Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],Iq.prototype,"ytOpenPopupBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Iq.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Iq.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Iq.prototype,"isCollapsed",void 0);_.P([_.J({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Y("design:type",String)],Iq.prototype,"headerBackgroundUrl",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Iq.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Iq.prototype,"modernPanels",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Iq.prototype,"dataChanged",null);_.P([_.h({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Iq);
_.H(Iq,"ytd-donation-shelf-renderer",function(){if($xC!==void 0)return $xC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $xC=W},{mode:1});var kGC;var pcE=function(){return _.O.apply(this,arguments)||this};
_.Z(pcE,_.O);_.P([_.J(),_.Y("design:type",Object)],pcE.prototype,"data",void 0);_.P([_.h({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],pcE);
_.H(pcE,"ytd-donation-unavailable-renderer",function(){if(kGC!==void 0)return kGC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kGC=W},{mode:1});var yVC;var aq=function(){return _.O.apply(this,arguments)||this};
_.Z(aq,_.O);aq.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aq.prototype,"data",void 0);_.P([_.h({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],aq);
_.H(aq,"ytd-limited-state-message-renderer",function(){if(yVC!==void 0)return yVC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yVC=W},{mode:1});var jFQ;var w_=function(){return _.O.apply(this,arguments)||this};
_.Z(w_,_.O);w_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
w_.prototype.onTap=function(W){var e=this.data&&this.data.endpoint;e&&!_.NA(_.LB(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.q2(this.hostElement,"yt-navigate",{endpoint:e})};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],w_.prototype,"data",void 0);_.P([_.h({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],w_);
_.H(w_,"ytd-autotagging-metadata-renderer",function(){if(jFQ!==void 0)return jFQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jFQ=W},{mode:1});var C3E;var uK=function(){return _.O.apply(this,arguments)||this};
_.Z(uK,_.O);uK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uK.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uK.prototype,"data",void 0);_.P([_.h({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],uK);
_.H(uK,"ytd-autotagging-metadata-row-renderer",function(){if(C3E!==void 0)return C3E;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return C3E=W},{mode:1});var n$Q;var ffT;var cs=function(){var W=_.O.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.Z(cs,_.O);cs.prototype.computeHasDividerLine=function(W,e){return W&&!e};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cs.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Y("design:type",Boolean)],cs.prototype,"hasDividerLine",void 0);_.P([_.J(),_.Y("design:type",Object)],cs.prototype,"engagementPanelContent",void 0);
_.P([_.h({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],cs);
_.H(cs,"ytd-metadata-row-header-renderer",function(){if(ffT!==void 0)return ffT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ffT=W},{mode:1});var g$U;var vs=function(){return _.O.apply(this,arguments)||this};
_.Z(vs,_.O);vs.prototype.computeHasDividerLine=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vs.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],vs.prototype,"hasDividerLine",void 0);_.P([_.h({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],vs);
_.H(vs,"ytd-metadata-row-renderer",function(){if(g$U!==void 0)return g$U;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return g$U=W},{mode:1});var TIC;var Gu=function(){return _.O.apply(this,arguments)||this};
_.Z(Gu,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gu.prototype,"data",void 0);_.P([_.h({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Gu);
_.H(Gu,"ytd-metadata-with-image-row-renderer",function(){if(TIC!==void 0)return TIC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TIC=W},{mode:1});var JVB;var D$=function(){var W=_.O.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.Z(D$,_.O);_.r=D$.prototype;_.r.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.r.onDataChanged=function(){var W=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(e){W.onEndpointLinkKeyPress(e)}))};
_.r.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.q2(this.hostElement,"click")};
_.r.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.IT(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.r.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.r.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.r.computeStyle=function(W){return W};
_.r.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.r.computeThumbnailWidth=function(W){switch(W){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}};
_.r.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Ec.Object.defineProperties(D$.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
D$.prototype.onYtNavigate=D$.prototype.onYtNavigate;D$.prototype.onClick=D$.prototype.onClick;D$.prototype.onDataChanged=D$.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],D$.prototype,"componentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],D$.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],D$.prototype,"componentStyle",void 0);_.P([_.J({computed:"computeIsThumbnailStyle(data.style)"}),_.Y("design:type",Boolean)],D$.prototype,"isThumbnailStyle",void 0);_.P([_.J({computed:"computeThumbnailObjectFit(data.style)"}),_.Y("design:type",String)],D$.prototype,"thumbnailObjectFit",void 0);
_.P([_.J({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],D$.prototype,"thumbnailWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],D$.prototype,"rounded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],D$.prototype,"fixie",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],D$.prototype,"fullWidth",void 0);_.P([_.vG("#endpoint-link"),_.Y("design:type",HTMLAnchorElement)],D$.prototype,"endpointLink",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D$.prototype,"onDataChanged",null);_.P([_.T("data.endpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D$.prototype,"endpointHref",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],D$.prototype,"onClick",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],D$.prototype,"onYtNavigate",null);_.P([_.h({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],D$);
_.H(D$,"ytd-rich-metadata-renderer",function(){if(JVB!==void 0)return JVB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return JVB=W},{mode:_.Qe("kevlar_poly_si_batch_j075")?1:2});var xxw;var SZ=function(){var W=_.O.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.Z(SZ,_.O);SZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
SZ.prototype.computeHasDividerLine=function(W){return W};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],SZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],SZ.prototype,"hasDividerLine",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],SZ.prototype,"fixie",void 0);_.P([_.J(),_.Y("design:type",Object)],SZ.prototype,"fullWidth",void 0);
_.P([_.h({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],SZ);
_.H(SZ,"ytd-rich-metadata-row-renderer",function(){if(xxw!==void 0)return xxw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xxw=W},{mode:1});var Bs=function(){var W=_.O.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.Z(Bs,_.O);
Bs.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"}}}};
Bs.prototype.computeCollapsibleItems=function(W,e,t){return W===void 0||e===void 0||t===void 0||t?[]:W.slice(e)};
Bs.prototype.computeAlwaysShownItems=function(W,e){return W&&W.length?W.slice(0,e):[]};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bs.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Bs.prototype,"collapsed",void 0);
_.P([_.J({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Y("design:type",Array)],Bs.prototype,"alwaysShownItems",void 0);_.P([_.J({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Y("design:type",Array)],Bs.prototype,"collapsibleItems",void 0);_.P([_.J(),_.Y("design:type",Object)],Bs.prototype,"engagementPanelContent",void 0);_.P([_.J(),_.Y("design:type",Object)],Bs.prototype,"fixie",void 0);
_.P([_.J(),_.Y("design:type",Object)],Bs.prototype,"fullWidth",void 0);_.P([_.h({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Bs);
_.H(Bs,"ytd-metadata-row-container-renderer",function(){if(n$Q!==void 0)return n$Q;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return n$Q=W},{mode:1});var Ogl;var oq=function(){var W=_.O.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.S("kevlar_watch_grid");W.modernButtons=_.S("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.S("live_chat_round_background_killswitch");W.overflowHideChat=_.S("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$20020_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.Z(oq,_.O);_.r=oq.prototype;_.r.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Qx(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.r.created=function(){var W=this;this.handleIframeEventListener=function(e){W.handleIframeEvent(e)};
this.handleKeyboardEventListener=function(e){W.handleKeyboardEvent(e)};
this.JSC$20020_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20020_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20020_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20020_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20020_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.r.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()};
_.r.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};
_.r.computeBaseUrl=function(W){var e="/live_chat";this.isChatReplay()&&(e="/live_chat_replay");return _.rU(_.mD(_.bz(_.Ya(W),e),null),"").toString()};
_.r.dataChanged=function(){_.S("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.r.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var e=Math.floor(this.player.getProgressState().current*1E3);W=_.UJ(_.Ya(W),"playerOffsetMs",e.toString()).toString()}e=this.chatframe;try{var t=W==="about:blank"?_.ozc:_.lF(W),b=e.contentDocument.location,m=_.pF(t);m!==void 0&&b.replace(m)}catch(q){e.src=W}}};
_.r.collapsedChanged=function(){_.q2(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.r.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.tk(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var e=_.ee().resolve(_.Wi(_.vUD));if(e){var t=W.ports,b;t&&t.length&&(b=function(){t[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];e.showFeedbackDialog(W.customProductData,W.feedbackContent,b,W.bucket)}}else if(W.data["yt-show-survey"])_.q2(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.ee().resolve(_.tQ).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.tC();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(e={cpn:this.player.getVideoData().cpn},_.nJ("liveChatBeingModerated",e))};
_.r.attachLiveChatResponseVeTrackingParams=function(W){W=_.$5(W);var e=_.fc(),t=_.HO("liveChatRenderer.trackingParams",this.data);e&&t&&_.Ke(e,_.$5(t),W)};
_.r.handleBuyflowMessages=function(W){var e=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,t=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,b=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Fvv(_.Fq(_.Ur),e.replace(/-/g,"+").replace(/_/g,"/"),function(m){W.ports[0].postMessage({success:!0,buyFlowResponse:m})},void 0,function(m){W.ports[0].postMessage({success:!1,
error:m&&m.message||"Buyflow rejected without error."})},_.B6().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},t,b)};
_.r.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var e=_.bJ();e!=null&&e.getPlayerPromise&&(e.getPlayerPromise().then(function(t){W.playerApiReady(t)}),this.isListeningForPlayerProgress=!0)}};
_.r.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.r.playerApiReady=function(W){this.setPlayer(W)};
_.r.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.r.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.r.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.r.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.r.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20020_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20020_playerEvents),_.q2(this.hostElement,"player-api-ready"))};
_.r.liveChatPageUrl=function(W,e,t,b){return!t||e?"about:blank":t.liveChatRenderer?(e=_.Ya(this.currentPageUrl).JSC$8077_queryData_,cou(e),W=_.Ya(W),e.add("continuation",t.liveChatRenderer.continuations[0].reloadContinuationData.continuation),t=_.jf()==="USER_INTERFACE_THEME_DARK",(b||t)&&e.add("dark_theme","true"),_.mD(W,e),b=_.Ya(W.toString()),t=b.JSC$8077_queryData_,"SESSION_INDEX"in _.JJ&&(t.add("authuser",_.Ot("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.JJ&&t.add("pageId",_.Ot("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.JJ&&t.add("sdc",_.Ot("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),b.toString()):""};
_.r.isCollapsed=function(W,e){return e!==null?e:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W?W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.S("live_chat_hide_premiere_replay_message")||W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.r.isHidden=function(W,e,t){var b=e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage,m=e&&e.liveChatRenderer&&e.liveChatRenderer.showHideButton,q=e&&e.liveChatRenderer&&e.liveChatRenderer.showButton;return t&&W&&!b&&!q||!t&&W&&!b&&!m?!0:e&&e.liveChatRenderer&&e.liveChatRenderer.initialDisplayState?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.r.computeButtonOverride=function(W,e){if(W&&e)return{type:"outline"}};
_.r.setCollapsedState=function(W){_.l(W,_.upv)&&(this.isHiddenByUser=!!_.l(W,_.upv).collapsed,!this.isHiddenByUser&&_.S("enable_teaser_framework_web_client")&&_.RT(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.r.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.r.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.r.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.r.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.r.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.r.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.r.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.r.handleKeyboardEvent=function(W){(0,_.kJ.containsValue)(u9T,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.r.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.r.postToContentWindow=function(W){if(this.isFrameReady)try{var e=window.location.protocol+"//"+window.location.host,t;(t=this.chatframe)!=null&&t.contentWindow?this.chatframe.contentWindow.postMessage(W,e):_.JC(new _.o_("Tried posting a message to an iframe with no content window",W))}catch(b){_.gQ(b)}};
_.r.shouldHideChatFrame=function(W){return W&&_.S("hide_live_chat_button_when_collapsed")};
_.Ec.Object.defineProperties(oq.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.S("live_chat_overflow_hide_chat")||_.S("web_watch_chat_hide_button_killswitch"))return _.S("live_chat_overflow_hide_chat");var W,e,t,b;return!!((W=this.data)==null?0:(e=W.liveChatRenderer)==null?0:(t=e.header)==null?0:(b=t.liveChatHeaderRenderer)==null?0:b.collapseButton)}}});
oq.prototype.collapsedChanged=oq.prototype.collapsedChanged;oq.prototype.urlChanged=oq.prototype.urlChanged;oq.prototype.dataChanged=oq.prototype.dataChanged;oq.prototype.onShowHideChat=oq.prototype.onShowHideChat;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],oq.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oq.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],oq.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],oq.prototype,"ytOpenPopupBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oq.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],oq.prototype,"currentPageUrl",void 0);
_.P([_.J({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Y("design:type",Object)],oq.prototype,"baseUrl",void 0);_.P([_.J({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Y("design:type",String)],oq.prototype,"url",void 0);_.P([_.J(),_.Y("design:type",Object)],oq.prototype,"isHiddenByUser",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Y("design:type",Object)],oq.prototype,"hidden",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Y("design:type",Boolean)],oq.prototype,"collapsed",void 0);_.P([_.J({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Y("design:type",Boolean)],oq.prototype,"hideChatFrame",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"showAboveScrim",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"watchNextGrid",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oq.prototype,"modernButtons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"noBorder",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oq.prototype,"roundBackground",void 0);
_.P([_.J({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Y("design:type",Object)],oq.prototype,"toggleButtonOverride",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oq.prototype,"overflowHideChat",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"forceDarkTheme",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oq.prototype,"enableShowWithoutHideChatButton",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],oq.prototype,"theaterWatchWhile",void 0);_.P([_.vG("#chatframe"),_.Y("design:type",HTMLIFrameElement)],oq.prototype,"chatframe",void 0);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oq.prototype,"onShowHideChat",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oq.prototype,"dataChanged",null);
_.P([_.ul("url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oq.prototype,"urlChanged",null);_.P([_.ul("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oq.prototype,"collapsedChanged",null);_.P([_.h({is:"ytd-live-chat-frame",disableElementRegistration:!0})],oq);
_.H(oq,"ytd-live-chat-frame",function(){if(Ogl!==void 0)return Ogl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ogl=W},{mode:1});var Mi9;var lK=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.Z(lK,_.O);lK.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=_.sr(this.data.backgroundColor)))};
lK.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
lK.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
lK.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
lK.prototype.dataChanged=lK.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lK.prototype,"rendererBehavior",void 0);_.P([_.y(ZgQ.YtMacroReplacementBehavior),_.Y("design:type",Object)],lK.prototype,"macroReplacementBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lK.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],lK.prototype,"navigationEndpoint",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lK.prototype,"enableColors",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],lK.prototype,"modern",void 0);_.P([_.J(),_.Y("design:type",Object)],lK.prototype,"buttonOverrides",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lK.prototype,"dataChanged",null);_.P([_.h({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],lK);
_.H(lK,"ytd-action-basic-immersive-content-renderer",function(){if(Mi9!==void 0)return Mi9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Mi9=W},{mode:1});var sFQ;var hCg;var Z$=function(){return _.O.apply(this,arguments)||this};
_.Z(Z$,_.O);Z$.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.XB(this.hostElement,{"--bgu-color":_.sr(this.data.backgroundColor)})};
Z$.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var e;((e=this.data)==null?0:e.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Ec.Object.defineProperties(Z$.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,e,t;if(((W=this.data)==null?void 0:(e=W.detailsLine)==null?void 0:e.texts)!=null&&((t=this.data)==null?void 0:t.detailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.detailsLine.texts.map(function(m){return m.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,e,t;if(((W=this.data)==null?void 0:(e=W.optionalDetailsLine)==null?void 0:e.texts)!=null&&((t=this.data)==null?void 0:t.optionalDetailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.optionalDetailsLine.texts.map(function(m){return m.text}).join("")}return null}}});
Z$.prototype.dataChanged=Z$.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Z$.prototype,"rendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Z$.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Z$.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.backgroundColor"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Z$.prototype,"hasBackgroundColor",null);
_.P([_.T("data.objectFit"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Z$.prototype,"getObjectFit",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.tileRenderingStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Z$.prototype,"hasTileMetadata",null);_.P([_.T("data.detailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Z$.prototype,"getSecondaryDetails",null);
_.P([_.T("data.optionalDetailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Z$.prototype,"getOptionalDetails",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Z$.prototype,"dataChanged",null);_.P([_.h({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Z$);
_.H(Z$,"ytd-image-tile-renderer",function(){if(hCg!==void 0)return hCg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hCg=W},{mode:1});var Hgu;var $m=function(){return _.O.apply(this,arguments)||this};
_.Z($m,_.O);$m.prototype.getOpenLinkIcon=function(){return _.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
$m.prototype.onSitelinkTap=function(){_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.S("kevlar_command_handler_migration_killswitch"))_.IT(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.R(this.data.clickCommands),e=W.next();!e.done;e=W.next())this.ytComponentBehavior.resolveCommand(e.value)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$m.prototype,"rendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$m.prototype,"data",void 0);_.P([_.h({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],$m);
_.H($m,"ytd-sitelink-renderer",function(){if(Hgu!==void 0)return Hgu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Hgu=W},{mode:1});var km=function(){var W=_.O.apply(this,arguments)||this;W.paddingFix=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.Z(km,_.O);km.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"}}}};
km.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([e])})};
km.prototype.shouldHideFooter=function(W){return!(W&&_.S("use_ads_engagement_panel_desktop_footer_cta"))};
_.Ec.Object.defineProperties(km.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(t){var b;return(b=_.l(t,BCM))==null?void 0:b.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((e=this.data)==null?void 0:e.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(t){var b;return((b=_.l(t,BCM))==null?void 0:b.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
km.prototype.dataChanged=km.prototype.dataChanged;_.P([_.y(ZgQ.YtMacroReplacementBehavior),_.Y("design:type",Object)],km.prototype,"ytMacroReplacementBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],km.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],km.prototype,"paddingFix",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],km.prototype,"removeBorderFromImageTiles",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],km.prototype,"useFooteredMetadataRenderingStyle",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],km.prototype,"dataChanged",null);_.P([_.h({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],km);
_.H(km,"ytd-action-engagement-panel-content-renderer",function(){if(sFQ!==void 0)return sFQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sFQ=W},{mode:1});var Kvg;var P3M=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;W=_.zT("ad-grid-card-image-full-metadata-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});return _.w("ad-grid-card-image-full-metadata-view-model",{class:function(){var b;return((b=e().interaction)==null?0:b.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:W,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(b){return _.w(_.uB,{data:b.data,
customCommandResolver:t})}})),_.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.w(_.G,{cond:function(){return e().headline},
then:function(b){return _.w(_.WL,{text:b,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.w(_.G,{cond:function(){return e().detailsLine},
then:function(b){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.w(_.nU,{data:b},{adDetailsLineViewModel:function(m){return _.w(_.tM,{data:m.data,customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.w(_.G,{cond:function(){return e().secondaryDetailsLine},
then:function(b){return _.w("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.w(_.nU,{data:b},{adDetailsLineViewModel:function(m){return _.w(_.tM,{data:m.data,customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Si");var Vi1=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;W=_.zT("ad-grid-card-image-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});return _.w("ad-grid-card-image-view-model",{class:function(){var b;return((b=e().interaction)==null?0:b.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:W,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(b){return _.w(_.uB,{data:b.data,
customCommandResolver:t})}}),_.w("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.w(_.nU,{data:function(){return e().adCardBadge}},{adCardBadgeViewModel:_.Y7o})))},"Ti");var igC=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;W=_.zT("ad-grid-card-text-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});return _.w("ad-grid-card-text-view-model",{class:function(){var b;return((b=e().interaction)==null?0:b.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:W,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.w(_.G,{cond:function(){return e().title},
then:function(b){return _.w(_.WL,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.w("div",{class:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.w(_.lV,{each:function(){var b;
return((b=e())==null?void 0:b.descriptions)||[]},
keyBy:"INDEX"},function(b){return _.w(_.WL,{text:b,className:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.w("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.w(_.nU,{data:function(){return e().moreInfoButton}},{adButtonViewModel:function(b){return _.w(_.NX,{data:b.data,
customCommandResolver:t})}})))},"Ui");var YKw=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;var b=W.adGridCardCollectionStyle;W=_.zT("ad-grid-card-collection-view-model");_.ev(W,{visibilityCallback:function(m){var q,Q=(q=e().interaction)==null?void 0:q.onFirstVisible;m&&Q&&_.K4(Q)},
showOption:_.Ev});return _.w("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:W,style:function(){return"grid-template-columns: repeat("+ToS(b?b():e().style)+", minmax(0, 1fr));"}},_.w(_.nU,{data:function(){var m;
return(m=e())==null?void 0:m.gridCards}},{adGridCardImageViewModel:function(m){return _.w(Vi1,{data:m.data,
customCommandResolver:t})},
adGridCardImageFullMetadataViewModel:function(m){return _.w(P3M,{data:m.data,customCommandResolver:t})},
adGridCardTextViewModel:function(m){return _.w(igC,{data:m.data,customCommandResolver:t})}}))},"Vi");_.mM(_.NN(function(W){var e=W.data;W=_.zT("panel-text-icon-image-tiles-button-layout-content-view-model");_.Av(W,function(){return e().interaction},JI1);
_.ev(W,{visibilityCallback:function(t){var b,m=(b=e().interaction)==null?void 0:b.onFirstVisible;t&&m&&_.K4(m)},
showOption:_.Ev});return _.w("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:W},_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.w(_.G,{cond:_.KqG("(min-width: "+((0,_.jy)()+_.Mp)+"px)"),then:function(){return _.w(_.nU,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(t){return _.w(YKw,{data:t.data,
customCommandResolver:JI1})}})},
else:function(){return _.w(_.nU,{data:function(){return e().adGridCardCollection}},{adGridCardCollectionViewModel:function(t){return _.w(YKw,{data:t.data,
customCommandResolver:JI1,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.w("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.w(_.nU,{data:function(){return e().adButton}},{adButtonViewModel:function(t){return _.w(_.NX,{data:t.data,
customCommandResolver:JI1})}})))},"Wi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;W=_.zT("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.Av(W,function(){return e().interaction},xHQ);
_.ev(W,{visibilityCallback:function(t){var b,m=(b=e().interaction)==null?void 0:b.onFirstVisible;t&&m&&_.K4(m)},
showOption:_.Ev});return _.w("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:W},_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.w(_.nU,{data:function(){if(_.KqG("(min-width: "+((0,_.jy)()+_.Mp)+"px)")())var t=e().adGridCardCollection;else{t=Object.assign({},_.l(e().adGridCardCollection,ofU));var b;t.gridCards!==void 0&&((b=t.gridCards)==null?void 0:b.length)>1?t.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":t.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";t={adGridCardCollectionViewModel:t}}return t}},{adGridCardCollectionViewModel:function(t){return _.w(YKw,{data:t.data,
customCommandResolver:xHQ})}})),_.w("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.w(_.nU,{data:function(){return e().adButton}},{adButtonViewModel:function(t){return _.w(_.NX,{data:t.data,
customCommandResolver:xHQ})}})))},"Xi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Eu}});var pm=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.Z(pm,_.O);_.r=pm.prototype;_.r.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"}}}};
_.r.attached=function(){this.getDataFromPlayerAndRender()};
_.r.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.r.getDataFromPlayerAndRender=function(){var W=this,e=_.tv(this.hostElement);e&&e.getPlayerPromise().then(function(t){W.getCachedDataAndListen(t)})};
_.r.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.r.resolveCachedActions=function(){var W=_.HO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.kJ.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.HO("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.kJ.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.HO("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.kJ.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.r.sendUpdateEngagementPanelAction=function(W){var e;_.RT(this.hostElement,"yt-update-engagement-panel-action",[(e=_.kJ.get(W,"action"))!=null?e:W])};
_.r.sendChangeEngagementPanelVisibilityAction=function(W){_.RT(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.r.sendScrollToEngagementPanelCommand=function(W){_.RT(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.r.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.S("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.JC(Error("im"))};
pm.prototype.dataChanged=pm.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],pm.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],pm.prototype,"componentBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],pm.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pm.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],pm.prototype,"player",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pm.prototype,"dataChanged",null);_.P([_.h({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],pm);
_.H(pm,"ytd-ads-engagement-panel-content-renderer",function(){if(Kvg!==void 0)return Kvg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return Kvg=W},{mode:1});var zCB;var yR=function(){var W=_.O.apply(this,arguments)||this;W.player=null;W.JSC$20057_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.Z(yR,_.O);_.r=yR.prototype;_.r.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]]"}}}}}};
_.r.created=function(){this.player=null;this.JSC$20057_playerEvents=new Map;this.JSC$20057_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20057_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20057_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20057_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.r.attached=function(){var W=this,e=_.tv();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));e&&e.getPlayerPromise().then(function(t){W.setPlayer(t);W.set("isPageLoad",!1)})};
_.r.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20057_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20057_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.r.onLoopRangeChange=function(W){var e=_.ee().resolve(_.Wi(_.WS));if((!e||e.isOnWatch())&&this.hostElement.clientHeight){var t;!W&&((t=this.data)==null?0:t.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.r.onVideoProgress=function(W){var e,t,b=((e=this.player)==null?void 0:(t=e.getPresentingPlayerType)==null?void 0:t.call(e))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b);var m;if(!b&&(m=this.player)!=null&&m.getLoopRange()){t=this.player.getLoopRange();e=t.startTimeMs;t=t.endTimeMs;b=this.player.getProgressState(1).seekableStart;var q;e<b*1E3&&((q=this.data)==null?0:q.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=t<W*1E3;var Q;((Q=this.player)==null?0:Q.getLoopRange())&&W&&this.player.seekTo(e/1E3)}};
_.r.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.r.onYtDeleteClipEngagementPanelCommand=function(W){_.l(W,O0S).command&&this.ytComponentBehavior.resolveCommand(_.l(W,O0S).command)};
_.Ec.Object.defineProperties(yR.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.zq("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],yR.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yR.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],yR.prototype,"isAdPlaying",void 0);_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],yR.prototype,"isPageLoad",void 0);_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],yR.prototype,"isDarkTheme",void 0);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yR.prototype,"voteCount",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yR.prototype,"channelEndpoint",null);_.P([_.T("channelEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yR.prototype,"channelHref",null);_.P([_.h({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],yR);
_.H(yR,"ytd-clip-attribution-renderer",function(){if(zCB!==void 0)return zCB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return zCB=W},{mode:1});var Uxw;var jZ=function(){var W=_.O.apply(this,arguments)||this;W.player=null;W.JSC$20062_playerEvents=new Map;return W};
_.Z(jZ,_.O);_.r=jZ.prototype;_.r.created=function(){this.player=null;this.JSC$20062_playerEvents=new Map;this.JSC$20062_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20062_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20062_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.r.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.r.attached=function(){var W=this,e=_.tv();e&&e.getPlayerPromise().then(function(t){W.setPlayer(t);W.set("isPageLoad",!1)})};
_.r.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20062_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20062_playerEvents);var e;(W==null?void 0:(e=W.getPresentingPlayerType)==null?void 0:e.call(W))===2&&this.playerAdStartHandler()}};
_.r.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.r.onVideoProgress=function(){var W,e,t=((W=this.player)==null?void 0:(e=W.getPresentingPlayerType)==null?void 0:e.call(W))===2;this.isAdPlaying!==t&&this.set("isAdPlaying",t)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],jZ.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],jZ.prototype,"isAdPlaying",void 0);
_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],jZ.prototype,"isPageLoad",void 0);_.P([_.h({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],jZ);
_.H(jZ,"ytd-clip-section-footer-renderer",function(){if(Uxw!==void 0)return Uxw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Uxw=W},{mode:1});var LvQ;var E$Q;var Cm=function(){return _.O.apply(this,arguments)||this};
_.Z(Cm,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Cm.prototype,"data",void 0);_.P([_.h({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Cm);
_.H(Cm,"ytd-clip-ad-state-renderer",function(){if(E$Q!==void 0)return E$Q;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return E$Q=W},{mode:1});var AV1;var nm=function(){var W=_.O.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.Z(nm,_.O);_.r=nm.prototype;_.r.detached=function(){this.userChangedValue=!1};
_.r.handleKeyDown=function(W){if(_.w2)var e=13;else _.pI9&&_.uI?e=13:e=13;W.keyCode===e&&W.preventDefault()};
_.r.handleInput=function(){var W=_.rz(this.hostElement).querySelector("#title");if(W){var e=(W.value||"").replace(/\r|\n/g," ");this.set("value",e);W.value=e;this.valid=W.validate();this.userChangedValue=!0}};
_.r.handleBlur=function(){this.valid=_.rz(this.hostElement).querySelector("#title").validate()};
_.r.onValueChanged=function(){_.q2(this.hostElement,"title-changed",{title:this.value})};
_.r.onValidChanged=function(){_.q2(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.r.setInput=function(W,e){var t=_.rz(this.hostElement).querySelector("#title");t&&(t.value=W,this.handleInput(),e&&(t.invalid=!1,this.valid=!0))};
_.r.onClipCreationDisable=function(){this.set("disabled",!0)};
_.r.onClipCreationEnable=function(){this.set("disabled",!1)};
_.r.onClipCreationVisibilityChange=function(W){var e=this;W.visible?requestAnimationFrame(function(){var t;((t=_.rz(e.hostElement).querySelector("#title"))==null?void 0:t.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
nm.prototype.onValidChanged=nm.prototype.onValidChanged;nm.prototype.onValueChanged=nm.prototype.onValueChanged;nm.prototype.handleBlur=nm.prototype.handleBlur;nm.prototype.handleInput=nm.prototype.handleInput;nm.prototype.handleKeyDown=nm.prototype.handleKeyDown;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],nm.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],nm.prototype,"value",void 0);_.P([_.J(),_.Y("design:type",Object)],nm.prototype,"valid",void 0);_.P([_.J(),_.Y("design:type",Object)],nm.prototype,"userChangedValue",void 0);_.P([_.J(),_.Y("design:type",Object)],nm.prototype,"disabled",void 0);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],nm.prototype,"handleKeyDown",null);
_.P([_.wz("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"handleInput",null);_.P([_.wz("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"handleBlur",null);_.P([_.ul("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"onValueChanged",null);
_.P([_.ul("valid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"onValidChanged",null);_.P([_.h({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],nm);
_.H(nm,"ytd-clip-creation-text-input-renderer",function(){if(AV1!==void 0)return AV1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AV1=W},{mode:1});var NIw;var dx9;var Wiu;var e4B;var tp1;var fm=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.Z(fm,_.O);_.r=fm.prototype;_.r.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(e){e=_.R(["screen and (min-resolution: "+e+")","screen and (max-resolution: "+e+")"]);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=window.matchMedia(t);b&&(W.mediaListeners_[t]=W.updatePixelRatio_.bind(W),b.addEventListener?b.addEventListener("change",W.mediaListeners_[t]):b.addListener?b.addListener(W.mediaListeners_[t]):delete W.mediaListeners_[t])}})};
_.r.detached=function(){this.setPlayer(null);for(var W=_.R(Object.keys(this.mediaListeners_)),e=W.next();!e.done;e=W.next()){var t=e.value;e=this.mediaListeners_[t];(t=window.matchMedia(t))&&(t.removeEventListener?t.removeEventListener("change",e):t.removeListener&&t.removeListener(e))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.r.onVisibilityChangedAction_=function(W){var e=this;W.visible&&!this.player_&&(W=_.tv())&&W.getPlayerPromise().then(function(t){e.setPlayer(t)})};
_.r.setPlayer=function(W){W&&this.set("player_",W)};
_.r.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.r.setUpCanvas_=function(){var W=this.rulerWidth,e=this.devicePixelRatio_,t=this.visible;this.set("canvasReady_",!1);if(t&&e!==0){t=this.aboveRulerHeight+this.rulerHeight;var b=_.rz(this.hostElement).querySelector("#ticks");b.width=W*e;b.height=t*e;b.style.width=W+"px";b.style.height=t+"px";b.getContext("2d").scale(e,e);this.set("canvasReady_",!0)}};
_.r.drawRuler_=function(W,e,t,b,m,q,Q,X,I,u,c,v){W&&t&&e&&(W=_.rz(this.hostElement).querySelector("#ticks"),e=W.getContext("2d"),e.clearRect(0,0,W.width,W.height),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.lineWidth=2,e.beginPath(),e.moveTo(0,this.aboveRulerHeight),e.lineTo(W.width,this.aboveRulerHeight),e.moveTo(0,W.height),e.lineTo(W.width,W.height),e.stroke(),this.drawRulerTicks_(W,q,m,b),this.drawStoryboardImages_(W,t,q,m,b),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
e.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Q-q,b,!1),this.rulerHeight),t=this.timeToPixels_(X-q,b,!1),e.fillRect(t,this.aboveRulerHeight,W.width-t,this.rulerHeight),this.drawSpeedLines_(W,q,v))};
_.r.drawRulerTicks_=function(W,e,t,b){var m=W.getContext("2d");m.save();m.lineWidth=1;for(var q=Math.floor(Math.max(0,e-this.tickLabelInterval));q<e+t;q++){m.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Q=(q-e)*b;m.beginPath();m.moveTo(Q,W.height);var X=this.smallTickHeight;q%this.largeTickInterval===0?X=this.largeTickHeight:q%this.mediumTickInterval===0&&(X=this.mediumTickHeight);m.lineTo(Q,W.height-X);m.stroke();q%this.tickLabelInterval===0&&(m.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),m.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),m.fillText(Ck(q),Q+4,12),m.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),m.moveTo(Q,0),m.lineTo(Q,this.aboveRulerHeight),m.stroke())}m.restore()};
_.r.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.r.drawSpeedLines_=function(W,e,t){var b=W.getContext("2d");b.save();var m=Math.min(25,Math.abs(t)-15)/25,q=W.width*.3*m,Q=W.width*-.3,X=W.width*1.3,I=this.aboveRulerHeight;W=W.height;var u=Math.round(4*m),c=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");c.length<7&&(c="#"+c.substring(1,4).repeat(2));var v=this.percentToHex_(.5+m/2);v=c+v;c+="00";if(m>0)for(m=0;m<u;m++){var D=Q+Math.random()*(X-Q),B=I+Math.random()*(W-I),k=q+e%q,n=b.createLinearGradient(D,B,D+k,B);
t<0?(n.addColorStop(0,v),n.addColorStop(.4,v),n.addColorStop(.9,c)):(n.addColorStop(.1,c),n.addColorStop(.6,v),n.addColorStop(1,v));b.strokeStyle=n;b.lineWidth=1;b.beginPath();b.moveTo(D,B);b.lineTo(D+k,B);b.stroke()}b.restore()};
_.r.getStoryboardForTime_=function(W,e,t){t===void 0&&(t=e.getNumberOfStoryboardLevels()-1);W=e.getStoryboardFrameIndex(W,t);return e.getStoryboardFrame(W,t)};
_.r.drawStoryboardImages_=function(W,e,t,b,m){if(!this.disabled){W=W.getContext("2d");var q=this.getStoryboardForTime_(0,e);if(q){var Q=q.width/q.columns;q=q.height/q.rows;var X=Q/q,I=this.rulerHeight*X;I=this.tickLabelInterval*(X<this.tickLabelInterval*m/this.rulerHeight?1/Math.floor(this.tickLabelInterval*m/I):Math.round(I/(this.tickLabelInterval*m)));var u=I*m,c=this.rulerHeight,v=u/this.rulerHeight,D=Math.floor(Math.max(0,t-I));for(D-=D%I;D<t+b;D+=I){var B=this.getStoryboardForTime_(D,e),k=this.getPreloadedStoryboard_(B.url);
if(k){var n=(D-t)*m,f=this.aboveRulerHeight,M=B.column*Q,K=B.row*q;if(X<v){var U=c/(u/X);B=Q;U*=q;K+=(q-U)/2}else B=u/(c*X)*Q,U=q,M+=(Q-B)/2;W.drawImage(k,M,K,B,U,n,f,u,c)}else this.fetchStoryboardImage_(B)}}}};
_.r.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(e){if(e.src==W)return!0;var t=e.src.indexOf(W);return t!=-1&&t==e.src.length-W.length})};
_.r.fetchStoryboardImage_=function(W){var e=this,t=this.getPreloadedStoryboard_(W.url),b=this.pendingStoryboardImages_[W.url];t||b!==void 0||(t=new Promise(function(m){var q=new Image(W.width,W.height);q.src=W.url;q.onload=function(){m(q)};
q.onerror=function(){m(null)}}),this.pendingStoryboardImages_[W.url]=t,t.then(function(m){m&&e.push("storyboardImages_",m);
return m}).finally(function(){delete e.pendingStoryboardImages_[W.url]}))};
_.r.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.r.timeToPixels_=function(W,e,t){W*=e;return t===void 0||t?W+"px":W};
_.r.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
fm.prototype.drawRuler_=fm.prototype.drawRuler_;fm.prototype.setUpCanvas_=fm.prototype.setUpCanvas_;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],fm.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],fm.prototype,"start",void 0);_.P([_.J({value:30}),_.Y("design:type",Number)],fm.prototype,"end",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],fm.prototype,"visible",void 0);_.P([_.J(),_.Y("design:type",Object)],fm.prototype,"player_",void 0);_.P([_.J(),_.Y("design:type",Number)],fm.prototype,"tickSpacing",void 0);_.P([_.J(),_.Y("design:type",Number)],fm.prototype,"windowSizeSec",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],fm.prototype,"rulerWidth",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],fm.prototype,"rulerShift",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],fm.prototype,"canvasReady_",void 0);_.P([_.J({value:function(){return[]}}),
_.Y("design:type",Array)],fm.prototype,"storyboardImages_",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fm.prototype,"disabled",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],fm.prototype,"forceRender_",void 0);_.P([_.J({value:1}),_.Y("design:type",Number)],fm.prototype,"devicePixelRatio_",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],fm.prototype,"windowSpeed",void 0);
_.P([_.ul("visible","devicePixelRatio_","rulerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fm.prototype,"setUpCanvas_",null);
_.P([_.ul("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Y("design:returntype")],fm.prototype,"drawRuler_",null);_.P([_.gz({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],fm);
_.H(fm,"yt-clip-creation-scrubber-canvas",function(){if(tp1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);tp1=W}W=tp1;return W},
{mode:2});var bRB;var mJ1;var g_=function(){var W=_.O.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.Z(g_,_.O);_.r=g_.prototype;
_.r.created=function(){var W=this;this.JSC$20075_playerEvents=new Map;this.JSC$20075_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20075_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20075_playerEvents.set("onStateChange",this.onStateChange_);var e={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(e).forEach(function(t){W.boundHandlers_[t]=e[t].bind(W)})};
_.r.attached=function(){this.activeLoopRange_=!1;_.rz(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.rz(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.na(156731)};
_.r.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.rz(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.rz(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.r.onVisibilityChangedAction_=function(W){var e=this;W.visible&&!this.player_&&(W=_.tv())&&W.getPlayerPromise().then(function(t){e.setPlayer(t)})};
_.r.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20075_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20075_playerEvents))};
_.r.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.r.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.r.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.rz(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.rz(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.r.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.r.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.r.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.r.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.r.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.r.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var e=W.windowSlideSpeed;if(e=_.Y79(W.start,W.boundedRulerStartLimit_())?e-.1:_.Y79(W.end,W.boundedRulerEndLimit_())?e+.1:0){var t=W.capRulerOffset_(W.rulerShift_+e);t==W.rulerShift_?e=0:(W.set("rulerShift_",t),_.q2(W.hostElement,"set-fixed-length-range",{start:W.start+e,duration:W.end-W.start}))}W.set("windowSlideSpeed",e)},33)};
_.r.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.r.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.r.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.r.updateRulerSize_=function(){this.set("rulerWidth_",_.rz(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.r.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.r.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var e=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.q2(this.hostElement,"set-fixed-length-range",{start:e,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-e})};
_.r.handleWindowDrag_=function(W){var e=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(e);_.q2(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.r.capRulerOffset_=function(W){var e=this.seekableStart-this.pixelsToTime_(16),t=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(e,W),t)};
_.r.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.r.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.r.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.r.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.r.handleWindowHandleDrag_=function(W){var e=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(e);if(this.draggingLeft_){var t=this.start+W;var b=this.end}else this.draggingRight_&&(t=this.start,b=this.end+W);_.q2(this.hostElement,"set-range",{start:t,end:b,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.r.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.rz(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.r.onClipCreationDisable_=function(){this.endDrag_()};
_.r.timeToPixels_=function(W,e,t){W*=e;return t===void 0||t?W+"px":W};
_.r.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.r.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.r.centerRuler_=function(W,e,t){this.set("rulerShift_",this.capRulerOffset_(W+(e-W)/2-t/2))};
_.r.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.r.updateLoopRange_=function(W,e,t,b,m,q,Q){W&&(e&&b&&!t?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(m,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(q-.1,!1,void 0,void 0,50)):(Q!==void 0?W.seekTo(Q,!0,void 0,void 0,50):(e=W.getCurrentTime(),e<m||e>q?W.seekTo(m,!0,void 0,void 0,50):W.seekTo(e,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:m*1E3,endTimeMs:q*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.r.updateHandles_=function(){_.rz(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.rz(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.r.updateRuler_=function(){var W=this.end,e=this.start,t=this.draggableStartLimit_(),b=this.draggableEndLimit_();(e<t-.001||W>b+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.r.computeDurationLabel_=function(W,e){return W?W.replace("$clip_length",parseFloat(e).toFixed(1)):""};
_.r.computeDuration_=function(W,e){return this.isValidTime_(W)&&this.isValidTime_(e)&&W<e?e-W:0};
_.r.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.r.computeWindowSizeSec_=function(W,e,t){return Math.min((W||12E4)/1E3,t-e)};
_.r.computeTickSpacing_=function(W,e){return e?e/W:1};
_.r.onDragStateChanged_=function(){_.q2(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.r.centerRangeOnTime_=function(W){var e=this.duration;W=MxU(W-e/2,e,this.seekableStart,this.seekableEnd);_.q2(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.r.nearlyLessThan_=function(W,e,t){return W+(t===void 0?1E-6:t)<e};
_.r.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.r.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.r.computeDragState_=function(W,e,t,b){return W?"left":e?"right":t?"ruler":b?"window":"none"};
_.r.logClick=function(){var W=_.fc(),e=_.nc();W&&e&&this.scrubberVe_&&(_.S("combine_ve_grafts")?_.XW(_.Sg(),this.scrubberVe_,e):_.Ke(W,e,this.scrubberVe_),_.zv(W,this.scrubberVe_))};
g_.prototype.onDragStateChanged_=g_.prototype.onDragStateChanged_;g_.prototype.updateRuler_=g_.prototype.updateRuler_;g_.prototype.updateHandles_=g_.prototype.updateHandles_;g_.prototype.onUpdateLoopRange=g_.prototype.onUpdateLoopRange;g_.prototype.onInitializedChanged_=g_.prototype.onInitializedChanged_;g_.prototype.onVisibleChanged_=g_.prototype.onVisibleChanged_;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",Object)],g_.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"start",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"end",void 0);_.P([_.J({computed:"computeDuration_(start, end)"}),_.Y("design:type",Number)],g_.prototype,"duration",void 0);
_.P([_.J(),_.Y("design:type",String)],g_.prototype,"lengthTemplate",void 0);_.P([_.J({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Y("design:type",String)],g_.prototype,"durationLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"visible",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"player_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"draggingLeft_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"draggingRight_",void 0);
_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"draggingRuler_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Object)],g_.prototype,"draggingWindow_",void 0);_.P([_.J({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Y("design:type",Number)],g_.prototype,"tickSpacing_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"seekableStart",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"seekableEnd",void 0);
_.P([_.J(),_.Y("design:type",Number)],g_.prototype,"windowSizeMs",void 0);_.P([_.J({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Y("design:type",Number)],g_.prototype,"windowSizeSec_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"rulerWidth_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"rulerShift_",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"windowSlideSpeed",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],g_.prototype,"disabled",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"initialized",void 0);_.P([_.J(),_.Y("design:type",Object)],g_.prototype,"durationAccessibilityLabel",void 0);_.P([_.J({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Y("design:type",String)],g_.prototype,"dragState",void 0);
_.P([_.ul("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"onVisibleChanged_",null);_.P([_.ul("initialized"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"onInitializedChanged_",null);_.P([_.ul("player_","visible","disabled","initialized","start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"onUpdateLoopRange",null);
_.P([_.ul("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"updateHandles_",null);_.P([_.ul("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"updateRuler_",null);
_.P([_.ul("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g_.prototype,"onDragStateChanged_",null);_.P([_.gz({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],g_);
_.H(g_,"yt-clip-creation-scrubber-view",function(){if(mJ1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;bRB===void 0&&(bRB=document.createElement("template"));var b=bRB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);mJ1=W}W=mJ1;return W},{mode:2});var Tu=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.Z(Tu,_.O);_.r=Tu.prototype;_.r.attached=function(){var W=this;this.startInput.addEventListener("input",function(e){return W.handleStartInput_(e)});
this.endInput.addEventListener("input",function(e){return W.handleEndInput_(e)});
this.startInput.addEventListener("focusout",function(e){return W.handleStartBlur_(e)});
this.endInput.addEventListener("focusout",function(e){return W.handleEndBlur_(e)})};
_.r.setPlayer=function(W){this.set("player_",W)};
_.r.onSetFixedLengthRange_=function(W){var e=W.detail;W=e.start;var t=e.duration,b=e.startLimit;e=e.endLimit;b||(b=this.seekableStart_);e||(e=this.seekableEnd_);W=MxU(W,t,b,e);this.start=W.start;this.end=W.end};
_.r.onSetRange_=function(W){var e=W.detail;W=e.start;var t=e.end,b=e.startLimit;e=e.endLimit;b||(b=this.seekableStart_);e||(e=this.seekableEnd_);if(W=sdS(W,t,b,e,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.r.updateInputs_=function(){var W=this.end,e=this.start;this.startInput.focused||(this.startInput.value=Ck(e,!0));this.endInput.focused||(this.endInput.value=Ck(W,!0))};
_.r.handleStartInput_=function(W){W=Op9(W.target.value);if(W===null)this.set("startValid",!1);else{var e=this.end,t=sdS(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);t?(this.set("endWillUpdate",t.end!==e),this.set("startValid",t.start===W)):this.set("startValid",!1)}};
_.r.handleEndInput_=function(W){W=Op9(W.target.value);if(W===null)this.set("endValid",!1);else{var e=this.start,t=hnT(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);t?(this.set("startWillUpdate",t.start!==e),this.set("endValid",t.end===W)):this.set("endValid",!1)}};
_.r.handleStartBlur_=function(W){W=Op9(W.target.value);W===null?this.startInput.value=Ck(this.start,!0):this.forceUpdateInputs_(sdS(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.r.handleEndBlur_=function(W){W=Op9(W.target.value);W===null?this.endInput.value=Ck(this.end,!0):this.forceUpdateInputs_(hnT(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.r.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=Ck(this.start,!0);this.endInput.value=Ck(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.r.initializeClipRange_=function(){var W=this.seekableEnd_,e=this.seekableStart_,t=this.visible_,b=this.player_;if(!b||!t||e===null||!W)this.set("initialized",!1);else if(!this.initialized){var m=b.getCurrentTime(),q=this.getDefaultLengthSec_();t=b.getVideoData();var Q=b.getPlayerState()==1,X=t.isLive;q=Math.min(q,W-e);m=Math.max(0,m);W=X?hnT(m-q,m,e,W,this.minLengthSec,this.maxLengthSec):Q?MxU(m-q/2,q,e,W):MxU(m,q,e,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);t.isLive&&b.seekTo(W.start);
this.startInput.value=Ck(this.start,!0);this.endInput.value=Ck(this.end,!0)}};
_.r.onStartChanged_=function(){var W=this;_.q2(this.hostElement,"start-changed",{start:this.start});var e;isNaN((e=this.oldStart)!=null?e:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.r.onEndChanged_=function(){var W=this;_.q2(this.hostElement,"end-changed",{end:this.end});var e;isNaN((e=this.oldEnd)!=null?e:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.r.onVisibilityChangedAction_=function(W){var e=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.tv())&&W.getPlayerPromise().then(function(t){e.setPlayer(t)})};
_.r.computeMinLengthSec_=function(W){return W/1E3||5};
_.r.computeMaxLengthSec_=function(W){return W/1E3||60};
_.r.computeDefaultLengthSec_=function(W){return W/1E3};
_.r.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.r.computeSeekableStart_=function(W,e){return W&&e?W.getProgressState(1).seekableStart:0};
_.r.computeSeekableEnd_=function(W,e){return W&&e?W.getProgressState(1).seekableEnd:0};
_.r.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.r.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.r.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
Tu.prototype.onDragState_=Tu.prototype.onDragState_;Tu.prototype.onEndChanged_=Tu.prototype.onEndChanged_;Tu.prototype.onStartChanged_=Tu.prototype.onStartChanged_;Tu.prototype.initializeClipRange_=Tu.prototype.initializeClipRange_;Tu.prototype.updateInputs_=Tu.prototype.updateInputs_;Tu.prototype.onSetRange_=Tu.prototype.onSetRange_;Tu.prototype.onSetFixedLengthRange_=Tu.prototype.onSetFixedLengthRange_;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Tu.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Tu.prototype,"data",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Tu.prototype,"start",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],Tu.prototype,"startValid",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tu.prototype,"startWillUpdate",void 0);_.P([_.J({value:30}),_.Y("design:type",Number)],Tu.prototype,"end",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],Tu.prototype,"endValid",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tu.prototype,"endWillUpdate",void 0);_.P([_.J({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Y("design:type",Number)],Tu.prototype,"minLengthSec",void 0);
_.P([_.J({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Y("design:type",Number)],Tu.prototype,"maxLengthSec",void 0);_.P([_.J({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Y("design:type",Number)],Tu.prototype,"defaultLengthSec",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Tu.prototype,"visible_",void 0);_.P([_.J(),_.Y("design:type",Object)],Tu.prototype,"player_",void 0);
_.P([_.J({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Y("design:type",Number)],Tu.prototype,"seekableStart_",void 0);_.P([_.J({computed:"computeSeekableEnd_(player_, visible_)"}),_.Y("design:type",Number)],Tu.prototype,"seekableEnd_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Tu.prototype,"initialized",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tu.prototype,"disabled",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tu.prototype,"highlightStart",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tu.prototype,"highlightEnd",void 0);_.P([_.vG("#start"),_.Y("design:type",HTMLInputElement)],Tu.prototype,"startInput",void 0);_.P([_.vG("#end"),_.Y("design:type",HTMLInputElement)],Tu.prototype,"endInput",void 0);
_.P([_.wz("set-fixed-length-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Tu.prototype,"onSetFixedLengthRange_",null);_.P([_.wz("set-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Tu.prototype,"onSetRange_",null);_.P([_.ul("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tu.prototype,"updateInputs_",null);
_.P([_.ul("player_","visible_","seekableStart_","seekableEnd_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tu.prototype,"initializeClipRange_",null);_.P([_.ul("start"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tu.prototype,"onStartChanged_",null);_.P([_.ul("end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tu.prototype,"onEndChanged_",null);
_.P([_.wz("clips-drag-state"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Tu.prototype,"onDragState_",null);_.P([_.gz({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Tu);
_.H(Tu,"yt-clip-creation-scrubber-renderer",function(){if(e4B===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Wiu===void 0&&(Wiu=document.createElement("template"));var b=Wiu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);e4B=W}W=e4B;return W},{mode:2});var Jf=function(){var W=_.O.apply(this,arguments)||this;W.player_=null;W.JSC$20089_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.Z(Jf,_.O);_.r=Jf.prototype;_.r.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"}}}};
_.r.created=function(){this.JSC$20089_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20089_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20089_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20089_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.r.detached=function(){this.setPlayer(null)};
_.r.onVisibilityChangedAction_=function(W){var e=this,t;if((t=this.data)==null?0:t.externalVideoId){var b;this.videoId=(b=this.data)==null?void 0:b.externalVideoId}this.getPlayer().then(function(m){if(W.visible)e.returnTime=m.getCurrentTime(),e.isAtLiveHead=m.getProgressState().isAtLiveHead;else{var q=e.returnTime;e.isAtLiveHead&&(q=Number.POSITIVE_INFINITY);m.seekTo(q,void 0,void 0,void 0,51)}})};
_.r.getPlayer=function(){var W=this;if(!this.player_){var e=_.tv();if(e)return e.getPlayerPromise().then(function(t){W.setPlayer(t);return t})}return Promise.resolve(this.player_)};
_.r.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20089_playerEvents);if(W){this.player_=W;var e;((e=this.data)==null?0:e.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var t;(W==null?void 0:(t=W.getPresentingPlayerType)==null?void 0:t.call(W))===2&&(this.set("isAdPlaying",!0),_.RT(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20089_playerEvents)}};
_.r.ready=function(){_.rz(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.r.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.r.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.r.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.r.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.r.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.r.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.r.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var e;this.set("videoId",((e=this.player_)==null?void 0:e.getVideoData().video_id)||"")}};
_.r.computeFormValid_=function(W,e,t,b){return!!(W&&e&&t&&b)};
_.r.computeCancelButton_=function(W,e,t){return W&&_.l(W,_.Md)?{buttonRenderer:Object.assign({},_.l(W,_.Md),{isDisabled:e||t})}:null};
_.r.computeSubmitButton_=function(W,e,t){return W&&_.l(W,_.Md)?{buttonRenderer:Object.assign({},_.l(W,_.Md),{command:void 0,isDisabled:!this.formValid||e||t})}:null};
_.r.computeSubmitCommand_=function(W){return W||null};
_.r.onSubmit_=function(W){var e=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.X5(this.hostElement,[this.submitCommand_,W]).then(function(){e.set("isLoading_",!1)},function(){e.set("isLoading_",!1)}))};
_.r.playerAdStartHandler_=function(){_.RT(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.r.playerAdEndHandler_=function(){_.RT(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.r.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(e){var t,b=(e==null?void 0:(t=e.getPresentingPlayerType)==null?void 0:t.call(e))===2;W.isAdPlaying!==b&&(b?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
Jf.prototype.onEndValidChanged_=Jf.prototype.onEndValidChanged_;Jf.prototype.onStartValidChanged_=Jf.prototype.onStartValidChanged_;Jf.prototype.onTitleValidChanged_=Jf.prototype.onTitleValidChanged_;Jf.prototype.onEndChanged_=Jf.prototype.onEndChanged_;Jf.prototype.onStartChanged_=Jf.prototype.onStartChanged_;Jf.prototype.onTitleChanged_=Jf.prototype.onTitleChanged_;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Jf.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",Object)],Jf.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Jf.prototype,"data",void 0);_.P([_.J({value:""}),_.Y("design:type",String)],Jf.prototype,"titleValue",void 0);
_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Jf.prototype,"titleValid",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Jf.prototype,"start",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],Jf.prototype,"startValid",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Jf.prototype,"end",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],Jf.prototype,"endValid",void 0);_.P([_.J({value:""}),_.Y("design:type",String)],Jf.prototype,"videoId",void 0);
_.P([_.J({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Y("design:type",Boolean)],Jf.prototype,"formValid",void 0);_.P([_.J({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Y("design:type",Object)],Jf.prototype,"submitButton_",void 0);_.P([_.J({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Y("design:type",Object)],Jf.prototype,"submitCommand_",void 0);
_.P([_.J({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Y("design:type",Object)],Jf.prototype,"cancelButton_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Jf.prototype,"isLoading_",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jf.prototype,"isAdPlaying",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Jf.prototype,"returnTime",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Jf.prototype,"isAtLiveHead",void 0);
_.P([_.wz("title-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onTitleChanged_",null);_.P([_.wz("start-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onStartChanged_",null);_.P([_.wz("end-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onEndChanged_",null);
_.P([_.wz("title-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onTitleValidChanged_",null);_.P([_.wz("start-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onStartValidChanged_",null);_.P([_.wz("end-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jf.prototype,"onEndValidChanged_",null);
_.P([_.gz({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Jf);
_.H(Jf,"yt-clip-creation-renderer",function(){if(dx9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;NIw===void 0&&(NIw=document.createElement("template"));var b=NIw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);dx9=W}W=dx9;return W},{mode:2});var xm=function(){return _.O.apply(this,arguments)||this};
_.Z(xm,_.O);xm.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"}}}};
xm.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.RT(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
xm.prototype.onPanelContentVisibleChanged=xm.prototype.onPanelContentVisibleChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],xm.prototype,"ytVisibilityBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],xm.prototype,"ytdReduxBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],xm.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xm.prototype,"panelContentVisible",void 0);_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xm.prototype,"onPanelContentVisibleChanged",null);_.P([_.h({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],xm);
_.H(xm,"ytd-clip-section-renderer",function(){if(LvQ!==void 0)return LvQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LvQ=W},{mode:1});var r$g;var OG=function(){return _.O.apply(this,arguments)||this};
_.Z(OG,_.O);_.r=OG.prototype;
_.r.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Mw(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var e=this.highlightedIndex%W;this.highlightedIndex=e*W<0?e+W:e;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.r.onKeyUp=function(W){var e=this;Dm$(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Tm.cancelJob(this.inputTimerId),this.inputTimerId=_.Tm.addLowPriorityJob(function(){e.typedValue&&(e.fetchSnippets(e.typedValue),e.logInputGesture(e.data))},1E3))};
_.r.onClick=function(W){(W=_.ubk(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.r.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.r.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.r.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.r.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var e=_.R(this.data.searchInVideoSources),t=e.next();!t.done;t=e.next())t=t.value,t==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):t==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.r.fetchSnippets=function(W){var e=_.RT(this.hostElement,"yt-get-current-video-id-action")[0],t=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:e,query:W!=null?W:"",sourceTimelines:t},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})};
_.r.filterSnippets=function(W,e){var t=this;if(e){this.filteredSnippets=(0,_.kJ.unsafeClone)(W);var b=RegExp(_.KcD(e),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Q){return b.test(t.ytRendererBehavior.getSimpleString(Q.snippet))});
W=_.R(this.filteredSnippets);for(var m=W.next();!m.done;m=W.next()){m=m.value;var q=this.ytRendererBehavior.getSimpleString(m.snippet);m.snippet={runs:[{text:q.substring(0,q.toLowerCase().indexOf(e))},{text:q.substring(q.toLowerCase().indexOf(e),q.toLowerCase().indexOf(e)+e.length),bold:!0},{text:q.substring(q.toLowerCase().indexOf(e)+e.length,q.length)}]}}}else this.filteredSnippets=W};
_.r.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var e,t,b;if((b=(e=_.l(W,nfg))==null?void 0:(t=e.results)==null?void 0:t.length)!=null&&b){var m;this.filteredSnippets=this.snippets=((m=_.l(W,nfg))==null?void 0:m.results).map(function(q){var Q,X,I;return{startMs:q==null?void 0:(Q=q.searchInVideoResultRenderer)==null?void 0:Q.startMs,startTimeText:q==null?void 0:(X=q.searchInVideoResultRenderer)==null?void 0:X.startTimeText,snippet:q==null?void 0:(I=q.searchInVideoResultRenderer)==
null?void 0:I.snippet}})}}};
_.r.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};
_.r.highlightSnippet=function(W){W.classList.add("highlighted")};
_.r.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.r.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.r.ensureVisible=function(W){var e=this.snippetsWrapper.scrollTop,t=e+this.snippetsWrapper.clientHeight,b=W.offsetTop-this.snippetsWrapper.offsetTop;W=b+W.clientHeight;b<e?this.snippetsWrapper.scrollTop-=e-b:W>t&&(this.snippetsWrapper.scrollTop+=W-t)};
_.r.seekPlayer=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1){if(!W)return b.jumpTo(0);e=Number(W.dataset.startOffset);return _.a(b,_.bJ().getPlayerPromise(),3)}t=b.yieldResult;t.seekTo(e/1E3,!0);t.wakeUpControls();_.u8(b)})};
_.r.logInputGesture=function(W){var e=_.fc();e&&(W==null?0:W.trackingParams)&&_.U6(e,_.$5(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.r.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("typed-value-changed",this.typedValue))};
_.r.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
OG.prototype.typedValueChangedForBinding=OG.prototype.typedValueChangedForBinding;OG.prototype.dataChanged=OG.prototype.dataChanged;OG.prototype.panelContentVisibleChanged=OG.prototype.panelContentVisibleChanged;OG.prototype.onClick=OG.prototype.onClick;OG.prototype.onKeyUp=OG.prototype.onKeyUp;OG.prototype.onKeyDown=OG.prototype.onKeyDown;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],OG.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],OG.prototype,"data",void 0);_.P([_.J({value:[]}),_.Y("design:type",Array)],OG.prototype,"snippets",void 0);_.P([_.J({value:[]}),_.Y("design:type",Array)],OG.prototype,"filteredSnippets",void 0);_.P([_.J({value:[]}),_.Y("design:type",Array)],OG.prototype,"snippetElements",void 0);
_.P([_.vG("#siv-input"),_.Y("design:type",HTMLElement)],OG.prototype,"inputElement",void 0);_.P([_.vG("#siv-snippets-wrapper"),_.Y("design:type",HTMLElement)],OG.prototype,"snippetsWrapper",void 0);_.P([_.J(),_.Y("design:type",String)],OG.prototype,"typedValue",void 0);_.P([_.J({value:-1}),_.Y("design:type",Number)],OG.prototype,"highlightedIndex",void 0);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.SF]),_.Y("design:returntype")],OG.prototype,"onKeyDown",null);
_.P([_.wz("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.SF]),_.Y("design:returntype")],OG.prototype,"onKeyUp",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],OG.prototype,"onClick",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],OG.prototype,"panelContentVisible",void 0);
_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"panelContentVisibleChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"dataChanged",null);_.P([_.ul("typedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"typedValueChangedForBinding",null);
_.P([_.h({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],OG);
_.H(OG,"ytd-search-in-video-renderer",function(){if(r$g!==void 0)return r$g;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return r$g=W},{mode:1});var qnS;var Ma=function(){return _.O.apply(this,arguments)||this};
_.Z(Ma,_.O);Ma.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Ma.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]]"}}}}}};
Ma.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,e,t,b,m=(e=_.l((W=this.data)==null?void 0:W.onClickCommand,_.Zh))==null?void 0:(t=e.item)==null?void 0:(b=t.notificationTextRenderer)==null?void 0:b.successResponseText;m&&_.q7S(this.hostElement,m)}};
_.Ec.Object.defineProperties(Ma.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(e=W.hiddenProductOptions)==null?void 0:e.showDropCountdown)&&!!((t=this.data)==null?0:(b=t.hiddenProductOptions)==null?0:b.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null?0:W.priceReplacementText)&&!((e=this.data)==null||!e.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ma.prototype,"componentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ma.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"useCenterLayoutContainer",null);_.P([_.J({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],Ma.prototype,"buttonOverride",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"isProductPlaceholder",null);
_.P([_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"showDropCountdown",null);_.P([_.T("isProductPlaceholder","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"showBrandName",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"showPriceReplacementText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"showPrice",null);
_.P([_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ma.prototype,"showMetadata",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Ma);
_.H(Ma,"ytd-product-list-item-renderer",function(){if(qnS!==void 0)return qnS;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qnS=W},{mode:1});var R49;var sG=function(){return _.O.apply(this,arguments)||this};
_.Z(sG,_.O);sG.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
sG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
sG.prototype.panelContentVisibleChanged=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return W.playerApi?t.jumpTo(2):_.a(t,_.bJ().getPlayerPromise(),3);t.nextAddress!=2&&(W.playerApi=t.yieldResult);(e=W.playerApi)==null||e.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.u8(t)})};
sG.prototype.panelContentVisibleChanged=sG.prototype.panelContentVisibleChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sG.prototype,"panelContentVisible",void 0);_.P([_.J(),_.Y("design:type",Object)],sG.prototype,"data",void 0);
_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],sG.prototype,"panelContentVisibleChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],sG);
_.H(sG,"ytd-product-list-renderer",function(){if(R49!==void 0)return R49;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return R49=W},{mode:1});var Qil;var hf=function(){var W=_.O.apply(this,arguments)||this;W.hideTimestamps=!!_.Ie("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.Z(hf,_.O);_.r=hf.prototype;_.r.hideTimestampsChanged=function(){_.X_("hide-transcript-timestamps",this.hideTimestamps)};
_.r.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.r.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.r.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.R(this.data.cueGroups);for(var e=W.next();!e.done;e=W.next()){e=_.R(_.l(e.value,f9S).cues);for(var t=e.next();!t.done;t=e.next())this.flatCues.push(Number(_.l(t.value,gfu).startOffsetMs))}}};
_.r.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var e=this.currentCueIndex,t=e;;){var b=t>=0?this.flatCues[t]/1E3:-1;if(W+.5<b)--t;else if(b=t+1<this.flatCues.length?this.flatCues[t+1]/1E3:Infinity,W+.5>b)t+=1;else break}t!==e&&(e>=0&&((W=this.getCueElement(e))&&W.classList.remove("active"),(e=this.getCueGroupElement(e))&&e.classList.remove("active")),(e=this.getCueElement(t))&&e.classList.add("active"),(e=this.getCueGroupElement(t))&&e.classList.add("active"),this.currentCueIndex=t,this.isHovered||
this.scrollElementToTop(t))}};
_.r.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.r.getCueElement=function(W){return _.rz(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.r.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.r.onTap=function(W){var e=_.Er(W);W.target.classList.contains("cue")&&this.seekCueElement(e)};
_.r.onKeyPress=function(W){W.keyCode==13&&(W=_.ubk(W.target,null,"cue"))&&this.seekCueElement(W)};
_.r.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.RT(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
hf.prototype.onMouseLeave=hf.prototype.onMouseLeave;hf.prototype.onMouseEnter=hf.prototype.onMouseEnter;hf.prototype.onKeyPress=hf.prototype.onKeyPress;hf.prototype.onTap=hf.prototype.onTap;hf.prototype.dataChanged=hf.prototype.dataChanged;hf.prototype.hideTimestampsChanged=hf.prototype.hideTimestampsChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],hf.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hf.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],hf.prototype,"hideTimestamps",void 0);_.P([_.J(),_.Y("design:type",Boolean)],hf.prototype,"isHovered",void 0);_.P([_.ul("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"hideTimestampsChanged",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"dataChanged",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hf.prototype,"onTap",null);_.P([_.wz("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hf.prototype,"onKeyPress",null);
_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"onMouseEnter",null);_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hf.prototype,"onMouseLeave",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],hf);
_.H(hf,"ytd-transcript-body-renderer",function(){if(Qil!==void 0)return Qil;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Qil=W},{mode:1});var Fiw;var Hs=function(){var W=_.O.apply(this,arguments)||this;W.darkerPanels=_.S("web_watch_darker_panels");return W};
_.Z(Hs,_.O);Hs.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hs.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hs.prototype,"darkerPanels",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Hs);
_.H(Hs,"ytd-transcript-footer-renderer",function(){if(Fiw!==void 0)return Fiw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Fiw=W},{mode:1});var X8l;var Ixl;var Km=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.showClearButton=!1;return W};
_.Z(Km,_.O);_.r=Km.prototype;_.r.handleInput=function(W){var e=this;W.target.value.length?_.HG(this,"ytdTranscriptSearchBoxSearch",function(){e.emitSearchEvent(W)},500):(_.Zy2(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.r.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.r.handleClick=function(){var W,e=(W=this.data)==null?void 0:W.trackingParams;e&&_.wS(_.Sg(),e)};
_.r.handleClear=function(){_.Zy2(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,e,t=(e=_.l((W=this.data)==null?void 0:W.clearButton,_.Md))==null?void 0:e.trackingParams;t&&_.wS(_.Sg(),t);this.clear()};
_.r.emitSearchEvent=function(W){_.q2(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var e,t;(W=(t=_.l((e=this.data)==null?void 0:e.searchButton,_.Md))==null?void 0:t.trackingParams)&&_.wS(_.Sg(),W)};
_.r.emitClearEvent=function(){_.q2(this.hostElement,"yt-transcript-search-box-clear")};
_.Ec.Object.defineProperties(Km.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.rz(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Km.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Km.prototype,"systemIcons",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Km);
_.H(Km,"ytd-transcript-search-box-renderer",function(){if(Ixl!==void 0)return Ixl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Ixl=W},{mode:1});var axw;var w8$;var Ps=function(){return _.O.apply(this,arguments)||this};
_.Z(Ps,_.O);Ps.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,e;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(e=W.accessibility)==null?void 0:e.accessibilityData.label}};
Ps.prototype.fireSelectedEvent=function(W){_.q2(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
Ps.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Ps.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Ec.Object.defineProperties(Ps.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?e:!1}}});
Ps.prototype.dataChanged=Ps.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],Ps.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],Ps.prototype,"sectionHeaderAriaLabel",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ps.prototype,"enableTappableTranscriptHeader",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ps.prototype,"dataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Ps);
_.H(Ps,"ytd-transcript-section-header-renderer",function(){if(w8$!==void 0)return w8$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return w8$=W},{mode:1});var usU;var c$C;var VR=function(){var W=_.O.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.Gv("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Gv("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Gv("submit_correction",void 0,"Submit for review"),cancel_correction:_.Gv("cancel_correction",
void 0,"Cancel"),replay_segment:_.Gv("replay_segment",void 0,"Re-play segment"),delete_correction:_.Gv("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.Z(VR,_.O);_.r=VR.prototype;_.r.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)};
_.r.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);W.stopPropagation()}};
_.r.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var e;W=(e=_.l(this.data.submitCaptionCorrectionCommand,_.j78))==null?void 0:e.params;e=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.Ub(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(e);this.isEditMode=!1}};
_.r.handleUpdateSegmentText=function(W){(W=_.l(W,EfB))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Ub(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.r.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.r.handleEditSegmentCommand=function(W){(W=_.l(W,LSM))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.r.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.r.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.r.handleMouseEnter=function(){this.mouseOver=!0};
_.r.handleMouseLeave=function(){this.mouseOver=!1};
_.r.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.r.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()))};
_.r.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.r.handleTextboxClick=function(W){W.stopPropagation()};
_.r.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.r.handleTextboxKeyup=function(){this.textChanged=_.Ub(this.latestText)!==String(this.ironTextAreaElement.value)};
_.r.fireSelectedEvent=function(W){_.q2(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.r.fireReplayEvent=function(W,e){_.q2(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:e})};
_.r.fireEditEvent=function(W,e){_.q2(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:e})};
_.r.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.r.isControlEnterPress=function(W){var e=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&e};
_.r.isCopyPress=function(W){var e=W.ctrlKey;return W.key==="c"&&e};
_.r.logClick=function(){var W,e=(W=this.data)==null?void 0:W.trackingParams;e&&_.wS(_.Sg(),e)};
_.r.logClientVe=function(W){_.a0(_.Sg(),_.na(W))};
_.Ec.Object.defineProperties(VR.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}}});
VR.prototype.handleMouseLeave=VR.prototype.handleMouseLeave;VR.prototype.handleMouseEnter=VR.prototype.handleMouseEnter;VR.prototype.dataChanged=VR.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],VR.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VR.prototype,"isEditMode",void 0);_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"touchCaptionsEnabled",void 0);_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"editedText",void 0);_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.P([_.J(),_.Y("design:type",String)],VR.prototype,"segmentAriaLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VR.prototype,"roundedContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VR.prototype,"mouseOver",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],VR.prototype,"textChanged",void 0);_.P([_.J(),_.Y("design:type",Object)],VR.prototype,"messages",void 0);
_.P([_.vG("#suggestion"),_.Y("design:type",Object)],VR.prototype,"ironTextAreaElement",void 0);_.P([_.T("data","editedText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VR.prototype,"latestText",null);_.P([_.T("touchCaptionsEnabled","isEditMode"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VR.prototype,"enableEditButton",null);
_.P([_.T("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VR.prototype,"enableUndoButton",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"dataChanged",null);_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"handleMouseEnter",null);
_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"handleMouseLeave",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],VR);
_.H(VR,"ytd-transcript-segment-renderer",function(){if(c$C!==void 0)return c$C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c$C=W},{mode:1});var iK=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.S("web_watch_darker_panels");W.useParentMaxHeight=_.S("web_watch_transscript_use_parent_max_height");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.Z(iK,_.O);_.r=iK.prototype;_.r.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"}}}}};
_.r.segmentsChanged=function(){this.updateOffsets()};
_.r.onYtPlayerTimeChanged=function(W){for(var e=this.segmentIndex,t=e;;){if(t>=0){var b=this.segmentOffsets[t].start;var m=this.segmentOffsets[t].isAutoScrollable}else b=-1,m=!0;var q=W+.5;if(!m){b=t+1<this.segmentOffsets.length?this.segmentOffsets[t+1].start:Infinity;if(q>=b){t+=1;continue}t=-1;break}if(q<b)b=t-1>=0&&this.segmentOffsets[t-1].isAutoScrollable,m=t===0||b?1:2,t-=m;else if(m=t+1<this.segmentOffsets.length&&this.segmentOffsets[t+1].isAutoScrollable?1:2,b=t+m<this.segmentOffsets.length?
this.segmentOffsets[t+m].start:Infinity,q>b)t+=m;else{if(t<0)break;t<this.segmentOffsets.length&&q>this.segmentOffsets[t].end&&(t=-1);break}}if(e!==t){if(e>=0){var Q;(Q=this.getSegmentElement(e))==null||Q.classList.remove("active")}this.segmentIndex=t;if(!(t<0)){var X;(X=this.getSegmentElement(t))==null||X.classList.add("active");this.isHovered||this.scrollElementToTop(t)}}};
_.r.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.RT(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.r.handleSegmentSelected=function(W){_.RT(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.r.handleSegmentReplay=function(W){_.RT(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.r.handleSectionHeaderSelected=function(W){_.RT(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.r.onMouseEnter=function(){this.isHovered=!0};
_.r.onMouseLeave=function(){this.isHovered=!1};
_.r.onRetryButtonClick=function(){_.q2(this.hostElement,"transcript-retry-button-click")};
_.r.getSegmentElement=function(W){return _.rz(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.r.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.r.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var e,t=(e=W.transcriptSegmentRenderer)!=null?e:W.transcriptSectionHeaderRenderer;return{start:Number(t.startMs)/1E3,end:Number(t.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.r.clearHighlightedSegments=function(){var W=_.rz(this.hostElement);W=_.R(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var e=W.next();!e.done;e=W.next())e.value.classList.remove("active")};
_.Ec.Object.defineProperties(iK.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.searchResultSegments)||((e=this.data)==null?void 0:e.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
iK.prototype.onMouseLeave=iK.prototype.onMouseLeave;iK.prototype.onMouseEnter=iK.prototype.onMouseEnter;iK.prototype.handleSectionHeaderSelected=iK.prototype.handleSectionHeaderSelected;iK.prototype.handleSegmentReplay=iK.prototype.handleSegmentReplay;iK.prototype.handleSegmentSelected=iK.prototype.handleSegmentSelected;iK.prototype.handleSegmentEdit=iK.prototype.handleSegmentEdit;iK.prototype.segmentsChanged=iK.prototype.segmentsChanged;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],iK.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iK.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],iK.prototype,"isError",void 0);
_.P([_.J(),_.Y("design:type",Object)],iK.prototype,"noResultLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iK.prototype,"darkerPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],iK.prototype,"useParentMaxHeight",void 0);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],iK.prototype,"segments",null);
_.P([_.T("segments","noResultLabel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iK.prototype,"displayNoResults",null);_.P([_.ul("segments"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iK.prototype,"segmentsChanged",null);_.P([_.wz("yt-transcript-segment-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iK.prototype,"handleSegmentEdit",null);
_.P([_.wz("yt-transcript-segment-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iK.prototype,"handleSegmentSelected",null);_.P([_.wz("yt-transcript-segment-replay"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iK.prototype,"handleSegmentReplay",null);
_.P([_.wz("ytd-transcript-section-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iK.prototype,"handleSectionHeaderSelected",null);_.P([_.wz("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iK.prototype,"onMouseEnter",null);_.P([_.wz("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iK.prototype,"onMouseLeave",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],iK);
_.H(iK,"ytd-transcript-segment-list-renderer",function(){if(usU!==void 0)return usU;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return usU=W},{mode:1});var Ym=function(){var W=_.O.apply(this,arguments)||this;W.hideTimestamps=!!_.Ie("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.S("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.Z(Ym,_.O);_.r=Ym.prototype;_.r.headerChanged=function(){var W,e;this.baseGetTranscriptsCommand=(e=_.l((W=this.data)==null?void 0:W.header,AoC))==null?void 0:e.onTextChangeCommand};
_.r.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.r.detached=function(){this.clearSearchBoxText()};
_.r.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.r.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"}}}};
_.r.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.r.fireSearch=function(W){var e=this;if(W){var t=W.detail.query;if(this.baseGetTranscriptsCommand){var b;W=(b=_.l(this.baseGetTranscriptsCommand,_.auP))==null?void 0:b.params;var m;b=_.l((m=this.data)==null?void 0:m.footer,TCE);var q;if((m=(q=_.l(b==null?void 0:b.languageMenu,Yh9))==null?void 0:q.subMenuItems)&&m.length>0&&(q=m.find(function(I){return I.selected}))){var Q,X;
W=(Q=q.continuation)==null?void 0:(X=Q.reloadContinuationData)==null?void 0:X.continuation}Q=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:t}});this.ytComponentBehavior.resolveCommand(Q,{commandController:{onServerError:function(){e.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});vfC(this.ytContinuationHandlerBehavior,function(){return t===e.getCurrentSearchBoxText()})}}};
_.r.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.r.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.r.hideTimestampsChanged=function(){_.X_("hide-transcript-timestamps",this.hideTimestamps)};
_.r.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.r.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.r.handleSignalActionCopyTranscript=function(){var W=this,e=this.getBodyRenderer();e&&(e=((e==null?void 0:e.searchResultSegments)||(e==null?void 0:e.initialSegments)||[]).map(function(t){return _.l(t,dmC)}).filter(function(t){return!!t}).map(function(t){return{snippet:t.snippet||{runs:[{text:""}]},
startTimeText:t.startTimeText||{simpleText:""}}}).map(function(t){var b=(t.snippet.runs||[]).reduce(function(m,q){return m+q.text},"");
return W.hideTimestamps?b:t.startTimeText.simpleText+" "+b}).join("\n"),this.copyToClipboard(e))};
_.r.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.r.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.r.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.r.getBodyRenderer=function(){var W;return _.l((W=this.data)==null?void 0:W.body,NCC)};
_.r.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Ec.Object.defineProperties(Ym.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.rz(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Ym.prototype.hideTimestampsChanged=Ym.prototype.hideTimestampsChanged;Ym.prototype.searchCleared=Ym.prototype.searchCleared;Ym.prototype.fireSearch=Ym.prototype.fireSearch;Ym.prototype.onReloadContinuationFinish=Ym.prototype.onReloadContinuationFinish;Ym.prototype.bodyChanged=Ym.prototype.bodyChanged;Ym.prototype.headerChanged=Ym.prototype.headerChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ym.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],Ym.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ym.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ym.prototype,"hideTimestamps",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ym.prototype,"isLoadingTranscripts",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ym.prototype,"darkerPanels",void 0);_.P([_.J(),_.Y("design:type",Object)],Ym.prototype,"isError",void 0);_.P([_.ul("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ym.prototype,"headerChanged",null);
_.P([_.BG("data.body"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ym.prototype,"bodyChanged",null);_.P([_.wz("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ym.prototype,"onReloadContinuationFinish",null);_.P([_.wz("yt-transcript-search-box-search"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Ym.prototype,"fireSearch",null);
_.P([_.wz("yt-transcript-search-box-clear"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ym.prototype,"searchCleared",null);_.P([_.ul("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ym.prototype,"hideTimestampsChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Ym);
_.H(Ym,"ytd-transcript-search-panel-renderer",function(){if(axw!==void 0)return axw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return axw=W},{mode:1});var zu=function(){var W=_.O.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.Z(zu,_.O);_.r=zu.prototype;_.r.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.r.onLoadReloadContinuation=function(W){_.S("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}}))};
_.r.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"}}}};
_.r.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.r.attached=function(){this.updatePlayerListening()};
_.r.detached=function(){this.updatePlayerListening()};
_.r.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.r.startPlayerListening=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return(e=_.tv())?_.a(t,e.getPlayerPromise(),2):t.return();W.player=t.yieldResult;W.playerPollJobId=_.Tm.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(b){W.onCueRangeEnter(b)});
W.player.addEventListener("onCueRangeExit",function(b){W.onCueRangeExit(b)});
W.player.addEventListener("onStateChange",function(b){W.onPlayerStateChange(b)});
W.player.addEventListener("SEEK_TO",function(b){W.onPlayerSeek(b)});
_.u8(t)})};
_.r.getPlayerVideoProgress=function(){var W=this;_.Tm.cancelJob(this.playerPollJobId);if(this.player){var e=this.player.getCurrentTime();_.RT(this.hostElement,"yt-player-time-changed",[e])}this.playerPollJobId=_.Tm.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.r.stopPlayerListening=function(){this.player=null;_.Tm.cancelJob(this.playerPollJobId)};
_.r.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.r.onPlayerSeek=function(W){var e;if(e=this.pendingReplayCueId)e=this.pendingReplayCueId,e=W===(_.S("web_transcript_cue_id_killswitch")?Number(e):Number(e.split("_")[1]));e||this.removePendingCue()};
_.r.onCueRangeEnter=function(W){KqE(W)&&(this.pendingReplayCueId=W)};
_.r.onCueRangeExit=function(W){KqE(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.r.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.r.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.r.onYtTranscriptPlayerReplay=function(W,e){this.player&&(this.player.addCueRange(HpS(W),W,e),this.player.seekTo(W,!0),this.player.playVideo())};
_.r.onYtTranscriptPlayerEdit=function(W,e){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(HpS(W),W,e),this.player.seekTo(W,!0))};
zu.prototype.onLoadReloadContinuation=zu.prototype.onLoadReloadContinuation;zu.prototype.panelContentVisibleChanged=zu.prototype.panelContentVisibleChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],zu.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zu.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zu.prototype,"panelContentVisible",void 0);_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zu.prototype,"panelContentVisibleChanged",null);
_.P([_.wz("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],zu.prototype,"onLoadReloadContinuation",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],zu);
_.H(zu,"ytd-transcript-renderer",function(){if(X8l!==void 0)return X8l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return X8l=W},{mode:1});var v7T;var GHC;var UG=function(){return _.O.apply(this,arguments)||this};
_.Z(UG,_.O);UG.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.IT(this.hostElement,[this.data.clickCommand],this.hostElement))};
UG.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.jy)()+_.Mp)+"px)"};
UG.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],UG.prototype,"rendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],UG.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],UG.prototype,"shouldHide",void 0);_.P([_.h({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],UG);
_.H(UG,"ytd-ad-engagement-panel-banner-renderer",function(){if(GHC!==void 0)return GHC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GHC=W},{mode:_.Qe("kevlar_poly_si_batch_j070")?1:2});var DJB;var Lm=function(){var W=_.O.apply(this,arguments)||this;W.modernPanels=_.S("kevlar_watch_modern_panels");W.buttonUpdate=_.S("web_modern_buttons");W.adsSemanticText=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.Z(Lm,_.O);Lm.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.P([_.J(),_.Y("design:type",Object)],Lm.prototype,"data",void 0);_.P([_.J({computed:"computeHideDefaultAdBadge(data)"}),_.Y("design:type",Boolean)],Lm.prototype,"hideDefaultAdBadge",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Lm.prototype,"modernPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Lm.prototype,"buttonUpdate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Lm.prototype,"adsSemanticText",void 0);
_.P([_.h({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Lm);
_.H(Lm,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(DJB!==void 0)return DJB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DJB=W},{mode:1});var Snw;var EG=function(){var W=_.O.apply(this,arguments)||this;W.darkerPanels=_.S("web_watch_darker_panels");W.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");W.modernPanels=_.S("kevlar_watch_modern_panels");W.headerClickListener=function(e){W.onHeaderClick(e)};
W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.Z(EG,_.O);_.r=EG.prototype;_.r.computeAdsInfoButton=function(){if(_.S("web_modern_buttons")){var W,e;return(e=_.l((W=this.data)==null?void 0:W.subtitleComplex,JoM))==null?void 0:e.adInfoRenderer}};
_.r.updateHeaderClickListener=function(){var W,e,t;((W=this.data)==null?0:W.navigationEndpoint)||((e=this.data)==null?0:e.onClickCommand)||_.l((t=this.data)==null?void 0:t.visibilityButton,_.sW)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.r.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}}}}}};
_.r.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.S("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.r.focus=function(W){this.titleElement&&_.L_(this.titleElement,W)};
_.r.computeTitleAriaLabel=function(W){var e=[];if(W.title){var t,b;e.push(this.ytRendererBehavior.getSimpleString(W.title)||((t=W.title.accessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label))}W.contextualInfo&&e.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return e.join(" ")};
_.r.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.IT(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.r.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.l(this.data.visibilityButton,_.Md)||_.l(this.data.visibilityButton,_.sW);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.r.getVisibilityToggleButton=function(){var W=_.rz(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.r.shouldTriggerHeaderClick=function(W){return!_.NA(_.LB(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.r.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.l(W,_.kWM);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.Ec.Object.defineProperties(EG.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
EG.prototype.collapsedChanged=EG.prototype.collapsedChanged;EG.prototype.updateHeaderClickListener=EG.prototype.updateHeaderClickListener;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],EG.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],EG.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],EG.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],EG.prototype,"targetId",void 0);_.P([_.J(),_.Y("design:type",Boolean)],EG.prototype,"collapsed",void 0);_.P([_.J(),_.Y("design:type",Boolean)],EG.prototype,"hideActionButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EG.prototype,"shortsPanel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EG.prototype,"liveChatEngagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EG.prototype,"darkerPanels",void 0);_.P([_.vG("#title"),_.Y("design:type",HTMLElement)],EG.prototype,"titleElement",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],EG.prototype,"headerElement",void 0);_.P([_.J({computed:"computeAdsInfoButton(data)"}),_.Y("design:type",Object)],EG.prototype,"adsInfoButton",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EG.prototype,"enableSqueezebackPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EG.prototype,"enableAnchoredPanel",void 0);_.P([_.J({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,e){return _.I1(W.entities,"engagementPanelTitleHeaderEntity",e)}}),
_.Y("design:type",Object)],EG.prototype,"entity",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EG.prototype,"modernPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EG.prototype,"adsSemanticText",null);_.P([_.ul("data","data.navigationEndpoint","data.onClickCommand"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EG.prototype,"updateHeaderClickListener",null);
_.P([_.BG("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EG.prototype,"collapsedChanged",null);_.P([_.T("entity","hideActionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EG.prototype,"isActionButtonHidden",null);_.P([_.h({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],EG);
_.H(EG,"ytd-engagement-panel-title-header-renderer",function(){if(Snw!==void 0)return Snw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Snw=W},{mode:1});var Ba9;var Af=function(){return _.O.apply(this,arguments)||this};
_.Z(Af,_.O);Af.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Af.prototype,"data",void 0);_.P([_.h({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Af);
_.H(Af,"ytd-macro-markers-info-item-renderer",function(){if(Ba9!==void 0)return Ba9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ba9=W},{mode:1});var o7C;var $JS=function(W,e,t,b,m,q){_.ka.call(this);var Q=this;this.JSC$20191_containerElement=W;this.hostElement=e;this.supportedSyncItems=t;this.syncEntityKey=b;this.options=m;this.renderLazyListItems=q;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;lxw(this);ZRg(this);this.JSC$20191_scrollAnimation=new _.g7(function(X){W.scrollTop=X});
_.w$(this,this.JSC$20191_scrollAnimation);this.addOnDisposeCallback(function(){Q.exitBrowsingMode(!1);Q.activeItem&&Q.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.Z($JS,_.ka);var lxw=function(W){var e=_.S8(_.ee().resolve(_.hh),function(t){return t.entities.markersEngagementPanelSyncEntity||{}},function(t,b){var m;
t[W.syncEntityKey]!==b[W.syncEntityKey]&&((m=t[W.syncEntityKey])==null?void 0:m.activeItemIndex)!==void 0&&W.updatePanelActiveItem(t[W.syncEntityKey].activeItemIndex)});
W.unsubscribeFromTimedMarkersListSyncEntity=e;W.addOnDisposeCallback(e);kHE(W)},kHE=function(W){var e=_.ee().resolve(_.hh);
e=_.lsQ(e.getState(),W.syncEntityKey);(e==null?void 0:e.activeItemIndex)!==void 0&&(e=W.getItemByIndex(e.activeItemIndex))&&W.setActiveItem(e)},ZRg=function(W){var e=new _.eS(W.onScroll,50,W);
_.w$(W,e);var t=function(){e.fire()};
W.JSC$20191_containerElement.addEventListener("scroll",t);W.addOnDisposeCallback(function(){W.JSC$20191_containerElement.removeEventListener("scroll",t)})};
_.r=$JS.prototype;
_.r.updatePanelActiveItem=function(W){var e=this.getItemByIndex(W);if(e){if(this.setActiveItem(e),this.contentVisible)if(this.browsingMode){var t;((t=this.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=p8B(this),e.offsetTop<this.JSC$20191_containerElement.clientHeight+this.JSC$20191_containerElement.scrollTop&&W&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));y$w(this)}else this.scrollToItem(e)}else _.JC(new _.o_("Could not find "+this.supportedSyncItems+
" sync child to set active.",W,this.JSC$20191_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.r.getItemByIndex=function(W){var e;(e=this.renderLazyListItems)==null||e.call(this,W);e=this.JSC$20191_containerElement.querySelectorAll(this.supportedSyncItems);if(e.length>W)return e[W]};
_.r.setActiveItem=function(W){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));W.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=W};
_.r.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$20191_containerElement.scrollTop!==W&&this.JSC$20191_scrollAnimation.start(this.JSC$20191_containerElement.scrollTop,W,300)};
_.r.getScrollPositionForItem=function(W){if(this.JSC$20191_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var e,t=((e=this.options)==null?0:e.percentOffset)?this.JSC$20191_containerElement.clientHeight*this.options.percentOffset:0;W=_.g6(W).y+this.JSC$20191_containerElement.scrollTop-(_.g6(this.JSC$20191_containerElement).y+t);return Math.max(0,Math.min(W,this.JSC$20191_containerElement.scrollHeight-this.JSC$20191_containerElement.offsetHeight))};
_.r.onScroll=function(){this.activeItemBelowSyncPosition=p8B(this);if(this.activeItem&&!this.JSC$20191_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20191_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!jiT(this));y$w(this);break;default:this.enterBrowsingMode(!0)}}};
_.r.enterBrowsingMode=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1){if(e.browsingMode)return m.return();e.browsingMode=!0;W&&e.hostElement.classList.add("browsing-mode");e.playerExitBrowsingModeListener=function(){e.exitBrowsingMode(!1)};
return _.a(m,_.Iv(),2)}t=m.yieldResult;(b=t)==null||b.addEventListener("SEEK_TO",e.playerExitBrowsingModeListener);_.u8(m)})};
_.r.exitBrowsingMode=function(W){W=W===void 0?!0:W;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),W&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.r.removePlayerSeekListener=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1)return W.playerExitBrowsingModeListener?_.a(b,_.Iv(),3):b.jumpTo(0);e=b.yieldResult;(t=e)==null||t.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.u8(b)})};
var y$w=function(W){var e;((e=W.options)==null?void 0:e.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(jiT(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},p8B=function(W){if(!W.activeItem)return!1;
var e,t=((e=W.options)==null?0:e.percentOffset)?W.JSC$20191_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$20191_containerElement.scrollTop+t},jiT=function(W){if(!W.activeItem)return!1;
var e=W.activeItem.offsetTop+14<=W.JSC$20191_containerElement.scrollTop+W.JSC$20191_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$20191_containerElement.scrollTop&&e};
$JS.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var C5E=function(W,e){W.syncEntityKey=e;var t;(t=W.unsubscribeFromTimedMarkersListSyncEntity)==null||t.call(W);lxw(W)},n7U=function(W,e){W.options=e};var Na=function(){var W=_.O.apply(this,arguments)||this;W.browsingMode=!1;W.modern=_.S("web_button_rework");W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.Z(Na,_.O);_.r=Na.prototype;_.r.activeItemChanged=function(){if(!_.S("synced_panel_scrolling_controller")){var W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.r.created=function(){var W=this;_.S("synced_panel_scrolling_controller")||(this.JSC$20195_scrollAnimation=new _.g7(function(e){W.contents.scrollTop=e}),this.boundExitBrowsingMode=function(){W.exitBrowsingMode(!1)})};
_.r.detached=function(){if(_.S("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.r.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"}}}};
_.r.dataChanged=function(){var W=this;_.S("synced_panel_scrolling_controller")?_.Uc(this,function(){if(W.scrollController){var e;(e=W.scrollController)==null||e.exitBrowsingMode(!1);var t,b,m;(b=W.scrollController)==null||C5E(b,(m=(t=W.data)==null?void 0:t.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key");var q,Q,X;(X=W.scrollController)==null||n7U(X,{percentOffset:(q=W.data)==null?void 0:q.selectedItemAlignmentPercentOffset,floatingPillType:(Q=W.data)==null?void 0:Q.floatingPillType})}else{var I,
u,c,v;W.scrollController=new $JS(W.contents,W.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(v=(I=W.data)==null?void 0:I.syncModelEntityKey)!=null?v:"default-macro-markers-list-renderer-entity-key",{percentOffset:(u=W.data)==null?void 0:u.selectedItemAlignmentPercentOffset,floatingPillType:(c=W.data)==null?void 0:c.floatingPillType},function(D){W.renderLazyListItems(D)})}W.scrollController.panelContentVisibleChanged(!!W.panelContentVisible)}):this.exitBrowsingMode()};
_.r.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.r.computeSyncEnabled=function(W){return!(W==null||!W.syncButtonLabel)};
_.r.renderLazyListItems=function(W){for(var e=this.contents.children,t=0,b=0;b<e.length;b++){var m=void 0;(m=e[b].ytLazyListBehavior)==null||m.fillRemainingListItems();var q=void 0,Q=void 0;m=_.l((q=this.data)==null?void 0:(Q=q.contents)==null?void 0:Q[b],_.uIb);Q=q=void 0;if((q=m)==null?0:(Q=q.contents)==null?0:Q.length)t+=m.contents.length;if(t>=W)break}};
_.r.getItemByIndex=function(W){this.renderLazyListItems(W);var e=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(e.length>W)return e[W]};
_.r.setActiveItem=function(W){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);W.active!==void 0&&(W.active=!0);this.currentActiveItem=W};
_.r.handleSetActivePanelItemAction=function(W){if((W=_.l(W,yoC))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;if(_.S("synced_panel_scrolling_controller")){var e,t;var b=(t=(e=this.data)==null?void 0:e.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key"}else{var m;b=(m=this.data)==null?void 0:m.syncModelEntityKey}if(b){var q;((q=this.syncEntity)==null?void 0:q.activeItemIndex)!==W&&this.ytdReduxBehavior.dispatch(_.SX("markersEngagementPanelSyncEntity",b,{key:b,activeItemIndex:W}))}else this.updatePanelActiveItem(W)}};
_.r.updatePanelActiveItem=function(W){var e=this.getItemByIndex(W);e?(this.setActiveItem(e),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(e)):_.JC(new _.o_("Could not find ytd-macro-markers-list-renderer sync child to set active.",W,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.r.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.contents.scrollTop!==W&&this.JSC$20195_scrollAnimation.start(this.contents.scrollTop,W,300)};
_.r.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===W)return 0;W=_.g6(W).y+this.contents.scrollTop-_.g6(this.contents).y-this.getStickyHeaderHeight(W);return Math.min(W,this.contents.scrollHeight-this.contents.offsetHeight)};
_.r.getStickyHeaderHeight=function(W){if(W.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var e,t,b;return(b=(e=W.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(t=e.header)==null?void 0:t.offsetHeight)!=null?b:0}return 0};
_.r.onScroll=function(){_.S("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20195_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.r.enterBrowsingMode=function(){var W=this;return _.F(function(e){if(e.nextAddress==1){if(W.browsingMode)return e.return();W.browsingMode=!0;return _.a(e,_.bJ().getPlayerPromise(),2)}W.player=e.yieldResult;W.player.addEventListener("SEEK_TO",W.boundExitBrowsingMode);_.u8(e)})};
_.r.exitBrowsingMode=function(W){this.browsingMode&&(this.browsingMode=!1,(W===void 0||W)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.r.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.r.onSyncClick=function(){if(_.S("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode()}else this.exitBrowsingMode()};
_.r.panelContentVisibleChanged=function(){if(_.S("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Na.prototype.panelContentVisibleChanged=Na.prototype.panelContentVisibleChanged;Na.prototype.dataChanged=Na.prototype.dataChanged;Na.prototype.activeItemChanged=Na.prototype.activeItemChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Na.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Na.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Na.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Na.prototype,"useCustomColors",void 0);_.P([_.J({computed:"computeSyncEnabled(data)"}),_.Y("design:type",Boolean)],Na.prototype,"syncEnabled",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Na.prototype,"panelTargetId",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Na.prototype,"panelContentVisible",void 0);_.P([_.vG("#contents"),_.Y("design:type",HTMLElement)],Na.prototype,"contents",void 0);_.P([_.vG("#sync-container"),_.Y("design:type",HTMLElement)],Na.prototype,"syncContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Na.prototype,"browsingMode",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Na.prototype,"modern",void 0);_.P([_.J({selectorArgs:["data.syncModelEntityKey"],selector:_.lsQ}),_.Y("design:type",Object)],Na.prototype,"syncEntity",void 0);_.P([_.ul("syncEntity.activeItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"activeItemChanged",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"dataChanged",null);_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"panelContentVisibleChanged",null);_.P([_.h({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Na);
_.H(Na,"ytd-macro-markers-list-renderer",function(){if(o7C!==void 0)return o7C;var W=document.createElement("template");_.p(W,'\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  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return o7C=W},{mode:1});var fxC;var d_=function(){return _.O.apply(this,arguments)||this};
_.Z(d_,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],d_.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],d_.prototype,"data",void 0);_.P([_.h({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],d_);
_.H(d_,"ytd-error-corrections-section-item-renderer",function(){if(fxC!==void 0)return fxC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fxC=W},{mode:1});var g7g;var Wx=function(){return _.O.apply(this,arguments)||this};
_.Z(Wx,_.O);Wx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wx.prototype,"data",void 0);_.P([_.h({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Wx);
_.H(Wx,"ytd-error-corrections-section-renderer",function(){if(g7g!==void 0)return g7g;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return g7g=W},{mode:1});var Tag;var eb=function(){return _.O.apply(this,arguments)||this};
_.Z(eb,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],eb.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],eb.prototype,"data",void 0);_.P([_.h({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],eb);
_.H(eb,"ytd-topic-link-renderer",function(){if(Tag!==void 0)return Tag;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Tag=W},{mode:1});var J$T;var tZ=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("kevlar_modern_sd_v2");W.modernLockupV2=_.S("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.S("web_modern_typography");return W};
_.Z(tZ,_.O);tZ.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tZ.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tZ.prototype,"modernLockupV2",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tZ.prototype,"modernTypography",void 0);_.P([_.h({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],tZ);
_.H(tZ,"ytd-video-description-course-section-renderer",function(){if(J$T!==void 0)return J$T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J$T=W},{mode:1});var xJ1;var b_=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("kevlar_modern_sd_v2");W.modernTypography=_.S("web_modern_typography");return W};
_.Z(b_,_.O);b_.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],b_.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],b_.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],b_.prototype,"modernTypography",void 0);
_.P([_.h({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],b_);
_.H(b_,"ytd-video-description-files-section-renderer",function(){if(xJ1!==void 0)return xJ1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xJ1=W},{mode:1});var ORT;var mb=function(){return _.O.apply(this,arguments)||this};
_.Z(mb,_.O);mb.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mb.prototype,"data",void 0);_.P([_.h({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],mb);
_.H(mb,"ytd-video-description-gaming-section-renderer",function(){if(ORT!==void 0)return ORT;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ORT=W},{mode:1});var Mp$;var r5=function(){var W=_.O.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.Z(r5,_.O);r5.prototype.computeHasDefaultMetadataEndpoint=function(W){var e;W=W==null?void 0:(e=W.defaultMetadata)==null?void 0:e.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
r5.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Ec.Object.defineProperties(r5.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],r5.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],r5.prototype,"isExpanded",void 0);_.P([_.J({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],r5.prototype,"hasDefaultMetadataEndpoint",void 0);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],r5.prototype,"isExpandable",null);_.P([_.T("data","isExpandable","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],r5.prototype,"showExpandedMetadata",null);_.P([_.h({is:"ytd-info-row-renderer",disableElementRegistration:!0})],r5);
_.H(r5,"ytd-info-row-renderer",function(){if(Mp$!==void 0)return Mp$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Mp$=W},{mode:1});var siE;var qB=function(){var W=_.O.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.S("kevlar_modern_sd_v2");W.JSC$20221_lastScrollContainerWidth=NaN;return W};
_.Z(qB,_.O);_.r=qB.prototype;
_.r.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"}}}};
_.r.getItemsPath=function(){return"videoLockups"};
_.r.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.r.onIronResize=function(){this.updateVideoLockupStyles()};
_.r.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.r.updateVideoLockupStyles=function(){var W;this.JSC$20221_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$20221_scrollContainer.clientWidth,W!==this.JSC$20221_lastScrollContainerWidth&&(this.JSC$20221_lastScrollContainerWidth=W,_.XB(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.q2(this.hostElement,"iron-resize")))};
_.Ec.Object.defineProperties(qB.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],e;if((e=this.data)==null||!e.carouselLockups)return W;e=_.R(this.data.carouselLockups);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;((b=_.l(t,bZB))==null?0:b.videoLockup)&&W.push(_.l(t,bZB).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],e;if((e=this.data)==null||!e.carouselLockups)return W;var t;return(t=_.l(this.data.carouselLockups[this.scrollCount],bZB))==null?void 0:t.infoRows}}});
qB.prototype.dataChanged=qB.prototype.dataChanged;qB.prototype.onIronResize=qB.prototype.onIronResize;qB.prototype.hiddenChanged=qB.prototype.hiddenChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],qB.prototype,"componentBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],qB.prototype,"ytdHorizontalListBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qB.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qB.prototype,"inlineStructuredDescription",void 0);_.P([_.J({value:2}),_.Y("design:type",Number)],qB.prototype,"initialCount",void 0);_.P([_.J(),_.Y("design:type",Object)],qB.prototype,"currentIndex",void 0);
_.P([_.J(),_.Y("design:type",Number)],qB.prototype,"scrollCount",void 0);_.P([_.J(),_.Y("design:type",Object)],qB.prototype,"supportComponentResize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qB.prototype,"contentHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],qB.prototype,"modern",void 0);_.P([_.vG("#scroll-container"),_.Y("design:type",HTMLDivElement)],qB.prototype,"JSC$20221_scrollContainer",void 0);
_.P([_.ul("contentHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qB.prototype,"hiddenChanged",null);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],qB.prototype,"videoLockups",null);_.P([_.T("videoLockups"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qB.prototype,"hasVideoLockups",null);
_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qB.prototype,"onIronResize",null);_.P([_.T("data","scrollCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qB.prototype,"infoRows",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qB.prototype,"dataChanged",null);_.P([_.h({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],qB);
_.H(qB,"ytd-video-description-music-section-renderer",function(){if(siE!==void 0)return siE;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return siE=W},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var h4w;var Rf=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("kevlar_modern_sd_v2");W.modernTypography=_.S("web_modern_typography");return W};
_.Z(Rf,_.O);Rf.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.P([_.J({}),_.Y("design:type",Object)],Rf.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rf.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Rf.prototype,"modernTypography",void 0);
_.P([_.h({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Rf);
_.H(Rf,"ytd-video-description-transcript-section-renderer",function(){if(h4w!==void 0)return h4w;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return h4w=W},{mode:1});var HRE;_.mM(_.NN(function(W){var e=_.D_(_.gs2,function(){return W.data().firstProviderLinkStatusEntityKey}),t=_.D_(_.gs2,function(){return W.data().secondProviderLinkStatusEntityKey}),b=function(){var m,q;
return((m=e())==null?void 0:m.linked)||((q=t())==null?void 0:q.linked)};
return _.w("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.w(_.WL,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.w(_.WL,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return b()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.w(_.G,{cond:b,
then:function(){return _.w(_.nU,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.w(_.G,{cond:function(){return!b()},
then:function(){return _.w(_.nU,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Yi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;return _.w("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.w("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.w(_.WL,{text:function(){return e().sectionTitle}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.w(_.WL,{text:function(){return e().bodyHeader}})),_.w("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.w(_.WL,{text:function(){return e().bodyText}})),_.w(_.G,
{cond:function(){return e().attributionText},
then:function(){return _.w("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.w(_.WL,{text:function(){return e().attributionText}}))}}))},"Zi"),"how-this-was-made-section-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){return _.w("yt-video-description-youchat-section-view-model",{class:_.ve("ytVideoDescriptionYouchatSectionViewModelHost")},_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.w(_.WL,{text:function(){return W.data().sectionTitle}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.w(_.WL,{text:function(){return W.data().subHeaderText}})),_.w("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.w(_.MV,{data:function(){return _.l(W.data().primaryButton,
_.kb)}})))},"$i"),"yt-video-description-youchat-section-view-model",{props:{data:_.Eu}});var Qi=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.Z(Qi,_.O);_.r=Qi.prototype;
_.r.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}}}}}};
_.r.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.r.dataChanged=function(){var W,e;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(e=W.items)==null?void 0:e.length)!==1||!_.l(this.data.items[0],mbQ))};
_.r.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.r.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.r.autoFocusDescription=function(){var W;((W=_.ee().resolve(_.Wi(_.FN)))==null?0:W.isKeyBoardInUse())&&this.description&&_.EH(this.description)};
_.r.resize=function(){if(_.S("kevlar_disable_sd_resize"))this.JSC$20229_cardList&&_.q2(this.JSC$20229_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.q2(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.q2(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.r.scrollToSection=function(W){if(W=this.getSectionElement(W))_.RT(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.r.getSectionElement=function(W){switch(W){case "infocards-item-section":var e;return(e=this.infocardsSection)!=null?e:null;case "transcript-item-section":var t;return(t=this.transcriptSection)!=null?t:null;case "how-this-was-made-section-item-section":var b;return(b=this.howThisWasMadeSection)!=null?b:null;case "files-item-section":var m;return(m=this.filesSection)!=null?m:null;default:return null}};
_.r.handleSetActiveItemAction=function(W){var e=_.l(W,yoC),t=e&&(e==null?void 0:e.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20229_cardList;if(e&&t){W=this.currentActiveChapter;var b=this.currentActiveProblem;e=t==null?void 0:t.getItemByIndex(e.itemIndex);var m=t=!0;e&&(e.active=!0,e.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(t=W!==e,m=!1,this.currentActiveChapter=e):(e==null?void 0:e.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(t=!1,m=b!==e,this.currentActiveProblem=e));W&&t&&(W.active=!1);b&&m&&(b.active=!1)}};
_.Ec.Object.defineProperties(Qi.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Qi.prototype.onYtExpanderMoreTapped=Qi.prototype.onYtExpanderMoreTapped;Qi.prototype.onHiddenChanged=Qi.prototype.onHiddenChanged;Qi.prototype.dataChanged=Qi.prototype.dataChanged;Qi.prototype.panelContentVisibleChanged=Qi.prototype.panelContentVisibleChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Qi.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],Qi.prototype,"ironResizableBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Qi.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Qi.prototype,"panelContentVisible",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Qi.prototype,"hasDescriptionOnly",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qi.prototype,"inlineStructuredDescription",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qi.prototype,"hidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qi.prototype,"shortsPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],Qi.prototype,"videoSummary",void 0);_.P([_.J(),_.Y("design:type",Object)],Qi.prototype,"merchShelf",void 0);
_.P([_.T("videoSummary"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qi.prototype,"showVideoSummary",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qi.prototype,"engagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qi.prototype,"watchWhileSdp",void 0);_.P([_.vG("ytd-expandable-video-description-body-renderer"),_.Y("design:type",Object)],Qi.prototype,"description",void 0);
_.P([_.vG("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],Qi.prototype,"JSC$20229_cardList",void 0);_.P([_.vG("ytd-horizontal-card-list-renderer[center-items]"),_.Y("design:type",Object)],Qi.prototype,"problemWalkthroughCardList",void 0);_.P([_.vG("ytd-shelf-renderer"),_.Y("design:type",Object)],Qi.prototype,"shelfSection",void 0);_.P([_.vG("ytd-video-description-music-section-renderer"),_.Y("design:type",Object)],Qi.prototype,"musicMetadataSection",void 0);
_.P([_.vG("ytd-video-description-infocards-section-renderer"),_.Y("design:type",Object)],Qi.prototype,"infocardsSection",void 0);_.P([_.vG("ytd-video-description-transcript-section-renderer"),_.Y("design:type",Object)],Qi.prototype,"transcriptSection",void 0);_.P([_.vG("how-this-was-made-section-view-model"),_.Y("design:type",Object)],Qi.prototype,"howThisWasMadeSection",void 0);_.P([_.vG("ytd-video-description-files-section-renderer"),_.Y("design:type",Object)],Qi.prototype,"filesSection",void 0);
_.P([_.ul("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qi.prototype,"panelContentVisibleChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qi.prototype,"dataChanged",null);_.P([_.ul("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qi.prototype,"onHiddenChanged",null);
_.P([_.wz("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qi.prototype,"onYtExpanderMoreTapped",null);_.P([_.h({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Qi);
_.H(Qi,"ytd-structured-description-content-renderer",function(){if(HRE!==void 0)return HRE;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return HRE=W},{mode:2});var Kiw;var P5g;var FA=function(){return _.O.apply(this,arguments)||this};
_.Z(FA,_.O);FA.prototype.computeAriaLabel=function(W){var e,t;return(W==null?void 0:(e=W.accessibility)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label)||_.Gv("LOADING",void 0,"Loading")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],FA.prototype,"data",void 0);_.P([_.J({computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],FA.prototype,"ariaLabel",void 0);_.P([_.gz({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],FA);
_.H(FA,"yt-content-loading-renderer",function(){if(P5g===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Kiw===void 0&&(Kiw=document.createElement("template"));var b=Kiw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);P5g=W}W=P5g;return W},{mode:_.Qe("kevlar_poly_si_batch_j043")?1:2});_.mM(_.NN(function(W){var e=_.R(_.up(!1,void 0,"WbYeXc")),t=e.next().value,b=e.next().value;e=_.R(_.up(!1,void 0,"msXkzc"));var m=e.next().value,q=e.next().value;_.nt(function(){var I=_.l(W.data().collaboratePlaylistCollaborationSetting,zV9);I&&b(I.switchedOnByDefault);var u=_.l(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,zV9);u&&q(u.switchedOnByDefault);if(!I&&!u||!I&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")b(!0),q(!0)});
var Q=function(I){b(I);q(I);var u=W.data().playlistCollaborationEntityKey||"";var c=_.Yt().getState();(c=_.I1(c.entities,"playlistCollaborationEntity",u))&&(c==null?void 0:c.isCollaborative)===I||_.Yt().dispatch(_.SX("playlistCollaborationEntity",u,Object.assign({},c,{isCollaborative:I})))},X=function(I){q(I)};
return _.w("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.nU,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.w(_.ax8,{data:I.data,
onSwitch:Q})}})),_.w(_.G,{cond:t,
then:function(){return _.w("div",null,_.w("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.w(_.nU,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.w(_.ax8,{data:I.data,
onSwitch:X,overrideDisabled:!1})}})),_.w(_.G,{cond:m,
then:function(){return _.w("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.w(_.nU,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.MV}))}}),_.w("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.w(_.nU,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:_.t7U})))}}))},"aj"),"playlist-collaboration-view-model",{props:{data:_.Eu}});var Vp$=_.NN(function(W){var e=W.data;var t=W.customCommandResolver;return _.w(_.qD,null,_.w("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.w(_.nU,{data:function(){return e().adAvatar}},{adAvatarViewModel:function(b){return _.w(_.NHy,{data:b.data,
customCommandResolver:t})}})),_.w("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.w(_.G,{cond:function(){return e().headline},
then:function(b){return _.w(_.WL,{text:b,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.w("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.w(_.nU,{data:function(){return e().adBadge}},{adBadgeViewModel:function(b){return _.w(_.e2,{data:b.data,
hasDot:function(){return e().primaryDetailsLine!==void 0},
customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.w(_.nU,{data:function(){return e().primaryDetailsLine}},{adDetailsLineViewModel:function(b){return _.w(_.tM,{data:b.data,
customCommandResolver:t,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"bj"),iRu=_.NN(function(W){var e=W.data;
var t=W.customCommandResolver;W=_.zT("ad-avatar-lockup-view-model");_.Av(W,function(){return e().interaction},t);
_.ev(W,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});return _.w("ad-avatar-lockup-view-model",{class:function(){var b;return((b=e().interaction)==null?0:b.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:W,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w(_.kq,null,_.w(_.Zb,{when:function(){return e().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.w(Vp$,{data:e,
customCommandResolver:t})}),_.w(_.$q,null,function(){return null})))},"cj");_.mM(_.NN(function(W){var e=W.data;var t=W.panelContentVisibility;W=_.zT("panel-ad-header-image-lockup-view-model");_.Av(W,function(){return e().interaction},PbT);
_.ev(W,{visibilityCallback:function(m){var q,Q=(q=e().interaction)==null?void 0:q.onFirstVisible;m&&Q&&_.K4(Q)},
showOption:_.Ev});_.JO(function(){var m,q;if(q=_.HO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;q=(Q=q())==null?void 0:Q.onLayoutVisibleCallback}else q=null;(m=q)==null||m()});
var b=function(){return t()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.w("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:W},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.w(_.G,{cond:_.KqG("(min-width: "+((0,_.jy)()+_.Mp)+"px) or (max-width: 600px)"),then:function(){return _.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(m){return _.w(_.uB,{data:m.data,
targetHeight:80,customCommandResolver:PbT})}})}})),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.w(_.nU,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(m){return _.w(iRu,{data:m.data,
customCommandResolver:PbT})}})),_.w(_.G,{cond:b,
then:function(){return _.w(_.nU,{data:function(){return e().adButton}},{adButtonViewModel:function(m){return _.w(_.NX,{data:m.data,
customCommandResolver:PbT})}})},
else:function(){return _.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:_.MV})}}),_.w("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.w(_.nU,{data:function(){var m=_.l(e().toggleButton,_.pU);
return{toggleButtonViewModel:Object.assign({},m,{isTogglingDisabled:!0,isToggled:b()})}}},{toggleButtonViewModel:_.fU})))))},"dj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Eu,
panelContentVisibility:_.Eu}});_.mM(_.NN(function(W){var e=function(){return _.l(W.data().inputComposerViewModel,Umg)},t=function(){var k;
return((k=e())==null?void 0:k.youchatPendingResponseEntityKey)||""},b=_.D_(_.llE,t),m=function(){var k;
return!((k=b())==null||!k.isPendingResponse)},q=_.R(_.up(!0,void 0,"DR0q1d")),Q=q.next().value,X=q.next().value,I=function(){return e().sectionTargetId||"youchat_messages_section"};
q=_.Um("yt-chat-input-view-model");var u=_.zT("textarea"),c=_.D_(fig,"chat_input_view_model_state"),v=gpB(),D=function(){var k;return!((k=c())==null||!k.value)};
_.nt(function(){var k;if(!D()&&((k=e())==null?0:k.welcomeFeatureContinuation)){k={continuationCommand:{token:e().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var n,f=String(Math.floor(((n=_.av())==null?void 0:n.getCurrentTime())||0)*1E3);n={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:f}};_.sD(k,{form:{formData:n}});v(!0)}var M=I(),K;(K=_.ee().resolve(_.Wi(_.$6)))==null||K.addEventListener("yt-navigate-start",function(){_.yv.remove(M);v(!1)},
{once:!0})});
var B=function(){var k,n,f,M,K,U,V,L,E;return _.F(function(RR){k=u.value.value;u.value.value="";Vx1(u.value);n=ipE(I(),k);_.sD(n);f=_.ZbC(t());_.K4(((M=e())==null?void 0:M.onSubmitCommand)||{});f(!0);U=String(Math.floor(((K=_.av())==null?void 0:K.getCurrentTime())||0)*1E3);L={continuationCommand:{token:(V=e())==null?void 0:V.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};E={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:k,playerOffsetMs:U}};_.sD(L,{form:{formData:E},
commandController:{onSuccess:function(){f(!1)},
onServerError:function(){var uv=I();_.sD({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:uv}}]}}});f(!1)}}});
_.u8(RR)})};
return _.w("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:q},_.w("div",{class:"chatInputViewModelChatInputWrapper"},_.w("form",{class:"chatInputViewModelChatInputForm"},_.w("textarea",{class:"chatInputViewModelChatInput",el:u,"on:keydown":_.Be(function(k){var n=m()||!1;Vx1(u.value);n||k.key!=="Enter"||k.shiftKey||(k.preventDefault(),B());return!1}),
"on:keyup":_.Be(function(){X(u.value.value.length===0);return!1}),
placeholder:function(){var k,n;var f=_.l((n=e())==null?void 0:n.inputFormField,$mM);return f==null?void 0:(k=f.contentProperties)==null?void 0:k.placeholderText},
rows:1}),_.w(_.MV,{data:function(){return _.l(W.data().sendButton,_.kb)},
onClick:function(k){k.preventDefault();B();X(u.value.value.length===0)},
buttonOverrides:function(){return{disabled:Q()||m()}}})),_.w(_.WL,{className:"chatInputViewModelChatDisclaimer",
text:function(){var k;return(k=_.l(W.data().disclaimer,_.cBo))==null?void 0:k.text}})))},"ej"),"yt-chat-input-view-model",{props:{data:_.Eu}});var YnQ=["engagement-panel-clip-create","engagement-panel-clip-view"],z4B=0,XA=function(){var W=_.O.apply(this,arguments)||this;var e;W.headerData=(e=W.data)==null?void 0:e.header;W.darkerPanels=_.S("web_watch_darker_panels");W.matchContentTheme=_.S("web_watch_panel_content_match_theme");W.disableAutoFill=!1;W.isFullscreen=!1;W.isTheaterMode=!1;W.modernPanels=_.S("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=
_.S("web_disable_backdrop_filter");W.trackEngagementPanelVisibility=_.S("web_watch_track_engagement_panel_visibility");W.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 W};
_.Z(XA,_.O);_.r=XA.prototype;
_.r.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},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(W){var e;
return(W==null?void 0:(e=W.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},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"}}}};
_.r.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.r.detached=function(){this.updateTheaterDisablement()};
_.r.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Tm.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.r.maybeScrollToItemSection=function(W){var e=this,t,b=W==null?void 0:(t=W.sectionListEngagementPanelExtras)==null?void 0:t.scrollToItemSectionIdentifier;b&&_.Tm.addJob(function(){var m;(m=e.sectionListRendererElement)==null||m.scrollToItemSection(b)},8)};
_.r.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Tm.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.r.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.r.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.r.updatePanel=function(W,e,t,b){var m=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||b){if(W){b=W.header;var q=W.content,Q=W.footer;(W=W.targetId)&&this.set("data.targetId",W);b&&this.set("data.header",b);q&&this.set("data.content",q);Q&&this.set("data.footer",Q)}else b&&(W=b.content,q=b.secondaryHeaderContent,(b=b.targetId)&&this.set("data.targetId",b),W&&this.set("data.content",W),q&&(this.secondaryHeaderData=q));this.updateChildVisibilityProperties();if(e){var X;_.S("kevlar_update_panel_focus_scroll_killswitch")||
(X={preventScroll:!0});this.focus(X)}_.Uc(this,function(){_.q2(m.hostElement,"yt-refit");m.maybeScrollToItemSection(t)})}};
_.r.computeHeaderData=function(){var W,e=(0,_.kJ.unsafeClone)((W=this.data)==null?void 0:W.header);if(e){W=new _.z(Object.keys(e)[0]);var t=_.l(e,W),b=_.l(this.secondaryHeaderData,W);b&&_.gA(e,W,Object.assign({},b,t))}return e};
_.r.getReloadContinuation=function(){var W,e,t,b=_.R(((W=this.data)==null?void 0:(e=W.content)==null?void 0:(t=e.sectionListRenderer)==null?void 0:t.continuations)||[]);for(W=b.next();!W.done;W=b.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.r.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.r.forwardPopupClosedToFlowRootRenderer=function(){var W=_.rz(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.r.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var W;if(!YnQ.includes((W=this.theaterDisablementPanelIdentifier)!=null?W:""))if(W=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode,W=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W,_.S("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||W){var e;this.visibility=(e=this.data)==null?void 0:e.visibility;var t;this.trackEngagementPanelVisibility&&((t=this.data)==null?void 0:t.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var b,m,q,Q;this.contentEmpty=!!(((b=this.data)==null?0:(m=b.content)==null?0:m.structuredDescriptionContentRenderer)&&Object.keys((q=this.data)==null?void 0:(Q=q.content)==null?void 0:
Q.structuredDescriptionContentRenderer).length===0);(e=_.ee().resolve(_.oL))&&e.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.r.isTheaterModeChanged=function(){_.S("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.r.isFullscreenChanged=function(){_.S("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.r.focus=function(W){if(this.header)this.header.focus(W);else{var e;(e=_.rz(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||e.focus(W)}};
_.r.visibilityChanged=function(){if(!_.S("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m=b||!this.lastVisibility,q,Q,X=(q=this.data)==null?void 0:(Q=q.identifier)==null?void 0:Q.tag,
I;if(((I=this.data)==null?0:I.onShowCommands)&&W&&m)_.IT(this.hostElement,this.data.onShowCommands,this.hostElement),X&&_.Eb().dispatch(_.rO({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:X}}));else{var u;((u=this.data)==null?0:u.onHideCommands)&&e&&t&&(_.IT(this.hostElement,this.data.onHideCommands,this.hostElement),X&&_.Eb().dispatch(_.rO({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:X}})))}W&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*z4B++));_.S("kevlar_watch_focus_on_engagement_panels")&&
W&&b&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.r.notifyVisibilityChanged=function(W){var e;_.Qx(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(e=this.data)==null?void 0:e.targetId])};
_.r.updateTheaterDisablement=function(){if(!_.S("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&YnQ.includes(W)&&!_.S("watch_next_grid_ignore_disallowed_panels")){var e=_.hv(_.Eb().getState()),t=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():t?(this.originalTheaterState===void 0&&(this.originalTheaterState=e,this.theaterDisablementPanelIdentifier=
W),e&&_.RT(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.r.clearTheaterDisablement=function(){_.RT(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.r.updateChildVisibilityProperties=function(){this.hostElement||_.S("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var e,t=(e=this.headerElement)==null?void 0:e.firstElementChild;if(t&&!this.adHeaderImageLockupViewModel){e=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";t.collapsed=e;t=_.rz(t).querySelector("#visibility-button");if(!t)return;(t=t.firstElementChild)&&
t.polymerController.is==="ytd-toggle-button-renderer"&&t.polymerController.data.isToggled!==e&&t.polymerController.set("data.isToggled",e)}var b;if(e=(b=this.contentElement)==null?void 0:b.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")e.removeAttribute("panel-content-visible");else{e.setAttribute("panel-content-visible","");var m;(m=e.markDirty)==null||m.call(e)}};
_.r.onYtChangeEngagementPanelVisibilityAction=function(W){var e=this,t,b=(t=this.data)==null?void 0:t.targetId,m,q,Q;t=((m=this.data)==null?void 0:(q=m.identifier)==null?void 0:q.tag)||((Q=this.data)==null?void 0:Q.panelIdentifier);var X=_.l(W,_.o28),I;W=b&&(X==null?void 0:X.targetId)===b||t&&(X==null?void 0:(I=X.panelIdentifier)==null?void 0:I.tag)===t;this.dialog&&W&&(X==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(b==="engagement-panel-comments-section"?_.RT(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.RT(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",t]));!_.S("kevlar_use_engagement_panel_management_component")&&W&&(b=X.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!b?_.Tm.addJob(function(){e.visibility=X.visibility},2,this.hideDelayMs):this.visibility=X.visibility,X.visibility&&this.notifyVisibilityChanged(X.visibility))};
_.r.onYtScrollToEngagementPanelCommand=function(W){var e,t=(e=this.data)==null?void 0:e.targetId,b,m,q;e=((b=this.data)==null?void 0:(m=b.identifier)==null?void 0:m.tag)||((q=this.data)==null?void 0:q.panelIdentifier);W=_.l(W,_.g28);var Q;(t&&(W==null?void 0:W.targetId)===t||e&&(W==null?void 0:(Q=W.panelIdentifier)==null?void 0:Q.tag)===e)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.RT(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.r.attachVEs=function(W){var e,t;(W==null?0:(e=W.content)==null?0:(t=e.productListRenderer)==null?0:t.trackingParams)&&_.Sg().graftServerVe(W.content.productListRenderer.trackingParams);var b,m;(W==null?0:(b=W.content)==null?0:(m=b.transcriptRenderer)==null?0:m.trackingParams)&&_.Sg().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.r.onYtUpdateEngagementPanelAction=function(W){var e,t=(e=this.data)==null?void 0:e.targetId;W=_.l(W,C1u);t&&(W==null?void 0:W.targetId)===t&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.r.onYtShowEngagementPanelScrimAction=function(W){var e,t=(e=this.data)==null?void 0:e.targetId;W=_.l(W,jcS);t&&(W==null?void 0:W.engagementPanelTargetId)===t&&(this.scrimmed=!0)};
_.r.onYtHideEngagementPanelScrimAction=function(W){var e,t=(e=this.data)==null?void 0:e.targetId;W=_.l(W,pdB);t&&(W==null?void 0:W.engagementPanelTargetId)===t&&(this.scrimmed=!1)};
_.r.getIdentifier=function(){var W,e,t;return((W=this.data)==null?void 0:W.panelIdentifier)||((e=this.data)==null?void 0:(t=e.identifier)==null?void 0:t.tag)};
_.r.getSurface=function(){var W,e;return(W=this.data)==null?void 0:(e=W.identifier)==null?void 0:e.surface};
_.Ec.Object.defineProperties(XA.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
XA.prototype.visibilityChanged=XA.prototype.visibilityChanged;XA.prototype.isFullscreenChanged=XA.prototype.isFullscreenChanged;XA.prototype.isTheaterModeChanged=XA.prototype.isTheaterModeChanged;XA.prototype.dataChanged=XA.prototype.dataChanged;XA.prototype.forwardPopupClosedToFlowRootRenderer=XA.prototype.forwardPopupClosedToFlowRootRenderer;XA.prototype.onYtRendererstamperFinished=XA.prototype.onYtRendererstamperFinished;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],XA.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],XA.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],XA.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"data",void 0);
_.P([_.J({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Y("design:type",Object)],XA.prototype,"headerData",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"secondaryHeaderData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"visibility",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"contentEmpty",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"scrimmed",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"dialog",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"dropdown",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"darkerPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"matchContentTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"disableAutoFill",void 0);
_.P([_.J({reflectToAttribute:!0,value:_.S("optimal_reading_width_comments_ep")}),_.Y("design:type",Boolean)],XA.prototype,"optimalReadingWidthComments",void 0);_.P([_.J(),_.Y("design:type",Number)],XA.prototype,"hideDelayMs",void 0);_.P([_.J({selector:_.HS,reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"isFullscreen",void 0);_.P([_.J({selector:_.hv,reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"isTheaterMode",void 0);
_.P([_.J(),_.Y("design:type",Number)],XA.prototype,"showDelayMs",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XA.prototype,"targetId",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XA.prototype,"webSize",null);_.P([_.J(),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XA.prototype,"hideFooterBorder",null);
_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"isWatch",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"originalTheaterState",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"theaterDisablementPanelIdentifier",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"modernPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"isWatchWhilePanel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"shortsPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],XA.prototype,"liveChatEngagementPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"liveChatReplyPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"enableAnchoredPanel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],XA.prototype,"disableBackdropFilter",void 0);_.P([_.J(),_.Y("design:type",Object)],XA.prototype,"trackEngagementPanelVisibility",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],XA.prototype,"headerElement",void 0);_.P([_.vG("#header > *"),_.Y("design:type",HTMLElement)],XA.prototype,"header",void 0);_.P([_.vG("ytd-section-list-renderer"),_.Y("design:type",Object)],XA.prototype,"sectionListRendererElement",void 0);
_.P([_.vG("panel-ad-header-image-lockup-view-model"),_.Y("design:type",HTMLElement)],XA.prototype,"adHeaderImageLockupViewModel",void 0);_.P([_.vG("#content"),_.Y("design:type",HTMLElement)],XA.prototype,"contentElement",void 0);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"onYtRendererstamperFinished",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.P([_.BG("data","isFullscreen","isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"dataChanged",null);_.P([_.ul("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"isTheaterModeChanged",null);
_.P([_.ul("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"isFullscreenChanged",null);_.P([_.ul("visibility"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XA.prototype,"visibilityChanged",null);_.P([_.h({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],XA);
_.H(XA,"ytd-engagement-panel-section-list-renderer",function(){if(v7T!==void 0)return v7T;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return v7T=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var UJ9;var If=function(){var W=_.O.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.Z(If,_.O);_.r=If.prototype;_.r.dataChanged=function(){if(this.data){for(var W=[],e=_.R(this.data),t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0,m=void 0,q=(b=t)==null?void 0:(m=b.engagementPanelSectionListRenderer)==null?void 0:m.visibility;m=b=void 0;((b=t)==null?0:(m=b.engagementPanelSectionListRenderer)==null?0:m.targetId)&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(t)}this.visiblePanels=W}else this.visiblePanels=[]};
_.r.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}}};
_.r.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(e){var t;return((t=e.engagementPanelSectionListRenderer)==null?void 0:t.targetId)!==W})};
_.r.onYtChangeEngagementPanelVisibilityAction=function(W){var e=this,t=_.l(W,_.o28);if(this.data&&(t==null?0:t.targetId)&&(t==null?0:t.visibility)){var b,m=(b=this.data.find(function(Q){var X;return((X=Q.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===t.targetId}))==null?void 0:b.engagementPanelSectionListRenderer;
if(m){var q=this.withoutVisiblePanelById(t.targetId);t.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(Q){var X;return((X=Q.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===t.targetId}))&&(q=[W].concat(_.kP(q)));
this.hideDelayMs&&t.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&q.length===0?_.Tm.addJob(function(){m.visibility=t.visibility;e.visiblePanels=q},10,this.hideDelayMs):(m.visibility=t.visibility,this.visiblePanels=q);
_.Qx(this.hostElement,"yt-engagement-panels-visible-changed",[q])}}};
_.r.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(e){var t;return(t=e.engagementPanelSectionListRenderer)==null?void 0:t.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.r.handlePanelVisibilityChange=function(W,e){W=W===void 0?new Set:W;e=e===void 0?new Set:e;if(this.data)for(var t=_.R(this.data),b=t.next();!b.done;b=t.next()){b=b.value;var m=void 0,q=void 0,Q=(m=b)==null?void 0:(q=m.engagementPanelSectionListRenderer)==null?void 0:q.targetId;if(Q&&(m=e.has(Q),q=W.has(Q),Q=void 0,!m&&q?(q=m=void 0,Q=(m=b)==null?void 0:(q=m.engagementPanelSectionListRenderer)==null?void 0:q.onShowCommands):m&&!q&&(q=m=void 0,Q=(m=b)==null?void 0:(q=m.engagementPanelSectionListRenderer)==
null?void 0:q.onHideCommands),Q))for(b=_.R(Q),Q=b.next();!Q.done;Q=b.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
If.prototype.onRendererstamperFinished=If.prototype.onRendererstamperFinished;If.prototype.dataChanged=If.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],If.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],If.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],If.prototype,"lastRenderedPanelIds",void 0);_.P([_.J(),_.Y("design:type",Number)],If.prototype,"hideDelayMs",void 0);_.P([_.J(),_.Y("design:type",Array)],If.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],If.prototype,"visiblePanels",void 0);_.P([_.J(),_.Y("design:type",Boolean)],If.prototype,"isWatchWhilePanel",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"dataChanged",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onRendererstamperFinished",null);_.P([_.h({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],If);
_.H(If,"ytd-watch-engagement-panels",function(){if(UJ9!==void 0)return UJ9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return UJ9=W},{mode:1});var LiT;var af=function(){return _.O.apply(this,arguments)||this};
_.Z(af,_.O);af.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.KF(_.rz(this.hostElement).querySelector("#text"),_.jRU(_.fgU,this.data.companionLegalText))};
af.prototype.computeAutoScrollEnabled=function(W,e){return W&&!e};
af.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
af.prototype.onToggleTap=function(){this.expanded=!this.expanded};
af.prototype.expandedChanged=af.prototype.expandedChanged;af.prototype.dataChanged=af.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.Kdl),_.Y("design:type",Object)],af.prototype,"ytdAutoScrollBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],af.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],af.prototype,"expanded",void 0);
_.P([_.J({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Y("design:type",Boolean)],af.prototype,"autoScrollEnabled",void 0);_.P([_.J(),_.Y("design:type",String)],af.prototype,"expanderIcon",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],af.prototype,"dataChanged",null);
_.P([_.ul("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],af.prototype,"expandedChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],af);
_.H(af,"ytd-companion-legal-text-renderer",function(){if(LiT!==void 0)return LiT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LiT=W},{mode:1});var E7$;var w5=function(){var W=_.O.apply(this,arguments)||this;W.buttonUpdate=_.S("web_modern_buttons");W.kevlarWatchGrid=_.S("kevlar_watch_grid");W.centerAlignDescription=_.S("action_companion_center_align_description");W.truncateDomain=_.S("action_companion_truncate_domain");return W};
_.Z(w5,_.O);_.r=w5.prototype;_.r.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.r.getOnLayoutVisibleCallback=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.r.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",w5.JSC$20276_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.r.getButtonRenderer=function(W){return W.actionButton&&_.l(W.actionButton,_.Md)?(delete _.l(W.actionButton,_.Md).navigationEndpoint,_.l(W.actionButton,_.Md)):{}};
_.r.onClick=function(W){var e=this;if((!_.S("web_modern_buttons")||!_.NA(_.LB(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.tv();var t=this.getLayoutId();W&&t&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(b){(new _.$e(b)).executeCommand(e.data.navigationEndpoint,t)}):_.S("kevlar_companion_resolve_command_killswitch")?_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.RT(this.hostElement,"yt-companion-ad-clicked",["action-companion",t])}};
_.Ec.Object.defineProperties(w5.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?0:(e=W.detailsLine)==null?0:(t=e.adRating)==null?0:t.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 W,e,t,b;return((W=this.data)==null?0:(e=W.detailsLine)==null?0:(t=e.adRating)==null?0:(b=t.ratingIcon)==null?0:b.iconType)?_.ao(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return((W=this.data)==null?0:(e=W.detailsLine)==null?0:(t=e.texts)==null?0:(b=t[0])==null?0:b.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?0:(e=W.description)==null?0:e.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
w5.prototype.onClick=w5.prototype.onClick;w5.prototype.dataChanged=w5.prototype.dataChanged;w5.JSC$20276_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Gv("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],w5.prototype,"rendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],w5.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],w5.prototype,"buttonUpdate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],w5.prototype,"kevlarWatchGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],w5.prototype,"centerAlignDescription",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],w5.prototype,"truncateDomain",void 0);
_.P([_.J({computed:"computeButtonOverride(buttonUpdate)"}),_.Y("design:type",Object)],w5.prototype,"buttonOverride",void 0);_.P([_.T("data.detailsLine.adRating.ratingText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w5.prototype,"getRating",null);_.P([_.T("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],w5.prototype,"computeRatingHidden",null);
_.P([_.T("data.detailsLine.adRating.ratingIcon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w5.prototype,"iconType",null);_.P([_.T("data.detailsLine.texts.0.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w5.prototype,"getDetailsLine",null);_.P([_.T("getDetailsLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],w5.prototype,"computeDetailsLineHidden",null);
_.P([_.T("data.description.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w5.prototype,"getDescriptionText",null);_.P([_.T("getDescriptionText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],w5.prototype,"computeDescriptionTextHidden",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w5.prototype,"interactionLoggingClientData",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],w5.prototype,"hideBanner",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w5.prototype,"dataChanged",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],w5.prototype,"onClick",null);_.P([_.h({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],w5);
_.H(w5,"ytd-action-companion-ad-renderer",function(){if(E7$!==void 0)return E7$;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return E7$=W},{mode:_.Qe("kevlar_poly_si_batch_j067")?1:2});var A$9;var Na1;var u_=function(){var W=_.O.apply(this,arguments)||this;W.buttonUpdate=_.S("web_modern_buttons");W.hideLegacyBanner=_.S("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.Z(u_,_.O);_.r=u_.prototype;_.r.getOnLayoutVisibleCallback=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.r.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.lF(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.l(this.data.clickthroughEndpoint,_.KJ)&&(W=_.l(this.data.clickthroughEndpoint,_.KJ).url,_.S("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.lF(W),this.clickThroughUrl=_.v7(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.r.onClick=function(W){_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.r.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(e){W.macroReplacementBehavior.sendServiceRequestAction([e])}),_.RT(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.r.onLoad=function(){_.Qx(this.hostElement,"yt-refit-popups-action")};
_.Ec.Object.defineProperties(u_.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
u_.prototype.onLoad=u_.prototype.onLoad;u_.prototype.onClick=u_.prototype.onClick;u_.prototype.dataChanged=u_.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],u_.prototype,"rendererBehavior",void 0);_.P([_.y(ZgQ.YtMacroReplacementBehavior),_.Y("design:type",Object)],u_.prototype,"macroReplacementBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],u_.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],u_.prototype,"buttonUpdate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],u_.prototype,"hideLegacyBanner",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],u_.prototype,"adInfoButtonStyle",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],u_.prototype,"adInfoButtonType",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u_.prototype,"macros",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u_.prototype,"interactionLoggingClientData",null);_.P([_.J(),_.Y("design:type",String)],u_.prototype,"clickThroughUrl",void 0);_.P([_.J(),_.Y("design:type",_.wR)],u_.prototype,"imageSrc",void 0);_.P([_.J(),_.Y("design:type",Number)],u_.prototype,"imageWidth",void 0);_.P([_.J(),_.Y("design:type",Number)],u_.prototype,"imageHeight",void 0);_.P([_.J(),_.Y("design:type",Object)],u_.prototype,"noDotAdBadge",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u_.prototype,"dataChanged",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],u_.prototype,"onClick",null);_.P([_.wz("load"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u_.prototype,"onLoad",null);_.P([_.h({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],u_);
_.H(u_,"ytd-image-companion-renderer",function(){if(Na1!==void 0)return Na1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Na1=W},{mode:_.Qe("kevlar_poly_si_batch_j067")?1:2});var dJT;var cx=function(){return _.O.apply(this,arguments)||this};
_.Z(cx,_.O);_.r=cx.prototype;_.r.dataChanged=function(){this.set("data.adBadge",cx.JSC$20285_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.r.getOnLayoutVisibleCallback=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.r.getLayoutId=function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.r.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.RT(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.r.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.tv(),e=this.getLayoutId(),t=this.data.clickToAdvSiteEndpoint;W&&e&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(b){(new _.$e(b)).executeCommand(t,e)}):_.q2(this.hostElement,"yt-navigate",{endpoint:t})}};
_.r.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var e=0;e<W.length;e++)_.Vf(W[e])};
_.r.getBaseUrl=function(W){return W.baseUrl||""};
_.Ec.Object.defineProperties(cx.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.HO("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
cx.prototype.onCompanionClicked=cx.prototype.onCompanionClicked;cx.prototype.dataChanged=cx.prototype.dataChanged;cx.JSC$20285_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Gv("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cx.prototype,"data",void 0);_.P([_.vG("#title"),_.Y("design:type",HTMLElement)],cx.prototype,"shopTitle",void 0);
_.P([_.BG("data.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"dataChanged",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cx.prototype,"interactionLoggingClientData",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],cx.prototype,"onCompanionClicked",null);
_.P([_.h({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],cx);
_.H(cx,"ytd-shopping-companion-renderer",function(){if(dJT!==void 0)return dJT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dJT=W},{mode:1});_.mM(_.NN(function(W){var e=W.data;var t=_.zT("banner-image-layout-view-model");_.Av(t,function(){return e().interaction},YIM);
_.ev(t,{visibilityCallback:function(b){var m,q=(m=e().interaction)==null?void 0:m.onFirstVisible;b&&q&&_.K4(q)},
showOption:_.Ev});_.JO(function(){var b,m;m=(m=_.HO("yt.www.ads.eventcache.getLastCompanionData"))?(m=m())&&m.onLayoutVisibleCallback:null;(b=m)==null||b()});
return _.w("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Be(function(){_.Qx(t.value,"yt-refit-popups-action")}),
el:t,"aria-label":function(){var b,m;return(b=e().interaction)==null?void 0:(m=b.accessibility)==null?void 0:m.label}},_.w("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(b){return _.w(_.uB,{data:b.data,
targetHeight:80,customCommandResolver:YIM})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.w(_.nU,{data:function(){return e().adBadge}},{adBadgeViewModel:function(b){return _.w(_.e2,{data:b.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.w("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:_.MV}))))},"fj"),"banner-image-layout-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;W=_.zT("top-banner-image-text-icon-buttoned-layout-view-model");_.Av(W,function(){return e().interaction},znC);
_.ev(W,{visibilityCallback:function(t){var b,m=(b=e().interaction)==null?void 0:b.onFirstVisible;t&&m&&_.K4(m)},
showOption:_.Ev});_.JO(function(){var t,b;b=(b=_.HO("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.onLayoutVisibleCallback:null;(t=b)==null||t()});
return _.w("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:W},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.w(_.nU,{data:function(){return e().adImage}},{adImageViewModel:function(t){return _.w(_.uB,{data:t.data,
targetHeight:80,customCommandResolver:znC})}})),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.w(_.nU,{data:function(){return e().adAvatarLockup}},{adAvatarLockupViewModel:function(t){return _.w(iRu,{data:t.data,
customCommandResolver:znC})}})),_.w(_.nU,{data:function(){return e().adButton}},{adButtonViewModel:function(t){return _.w(_.NX,{data:t.data,
customCommandResolver:znC})}}),_.w("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.w(_.nU,{data:function(){return e().menu}},{buttonViewModel:_.MV}))))},"gj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Eu}});var WQM={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"},vx=function(){var W=_.O.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.Z(vx,_.O);_.r=vx.prototype;_.r.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:WQM}}};
_.r.attached=function(){var W=this,e=_.tv();e&&e.getPlayerPromise().then(function(t){W.getCachedDataAndListen(t)})};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.r.updateRendererStamper=function(){var W={};if(this.data)for(var e in WQM)if(this.data[e]){W[e]=this.data[e];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.r.getCachedDataAndListen=function(W){var e=this.retrieveCachedCompanionData();e&&Object.keys(e).length&&this.receiveCompanionData(e);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.r.retrieveCachedCompanionData=function(){return _.tz.yt&&_.tz.yt.www&&_.tz.yt.www.ads&&_.tz.yt.www.ads.eventcache&&_.tz.yt.www.ads.eventcache.getLastCompanionData?_.tz.yt.www.ads.eventcache.getLastCompanionData():null};
_.r.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.r.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var e in WQM)WQM.hasOwnProperty(e)&&(this.data[e]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.Qx(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Qx(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.r.dataChanged=function(){var W=this,e=_.tv();e?e.getPlayerPromise().then(function(t){W.contentVideoId&&t.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.Kt(Error("jm"))};
_.r.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Tm.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.r.handleCompanionAdClicked=function(W,e){this.player.onAdUxClicked(W,e);this.player.pauseVideo()};
vx.prototype.dataChanged=vx.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],vx.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],vx.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],vx.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vx.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],vx.prototype,"oneofRenderer",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vx.prototype,"dataChanged",null);_.P([_.h({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],vx);
_.H(vx,"ytd-companion-slot-renderer",function(){if(A$9!==void 0)return A$9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return A$9=W},{mode:_.Qe("kevlar_poly_si_batch_j067")?
1:2});var evC;var G6=function(){return _.O.apply(this,arguments)||this};
_.Z(G6,_.O);G6.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
G6.prototype.dataChanged=G6.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],G6.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],G6.prototype,"companionSlotData",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G6.prototype,"dataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],G6);
_.H(G6,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(evC!==void 0)return evC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return evC=W},{mode:1});var tWB;var Dr=function(){var W=_.O.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.Uc(W,function(){var e=W.COMPACT_EVENT_COUNT-1,t;(t=_.rz(W.hostElement).querySelector("#event-"+e))==null||t.focus()}))};
return W};
_.Z(Dr,_.O);_.r=Dr.prototype;_.r.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.r.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.r.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.aH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.aH(this.infoTooltip,this.infoTooltip.hide))};
_.r.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.aH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.aH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.aH(this.infoTooltip,this.infoTooltip.hide))};
_.r.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)};
_.r.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.r.showingMoreChanged=function(W){var e=this.get("data.events")||[];this.set("restEvents",e.slice(1,W?e.length:this.COMPACT_EVENT_COUNT).map(function(t){return t.ticketEventRenderer}));
e.slice(0,W?e.length:this.COMPACT_EVENT_COUNT).forEach(function(t){var b=_.fc();t=t.ticketEventRenderer.trackingParams;_.nc()&&b&&t&&(t=_.$5(t),b&&_.Vx(b,t))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.r.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.r.logTap=function(W){_.nc()&&this.ytRendererBehavior.logExplicitClick(W)};
_.r.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.r.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.r.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.r.handleTap=function(W,e,t){if(e.buttonCommand)if(e.hasMultipleOffers)Object.assign(_.l(e.buttonCommand,_.jO),{properties:{source:t?"keyboard":"tap"}}),this.logTap(e),this.popupPositionTarget=W,_.IT(this.hostElement,[e.buttonCommand],this.hostElement);else{var b;if((b=_.l(e.buttonCommand,_.KJ))==null?0:b.url)this.logTap(e),_.Ty(window,_.l(e.buttonCommand,_.KJ).url)}};
Dr.prototype.onShowingMoreChanged=Dr.prototype.onShowingMoreChanged;Dr.prototype.dataChanged=Dr.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dr.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Dr.prototype,"firstEvent",void 0);_.P([_.J(),_.Y("design:type",Object)],Dr.prototype,"restEvents",void 0);_.P([_.J(),_.Y("design:type",String)],Dr.prototype,"imageUrl",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dr.prototype,"showingMore",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dr.prototype,"canShowMore",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Dr.prototype,"skinnyMode",void 0);_.P([_.J(),_.Y("design:type",HTMLElement)],Dr.prototype,"popupPositionTarget",void 0);_.P([_.vG("#banner-info-tooltip"),_.Y("design:type",Object)],Dr.prototype,"infoTooltip",void 0);
_.P([_.vG("#info-container"),_.Y("design:type",HTMLElement)],Dr.prototype,"infoContainer",void 0);_.P([_.vG("#shelf-toggler"),_.Y("design:type",HTMLElement)],Dr.prototype,"shelfToggleButton",void 0);_.P([_.vG("#separator"),_.Y("design:type",HTMLDivElement)],Dr.prototype,"separator",void 0);_.P([_.J(),_.Y("design:type",String)],Dr.prototype,"shelfTogglerLabelText",void 0);_.P([_.J(),_.Y("design:type",String)],Dr.prototype,"shelfTogglerIcon",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dr.prototype,"dataChanged",null);_.P([_.BG("showingMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dr.prototype,"onShowingMoreChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Dr);
_.H(Dr,"ytd-ticket-shelf-renderer",function(){if(tWB!==void 0)return tWB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tWB=W},{mode:1});var bIT;var m0Q;var Sb=function(){return _.O.apply(this,arguments)||this};
_.Z(Sb,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Sb.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Sb);
_.H(Sb,"ytd-comments-entry-point-message-renderer",function(){if(m0Q!==void 0)return m0Q;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return m0Q=W},{mode:1});var r9U;var Bx=function(){return _.O.apply(this,arguments)||this};
_.Z(Bx,_.O);_.Ec.Object.defineProperties(Bx.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bx.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Bx.prototype,"hasAvatar",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Bx);
_.H(Bx,"ytd-comments-entry-point-teaser-renderer",function(){if(r9U!==void 0)return r9U;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return r9U=W},{mode:1});var qgB;var of=function(){return _.O.apply(this,arguments)||this};
_.Z(of,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],of.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],of);
_.H(of,"ytd-comments-simplebox-renderer",function(){if(qgB!==void 0)return qgB;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qgB=W},{mode:1});var l_=function(){var W=_.O.apply(this,arguments)||this;W.fullHeight=!_.S("comment_teaser_full_height_kill_switch")&&_.S("kevlar_watch_grid");return W};
_.Z(l_,_.O);l_.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"}}}};
l_.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
l_.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
l_.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.Ec.Object.defineProperties(l_.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var e,t;if(((e=this.data)==null?0:e.teaserContent)||((t=this.data)==null?0:t.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
l_.prototype.onKeyUp=l_.prototype.onKeyUp;l_.prototype.onTap=l_.prototype.onTap;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],l_.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],l_.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],l_.prototype,"fullHeight",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"tapCommand",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"simpleboxPlaceholder",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l_.prototype,"hasSimpleboxPlaceholder",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"simpleboxAvatar",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"teaserContent",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l_.prototype,"hasTeaserContent",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"teaserAvatar",null);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l_.prototype,"hasTeaserAvatar",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"messageText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l_.prototype,"contentRenderer",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l_.prototype,"hasContents",null);
_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l_.prototype,"hasContentRenderer",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l_.prototype,"onTap",null);_.P([_.wz("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.SF]),_.Y("design:returntype")],l_.prototype,"onKeyUp",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],l_);
_.H(l_,"ytd-comments-entry-point-header-renderer",function(){if(bIT!==void 0)return bIT;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return bIT=W},{mode:1});var Rvu;_.S("web_enable_sink_animated_rolling_character_and_number")?_.mM(_.DeZ,"yt-animated-rolling-number",{props:{numberText:_.Eu,numberValue:_.Eu,heightPx:_.Eu,fontSizeMultiplier:_.Eu,shouldAnimate:_.Eu,forceRollUp:_.Eu}}):_.a5(_.vkL,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var QnC=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),FQ1={numberText:"",heightPx:2*QnC,shouldAnimate:!1},Zr=function(){var W=_.O.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$20322_browserSupportsAnimation=_.S("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=FQ1;W.dateTextProps=
FQ1;W.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");return W};
_.Z(Zr,_.O);_.r=Zr.prototype;_.r.resetAnimationState=function(){this.shouldAnimate=!1};
_.r.updateDynamicMetadata=function(){if(this.JSC$20322_browserSupportsAnimation){if(!this.detailed){var W,e,t,b;var m=(W=this.videoPrimaryInfoRenderer)==null?void 0:(e=W.viewCount)==null?void 0:(t=e.videoViewCountRenderer)==null?void 0:(b=t.extraShortViewCount)==null?void 0:b.simpleText;var q,Q,X,I;var u=(q=this.videoPrimaryInfoRenderer)==null?void 0:(Q=q.viewCount)==null?void 0:(X=Q.videoViewCountRenderer)==null?void 0:(I=X.shortViewCount)==null?void 0:I.simpleText}if(!u){var c,v,D,B;m=(c=this.videoPrimaryInfoRenderer)==
null?void 0:(v=c.viewCount)==null?void 0:(D=v.videoViewCountRenderer)==null?void 0:(B=D.unlabeledViewCountValue)==null?void 0:B.simpleText;var k,n,f,M;u=(k=this.videoPrimaryInfoRenderer)==null?void 0:(n=k.viewCount)==null?void 0:(f=n.videoViewCountRenderer)==null?void 0:(M=f.viewCount)==null?void 0:M.simpleText}var K,U,V;W=Number((K=this.videoPrimaryInfoRenderer)==null?void 0:(U=K.viewCount)==null?void 0:(V=U.videoViewCountRenderer)==null?void 0:V.originalViewCount);var L,E;K=(L=this.videoPrimaryInfoRenderer)==
null?void 0:(E=L.relativeDateText)==null?void 0:E.simpleText;var RR;L=!((RR=this.videoPrimaryInfoRenderer)==null||!RR.relativeDateText);if(m&&u&&W&&(K||!L)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;RR=u.split(new RegExp("("+m+")"));m=dHw(RR[0]);var uv;u={numberText:(uv=RR[1])!=null?uv:"",numberValue:W,heightPx:2*QnC,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var GS;uv=((GS=RR[2])!=null?GS:"")+"  ";this.setViewCount(u,m,dHw(uv));
if(!this.detailed&&L){m=K.split(/(\d+)/);GS=dHw(m[0]);var k9;uv={numberText:(k9=m[1])!=null?k9:"",heightPx:2*QnC,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var CQ;k9=((CQ=m[2])!=null?CQ:"")+"  ";this.setDateText(uv,GS,dHw(k9))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.r.setViewCount=function(W,e,t){_.Ub(e)!==_.Ub(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=e);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||FQ1);_.Ub(t)!==_.Ub(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=t)};
_.r.setDateText=function(W,e,t){_.Ub(e)!==_.Ub(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=e);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||FQ1);_.Ub(t)!==_.Ub(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=t)};
_.r.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.l(W,tnE).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.l(W,tnE).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.l(W,tnE).viewCount)))};
_.r.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.l(W,_.WsU).dateText;this.shouldAnimate=!0;var e;((e=this.videoPrimaryInfoRenderer)==null?0:e.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.Ec.Object.defineProperties(Zr.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return No$(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Ub(No$(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ub(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Ub(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Ub(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Ub(this.dateTextPostNumberText)].join("")}}});
Zr.prototype.updateDynamicMetadata=Zr.prototype.updateDynamicMetadata;Zr.prototype.resetAnimationState=Zr.prototype.resetAnimationState;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zr.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zr.prototype,"videoPrimaryInfoRenderer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"detailed",void 0);_.P([_.J(),_.Y("design:type",Object)],Zr.prototype,"shouldAnimate",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"viewCountPreNumberText",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"viewCountProps",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"viewCountPostNumberText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"dateTextPreNumberText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"dateTextProps",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"dateTextPostNumberText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zr.prototype,"metadataBadgesInDescription",void 0);_.P([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zr.prototype,"infoText",null);
_.P([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zr.prototype,"descriptionInfoTooltipText",null);_.P([_.T("detailed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zr.prototype,"showDescriptionInfoTooltip",null);
_.P([_.T("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zr.prototype,"animatedViewCountAccessibilityLabel",null);_.P([_.T("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zr.prototype,"animatedDateTextAccessibilityLabel",null);
_.P([_.ul("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zr.prototype,"resetAnimationState",null);_.P([_.ul("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zr.prototype,"updateDynamicMetadata",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Zr);
_.H(Zr,"ytd-watch-info-text",function(){if(Rvu!==void 0)return Rvu;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Rvu=W},{mode:1});var Xn$;var IL9=_.NN(function(W){var e=W.data;var t=W.setTapCommand;_.nh(function(){var b=_.Mk(e().onTap);t(b)},"X4onJd");
return _.w("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.w(_.nU,{data:function(){return e().avatar}},{avatarViewModel:_.pz}),_.w("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.w("span",null,function(){return e().simpleboxText})))},"hj");var aLU=_.NN(function(W){return _.w("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.w(_.G,{cond:function(){return _.l(W.data().avatar,_.LU)},
then:function(e){return _.w(_.pz,{data:e,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.w("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.w(_.WL,{text:function(){return W.data().teaserText}})))},"ij");var wnl=_.NN(function(W){var e=W.data;var t=W.setTapCommand;_.nh(function(){var b=_.Mk(e().onTap);t(b)},"PmAol");
return _.w("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.w(_.nU,{data:function(){return e().teasers}},{commentsEntryPointTeaserViewModel:aLU}))},"jj");var utl=_.NN(function(W){var e=W.data;var t=W.setTapCommand;_.nh(function(){var b=_.Mk(e().onTap);t(b)},"Nh3Hjd");
return _.w("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.w(_.WL,{text:function(){return e().messageText}}))},"kj");var c9Q=_.NN(function(W){var e=W.data;var t=W.setTapCommand;var b=W.isDisabled;_.nh(function(){var m=(b==null?0:b())?void 0:_.Mk(e().onTap);t(m)},"omeiWe");
return _.w("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.w(_.kD,{icon:function(){return e().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.w(_.G,{cond:function(){return e().image},
then:function(m){return _.w(_.A_,{data:m,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.w(_.WL,{text:function(){return e().text},
className:function(){return e().image||e().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.w(_.nU,{data:function(){return e().button}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:b==null?void 0:b()}}})}}))},"lj");var vYw=_.NN(function(W){var e=W.data;var t=W.itemIndex;var b=W.selectedIndex;var m=W.indexUpdatedCallback;var q=W.observer;W=W.title;var Q=_.zT("yt-carousel-item-view-model",function(v){_.S("web_metadata_carousel_elref_bugfix")&&q&&q().observe(v)}),X=function(v){t()===b()&&m(v)},I=_.MA(CbC),u=_.MA(npl),c=function(){var v,D,B;
return((v=e())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!I()||((D=e())==null?void 0:D.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&u().includes("PAposts_by_host")||((B=e())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&u().includes("PAyouchat")};
_.nt(function(){_.S("web_metadata_carousel_elref_bugfix")||q&&q().observe(Q.value)});
return _.w("yt-carousel-item-view-model",{el:Q,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.w(_.nU,{data:function(){var v,D;return(D=(v=_.l(e().carouselItem,Z0B))==null?void 0:v.textCarousel)!=null?D:e().carouselItem}},{textCarouselItemViewModel:function(v){return _.w(c9Q,{data:v.data,
setTapCommand:X,isDisabled:c})},
commentTeaserCarouselItemViewModel:function(v){return _.w(wnl,{data:v.data,setTapCommand:X})},
commentInputBoxCarouselItemViewModel:function(v){return _.w(IL9,{data:v.data,setTapCommand:X})},
commentsEntryPointMessageViewModel:function(v){return _.w(utl,{data:v.data,setTapCommand:X})}}))},"mj");var G$w=_.NN(function(W){var e=W.numDots;var t=W.activeIndex;return _.w("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.w(_.lV,{each:function(){return Array.from({length:e()})},
keyBy:"INDEX"},function(b,m){return _.w("div",{class:function(){var q={};return _.DT("ytCarouselDotsShapeDot",(q.ytCarouselDotsShapeDotActive=m===t(),q))}})}))},"nj");var D0E=_.NN(function(W){var e=W.data;var t=W.handleCarouselNavigation;var b=W.numItems;var m=W.selectedIndex;var q=function(){return{disabled:m()===0}},Q=function(){return{disabled:m()===b()-1}};
return _.w("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.w("div",null,_.w("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return e().title}),_.w(_.G,{cond:function(){return e().subtitle},
then:function(X){return _.w("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return e().subtitleAccessibilityText}},X)}})),_.w(_.G,{cond:function(){return b()>1},
then:function(){return _.w("div",{class:"ytCarouselTitleViewModelNavigation"},_.w(G$w,{numDots:b,activeIndex:m}),_.w(_.G,{cond:function(){return e().previousButton},
then:function(X){return _.w(_.nU,{data:X},{buttonViewModel:function(I){return _.w(_.MV,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return t(-1)},
buttonOverrides:q})}})}}),_.w(_.G,{cond:function(){return e().nextButton},
then:function(X){return _.w(_.nU,{data:X},{buttonViewModel:function(I){return _.w(_.MV,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return t(1)},
buttonOverrides:Q})}})}}))}}))},"oj");_.mM(_.NN(function(W){var e=W.data;var t,b=_.zT("yt-video-metadata-carousel-view-model"),m=_.zT("div",function(L){if(_.S("web_metadata_carousel_elref_bugfix")){var E=function(){var RR=L.offsetWidth*n(),uv=24*(n()-1);D(RR+uv)};
E();window.ResizeObserver&&(t=new ResizeObserver(E),t.observe(L))}}),q=_.Ot("HTML_DIR")==="rtl",Q=!1,X=0,I=0;
W=_.R(_.up(0,void 0,"f4aYxe"));var u=W.next().value,c=W.next().value;W=_.R(_.up(0,void 0,"kU9O9"));var v=W.next().value,D=W.next().value;W=_.R(_.up(!1,void 0,"GqphDd"));var B=W.next().value,k=W.next().value,n=function(){var L,E,RR;return(RR=(L=e())==null?void 0:(E=L.carouselTitles)==null?void 0:E.length)!=null?RR:0},f=function(){m.value&&m.value.scrollLeft!==X&&c((q?m.value.scrollLeft<X:m.value.scrollLeft>X)?Math.min(u()+1,n()-1):Math.max(u()-1,0))},M;
window.IntersectionObserver&&(M=new IntersectionObserver(function(L){L=_.R(L);for(var E=L.next();!E.done;E=L.next())if(E.value.isIntersecting){if(Q){Q=!1;break}f()}else c(I)},{threshold:.2}));
_.nh(function(){if(m.value){var L=(q?-1:1)*(v()/n()+12)*(B()&&M?I:u());typeof m.value.scrollTo==="function"?m.value.scrollTo({left:L,behavior:"smooth"}):m.value.scrollLeft=L;X=L;I=B()&&M?I:u()}},"ZP1VMb");
var K,U=function(L){K=L};
_.nt(function(){if(!_.S("web_metadata_carousel_elref_bugfix")){var L=function(){var RR=m.value.offsetWidth*n(),uv=24*(n()-1);D(RR+uv)};
L();if(window.ResizeObserver){var E=new ResizeObserver(L);E.observe(m.value);_.fh(function(){E.disconnect();M&&M.disconnect()})}}});
_.fh(function(){if(_.S("web_metadata_carousel_elref_bugfix")){var L;(L=t)==null||L.disconnect();var E;(E=M)==null||E.disconnect()}});
var V=function(L){L=u()+L;L>=0&&L<n()&&(Q=!0,c(L))};
return _.w("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:b,"on:click":_.Be(function(L){if(_.iJ(_.Vv(L),b.value,["BUTTON".toString()])||!K)return!1;_.ee().resolve(_.tQ).resolveCommand(K,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Be(function(){k(!0);return!1}),
"on:touchend":_.Be(function(){M||f();k(!1);return!1}),
hidden:function(){var L,E;return!((L=e())==null?0:(E=L.carouselItems)==null?0:E.length)}},_.w("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.w(_.G,{cond:function(){return e().carouselTitles},
then:function(L){return _.w(_.nU,{data:function(){return L()[B()&&M?I:u()]}},{carouselTitleViewModel:function(E){return _.w(D0E,{data:E.data,
handleCarouselNavigation:V,numItems:n,selectedIndex:u})}})}})),_.w("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:m},_.w("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+v()+"px;"}},_.w(_.G,{cond:function(){return e().carouselItems},
then:function(L){return _.w(_.lV,{each:L},function(E,RR){return _.w(_.nU,{data:function(){return E}},{carouselItemViewModel:function(uv){return _.w(vYw,{data:uv.data,
itemIndex:RR,selectedIndex:u,indexUpdatedCallback:U,observer:M,title:function(){a:{var GS=RR();var k9,CQ=(k9=e())==null?void 0:k9.carouselTitles;if(CQ&&(GS=CQ[GS])){var fQ;GS=(fQ=_.l(GS,l99))==null?void 0:fQ.title;break a}GS=void 0}return GS}})}})})}}))))},"pj"),"yt-video-metadata-carousel-view-model",{props:{data:_.Eu}});var Sgl=_.S("web_action_buttons_update_owner_width")?32:12,$z=function(){var W=_.O.apply(this,arguments)||this;W.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.S("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.S("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=_.S("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=
0;W.videoId="";W.titleHeadlineXs=_.S("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.S("web_watch_typography_title_headline_s");W.titleHeadlineM=_.S("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.S("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.S("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.S("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};W.isFullscreen=!1;W.isTheaterMode=!1;return W};
_.Z($z,_.O);_.r=$z.prototype;_.r.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.r.updateOwnerAndDescriptionPosition=function(){_.S("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.xU(this.bottomRowElement,this.ownerElement)):(_.xU(this.bottomRowElement,this.descriptionElement),_.xU(this.topRowElement,this.ownerElement)))};
_.r.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||this.handleExpandDescriptionCommands()}};
_.r.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.r.detached=function(){var W=this,e;return _.F(function(t){(e=W.resizeObserver)==null||e.disconnect();_.u8(t)})};
_.r.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.eS(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.r.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,e=Math.max(this.largerItemWrap?400:350,W/2-Sgl);if(_.S("web_action_buttons_update_owner_width")){var t;e=(((t=document.getElementById("owner"))==null?void 0:t.clientWidth)||0)+Sgl}this.actionsOnSeparateLine=this.primaryMenuWidth>W-e?!0:!1}};
_.r.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.r.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("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:_.S("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"}}}};
_.r.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.r.videoSecondaryInfoRendererChanged=function(){var W,e;(e=(W=this.descriptionInlineExpander).collapse)==null||e.call(W);this.descriptionExpandClientVe=_.na(110509);this.descriptionCollapseClientVe=_.na(110510);W=_.fc();e=_.nc();W&&e&&(_.S("combine_ve_grafts")?(_.XW(_.Sg(),this.descriptionExpandClientVe,e),_.XW(_.Sg(),this.descriptionCollapseClientVe,e)):_.P6(W,e,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.r.structuredDescriptionContentRendererChanged=function(){_.S("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.r.updateTopLevelIconsOnly=function(){var W=this;_.S("top_level_update_killswitch")||this.menu&&_.Tm.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.mn("swathceroo_delay_flexible_menu_update",100))};
_.r.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.S("web_action_buttons_minimize_subscribe")};
_.r.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.r.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.r.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.r.onYtTextInlineExpanderExpandedChanged=function(){if(!_.S("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,e;(e=(W=this.structuredDescriptionContentRendererElement).resize)==null||e.call(W)}};
_.r.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.r.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.r.onYtExpanderLessTapped=function(){var W,e=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;e&&this.ytComponentBehavior.resolveCommand(e)};
_.r.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.r.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.r.onDescriptionClick=function(W){if(!_.NA(_.LB(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var e;((e=window.getSelection())==null?0:e.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.S("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.r.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.r.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.r.logCollapseClick=function(){var W=_.fc();W&&this.descriptionCollapseClientVe&&_.zv(W,this.descriptionCollapseClientVe)};
_.r.logExpandClick=function(){var W=_.fc();W&&this.descriptionExpandClientVe&&_.zv(W,this.descriptionExpandClientVe)};
_.r.collapseDescription=function(){this.descriptionCollapsed=!0};
_.r.scrollToTopOfContainer=function(){_.RT(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.r.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.r.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.r.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.r.resize=function(){if(this.descriptionInlineExpander){var W,e;(e=(W=this.descriptionInlineExpander).resize)==null||e.call(W)}else _.JC(new _.o_("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var t;(t=this.menu)==null||t.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.S("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.r.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,e,t,b,m=_.S("web_action_buttons_update_owner_width")?(t=(W=_.rz(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?t:0:(b=(e=_.rz(this.menu).querySelector("#button"))==null?void 0:e.clientWidth)!=null?b:0,q,Q;W=((Q=(q=_.rz(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:q.clientWidth)!=null?Q:0)+8+m;var X,I;m=(I=(X=_.rz(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:X.children.length)!=null?I:2;W<=8*m||(this.primaryMenuWidth=W)}};
_.r.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.l(W,e3E).title)};
_.r.onYtUpdateDescriptionAction=function(W){if(W=_.l(W,_.Tvh)){var e,t=!((e=this.videoSecondaryInfoRenderer)==null||!e.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(t?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Tf(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.r.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.r.registerPanel=function(){if(!_.S("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.S("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.S("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;var e=_.ee().resolve(_.oL);e&&!W&&e.registerPanel("engagement-panel-structured-description",this)}};
_.r.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.r.showPanel=function(W){this.expandDescription();var e=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;e.resize();var t,b=W==null?void 0:(t=W.sectionListEngagementPanelExtras)==null?void 0:t.scrollToItemSectionIdentifier;b?_.Tm.addJob(function(){e==null||e.scrollToSection(b)},8):this.scrollToTopOfContainer()};
_.r.isVisible=function(){return!this.descriptionCollapsed};
_.r.getReloadContinuation=function(){};
_.r.hidePanel=function(){};
_.r.updatePanel=function(){};
_.Ec.Object.defineProperties($z.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRenderer)!=null&&W.items){var e;W=_.R((e=this.structuredDescriptionContentRenderer)==null?void 0:e.items);for(e=W.next();!e.done;e=W.next())if(e=_.l(e.value,_.gZB))return e}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(e=W.owner)==null?0:(t=e.videoOwnerRenderer)==null?0:t.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.S("swatchie_sd_new_line_strip_ks")){var W,e;if((W=this.videoSecondaryInfoRenderer)==null?0:(e=W.attributedDescription)==null?0:e.content){var t,b;return(b=this.stripAttributedDescription((t=this.videoSecondaryInfoRenderer)==null?void 0:t.attributedDescription))!=null?b:{runs:[]}}}var m,q,Q,X;return(X=(Q=(m=this.videoSecondaryInfoRenderer)==null?void 0:m.description)!=null?Q:(q=this.videoSecondaryInfoRenderer)==null?
void 0:q.attributedDescription)!=null?X:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?e:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.mn("swatchie_desc_lines",3):this.hasTeaserCarousel?_.mn("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,e,t=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(e=W.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(t&&t.rows&&t.collapsedItemCount!==void 0&&!(t.rows.length<=t.collapsedItemCount))return t.rows=t.rows.slice(t.collapsedItemCount),t.collapsedItemCount=0,t}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,e,t=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(e=W.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer);if(t&&t.rows&&t.collapsedItemCount!==void 0)return t.rows=t.rows.slice(0,t.collapsedItemCount),t.collapsedItemCount=t.rows.length,t}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!((W=this.structuredDescriptionContentRenderer)==null?0:(e=W.items)==null?0:e.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.videoSecondaryInfoRenderer)==null?0:(e=W.owner)==null?0:(t=e.videoOwnerRenderer)==null?0:t.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(e=W.videoActions)==null?0:(t=e.menuRenderer)==null?0:(b=t.flexibleItems)==null?0:b.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.UD(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.UD(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.S("web_title_hashtag_grey_delinkified")){var e,t=_.kJ.unsafeClone((e=this.videoPrimaryInfoRenderer)==null?void 0:e.title);(e=t==null?void 0:t.runs)&&e.forEach(function(b){if(b==null?0:b.navigationEndpoint)b.textColor=4284506208,W.isDark&&(b.textColor=4289374890)});
return t}return(t=this.videoPrimaryInfoRenderer)==null?void 0:t.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.S("web_title_hashtag_black_delinkified")||_.S("web_title_hashtag_grey_delinkified")}}});
$z.prototype.resetDescriptionState=$z.prototype.resetDescriptionState;$z.prototype.registerPanel=$z.prototype.registerPanel;$z.prototype.onYtExpanderLessTapped=$z.prototype.onYtExpanderLessTapped;$z.prototype.onYtExpanderMoreTapped=$z.prototype.onYtExpanderMoreTapped;$z.prototype.onRenderStamperFinished=$z.prototype.onRenderStamperFinished;$z.prototype.onYtTextInlineExpanderExpandedChanged=$z.prototype.onYtTextInlineExpanderExpandedChanged;$z.prototype.onYtTextInlineExpanderCollapseClicked=$z.prototype.onYtTextInlineExpanderCollapseClicked;
$z.prototype.onYtTextInlineExpanderExpandClicked=$z.prototype.onYtTextInlineExpanderExpandClicked;$z.prototype.moveActionsElement=$z.prototype.moveActionsElement;$z.prototype.updateShouldForceIconOnly=$z.prototype.updateShouldForceIconOnly;$z.prototype.updateTopLevelIconsOnly=$z.prototype.updateTopLevelIconsOnly;$z.prototype.structuredDescriptionContentRendererChanged=$z.prototype.structuredDescriptionContentRendererChanged;$z.prototype.videoSecondaryInfoRendererChanged=$z.prototype.videoSecondaryInfoRendererChanged;
$z.prototype.videoPrimaryInfoRendererChanged=$z.prototype.videoPrimaryInfoRendererChanged;$z.prototype.maybeUpdateActionsOnSeparateLine=$z.prototype.maybeUpdateActionsOnSeparateLine;$z.prototype.updateOwnerAndDescriptionPosition=$z.prototype.updateOwnerAndDescriptionPosition;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],$z.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$z.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],$z.prototype,"ytdReduxBehavior",void 0);_.P([_.vG("#above-the-fold"),_.Y("design:type",HTMLElement)],$z.prototype,"aboveTheFoldContainer",void 0);_.P([_.vG("#menu ytd-menu-renderer"),_.Y("design:type",Object)],$z.prototype,"menu",void 0);
_.P([_.vG("#description-inline-expander"),_.Y("design:type",Object)],$z.prototype,"descriptionInlineExpander",void 0);_.P([_.vG("#faded-structured-description"),_.Y("design:type",Object)],$z.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.P([_.vG("#structured-description"),_.Y("design:type",Object)],$z.prototype,"structuredDescriptionContentRendererElement",void 0);_.P([_.vG("#title"),_.Y("design:type",HTMLElement)],$z.prototype,"titleElement",void 0);
_.P([_.vG("#description"),_.Y("design:type",HTMLElement)],$z.prototype,"descriptionElement",void 0);_.P([_.vG("#description-interaction"),_.Y("design:type",Object)],$z.prototype,"descriptionInteraction",void 0);_.P([_.vG("#owner"),_.Y("design:type",HTMLElement)],$z.prototype,"ownerElement",void 0);_.P([_.vG("#top-row"),_.Y("design:type",HTMLElement)],$z.prototype,"topRowElement",void 0);_.P([_.vG("#bottom-row"),_.Y("design:type",HTMLElement)],$z.prototype,"bottomRowElement",void 0);
_.P([_.vG("#actions"),_.Y("design:type",HTMLElement)],$z.prototype,"actionsElement",void 0);_.P([_.vG("#bottom-actions"),_.Y("design:type",HTMLElement)],$z.prototype,"bottomActionsElement",void 0);_.P([_.vG("#ytd-watch-info-text"),_.Y("design:type",Object)],$z.prototype,"watchInfoTextElement",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"videoPrimaryInfoRenderer",void 0);
_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"videoSecondaryInfoRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"commentsEntryPointHeaderRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"videoMetadataCarousel",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"structuredDescriptionContentRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"videoSummary",void 0);
_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"merchShelf",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"infoPanelBelowMetadata",void 0);_.P([_.T("structuredDescriptionContentRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"productShelf",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"metadataBadgesInDescription",void 0);
_.P([_.T("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"shouldHideBadges",null);_.P([_.T("productShelf","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"shouldShowProductShelf",null);_.P([_.J(),_.Y("design:type",Boolean)],$z.prototype,"isWatchFlexy",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"descriptionCollapsed",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$z.prototype,"useFadedScrimDescription",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"skinnyMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"largerItemWrap",null);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"playlist",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"clarifyBox",void 0);
_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"playerAds",void 0);_.P([_.J(),_.Y("design:type",Boolean)],$z.prototype,"isDark",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$z.prototype,"actionsOnSeparateLine",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"disableVideoOwnerOnTap",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"swatcherooDelayLoad",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],$z.prototype,"suppressTopLevelMetadataRows",void 0);_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"primaryMenuWidth",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"videoId",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"titleHeadlineXs",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"titleHeadlineS",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"titleHeadlineM",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"titleHashtagBlackLinkified",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"titleHashtagGreyLinkified",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.P([_.J(),_.Y("design:type",Object)],$z.prototype,"shouldForceIconOnly",void 0);_.P([_.BG("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"updateOwnerAndDescriptionPosition",null);_.P([_.BG("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.P([_.T("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"descriptionText",null);_.P([_.T("videoSecondaryInfoRenderer.headerRuns"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],$z.prototype,"headerRuns",null);_.P([_.J({value:!1}),_.T("commentsEntryPointHeaderRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"hasTeaser",null);
_.P([_.J({value:!1,reflectToAttribute:!0}),_.T("videoMetadataCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"hasTeaserCarousel",null);_.P([_.J({value:3}),_.T("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"descriptionMaxLines",null);_.P([_.T("videoSecondaryInfoRenderer.metadataRowContainer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"collapsibleMetadataRows",null);
_.P([_.T("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"alwaysVisibleMetadataRows",null);_.P([_.T("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"hasInlineStructuredDescription",null);
_.P([_.T("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"showInlineStructuredDescription",null);_.P([_.T("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"descriptionExpandCommand",null);
_.P([_.T("videoSecondaryInfoRenderer.owner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"videoOwnerCommand",null);_.P([_.J({reflectToAttribute:!0}),_.T("videoPrimaryInfoRenderer.videoActions"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"flexMenuEnabled",null);_.P([_.J({selector:_.HS,reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"isFullscreen",void 0);
_.P([_.J({selector:_.hv,reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"isTheaterMode",void 0);_.P([_.T("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"showAttributedStringDescription",null);_.P([_.T("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"showFormattedStringDescription",null);
_.P([_.T("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$z.prototype,"showFadedStructuredDescription",null);_.P([_.BG("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"videoPrimaryInfoRendererChanged",null);_.P([_.T("videoPrimaryInfoRenderer.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"videoTitle",null);
_.P([_.T("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$z.prototype,"noEndpoints",null);_.P([_.BG("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"videoSecondaryInfoRendererChanged",null);
_.P([_.ul("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"structuredDescriptionContentRendererChanged",null);_.P([_.ul("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"updateTopLevelIconsOnly",null);
_.P([_.ul("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"updateShouldForceIconOnly",null);_.P([_.ul("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"moveActionsElement",null);_.P([_.wz("yt-text-inline-expander-expand-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.P([_.wz("yt-text-inline-expander-collapse-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.P([_.wz("yt-text-inline-expander-expanded-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],$z.prototype,"onRenderStamperFinished",null);_.P([_.wz("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"onYtExpanderMoreTapped",null);_.P([_.wz("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"onYtExpanderLessTapped",null);
_.P([_.ul("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"registerPanel",null);_.P([_.ul("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$z.prototype,"resetDescriptionState",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-watch-metadata"})],$z);
_.H($z,"ytd-watch-metadata",function(){if(Xn$!==void 0)return Xn$;var W=document.createElement("template");_.p(W,'\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">\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">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" 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="[[structuredDescriptionContentRenderer]]" 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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Xn$=W},{mode:2});_.y9C=function(W){_.ka.call(this);this.JSC$20344_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;BpC(this);oYQ(this);lLC(this);ZIu(this);$01(this);k$1(this);png(this)};
_.Z(_.y9C,_.ka);var lLC=function(W){var e=function(){_.S("kevlar_is_pupi_enabled")||kz(W)};
W.JSC$20344_watchApi.getRoot().addEventListener("yt-player-updated",e);W.addOnDisposeCallback(function(){W.JSC$20344_watchApi.getRoot().removeEventListener("yt-player-updated",e)})},$01=function(W){if(_.S("kevlar_endscreen_auto_theater_mode")){var e=W.JSC$20344_watchApi.subscribeToActiveChanged(function(){jnE(W)},!1);
W.addOnDisposeCallback(e)}},BpC=function(W){var e,t,b,m,q;
_.F(function(Q){if(Q.nextAddress==1)return _.a(Q,W.JSC$20344_watchApi.playerApi,2);e=Q.yieldResult;t=function(X){X=!!X;p6(W)&&(X=X?2:1,_.dv.getInstance().setState(X,!0,!1))};
b=function(X){X&&_.jdg(_.Eb().getState())&&(_.RT(W.JSC$20344_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
m=function(X){_.S("kevlar_player_update_autonav_on_new_data")&&X.type==="newdata"&&(_.S("kevlar_is_pupi_enabled")||kz(W))};
q=function(X){W.onPlayerStateChange(X)};
_.S("kevlar_endscreen_auto_theater_mode")&&e.addEventListener("onAutonavCancelled",b);e.addEventListener("onAutonavChangeRequest",t);e.addEventListener("onVideoDataChange",m);e.addEventListener("onStateChange",q);W.addOnDisposeCallback(function(){e.removeEventListener("onAutonavChangeRequest",t);e.removeEventListener("onVideoDataChange",m);e.removeEventListener("onStateChange",q);_.S("kevlar_endscreen_auto_theater_mode")&&e.removeEventListener("onAutonavCancelled",b)});
_.u8(Q)})},oYQ=function(W){W.JSC$20344_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.S("kevlar_is_pupi_enabled")||kz(W)});
W.JSC$20344_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(e,t,b){t&&kz(W,b)});
W.JSC$20344_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){p6(W)&&_.dv.getInstance().setState(2,!0,!0)});
W.JSC$20344_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){p6(W)&&_.dv.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){W.JSC$20344_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");W.JSC$20344_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");W.JSC$20344_watchApi.unregisterActionHandler("yt-enable-autoplay-command");W.JSC$20344_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ZIu=function(W){var e=W.JSC$20344_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){png(W)}),t=W.JSC$20344_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){k$1(W)});
W.addOnDisposeCallback(function(){W.JSC$20344_watchApi.unsubscribeByKey(e);W.JSC$20344_watchApi.unsubscribeByKey(t)})},png=function(W){W.autonavCancelledBySignal=!1;
_.S("kevlar_is_pupi_enabled")||kz(W)},k$1=function(W){var e=W.JSC$20344_watchApi.getWatchNextResponse(),t,b;
var m=(e=(b=_.l(e==null?void 0:(m=e.playerOverlays)==null?void 0:(t=m.playerOverlayRenderer)==null?void 0:t.autonavToggle,_.xdb))==null?void 0:b.enabled)?2:1;_.S("kevlar_is_pupi_enabled")?_.dv.getInstance().setState(m,!1,!1):kz(W);_.S("web_persist_server_autonav_state_on_client")&&typeof e==="boolean"&&_.l6R(m===2)},p6=function(W){if(W.autonavCancelledBySignal)return!1;
var e,t,b,m;return!!((e=W.JSC$20344_watchApi.getWatchNextResponse())==null?0:(t=e.contents)==null?0:(b=t.twoColumnWatchNextResults)==null?0:(m=b.autoplay)==null?0:m.autoplay)};
_.y9C.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.dv.getInstance().isAutoplaySetExplicitly();var e=this.JSC$20344_watchApi.getWatchNextResponse(),t,b,m,q;e=_.l(e==null?void 0:(t=e.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(m=b.autoplay)==null?void 0:(q=m.autoplay)==null?void 0:q.autoplayExplicitChoiceDialogRenderer,_.rBB);p6(this)&&W&&e&&_.uL.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:e},popupType:"DIALOG"}})}else jnE(this)};
var jnE=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.RT(W.JSC$20344_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},kz=function(W,e){e=e===void 0?!1:e;
var t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20344_watchApi.playerApi,2);t=b.yieldResult;p6(W)?t.setAutonavState(_.dv.getInstance().getState(),e):t.setAutonavState(1,e);_.u8(b)})};var CxQ={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"};_.fLQ=function(W){_.ka.call(this);var e=this;this.JSC$20349_watchApi=W;var t=this.JSC$20349_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nY$(e)});
this.addOnDisposeCallback(function(){e.JSC$20349_watchApi.unsubscribeByKey(t)});
nY$(this)};
_.Z(_.fLQ,_.ka);var nY$=function(W){var e=W.JSC$20349_watchApi.getPlayerResponse(),t=W.JSC$20349_watchApi.getWatchNextResponse();if(!_.qnz(e==null?void 0:e.playabilityStatus,t==null?void 0:t.playerOverlays)){var b;var m=e==null?void 0:(b=e.playabilityStatus)==null?void 0:b.errorScreen}W.JSC$20349_watchApi.provideRenderingData("ERROR_SCREEN",m)};var gYu=_.NN(function(W){var e=W.data;var t=_.MA(_.HS);W={};return _.w("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.Be(function(){var b=e().onTap;b&&_.ee().resolve(_.tQ).resolveCommand(b)}),
role:"button"},_.w("h2",{class:_.ve("ytPlayerOverlayVideoDetailsRendererTitle",(W.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!t()},W))},_.w(_.WL,{text:function(){return e().title}})),_.w("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.w(_.WL,{text:function(){return e().subtitle}})))},"qj");var yi={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Tp1=_.NN(function(W){var e=W.data;var t=_.MA(_.HS);W={};return _.w("yt-player-quick-action-buttons",{class:_.ve("ytPlayerQuickActionButtonsHost",(W.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!t()},W))},_.w(_.lV,{each:function(){var b=e(),m=t();
b=JSON.parse(JSON.stringify(b));for(var q=_.S("web_watch_action_bar_resize_buttons"),Q=_.S("delhi_modern_web_player_icons")&&!_.S("enable_web_delhi_icons"),X=_.R(b),I=X.next();!I.done;I=X.next()){var u=I.value,c=void 0;I=_.l((c=_.l(u,_.Tz))==null?void 0:c.toggleButtonViewModel,_.pU);var v=void 0;c=_.l((v=_.l(u,_.Jv))==null?void 0:v.toggleButtonViewModel,_.pU);u=_.l(u,_.kb);I?(c=_.l(I.defaultButtonViewModel,_.kb),I=_.l(I.toggledButtonViewModel,_.kb),c&&(Q&&c.iconName&&(c.iconName=yi[c.iconName]),!m&&
q&&(c.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),I&&(Q&&I.iconName&&(I.iconName=yi[I.iconName]),!m&&q&&(I.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):c?(I=_.l(c.defaultButtonViewModel,_.kb),c=_.l(c.toggledButtonViewModel,_.kb),I&&(Q&&I.iconName&&(I.iconName=yi[I.iconName]),!m&&q&&(I.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),c&&(Q&&c.iconName&&(c.iconName=yi[c.iconName]),!m&&q&&(c.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):u&&(Q&&u.iconName&&(u.iconName=yi[u.iconName]),!m&&q&&(u.buttonSize=
"BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return b}},function(b){return _.w(_.nU,{data:function(){return b}},{buttonViewModel:_.MV,
likeButtonViewModel:function(m){return _.w(_.jt,{data:m.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.yA})}))},"rj");_.x0$=function(W){_.ka.call(this);var e=this;this.JSC$20353_watchApi=W;W=_.R(_.up({},void 0,"ufFdVc"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.R(_.up({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var t=this.JSC$20353_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){J91(e)});
this.addOnDisposeCallback(function(){e.JSC$20353_watchApi.unsubscribeByKey(t)});
J91(this)};
_.Z(_.x0$,_.ka);
var J91=function(W){var e,t,b,m,q,Q,X,I,u,c,v,D,B,k;_.F(function(n){if(n.nextAddress==1)return _.a(n,W.JSC$20353_watchApi.playerApi,2);e=n.yieldResult;t=W.JSC$20353_watchApi.getWatchNextResponse();q=(b=t)==null?void 0:(m=b.playerOverlays)==null?void 0:m.playerOverlayRenderer;X=_.l((Q=q)==null?void 0:Q.fullscreenQuickActionsBar,_.hIh);(u=(I=W).setQuickActionsViewModel)==null||u.call(I,X||{});X&&OIw(W,e);D=(c=q)==null?void 0:(v=c.videoDetails)==null?void 0:v.playerOverlayVideoDetailsRenderer;(k=(B=
W).setPlayerOverlayVideoDetailsRenderer)==null||k.call(B,D||{});D&&MWB(W,e);_.u8(n)})},OIw=function(W,e){if(!W.quickActionButtonsContainer){W.quickActionButtonsContainer=document.createElement("div");
e.setFullscreenQuickActions(W.quickActionButtonsContainer);var t=function(){return W.quickActionsViewModel().quickActionButtons||[]},b=_.yZ(W.quickActionButtonsContainer,function(){return _.w(Tp1,{data:t})});
W.addOnDisposeCallback(function(){e.setFullscreenQuickActions(void 0);b()})}},MWB=function(W,e){if(!W.playerOverlayVideoDetailsRendererContainer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
e.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var t=_.yZ(W.playerOverlayVideoDetailsRendererContainer,function(){return _.w(gYu,{data:W.playerOverlayVideoDetailsRenderer})});
W.addOnDisposeCallback(function(){e.setPlayerOverlayVideoDetailsRenderer(void 0);t()})}};_.jb=function(W){_.ka.call(this);var e=this;this.JSC$20358_watchApi=W;this.JSC$20358_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.S8(_.Eb(),_.HS,function(t){e.onFullscreenChanged(t)});
this.addOnDisposeCallback(W);W=_.S8(_.Eb(),_.yq,function(t){e.onWatchScroll(t)});
this.addOnDisposeCallback(W);_.S("kevlar_watch_while_v2")&&(W=_.S8(_.Eb(),_.gO,function(t){sn$(e,t)}),this.addOnDisposeCallback(W));
hvE(this);HIU(this);KQl();this.onWatchScroll(_.yq(_.Eb().getState()));_.MD("START_IN_FULL_WINDOW_MODE")&&this.JSC$20358_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.Z(_.jb,_.ka);var hvE=function(W){W.JSC$20358_watchApi.registerActionHandler("yt-fullscreen-change-action",function(e){var t=W.JSC$20358_watchApi.isActive();e&&!t||_.Eb().dispatch(_.rO({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!e}}))});
W.addOnDisposeCallback(function(){W.JSC$20358_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},HIU=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20358_watchApi.playerApi,2);e=b.yieldResult;t=function(){W.onFullerscreenEduClicked()};
e.addEventListener("onFullerscreenEduClicked",t);W.addOnDisposeCallback(function(){e.removeEventListener("onFullerscreenEduClicked",t)});
_.u8(b)})};
_.jb.prototype.onFullscreenChanged=function(W){var e=this,t;return _.F(function(b){if(b.nextAddress==1)return e.isFullscreen=!!_.ty(),_.a(b,e.JSC$20358_watchApi.playerApi,2);t=b.yieldResult;e.JSC$20358_miniplayerActive||t.setFauxFullscreen(e.isFullscreen);if(W&&(e.JSC$20358_watchApi.focusOnPlayer(),!e.fullerscreenEduButtonShownThisPlayback)){e.fullerscreenEduButtonShownThisPlayback=!0;var m=_.Ie("yt-fullerscreen-edu-button-shown-count")||0;_.X_("yt-fullerscreen-edu-button-shown-count",m+1,31536E3);
e.updateFullerscreenEduButtonSubtleModeState()}_.u8(b)})};
var sn$=function(W,e){var t;_.F(function(b){if(b.nextAddress==1)return W.JSC$20358_miniplayerActive=e,_.a(b,W.JSC$20358_watchApi.playerApi,2);t=b.yieldResult;t.setFauxFullscreen(!W.JSC$20358_miniplayerActive&&W.isFullscreen);_.u8(b)})};
_.jb.prototype.onWatchScroll=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return _.S("external_fullscreen_with_edu")?_.a(m,e.JSC$20358_watchApi.playerApi,2):m.return();t=m.yieldResult;b=W<=0;e.shouldShowFullerscreenEdu!==b&&(e.shouldShowFullerscreenEdu=b,t.updateFullerscreenEduButtonVisibility(!e.shouldShowFullerscreenEdu));_.u8(m)})};
_.jb.prototype.onFullerscreenEduClicked=function(){this.JSC$20358_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.Ie("yt-fullerscreen-edu-button-click-count")||0;_.X_("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.jb.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,e,t,b,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return e=_.Ie("yt-fullerscreen-edu-button-click-count")||0,t=_.Ie("yt-fullerscreen-edu-button-shown-count")||0,b=_.mn("external_fullscreen_button_click_threshold"),m=_.mn("external_fullscreen_button_shown_threshold"),q=e>=b||t>=m,_.a(X,W.JSC$20358_watchApi.playerApi,2);Q=X.yieldResult;Q.updateFullerscreenEduButtonSubtleModeState(q);_.u8(X)})};
_.jb.prototype.disposeInternal=function(){_.ka.prototype.disposeInternal.call(this);var W=_.ty();_.S("kevlar_exit_fullscreen_leaving_watch")&&W&&_.bc(W)};
var KQl=function(){if(_.S("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),e=document.head;e&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",e.appendChild(W))}};_.C6=function(W){_.ka.call(this);var e=this;this.JSC$20362_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var t=this.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PxU(e)});
this.addOnDisposeCallback(function(){e.JSC$20362_watchApi.unsubscribeByKey(t)});
PxU(this)};
_.Z(_.C6,_.ka);var VWg=function(W){_.Tm.cancelJob(W.jobId);W.pendingRequestId=void 0},PxU=function(W){VWg(W);
var e=WS$(W.JSC$20362_watchApi.getWatchNextResponse());if(e){var t=250,b,m=(b=_.l(e,_.KWP))==null?void 0:b.initialDelayMs;_.S("web_watch_updated_metadata_server_initial_delay")&&m&&(t=m);W.jobId=_.Tm.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(e)},t)}};
_.C6.prototype.fetchUpdatedMetadata=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M;return _.F(function(K){switch(K.nextAddress){case 1:e&&(b={continuation:e});if(!_.S("web_get_updated_metadata_fantasy_panel_continuation_params")){K.jumpTo(2);break}m=_.ee().resolve(_.oL);q="PAsports_fantasy";return _.a(K,m.isVisible(q,!0),3);case 3:K.yieldResult&&(u=(X=(Q=m).getUpdatePanelContinuationData)==null?void 0:(I=X.call(Q,q))==null?void 0:I.updatePanelContinuationRequest)&&(b||(b={}),b.clientParams=
{panelContinuationParams:{panelContinuation:u}});case 2:c=_.ee().resolve(_.J8);if(!c)return _.gQ(Error("km")),K.return();v={};t.pendingRequestId=v;return _.a(K,_.z2(c,W,b),4);case 4:D=K.yieldResult;if(v!==t.pendingRequestId)return K.return();n=(B=D)==null?void 0:(k=B.continuation)==null?void 0:k.timedContinuationData;((f=n)==null?0:f.continuation)&&((M=n)==null?0:M.timeoutMs)&&(t.jobId=_.Tm.addLowPriorityJob(function(){return t.fetchUpdatedMetadata(W,n.continuation)},n.timeoutMs));
_.u8(K)}})};
_.C6.prototype.disposeInternal=function(){_.ka.prototype.disposeInternal.call(this);VWg(this)};var iIC=_.NN(function(W){var e=_.Be(function(){var b=W.data().videoId;if(W.active())b=_.ew(b),_.ee().resolve(_.tQ).resolveCommand(b);else{var m=W.playerApi(),q=m.getAvailableAudioTracks(),Q,X,I=(Q=W.sourceVideoConfig().audioTracks)==null?void 0:(X=Q.find(function(u){return u.isDefaultForSource}))==null?void 0:X.id;
if(q=q.find(function(u){return u.getLanguageInfo().getId()===I}))m.setAudioTrack(q,!0),m.setCompositeParam({activeVideoId:b}),W.setActiveSourceId(b)}}),t={};
return _.w("ytw-composite-source-video-overlay",{class:_.ve("ytwCompositeSourceVideoOverlayHost",(t.ytwCompositeSourceVideoOverlayActive=W.active,t.ytwCompositeSourceVideoOverlayInteracting=W.interacting,t)),style:_.$D({left:function(){var b;return((b=W.data().topLeftCornerX)!=null?b:0)*100+"%"},
top:function(){var b;return((b=W.data().topLeftCornerY)!=null?b:0)*100+"%"},
width:function(){var b;return((b=W.data().width)!=null?b:0)*100+"%"},
height:function(){var b;return((b=W.data().height)!=null?b:0)*100+"%"}}),
"on:click":e},_.w("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"sj");var Ygw=_.NN(function(W){var e=_.R(_.ZT(function(){var Q,X=(Q=W.data().sources)==null?void 0:Q.find(function(I){return I.isActive});
if(X)return X.videoId})),t=e.next().value,b=e.next().value;
e=_.R(_.up(!1,void 0,"WI4BUb"));var m=e.next().value,q=e.next().value;return _.w("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Be(function(){q(!0)}),
"on:mouseout":_.Be(function(){q(!1)})},_.w(_.G,{cond:function(){return W.data().sources},
then:function(Q){return _.w(_.lV,{each:Q},function(X){return _.w(iIC,{data:X,active:function(){return X.videoId===t()},
setActiveSourceId:b,interacting:m,playerApi:W.playerApi,sourceVideoConfig:function(){return eVT(W.compositeVideoConfig(),X.videoId)}})})}}))},"tj");_.LQl=function(W){_.ka.call(this);this.JSC$20378_watchApi=W;W=_.R(_.up({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.R(_.up({},void 0,"U5hcq"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;zvl(this);U0u(this)};
_.Z(_.LQl,_.ka);var zvl=function(W){var e=W.JSC$20378_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){U0u(W)});
W.addOnDisposeCallback(function(){W.JSC$20378_watchApi.unsubscribeByKey(e)})},EYM=function(W){var e;
return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20378_watchApi.playerApi,2);e=t.yieldResult;e.setCompositeVideoOverlayRendererComponent(W.container);_.u8(t)})},A9U=function(W){var e;
return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20378_watchApi.playerApi,2);e=t.yieldResult;e.setCompositeVideoOverlayRendererComponent(void 0);_.u8(t)})},Npw=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20378_watchApi.playerApi,2);e=b.yieldResult;W.container=document.createElement("div");t=_.yZ(W.container,function(){return _.w(Ygw,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:e})});
W.addOnDisposeCallback(t);_.u8(b)})},U0u=function(W){var e,t,b,m,q,Q,X,I;
_.F(function(u){return u.nextAddress==1?(e=W.JSC$20378_watchApi.getPlayerResponse(),q=_.l((t=e)==null?void 0:(b=t.overlay)==null?void 0:(m=b.playerControlsOverlayRenderer)==null?void 0:m.compositeVideoOverlay,i01),I=(Q=e)==null?void 0:(X=Q.playerConfig)==null?void 0:X.compositeVideoConfig,q&&W.setCompositeVideoOverlayRenderer(q),I&&W.setCompositeVideoConfig(I),q&&I?W.container?u.jumpTo(6):_.a(u,Npw(W),6):d01(W)?_.a(u,A9U(W),0):u.jumpTo(0)):d01(W)?u.jumpTo(0):_.a(u,EYM(W),0)})},d01=function(W){var e;
return!((e=W.container)==null||!e.parentElement)};
_.LQl.prototype.disposeInternal=function(){d01(this)&&A9U(this);_.ka.prototype.disposeInternal.call(this)};_.mjC=function(W){_.ka.call(this);var e=this;this.JSC$20384_watchApi=W;var t=this.JSC$20384_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var b=e.JSC$20384_watchApi.getPlayerResponse();if(b){var m,q;if(b=_.l((m=b.endscreen)==null?void 0:(q=m.endscreenRenderer)==null?void 0:q.hideButton,_.pU)){var Q;(Q=e.setEndscreenHideButton)==null||Q.call(e,b);Wpg(e)}}});
this.addOnDisposeCallback(function(){e.JSC$20384_watchApi.unsubscribeByKey(t)});
W=_.R(_.up({},void 0,"PPHRb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;eE9(this);t4Q(this);bEM(this)};
_.Z(_.mjC,_.ka);var Wpg=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return W.creatorEndscreenHideButtonContainer?b.return():_.a(b,W.JSC$20384_watchApi.playerApi,2);e=b.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.L3(W.creatorEndscreenHideButtonContainer,!1);e.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);t=_.yZ(W.creatorEndscreenHideButtonContainer,function(){return _.w(_.fU,{data:W.endscreenHideButton,useOutlinedIcon:!0})});
W.addOnDisposeCallback(function(){t();var m;(m=e)==null||m.setCreatorEndscreenHideButton(void 0)});
_.u8(b)})},eE9=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20384_watchApi.playerApi,2);e=b.yieldResult;t=function(){W.creatorEndscreenHideButtonContainer&&_.L3(W.creatorEndscreenHideButtonContainer,!0)};
e.addEventListener("endscreenelementshown",t);W.addOnDisposeCallback(function(){var m;(m=e)==null||m.removeEventListener("endscreenelementshown",t)});
_.u8(b)})},t4Q=function(W){var e=function(){W.creatorEndscreenHideButtonContainer&&_.L3(W.creatorEndscreenHideButtonContainer,!1)},t=W.JSC$20384_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",e),b=W.JSC$20384_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",e);
W.addOnDisposeCallback(function(){W.JSC$20384_watchApi.unsubscribeByKey(t);W.JSC$20384_watchApi.unsubscribeByKey(b)})},bEM=function(W){W.JSC$20384_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(e){var t=_.l(e,scw);
W.JSC$20384_watchApi.playerApi.then(function(b){b==null||b.setCreatorEndscreenVisibility(!!t.hide)})});
W.addOnDisposeCallback(function(){W.JSC$20384_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.q$l=function(W){_.ka.call(this);this.JSC$20390_watchApi=W;ru9(this)};
_.Z(_.q$l,_.ka);var ru9=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20390_watchApi.playerApi,2);e=b.yieldResult;t=function(m){_.Eb().dispatch(_.rO({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:m}}))};
e.addEventListener("onRetroModeChanged",t);W.addOnDisposeCallback(function(){e.removeEventListener("onRetroModeChanged",t)});
_.u8(b)})};var gn=0,fk=0,Tl=0;var RES;RES=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.n6=function(W){_.ka.call(this);this.JSC$20403_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;QlB(this)};
_.Z(_.n6,_.ka);
var QlB=function(W){var e,t,b;_.F(function(m){if(m.nextAddress==1)return _.a(m,W.JSC$20403_watchApi.playerApi,2);e=m.yieldResult;if(W.isDisposed())return m.return();W.sessionStorage=_.fDB("yt-sleep-timer");W.sessionStorage||_.JC(new _.o_("SessionStorage for Sleep Timer is undefined."));((t=W.sessionStorage)==null?void 0:t.get("yt-sleep-timer"))==="true"&&(I9l(),(b=W.sessionStorage)==null||b.remove("yt-sleep-timer"),e.syncVolume());FpC(W,e);Xo1(W,e);Iwg(W,e);_.u8(m)})},FpC=function(W,e){var t=function(u){W.onSleepTimerSettingsChanged(u,
e)},b=function(u){W.onPlayerStateChange(u,e)},m=function(){W.onLoopChange(e)},q=function(){W.onCloseMiniplayer(e)},Q=function(){RVU(e,(0,_.eJ)(),a9E(e),W.selectedOption==="End of video",e.getPlayerState()!==1)},X=function(){W.onSeekComplete(e)},I=function(){_.Tm.cancelJob(fk);
var u=e.getCurrentTime()>=e.getDuration(),c=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!mmT(W.playlistId);u&&c&&awU(W,e)};
e.addEventListener("onSleepTimerSettingsChanged",t);e.addEventListener("onLoopChange",m);e.addEventListener("onLoopRangeChange",m);e.addEventListener("onStateChange",b);e.addEventListener("onCloseMiniplayer",q);e.addEventListener("onSleepTimerFeatureAvailable",Q);e.addEventListener("SEEK_COMPLETE",X);e.addEventListener("onAdStart",I);W.addOnDisposeCallback(function(){e.removeEventListener("onSleepTimerSettingsChanged",t);e.removeEventListener("onLoopChange",m);e.removeEventListener("onLoopRangeChange",
m);e.removeEventListener("onStateChange",b);e.removeEventListener("onCloseMiniplayer",q);e.removeEventListener("onSleepTimerFeatureAvailable",Q);e.removeEventListener("SEEK_COMPLETE",X);e.removeEventListener("onAdStart",I)})},Xo1=function(W,e){var t=W.JSC$20403_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var b=e.getVideoData().video_id,m,q=(m=tlM(W.JSC$20403_watchApi))==null?void 0:m.playlistId;
W.pauseAutonavPlayback&&(e.pauseVideo(),e.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&b!==W.videoId)f6(W,e);else{if(W.selectedOption==="End of playlist"){m=mmT(W.playlistId);if(q!==W.playlistId){f6(W,e);break a}m?m&&woE(W,e):uG1(W,e)}W.videoId=b;W.playlistId=q}}});
W.addOnDisposeCallback(function(){W.JSC$20403_watchApi.unsubscribeByKey(t)})},Iwg=function(W,e){var t=_.ee().resolve(_.hh),b=_.S8(t,_.uQD,function(q){q&&W.selectedOption!=="Off"&&f6(W,e)}),m=W.JSC$20403_watchApi.subscribeToActiveChanged(function(q){var Q,X;
return _.F(function(I){if(I.nextAddress==1)return _.a(I,_.G3().navigationFinishPromise,2);Q=!_.AHe();X=_.ee().resolve(_.Kn).isMiniplayerActive();q||!nk(W.selectedOption)||X||Q||f6(W,e);_.u8(I)})},!1);
t=_.S8(t,function(q){return q.entities.playlistLoopStateEntity||{}},function(q){q=q===void 0?{}:q;
var Q=b0g(W.JSC$20403_watchApi);if(Q){var X;((X=q[Q])==null?void 0:X.state)==="PLAYLIST_LOOP_STATE_ALL"&&nk(W.selectedOption)&&f6(W,e)}});
W.addOnDisposeCallback(b);W.addOnDisposeCallback(t);W.addOnDisposeCallback(m)};
_.n6.prototype.onSleepTimerSettingsChanged=function(W,e){switch(W){case "Off":this.selectedOption!=="Off"&&f6(this,e);break;case "End of video":case "End of playlist":cug(this,W,e);break;default:cug(this,W,e,RES.get(W))}};
_.n6.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&nk(this.selectedOption)&&f6(this,W)};
_.n6.prototype.onCloseMiniplayer=function(W){nk(this.selectedOption)&&f6(this,W)};
var cug=function(W,e,t,b){v1U(W,t);W.selectedOption=e;W.videoId=t.getVideoData().video_id;W.playlistId="";var m;(m=W.sessionStorage)==null||m.set("yt-sleep-timer","true");W.adjustmentsCount++;RVU(t,(0,_.eJ)(),a9E(t),W.selectedOption==="End of video");if(W.selectedOption==="End of video")uG1(W,t),Gt9(W,t);else if(W.selectedOption==="End of playlist"){Gt9(W,t);var q,Q;W.playlistId=(Q=(q=tlM(W.JSC$20403_watchApi))==null?void 0:q.playlistId)!=null?Q:"";mmT(W.playlistId)||uG1(W,t)}else b&&(W.presetFadeSchedulerId=
_.lJ(_.Tm,function(){FSl(t,15E3)},b-15E3),W.presetPauseSchedulerId=_.lJ(_.Tm,function(){awU(W,t)},b),Qc1(t,(0,_.eJ)(),b))},awU=function(W,e){if(W.JSC$20403_watchApi.isActive()){var t={dismissDialogEndpoint:{}};
var b={commandExecutorCommand:{commands:[t,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};t={buttonViewModel:{title:_.Gv("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:t}}};b={buttonViewModel:{title:_.Gv("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:b}}};var m={dialogHeaderViewModel:{headline:{content:_.Gv("SLEEP_TIMER_ENDED_TITLE")}}},
q={basicContentViewModel:{paragraphs:[{text:{content:_.Gv("SLEEP_TIMER_ENDED_TEXT")}}]}};t={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:m,content:q,footer:{panelFooterViewModel:{primaryButton:t,secondaryButton:b,shouldHideDivider:!0}}}}}}};_.ee().resolve(_.tQ).resolveCommand(t,{form:{element:W}})}else I9l();Djl(W,!1);S$C(W,e);e.pauseVideo();_.dv.getInstance().getState()===2&&e.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},f6=function(W,e){Djl(W,!0);
S$C(W,e);I9l()},S$C=function(W,e){v1U(W,e);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var t;(t=W.sessionStorage)==null||t.remove("yt-sleep-timer");_.Tm.cancelJob(gn);e.resetSleepTimerMenuSettings()},Djl=function(W,e){e={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:e};switch(W.selectedOption){case "Off":e.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":e.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:e.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",e.option_duration_in_minutes=RES.get(W.selectedOption)/6E4}_.nJ("sleepTimerSessionFinishEvent",e)};
_.n6.prototype.onPlayerStateChange=function(W,e){W===1?RVU(e,(0,_.eJ)(),a9E(e),this.selectedOption==="End of video"):W===0?(_.Tm.cancelJob(fk),e.setVideoTimeLeft(qhU(0,0))):W===2&&_.Tm.cancelJob(fk);this.selectedOption==="End of video"?W===0?awU(this,e):W===2&&Xdl(e):this.selectedOption!=="End of playlist"||mmT(this.playlistId)||(W===0?awU(this,e):W===2&&Xdl(e))};
_.n6.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&RVU(W,(0,_.eJ)(),a9E(W),this.selectedOption==="End of video",!0)};
_.n6.prototype.onCueRangeEnter=function(W,e){W==="sleep-timer-fade-audio"&&FSl(e,(e.getDuration()-e.getProgressState().current)*1E3)};
_.n6.prototype.onCueRangeExit=function(W,e){W==="sleep-timer-fade-audio"&&e.getPlayerState()!==0&&Xdl(e,!0)};
var uG1=function(W,e){e.addCueRange("sleep-timer-fade-audio",e.getDuration()-15,e.getDuration());e.addEventListener("onCueRangeEnter",function(t){W.onCueRangeEnter(t,e)});
e.addEventListener("onCueRangeExit",function(t){W.onCueRangeExit(t,e)})},woE=function(W,e){e.removeCueRange("sleep-timer-fade-audio");
e.removeEventListener("onCueRangeEnter",function(t){W.onCueRangeEnter(t,e)});
e.removeEventListener("onCueRangeExit",function(t){W.onCueRangeExit(t,e)})},v1U=function(W,e){nk(W.selectedOption)?woE(W,e):(_.Tm.cancelJob(W.presetPauseSchedulerId),_.Tm.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
Xdl(e,!0)},Gt9=function(W,e){e.setLoop(!1);
e.setLoopVideo(!1);e.setLoopRange(null);(W=b0g(W.JSC$20403_watchApi))&&_.ee().resolve(_.hh).dispatch(_.SX("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ZEM=function(W){_.ka.call(this);this.JSC$20406_watchApi=W;B4T(this);o1w(this);lwu(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.$HC();_.S("web_watch_log_theater_mode_cookie_state")&&_.vi.get("wide","0")==="1"&&_.Y92("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.Z(_.ZEM,_.ka);var B4T=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20406_watchApi.playerApi,2);e=b.yieldResult;t=function(m){$ju(W,!!m)};
e.addEventListener("SIZE_CLICKED",t);W.addOnDisposeCallback(function(){e.removeEventListener("SIZE_CLICKED",t)});
_.u8(b)})},o1w=function(W){W.JSC$20406_watchApi.registerActionHandler("yt-toggle-theater-mode",function(e,t){$ju(W,e,t===void 0?!0:t)});
W.addOnDisposeCallback(function(){W.JSC$20406_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ZEM.prototype.getState=function(){return _.hv(_.Eb().getState())};
var $ju=function(W,e,t){t=t===void 0?!0:t;var b,m,q,Q=_.S("enable_player_resize_transition")&&!!W.JSC$20406_watchApi.getWatchNextResponse()&&!((b=W.JSC$20406_watchApi.getWatchNextResponse())==null?0:(m=b.contents)==null?0:(q=m.twoColumnWatchNextResults)==null?0:q.conversationBar);_.gNE(function(){_.Eb().dispatch(_.rO({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:e}}));_.S("theater_mode_scroll_to_top_killswitch")||W.JSC$20406_watchApi.scrollWatchTo(0,!1);_.ty()&&_.S("external_fullscreen")&&_.bc(document.documentElement);
lwu(W);t&&_.GJ("wide",e?"1":"0",-1);_.RT(W.JSC$20406_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$20406_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:e});e&&_.$HC()},{shouldWrap:Q})},lwu=function(W){var e;
_.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20406_watchApi.playerApi,2);e=t.yieldResult;e.setSizeStyle(!0,W.getState());_.u8(t)})};var yuS=function(W){_.ka.call(this);var e=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var t;if(W==null?0:(t=W.isReady)==null?0:t.call(W)){t=_.S8(_.ee().resolve(_.hh),function(m){return m.entities.timedMarkersListSyncEntity||{}},function(m,q){m=m===void 0?{}:m;
q=q===void 0?{}:q;for(var Q=_.R(Object.keys(q)),X=Q.next();!X.done;X=Q.next())X=X.value,m[X]!==q[X]&&ktT(e,q[X]);q=_.R(Object.keys(m));for(Q=q.next();!Q.done;Q=q.next())Q=Q.value,X=m[Q],e.timeToPanelSyncKeyMap[Q]&&po9(e,X)});
this.addOnDisposeCallback(t);var b=function(m){e.onCueRangeEnter(m)};
W.addEventListener("onCueRangeEnter",b);this.addOnDisposeCallback(function(){var m;(m=W.removeEventListener)==null||m.call(W,"onCueRangeEnter",b)})}};
_.Z(yuS,_.ka);
var po9=function(W,e){var t,b;if((t=W.playerApi)==null?0:(b=t.isReady)==null?0:b.call(t)){var m;if((t=e==null?void 0:(m=e.timedListData)==null?void 0:m.sections)&&e!=null&&e.key)for(m=_.R(t),t=m.next();!t.done;t=m.next())if(t=t.value,t.timedSyncDataList&&t.sectionId)for(b=0;b<t.timedSyncDataList.length;b++){var q=t.timedSyncDataList[b];q.syncItemId&&W.playerApi.addCueRange(t.sectionId+"_"+e.key+"_"+q.syncItemId,Number(q.videoTimeMs)/1E3,b===t.timedSyncDataList.length-1?0x8000000000000:Number(t.timedSyncDataList[b+
1].videoTimeMs)/1E3)}}},ktT=function(W,e){var t,b;
if((t=W.playerApi)==null?0:(b=t.isReady)==null?0:b.call(t)){var m;if((t=e==null?void 0:(m=e.timedListData)==null?void 0:m.sections)&&e!=null&&e.key)for(m=_.R(t),t=m.next();!t.done;t=m.next())if(t=t.value,t.timedSyncDataList&&t.sectionId){b=_.R(t.timedSyncDataList);for(var q=b.next();!q.done;q=b.next())q=q.value,q.syncItemId&&W.playerApi.removeCueRange(t.sectionId+"_"+e.key+"_"+q.syncItemId)}}};
yuS.prototype.onCueRangeEnter=function(W){for(var e=_.R(Object.keys(this.timeToPanelSyncKeyMap)),t=e.next();!t.done;t=e.next()){t=t.value;var b=_.R(W.split("_"+t+"_")),m=b.next().value;b=b.next().value;if(m&&b){W=_.ee().resolve(_.hh);e=this.timeToPanelSyncKeyMap[t];var q=_.lsQ(W.getState(),e);t=jlC(t,m,b);if(t===-1)break;t={activeSyncId:b,activeItemIndex:t,activeSectionInfo:{sectionIdentifier:m}};q?W.dispatch(_.gN("markersEngagementPanelSyncEntity",e,t)):W.dispatch(_.SX("markersEngagementPanelSyncEntity",
e,Object.assign({},{key:e},t)));break}}};
var jlC=function(W,e,t){var b=_.ee().resolve(_.hh),m,q;W=(m=BoC(b.getState(),W))==null?void 0:(q=m.timedListData)==null?void 0:q.sections;if(!W)return-1;m=0;q=_.R(W);for(W=q.next();!W.done;W=q.next()){W=W.value;b=W.timedSyncDataList||[];if(W.sectionId===e)return e=b.findIndex(function(Q){return Q.syncItemId===t}),e===-1?e:m+e;
m+=b.length}return-1};_.fww=function(W){_.ka.call(this);var e=this;this.JSC$20418_watchApi=W;this.unresolvedCommands=[];this.JSC$20418_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(t){CMg(e,t)});
this.addOnDisposeCallback(function(){e.JSC$20418_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
n1u(this)};
_.Z(_.fww,_.ka);var n1u=function(W){var e;_.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20418_watchApi.playerApi,2);e=t.yieldResult;if(W.isDisposed())return t.return();W.timedSyncObserver=new yuS(e);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(b){return CMg(W,b)}),W.unresolvedCommands=[]);
_.w$(W,W.timedSyncObserver);_.u8(t)})},CMg=function(W,e){if(W.timedSyncObserver){var t=_.l(e,H0S);
if(t&&t.timedSyncEntityKey&&t.panelSyncEntityKey){W=W.timedSyncObserver;e=t.timedSyncEntityKey;var b=t.panelSyncEntityKey;t=!!t.isEnabled;t=t===void 0?!0:t;var m=_.ee().resolve(_.hh);m=BoC(m.getState(),e);t?W.timeToPanelSyncKeyMap[e]||(W.timeToPanelSyncKeyMap[e]=b,po9(W,m)):(delete W.timeToPanelSyncKeyMap[e],ktT(W,m))}}else W.unresolvedCommands.push(e)};var g1M=_.NN(function(W){var e=W.data,t=W.maybeLogSmartSkipClientData,b=_.zT("ytw-timely-action-view-model");_.UQ(b,function(){return e().rendererContext},{onTap:function(c,v){v({disableClickTracking:!0})}});
var m=null,q=null,Q=_.S("web_enable_auto_focus_for_timely_action_button"),X=function(){m=document.activeElement},I=function(){e().smartSkipMetadata&&(m=document.activeElement,_.bbu(function(){return q}))},u=function(c){if(e().smartSkipMetadata&&(!c||c.key!=="Enter")){m&&m.isConnected&&(_.bbu(function(){return m}),m=null);
var v;(v=q)==null||v.blur()}};
W=_.Be(function(){t==null||t(!0,e());return!1});
_.ev(b,{visibilityCallback:function(c){if(Q)c?q&&e().smartSkipMetadata&&(I(),document.addEventListener("focusin",X)):(document.removeEventListener("focusin",X),u());else if(c&&_.S("web_ephemeral_actions")){c=_.Yb(e().rendererContext);var v=Number(e().maxVisibleDurationMilliseconds),D,B=(D=_.l(e().rendererContext,_.ly))==null?void 0:D.label;c&&v&&B&&(D={label:B,command:c,durationMs:v},_.ee().resolve(_.Is).enqueue(D))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.jm(function(){if(Q){var c;if((q=(c=b.value)==null?void 0:c.querySelector("button"))&&e().smartSkipMetadata){var v;(v=b.value)==null||v.addEventListener("keydown",u)}}});
_.fh(function(){Q&&(q&&e().smartSkipMetadata&&q.removeEventListener("keydown",u),document.removeEventListener("focusin",X),u())});
return _.w("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:b,"on:click":W},_.w(_.nU,{data:function(){return e().content}},{buttonViewModel:_.MV}))},"uj");var T4l=_.NN(function(W){var e=W.data,t=W.playerApi,b=_.ee().resolve(_.xak);W=_.R(_.ZT(function(){e()}));
var m=W.next().value,q=W.next().value,Q=function(){return ugQ(e(),m())},X=function(u,c){var v,D,B=(v=_.l(c==null?void 0:c.rendererContext,_.Bg))==null?void 0:(D=v.loggingDirectives)==null?void 0:D.trackingParams;
if((c=c==null?void 0:c.smartSkipMetadata)&&c.loggingData&&(D=c.loggingData,c=D.algorithmId,v=D.startMilliseconds,D=D.endMilliseconds,c&&v!==void 0&&D!==void 0)){var k,n;u={smartSkipData:Object.assign({},{versionName:c,startMediaTimeMs:v,endMediaTimeMs:D},u&&{userInteractionMediaTimeMs:(Math.floor(((k=_.tv())==null?void 0:(n=k.getPlayer())==null?void 0:n.getCurrentTime())||0)*1E3).toString()})};k=_.fc();var f;B&&(f=_.$5(B));k&&f&&_.Le(k,f,u)}},I=function(u,c){var v=ugQ(e(),u);
if(v){var D=_.l(v,J0),B;if(B=c)B=t(),v=_.l(v,J0),B=v!=null&&v.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((v==null?void 0:v.smartSkipMetadata.markerKey)||"")):!0;if(B){var k,n;(D==null?0:(k=D.smartSkipMetadata)==null?0:(n=k.loggingData)==null?0:n.isCounterfactual)||(X(!1,D),q(u))}else c||m()!==u||q(void 0)}};
_.nh(function(){var u=e().timelyActions;if(u){u=_.R(u);for(var c=u.next();!c.done;c=u.next()){c=_.l(c.value,J0);var v=void 0;(v=c)!=null&&v.cueRangeId&&b.timelyActionsMap.set(c.cueRangeId,I)}_.fh(function(){b.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.w("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.w(_.nU,{data:Q},{timelyActionViewModel:function(u){return _.w(g1M,{data:u.data,maybeLogSmartSkipClientData:function(){X(!0,_.l(Q(),J0))}})}}))},"vj");_.xjw=function(W){_.ka.call(this);this.JSC$20430_watchApi=W;W=_.R(_.up({},void 0,"pLDp2"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;Jug(this)};
_.Z(_.xjw,_.ka);var Jug=function(W){var e,t,b,m;_.F(function(q){if(q.nextAddress==1)return OEE(W),M4U(W),W.timelyActionsContainer=document.createElement("div"),_.a(q,W.JSC$20430_watchApi.playerApi,2);e=q.yieldResult;(b=(t=e).insertTimelyActionUi)==null||b.call(t,W.timelyActionsContainer);m=_.yZ(W.timelyActionsContainer,function(){return _.w(T4l,{data:W.timelyActionsOverlay,playerApi:e})});
W.addOnDisposeCallback(m);_.u8(q)})},M4U=function(W){var e=W.JSC$20430_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OEE(W)});
W.addOnDisposeCallback(function(){W.JSC$20430_watchApi.unsubscribeByKey(e)})},OEE=function(W){var e=W.JSC$20430_watchApi.getWatchNextResponse();
if(e){var t,b;if(e=_.l((t=e.playerOverlays)==null?void 0:(b=t.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel,KSM)){var m;(m=W.setTimelyActionsOverlay)==null||m.call(W,e)}}};_.hEU=function(W){_.ka.call(this);this.JSC$20434_watchApi=W;sll(this)};
_.Z(_.hEU,_.ka);var sll=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20434_watchApi.playerApi,2);e=b.yieldResult;t=function(m){_.uL.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.l(m,_.UCC)},popupType:"TOAST"}})};
e.addEventListener("onYtShowToast",t);W.addOnDisposeCallback(function(){e.removeEventListener("onYtShowToast",t)});
_.u8(b)})};var HEw,V49,KpS,PMw,UjB,Y$$,zE1,E1w,AuU;HEw=!1;_.iE$=function(W){_.ka.call(this);this.JSC$20437_watchApi=W;this.fullscreen=this.theater=!1;KpS(this);PMw(this);V49(this)};
_.Z(_.iE$,_.ka);V49=function(W){var e,t,b;_.F(function(m){if(m.nextAddress==1)return _.a(m,W.JSC$20437_watchApi.playerApi,2);e=m.yieldResult;if(W.isDisposed())return m.return();t=W.JSC$20437_watchApi.getElement("CINEMATICS");if(!t)return m.return();W.JSC$20437_cinematicController=new _.qp(t,e);_.w$(W,W.JSC$20437_cinematicController);_.vTu(W.JSC$20437_cinematicController);Y$$(W,_.IzS());b=W.JSC$20437_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(q){zE1(W,q)});
W.addOnDisposeCallback(function(){W.JSC$20437_watchApi.unsubscribeByKey(b)});
UjB(W);zE1(W,W.JSC$20437_cinematicController.isAllowed());_.Lpw(W,W.fullscreen,W.theater);E1w(W);_.u8(m)})};
KpS=function(W){var e=W.JSC$20437_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UjB(W)});
W.addOnDisposeCallback(function(){W.JSC$20437_watchApi.unsubscribeByKey(e)})};
PMw=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20437_watchApi.playerApi,2);e=b.yieldResult;t=function(m){Y$$(W,m)};
e.addEventListener("cinematicSettingsToggleChange",t);W.addOnDisposeCallback(function(){e.removeEventListener("cinematicSettingsToggleChange",t)});
_.u8(b)})};
UjB=function(W){var e=W.JSC$20437_watchApi.getWatchNextResponse(),t;e=_.l(e==null?void 0:(t=e.pageVisualEffects)==null?void 0:t[0],_.$1);var b;(b=W.JSC$20437_cinematicController)==null||_.DO9(b,e)};
Y$$=function(W,e){var t;(t=W.JSC$20437_cinematicController)==null||_.GUM(t,e);AuU(W)};
zE1=function(W,e){var t;_.F(function(b){if(b.nextAddress==1)return _.S("kevlar_watch_cinematics_invisible")&&(e=!1),_.a(b,W.JSC$20437_watchApi.playerApi,2);t=b.yieldResult;t.updateCinematicSettings(e);AuU(W);_.u8(b)})};
E1w=function(W){var e=_.B6();if(_.S("kevlar_measure_ambient_mode_idle")&&!e.getFlag(192)&&!HEw){HEw=!0;var t=_.kM(_.Tm,function(){_.ee().resolve(_.ChM).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.Tm.cancelJob(t);_.ee().resolve(_.ChM).stop()})}};
_.Lpw=function(W,e,t){W.fullscreen=e;W.theater=t;var b;(b=W.JSC$20437_cinematicController)==null||b.setFullscreen(W.fullscreen,W.theater);if(_.S("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var m;(m=W.JSC$20437_cinematicController)==null||_.SNg(m)}else if((W=W.JSC$20437_cinematicController)!=null){var q;(q=W.currentCinematicEffect)==null||q.pause()}};
AuU=function(W){if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")){var e;W.JSC$20437_watchApi.getRoot().toggleCinematicsActive(!((e=W.JSC$20437_cinematicController)==null||!e.isEnabled()))}};_.e5$=function(W){_.ka.call(this);var e=this;this.JSC$20440_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.S8(_.Eb(),_.yq,function(){N4C(e)});
this.addOnDisposeCallback(W);var t=this.JSC$20440_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){djE(e)}),b=this.JSC$20440_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){djE(e)});
this.addOnDisposeCallback(function(){e.JSC$20440_watchApi.unsubscribeByKey(t);e.JSC$20440_watchApi.unsubscribeByKey(b)});
var m=function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&WBw(e,"false")};
this.JSC$20440_watchApi.getRoot().addEventListener("yt-page-data-will-update",m);this.addOnDisposeCallback(function(){e.JSC$20440_watchApi.getRoot().removeEventListener("yt-page-data-will-update",m)});
djE(this)};
_.Z(_.e5$,_.ka);var djE=function(W){W.commentsReady=!1;_.Tm.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.kM(_.Tm,function(){N4C(W)},1E3)},N4C=function(W){if(!W.commentsReady){_.Tv("cmi");
_.Tm.cancelJob(W.setCommentsJobId);var e,t,b,m,q=(e=W.JSC$20440_watchApi.getWatchNextResponse())==null?void 0:(t=e.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(m=b.results)==null?void 0:m.results.contents;e=void 0;if(q&&q.length)for(q=_.R(q),t=q.next();!t.done;t=q.next())if(t=t.value,m=b=void 0,((b=t)==null?void 0:(m=b.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"){_.S("web_watch_provide_undefined_comments")?e=t.itemSectionRenderer:W.JSC$20440_watchApi.provideRenderingData("COMMENTS",
t.itemSectionRenderer);WBw(W,"true");break}_.S("web_watch_provide_undefined_comments")&&W.JSC$20440_watchApi.provideRenderingData("COMMENTS",e);W.commentsReady=!0;W.JSC$20440_watchApi.dispatchEvent("yt-watch-comments-ready")}},WBw=function(W,e){var t;
(t=W.JSC$20440_watchApi.getElement("COMMENTS"))==null||t.setAttribute("canScheduleJobs",e)};_.xz=function(W){_.ka.call(this);var e=this;this.JSC$20443_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.S("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.S("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.S("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.mn("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)tqC(this);
else{var t=this.JSC$20443_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){g5(e);T6(e)}),b=this.JSC$20443_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JZ(e);
T6(e)});
this.JSC$20443_watchApi.getRoot().is==="ytd-watch-grid"&&_.S("swatcheroo_pbs_load_grid")&&(boC(this),m8C(this));this.addOnDisposeCallback(function(){e.JSC$20443_watchApi.unsubscribeByKey(t);e.JSC$20443_watchApi.unsubscribeByKey(b);_.Tm.cancelJob(e.provideRichGridJobId)});
g5(this);JZ(this)}};
_.Z(_.xz,_.ka);var tqC=function(W){var e=W.JSC$20443_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.CU(_.Tm,function(){g5(W);T6(W)},W.provideAllDataDelayMs)}),t=W.JSC$20443_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.CU(_.Tm,function(){JZ(W);
T6(W)},W.provideAllDataDelayMs)}),b=W.JSC$20443_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.CU(_.Tm,function(){JZ(W);
T6(W)},W.provideAllDataDelayMs)});
W.JSC$20443_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.kM(_.Tm,function(){g5(W);JZ(W);T6(W)},100)});
W.JSC$20443_watchApi.addPageDisposeJob(function(){_.Tm.cancelJob(W.provideWatchNextJobId);_.Tm.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){W.JSC$20443_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");W.JSC$20443_watchApi.unsubscribeByKey(e);W.JSC$20443_watchApi.unsubscribeByKey(t);W.JSC$20443_watchApi.unsubscribeByKey(b);_.Tm.cancelJob(W.providePlayerJobId);_.Tm.cancelJob(W.provideWatchNextJobId)});
g5(W);JZ(W)},g5=function(W){var e=W.JSC$20443_watchApi.getPlayerResponse(),t,b,m=(b=e==null?void 0:(t=e.playabilityStatus)==null?void 0:t.messageRenderers)!=null?b:[],q,Q;
e=(Q=e==null?void 0:(q=e.playabilityStatus)==null?void 0:q.messages)!=null?Q:[];q=_.R(e);for(Q=q.next();!Q.done;Q=q.next())m.push({alertRenderer:{text:_.zq(Q.value),type:"WARNING"}});W.JSC$20443_watchApi.provideRenderingData("ALERTS",m)},JZ=function(W){var e=[],t,b,m,q=W.JSC$20443_watchApi.getWatchNextResponse(),Q,X,I,u,c=q==null?void 0:(Q=q.contents)==null?void 0:(X=Q.twoColumnWatchNextResults)==null?void 0:(I=X.results)==null?void 0:(u=I.results)==null?void 0:u.contents;
if(c)for(Q=_.R(c),X=Q.next();!X.done;X=Q.next())if(X=X.value,X.videoPrimaryInfoRenderer)var v=X;else if(X.videoSecondaryInfoRenderer){var D=X;u=I=void 0;X=Object.assign({},(I=X.videoSecondaryInfoRenderer)==null?void 0:(u=I.metadataRowContainer)==null?void 0:u.metadataRowContainerRenderer);if(X.rows&&X.collapsedItemCount!==void 0){X.rows=X.rows.slice(0,X.collapsedItemCount).filter(function(US){return!!US.richMetadataRowRenderer});
X.collapsedItemCount=X.rows.length;var B={metadataRowContainerRenderer:X}}}else if(X.merchandiseShelfRenderer)var k=X;else if(X.ticketShelfRenderer)var n=X;else if(X.expandableMetadataRenderer)var f=X;else if(X.itemSectionRenderer)if(I=X.itemSectionRenderer.contents,u=void 0,W.directlyProvideComments&&((u=X.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section")_.Tv("cmi"),W.JSC$20443_watchApi.provideRenderingData("COMMENTS",X.itemSectionRenderer);else if(I)for(X=_.R(I),I=
X.next();!I.done;I=X.next())if(I=I.value,I.commentsEntryPointHeaderRenderer)var M=I;else if(I.clarificationRenderer||I.infoPanelContainerRenderer||I.infoPanelContentRenderer||I.emergencyOneboxRenderer){e.push(I);var K=K||!!D}else I.limitedStateMessageRenderer?b=I:I.videoMetadataCarouselViewModel&&(m=I);if(_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&k&&n){var U=k;k=void 0}if(W.provideWatchNextSecondaryResults){var V,L,E;W.JSC$20443_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
q==null?void 0:(V=q.contents)==null?void 0:(L=V.twoColumnWatchNextResults)==null?void 0:(E=L.secondaryResults)==null?void 0:E.secondaryResults)}if(W.JSC$20443_watchApi.getRoot().is==="ytd-watch-grid"){var RR,uv;W.JSC$20443_watchApi.provideRenderingData("LIVE_CHAT",q==null?void 0:(RR=q.contents)==null?void 0:(uv=RR.twoColumnWatchNextResults)==null?void 0:uv.conversationBar)}var GS,k9,CQ,fQ;(V=q==null?void 0:(GS=q.contents)==null?void 0:(k9=GS.twoColumnWatchNextResults)==null?void 0:(CQ=k9.secondaryResults)==
null?void 0:(fQ=CQ.secondaryResults)==null?void 0:fQ.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&W.JSC$20443_watchApi.getRoot().is!=="ytd-watch-grid"&&(t=V);GS=W.JSC$20443_watchApi.getPlayerResponse();if(!GS||!_.qnz(GS.playabilityStatus,q==null?void 0:q.playerOverlays)){var iv;if(q==null?0:(iv=q.contents)==null?0:iv.singleColumnWatchNextResults){var hz,ES;var Wu=q==null?void 0:(hz=q.contents.singleColumnWatchNextResults.results)==null?void 0:(ES=hz.results)==null?void 0:
ES.contents}else{var pr,ay,PU,cu;iv=!!(c==null?0:(pr=c[0])==null?0:(ay=pr.itemSectionRenderer)==null?0:(PU=ay.contents)==null?0:(cu=PU[0])==null?0:cu.backgroundPromoRenderer);var LQ,sB;pr=!!(q==null?0:(LQ=q.contents)==null?0:(sB=LQ.twoColumnWatchNextResults)==null?0:sB.secondaryResults);iv&&!pr&&(Wu=c)}}c=e[0];LQ=e[1];K&&e.length===1&&(LQ=c,c=void 0);W.JSC$20443_watchApi.provideRenderingData("PRIMARY_INFO",v);W.JSC$20443_watchApi.provideRenderingData("SECONDARY_INFO",D);W.JSC$20443_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
M);W.JSC$20443_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",m);W.JSC$20443_watchApi.provideRenderingData("CLARIFICATION",c);W.JSC$20443_watchApi.provideRenderingData("RICH_METADATA",B);W.JSC$20443_watchApi.provideRenderingData("MERCH_SHELF",k);_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$20443_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",U);W.JSC$20443_watchApi.provideRenderingData("TICKET_SHELF",n);W.JSC$20443_watchApi.provideRenderingData("LIMITED_STATE",b);W.JSC$20443_watchApi.getRoot().is!==
"ytd-watch-grid"&&W.JSC$20443_watchApi.provideRenderingData("DONATION_SHELF",t);W.JSC$20443_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Wu);W.JSC$20443_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",LQ);W.JSC$20443_watchApi.provideRenderingData("EXPANDABLE_METADATA",f);if(W.swatcherooProvideAllDataOnScheduledJob){var z1,FD,DD,nr,UB,ZD;v=q==null?void 0:(z1=q.contents)==null?void 0:(FD=z1.twoColumnWatchNextResults)==null?void 0:(DD=FD.secondaryResults)==null?void 0:(nr=DD.secondaryResults)==
null?void 0:(UB=nr.results)==null?void 0:(ZD=UB[0])==null?void 0:ZD.richGridRenderer;W.JSC$20443_watchApi.provideRenderingData("RICH_GRID_RENDERER",v)}};
_.xz.prototype.hasCompanionAds=function(W){var e,t;return(t=W==null?void 0:(e=W.adPlacements)==null?void 0:e.some(function(b){var m,q,Q,X;return(b==null?void 0:(m=b.adPlacementRenderer)==null?void 0:(q=m.renderer)==null?void 0:q.actionCompanionAdRenderer)||(b==null?void 0:(Q=b.adPlacementRenderer)==null?void 0:(X=Q.renderer)==null?void 0:X.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?t:!1};
var T6=function(W){if(!_.S("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||m8C(W,3E3);var e=W.JSC$20443_watchApi.getPlayerResponse(),t,b,m,q,Q,X=(t=W.JSC$20443_watchApi.getWatchNextResponse())==null?void 0:(b=t.contents)==null?void 0:(m=b.twoColumnWatchNextResults)==null?void 0:(q=m.secondaryResults)==null?void 0:(Q=q.secondaryResults)==null?void 0:Q.offerModule;e=W.hasCompanionAds(e);var I,u;t=(X==null?void 0:(I=X.tvfilmOfferModuleRenderer)==null?void 0:I.clientShouldSuppressIfCompanionAdDisplayed)||
(X==null?void 0:(u=X.unlimitedOfferModuleRenderer)==null?void 0:u.suppressIfCompanionAds);I=e&&t;W.JSC$20443_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$20443_watchApi.provideRenderingData("OFFER_MODULE",I?void 0:X)}},m8C=function(W,e){_.S("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.Tm.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.CU(_.Tm,function(){W.provideRichGridJobId=0;
var t,b,m,q,Q,X,I,u=(t=W.JSC$20443_watchApi.getWatchNextResponse())==null?void 0:(b=t.contents)==null?void 0:(m=b.twoColumnWatchNextResults)==null?void 0:(q=m.secondaryResults)==null?void 0:(Q=q.secondaryResults)==null?void 0:(X=Q.results)==null?void 0:(I=X[0])==null?void 0:I.richGridRenderer;u&&W.JSC$20443_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)},e))},boC=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20443_watchApi.playerApi,2);e=b.yieldResult;t=function(){W.onPlaybackStart()};
e.addEventListener("onPlaybackStartExternal",t);W.addOnDisposeCallback(function(){e.removeEventListener("onPlaybackStartExternal",t)});
_.u8(b)})};
_.xz.prototype.onPlaybackStart=function(){m8C(this)};_.qfU=function(W){_.ka.call(this);var e=this;this.JSC$20453_watchApi=W;W.playerApi.then(function(t){e.player=t});
this.gestures=new _.Xc(this.JSC$20453_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.pPw(_.Eb().getState())&&_.yq(_.Eb().getState())<=0)if(_.HS(_.Eb().getState())){var t;(t=e.player)==null||t.toggleFullscreen()}else _.RT(e.JSC$20453_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
rPC(this)};
_.Z(_.qfU,_.ka);var rPC=function(W){var e=_.S8(_.Eb(),_.HS,function(t){W.onFullscreenChanged(t)});
W.addOnDisposeCallback(e);e=_.S8(_.Eb(),_.yq,function(t){W.gestures&&(t>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(e)};
_.qfU.prototype.onFullscreenChanged=function(W){this.gestures&&this.gestures.update(W)};_.QIU=function(W){_.ka.call(this);var e=this;this.JSC$20456_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(W.subscribeToActiveChanged(function(t){e.onActiveChanged(t)}));
R5w(this)};
_.Z(_.QIU,_.ka);var FBT=function(W){if(_.S("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(CxQ).filter(function(t){return t!=="PLAYLIST"});
else if(_.S("swatcheroo_page_dispose_rich_grid")){var e;(e=W.pageDisposalDataTypes)==null||e.push("RICH_GRID_RENDERER")}},R5w=function(W){_.S("swatcheroo_enable_ghost_cards")&&(FBT(W),W.JSC$20456_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Tm.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var e=_.ee().resolve(_.WS).getDestinationPageType()==="watch";
W.clearDataJobId=_.CU(_.Tm,W.runClearDataJob,e?0:_.mn("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){XIu(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.Tm.cancelJob(W.clearDataJobId),W.clearDataJobId=0,XIu(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),W.JSC$20456_watchApi.addPageDisposeJob(W.runPageDisposeJob),W.addOnDisposeCallback(function(){W.JSC$20456_watchApi.removePageDisposeJob(W.runPageDisposeJob);
W.JSC$20456_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},XIu=function(W){W.pageDisposalDataTypes.forEach(function(e){W.JSC$20456_watchApi.provideRenderingData(e,void 0)});
W.clearDataJobId=0};
_.QIU.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.BX(W),IeB(this),document.body.removeAttribute("no-y-overflow"),_.MD("IS_SHELL_LOAD")&&_.umC())};
var IeB=function(W){_.F(function(e){if(e.nextAddress==1)return _.a(e,W.JSC$20456_watchApi.playerApi,2);_.NZ();_.u8(e)})};var aeC;aeC=_.S("kevlar_watch_while_counterfactual")?0:.25;_.OC=function(W){_.ka.call(this);this.JSC$20459_watchApi=W;this.JSC$20459_watchWhileEnabled=_.S("kevlar_watch_while_v2");this.pipEnabled=_.S("web_enable_pip_on_miniplayer");wIM(this);u2u(this);cP1(this)};
_.Z(_.OC,_.ka);var wIM=function(W){W.JSC$20459_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){vxg(W)});
W.addOnDisposeCallback(function(){W.JSC$20459_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},u2u=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20459_watchApi.playerApi,2);e=b.yieldResult;t=function(){vxg(W)};
e.addEventListener("onCollapseMiniplayer",t);W.addOnDisposeCallback(function(){e.removeEventListener("onCollapseMiniplayer",t)});
_.u8(b)})},cP1=function(W){var e=W.JSC$20459_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&e&&W.JSC$20459_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(t){W.handleIntersect(t)},{threshold:[aeC]}),W.playerIntersectionObserver.observe(e),W.addOnDisposeCallback(function(){var t;
(t=W.playerIntersectionObserver)==null||t.disconnect()}))},vxg=function(W){var e,t,b;
_.F(function(m){if(m.nextAddress==1){e=_.ee().resolve(_.WS);t=e.data;b=_.vYK(t.response,t.playerResponse);_.G3().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.G3().watchPipActivation=!0,m.jumpTo(2);_.ee().resolve(_.Kn).collapse();return _.a(m,_.G3().navigationFinishPromise,2)}if(m.nextAddress!=4)return _.G3().currentEndpoint=b.watchEndpoint||null,_.a(m,_.ee().resolve(_.Kn).activate(W.JSC$20459_watchApi.getElement("PLAYER"),b,t),4);_.G3().userActivation=!0;_.u8(m)})};
_.OC.prototype.handleIntersect=function(W){GjM(this,W[W.length-1])};
var GjM=function(W,e){W.watchWhileJobId&&_.Tm.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.Tm.addLowPriorityJob(function(){var t,b;return _.F(function(m){if(m.nextAddress==1)return W.watchWhileJobId=void 0,t=_.ee().resolve(_.Kn),e.intersectionRatio>aeC?t.isMiniplayerActive()?_.a(m,t.deactivate(),0):m.jumpTo(0):(b=!t.isMiniplayerActive())?_.a(m,D8l(W),5):m.jumpTo(4);m.nextAddress!=4&&(b=m.yieldResult);if(!b)return m.jumpTo(0);_.G3().watchWhileActivation=!0;return _.a(m,Sfw(W),0)})},100)},D8l=function(W){return _.F(function(e){return e.nextAddress==
1?_.S("kevlar_watch_while_paused")?e.return(!0):_.a(e,W.isPlayerPlaying(),2):e.return(e.yieldResult)})};
_.OC.prototype.isPlayerPlaying=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20459_watchApi.playerApi,2);e=t.yieldResult;return t.return(e.getPlayerStateObject().isPlaying)})};
var Sfw=function(W){var e,t;return _.F(function(b){e=_.ee().resolve(_.WS).data;t=_.vYK(e.response,e.playerResponse);_.G3().currentEndpoint=t.watchEndpoint||null;return _.a(b,_.ee().resolve(_.Kn).activate(W.JSC$20459_watchApi.getElement("PLAYER"),t,e),0)})};_.leU=function(W){_.ka.call(this);this.JSC$20463_watchApi=W;Bw$(this);oxC(this)};
_.Z(_.leU,_.ka);var oxC=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20463_watchApi.playerApi,2);e=b.yieldResult;t=function(m){var q;m.sessionData&&m.sessionData.itct&&(q=m.sessionData.itct);var Q=m.watchEndpoint;if(Q&&m.sessionData&&m.sessionData.autonav)Q=_.M0g(Q,q);else{var X;Q=_.ew(m.videoId,(X=m.listId)!=null?X:void 0,q)}q={endpoint:Q};m.sessionData&&(q.tempData=m.sessionData);W.JSC$20463_watchApi.dispatchEvent("yt-navigate",q)};
e.addEventListener("onPlayVideo",t);W.addOnDisposeCallback(function(){e.removeEventListener("onPlayVideo",t)});
_.u8(b)})},Bw$=function(W){var e=function(t){W.onYtNavigate(t)};
W.JSC$20463_watchApi.getRoot().addEventListener("yt-navigate",e);W.addOnDisposeCallback(function(){W.JSC$20463_watchApi.getRoot().removeEventListener("yt-navigate",e)})};
_.leU.prototype.onYtNavigate=function(W){var e=this,t,b,m,q,Q,X,I,u,c;return _.F(function(v){if(v.nextAddress==1){if(!((t=W.detail)==null?0:(b=t.endpoint)==null?0:b.watchEndpoint))return v.return();m=W.detail.endpoint.watchEndpoint;q=e.JSC$20463_watchApi.getWatchNextResponse();X=_.l((Q=q)==null?void 0:Q.currentVideoEndpoint,_.z4);if(!X)return v.return();if(m.videoId!==X.videoId||m.playlistId&&m.playlistId!==X.playlistId||typeof m.startTimeSeconds!=="number")return v.jumpTo(0);W.stopPropagation();
(I=_.S("kevlar_watch_while_v2")&&!_.S("kevlar_watch_while_counterfactual"))&&_.ee().resolve(_.Kn).isMiniplayerActive()||e.JSC$20463_watchApi.scrollWatchTo(0,!0);return _.a(v,e.JSC$20463_watchApi.playerApi,3)}u=v.yieldResult;c=m.startTimeSeconds;u.seekTo(c,void 0,void 0,void 0,84);u.wakeUpControls();c<u.getDuration()&&u.playVideo();_.u8(v)})};_.$8g=function(W){_.ka.call(this);var e=this;this.JSC$20466_watchApi=W;var t=this.JSC$20466_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZoC(e)});
this.addOnDisposeCallback(function(){e.JSC$20466_watchApi.unsubscribeByKey(t)});
ZoC(this)};
_.Z(_.$8g,_.ka);var ZoC=function(W){var e=W.JSC$20466_watchApi.getWatchNextResponse();if(e){var t,b=[].concat(_.kP((t=e==null?void 0:e.engagementPanels)!=null?t:[]));b.unshift.apply(b,_.kP(kjQ(e)));W.JSC$20466_watchApi.provideRenderingData("ENGAGEMENT_PANELS",b)}},pIl=function(W){var e,t,b,m=(e=W.engagementPanels)==null?void 0:(t=e.find(function(B){var k;
return((k=B.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(b=t.engagementPanelSectionListRenderer.content)==null?void 0:b.structuredDescriptionContentRenderer,q;
if(_.l(m==null?void 0:(q=m.items)==null?void 0:q.find(function(B){return!!_.l(B,rgT)}),rgT))return!0;
var Q,X,I,u;if(W=(((Q=W.contents)==null?void 0:(X=Q.twoColumnWatchNextResults)==null?void 0:(I=X.results)==null?void 0:(u=I.results)==null?void 0:u.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var c,v,D;
return(((c=W.videoPrimaryInfoRenderer)==null?void 0:(v=c.videoActions)==null?void 0:(D=v.menuRenderer)==null?void 0:D.flexibleItems)||[]).some(function(B){B=_.l(B,_.RD8);if(!B)return!1;var k,n;B=(k=B.topLevelButton)==null?void 0:(n=k.buttonViewModel)==null?void 0:n.onTap;if(!B)return!1;k=_.Mk(B);if(!k)return!1;var f;return((f=_.l(k,_.xB))==null?void 0:f.panelIdentifier)==="PAyouchat"})}return!1},kjQ=function(W){var e=[];
if(!_.S("web_watch_inject_placeholder_fantasy_panel_killswitch")){var t,b,m,q=(t=W.engagementPanels)==null?void 0:(b=t.find(function(X){var I;return((I=X.engagementPanelSectionListRenderer)==null?void 0:I.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(m=b.engagementPanelSectionListRenderer.content)==null?void 0:m.structuredDescriptionContentRenderer,Q;
_.l(q==null?void 0:(Q=q.items)==null?void 0:Q.find(function(X){return!!_.l(X,xml)}),xml)&&(t=_.z3Q("PAsports_fantasy"),t.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(t))}pIl(W)&&(W=_.z3Q("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e.push(W));
return e};_.jIw=function(W){_.ka.call(this);this.JSC$20469_watchApi=W;yPw(this)};
_.Z(_.jIw,_.ka);var yPw=function(W){W.JSC$20469_watchApi.registerActionHandler("yt-loop-command",function(e){CYS(W,e)});
W.JSC$20469_watchApi.registerActionHandler("yt-repeat-chapter-command",function(e){nx9(W,e)});
W.addOnDisposeCallback(function(){W.JSC$20469_watchApi.unregisterActionHandler("yt-loop-command");W.JSC$20469_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},CYS=function(W,e){var t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20469_watchApi.playerApi,2);t=b.yieldResult;_.l(e,MlC).loop?(t.setLoopRange({startTimeMs:Number(_.l(e,MlC).startTimeMs),endTimeMs:Number(_.l(e,MlC).endTimeMs),postId:_.l(e,MlC).postId,type:"clips"}),t.playVideo()):t.setLoopRange(null);_.u8(b)})},nx9=function(W,e){var t,b;
_.F(function(m){if(m.nextAddress==1)return _.a(m,W.JSC$20469_watchApi.playerApi,2);t=m.yieldResult;b=_.l(e,P1g).repeat;b==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(t.setLoopRange({startTimeMs:Number(_.l(e,P1g).startTimeMs),endTimeMs:Number(_.l(e,P1g).endTimeMs),type:"repeatChapter"}),t.playVideo()):b==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&t.setLoopRange(null);_.u8(m)})};_.gxC=function(W){_.ka.call(this);this.JSC$20474_watchApi=W;fe1(this)};
_.Z(_.gxC,_.ka);var fe1=function(W){W.JSC$20474_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(e){Tw9(W,e)});
W.addOnDisposeCallback(function(){W.JSC$20474_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Tw9=function(W,e){var t,b,m,q,Q,X,I,u,c,v,D;
_.F(function(B){if(B.nextAddress==1)return _.a(B,W.JSC$20474_watchApi.playerApi,2);t=B.yieldResult;if(q=(m=(b=_.l(e,VlT))==null?void 0:b.highlightedMenuItemKey)!=null?m:"")(X=(Q=t).highlightSettingsMenuItem)==null||X.call(Q,q);if(c=(u=(I=_.l(e,VlT))==null?void 0:I.openMenuItemKey)!=null?u:"")(D=(v=t).openSettingsMenuItem)==null||D.call(v,c);_.u8(B)})};var JPQ=_.X4("/youtube/app/watch/player_state","playerStateEntity");_.Oo$=function(W){_.ka.call(this);this.JSC$20477_watchApi=W;x8w(this)};
_.Z(_.Oo$,_.ka);var MqQ=function(W){switch(W){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"}},x8w=function(W){var e,t;
_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20477_watchApi.playerApi,2);e=b.yieldResult;t=function(m){W.onPlayerStateChange(m)};
e.addEventListener("onStateChange",t);W.addOnDisposeCallback(function(){e.removeEventListener("onStateChange",t)});
_.u8(b)})};
_.Oo$.prototype.onPlayerStateChange=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,e.JSC$20477_watchApi.playerApi,2);t=m.yieldResult;b=t.getVideoData().video_id;_.Yt().dispatch(_.SX("playerStateEntity",JPQ,{key:JPQ,playerState:MqQ(W),videoId:b}));_.u8(m)})};_.h5w=function(W){_.ka.call(this);var e=this;this.JSC$20481_watchApi=W;this.enableExternalPlaylistPanelInPlayer=_.S("delhi_web_player_use_external_playlist_panel");_.ee().resolve(_.Oj).setPlayer(this.JSC$20481_watchApi.getElement("PLAYER"));W=this.JSC$20481_watchApi.subscribeToActiveChanged(function(t){e.onActiveChanged(t)});
this.addOnDisposeCallback(W);sIQ(this)};
_.Z(_.h5w,_.ka);var sIQ=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return W.enableExternalPlaylistPanelInPlayer?_.a(b,W.JSC$20481_watchApi.playerApi,2):b.return();e=b.yieldResult;t=function(){if(W.playlistPanelElement)W.playlistPanelElement.onToggleExpanded()};
e.addEventListener("onToggleExternalPlaylistPanel",t);W.addOnDisposeCallback(function(){e.removeEventListener("onToggleExternalPlaylistPanel",t)});
_.u8(b)})};
_.h5w.prototype.onActiveChanged=function(W){var e=this,t=_.ee().resolve(_.Oj),b=function(){HoU(e)};
W?(this.playlistPanelElement=this.JSC$20481_watchApi.getElement("PLAYLIST_PANEL"))?(t.setPlaylistComponent(this.playlistPanelElement),t.addEventListener("yt-playlist-data-updated",b),this.addOnDisposeCallback(function(){t.removeEventListener("yt-playlist-data-updated",b)}),HoU(this)):_.Kt(Error("lm")):(t.removeEventListener("yt-playlist-data-updated",b),t.cancelVideoSkip())};
var HoU=function(W){var e=_.ee().resolve(_.Oj);W.JSC$20481_watchApi.provideRenderingData("PLAYLIST",e.getPlaylistData())};_.MB=function(W){_.ka.call(this);var e=this;this.JSC$20484_watchApi=W;this.onPageScroll=function(){e.scrollThrottle.fire();e.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.eS(this.onThrottledScroll,200,this);_.w$(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.eS(this.onMastheadThrottledScroll,50,this);_.w$(this,this.mastheadScrollThrottle);this.animation=new _.g7(function(t){e.JSC$20484_watchApi.getRoot().setScrollTop(t)});
W=_.S8(_.Eb(),_.HS,function(){e.onFullscreenChanged()});
this.addOnDisposeCallback(W);KBQ(this);PYT(this);this.onThrottledScroll()};
_.Z(_.MB,_.ka);
_.MB.prototype.onFullscreenChanged=function(){var W=this,e=this.JSC$20484_watchApi.getRoot();!this.pageScrollElement&&e.pageScrollElement?(this.pageScrollElement=e.pageScrollElement,e.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):this.pageScrollElement&&!e.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var KBQ=function(W){window.addEventListener("scroll",W.onPageScroll);W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},PYT=function(W){W.JSC$20484_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(e){a:{var t;
if(t=W.JSC$20484_watchApi.getRoot().contains(e)&&!W.animation.isAnimating()){t=e.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var b,m,q=(e==null?void 0:(b=e.parentElement)==null?void 0:(m=b.parentElement)==null?void 0:m.id)==="fixed-secondary";t=!(t&&q)}if(t){if(_.S("kevlar_watch_scroll_manager_absolute_offset_killswitch"))b=e.offsetTop;else for(b=0,m=e;m!==null;)b+=m.offsetTop,b-=m.scrollTop,m=m.offsetParent;m=b;b=m-24;e=m+e.offsetHeight+24;m=W.JSC$20484_watchApi.getRoot().getPageScrollingElement();
t=W.JSC$20484_watchApi.getRoot().getScrollTop();q=t+m.clientHeight-56;if(b<t+56)e=b-56;else if(e>q)e-=m.clientHeight;else break a;W.scrollWatchTo(Math.max(0,e),!0)}}});
W.addOnDisposeCallback(function(){W.JSC$20484_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.MB.prototype.onThrottledScroll=function(){var W=_.Eb(),e=W.dispatch,t=this.JSC$20484_watchApi.getRoot().getScrollTop();e.call(W,_.rO({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:t}}))};
_.MB.prototype.onMastheadThrottledScroll=function(){this.JSC$20484_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20484_watchApi.getRoot().getScrollTop())};
_.MB.prototype.scrollWatchTo=function(W,e){(e===void 0?0:e)?this.animation.start(this.JSC$20484_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$20484_watchApi.getRoot().setScrollTop(W)};_.YfS=function(W){_.ka.call(this);var e=this;this.JSC$20487_watchApi=W;var t=this.JSC$20487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){VqQ(e)}),b=this.JSC$20487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ioQ(e)});
this.addOnDisposeCallback(function(){e.JSC$20487_watchApi.unsubscribeByKey(t);e.JSC$20487_watchApi.unsubscribeByKey(b)});
VqQ(this);ioQ(this)};
_.Z(_.YfS,_.ka);
var VqQ=function(W){var e,t,b,m=(b=(e=W.JSC$20487_watchApi.getPlayerResponse())==null?void 0:(t=e.videoDetails)==null?void 0:t.title)!=null?b:"";W.JSC$20487_watchApi.dispatchEvent("yt-update-title",m)},ioQ=function(W){var e,t,b,m,q,Q,X,I=(X=((Q=(e=W.JSC$20487_watchApi.getWatchNextResponse())==null?void 0:(t=e.contents)==null?void 0:(b=t.twoColumnWatchNextResults)==null?void 0:(m=b.results)==null?void 0:(q=m.results)==null?void 0:q.contents)!=null?Q:[]).find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?
void 0:X.videoPrimaryInfoRenderer;
(e=_.Ub(I==null?void 0:I.title))&&W.JSC$20487_watchApi.dispatchEvent("yt-update-title",e)};_.U8u=function(W){_.ka.call(this);this.JSC$20490_watchApi=W;z5l(this)};
_.Z(_.U8u,_.ka);var z5l=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$20490_watchApi.playerApi,2);e=b.yieldResult;t=function(){W.onYpcContentRequest()};
e.addEventListener("onYpcContentRequest",t);W.addOnDisposeCallback(function(){e.removeEventListener("onYpcContentRequest",t)});
_.u8(b)})};
_.U8u.prototype.onYpcContentRequest=function(){var W,e,t,b,m,q=(W=this.JSC$20490_watchApi.getWatchNextResponse())==null?void 0:(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.secondaryResults)==null?void 0:(m=b.secondaryResults)==null?void 0:m.offerModule,Q,X,I,u;W=(u=(I=(X=(Q=q==null?void 0:q.episodeOfferModuleRenderer)!=null?Q:q==null?void 0:q.movieOfferModuleRenderer)!=null?X:q==null?void 0:q.unlimitedOfferModuleRenderer)!=null?I:q==null?void 0:q.liveOfferModuleRenderer)!=
null?u:q==null?void 0:q.tvfilmOfferModuleRenderer;var c,v,D;q=(D=q==null?void 0:(c=q.tvfilmOfferModuleRenderer)==null?void 0:(v=c.actionButtons)==null?void 0:v.length)!=null?D:0;v=Math.max(q-1,0);var B,k,n;c=(n=W==null?void 0:(B=W.offerButton)==null?void 0:B.buttonRenderer)!=null?n:W==null?void 0:(k=W.actionButtons)==null?void 0:k[v].buttonRenderer;var f,M;(B=(M=(f=c==null?void 0:c.navigationEndpoint)!=null?f:c==null?void 0:c.serviceEndpoint)!=null?M:c==null?void 0:c.command)&&_.uL.instance.resolveCommand(B)};
}catch(e){_._DumpException(e)}
try{
var bKu,WnB,NMT;_.dD1=function(){var W=_.kJ.clone(AJS),e;return(new _.c3(function(t,b){W.onSuccess=function(m){_.xnK(m)?t(new NMT(m)):b(new _.iu("Request failed, status="+_.R_(m),"net.badstatus",m))};
W.onError=function(m){b(new _.iu("Unknown request error","net.unknown",m))};
W.onTimeout=function(m){b(new _.iu("Request timed out","net.timeout",m))};
e=_.a_("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(t){if(t instanceof _.Lv){var b;
(b=e)==null||b.abort()}return _.jg(t)})};
_.eZC=function(W){a:{var e="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var t=W.raw_embedded_player_response;if(!t&&(W=W.embedded_player_response))try{t=JSON.parse(W)}catch(m){break a}if(t)b:for(var b in WnB)if(WnB[b]==t.embeddedPlayerMode){e=WnB[b];break b}}return e==="EMBEDDED_PLAYER_MODE_PFL"};
_.teu=function(){if(_.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.bHz())return Error("pf");var W=_.Ot("PLAYER_VARS",{});if(_.kJ.get(W,"privembed",!1)=="1")return Error("qf");if(_.eZC(W))return Error("rf")};
bKu=function(W){switch(W){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:_.Qw(W,"unknown result type")}};
_.mz1=function(W,e,t){e=_.E6z[e];t={detected:W===0,source:e.xgB,detectionResult:bKu(W),contentCpn:t};_.nJ("biscottiBasedDetection",t);_.Kjo.increment(e.xgB,W);e.nbm!==void 0&&_.xq("CATSTAT",_.UQs(W,e))};
_.YH=function(W,e){var t={};t.key=W;t.value=e;return _.CwG().then(function(b){return new Promise(function(m,q){try{var Q=b.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(t);Q.onsuccess=function(){m()};
Q.onerror=function(){q()}}catch(X){q(X)}})})};
_.qig=function(){var W=_.mn("user_engagement_experiments_rate_limit_ms"),e=rQT.get("last-user-engagement-exp-trigger-timestamp");return!e||(0,_.eJ)()>=e+W?(rQT.set("last-user-engagement-exp-trigger-timestamp",(0,_.eJ)()),!0):!1};
_.z8=function(W,e,t,b,m){e=e===void 0?null:e;t=t===void 0?null:t;b=b===void 0?null:b;m=m===void 0?null:m;W={youThereEventType:W};t&&(W.lactThresholdMs=t.lactThresholdMs,W.mediaPosSec=t.promptDelaySec,W.lactServerRequestMs=t.lactServerRequestMs,W.triggerReason=t.triggerReason);m!=null&&(W.renderingMediaPosSec=Math.round(m));e||(e=_.fc());e&&(W.clientScreenNonce=e);b&&(W.clientPlaybackNonce=b);_.nJ("youThere",W)};
WnB={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"};NMT=function(W){this.xhr=W};
_.iu=function(W,e,t){_.WZ.call(this,W+", errorCode="+e);this.errorCode=e;this.xhr=t;this.name="PromiseAjaxError"};
_.Z(_.iu,_.WZ);var AJS={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var rQT=new _.sH("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.gPg=function(W){return _.rO({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var K6,r0l,RXE,Qag,FrQ,Xk1,adM,Bnl,oUw,ld1,Idl,qYU,vUM,c01,kl1;_.mpw=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.iV(W)};
K6=function(W,e,t){var b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,e(),2);b=m.yieldResult;t(b,W);_.u8(m)})};
r0l=function(){return _.F(function(W){return W.nextAddress==1?_.a(W,(_.teu()!==void 0?_.jg(Error("sf")):_.dD1()).then(function(){return 1},function(e){if(e.message==="Biscotti id is disabled")return 3;
_.JC("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})};
RXE=function(){var W=_.Ww("LXBsYXllciNjaHYyeTdsbGZpeTl5dC1oYXZlbi1lbWJlZA=="),e=_.Ww("YW1lI3ZvdHp6YmEwenNlY2lmcg==");return document.querySelector(e+qYU+W)?0:1};
Qag=function(){return _.JhG(_.i6)};
FrQ=function(){return _.xQL()===0?0:_.OTS()};
Xk1=function(){return _.KyG(_.bTL([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
adM=function(){return _.p1s(Idl)};
_.wkC=function(W){_.F(function(e){switch(e.nextAddress){case 1:return _.a(e,K6("b.f_",r0l,W),2);case 2:return _.a(e,K6("j.s_",_.$Qv,W),3);case 3:return _.a(e,K6("r.s_",_.o6L,W),4);case 4:return _.a(e,K6("e.h_",adM,W),5);case 5:if(!_.S("ab_det_sc_inj")){e.jumpTo(6);break}return _.a(e,K6("s.i_",_.g6G,W),6);case 6:if(_.S("ab_deg_unex_thr")){e.jumpTo(8);break}return _.a(e,K6("a.o_",_.n6D,W),8);case 8:if(_.S("ks_get_o_pp")){e.jumpTo(10);break}return _.a(e,K6("g.o_",_.CTL,W),10);case 10:if(_.S("ks_det_gpbl")){e.jumpTo(12);
break}return _.a(e,K6("p.i_",_.jev,W),12);case 12:return _.a(e,K6("f.i_",_.X1s,W),14);case 14:return _.a(e,K6("a.b_",_.Suv,W),15);case 15:return _.a(e,K6("p.m_",_.w12,W),16);case 16:if(!_.S("ab_det_el_h_v2")){e.jumpTo(17);break}return _.a(e,K6("n.h_",Xk1,W),17);case 17:return _.a(e,K6("o.p_",Qag,W),19);case 19:return _.a(e,K6("e.i_",RXE,W),20);case 20:if(_.S("ab_det_apm"))return _.a(e,K6("o.a_",FrQ,W),0);e.jumpTo(0)}})};
_.u$E=function(W,e){W={videoId:W};e&&(W.playlistId=e);return W};
_.GlC=function(){if(_.bHz()){var W=_.Ot("PLAYER_VARS",{});if(_.kJ.get(W,"privembed",!1)!="1"&&!_.eZC(W)){var e=function(){c01=!0;"google_ad_status"in window?_.xq("DCLKSTAT",1):_.xq("DCLKSTAT",2)};
try{_.sT("//static.doubleclick.net/instream/ad_status.js",e)}catch(t){}vUM.push(_.Tm.addLowPriorityJob(function(){if(!(c01||"google_ad_status"in window)){try{_.L6c("//static.doubleclick.net/instream/ad_status.js",e)}catch(t){}c01=!0;_.xq("DCLKSTAT",3)}},5E3))}}};
_.Px=function(W,e,t){t=t===void 0?!1:t;var b=Math.max(W.width,_.R31);if(_.S("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.jy()&&W.height>=800)b-=_.wyC;else if(W.width>=_.Mp){var m=_.QOg+_.FsC+_.OY;_.S("kevlar_watch_feed_big_thumbs")&&(m=_.aPS);b-=m}else b-=_.QOg;b=Math.min(b,_.XyT);m=240;t&&(m=380);e<.5624||(!_.S("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.Mp&&W.width<1327)?m=360:!_.S("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(m=480));var q=Math.min(b*e,W.height-(56+_.qkE+_.IPl));q=Math.max(q,m);e<1?b=q/e:W.width>=_.Mp&&(b=_.Px(W,.5625,t).width);return new _.aD(Math.round(b),Math.round(q))};
_.Dp1=function(W){var e=0;W.indexOf("h")!=-1&&(W=W.split("h"),e=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),e=W[0]*60+e,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),e=W[0]*1+e):e=W*1+e;return e};
_.SYB=function(){_.mn("service_worker_push_logged_out_prompt_watches")!=-1&&_.N1("WatchCount").then(function(W){W>=100||_.YH("WatchCount",W+1)})};
Bnl=function(W){var e=W.externalVideoId||"";return e?W.isShortsEligible?"https://www.youtube.com/shorts/"+e:"https://www.youtube.com/watch?v="+e:""};
oUw=function(W){var e=[];W.viewCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&e.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return e};
ld1=function(W){var e,t,b={"@context":"https://schema.org","@type":"VideoObject",description:_.Ub(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.Ub(W.title),thumbnailUrl:((e=W.thumbnail)==null?void 0:(t=e.thumbnails)==null?void 0:t.map(function(c){return c&&c.url||""}))||[],
uploadDate:W.publishDate};_.S("mweb_video_schema_id_killswitch")||(b["@id"]=Bnl(W));e=oUw(W);e.length&&(b.interactionStatistic=e);W.category&&(b.genre=W.category);W.ownerChannelName&&(b.author=W.ownerChannelName);W.liveBroadcastDetails&&(b.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;b["@type"]=["VideoObject","LearningResource"];var m;if((m=W.learningResourceType)==
null?0:m.length)b.learningResourceType=W.learningResourceType[0];var q;if((q=W.educationalAlignment)==null?0:q.length)b.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var Q;if((Q=W.educationalLevel)==null?0:Q.length){m=W.educationalLevel[0];var X;if((X=W.educationalLevelCountry)==null?0:X.length)m+=" ("+W.educationalLevelCountry+")";b.educationalLevel=m}var I,u;if(((I=W.learningResourceType)==null?0:I.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((u=W.problemDescriptions)==null?0:u.length))for(b.hasPart=[],X=_.R(W.problemDescriptions),I=X.next();!I.done;I=X.next())m=I.value,I=m.problemDescriptionText,u=m.startOffset,m=m.url,I&&u!==void 0&&m&&b.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:I,text:I,startOffset:u,url:m})}return b};
_.Zk1=function(W){return _.rO({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
Idl=[[["eSNmeWVyMnEzNnI5cHNwcmltYXI=",null,null],[null,["enE5eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjY21oOGpoeGI3","bHR5aWF4c3R5bGUtc2NvcGUjY2QwZnh0"],null],["ZzV4bXg4bWFzdGhlYWQtYWQjcWhoenF3",["bmRlcmVyI3BzNWMxZG4wbWE5aHl0ZC1yaWNoLWdyaWQtcmU="],null],[null,["bmRlcmVyI292Y3ljdHJoMmtzdHl0ZC1yaWNoLWdyaWQtcmU=","M3Vyampvc3R5bGUtc2NvcGUjZ2JxcXRl"],null],[null,["cmVyI2h6dHByaG1sZTY5MHl0ZC1iYW5uZXItcHJvbW8tcmVuZGU=","amU4ejJzc3R5bGUtc2NvcGUjbWY3aXlv"],null],[null,["cmVuZGVyZXIjeWlvOWxjaWwzbXIyeXRkLWFkLXNsb3Qt"],
null]],[["aW5ydWcwY25wbGF5ZXItYWRzI2sxMDE=",null,null]]];qYU="#";vUM=[];c01=!1;_.$pg=["engagement-panel-ads"];kl1=new _.z("updateSentimentBarStateCommand");_.pkC=new _.z("showSurveyCommand");_.Vi=new _.z("changeMarkersVisibilityCommand");var jaM,CqC,Tn9,gUE,fd1,i_;_.y0C=function(W,e){this.playerProvider_=W;this.actionSenderElement_=e;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.y0C.prototype.reset=function(){jaM(this);this.isUserPredictedAbsent_=!1};
jaM=function(W,e){!W.youThereData_||W.showWarningJob_||e!==void 0&&e||(_.z8("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.fc(),W.youThereData_,W.clientPlaybackNonce_),_.fJ());_.Tm.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.Tm.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.Tm.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.nUB=function(W,e){var t,b,m;_.F(function(q){if(q.nextAddress==1)return W.reset(),_.a(q,W.playerProvider_().getPlayerPromise(),2);t=q.yieldResult;W.clientPlaybackNonce_=t.getVideoData().cpn;W.youThereData_=e.configData.youThereData;if(!W.youThereData_)return q.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.qig())return _.z8("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.fc(),W.youThereData_,W.clientPlaybackNonce_),q.return();b=W.youThereData_.promptDelaySec;
m=t.getCurrentTime();W.showWarningJob_=_.Tm.addLowPriorityJob(function(){return _.F(function(Q){W.showWarningJob_=0;return _.a(Q,CqC(W),0)})},Math.max(b-m,0)*1E3);
_.u8(q)})};
CqC=function(W){var e,t,b,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return _.a(X,W.playerProvider_().getPlayerPromise(),2);if(X.nextAddress!=3)return e=X.yieldResult,t=e.getCurrentTime(),_.a(X,fd1(W),3);b=X.yieldResult;if(!b||!W.youThereData_)return X.return();if(_.S("check_user_lact_at_prompt_shown_time_on_web")&&(m=parseInt(W.youThereData_.lactThresholdMs,10),_.be()<m))return _.z8("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.fc(),W.youThereData_,W.clientPlaybackNonce_),X.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return gUE(W),X.return();!_.S("external_fullscreen")&&(q=_.ty())&&(W.ignoreFullscreenExitUserActivity_=!0,_.Tm.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.bc(q));
W.youThereData_.showToastWarningPrompt&&(i_(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.z8("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.fc(),W.youThereData_,W.clientPlaybackNonce_,t),_.z8("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.fc(),W.youThereData_,W.clientPlaybackNonce_,t));Q=0;W.youThereData_.blockingPromptDelayMs&&(Q=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.Tm.addLowPriorityJob(function(){return _.F(function(I){W.showBlockingWarningJob_=0;return _.a(I,
Tn9(W),0)})},Q);
_.u8(X)})};
Tn9=function(W){var e,t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,fd1(W),2);e=m.yieldResult;if(!W.youThereData_)return m.return();e&&(W.youThereData_.showBlockingWarningAction&&(_.z8("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.fc(),W.youThereData_,W.clientPlaybackNonce_),(t=_.l(W.youThereData_.showBlockingWarningAction,_.wy))?i_(W,t.commands):i_(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),b=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.Tm.addLowPriorityJob(function(){return _.F(function(q){W.pausePlaybackJob_=0;return _.a(q,gUE(W),0)})},b));
_.u8(m)})};
gUE=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,fd1(W),2);e=t.yieldResult;if(!W.youThereData_)return t.return();e&&(_.z8("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.fc(),W.youThereData_,W.clientPlaybackNonce_),i_(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.u8(t)})};
_.y0C.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.l(this.youThereData_.userActiveDuringFlowAction,_.wy);W?i_(this,W.commands):i_(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.z8("YOU_THERE_EVENT_TYPE_LACT_RESET",_.fc(),this.youThereData_,this.clientPlaybackNonce_),_.fJ());jaM(this,!0)}_.J0$(this,!1)};
_.xpB=function(W){_.z8("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.fc(),W.youThereData_,W.clientPlaybackNonce_)};
fd1=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.playerProvider_().getPlayerPromise(),2);e=b.yieldResult;t=e.getPlayerState();return b.return(t==-1||t==1||t==3)})};
_.J0$=function(W,e){var t;_.F(function(b){if(b.nextAddress==1){if(W.isUserPredictedAbsent_==e)return b.jumpTo(0);W.isUserPredictedAbsent_=e;return _.a(b,W.playerProvider_().getPlayerPromise(),3)}t=b.yieldResult;t.setUserEngagement(e);e&&_.z8("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.fc(),W.youThereData_,W.clientPlaybackNonce_);_.u8(b)})};
i_=function(W,e){if(_.S("handle_service_request_actions")||_.S("kevlar_youthere_service_endpoint_actions_killswitch"))_.IT(W.actionSenderElement_,e,W.actionSenderElement_);else{e=_.R(e);for(var t=e.next();!t.done;t=e.next())t=t.value,t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.X5(W.actionSenderElement_,[t]):_.IT(W.actionSenderElement_,[t],W.actionSenderElement_)}};var OkT;var Mc$;var Yz=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.Z(Yz,_.O);Yz.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.rz(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
Yz.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.l(W,kl1).likeStatus)};
Yz.prototype.observeLikeStatus=Yz.prototype.observeLikeStatus;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Yz.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yz.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Yz.prototype,"activated",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Yz.prototype,"systemIcons",void 0);_.P([_.ul("data.likeStatus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yz.prototype,"observeLikeStatus",null);_.P([_.h({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Yz);
_.H(Yz,"ytd-sentiment-bar-renderer",function(){if(Mc$!==void 0)return Mc$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Mc$=W},{mode:1});var saS;var z6=function(){var W=_.O.apply(this,arguments)||this;W.small=!0;return W};
_.Z(z6,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],z6.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],z6.prototype,"small",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],z6);
_.H(z6,"ytd-video-view-count-renderer",function(){if(saS!==void 0)return saS;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return saS=W},{mode:_.Qe("kevlar_poly_si_batch_j080")?1:2});var UC=function(){var W=_.O.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.S("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.S("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.Z(UC,_.O);_.r=UC.prototype;_.r.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.r.dataChanged=function(){_.S("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.r.computeInfoFormattedStrings=function(W){if(!W)return[];var e=[];W.dateText&&e.push(W.dateText);W.stationName&&e.push(W.stationName);W.rating&&e.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&e.push(_.zq(_.kKg(_.Ub(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&e.push(W.upNextProgramText);return e};
_.r.scheduleInitialUpdatedMetadataRequest=function(){var W,e=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(e){var t;W=Number((t=_.l(e,_.KWP))==null?void 0:t.initialDelayMs);t=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),t)}};
_.r.setSentimentBarWidth=function(){var W=this;_.Uc(this,function(){var e=_.rz(W.hostElement).querySelector("ytd-menu-renderer");if(e){e=e.topLevelButtons;for(var t=0,b=0;b<e.length;b++){var m=e[b],q=W.get("toggleButtonSupportedData.toggleButtonIdData.id",m.data);if(q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||q==="TOGGLE_BUTTON_ID_TYPE_LIKE")t+=m.clientWidth+8;else break}t&&(W.sentiment.style.width=t-8+" px")}})};
_.r.fetchUpdatedMetadata=function(W){var e;W&&(e={continuation:W});var t;(W=(t=this.data)==null?void 0:t.updatedMetadataEndpoint)&&_.ee().resolve(_.tQ).resolveCommand(W,{form:Object.assign({},e,{element:this.hostElement})})};
_.r.onYtServiceRequestSent=function(W,e){e.endpoint&&_.l(e.endpoint,_.UR)&&(this.hasUpdateSentimentBarStateCommands()&&!_.S("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.l(e.endpoint,_.UR).status),this.setSentimentBarWidth())};
_.r.hasUpdateSentimentBarStateCommands=function(){var W,e,t,b,m=(b=(W=this.data)==null?void 0:(e=W.videoActions)==null?void 0:(t=e.menuRenderer)==null?void 0:t.topLevelButtons)!=null?b:[];W=_.R(m);for(e=W.next();!e.done;e=W.next()){e=e.value;m=b=t=void 0;var q=(t=e.toggleButtonRenderer)==null?void 0:(b=t.toggleButtonSupportedData)==null?void 0:(m=b.toggleButtonIdData)==null?void 0:m.id;if(q==="TOGGLE_BUTTON_ID_TYPE_LIKE"||q==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){b=t=void 0;e=(b=_.l((t=e.toggleButtonRenderer)==
null?void 0:t.defaultServiceEndpoint,_.wy))==null?void 0:b.commands;if(!e)break;e=_.R(e);for(t=e.next();!t.done;t=e.next())if(_.l(t.value,kl1))return!0}}return!1};
_.r.onYtServiceRequestCompleted=function(W,e){var t;(W=(t=e.data)==null?void 0:t.loggingDirectives)&&_.CdK(_.Sg(),W);this.get("continuation.timedContinuationData",e.data)&&this.data&&this.data.updatedMetadataEndpoint&&(e=e.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,e.continuation),e.timeoutMs))};
_.r.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.Ec.Object.defineProperties(UC.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return!((b=(W=this.data)==null?void 0:(e=W.videoActions)==null?void 0:(t=e.menuRenderer)==null?void 0:t.flexibleItems)==null||!b.length)}}});
UC.prototype.onYtServiceRequestCompleted=UC.prototype.onYtServiceRequestCompleted;UC.prototype.onYtServiceRequestSent=UC.prototype.onYtServiceRequestSent;UC.prototype.dataChanged=UC.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],UC.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.e$.YtTaskEmitterBehavior),_.Y("design:type",Object)],UC.prototype,"ytTaskEmitterBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],UC.prototype,"data",void 0);_.P([_.J({computed:"computeInfoFormattedStrings(data)"}),_.Y("design:type",Array)],UC.prototype,"infoFormattedStrings",void 0);
_.P([_.J({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],UC.prototype,"hasDateText",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],UC.prototype,"wrapVideoActions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],UC.prototype,"hideSentimentBar",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UC.prototype,"flexMenuEnabled",null);
_.P([_.vG("#sentiment"),_.Y("design:type",Object)],UC.prototype,"sentiment",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UC.prototype,"dataChanged",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],UC.prototype,"onYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],UC.prototype,"onYtServiceRequestCompleted",null);
_.H(UC,"ytd-video-primary-info-renderer",function(){if(OkT===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);OkT=W}W=OkT;return W},{mode:1});var hXB;var L6=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.Z(L6,_.O);_.r=L6.prototype;_.r.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"}}}};
_.r.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var e;this.collapsed=this.descriptionAlwaysCollapsed||!((e=this.data)==null?0:e.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.na(110509);this.showLessClientVe=_.na(110510);W=_.fc();e=_.nc();W&&e&&_.P6(W,e,[this.showMoreClientVe,this.showLessClientVe])};
_.r.onYtExpanderMoreTapped=function(){var W,e=(W=this.data)==null?void 0:W.showMoreCommand;e&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(e);(W=_.fc())&&this.showMoreClientVe&&_.zv(W,this.showMoreClientVe)};
_.r.onYtExpanderLessTapped=function(){var W=_.fc();W&&this.showLessClientVe&&_.zv(W,this.showLessClientVe);var e;(W=(e=this.data)==null?void 0:e.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.r.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.l(W,_.WsU).dateText)};
_.r.handleUpdateDescriptionAction=function(W){if(W=_.l(W,_.Tvh))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Tf(W.description)):this.set("data.description",W.description)};
_.r.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.S("web_structured_description_show_more")||_.S("web_engagement_panel_open_description")){var e,t=(e=_.l(W,_.o28))==null?void 0:e.targetId,b;W=((b=_.l(W,_.o28))==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";t==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.r.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.r.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.r.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.Ec.Object.defineProperties(L6.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.metadataRowContainer)==null?void 0:e.metadataRowContainerRenderer;return!!t&&!!t.rows&&t.rows.length>t.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
L6.prototype.onYtExpanderLessTapped=L6.prototype.onYtExpanderLessTapped;L6.prototype.onYtExpanderMoreTapped=L6.prototype.onYtExpanderMoreTapped;L6.prototype.dataChanged=L6.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],L6.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],L6.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],L6.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],L6.prototype,"collapsed",void 0);_.P([_.J(),_.Y("design:type",Boolean)],L6.prototype,"descriptionToggled",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],L6.prototype,"canCollapse",void 0);_.P([_.J(),_.Y("design:type",Object)],L6.prototype,"subscribeButtonData",void 0);_.P([_.J(),_.Y("design:type",Number)],L6.prototype,"descriptionCollapsedHeight",void 0);_.P([_.J(),_.Y("design:type",Object)],L6.prototype,"structuredDescriptionContentRenderer",void 0);_.P([_.J({value:function(){return _.S("web_watch_description_always_collapsed")}}),
_.Y("design:type",Boolean)],L6.prototype,"descriptionAlwaysCollapsed",void 0);_.P([_.vG("#description"),_.Y("design:type",HTMLDivElement)],L6.prototype,"description",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"dataChanged",null);_.P([_.wz("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"onYtExpanderMoreTapped",null);
_.P([_.wz("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L6.prototype,"onYtExpanderLessTapped",null);_.P([_.T("data.metadataRowContainer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"metadataCollapsible",null);_.P([_.T("data","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"hasInlineStructuredDescription",null);
_.P([_.T("data.attributedDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"hasAttributedDescription",null);_.P([_.T("hasInlineStructuredDescription","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"loadStructuredDescription",null);_.P([_.T("data","structuredDescriptionContentRenderer","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"showInlineStructuredDescription",null);
_.P([_.T("data","hasInlineStructuredDescription","metadataCollapsible"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L6.prototype,"descriptionAlwaysCollapsible",null);
_.H(L6,"ytd-video-secondary-info-renderer",function(){if(hXB===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);hXB=W}W=hXB;return W},{mode:2});var Hk$;var EC=function(){return _.O.apply(this,arguments)||this};
_.Z(EC,_.O);EC.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:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
EC.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(e){e.setMinimized(!0)});
this.active=!0};
EC.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(e){e.setMinimized(!1)});
this.active=!1;return W};
EC.prototype.onScrollUpTap=function(){var W=_.ee().resolve(_.WS).getCurrentPage();W&&W.setScrollTop(0)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],EC.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],EC.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EC.prototype,"active",void 0);
_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Y("design:type",Boolean)],EC.prototype,"darkLaunch",void 0);_.P([_.vG("#player"),_.Y("design:type",HTMLDivElement)],EC.prototype,"player",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],EC);
_.H(EC,"ytd-miniplayer-bar-renderer",function(){if(Hk$!==void 0)return Hk$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Hk$=W},{mode:1});_.mM(_.NN(function(W){var e=_.zT("script");_.nh(function(){var t;if(t=JSON)t=ld1(W.data()),t=_.Mt(JSON.stringify(t).replace(/</g,"\\u003C"));var b=W.data(),m=_.Ub(b.title).trim().length===0,q=!b.publishDate||b.publishDate.trim().length===0,Q,X,I,u,c=!((Q=b.thumbnail)==null?0:(X=Q.thumbnails)==null?0:X.length)||!((I=b.thumbnail)==null?0:I.thumbnails[0].url)||((u=b.thumbnail)==null?void 0:u.thumbnails[0].url.trim().length)===0;e.value&&t&&!(m||q||c)&&_.hK(e.value,t)},"I9AhLd");
return _.w("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.w("script",{el:e,type:"application/ld+json"}))},"wj"),"player-microformat-renderer",{props:{data:_.bt}});
}catch(e){_._DumpException(e)}
try{
var eXu;_.LBT=function(W){return W.watch.watchWindowSize};
_.ExS=function(W){return _.rO({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
eXu=function(W){_.ka.call(this);var e=this;this.JSC$20494_watchApi=W;W=_.S8(_.Eb(),_.EsZ,function(){APl(e)});
this.addOnDisposeCallback(W);W=_.S8(_.Eb(),_.LBT,function(){APl(e)});
this.addOnDisposeCallback(W);Nww(this);d8S(this);WrC()};
_.Z(eXu,_.ka);var Nww=function(W){var e=function(b){_.Eb().dispatch(_.ShT(b.matches))},t=window.matchMedia("(max-width: "+(999+_.jy())+"px)");
t.addListener(e);W.addOnDisposeCallback(function(){t.removeListener(e)});
e(t)},d8S=function(W){W.JSC$20494_watchApi.registerActionHandler("yt-window-resized",function(){WrC()});
W.addOnDisposeCallback(function(){W.JSC$20494_watchApi.unregisterActionHandler("yt-window-resized")})},WrC=function(){var W=_.lm();
_.Eb().dispatch(_.rO({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},APl=function(W){var e;
_.F(function(t){if(t.nextAddress==1)return _.a(t,W.JSC$20494_watchApi.playerApi,2);e=t.yieldResult;e.setSize(NaN,NaN);_.u8(t)})};_.sC=function(W){_.Li.call(this);var e=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(t){e.initOrDisposeActiveModules(t)}));
this.onAttached()};
_.Z(_.sC,_.Li);_.r=_.sC.prototype;_.r.getRoot=function(){return this.rootElement};
_.r.getElement=function(W){return this.rootElement.getElement(W)};
_.r.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.r.getPlayerResponse=function(){return this.playerResponse};
_.r.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.r.getWatchNextResponse=function(){return this.watchNextResponse};
_.r.registerActionHandler=function(W,e){var t=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.Vo(_.P3.getInstance(),(b[W]=e,b),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),b={},_.Vo(_.P3.getInstance(),(b[W]=function(){var m=_.$N.apply(0,arguments);return(t.actionHandlers.get(W)||[]).map(function(q){return q.apply(null,_.kP(m))})},b),this.getRoot())),this.actionHandlers.get(W).push(e)};
_.r.unregisterActionHandler=function(W){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.ie(_.P3.getInstance(),(e[W]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(W))?(e.pop(),e.length===0&&(e={},_.ie(_.P3.getInstance(),(e[W]=!0,e),this.getRoot()),this.actionHandlers.delete(W))):_.JC(new _.o_("Attempted to unregister an action handler which is not registered.",W))};
_.r.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Y9(this.rootElement.pageDisposeJobs,W)};
_.r.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.UL(this.rootElement.pageDisposeJobs,W)};
_.r.dispatchEvent=function(W,e){_.q2(this.rootElement,W,e)};
_.r.provideRenderingData=function(W,e){this.rootElement.provideRenderingData(W,e)};
_.r.scrollWatchTo=function(W,e){var t;(t=this.watchScrollManager)==null||t.scrollWatchTo(W,e)};
_.r.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.Uc(W,function(){if(W&&W.firstElementChild){var e=W.querySelector(".html5-video-player");e&&(_.Ep(_.ee().resolve(_.gd)),e.focus())}else _.JC(Error("mm"))})};
_.r.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,t;(t=this.watchCinematicManager)==null||_.Lpw(t,e,W)};
_.r.subscribeToActiveChanged=function(W,e){e=e===void 0?!0:e;var t=_.S8(_.Eb(),_.pPw,function(b){W(b)});
e&&W(_.pPw(_.Eb().getState()));return t};
_.r.isActive=function(){return _.pPw(_.Eb().getState())};
_.r.onAttached=function(){var W=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(W=_.ee().resolve(_.IDC).retriever.getFlag(_.dYN));(W||_.MD("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var tcS=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},hZ=function(W){return W.getRoot().is==="ytd-watch-fixie"};
_.sC.prototype.initPersistentModules=function(){if(hZ(this)||tcS(this)&&_.S("kevlar_watch_flexy_theater_manager")){var W=new _.ZEM(this);_.w$(this,W)}W=new _.QIU(this);_.w$(this,W);W=new _.jb(this);_.w$(this,W);W=new _.xz(this);_.w$(this,W);W=new _.Oo$(this);_.w$(this,W);W=new _.n6(this);_.w$(this,W);if(hZ(this)||tcS(this)&&_.S("kevlar_watch_flexy_playlist_manager"))W=new _.h5w(this),_.w$(this,W)};
_.sC.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.MB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.leU(this)),this.activeModules.push(new _.y9C(this)),hZ(this)&&this.activeModules.push(new eXu(this)),this.activeModules.push(new _.YfS(this)),this.activeModules.push(new _.OC(this)),(hZ(this)||_.S("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.fLQ(this)),this.activeModules.push(new _.jIw(this)),
(hZ(this)||_.S("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.U8u(this)),(hZ(this)||_.S("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.hEU(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.iE$(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gxC(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qfU(this)),
W=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.e5$(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.C6(this)),this.activeModules.push(new _.fww(this)),this.activeModules.push(new _.$8g(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.xjw(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.mjC(this)),
_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.LQl(this)),_.S("web_fullscreen_components")&&this.activeModules.push(new _.x0$(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.q$l(this))):(_.d6(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.sC.prototype.disposeInternal=function(){_.Li.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Ec.Object.defineProperties(_.sC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var vH1,pE,G8C,DTl,BHC,oHu,SMU,lXE;vH1=function(){var W=_.lc();W.info||(W.info={});return W.info};
pE=function(W){return Math.round(_.pe()+W)};
G8C=function(){var W;if(_.S("csi_use_performance_navigation_timing")){var e,t,b,m=_.kh==null?void 0:(W=_.kh.getEntriesByType)==null?void 0:(e=W.call(_.kh,"navigation"))==null?void 0:(t=e[0])==null?void 0:(b=t.toJSON)==null?void 0:b.call(t);m?(m.requestStart=pE(m.requestStart),m.responseEnd=pE(m.responseEnd),m.redirectStart=pE(m.redirectStart),m.redirectEnd=pE(m.redirectEnd),m.domainLookupEnd=pE(m.domainLookupEnd),m.connectStart=pE(m.connectStart),m.connectEnd=pE(m.connectEnd),m.responseStart=pE(m.responseStart),
m.secureConnectionStart=pE(m.secureConnectionStart),m.domainLookupStart=pE(m.domainLookupStart),m.isPerformanceNavigationTiming=!0,W=m):W=_.kh.timing}else W=_.S("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.kh.timing)):_.kh.timing;return W};
DTl=function(){if(_.kh.getEntriesByType){var W=_.kh.getEntriesByType("paint");if(W=_.Ms(W,function(t){return t.name==="first-paint"}))return pE(W.startTime)}var e;
_.S("csi_use_performance_navigation_timing")?e=_.kh.getEntriesByType("first-paint")[0].startTime:e=_.kh.timing.msFirstPaint;return e?Math.max(0,e):0};
BHC=function(){var W=window.location.protocol,e=_.kh.getEntriesByType("resource");e=_.Xi(e,function(t){return t.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(e=SMU(e,function(t,b){return b.duration>t.duration?b:t}))&&e.startTime>0&&e.responseEnd>0&&(_.yx("wffs",pE(e.startTime)),_.yx("wffe",pE(e.responseEnd)))};
oHu=function(W,e){W=document.querySelector(W);if(!W)return!1;var t="",b=W.nodeName;b==="SCRIPT"?(t=W.src,t||(t=W.getAttribute("data-timing-href"))&&(t=window.location.protocol+t)):b==="LINK"&&(t=W.href);_.JK(document)&&W.setAttribute("nonce",_.JK(document));return t?(W=_.kh.getEntriesByName(t))&&W[0]&&(W=W[0],t=_.pe(),_.yx("rsf_"+e,t+Math.round(W.fetchStart)),_.yx("rse_"+e,t+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.yL=function(W,e){_.hJ(function(){_.$h("").info.actionType=W;e&&_.xq("TIMING_AFT_KEYS",e);_.xq("TIMING_ACTION",W);var t=_.URZ(_.Ot("TIMING_INFO",{}));Object.keys(t).length>0&&_.jz(t);t={isNavigation:!0,actionType:_.JFZ(_.Ot("TIMING_ACTION"))};var b=_.Ot("PREVIOUS_ACTION");b&&(t.previousAction=_.JFZ(b));if(b=_.Ot("CLIENT_PROTOCOL"))t.httpProtocol=b;if(b=_.Ot("CLIENT_TRANSPORT"))t.transportProtocol=b;(b=_.fc())&&b!=="UNDEFINED_CSN"&&(t.clientScreenNonce=b);b=_.z6L();if(b===1||b===-1)t.isVisible=!0;
b=_.phQ().loadType==="cold";var m=vH1();b||(b=m.yt_lt==="cold");if(b){t.loadType="cold";b=vH1();m=G8C();var q=_.pe(),Q=_.Ot("CSI_START_TIMESTAMP_MILLIS",0);Q>0&&!_.S("embeds_web_enable_csi_start_override_killswitch")&&(q=Q);q&&(_.yx("srt",m.responseStart),b.prerender!==1&&_.h6v(q));b=DTl();b>0&&_.yx("fpt",b);b=G8C();b.isPerformanceNavigationTiming&&_.jz({performanceNavigationTiming:!0},void 0);_.yx("nreqs",b.requestStart,void 0);_.yx("nress",b.responseStart,void 0);_.yx("nrese",b.responseEnd,void 0);
b.redirectEnd-b.redirectStart>0&&(_.yx("nrs",b.redirectStart,void 0),_.yx("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(_.yx("ndnss",b.domainLookupStart,void 0),_.yx("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(_.yx("ntcps",b.connectStart,void 0),_.yx("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=_.pe()&&b.connectEnd-b.secureConnectionStart>0&&(_.yx("nstcps",b.secureConnectionStart,void 0),_.yx("ntcpe",b.connectEnd,void 0));_.kh&&"getEntriesByType"in
_.kh&&BHC();b=[];if(document.querySelector&&_.kh&&_.kh.getEntriesByName)for(var X in lXE)lXE.hasOwnProperty(X)&&(m=lXE[X],oHu(X,m)&&b.push(m));if(b.length>0)for(t.resourceInfo=[],X=_.R(b),b=X.next();!b.done;b=X.next())t.resourceInfo.push({resourceCache:b.value})}_.jz(t);t=_.Z8();t.preLoggedGelInfos||(t.preLoggedGelInfos=[]);X=t.preLoggedGelInfos;t=_.j89();b=void 0;for(m=0;m<X.length;m++)if(q=X[m],q.loadType){b=q.loadType;break}if(_.phQ().loadType==="cold"&&(t.loadType==="cold"||b==="cold")){b=_.yFZ();
m=_.Z8();m=m.gelTicks?m.gelTicks:m.gelTicks={};for(var I in b)if(!(I in m))if(typeof b[I]==="number")_.yx(I,_.Ce(I));else if(_.S("log_repeated_ytcsi_ticks"))for(q=_.R(b[I]),Q=q.next();!Q.done;Q=q.next())Q=Q.value,_.yx(I.slice(1),Q);I={};b=!1;X=_.R(X);for(m=X.next();!m.done;m=X.next())b=m.value,_.x4(t,b),_.x4(I,b),b=!0;b&&_.jz(I)}_.NUG(!0);I=_.Ot("TIMING_ACTION");_.HO("ytglobal.timingready_")&&I&&_.Q3g()&&_.AFZ()&&_.iHz()})()};
SMU=function(W,e){return Array.prototype.reduce.call(W,e,{duration:0})};
lXE={'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 Zig={};Zig.YtVisibilityRootBehavior=[_.OLr.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.NL(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Ot("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.Ot("INNERTUBE_CLIENT_NAME")!=="WEB";_.S("kevlar_use_vimio_behavior")&&W&&_.TqU()}}];_.j4={};_.j4.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Zig.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.UZ();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var e=this;this.pageCount+=1;_.S("kevlar_use_vimio_behavior")&&(_.Ot("INNERTUBE_CLIENT_NAME")==="WEB"?_.Tm.addJob(function(){e.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var e=this;_.S("kevlar_use_vimio_behavior")&&(W?_.Ot("INNERTUBE_CLIENT_NAME")==="WEB"?_.Tm.addJob(function(){e.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var e=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){e.setScrollTopJobId_=0;var t=_.ee().resolve(_.Wi(_.gd));t&&_.Ep(t);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.pd(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var cR1;var k1=function(){var W=_.O.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.Z(k1,_.O);_.r=k1.prototype;_.r.dataChanged=function(){var W=this,e=_.tv();e&&e.getPlayerPromise().then(function(b){W.maybeRemovePlayerListeners(b)});
var t=this.data&&this.data.survey;t&&((t=(t=t.singleOptionSurveyRenderer||t.checkboxSurveyRenderer||t.multiStageSurveyRenderer)&&t.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(e,t):this.openSurvey())};
_.r.triggerWatchPageSurvey=function(W,e){var t=this,b,m,q,Q,X,I,u,c,v;return _.F(function(D){if(D.nextAddress==1)return W?_.a(D,W.getPlayerPromise(),2):D.return();t.player=D.yieldResult;if(!t.player)return D.return();b={};m=_.R(e);for(q=m.next();!q.done;q=m.next())Q=q.value,X=_.R(t.createEventListenerPair(Q)),I=X.next().value,u=X.next().value,c=I,v=u,c&&v&&(b[c]=v,t.ytPlayerListenerBehavior.listenToPlayerEvent(t.player,c,v));t.playerListenerConfig=b;_.u8(D)})};
_.r.createEventListenerPair=function(W){var e=W.playbackEventTrigger;return e?this.handlePlaybackTrigger(e):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.r.handleWatchTimeTrigger=function(W){var e=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var t=W.videoWatchFraction,b=W.watchTimeSec;return b&&t?["onVideoProgress",function(){e.player&&e.isWatchTimeConditionMet(e.player,t,b)&&e.showSurvey()}]:[void 0,
void 0]};
_.r.isWatchTimeConditionMet=function(W,e,t){var b=W.getProgressState(),m=b.current-this.lastKnownPlaybackPosition;m<5&&(this.accumulatedMediaTime+=m);this.lastKnownPlaybackPosition=b.current;b=Math.round(this.accumulatedMediaTime/b.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>t||b>e)};
_.r.handlePlaybackTrigger=function(W){var e=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var t="onStateChange";var b=function(m){m===0&&e.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(t="onVideoProgress",b=function(m){e.player&&e.player.getPresentingPlayerType&&e.player.getPresentingPlayerType()===1&&m&&e.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(t="onAdEnd",b=this.showSurvey);
return[t,b]};
_.r.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.r.openSurvey=function(){var W=this,e=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.gPg(!!e));_.Tm.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:e}})},0,0)};
_.r.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var e=_.R(Object.keys(this.playerListenerConfig)),t=e.next();!t.done;t=e.next())t=t.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,t,this.playerListenerConfig[t]);this.playerListenerConfig=null}};
k1.prototype.dataChanged=k1.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],k1.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],k1.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],k1.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],k1.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],k1.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],k1.prototype,"playerListenerConfig",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],k1.prototype,"lastKnownPlaybackPosition",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],k1.prototype,"accumulatedMediaTime",void 0);_.P([_.J(),_.Y("design:type",Object)],k1.prototype,"player",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k1.prototype,"dataChanged",null);_.P([_.h({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],k1);
_.H(k1,"ytd-survey-trigger-renderer",function(){if(cR1!==void 0)return cR1;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cR1=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var QdU=new _.z("promotedSparklesWebRenderer");var FqQ=new _.z("relatedChipCommand");var XPS;var Ii1;var Dd=function(){return _.O.apply(this,arguments)||this};
_.Z(Dd,_.O);Dd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Dd.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dd.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Dd);
_.H(Dd,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Ii1!==void 0)return Ii1;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ii1=W},{mode:1});var aiQ;var wPM;var u7C;var Sc=function(){return _.O.apply(this,arguments)||this};
_.Z(Sc,_.O);Sc.prototype.ready=function(){this.initializeDefs()};
Sc.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),e=_.rz(W).querySelector("#star"),t=_.rz(W).querySelector("#star_half");W=_.rz(W).querySelector("#star_border");e&&this.defs.appendChild(e.cloneNode(!0));t&&this.defs.appendChild(t.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
Sc.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var e=Math.round(this.percent/10);W=Math.floor(e/2);e%=2;var t=5-W-e;this.appendStars("star",W,0);this.appendStars("star_half",e,W);this.appendStars("star_border",t,W+e)};
Sc.prototype.appendStars=function(W,e,t){for(var b=0;b<e;b++){var m=(18+this.spacing)*(b+t),q=document.createElementNS("http://www.w3.org/2000/svg","use");_.T9B(q,"#"+W);q.setAttribute("x",""+m);q.setAttribute("y","0");this.rating.appendChild(q)}};
Sc.prototype.percentChanged=Sc.prototype.percentChanged;_.P([_.vG("#defs"),_.Y("design:type",HTMLElement)],Sc.prototype,"defs",void 0);_.P([_.vG("#rating"),_.Y("design:type",HTMLElement)],Sc.prototype,"rating",void 0);_.P([_.J(),_.Y("design:type",Number)],Sc.prototype,"percent",void 0);_.P([_.J({value:6}),_.Y("design:type",Number)],Sc.prototype,"spacing",void 0);_.P([_.J({value:_.Zc.create("iron-meta",{type:"iconset"})}),_.Y("design:type",_.j3)],Sc.prototype,"meta",void 0);
_.P([_.ul("percent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sc.prototype,"percentChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-ratings"})],Sc);
_.H(Sc,"ytd-ratings",function(){if(u7C!==void 0)return u7C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return u7C=W},{mode:1});var Bk=function(){return _.O.apply(this,arguments)||this};
_.Z(Bk,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bk.prototype,"data",void 0);_.P([_.h({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Bk);
_.H(Bk,"ytd-offer-review-renderer",function(){if(wPM!==void 0)return wPM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wPM=W},{mode:1});var oa=function(){var W=_.O.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.zq("CC")}}];return W};
_.Z(oa,_.O);_.r=oa.prototype;_.r.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.r.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.l(W.commandMetadata,_.Cf)&&_.l(W.commandMetadata,_.Cf).fireAutomatically)_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}});else{var e;W&&((e=_.l(W,_.Cf))==null?0:e.fireAutomatically)&&_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})}};
_.r.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.r.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.r.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.r.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.r.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
oa.prototype.dataChanged=oa.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oa.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Y("design:type",Boolean)],oa.prototype,"hidden",void 0);
_.P([_.J(),_.Y("design:type",Object)],oa.prototype,"badges",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oa.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],oa);
_.H(oa,"ytd-movie-offer-module-renderer",function(){if(aiQ!==void 0)return aiQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return aiQ=W},{mode:1});var cIw;var lq=function(){return _.O.apply(this,arguments)||this};
_.Z(lq,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],lq.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lq.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],lq);
_.H(lq,"ytd-media-masthead-renderer",function(){if(cIw!==void 0)return cIw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return cIw=W},{mode:1});var vpw;_.mM(_.h48,"course-metadata-view-model",{props:{data:_.bt,isOverlay:_.bt}});var Zd=function(){var W=_.O.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.S("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.Z(Zd,_.O);_.r=Zd.prototype;
_.r.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"}}}}};
_.r.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.r.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.r.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.r.isExpandButtonToggled=function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.expandMetadataButton,_.pU))==null?void 0:e.isToggled};
_.r.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.r.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Zd.prototype.expanderChanged=Zd.prototype.expanderChanged;Zd.prototype.dataChanged=Zd.prototype.dataChanged;Zd.prototype.descriptionChanged=Zd.prototype.descriptionChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],Zd.prototype,"actionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Zd.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Zd.prototype,"isMetadataVisible",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Zd.prototype,"modernPanels",void 0);_.P([_.vG("#expander"),_.Y("design:type",Object)],Zd.prototype,"expander",void 0);_.P([_.ul("data.description"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zd.prototype,"descriptionChanged",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zd.prototype,"dataChanged",null);_.P([_.ul("isMetadataVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zd.prototype,"expanderChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Zd);
_.H(Zd,"ytd-tvfilm-offer-module-renderer",function(){if(vpw!==void 0)return vpw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vpw=W},{mode:2});var GKC;var $U=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.Z($U,_.O);$U.prototype.dataChanged=function(){this.hostElement.hidden=!1};
$U.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
$U.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.ee().resolve(_.tQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
$U.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
$U.prototype.dataChanged=$U.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$U.prototype,"rendererBehaviors",void 0);_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],$U.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$U.prototype,"data",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$U.prototype,"dataChanged",null);_.P([_.h({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],$U);
_.H($U,"ytd-unlimited-offer-module-renderer",function(){if(GKC!==void 0)return GKC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GKC=W},{mode:1});var DHC;var SIu;var kU=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.Z(kU,_.O);kU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
kU.prototype.handleRelatedChipCommand=function(W){W=_.l(W,FqQ);var e=W.contents;e?_.Qx(this.hostElement,"yt-item-section-replace-action",[e,W.targetSectionIdentifier]):_.Qx(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],kU.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kU.prototype,"data",void 0);_.P([_.gz({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],kU);
_.H(kU,"yt-related-chip-cloud-renderer",function(){if(SIu===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;DHC===void 0&&(DHC=document.createElement("template"));var b=DHC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);SIu=W}W=SIu;return W},{mode:2});var pk=function(){var W=_.O.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.S("kevlar_watch_feed_big_thumbs");W.watchNextGridHideChips=_.S("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.S("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.S("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.S("kevlar_watch_grid");W.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.Z(pk,_.O);_.r=pk.prototype;
_.r.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]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.S("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}}};
_.r.getItemsPath=function(){return"data.results"};
_.r.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.r.created=function(){this.ytLazyListBehavior.initialCount=1};
_.r.ready=function(){_.XB(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%"})};
_.r.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,e=null,t=null,b=0;b<W.length;b++)W[b].relatedChipCloudRenderer?e=W[b].relatedChipCloudRenderer:W[b].itemSectionRenderer&&(t=W[b].itemSectionRenderer);if(e&&t)for(this.set("data.continuations",[]),W=_.l(e.content,_.XQh).chips,e=0;e<W.length;e++)if(b=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[e]),b.loadCached||!b.contents){b.contents=t.contents;break}}};
_.r.dataChanged=function(){var W=this,e;if((e=this.data)!=null&&e.results&&this.hasAllowedInstreamAd(this.playerData)){if(e=this.data.results.filter(function(X){return!!X.promotedSparklesWebRenderer})){for(var t=0;t<e.length;t++){var b=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",e[t]);
if(b)for(var m=0;m<b.length;m++)b[m]&&b[m].baseUrl&&_.Vf(b[m].baseUrl)}this.set("data.results",this.data.results.filter(function(X){return!X.promotedSparklesWebRenderer}))}if(e=this.data.results.filter(function(X){return!!W.getSparklesAd(X)})){e=_.R(e);
for(m=e.next();!m.done;m=e.next())if(b=t=void 0,m=(t=this.getSparklesAd(m.value))==null?void 0:(b=t.errorCommand)==null?void 0:b.loggingUrls)for(t=_.R(m),b=t.next();!b.done;b=t.next())(b=b.value)&&b.baseUrl&&_.Vf(b.baseUrl);var q,Q;this.set("data.results",(q=this.data)==null?void 0:(Q=q.results)==null?void 0:Q.filter(function(X){return!X.adSlotRenderer}))}}};
_.r.getSparklesAd=function(W){var e,t;W=_.l((e=W.adSlotRenderer)==null?void 0:(t=e.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.j4U);return _.l(W==null?void 0:W.renderingContent,QdU)};
_.r.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var e=0;e<W.length;e++){var t=this.get("adPlacementRenderer.config.adPlacementConfig",W[e]);if(t&&t.suppressDisplayAd)return!0}return!1};
_.r.computeHideUnlimitedOfferModule=function(W,e){return W&&W.offerModule&&e&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(e)?!0:!1};
_.r.hideUnlimitedOfferModuleChanged=function(){var W=_.rz(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.r.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var e;(e=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||e.forEach(function(t){t.containerType=W})}};
_.r.computeHideTvfilmOfferModule=function(W,e){var t,b;return!!((W==null?0:(t=W.offerModule)==null?0:(b=t.tvfilmOfferModuleRenderer)==null?0:b.clientShouldSuppressIfCompanionAdDisplayed)&&e&&this.hasCompanionAds(e))};
_.r.hideTvfilmOfferModuleChanged=function(){var W=_.rz(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.r.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var e=0;e<W.length;e++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[e]))return!0;var t=void 0,b=void 0,m=void 0;if(!_.S("web_watch_top_banner_companion_check_killswitch")&&((t=W[e])==null?0:(b=t.adPlacementRenderer)==null?0:(m=b.renderer)==null?0:m.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.r.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(e){return!e.continuationItemRenderer&&!e.compactPromotedVideoRenderer&&!e.promotedSparklesWebRenderer}).length===0};
_.r.computeShowButton=function(W,e){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(e)};
_.r.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.rz(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.rz(this.hostElement).querySelector("yt-next-continuation");var e=_.rz(this.hostElement).querySelector("ytd-continuation-item-renderer"),t=_.rz(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);e&&(e.showButton=this.showButton);t&&(t.continuationShowButton=
this.showButton)}};
_.r.continuationTap=function(W){var e;if(((e=this.data)==null?void 0:e.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,e=0;e<W.length;e++)W[e].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[e].nextContinuationData||{})};
_.r.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("shown-items-changed",this.shownItems))};
_.Ec.Object.defineProperties(pk.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.shownItems)==null||!W.some(function(e){return!!e.lockupViewModel||e.compactVideoRenderer}))}}});
pk.prototype.shownItemsChangedForBinding=pk.prototype.shownItemsChangedForBinding;pk.prototype.showButtonChanged=pk.prototype.showButtonChanged;pk.prototype.hideTvfilmOfferModuleChanged=pk.prototype.hideTvfilmOfferModuleChanged;pk.prototype.updateLockupContainerTypes=pk.prototype.updateLockupContainerTypes;pk.prototype.hideUnlimitedOfferModuleChanged=pk.prototype.hideUnlimitedOfferModuleChanged;pk.prototype.dataChanged=pk.prototype.dataChanged;pk.prototype.resultsChanged=pk.prototype.resultsChanged;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],pk.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.VU.YtNextContinuationBehavior),_.Y("design:type",Object)],pk.prototype,"ytNextContinuationBehavior",void 0);
_.P([_.y(_.PB),_.Y("design:type",Object)],pk.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],pk.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pk.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],pk.prototype,"playerData",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],pk.prototype,"autoFill",void 0);_.P([_.J({value:60}),_.Y("design:type",Number)],pk.prototype,"targetFramerate",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"isTwoColumns",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"hideOfferModules",void 0);_.P([_.J(),_.Y("design:type",Object)],pk.prototype,"shownItems",void 0);_.P([_.J({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],pk.prototype,"hideUnlimitedOfferModule",void 0);
_.P([_.J({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],pk.prototype,"hideTvfilmOfferModule",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"watchFeedBigThumbs",void 0);_.P([_.J(),_.Y("design:type",Object)],pk.prototype,"watchNextGridHideChips",void 0);_.P([_.J(),_.Y("design:type",Object)],pk.prototype,"eligibleToSwitchToGrid",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"disableShortsShelfHeightOverride",void 0);_.P([_.J({selector:_.KU,reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"isGridViewEnabled",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],pk.prototype,"showMoreButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pk.prototype,"isWatchNextGrid",void 0);
_.P([_.J({computed:"computeShowButton(showMoreButton, data.results)"}),_.Y("design:type",Boolean)],pk.prototype,"showButton",void 0);_.P([_.BG("data.results.*"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"resultsChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"dataChanged",null);
_.P([_.ul("hideUnlimitedOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"hideUnlimitedOfferModuleChanged",null);_.P([_.T("isGridViewEnabled","containsLockups","data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],pk.prototype,"lockupContainerType",null);
_.P([_.ul("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],pk.prototype,"updateLockupContainerTypes",null);_.P([_.ul("hideTvfilmOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"hideTvfilmOfferModuleChanged",null);_.P([_.ul("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"showButtonChanged",null);
_.P([_.ul("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pk.prototype,"shownItemsChangedForBinding",null);_.P([_.T("shownItems"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pk.prototype,"containsLockups",null);
_.H(pk,"ytd-watch-next-secondary-results-renderer",function(){if(XPS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);XPS=W}W=XPS;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Kr1={};
_.Kr1.YtdWatchBehavior=[_.d.YtRendererBehavior,_.Pl.YtPlayerListenerBehavior,_.rq.YtRendererstamperBehavior,_.qM.YtActionHandlerBehavior,_.j4.YtPageBehavior,_.Ge.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},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},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 _.MD("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.S("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 _.MD("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},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.mn("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.mn("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!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("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 _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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, isTwoColumns_)"},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 _.S("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("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);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var W={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:_.fb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.fb(["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"||_.S("swa_prov_panels_ks")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.y0C(function(){return _.eX(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.X8;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;_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.aH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.q2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var e=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.fe({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Tv("nw");this.loading=!1;_.kM(_.Tm,function(){e.initDclkstatus_();var b,m=((b=e.player)==null?void 0:b.getVideoData().cpn)||"";_.wkC(function(q,Q){_.mz1(q,Q,m)})})},
onPageLoadWithSameData_:function(){_.S("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var e,t,b;W=(e=this.loadingData)==null?void 0:(t=e.endpoint)==null?void 0:(b=t.watchEndpoint)==null?void 0:b.videoId;var m;W&&(m="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.rz(this.hostElement).querySelector("#player").style.backgroundImage=m?"url("+m+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.rz(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,t;(t=(e=this.watchMetadata).updateSentimentBarWidth)==
null||t.call(e);var b,m;(m=(b=this.watchMetadata).resize)==null||m.call(b)}_.S("kevlar_watch_frame0_loading_state")&&(_.rz(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var e=_.rz(this.hostElement).querySelector(W);e?_.m1(e,!1):_.JC(new _.o_("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var e=_.rz(this.hostElement).querySelector(W);e?_.ry(e):_.JC(new _.o_("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var e=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Tm.addLowPriorityJob(function(){e.onWindowResized_(_.lm(!0))})},
updateTheaterModeState_:function(W){if(!_.S("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.$HC()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var W=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.S("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.rz(this.hostElement).querySelector("#player-full-bleed-container"):_.rz(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),t=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");e.parentElement!==W&&(t&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.eX(this).appendTo(W,
e),W.appendChild(_.rz(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.ee().resolve(_.Kn).deactivate(),2);W.updatePlayerLocation();_.u8(e)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var e=this.getCinematicsLocationContainer();W.parentElement!==e&&e.appendChild(W);var t;(t=this.watchController)==null||t.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.rz(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.rz(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,e){var t=document.documentElement.hasAttribute("dark"),b=t&&_.S("web_cinematic_theater_mode"),m=t&&_.S("web_cinematic_fullscreen");t=!t&&this.cinematicLightTheme;return W&&b||e&&m||(e||W)&&t},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ee().resolve(_.Oj).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,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Tm.addLowPriorityJob(function(){_.Qx(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var t,b,m;if((t=this.data)==null?0:(b=t.contents)==null?0:(m=b.twoColumnWatchNextResults)==null?0:m.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var q,Q;((q=this.data)==null?0:(Q=q.contents)==null?0:Q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(e=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),e&&!W||_.Uc(this,function(){_.Tv("pbu")}));
this.setPlayerAds_();_.Qx(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,e){if((_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"))&&this.playerData&&e)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.Eb().dispatch(_.ExS(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.sC(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);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.eX(this);_.S("kevlar_disable_prepare_player")||
e.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.ee().resolve(_.Oj).setPlayer(e);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.jy()+"px"};this.is==="ytd-watch-grid"&&(e["--ytd-watch-flexy-sidebar-width"]=_.FsC+"px",e["--ytd-watch-grid-horizontal-page-margins"]=_.OY+"px",e["--ytd-watch-grid-columns-top-margins"]=_.qkE+"px",e["--ytd-watch-grid-min-player-height-medium"]="360px");!_.mn("kv_pl_mx_sz_ks")&&
_.mn("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.XyT+"px");_.mn("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.IPl+"px");this.safeUpdateStyles(e);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Xc(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.rz(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var W=_.jy(),e=_.Mp+W,t=e;this.fixedPanels&&(e+=_.FsC);var b=657+W;W=1327+W;_.rz(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.rz(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(W+"px)");_.rz(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.rz(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+t+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.rz(this.hostElement).querySelector("#miniplayer-bar").firstChild,e=this.squeezeback&&!_.S("web_watch_squeezeback_player_size_killswitch");return W&&W.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||e||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.aD(NaN,NaN):_.Px(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Px(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.NL(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.lm());_.S("browse_skeleton_removal_on_watch_killswitch")||_.MD("IS_SHELL_LOAD")&&_.umC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.eX(this);e.addEventListener("yt-player-updated",_.aH(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(t){W.playerApiReady_(t)});
_.S("kevlar_watch_flexy_playlist_manager")||(e=_.ee().resolve(_.Oj),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.aH(this,this.onYtNavigate_)),e.setPlaylistComponent(_.rz(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.aH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Tm.addLowPriorityJob(function(){_.q2(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.eX(this).removeEventListener("yt-player-updated",_.aH(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var W=_.ee().resolve(_.Oj);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.aH(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.aH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.q2(this.hostElement,"yt-autonav-pause-player",!1);W=_.ty();_.S("kevlar_exit_fullscreen_leaving_watch")&&W&&_.bc(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.yL("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.rz(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.rz(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.NZ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,e){e=e===void 0?!0:e;_.ty()&&_.S("external_fullscreen")&&_.bc(document.documentElement);this.theaterRequested_=W;e&&_.GJ("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.RT(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.q2(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(W){_.xM(W,typeof this.player),this.player&&_.xM(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.RT(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,e){return this.loading?e:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next())e=e.value,e.youThereRenderer&&_.nUB(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.be()<W.lowEngagementThresholdMs||_.J0$(e,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.RT(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,e,t){return!!W&&!this.isVideoPlayable_(W,t)&&!e},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,e){if(!W)return!1;var t=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var m;e=e==null?void 0:(m=e.playerOverlayRenderer)==null?void 0:m.gatedActionsOverlayRenderer;return!!t||!!b||!!W||!!e},
hasWatchNextResponseErrorRenderer:function(W){var e=this.getPageContents(W),t,b,m,q,Q;return!(W==null?0:(t=W.contents)==null?0:(b=t.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((m=e[0])==null?0:(q=m.itemSectionRenderer)==null?0:(Q=q.contents[0])==null?0:Q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,e,t){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),m=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];m=_.S("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&m.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);q==void 0&&(q=!0);!t||this.isVideoPlayable_(W,this.getPlayerOverlays_(e))||
b||m||!q||_.ee().resolve(_.Oj).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.SYB()},
onPlayerFeedbackStartRequest_:function(W){_.RT(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.RT(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,e,t,b,m,q,Q,X,I=((W=this.data)==null?NaN:(e=W.contents)==null?NaN:(t=e.twoColumnWatchNextResults)==null?NaN:(b=t.secondaryResults)==null?NaN:(m=b.secondaryResults)==null?NaN:(q=m.offerModule)==null?NaN:(Q=q.tvfilmOfferModuleRenderer)==null?NaN:(X=Q.actionButtons)==null?NaN:X.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];e=_.R(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(t=e.next();!t.done;t=e.next())for(t=t.value,b=_.R(W),m=b.next();!m.done;m=b.next())if(m="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+t+m.value,m=this.get(m+"navigationEndpoint",this.data)||this.get(m+"serviceEndpoint",this.data)||this.get(m+"command",this.data)){_.cg(m,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.q2(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.q2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Eb().dispatch(_.U$P(W))},
onPlayerSubscribe_:function(W){_.RT(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.RT(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.RT(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.S("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.S("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,e,t,b;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.secondaryResults)==null?void 0:b.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.S("swatcheroo_pbs_load_grid")&&!_.S("swatcheroo_provide_all_data_on_scheduled_job")){_.Tm.cancelJob(this.setRichGridJobId_);var W,e,t,b,m,q,Q;this.setRichGridRendererData((W=this.data)==null?void 0:(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.secondaryResults)==null?void 0:(m=b.secondaryResults)==null?void 0:(q=m.results)==null?void 0:(Q=q[0])==null?
void 0:Q.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,e=(W=this.data)==null?void 0:W.engagementPanels;if(e==null?0:e.length){W=null;e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;if(((b=t.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){W=t;break}}var m,q,Q;W=(m=W)==null?void 0:(q=m.engagementPanelSectionListRenderer)==null?void 0:(Q=q.content)==null?void 0:Q.structuredDescriptionContentRenderer;if(W==null?0:W.items){m=
[];q=_.R(W.items);for(Q=q.next();!Q.done;Q=q.next()){Q=Q.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var X=b=t=e=W=void 0,I=void 0,u=(W=Q.horizontalCardListRenderer)==null?void 0:(e=W.header)==null?void 0:(t=e.richListHeaderRenderer)==null?void 0:(b=t.navigationButton)==null?void 0:(X=b.buttonRenderer)==null?void 0:(I=X.command)==null?void 0:I.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(c){return!_.l(c,_.kWM)}))}Q.expandableVideoDescriptionBodyRenderer||
Q.videoDescriptionHeaderRenderer||m.push(Q)}return{items:m}}}},
constructWarning_:function(W){return{text:_.zq(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.q2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.eX(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.q2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.Tm.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.kM(_.Tm,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Tv("cmi");_.Tm.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.R(W);for(var e=W.next();!e.done;e=W.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.q2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Tv("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Tm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Tm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,e){var t=_.l(e.endpoint,_.z4);t&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||t.videoId!==e.videoId||t.playlistId&&t.playlistId!==e.playlistId||t.index!==void 0&&t.index!==e.index||typeof t.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.eX(this).getPlayerPromise().then(function(b){var m=t.startTimeSeconds;b.seekTo(m);b.wakeUpControls();m<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.mpw();"t"in W&&(W=_.Dp1(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var e,t;(W=_.Ub(W==null?void 0:(e=W[0])==null?void 0:(t=e.videoPrimaryInfoRenderer)==null?void 0:t.title))&&_.q2(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.q2(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,e,t){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===t&&(t=b.list,_.S("polymer_enable_mdx_queue")&&t&&t.startsWith("RQ")&&(t=void 0),b.video_id!==W||t!=e)){var m;_.S("kevlar_player_watch_endpoint_navigation")?m=_.M0g(_.u$E(W,e)):m=this.buildWatchEndpoint_(W,e);_.q2(this.hostElement,"yt-navigate",{endpoint:m,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,e,t){return _.ew(W,e,t)},
initDclkstatus_:function(){_.GlC()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var e=W.querySelector("#primary-info"),t=W.querySelector("#secondary-info"),b=W.querySelector("#related");e&&_.rz(this.hostElement).querySelector("#info-skeleton").appendChild(e);t&&_.rz(this.hostElement).querySelector("#meta-skeleton").appendChild(t);b&&(_.rz(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.BX(W)}},
handlePlayerUpdated_:function(){_.eX(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,e){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof e!=="undefined"){var t=this.watchNextSkeletonEl_.children,b=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,t.length);e||(b=0,W=t.length);for(e=b;e<W;e++)t[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.S("external_fullscreen")||_.RT(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.eX(this);e.getPlayerPromise().then(function(t){t.setFauxFullscreen(!!_.ty())});
this.updateFullBleedElementLocations();W&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,e){return e&&!!W},
computeResponseHasComments:function(W){var e,t,b,m,q;return!!(W==null?0:(e=W.contents)==null?0:(t=e.twoColumnWatchNextResults)==null?0:(b=t.results)==null?0:(m=b.results)==null?0:(q=m.contents)==null?0:q.some(function(Q){var X;return(Q==null?void 0:(X=Q.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,e,t,b){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&b?!1:!!W&&!!Object.keys(W).length&&!e},
identity:_.sL,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var e=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.eX(this).getPlayerPromise().then(function(t){var b=t.getPlayerState();b!==5&&b!==0&&(t=1/t.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==t&&(e.videoHeightToWidthRatio_=t))})},
schedulePlayerSizeUpdate_:function(W){var e=this,t=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),b=function(){if(e.watchMetadata){var m,q;(q=(m=e.watchMetadata).resize)==null||q.call(m)}_.eX(e).getPlayerPromise().then(function(Q){if(_.S("kevlar_set_internal_player_size")){if(!t||!e.isMiniplayerActive()){var X=e.calculateCurrentPlayerSize_();Q.setInternalSize(X.width,X.height)}}else Q.setSize(NaN,NaN);_.S("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
W?b():_.CU(_.Tm,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.l(W,_.pkC).survey)},
onDownloadedVideoDeleted:function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1){if(!e.active||(t=e.playerData)==null||!t.offlineState||e.videoId!==W)return m.return();(b=e.player)==null||b.stopVideo();_.G3().navigatingAwayFromWatchDeletedVideo=!0;_.cg(_.nTL,e.hostElement);return _.a(m,_.G3().navigationFinishPromise,2)}_.G3().navigatingAwayFromWatchDeletedVideo=!1;_.u8(m)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.Mw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.rz(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var e=this.windowSize_.height>=624,t=this.active?this.getScrollTop():0;!W.active&&e&&t>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!e||t<this.watchWhileScrollThreshold_&&!_.ty())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.rz(this.hostElement).querySelector("#secondary-inner");if(W){var e=_.rz(this.hostElement).querySelector("#below"),t=_.rz(this.hostElement).querySelector("#secondary"),b=_.rz(this.hostElement).querySelector("#comments");b&&t&&e&&(this.defaultTwoColumnLayout?(W.appendChild(b),t.appendChild(W)):(e.appendChild(b),_.xU(e,W)))}}},
isTwoColumnsChanged_:function(W,e){if(W!==!0||e!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.rz(this.hostElement).querySelector("#secondary-inner"))){e=_.rz(this.hostElement).querySelector("#below");var t=_.rz(this.hostElement).querySelector("#secondary"),b=_.rz(this.hostElement).querySelector("#comments");b&&t&&e&&(this.isTwoColumns_?(W.appendChild(b),t.appendChild(W)):(e.appendChild(b),
_.xU(e,W)))}}else{W=!_.S("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);e=_.rz(this.hostElement).querySelector("#panels");var m=_.rz(this.hostElement).querySelector("#alerts");t=_.rz(this.hostElement).querySelector("#playlist");b=_.rz(this.hostElement).querySelector("#related");var q=_.rz(this.hostElement).querySelector("#donation-shelf"),Q=_.rz(this.hostElement).querySelector("#comments");this.isTwoColumns_?(m=_.rz(this.hostElement).querySelector("#secondary-inner"),
W&&(m.appendChild(e),m.appendChild(t)),m.appendChild(q),m.appendChild(b)):(W&&(_.fd(e,m),_.fd(t,m)),_.fd(q,m),Q&&_.fd(b,Q));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.S("web_watch_enable_fs_squeezeback_panels")&&_.S("web_watch_theater_chat")){var W=_.rz(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?(e=_.rz(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==e&&e.append(W),this.fixedPanels=!0):(this.fixedPanels=
!1,e=_.rz(this.hostElement).querySelector("#playlist"),W&&e?_.gj(W,e):_.JC(new _.o_("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,e){return _.S("sw_metadata_vis_toggle_ks")?!0:!!W||!!e},
computeForceDarkPanelTheme:function(W){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.XB(this.hostElement,W)}catch(e){_.JC(e)}},
videoHeightToWidthRatioChanged_:function(W,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.eX(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.eX(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.xpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var e=_.Ie(W)||0;_.X_(W,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.Ie("yt-fullerscreen-edu-button-click-count")||0,e=_.Ie("yt-fullerscreen-edu-button-shown-count")||0,t=_.mn("external_fullscreen_button_shown_threshold"),b=W>=_.mn("external_fullscreen_button_click_threshold")||e>=t;_.eX(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ee().resolve(_.Oj).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Tm.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Tm.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var e=_.rz(W.hostElement).querySelector("#secondary"),t=_.rz(W.hostElement).querySelector("#fixed-secondary");e=e.getBoundingClientRect();var b=e.width;W.swatcherooSqueezeback&&
(b+=_.OY);if(W.swatcherooSqueezeback){var m=_.rz(W.hostElement).querySelector("#squeezeback-constraining-container");m.style.width=b+"px";m.style.flex="0 0 "+b+"px"}t.style.width=b+"px";t.style.left=e.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Tm.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Tm.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var e;!W.isTwoColumns_||W.theater||W.fullscreen?e=460:e=W.calculateNormalPlayerSize_().height;var t=e+"px";_.S("live_chat_taller_height")&&!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":t,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var e=_.rz(this.hostElement).querySelector("#engagement-panel-scrim");W?e.addEventListener("tap",_.aH(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.aH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var e=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var t=this.getPageScrollingElement(),b=this.getScrollTop(),m=b+t.clientHeight-56;if(e<b+56)e-=56;else if(W>m)e=W-t.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.uN().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,e,t){if(this.active&&this.trackEngagementPanelVisibility&&!_.$pg.includes(t)){if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Qx(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var b=_.ee().resolve(_.oL);this.visiblePanelIdentifiers_.forEach(function(m){m!==t&&b.hidePanel(m)})}this.visiblePanelIdentifiers_.add(t)}e!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(t);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,e,t){return W||e||this.enableFullBleedSingleColumnDefaultPlayer&&!t},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,e){return!W&&e},
updatePanelsLocation:function(){if(_.S("web_watch_enable_fs_squeezeback_panels")){var W=_.rz(this.hostElement).querySelector("#below"),e=_.rz(this.hostElement).querySelector("#panels"),t=_.rz(this.hostElement).querySelector("#playlist"),b=_.rz(this.hostElement).querySelector("#chat-container"),m=_.rz(this.hostElement).querySelector("#panels-full-bleed-container"),q=_.rz(this.hostElement).querySelector("#secondary-inner"),Q=this.fullscreen||this.theater&&this.iMaxTheaterMode,X=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;Q?(m.appendChild(e),m.appendChild(b),m.appendChild(t)):this.isTwoColumns_?(X?(W=_.rz(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==W&&W.append(b),this.fixedPanels=!0):_.xU(q,b),_.xU(q,e),_.xU(q,t)):(W.appendChild(e),W.appendChild(b),W.appendChild(t))}},
swatcherooUpdatePanelsLocation:function(W,e,t,b,m,q){if(this.is==="ytd-watch-grid"){e=W&&!e;this.swatcherooSplitScroll&&(e?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));t=_.rz(this.hostElement).querySelector("#panels");var Q=_.rz(this.hostElement).querySelector("#playlist"),X=_.rz(this.hostElement).querySelector("#fixed-secondary"),I=_.rz(this.hostElement).querySelector("#fixed-below"),
u=_.rz(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),c=_.rz(this.hostElement).querySelector("#chat-container");q&&(W?X.appendChild(t):I.appendChild(t));m?W?X.appendChild(c):I.appendChild(c):_.gj(c,u);b?W?X.appendChild(Q):I.appendChild(Q):_.gj(Q,u);this.swatcherooSplitScroll&&(W=_.rz(this.hostElement).querySelector("#secondary"),b=_.rz(this.hostElement).querySelector("#columns"),m=_.rz(this.hostElement).querySelector("#fixed-columns-secondary"),e?
m.appendChild(W):b.appendChild(W))}},
computeMetadataSkinnyMode:function(W,e,t){return this.is!=="ytd-watch-grid"?!1:W?t:e},
computeWatchWhilePanelsActive:function(W,e){return W||e},
computeNoBorderOnChat:function(W){return _.S("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,e){return W&&!e},
computePanelExpanded:function(W,e,t){return W||e||t},
computeSqueezeback:function(W,e,t,b){if(_.S("web_watch_enable_fs_squeezeback_panels")){var m=this.iMaxTheaterMode&&this.theater;return(W||e||t)&&(b||m)}},
computeSwatcherooSqueezeback:function(W,e,t){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:W&&e&&t},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.eX(this).getPlayerPromise().then(function(e){var t;(t=e.changeMarkerVisibility)==null||t.call(e,_.l(W,_.Vi).isVisible||!1,_.l(W,_.Vi).entityKeys||[],_.l(W,_.Vi).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Eb().dispatch(_.Zk1(W.detail));if(!this.liveChatCollapsed&&this.squeezeback){var e=_.ee().resolve(_.oL);this.visiblePanelIdentifiers_.forEach(function(t){e.hidePanel(t)})}},
onSetPlaylistCollapsed:function(W){_.S("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,e){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=e;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=
e;break;case "DONATION_SHELF":this.donation=e;break;case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
e}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.ee().resolve(_.Kn).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var RZC,XiS;_.Q_M=function(W){var e=RZC;if(!(0,_.WrD)(W)){var t,b;e=(b=(t=typeof e==="function"?e():e)==null?void 0:t.concat("\n"))!=null?b:"";throw Error("H`"+e+"`"+String(W));}};
_.Fnu=function(W){return W.shorts.isShortsActive};
_.IKl=function(W){return W.findIndex(function(e){return XiS.indexOf(e.tagName)>-1})>-1};
RZC=void 0;_.aKT=function(W){return _.rO({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
_.wil=function(){var W=_.ee().resolve(_.B1);_.sXL(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.bc(document.documentElement):_.I6Z(document.documentElement))};
XiS=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.EM=new Map;_.EM.set(32,59972);_.EM.set(27,50765);_.EM.set(70,60102);_.EM.set(76,60221);_.EM.set(77,60222);_.EM.set(74,60223);_.EM.set(84,60224);_.EM.set(38,61941);_.EM.set(40,61942);_.EM.set(73,62521);_.EM.set(67,62522);_.EM.set(80,63390);_.EM.set(78,63397);_.EM.set(75,59972);_.EM.set(188,63385);_.EM.set(190,63384);_.EM.set(36,63387);
_.EM.set(35,63386);_.EM.set(37,63388);_.EM.set(39,63389);_.EM.set(79,63423);_.EM.set(87,63424);_.EM.set(107,63426);_.EM.set(109,63425);_.EM.set(65,63428);_.EM.set(83,63430);_.EM.set(68,63429);_.EM.set(221,63431);_.EM.set(219,63432);_.EM.set(97,63439);_.EM.set(98,63440);_.EM.set(99,63441);_.EM.set(100,63442);_.EM.set(101,63443);_.EM.set(102,63444);_.EM.set(103,63445);_.EM.set(104,63446);_.EM.set(105,63447);_.AR=new Map;_.AR.set(80,63390);_.AR.set(78,63397);_.AR.set(188,63400);_.AR.set(190,63401);
_.AR.set(191,60765);_.AR.set(13,247917);_.NT=new Map;_.dH=new Map;
}catch(e){_._DumpException(e)}
try{
var QGu,IVB,aVQ,waU;_.mYB=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.rGl=function(W){return W.ui.tabGesturesIsActive};
_.qd$=function(){var W=_.r8("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(e){return Promise.reject(e)}};
_.ReC=function(W){return!(!W||!W.pushManager)};
QGu=function(){return _.qd$().then(_.ReC).catch(function(){return!1})};
_.Fkw=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?QGu():Promise.resolve(!1)};
_.XaU=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
IVB=function(){var W,e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,_.p5.getInstance(),2);case 2:W=b.yieldResult;if(!W){e=void 0;b.jumpTo(3);break}return _.a(b,W.get("lmqf"),4);case 4:e=b.yieldResult;case 3:switch((t=e)||(t="SD"),t){case "HD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
aVQ=function(W){var e,t,b;return _.F(function(m){if(m.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.S("disable_av1_setting")){var q=window.localStorage["yt-player-av1-pref"];q=q==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":q==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else q="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(e=W===q)return m.jumpTo(2);b=t=W;return _.a(m,IVB(),3)}m.nextAddress!=2&&(e=b===m.yieldResult);return m.return(e)})};var uYg;var cGQ=_.px.IronButtonState,vPw=(0,_.lS)(HTMLElement);
_.yQ({_template:function(){if(uYg!==void 0)return uYg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;waU===void 0&&(waU=document.createElement("template"));var b=waU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return uYg=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[cGQ,_.$G,_.y6,_.nx],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(W){var e=(0,_.Gk)(this);e.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:W});e.shadowRoot.appendChild(W);return vPw.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.ZZ(this.$.content).getDistributedNodes(),e=0,t=W.length;e<t;e++)if(W[e].nodeType===Node.ELEMENT_NODE)return W[e]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var e="";W?e=W.label||W.getAttribute("label")||W.textContent.trim():e="";this.value=e;this._setSelectedItemLabel(e)},
_computeMenuVerticalOffset:function(W,e){return e?e:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",e=this.contentElement;e&&e.setAttribute("aria-expanded",W)}});_.Kb=new _.z("navigateAction");var GEl=new _.z("formRenderer");var Pj=function(){var W=_.D0.apply(this,arguments)||this;W.showInput=!1;return W};
_.Z(Pj,_.D0);_.r=Pj.prototype;_.r.detached=function(){this.showInput&&window.removeEventListener("click",_.aH(this,this.closeOnOutsideClick_))};
_.r.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.r.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.aH(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.r.closeOnOutsideClickCondition=function(){return!0};
_.r.closeOnOutsideClickHandler=function(){};
_.r.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.aH(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.r.openOnClickHandler=function(){};
_.r.showInputChanged=function(){};
_.r.setShowInput=function(W){this.showInput=W};
Pj.prototype.setShowInput=Pj.prototype.setShowInput;Pj.prototype.showInputChanged=Pj.prototype.showInputChanged;Pj.prototype.openOnClickHandler=Pj.prototype.openOnClickHandler;Pj.prototype.openOnClick_=Pj.prototype.openOnClick_;Pj.prototype.closeOnOutsideClickHandler=Pj.prototype.closeOnOutsideClickHandler;Pj.prototype.closeOnOutsideClickCondition=Pj.prototype.closeOnOutsideClickCondition;Pj.prototype.closeOnOutsideClick_=Pj.prototype.closeOnOutsideClick_;Pj.prototype.stopPropagation_=Pj.prototype.stopPropagation_;
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Pj.prototype,"showInput",void 0);_.P([_.wz("click"),_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Pj.prototype,"stopPropagation_",null);_.P([_.ul("showInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],Pj.prototype,"showInputChanged",null);_.P([_.SB()],Pj);_.DYE=[Pj.prototype];var SdE;var B91;var Vb=function(){return _.O.apply(this,arguments)||this};
_.Z(Vb,_.O);_.r=Vb.prototype;_.r.computePreselectedOption=function(W,e){return e===this.itemSelected_?W:void 0};
_.r.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var e;(e=this.data)!=null&&e.key&&_.Uc(this,function(){var t,b=Number((t=W.data)==null?void 0:t.key);!Number.isNaN(b)&&(W.itemSelected_=b,t=(t=(W.data.items||[])[b])&&t.optionSelectableItemRenderer&&t.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=t)})};
_.r.isSubReasonHidden_=function(W,e){return W!=e};
_.r.onTopItemSelected_=function(W,e){for(var t=_.rz(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),b=0,m=t.length;b<m;b++)t[b].select(0);_.RT(this.hostElement,"yt-report-form-update",[e.item.value]);W.stopPropagation()};
_.r.onItemSelected_=function(W,e){_.RT(this.hostElement,"yt-report-form-update",[e.item.value]);W.stopPropagation()};
_.r.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.r.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.r.validate=function(){return this.itemSelected_!==-1};
_.r.computeAriaLabel_=function(W){var e=_.Ub(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(e+=". "+W);return e};
_.r.computeItemSelected_=function(W){return W};
_.r.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.r.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.r.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.r.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.X5(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
Vb.prototype.onPaperRippleTransitionEnd_=Vb.prototype.onPaperRippleTransitionEnd_;Vb.prototype.dataChanged_=Vb.prototype.dataChanged_;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Vb.prototype,"data",void 0);_.P([_.J({value:-1}),_.Y("design:type",Number)],Vb.prototype,"itemSelected_",void 0);
_.P([_.J({computed:"computeItemSelected_(itemSelected_)"}),_.Y("design:type",Number)],Vb.prototype,"value",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Vb.prototype,"restoreFocusOnClose",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Vb.prototype,"tooltipTapped",void 0);_.P([_.J({value:-1}),_.Y("design:type",Number)],Vb.prototype,"preselectedSubreason",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vb.prototype,"dataChanged_",null);_.P([_.wz("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vb.prototype,"onPaperRippleTransitionEnd_",null);_.P([_.gz({is:"yt-options-renderer",disableElementRegistration:!0})],Vb);
_.H(Vb,"yt-options-renderer",function(){if(B91===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;SdE===void 0&&(SdE=document.createElement("template"));var b=SdE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);B91=W}W=B91;return W},{mode:2});var oPw;var lVB;var ZPw;var $Yw;var kES;var paQ;var id=function(){return _.O.apply(this,arguments)||this};
_.Z(id,_.O);id.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.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(W){if(this.hostElement.classList.contains("selected")||_.F5(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.rz(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.RT(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.P([_.J({observer:"onDataChanged"}),_.Y("design:type",Object)],id.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],id.prototype,"componentTitle",void 0);_.P([_.vG("#thumbnail"),_.Y("design:type",Object)],id.prototype,"thumbnail",void 0);_.P([_.gz({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],id);
_.H(id,"yt-enrolled-contact-renderer",function(){if(paQ===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;kES===void 0&&(kES=document.createElement("template"));var b=kES;t.call(e,b.content.cloneNode(!0),W.content.firstChild);paQ=W}W=paQ;return W},{mode:2});var yG$;var jGu;var Ys=function(){return _.O.apply(this,arguments)||this};
_.Z(Ys,_.O);Ys.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ys.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ys.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.F5(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.rz(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.RT(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.P([_.J({observer:"onDataChanged"}),_.Y("design:type",Object)],Ys.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],Ys.prototype,"componentTitle",void 0);_.P([_.vG("#thumbnail"),_.Y("design:type",Object)],Ys.prototype,"thumbnail",void 0);_.P([_.gz({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ys);
_.H(Ys,"yt-suggested-contact-renderer",function(){if(jGu===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;yG$===void 0&&(yG$=document.createElement("template"));var b=yG$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jGu=W}W=jGu;return W},{mode:2});var zB=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.Z(zB,_.O);zB.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"}}}}}};
zB.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.RT(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
zB.prototype.onReset=function(){for(var W=_.rz(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),e=W.length-1;e>=0;e--)W[e].classList.toggle("selected")};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],zB.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({observer:"onDataChanged"}),_.Y("design:type",Object)],zB.prototype,"data",void 0);
_.P([_.gz({is:"yt-contact-section-renderer",disableElementRegistration:!0})],zB);
_.H(zB,"yt-contact-section-renderer",function(){if($Yw===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ZPw===void 0&&(ZPw=document.createElement("template"));var b=ZPw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);$Yw=W}W=$Yw;return W},{mode:2});var U9=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.Z(U9,_.O);_.r=U9.prototype;_.r.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"}}}};
_.r.onYtRefreshFormCommand=function(W){var e;(W=_.l((e=_.l(W,_.n2S))==null?void 0:e.formRenderer,GEl))&&this.set("data",W)};
_.r.reset=function(){var W=_.rz(this.hostElement).querySelector("#fields").children;W=_.R(W);for(var e=W.next();!e.done;e=W.next())e=e.value,e.reset&&e.reset()};
_.r.getForm=function(){var W={},e=_.rz(this.hostElement).querySelector("#fields").children;e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;if(!t.validate())return null;W[t.data.key]=t.value}return W};
_.r.submitFormFields=function(){if(this.fields)for(var W=_.R(this.fields),e=W.next();!e.done;e=W.next())e=e.value,e.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?e.save():e.nodeName==="YT-OPTIONS-RENDERER"&&e.save()};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],U9.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],U9.prototype,"data",void 0);_.P([_.GF("#fields > *"),_.Y("design:type",Array)],U9.prototype,"fields",void 0);
_.P([_.gz({is:"yt-form-renderer",disableElementRegistration:!0})],U9);
_.H(U9,"yt-form-renderer",function(){if(lVB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;oPw===void 0&&(oPw=document.createElement("template"));var b=oPw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);lVB=W}W=lVB;return W},{mode:2});var C81;var Lb=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.Z(Lb,_.O);Lb.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.Er(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})};
Lb.prototype.handleUpdateCheckboxCommand=function(W){(W=_.l(W,_.zzk))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Lb.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Lb.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Lb.prototype,"checked",void 0);_.P([_.h({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Lb);
_.H(Lb,"ytd-settings-checkbox-renderer",function(){if(C81!==void 0)return C81;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return C81=W},{mode:1});var nPT;var E9=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.Z(E9,_.O);E9.prototype.dataChanged=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.XaU()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(e=W.data&&W.data.id)?_.a(t,aVQ(W.data.id),4):t.jumpTo(3):(W.set("data.hidden",!0),t.jumpTo(0));t.nextAddress!=3&&(e=t.yieldResult);e&&_.RT(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.u8(t)})};
E9.prototype.onButtonChanged=function(W){_.Er(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.RT(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
E9.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
E9.prototype.dataChanged=E9.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],E9.prototype,"ytActionHandlerBehavior",void 0);_.P([_.vG("#radio"),_.Y("design:type",Object)],E9.prototype,"radio",void 0);_.P([_.J(),_.Y("design:type",Object)],E9.prototype,"data",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],E9.prototype,"dataChanged",null);_.P([_.h({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],E9);
_.H(E9,"ytd-settings-radio-option-renderer",function(){if(nPT!==void 0)return nPT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nPT=W},{mode:1});var fVQ;var A5=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.Z(A5,_.O);
A5.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"}}}};
A5.prototype.handleUpdateTextCommand=function(W){(W=_.l(W,_.U7e))&&this.data&&this.data.id===W.id&&this.set("data",W)};
A5.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.l(W,_.AsP)&&this.data){var e,t;if(W=(e=_.l(W,_.AsP))==null?void 0:(t=e.newConnectedAppRenderer)==null?void 0:t.connectedAppRenderer)this.data=W}};
A5.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],A5.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],A5.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Y("design:type",String)],A5.prototype,"connectedAppStyle",void 0);_.P([_.h({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],A5);
_.H(A5,"ytd-connected-app-renderer",function(){if(fVQ!==void 0)return fVQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fVQ=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.g$("iuT5Oc");

_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("L3n37");
var LrM=function(W){return W.watch.isLearningJourneyActive},EUU=_.na(115994),A0w=_.na(115993),NnS=function(W,e,t){var b=this;
var m=t.dragDownAction;this.layer=0;this.JSC$20557_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$20557_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var q=_.Sg();_.I0(q,EUU,this.layer);_.I0(q,A0w,this.layer);this.dragDownAction=function(){m();_.Pe(q,{visualElement:b.fullscreen?EUU:A0w})};
this.gesture=new _.w4(W,e,this.JSC$20557_watchConfig,"pandown");this.attach()};
NnS.prototype.attach=function(){this.gesture.attach()};
NnS.prototype.detach=function(){this.gesture.detach()};
NnS.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$20557_watchFullScreenConfig:this.JSC$20557_watchConfig};var dpw=function(W){_.Li.call(this);var e=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return e.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(t){e.initOrDisposeActiveModules(t)}));
this.onAttached()};
_.Z(dpw,_.Li);_.r=dpw.prototype;_.r.getRoot=function(){return this.rootElement};
_.r.getElement=function(W){return this.rootElement.getElement(W)};
_.r.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.r.getPlayerResponse=function(){return this.playerResponse};
_.r.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.r.getWatchNextResponse=function(){return this.watchNextResponse};
_.r.registerActionHandler=function(W,e){var t=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.Vo(_.P3.getInstance(),(b[W]=e,b),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),b={},_.Vo(_.P3.getInstance(),(b[W]=function(){var m=_.$N.apply(0,arguments);return(t.actionHandlers.get(W)||[]).map(function(q){return q.apply(null,_.kP(m))})},b),this.getRoot())),this.actionHandlers.get(W).push(e)};
_.r.unregisterActionHandler=function(W){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.ie(_.P3.getInstance(),(e[W]=!0,e),this.getRoot())}else(e=this.actionHandlers.get(W))?(e.pop(),e.length===0&&(e={},_.ie(_.P3.getInstance(),(e[W]=!0,e),this.getRoot()),this.actionHandlers.delete(W))):_.JC(new _.o_("Attempted to unregister an action handler which is not registered.",W))};
_.r.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Y9(this.rootElement.pageDisposeJobs,W)};
_.r.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.UL(this.rootElement.pageDisposeJobs,W)};
_.r.dispatchEvent=function(W,e){_.q2(this.rootElement,W,e)};
_.r.provideRenderingData=function(W,e){this.rootElement.provideRenderingData(W,e)};
_.r.scrollWatchTo=function(W,e){var t;(t=this.watchScrollManager)==null||t.scrollWatchTo(W,e)};
_.r.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.Uc(W,function(){if(W&&W.firstElementChild){var e=W.querySelector(".html5-video-player");e&&(_.Ep(_.ee().resolve(_.gd)),e.focus())}else _.JC(Error("mm"))})};
_.r.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,e=!!this.rootElement.fullscreen,t;(t=this.watchCinematicManager)==null||_.Lpw(t,e,W)};
_.r.subscribeToActiveChanged=function(W,e){e=e===void 0?!0:e;var t=_.S8(_.Eb(),LrM,function(b){W(b)});
e&&W(LrM(_.Eb().getState()));return t};
_.r.isActive=function(){return LrM(_.Eb().getState())};
_.r.onAttached=function(){var W=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(W=_.ee().resolve(_.IDC).retriever.getFlag(_.dYN));(W||_.MD("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.r.initPersistentModules=function(){if(_.S("kevlar_watch_flexy_theater_manager")){var W=new _.ZEM(this);_.w$(this,W)}W=new _.QIU(this);_.w$(this,W);W=new _.jb(this);_.w$(this,W);W=new _.xz(this);_.w$(this,W);W=new _.Oo$(this);_.w$(this,W);W=new _.n6(this);_.w$(this,W);_.S("kevlar_watch_flexy_playlist_manager")&&(W=new _.h5w(this),_.w$(this,W))};
_.r.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.MB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.leU(this)),this.activeModules.push(new _.y9C(this)),this.activeModules.push(new _.YfS(this)),this.activeModules.push(new _.OC(this)),_.S("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.fLQ(this)),this.activeModules.push(new _.jIw(this)),_.S("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.U8u(this)),
_.S("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.hEU(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.iE$(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gxC(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.qfU(this)),W=_.S("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.e5$(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.C6(this)),this.activeModules.push(new _.fww(this)),this.activeModules.push(new _.$8g(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new _.xjw(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.mjC(this)),_.S("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.LQl(this)),
_.S("web_fullscreen_components")&&this.activeModules.push(new _.x0$(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new _.q$l(this))):(_.d6(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.r.disposeInternal=function(){_.Li.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Ec.Object.defineProperties(dpw.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var WCM={},ejB=["learning-journey-engagement-panel","PAlearning_chat"];
WCM.YtdLearningJourneyWatchBehavior=[_.d.YtRendererBehavior,_.Pl.YtPlayerListenerBehavior,_.rq.YtRendererstamperBehavior,_.qM.YtActionHandlerBehavior,_.j4.YtPageBehavior,_.Ge.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 _.MD("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.MD("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 _.S("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("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 _.mn("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.mn("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!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("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 _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_rounded_player_large")||_.S("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 _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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:_.fb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.fb(["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}}}},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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.y0C(function(){return _.eX(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.S("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.X8;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;_.S("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.aH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.q2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var e=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.fe({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Tv("nw");this.loading=!1;_.kM(_.Tm,function(){e.initDclkstatus_();var b,m=((b=e.player)==null?void 0:b.getVideoData().cpn)||"";_.wkC(function(q,Q){_.mz1(q,Q,m)})})},
onPageLoadWithSameData_:function(){_.S("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;var e,t,b;W=(e=this.loadingData)==null?void 0:(t=e.endpoint)==null?void 0:(b=t.watchEndpoint)==null?void 0:b.videoId;var m;W&&(m="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.rz(this.hostElement).querySelector("#player").style.backgroundImage=m?"url("+m+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.rz(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var e,t;(t=(e=this.watchMetadata).updateSentimentBarWidth)==
null||t.call(e);var b,m;(m=(b=this.watchMetadata).resize)==null||m.call(b)}_.rz(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(W){var e=_.rz(this.hostElement).querySelector(W);e?_.m1(e,!1):_.JC(new _.o_("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var e=_.rz(this.hostElement).querySelector(W);e?_.ry(e):_.JC(new _.o_("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var e=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Tm.addLowPriorityJob(function(){e.onWindowResized_(_.lm(!0))})},
updateTheaterModeState_:function(W){if(!_.S("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.$HC()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.rz(this.hostElement).querySelector("#player-full-bleed-container"):_.rz(this.hostElement).querySelector("#player-container-inner");var e=this.getPlayerContainer(),t=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");e.parentElement!==W&&(t&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.eX(this).appendTo(W,e),W.appendChild(_.rz(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.ee().resolve(_.Kn).deactivate(),2);W.updatePlayerLocation();_.u8(e)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var e=this.getCinematicsLocationContainer();W.parentElement!==e&&e.appendChild(W);var t;(t=this.watchController)==null||t.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.rz(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.rz(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,e){var t=document.documentElement.hasAttribute("dark"),b=t&&_.S("web_cinematic_theater_mode"),m=t&&_.S("web_cinematic_fullscreen");t=!t&&this.cinematicLightTheme;return W&&b||e&&m||(e||W)&&t},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.ee().resolve(_.Oj).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var e,
t,b;if((e=this.data)==null?0:(t=e.contents)==null?0:(b=t.twoColumnWatchNextResults)==null?0:b.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var m,q;((m=this.data)==null?0:(q=m.contents)==null?0:q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(W){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(e=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),e&&!W||_.Uc(this,function(){_.Tv("pbu")}));
this.setPlayerAds_();_.Qx(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.Eb().dispatch(_.rO({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new dpw(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var e=_.eX(this);_.S("kevlar_disable_prepare_player")||e.preparePlayer();_.S("kevlar_watch_flexy_playlist_manager")||_.ee().resolve(_.Oj).setPlayer(e);this.updatePageMediaQueries();e={"--ytd-watch-flexy-scrollbar-width":_.jy()+
"px"};!_.mn("kv_pl_mx_sz_ks")&&_.mn("kevlar_watch_max_player_width")&&(e["--ytd-watch-flexy-max-player-width-wide-screen"]=_.XyT+"px");_.mn("kevlar_watch_flexy_metadata_height")&&(e["--ytd-watch-flexy-space-below-player"]=_.IPl+"px");this.safeUpdateStyles(e);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new NnS(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.rz(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.jy(),e=_.Mp+W,t=e;this.fixedPanels&&(e+=_.FsC);var b=657+W;W=1327+W;_.rz(this.hostElement).querySelector("#two-column-query").query="(min-width: "+e+"px)";_.rz(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(e+"px) and (max-width: ")+(W+"px)");_.rz(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.rz(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+t+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.rz(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.aD(NaN,NaN):_.Px(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Px(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.NL(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.lm());_.S("browse_skeleton_removal_on_watch_killswitch")||_.MD("IS_SHELL_LOAD")&&_.umC();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var e=_.eX(this);e.addEventListener("yt-player-updated",_.aH(this,this.onPlayerUpdated_));e.getPlayerPromise().then(function(t){W.playerApiReady_(t)});
_.S("kevlar_watch_flexy_playlist_manager")||(e=_.ee().resolve(_.Oj),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&e.addEventListener("yt-navigate",_.aH(this,this.onYtNavigate_)),e.setPlaylistComponent(_.rz(this.hostElement).querySelector("#playlist")),e.addEventListener("yt-playlist-data-updated",_.aH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Tm.addLowPriorityJob(function(){_.q2(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.eX(this).removeEventListener("yt-player-updated",_.aH(this,this.onPlayerUpdated_));if(!_.S("kevlar_watch_flexy_playlist_manager")){var W=_.ee().resolve(_.Oj);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.aH(this,this.onYtNavigate_));W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.aH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.q2(this.hostElement,"yt-autonav-pause-player",!1);W=_.ty();_.S("kevlar_exit_fullscreen_leaving_watch")&&W&&_.bc(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,e){e.hasComments?e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):e.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,e){this.player&&(e?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.yL("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.rz(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.rz(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.NZ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,e){e=e===void 0?!0:e;_.ty()&&_.S("external_fullscreen")&&_.bc(document.documentElement);this.theaterRequested_=W;e&&_.GJ("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.RT(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.q2(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(W){_.xM(W,typeof this.player),this.player&&_.xM(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.RT(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,e){return this.loading?e:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.R(W);for(var e=W.next();!e.done;e=W.next())e=e.value,e.youThereRenderer&&_.nUB(this.youThereManager_,e.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var e=this.youThereManager_;_.be()<W.lowEngagementThresholdMs||_.J0$(e,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.RT(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,e,t){return!!W&&!this.isVideoPlayable_(W,t)&&!e},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,e){if(!W)return!1;var t=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var m;e=e==null?void 0:(m=e.playerOverlayRenderer)==null?void 0:m.gatedActionsOverlayRenderer;return!!t||!!b||!!W||!!e},
hasWatchNextResponseErrorRenderer:function(W){var e=this.getPageContents(W),t,b,m,q,Q;return!(W==null?0:(t=W.contents)==null?0:(b=t.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((m=e[0])==null?0:(q=m.itemSectionRenderer)==null?0:(Q=q.contents[0])==null?0:Q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,e,t){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e),m=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];m=_.S("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&m.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var q=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);q==void 0&&(q=!0);!t||this.isVideoPlayable_(W,this.getPlayerOverlays_(e))||
b||m||!q||_.ee().resolve(_.Oj).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.SYB()},
onPlayerFeedbackStartRequest_:function(W){_.RT(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.RT(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,e,t,b,m,q,Q,X,I=((W=this.data)==null?NaN:(e=W.contents)==null?NaN:(t=e.twoColumnWatchNextResults)==null?NaN:(b=t.secondaryResults)==null?NaN:(m=b.secondaryResults)==null?NaN:(q=m.offerModule)==null?NaN:(Q=q.tvfilmOfferModuleRenderer)==null?NaN:(X=Q.actionButtons)==null?NaN:X.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];e=_.R(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(t=e.next();!t.done;t=e.next())for(t=t.value,b=_.R(W),m=b.next();!m.done;m=b.next())if(m="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+t+m.value,m=this.get(m+"navigationEndpoint",this.data)||this.get(m+"serviceEndpoint",this.data)||this.get(m+"command",this.data)){_.cg(m,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.q2(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.q2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.Eb().dispatch(_.U$P(W))},
onPlayerSubscribe_:function(W){_.RT(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.RT(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.RT(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(W){return!_.S("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var W,e,t,b;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(e=W.contents)==null?void 0:(t=e.twoColumnWatchNextResults)==null?void 0:(b=t.secondaryResults)==null?void 0:b.secondaryResults}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,e=(W=this.data)==null?void 0:W.engagementPanels;if(e==null?0:e.length){W=null;e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;if(((b=t.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){W=t;break}}var m,q,Q;W=(m=W)==null?void 0:(q=m.engagementPanelSectionListRenderer)==null?void 0:(Q=q.content)==null?void 0:Q.structuredDescriptionContentRenderer;if(W==null?0:W.items){m=
[];q=_.R(W.items);for(Q=q.next();!Q.done;Q=q.next()){Q=Q.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var X=b=t=e=W=void 0,I=void 0,u=(W=Q.horizontalCardListRenderer)==null?void 0:(e=W.header)==null?void 0:(t=e.richListHeaderRenderer)==null?void 0:(b=t.navigationButton)==null?void 0:(X=b.buttonRenderer)==null?void 0:(I=X.command)==null?void 0:I.commandExecutorCommand;u&&u.commands&&(u.commands=u.commands.filter(function(c){return!_.l(c,_.kWM)}))}Q.expandableVideoDescriptionBodyRenderer||
Q.videoDescriptionHeaderRenderer||m.push(Q)}return{items:m}}}},
constructWarning_:function(W){return{text:_.zq(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.q2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var e=this.getScrollTop()>0;this.gestures_&&(e?this.gestures_.detach():this.gestures_.attach());e!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=e,_.eX(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.q2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.Tm.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.kM(_.Tm,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Tv("cmi");_.Tm.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.R(W);for(var e=W.next();!e.done;e=W.next())if(e=e.value,this.get("itemSectionRenderer.sectionIdentifier",e)==="comment-item-section"){this.comments=e.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.q2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Tv("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Tm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Tm.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,e){var t=_.l(e.endpoint,_.z4);t&&(!(e=this.get("data.currentVideoEndpoint.watchEndpoint"))||t.videoId!==e.videoId||t.playlistId&&t.playlistId!==e.playlistId||t.index!==void 0&&t.index!==e.index||typeof t.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.eX(this).getPlayerPromise().then(function(b){var m=t.startTimeSeconds;b.seekTo(m);b.wakeUpControls();m<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.mpw();"t"in W&&(W=_.Dp1(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var e,t;(W=_.Ub(W==null?void 0:(e=W[0])==null?void 0:(t=e.videoPrimaryInfoRenderer)==null?void 0:t.title))&&_.q2(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.q2(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,e,t){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===t&&(t=b.list,_.S("polymer_enable_mdx_queue")&&t&&t.startsWith("RQ")&&(t=void 0),b.video_id!==W||t!=e)){var m;_.S("kevlar_player_watch_endpoint_navigation")?m=_.M0g(_.u$E(W,e)):m=this.buildWatchEndpoint_(W,e);_.q2(this.hostElement,"yt-navigate",{endpoint:m,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,e,t){return _.ew(W,e,t)},
initDclkstatus_:function(){_.GlC()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var e=W.querySelector("#primary-info"),t=W.querySelector("#secondary-info"),b=W.querySelector("#related");e&&_.rz(this.hostElement).querySelector("#info-skeleton").appendChild(e);t&&_.rz(this.hostElement).querySelector("#meta-skeleton").appendChild(t);b&&(_.rz(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.BX(W)}},
handlePlayerUpdated_:function(){_.eX(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,e){if(this.watchNextSkeletonEl_&&typeof e!=="undefined"){var t=this.watchNextSkeletonEl_.children,b=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,t.length);e||(b=0,W=t.length);for(e=b;e<W;e++)t[e].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.S("external_fullscreen")||_.RT(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var e=_.eX(this);e.getPlayerPromise().then(function(t){t.setFauxFullscreen(!!_.ty())});
this.updateFullBleedElementLocations();W&&(e.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,e){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!e},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,e){return e&&!!W},
computeResponseHasComments:function(W){var e,t,b,m,q;return!!(W==null?0:(e=W.contents)==null?0:(t=e.twoColumnWatchNextResults)==null?0:(b=t.results)==null?0:(m=b.results)==null?0:(q=m.contents)==null?0:q.some(function(Q){var X;return(Q==null?void 0:(X=Q.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,e){this.responseHasComments=this.computeResponseHasComments(this.data);return!!W&&!!Object.keys(W).length&&!e},
identity:_.sL,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var e=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.eX(this).getPlayerPromise().then(function(t){var b=t.getPlayerState();b!==5&&b!==0&&(t=1/t.getVideoAspectRatio(),e.videoHeightToWidthRatio_!==t&&(e.videoHeightToWidthRatio_=t))})},
schedulePlayerSizeUpdate_:function(W){var e=this,t=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),b=function(){if(e.watchMetadata){var m,q;(q=(m=e.watchMetadata).resize)==null||q.call(m)}_.eX(e).getPlayerPromise().then(function(Q){if(_.S("kevlar_set_internal_player_size")){if(!t||!e.isMiniplayerActive()){var X=e.calculateCurrentPlayerSize_();Q.setInternalSize(X.width,X.height)}}else Q.setSize(NaN,NaN);_.S("kevlar_watch_while")&&e.updateWatchWhileScrollThreshold_()})};
W?b():_.CU(_.Tm,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.l(W,_.pkC).survey)},
onDownloadedVideoDeleted:function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1){if(!e.active||(t=e.playerData)==null||!t.offlineState||e.videoId!==W)return m.return();(b=e.player)==null||b.stopVideo();_.G3().navigatingAwayFromWatchDeletedVideo=!0;_.cg(_.nTL,e.hostElement);return _.a(m,_.G3().navigationFinishPromise,2)}_.G3().navigatingAwayFromWatchDeletedVideo=!1;_.u8(m)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.Mw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.rz(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var e=this.windowSize_.height>=624,t=this.active?this.getScrollTop():0;!W.active&&e&&t>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!e||t<this.watchWhileScrollThreshold_&&!_.ty())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(W,e){if(W!==!0||e!==void 0){W=!_.S("live_chat_over_engagement_panels");e=_.rz(this.hostElement).querySelector("#chat-container");var t=_.rz(this.hostElement).querySelector("#plj-sidebar"),b=_.rz(this.hostElement).querySelector("#panels"),m=_.rz(this.hostElement).querySelector("#plj-panels"),q=_.rz(this.hostElement).querySelector("#plj-playlist"),Q=_.rz(this.hostElement).querySelector("#alerts"),X=_.rz(this.hostElement).querySelector("#playlist"),I=_.rz(this.hostElement).querySelector("#related"),
u=_.rz(this.hostElement).querySelector("#donation-shelf"),c=_.rz(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Q=_.rz(this.hostElement).querySelector("#secondary-inner"),Q.appendChild(t),t.appendChild(q),q.appendChild(X),t.appendChild(m),W&&Q.appendChild(b),_.S("web_watch_theater_chat")||Q.appendChild(e),W||Q.appendChild(b),Q.appendChild(u),Q.appendChild(I)):(W&&_.fd(b,Q),_.fd(X,Q),_.S("web_watch_theater_chat")||_.fd(e,Q),W||_.fd(b,Q),_.fd(u,Q),c&&(m&&_.fd(m,c),_.fd(I,c)));_.S("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.S("web_watch_theater_chat")){var W=_.rz(this.hostElement).querySelector("#chat-container"),e=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&e?_.S("web_watch_theater_chat_beside_player")?(e=_.rz(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==e&&e.append(W),this.panelsBesidePlayer=!0):_.S("web_watch_theater_fixed_chat")&&
(e=_.rz(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==e&&e.append(W),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),e=_.rz(this.hostElement).querySelector("#playlist"),W&&e?_.gj(W,e):_.JC(new _.o_("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!e})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,e){return _.S("sw_metadata_vis_toggle_ks")?!0:!!W||!!e},
computeForceDarkPanelTheme:function(W){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.XB(this.hostElement,W)}catch(e){_.JC(e)}},
videoHeightToWidthRatioChanged_:function(W,e){e&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.eX(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.eX(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.xpB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var e=_.Ie(W)||0;_.X_(W,e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.Ie("yt-fullerscreen-edu-button-click-count")||0,e=_.Ie("yt-fullerscreen-edu-button-shown-count")||0,t=_.mn("external_fullscreen_button_shown_threshold"),b=W>=_.mn("external_fullscreen_button_click_threshold")||e>=t;_.eX(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,e){return e},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.ee().resolve(_.Oj).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.panelMaxHeightUpdateJob_&&_.Tm.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Tm.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var e;!W.isTwoColumns_||W.theater||W.fullscreen?e=460:e=W.calculateNormalPlayerSize_().height;var t=e+"px";_.S("live_chat_taller_height")&&!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.S("live_chat_medium_height")&&
!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!W.theater&&(t="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":e+"px","--ytd-watch-flexy-chat-max-height":t,"--ytd-watch-flexy-structured-description-max-height":e+"px","--ytd-watch-flexy-comments-panel-max-height":e+"px","--ytd-comments-engagement-panel-content-height":e+"px"})})},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var e=_.rz(this.hostElement).querySelector("#engagement-panel-scrim");W?e.addEventListener("tap",_.aH(this,this.onEngagementPanelScrimClick_)):e.removeEventListener("tap",_.aH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var e=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var t=this.getPageScrollingElement(),b=this.getScrollTop(),m=b+t.clientHeight-56;if(e<b+56)e-=56;else if(W>m)e=W-t.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.uN().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,e,t){this.active&&this.trackEngagementPanelVisibility&&!_.$pg.includes(t)&&(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(t),e!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&e!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(t),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,e){return W||e},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,e){return!W&&e},
computeWatchWhilePanelsActive:function(W,e){return W||e},
computeNoBorderOnChat:function(W){return _.S("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,e){return W&&!e},
computePanelExpanded:function(W,e,t){return W||e||t},
onChangeMarkersVisibility:function(W){_.eX(this).getPlayerPromise().then(function(e){var t;(t=e.changeMarkerVisibility)==null||t.call(e,_.l(W,_.Vi).isVisible||!1,_.l(W,_.Vi).entityKeys||[],_.l(W,_.Vi).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.Eb().dispatch(_.Zk1(W.detail))},
provideRenderingData:function(W,e){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=e;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=e);this.videoPrimaryInfoRendererValue=e==null?void 0:e.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=e);this.videoSecondaryInfoRendererValue=e==null?void 0:e.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
e;break;case "CLARIFICATION":this.clarifyBoxValue=e;break;case "LIVE_CHAT":this.conversationBar=e;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=e;break;case "PLAYLIST":this.externalPlaylistData_=e!=null?e:{};break;case "MERCH_SHELF":this.merchShelfValue=e==null?void 0:e.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=e;break;case "OFFER_MODULE":this.offerModule=e;break;case "LIMITED_STATE":this.limitedStateValue=e;break;case "DONATION_SHELF":this.donation=e;break;
case "ALERTS":this.alertsValue=e;break;case "COMMENTS":this.comments=e;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=e;break;case "ENGAGEMENT_PANELS":this.engagementPanels=e;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=e;break;case "RICH_GRID_RENDERER":this.richGridRendererData=e;break;case "EXPANDABLE_METADATA":this.expandableMetadata=e;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=e}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.ee().resolve(_.Kn).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return ejB.map(function(e){return W.find(function(t){var b;return(t==null?void 0:(b=t.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===e})}).filter(function(e){return e!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(e){var t;return!ejB.includes((e==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:t.targetId)||"")})}}];var tZQ;var d5=function(){var W=_.O.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.S("enable_player_resize_transition");W.smallerChatMinHeight=_.S("live_chat_smaller_min_height");W.cinematicTheaterMode=_.S("web_cinematic_theater_mode");W.transparentTheaterMode=_.S("web_transparent_theater_mode");W.cinematicFullscreen=_.S("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.S("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");return W};
_.Z(d5,_.O);_.r=d5.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.r.ready=function(){var W=this,e=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(W){_.S("web_watch_update_narrow_width_killswitch")||_.Eb().dispatch(_.ShT(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.r.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.r.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20566_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20566_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ec.Object.defineProperties(d5.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(W=_.l(this.data.pageVisualEffects[e],_.$1))return e=void 0,(e=W.config)==null?void 0:e.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.learningJourneyEngagementPanels)==null?void 0:W.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.learningJourneyEngagementPanels)==null?void 0:W.find(function(D){var B;return(D==null?void 0:(B=D.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="learning-journey-engagement-panel"});
if(e){var t,b,m,q,Q,X,I,u,c;if(W=(u=((I=(Q=((q=e==null?void 0:(t=e.engagementPanelSectionListRenderer)==null?void 0:(b=t.content)==null?void 0:(m=b.sectionListRenderer)==null?void 0:m.contents)!=null?q:[])[0])==null?void 0:(X=Q.itemSectionRenderer)==null?void 0:X.contents)!=null?I:[])[0])==null?void 0:(c=u.accordionViewModel)==null?void 0:c.onTitleTap){var v=_.Mk(W);if(v)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.uL.instance.resolveCommand(v)}}}}}}});
_.Ec.Object.defineProperties(d5,{template:{configurable:!0,enumerable:!0,get:function(){if(tZQ===void 0){var W=document.createElement("template");_.p(W,'\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\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="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>\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);tZQ=W}W=tZQ;return W}}});
d5.prototype.updateMiniplayerIsActiveValue=d5.prototype.updateMiniplayerIsActiveValue;d5.prototype.updateScrollTopValue=d5.prototype.updateScrollTopValue;d5.prototype.updateFullscreenValue=d5.prototype.updateFullscreenValue;d5.prototype.updateTheaterValue=d5.prototype.updateTheaterValue;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);
_.P([_.y(WCM.YtdLearningJourneyWatchBehavior),_.Y("design:type",Object)],d5.prototype,"ytdWatchBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],d5.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],d5.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],d5.prototype,"playerData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"flexy",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"learningJourney",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"roundedInfoPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"viewTransitionEnabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"smallerChatMinHeight",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"cinematicTheaterMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"transparentTheaterMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"cinematicFullscreen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"useLargerMaxPlayerValue",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"cinematicFullscreenV2",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"isDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],d5.prototype,"theaterLargerPlayer",void 0);_.P([_.J(),_.Y("design:type",Object)],d5.prototype,"defaultCollapsePlaylist",void 0);_.P([_.J({selector:_.hv}),_.Y("design:type",Object)],d5.prototype,"theaterValue",void 0);
_.P([_.J({selector:_.HS}),_.Y("design:type",Object)],d5.prototype,"fullscreenValue",void 0);_.P([_.J({selector:_.yq}),_.Y("design:type",Object)],d5.prototype,"scrollTopValue",void 0);_.P([_.J({selector:_.gO}),_.Y("design:type",Object)],d5.prototype,"miniplayerIsActiveValue",void 0);_.P([_.vG("#ytd-plj-player"),_.Y("design:type",HTMLElement)],d5.prototype,"ytdPlayer",void 0);_.P([_.vG("#playlist"),_.Y("design:type",HTMLElement)],d5.prototype,"JSC$20566_ytdPlaylistPanelRenderer",void 0);
_.P([_.UM("ytd-comments"),_.Y("design:type",HTMLElement)],d5.prototype,"ytdComments",void 0);_.P([_.vG("#primary"),_.Y("design:type",HTMLElement)],d5.prototype,"primary",void 0);_.P([_.vG("#secondary"),_.Y("design:type",HTMLElement)],d5.prototype,"secondary",void 0);_.P([_.vG("#player-container"),_.Y("design:type",HTMLElement)],d5.prototype,"playerContainer",void 0);_.P([_.vG("#cinematics"),_.Y("design:type",HTMLElement)],d5.prototype,"JSC$20566_cinematics",void 0);
_.P([_.ul("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d5.prototype,"updateTheaterValue",null);_.P([_.ul("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d5.prototype,"updateFullscreenValue",null);_.P([_.ul("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d5.prototype,"updateScrollTopValue",null);
_.P([_.ul("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d5.prototype,"updateMiniplayerIsActiveValue",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d5.prototype,"cinematicLightTheme",null);_.P([_.J({reflectToAttribute:!0}),_.T("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d5.prototype,"hasLearningJourneyPanels",null);
_.P([_.T("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d5.prototype,"backButtonData",null);_.P([_.h({is:"ytd-watch-learning-journey"})],d5);_.qQ.registerService(_.XoS,d5);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("Tm0L3c");
var VcM;var iku;var YYE=function(){return _.O.apply(this,arguments)||this};
_.Z(YYE,_.O);_.P([_.h({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],YYE);
_.H(YYE,"ytd-ghost-comments-renderer",function(){if(iku===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);iku=W}W=iku;return W},{mode:1});var zXC;var Upu=function(){return _.O.apply(this,arguments)||this};
_.Z(Upu,_.O);_.P([_.h({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Upu);
_.H(Upu,"ytd-ghost-watch-metadata-renderer",function(){if(zXC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);zXC=W}W=zXC;return W},{mode:1});var NB=function(){var W=_.O.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.S("live_chat_smaller_min_height");W.cinematicTheaterMode=_.S("web_cinematic_theater_mode");W.transparentTheaterMode=_.S("web_transparent_theater_mode");W.darkerPanels=_.S("web_watch_darker_panels");W.cinematicFullscreen=_.S("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.Z(NB,_.O);_.r=NB.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.r.ready=function(){var W=this,e=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.r.updateShownItemsFromBinding=function(W){_.S("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.r.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20554_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20554_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ec.Object.defineProperties(NB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(W=_.l(this.data.pageVisualEffects[e],_.$1))return e=void 0,(e=W.config)==null?void 0:e.enableInLightTheme;return!1}}});
NB.prototype.updateMiniplayerIsActiveValue=NB.prototype.updateMiniplayerIsActiveValue;NB.prototype.updateScrollTopValue=NB.prototype.updateScrollTopValue;NB.prototype.updateFullscreenValue=NB.prototype.updateFullscreenValue;NB.prototype.updateTheaterValue=NB.prototype.updateTheaterValue;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],NB.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.Kr1.YtdWatchBehavior),_.Y("design:type",Object)],NB.prototype,"ytdWatchBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],NB.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],NB.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],NB.prototype,"ghostGridRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],NB.prototype,"playerData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"roundedInfoPanel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"hideOfferModules",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"smallerChatMinHeight",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"cinematicTheaterMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"transparentTheaterMode",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"darkerPanels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"cinematicFullscreen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"cinematicFullscreenV2",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],NB.prototype,"isDarkTheme",void 0);_.P([_.J({selector:_.hv}),_.Y("design:type",Object)],NB.prototype,"theaterValue",void 0);
_.P([_.J({selector:_.HS}),_.Y("design:type",Object)],NB.prototype,"fullscreenValue",void 0);_.P([_.J({selector:_.yq}),_.Y("design:type",Object)],NB.prototype,"scrollTopValue",void 0);_.P([_.J({selector:_.gO}),_.Y("design:type",Object)],NB.prototype,"miniplayerIsActiveValue",void 0);_.P([_.vG("#ytd-player"),_.Y("design:type",HTMLElement)],NB.prototype,"ytdPlayer",void 0);_.P([_.vG("#playlist"),_.Y("design:type",HTMLElement)],NB.prototype,"JSC$20554_ytdPlaylistPanelRenderer",void 0);
_.P([_.vG("#ytd-comments"),_.Y("design:type",HTMLElement)],NB.prototype,"ytdComments",void 0);_.P([_.vG("#primary"),_.Y("design:type",HTMLElement)],NB.prototype,"primary",void 0);_.P([_.vG("#secondary"),_.Y("design:type",HTMLElement)],NB.prototype,"secondary",void 0);_.P([_.vG("#player-container"),_.Y("design:type",HTMLElement)],NB.prototype,"playerContainer",void 0);_.P([_.vG("#cinematics"),_.Y("design:type",HTMLElement)],NB.prototype,"JSC$20554_cinematics",void 0);
_.P([_.ul("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NB.prototype,"updateTheaterValue",null);_.P([_.ul("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NB.prototype,"updateFullscreenValue",null);_.P([_.ul("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NB.prototype,"updateScrollTopValue",null);
_.P([_.ul("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NB.prototype,"updateMiniplayerIsActiveValue",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NB.prototype,"cinematicLightTheme",null);
_.H(NB,"ytd-watch-grid",function(){if(VcM===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);VcM=W}W=VcM;return W},{mode:2});_.qQ.registerService(_.FpD,NB);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("CF909");
var PqC;var AZ=function(){var W=_.O.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.S("enable_player_resize_transition");W.smallerChatMinHeight=_.S("live_chat_smaller_min_height");W.cinematicTheaterMode=_.S("web_cinematic_theater_mode");W.transparentTheaterMode=_.S("web_transparent_theater_mode");W.cinematicFullscreen=_.S("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;return W};
_.Z(AZ,_.O);_.r=AZ.prototype;_.r.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.r.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.r.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.r.updateRetroModeReduxValue=function(){_.S("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.r.ready=function(){var W=this,e=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",e);this.secondary.addEventListener("scroll",e)};
_.r.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.r.updateIsTwoColumnsFromBinding=function(W){_.S("web_watch_update_narrow_width_killswitch")||_.Eb().dispatch(_.ShT(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.r.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.r.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.r.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.r.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.r.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.r.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20549_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20549_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Ec.Object.defineProperties(AZ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var e=0;e<this.data.pageVisualEffects.length;e++)if(W=_.l(this.data.pageVisualEffects[e],_.$1))return e=void 0,(e=W.config)==null?void 0:e.enableInLightTheme;return!1}}});
_.Ec.Object.defineProperties(AZ,{template:{configurable:!0,enumerable:!0,get:function(){if(PqC===void 0){var W=document.createElement("template");_.p(W,'\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="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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);PqC=W}W=PqC;return W}}});
AZ.prototype.updateRetroModeReduxValue=AZ.prototype.updateRetroModeReduxValue;AZ.prototype.updateScrollTopValue=AZ.prototype.updateScrollTopValue;AZ.prototype.updateFullscreenValue=AZ.prototype.updateFullscreenValue;AZ.prototype.updateTheaterValue=AZ.prototype.updateTheaterValue;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],AZ.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.Kr1.YtdWatchBehavior),_.Y("design:type",Object)],AZ.prototype,"ytdWatchBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],AZ.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],AZ.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],AZ.prototype,"playerData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"flexy",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"roundedInfoPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"viewTransitionEnabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"smallerChatMinHeight",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"cinematicTheaterMode",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"transparentTheaterMode",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"cinematicFullscreen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"useLargerMaxPlayerValue",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"cinematicFullscreenV2",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"isDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],AZ.prototype,"defaultCollapsePlaylist",void 0);_.P([_.J({selector:_.hv}),_.Y("design:type",Object)],AZ.prototype,"theaterValue",void 0);_.P([_.J({selector:_.HS}),_.Y("design:type",Object)],AZ.prototype,"fullscreenValue",void 0);_.P([_.J({selector:_.yq}),_.Y("design:type",Object)],AZ.prototype,"scrollTopValue",void 0);
_.P([_.J({selector:_.gO}),_.Y("design:type",Object)],AZ.prototype,"miniplayerIsActive",void 0);_.P([_.J({selector:function(W){return W.watch.isWatchRetroMode}}),
_.Y("design:type",Object)],AZ.prototype,"retroModeReduxValue",void 0);_.P([_.UM("ytd-player"),_.Y("design:type",HTMLElement)],AZ.prototype,"ytdPlayer",void 0);_.P([_.vG("#playlist"),_.Y("design:type",HTMLElement)],AZ.prototype,"JSC$20549_ytdPlaylistPanelRenderer",void 0);_.P([_.UM("ytd-comments"),_.Y("design:type",HTMLElement)],AZ.prototype,"ytdComments",void 0);_.P([_.vG("#primary"),_.Y("design:type",HTMLElement)],AZ.prototype,"primary",void 0);
_.P([_.vG("#secondary"),_.Y("design:type",HTMLElement)],AZ.prototype,"secondary",void 0);_.P([_.vG("#player-container"),_.Y("design:type",HTMLElement)],AZ.prototype,"playerContainer",void 0);_.P([_.vG("#cinematics"),_.Y("design:type",HTMLElement)],AZ.prototype,"JSC$20549_cinematics",void 0);_.P([_.ul("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"updateTheaterValue",null);
_.P([_.ul("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"updateFullscreenValue",null);_.P([_.ul("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"updateScrollTopValue",null);_.P([_.ul("retroModeReduxValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"updateRetroModeReduxValue",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AZ.prototype,"cinematicLightTheme",null);_.P([_.h({is:"ytd-watch-flexy"})],AZ);_.qQ.registerService(_.QlL,AZ);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("nmfa2d");
var bkS;var Hx=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.Z(Hx,_.O);_.r=Hx.prototype;_.r.getPlayer=function(){return this.ytdPlayer};
_.r.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:_.fb(["aa","eocs"])}}};
_.r.onActiveChanged=function(){_.Eb().dispatch(_.ExS(this.ytPageBehavior.active))};
_.r.playerDataChanged=function(){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData)};
_.r.dataChanged=function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data)};
_.r.sizeChanged=function(){var W,e;(e=(W=this.metadata).resize)==null||e.call(W)};
_.r.attached=function(){this.watchController=new _.sC(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.r.detached=function(){_.NL(this.watchController);this.watchController=void 0};
_.r.getPlayerContainer=function(){return this.playerContainer};
_.r.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20501_playlistPanel}};
_.r.provideRenderingData=function(W,e){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=e;break;case "ERROR_SCREEN":this.errorScreen=e!=null?e:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=e;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=e;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=e;break;case "RICH_METADATA":this.richMetadataRowContainer=e;break;case "CLARIFICATION":this.clarificationData=e;break;case "PLAYLIST":this.playlistData=
e!=null?e:{};break;case "MERCH_SHELF":this.merchShelf=e;break;case "TICKET_SHELF":this.ticketShelf=e;break;case "LIMITED_STATE":this.limitedState=e;break;case "DONATION_SHELF":this.donationShelf=e;break;case "ALERTS":this.alerts=e}};
_.Ec.Object.defineProperties(Hx.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return!this.hidden&&!!((W=this.data)==null?0:(e=W.contents)==null?0:(t=e.twoColumnWatchNextResults)==null?0:t.conversationBar)}}});
Hx.prototype.sizeChanged=Hx.prototype.sizeChanged;Hx.prototype.dataChanged=Hx.prototype.dataChanged;Hx.prototype.playerDataChanged=Hx.prototype.playerDataChanged;Hx.prototype.onActiveChanged=Hx.prototype.onActiveChanged;_.P([_.y(_.j4.YtPageBehavior),_.Y("design:type",Object)],Hx.prototype,"ytPageBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Hx.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Hx.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"playerData",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hx.prototype,"hidden",void 0);_.P([_.vG("#ytd-player"),_.Y("design:type",HTMLElement)],Hx.prototype,"ytdPlayer",void 0);_.P([_.vG("#player-container"),_.Y("design:type",HTMLElement)],Hx.prototype,"playerContainer",void 0);_.P([_.vG("#metadata"),_.Y("design:type",Object)],Hx.prototype,"metadata",void 0);_.P([_.vG("#playlist"),_.Y("design:type",HTMLElement)],Hx.prototype,"JSC$20501_playlistPanel",void 0);
_.P([_.J({selector:_.jdg,reflectToAttribute:!0}),_.Y("design:type",Object)],Hx.prototype,"fixie",void 0);_.P([_.J({selector:_.yIE,reflectToAttribute:!0}),_.Y("design:type",Object)],Hx.prototype,"singleColumn",void 0);_.P([_.J({selector:function(W){return _.hv(W)&&!_.HS(W)},
reflectToAttribute:!0}),_.Y("design:type",Object)],Hx.prototype,"theater",void 0);_.P([_.J({selector:_.HS,reflectToAttribute:!0}),_.Y("design:type",Object)],Hx.prototype,"fullscreen",void 0);_.P([_.J({selector:_.LBT}),_.Y("design:type",Object)],Hx.prototype,"windowSize",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"singleColumnContents",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"errorScreen",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"playlistData",void 0);
_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"videoPrimaryInfoRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"videoSecondaryInfoRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"richMetadataRowContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"clarificationData",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"commentsEntryPointHeaderRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"ticketShelf",void 0);
_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"merchShelf",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"donationShelf",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"limitedState",void 0);_.P([_.J(),_.Y("design:type",Object)],Hx.prototype,"alerts",void 0);_.P([_.T("playlistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hx.prototype,"hasPlaylistData",null);
_.P([_.T("data","hidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Hx.prototype,"hasChat",null);_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hx.prototype,"onActiveChanged",null);_.P([_.ul("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hx.prototype,"playerDataChanged",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hx.prototype,"dataChanged",null);_.P([_.ul("windowSize","singleColumn"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hx.prototype,"sizeChanged",null);
_.H(Hx,"ytd-watch-fixie",function(){if(bkS===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);bkS=W}W=bkS;return W},{mode:1});_.qQ.registerService(_.REz,Hx);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("xwEKAe");
var Bmw=function(W){var e=_.B6();if(e.getFlag(202))e=e.getFlag(201);else{var t;e=(W==null?void 0:(t=W.config)==null?void 0:t.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.S("web_shorts_cinematics_disabled_by_default")}return e},oTw=function(W){var e=_.B6();
_.oT(0,201,W);_.oT(0,202,!0);e.save()},lOQ=function(W){return(W=_.R2L(W))?_.FX9(W):0},ZqU=function(W){return W.shorts.isSmallScreenSqueezeback},$Ou=function(W){return W.shorts.isPlaybackStarted},ywU=function(W){var e=_.jA2(2),t=new Set;
_.fh(function(){return void t.forEach(function(b){return void b()})});
return function(b){var m=_.eC(e);try{var q=kUS(ptl(W),b);t.add(q);return function(){q();t.delete(q)}}finally{_.eC(m)}}},j9$=function(W){var e=W.children;
var t=W.root;_.jm(function(){var b=ywU(t)(e);_.fh(b)});
return document.createTextNode("")},kUS=function(W,e){var t=Ci1(W);
W=_.R(_.SZL(e,!0));e=W.next().value;var b=W.next().value;t.append.apply(t,_.kP(e));return function(){b();t.remove()}},ptl=function(W){if(typeof W==="string")return W=document.querySelector(W),_.Q_M(W),W;
if(_.QZ(W)&&W.nodeType===Node.ELEMENT_NODE)return W;try{if(!W.__hasErrored){if(W.__count&&W.__count>1)throw _.pt.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.LJ);if(W.__value){if(_.LJ!==_.LJ){var e=W.__value.tagName.toLowerCase();if(e!==_.LJ.toLowerCase())throw _.pt.USE_ELEMENT_UNEXPECTED_ELEMENT(_.LJ,e);}}else throw _.pt.USE_ELEMENT_NOT_ASSIGNED(_.LJ);}}catch(b){var t;(t=_.mJ.handleError)==null||t.call.apply(t,[_.mJ].concat(_.kP(_.s0(b,e))))}finally{W.__count=0}return W.value},Ci1=function(W){var e=document.createElementNS(W.namespaceURI,
W.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return W.appendChild(e)},nTB=function(W,e,t,b){W=e-W;
t=b-t;return Math.sqrt(W*W+t*t)},fOl=function(W,e){W&&_.ee().resolve(_.tQ).resolveCommand(W,{forceClickLogging:!0,
form:{element:e}})},gT$=function(W,e,t,b){W=e-W;
t=b-t;return Math.sqrt(W*W+t*t)},TmE=function(W,e){W&&_.ee().resolve(_.tQ).resolveCommand(W,{forceClickLogging:!0,
form:{element:e}})},Jw9=function(W){W.unsubscribeFromStore=_.S8(W.storeWithShorts,_.Fnu,function(e){W.initOrDisposeActiveModules(e);
!e&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.bc(document.documentElement),W.storeWithShorts.dispatch(_.aKT(!1)))});
W.initOrDisposeActiveModules(_.Fnu(W.storeWithShorts.getState()))},xOS=function(W){var e=_.ee().resolve(_.B1);
e.rootElement=W;Jw9(e)},Oqg=function(){return _.ee().resolve(_.B1).dismissedIndices},MRC=function(W){return _.rO({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},s9$=function(W){return _.rO({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},Ra=function(W){return _.rO({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})};var Qq=function(W,e){if(W instanceof Qq)this.array_=W.array_;else{var t;if(t=_.Ns(W))a:{for(var b=t=0;b<W.length;b++){if(!_.Ns(W[b])||t>0&&W[b].length!=t){t=!1;break a}for(var m=0;m<W[b].length;m++)if(typeof W[b][m]!=="number"){t=!1;break a}t==0&&(t=W[b].length)}t=t!=0}if(t)this.array_=_.EL(W);else if(W instanceof _.aD)this.array_=hW1(W.height,W.width);else if(typeof W==="number"&&typeof e==="number"&&W>0&&e>0)this.array_=hW1(W,e);else throw Error("$l");}this.size_=new _.aD(this.array_[0].length,
this.array_.length)},HqC=function(W,e,t){for(var b=0;b<W.getSize().height;b++)for(var m=0;m<W.getSize().width;m++)e.call(t,W.array_[b][m],b,m,W)},Khl=function(W,e){var t=new Qq(W.getSize());
HqC(W,function(b,m,q){t.array_[m][q]=e.call(void 0,b,m,q,W)});
return t},hW1=function(W,e){for(var t=[],b=0;b<W;b++){t[b]=[];
for(var m=0;m<e;m++)t[b][m]=0}return t};
Qq.prototype.add=function(W){if(!_.ztg(this.size_,W.getSize()))throw Error("am");return Khl(this,function(e,t,b){return e+W.array_[t][b]})};
Qq.prototype.equals=function(W,e){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;e=e||0;for(var t=0;t<this.size_.height;t++)for(var b=0;b<this.size_.width;b++)if(!_.Y79(this.array_[t][b],W.array_[t][b],e))return!1;return!0};
Qq.prototype.getSize=function(){return this.size_};
var F$=function(W,e,t){return e>=0&&e<W.size_.height&&t>=0&&t<W.size_.width?W.array_[e][t]:null};
Qq.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var X$=function(W,e,t,b){if(!(e>=0&&e<W.size_.height&&t>=0&&t<W.size_.width))throw Error("bm`"+e+"`"+t+"`"+W.size_.height+"`"+W.size_.width);W.array_[e][t]=b};
Qq.prototype.multiply=function(W){if(W instanceof Qq){if(this.size_.width!=W.getSize().height)throw Error("cm");return PiM(this,W)}if(typeof W==="number")return VRw(this,W);throw Error("dm");};
var PiM=function(W,e){var t=new Qq(W.size_.height,e.getSize().width);HqC(t,function(b,m,q){for(var Q=b=0;Q<this.size_.width;Q++)b+=F$(this,m,Q)*F$(e,Q,q);X$(t,m,q,b)},W);
return t},VRw=function(W,e){return Khl(W,function(t){return t*e})};var iqC=new _.z("inlineSurveyRenderer");var YNu=new _.z("interstitialViewModel");var zWM=new _.z("reelNavigateCommand");var UOS=new _.z("reelNonVideoContentDismissalCommand");var LhC=new _.z("showReelsCommentsOverlayCommand");var ETw=new _.z("shortsSuggestedActionViewModel");var AwT=new _.z("videoInteractionPopUpRenderer");var NmC;var dOw;var Wqg;var Ia=function(){var W=_.O.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.Z(Ia,_.O);_.r=Ia.prototype;_.r.onDataChanged=function(){this.maybeLogShows()};
_.r.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.Ub(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.r.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var e;if(W=(e=this.data.badgeInteractionLogging)==null?void 0:e.trackingParams)this.ctaVisualElement=_.$5(W)}};
_.r.maybeLogClicks=function(){this.currentCsn=_.fc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.zv(this.currentCsn,this.ctaVisualElement)};
_.r.maybeLogShows=function(){this.currentCsn=_.fc(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.ic(this.currentCsn,[this.ctaVisualElement])};
_.r.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var e;this.ytComponentBehavior.resolveCommand((e=this.data)==null?void 0:e.onClickCommand);this.maybeLogClicks()}};
Ia.prototype.onDataChanged=Ia.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);_.P([_.J({}),_.Y("design:type",Object)],Ia.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ia.prototype,"onDataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Ia);
_.H(Ia,"ytd-shopping-overlay-badge-renderer",function(){if(Wqg!==void 0)return Wqg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Wqg=W},{mode:1});_.mM(_.TGC,"reel-sound-metadata-view-model",{props:{data:_.bt,overlayDensity:_.bt}});_.mM(_.BlM,"player-disclosure-view-model",{props:{data:_.Eu}});_.mM(_.AlU,"pivot-button-view-model",{props:{data:_.bt,className:_.bt}});_.mM(_.Nie,"reel-action-bar-view-model",{props:{data:_.Eu,buttonShapeOverrideables:_.Eu}});_.mM(_.NN(function(W){function e(){var uv,GS,k9,CQ,fQ=(GS=_.l((uv=U())==null?void 0:uv.command,_.Zh))==null?void 0:(k9=GS.item)==null?void 0:(CQ=k9.notificationTextRenderer)==null?void 0:CQ.successResponseText;if(fQ)_.RT(b.value,"yt-open-popup-action",[_.Nf(fQ),b.value]);else if(V())fOl(V(),k.value);else{var iv;fOl((iv=U())==null?void 0:iv.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var t=W.data;var b=_.zT("yt-player-overlay-video-interactions");W=_.R(_.up("0px",void 0,"O1N7Ce"));var m=W.next().value,q=W.next().value;W=_.R(_.up("0px",void 0,"tTDBdb"));var Q=W.next().value,X=W.next().value;W=_.R(_.up(0,void 0,"fh8Zkc"));var I=W.next().value,u=W.next().value;W=_.R(_.up(0,void 0,"CUjqGd"));var c=W.next().value,v=W.next().value,D=function(){var uv;if(((uv=_.av())==null?void 0:uv.getPlayerState())!==-1){b.value.style.display="inherit";var GS;(GS=_.av())==null||GS.removeEventListener("onStateChange",
D)}B()},B=function(){var uv=document.querySelector("video");
if(uv){u(uv.getBoundingClientRect().width);v(uv.getBoundingClientRect().height);var GS;q((uv==null?void 0:(GS=uv.style)==null?void 0:GS.left)||"0px");var k9;X((uv==null?void 0:(k9=uv.style)==null?void 0:k9.top)||"0px")}};
_.nh(function(){var uv,GS,k9;if(((uv=_.av())==null?void 0:uv.getPlayerState())===-1&&Math.round(((k9=(GS=_.av())==null?void 0:GS.getVideoAspectRatio())!=null?k9:0)*100)!==Math.round(I()/c()*100)){b.value.style.display="none";var CQ,fQ;v(I()/((fQ=(CQ=_.av())==null?void 0:CQ.getVideoAspectRatio())!=null?fQ:1))}},"VB5m5");
_.jm(function(){var uv;(uv=_.av())==null||uv.addEventListener("onStateChange",D);window.addEventListener("resize",B);B();var GS,k9,CQ;if((CQ=(GS=t())==null?void 0:(k9=GS.regions)==null?void 0:k9[0])==null||!CQ.transformationMatrix)throw Error("hm");var fQ;if((fQ=t())==null?0:fQ.trackingParams){var iv;_.Sg().graftServerVe((iv=t().trackingParams)!=null?iv:"")}_.fh(function(){var hz;(hz=_.av())==null||hz.removeEventListener("onStateChange",D);window.removeEventListener("resize",B)})});
var k=_.zT("svg"),n=_.R(_.up(!1,void 0,"TPsTce"));W=n.next().value;var f=n.next().value,M=_.R(_.up(!1,void 0,"Uz6CHf"));n=M.next().value;var K=M.next().value,U=function(){var uv;return _.l((uv=t())==null?void 0:uv.popUp,AwT)},V=function(){var uv;
return(uv=t())==null?void 0:uv.command},L=function(){return _.l(V(),_.BS)!==void 0};
M=_.Be(function(){e();return!1});
var E={},RR={};return _.w("yt-player-overlay-video-interactions",{el:b},_.w("svg",{"on:mouseover":_.Be(function(){L()&&f(!0);K(!0);return!1}),
"on:mouseout":_.Be(function(){f(!1);K(!1);return!1}),
"on:keydown":_.Be(function(uv){uv.key==="Enter"&&e();return!1}),
"on:focus":_.Be(function(){L()&&f(!0);return!1}),
"on:blur":_.Be(function(){L()&&f(!1);return!1}),
el:k,tabindex:0,"aria-label":function(){var uv;return(uv=t())==null?void 0:uv.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ve("yt-player-overlay-video-interactions__interactions-svg",(E["yt-player-overlay-video-interactions__interactions-svg-hover"]=W,E),(RR["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=n,RR)),role:"button",style:function(){var uv,GS,k9,CQ=(k9=(uv=t())==null?void 0:(GS=uv.regions)==null?void 0:GS[0].transformationMatrix)!=null?k9:[];uv=I();GS=c();k9=[];for(var fQ=0,iv=-1;fQ<CQ.length;fQ++)fQ%3===0&&(iv++,k9[iv]=[]),k9[iv].push(CQ[fQ]);
CQ=new Qq(k9);k9=new Qq([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);k9=CQ.multiply(k9);CQ=new Qq([[0,0],[0,0],[0,0],[0,0]]);for(fQ=0;fQ<k9.getSize().width;fQ++){iv=F$(k9,0,fQ);var hz=F$(k9,1,fQ);if(iv===null||hz===null)throw Error("gm`"+(fQ+1).toString());X$(CQ,fQ,0,iv*uv);X$(CQ,fQ,1,hz*GS)}uv=F$(CQ,0,0);fQ=F$(CQ,1,0);GS=F$(CQ,0,1);iv=F$(CQ,1,1);if(uv===null||fQ===null||GS===null||iv===null)throw Error("em");k9=nTB(uv,fQ,GS,iv);hz=F$(CQ,3,0);CQ=F$(CQ,3,1);if(hz===null||CQ===null)throw Error("fm");CQ=nTB(uv,
hz,GS,CQ);iv=(Number((iv*-1).toFixed(2))-Number((GS*-1).toFixed(2)))/(Number(fQ.toFixed(2))-Number(uv.toFixed(2)));hz=Math.atan(iv)*180/Math.PI;fQ=iv===Number.POSITIVE_INFINITY?-90:iv===Number.NEGATIVE_INFINITY?90:Object.is(iv,-0)?180:iv===0?0:iv>0?hz*-1:uv<fQ?hz*-1:Math.abs(hz)+180;return"left:calc("+uv+"px + "+m()+"); top:calc("+(GS+"px + "+Q()+"); width:")+(k9+"px; height:")+(CQ+"px; transform:rotate(")+(fQ+"deg);")},
"on:click":M}))},"Ni"),"yt-player-overlay-video-interactions",{props:{data:_.Eu}});_.mM(_.kVC,"yt-reel-metapanel-view-model",{props:{data:_.Eu,overlayDensity:_.Eu}});var enS=_.NN(function(W){var e=W.children;var t=W.region;W=_.R(_.up(void 0,void 0,"rwJZyc"));var b=W.next().value,m=W.next().value;W=_.R(_.up("0px",void 0,"H14H5c"));var q=W.next().value,Q=W.next().value;W=_.R(_.up("0px",void 0,"Mn8Uvf"));var X=W.next().value,I=W.next().value;W=_.R(_.up(0,void 0,"QQCIqc"));var u=W.next().value,c=W.next().value;W=_.R(_.up(0,void 0,"HyEvh"));var v=W.next().value,D=W.next().value,B=function(){var U=b();if(U){var V;if(((V=_.av())==null?void 0:V.getPlayerState())!==-1){U.style.display=
"inherit";var L;(L=_.av())==null||L.removeEventListener("onStateChange",B)}n()}},k=function(){var U=document.querySelectorAll("video");
return Array.from(U).find(function(V){return V==null?void 0:V.style})},n=function(){var U=k();
if(U){c(U.getBoundingClientRect().width);D(U.getBoundingClientRect().height);var V;Q((U==null?void 0:(V=U.style)==null?void 0:V.left)||"0px");var L;I((U==null?void 0:(L=U.style)==null?void 0:L.top)||"0px")}};
_.nh(function(){var U=b();if(U){var V,L,E;if(((V=_.av())==null?void 0:V.getPlayerState())===-1&&Math.round(((E=(L=_.av())==null?void 0:L.getVideoAspectRatio())!=null?E:0)*100)!==Math.round(u()/v()*100)){U.style.display="none";var RR,uv;D(u()/((uv=(RR=_.av())==null?void 0:RR.getVideoAspectRatio())!=null?uv:1))}}},"RdGxIf");
var f=function(){n()},M;
_.jm(function(){n();var U;if(!(t==null?0:(U=t())==null?0:U.transformationMatrix))throw Error("hm");var V;(V=_.av())==null||V.addEventListener("onStateChange",B);if(window.ResizeObserver){if(U=k())M=new ResizeObserver(f),M.observe(U)}else window.addEventListener("resize",n);_.fh(function(){var L;(L=_.av())==null||L.removeEventListener("onStateChange",B);M?M.disconnect():window.removeEventListener("resize",n)})});
var K=function(){var U,V,L=(V=t==null?void 0:(U=t())==null?void 0:U.transformationMatrix)!=null?V:[];U=u();V=v();for(var E=[],RR=0,uv=-1;RR<L.length;RR++)RR%3===0&&(uv++,E[uv]=[]),E[uv].push(L[RR]);L=new Qq(E);E=new Qq([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);E=L.multiply(E);L=new Qq([[0,0],[0,0],[0,0],[0,0]]);for(RR=0;RR<E.getSize().width;RR++){uv=F$(E,0,RR);var GS=F$(E,1,RR);if(uv===null||GS===null)throw Error("gm`"+(RR+1).toString());X$(L,RR,0,uv*U);X$(L,RR,1,GS*V)}U=F$(L,0,0);RR=F$(L,1,0);V=F$(L,0,1);
uv=F$(L,1,1);if(U===null||RR===null||V===null||uv===null)throw Error("em");E=gT$(U,RR,V,uv);GS=F$(L,3,0);L=F$(L,3,1);if(GS===null||L===null)throw Error("fm");L=gT$(U,GS,V,L);uv=(Number((uv*-1).toFixed(2))-Number((V*-1).toFixed(2)))/(Number(RR.toFixed(2))-Number(U.toFixed(2)));GS=Math.atan(uv)*180/Math.PI;RR=uv===Number.POSITIVE_INFINITY?-90:uv===Number.NEGATIVE_INFINITY?90:Object.is(uv,-0)?180:uv===0?0:uv>0?GS*-1:U<RR?GS*-1:Math.abs(GS)+180;return"left:calc("+U+"px + "+q()+"); top:calc("+(V+"px + "+
X()+"); width:")+(E+"px; height:")+(L+"px; transform:rotate(")+(RR+"deg);")};
return _.w(j9$,{root:"#sticker-layer"},function(){return _.w("yt-overlay-sticker",{el:_.dA(m),style:K,class:"ytOverlayStickerHost"},e)})},"Oi");var txw=_.NN(function(W){function e(){var B,k,n,f,M=(k=_.l((B=I())==null?void 0:B.command,_.Zh))==null?void 0:(n=k.item)==null?void 0:(f=n.notificationTextRenderer)==null?void 0:f.successResponseText;if(M)_.RT(b.value,"yt-open-popup-action",[_.Nf(M),b.value]);else if(u())TmE(u(),b.value);else{var K;TmE((K=I())==null?void 0:K.command,b.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var t=W.data;var b=_.zT("svg"),m=_.R(_.up(!1,void 0,"T9Bq7b"));W=m.next().value;var q=m.next().value,Q=_.R(_.up(!1,void 0,"iMHq9c"));m=Q.next().value;var X=Q.next().value,I=function(){var B;return _.l((B=t())==null?void 0:B.popUp,AwT)},u=function(){var B;
return(B=t())==null?void 0:B.command},c=function(){return _.l(u(),_.BS)!==void 0};
Q=_.Be(function(){e();return!1});
var v={},D={};return _.w("svg",{"on:mouseover":_.Be(function(){c()&&q(!0);X(!0);return!1}),
"on:mouseout":_.Be(function(){q(!1);X(!1);return!1}),
"on:keydown":_.Be(function(B){B.key==="Enter"&&e();return!1}),
"on:focus":_.Be(function(){c()&&q(!0);return!1}),
"on:blur":_.Be(function(){c()&&q(!1);return!1}),
el:b,tabindex:0,"aria-label":function(){var B;return(B=t())==null?void 0:B.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ve("ytPlayerOverlayInteractionInteractionsSvg",(v.ytPlayerOverlayInteractionInteractionsSvgHover=W,v),(D.ytPlayerOverlayInteractionInteractionsSvgHideOutline=m,D)),role:"button","on:click":Q})},"Qi");_.mM(_.NN(function(W){var e=W.data;_.jm(function(){var t;if((t=e())==null?0:t.trackingParams){var b;_.Sg().graftServerVe((b=e().trackingParams)!=null?b:"")}});
return _.w("yt-player-overlay-interaction",null,_.w(enS,{region:function(){var t,b;return(t=e())==null?void 0:(b=t.regions)==null?void 0:b[0]}},_.w(txw,Object.assign({},W))))},"Pi"),"yt-player-overlay-interaction",{props:{data:_.Eu}});var aa=function(){var W=_.O.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableRemixButton=_.S("web_enable_shorts_remix_handoff_ep");W.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");W.enableNewStickers=_.S("use_shorts_sticker_overlay_web");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.S("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.S("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");
W.useAspectRatio=_.S("web_use_aspect_ratio");W.isSqueezebackActive=!1;W.smallScreenSqueezeback=!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.isOverlay=!1;W.isImmersive=!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var e;W.set("isImmersive",((e=window.getComputedStyle(W.hostElement))==null?void 0:e.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode)};
return W};
_.Z(aa,_.O);_.r=aa.prototype;_.r.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.r.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.S("web_enable_flexible_overlay")||_.S("web_enable_format_first")||_.S("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.r.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.r.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.r.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.r.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.r.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.r.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.r.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.r8("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.r8("reels_action_justified_content")||"flex-start")};
_.r.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}}};
_.r.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Gv("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Gv("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Gv("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Gv("SHARE_LABEL",
void 0,"Share")}}});_.S("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Gv("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()};
_.r.setEmptyOverlayMetadata=function(){_.S("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}))};
_.Ec.Object.defineProperties(aa.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
aa.prototype.onIsActiveChanged=aa.prototype.onIsActiveChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],aa.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],aa.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],aa.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],aa.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],aa.prototype,"isActive",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],aa.prototype,"hidden",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],aa.prototype,"useShortsIcon",void 0);_.P([_.J({value:"left"}),_.Y("design:type",String)],aa.prototype,"buttonTooltipPosition",void 0);
_.P([_.J({value:_.S("reels_enable_livingroom_layout")?"top":"left"}),_.Y("design:type",String)],aa.prototype,"likeButtonTooltipPosition",void 0);_.P([_.J({value:"none"}),_.Y("design:type",String)],aa.prototype,"textTransform",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"showScrubber",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"isWatchWhileMode",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.infoPanel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aa.prototype,"hasInfoPanel",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"enableRemixButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"enableAnchoredPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"enableNewStickers",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"anchoredPanelActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"enableLivingroomLayout",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],aa.prototype,"enablePlayerMetadataContainer",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"enableSqueezebackPanels",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"useAspectRatio",void 0);_.P([_.J({selector:_.Ti9,reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"isSqueezebackActive",void 0);_.P([_.J({selector:ZqU,reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"smallScreenSqueezeback",void 0);_.P([_.J({selector:$Ou}),_.Y("design:type",Object)],aa.prototype,"isPlayerStarted",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"overlayDensity",void 0);_.P([_.J(),_.Y("design:type",Object)],aa.prototype,"isOverlay",void 0);_.P([_.J({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.Y("design:type",Boolean)],aa.prototype,"isShortsOverlay",void 0);_.P([_.J(),_.Y("design:type",Object)],aa.prototype,"isImmersive",void 0);_.P([_.J(),_.Y("design:type",Object)],aa.prototype,"isImmersiveHorizontal",void 0);
_.P([_.J({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Y("design:type",Boolean)],aa.prototype,"isShortsImmersive",void 0);_.P([_.J({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.Y("design:type",Object)],aa.prototype,"buttonOverride",void 0);_.P([_.J({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.Y("design:type",Object)],aa.prototype,"actionBarButtonOverride",void 0);
_.P([_.J({selector:_.SS,reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"isFullscreen",void 0);_.P([_.ul("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aa.prototype,"onIsActiveChanged",null);_.P([_.h({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],aa);
_.H(aa,"ytd-reel-player-overlay-renderer",function(){if(dOw!==void 0)return dOw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dOw=W},{mode:1});var bpQ;var wn=function(){var W=_.O.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$19763_playerEvents=new Map;return W};
_.Z(wn,_.O);_.r=wn.prototype;_.r.created=function(){this.JSC$19763_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19763_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.r.attached=function(){this.getPlayerAndInitializeListeners()};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19763_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.aH(this,this.onPageChanged))};
_.r.getPlayerAndInitializeListeners=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return e=_.tv(),e?_.a(t,e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.aH(W,W.onPageChanged)),t.jumpTo(0));W.player=t.yieldResult;W.initializePlayerListeners();_.u8(t)})};
_.r.onPageChanged=function(W){var e=this;return _.F(function(t){if(t.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?t.return():_.a(t,_.bJ().getPlayerPromise(),2);e.player=t.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.aH(e,e.onPageChanged));_.u8(t)})};
_.r.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19763_playerEvents)};
_.r.onVideoDataChange=function(W){var e=this;return _.F(function(t){if(!e.player||W.type!=="newdata")return t.return();e.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(W.playertype).seekableEnd:e.player.getDuration(W.playertype);e.playedTime=0;_.u8(t)})};
_.r.onVideoProgress=function(W){var e=this,t,b;return _.F(function(m){if(!e.player)return m.return();t=e.player.getPresentingPlayerType();b=e.player.getPlayerState();e.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?e.player.getProgressState(t).seekableEnd:e.player.getDuration(t);e.playedTime=b===0?e.videoDuration:W;_.u8(m)})};
_.r.getPercentPlayed=function(W,e){return W?_.Mw(e/W,0,1):0};
_.Ec.Object.defineProperties(wn.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],wn.prototype,"componentBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],wn.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wn.prototype,"player",void 0);_.P([_.J(),_.Y("design:type",Object)],wn.prototype,"videoDuration",void 0);_.P([_.J(),_.Y("design:type",Object)],wn.prototype,"playedTime",void 0);_.P([_.J(),_.Y("design:type",Object)],wn.prototype,"isActive",void 0);
_.P([_.T("videoDuration","playedTime"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],wn.prototype,"percentPlayed",null);_.P([_.T("videoDuration","playedTime"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wn.prototype,"percentPlayedStyle",null);_.P([_.T("videoDuration","isActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wn.prototype,"hideProgressBar",null);
_.H(wn,"ytd-progress-bar-line",function(){if(bpQ===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);bpQ=W}W=bpQ;return W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var mHM;_.mM(_.bPU,"ytm-closed-captioning-button",{props:{captionIconType:_.Eu,onClick:_.bt,ariaLabel:_.Eu,ariaPressed:_.Eu,isOverlay:_.bt,isModern:_.bt}});_.mM(_.SwC,"desktop-shorts-volume-controls",{props:{orientation:_.Eu}});var uq=function(){var W=_.O.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;W.shortsModernControlsEnabled=_.S("web_shorts_modern_controls");W.volumeControlsOrientationState=_.S("web_shorts_modern_controls")?"vertical_down":"horizontal_right";W.isOverlay=!0;W.captionIconType=-1;W.ariaLabel="";W.overlayDensity=0;W.JSC$19766_playerEvents=new Map;W.onClosedCaptionsButtonClick=function(){W.player&&_.J5(W.player)&&(W.player.toggleSubtitles(),W.updateCaptionIconType())};
return W};
_.Z(uq,_.O);_.r=uq.prototype;_.r.created=function(){this.JSC$19766_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19766_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19766_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.r.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.na(28662);this.playPauseButtonClientVE=_.na(36842);this.fullscreenButtonToggleOffClientVE=_.na(222256);this.fullscreenButtonToggleOnClientVE=_.na(222257);var W=_.fc(),e=_.nc();W&&e&&(_.S("combine_ve_grafts")?(_.XW(_.Sg(),this.muteButtonClientVE,e),_.XW(_.Sg(),this.playPauseButtonClientVE,e)):_.P6(W,e,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.r.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19766_playerEvents),this.player=null)};
_.r.updateCaptionIconType=function(){var W=-1,e=void 0,t=_.Gv("CLOSED_CAPTIONS_DISABLED");this.player&&_.J5(this.player)&&(_.iFT(this.player)?(e=!0,t=_.Gv("CLOSED_CAPTIONS_ON"),W=1):(e=!1,t=_.Gv("CLOSED_CAPTIONS_OFF"),W=0));this.captionIconType=W;this.ariaPressedState=e;this.ariaLabel=t};
_.r.getPlayerAndInitializeListeners=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return e=_.tv(),e?_.a(t,e.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.aH(W,W.onPageChanged)),t.jumpTo(0));W.player=t.yieldResult;W.initializePlayerListeners();_.u8(t)})};
_.r.onPageChanged=function(W){var e=this;return _.F(function(t){if(t.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?t.return():_.a(t,_.bJ().getPlayerPromise(),2);e.player=t.yieldResult;e.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.aH(e,e.onPageChanged));_.u8(t)})};
_.r.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19766_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.r.onPlayerStateChange=function(W){this.playerState=W};
_.r.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.r.onPlayPauseButtonClick=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.bJ().getPlayerPromise(),2);e=b.yieldResult;(t=_.fc())&&W.playPauseButtonClientVE&&_.zv(t,W.playPauseButtonClientVE);e.getPlayerState()!==1?e.playVideo():e.pauseVideo();_.u8(b)})};
_.r.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?_.S("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.S("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.S("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.r.computeFullscreenLabel=function(W){return W?_.Gv("FULLSCREEN_EXIT_LABEL"):_.Gv("FULLSCREEN_ENTER_LABEL")};
_.r.computePlayPauseLabel=function(W){return W===1||W===3?_.Gv("PLAYER_LABEL_PAUSE"):_.Gv("PLAYER_LABEL_PLAY")};
_.r.onMuteButtonClick=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.bJ().getPlayerPromise(),2);e=b.yieldResult;(t=_.fc())&&W.muteButtonClientVE&&_.zv(t,W.muteButtonClientVE);e.isMuted()?e.unMute(!0):e.mute(!0);_.u8(b)})};
_.r.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.r.computeMuteLabel=function(W){return W?_.Gv("PLAYER_LABEL_UNMUTE"):_.Gv("PLAYER_LABEL_MUTE")};
_.r.onFullscreenButtonClick=function(){var W=_.fc();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.zv(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.zv(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.wil()};
_.Ec.Object.defineProperties(uq.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.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?_.S("web_shorts_modern_controls")?"player_full_exit_alt":_.S("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.S("web_shorts_modern_controls")?"player_full_enter_alt":_.S("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],uq.prototype,"componentBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],uq.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],uq.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"player",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"playerState",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"isMuted",void 0);
_.P([_.J({computed:"computePlayPauseIcon(playerState)"}),_.Y("design:type",String)],uq.prototype,"playPauseIcon",void 0);_.P([_.J({computed:"computeMuteIcon(isMuted)"}),_.Y("design:type",String)],uq.prototype,"muteIcon",void 0);_.P([_.J({selector:_.SS}),_.Y("design:type",Boolean)],uq.prototype,"isFullscreen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uq.prototype,"shortsModernControlsEnabled",void 0);
_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"volumeControlsOrientationState",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"isOverlay",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"captionIconType",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"ariaLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"ariaPressedState",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],uq.prototype,"overlayDensity",void 0);
_.P([_.T("playerState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uq.prototype,"playPauseButtonData",null);_.P([_.T("isFullscreen"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uq.prototype,"fullscreenButtonData",null);_.P([_.J(),_.Y("design:type",Object)],uq.prototype,"onClosedCaptionsButtonClick",void 0);_.P([_.T("isFullscreen"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uq.prototype,"fullscreenIcon",null);
_.H(uq,"ytd-shorts-player-controls",function(){if(mHM===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);mHM=W}W=mHM;return W},{mode:1});var rIM;_.mM(_.ZkZ,"yt-interstitial-view-model",{props:{data:_.Eu}});var qIB=_.NN(function(W){var e=W.data;return _.w("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.w("h1",{class:"reelWatchBreakViewModelHostTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w("h2",{class:"reelWatchBreakViewModelHostBody"},_.w(_.WL,{text:function(){return e().body},
isOverlay:!0})),_.w(_.nU,{data:function(){return e().buttons}},{buttonViewModel:function(t,b){return _.w("div",{class:function(){return b()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.w(_.MV,{data:t.data}))}}))},"Ri");
qIB.idomCompat=!0;_.mM(qIB,"reel-watch-break-view-model",{props:{data:_.Eu}});var ck=function(){return _.O.apply(this,arguments)||this};
_.Z(ck,_.O);ck.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}}};
_.Ec.Object.defineProperties(ck.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.l((W=this.data)==null?void 0:W.renderer,iqC)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.l((W=this.data)==null?void 0:W.renderer,YNu)}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ck.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],ck.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ck.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ck.prototype,"isSurvey",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ck.prototype,"isInterstitialViewModel",null);_.P([_.h({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],ck);
_.H(ck,"ytd-reel-non-video-content-renderer",function(){if(rIM!==void 0)return rIM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return rIM=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var RnS;_.mM(_.DS9,"desktop-shorts-player-controls",{});var vk=function(){var W=_.O.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.modern=_.S("web_button_rework");W.overlayType=_.r8("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");W.enablePersistentAnchoredPanel=_.S("desktop_shorts_v2_persistent_anchored_panel");
W.hideWatchWhilePanel=_.S("web_shorts_hide_watch_while_panel");W.useAspectRatio=_.S("web_use_aspect_ratio");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");W.overlayDensity=0;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};W.onWindowResized=function(){_.HG(W,
"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.Z(vk,_.O);_.r=vk.prototype;_.r.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.r.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.r.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.ee().resolve(_.oL);this.isWatchWhileMode&&(_.S("web_enable_shorts_new_carousel")?_.Tm.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.r.handleShowReelsCommentsOverlayCommand=function(W){W=_.l(W,LhC);this.isActive&&(W==null?0:W.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))};
_.r.updateEngagementPanelVisibility=function(W,e){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:e?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.r.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.r.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.ee().resolve(_.B1).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.r.handleWatchWhilePanelScrimClick=function(){var W=_.ee().resolve(_.oL);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.r.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.r.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:_.S("web_enable_shorts_new_carousel")?0:void 0}}};
_.r.handlePlayerClick=function(W){var e=this,t,b;if((b=(t=window).matchMedia)!=null&&b.call(t,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.Tm.cancelJob(this.autoHideJobId),this.autoHideJobId=_.kM(_.Tm,function(){e.showPlayerControls=!1},4E3)};
_.r.isFirstReel=function(){return this.index===0};
_.r.handleMouseenter=function(){_.Tm.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.r.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.r.handleScrubberEnter=function(){this.showScrubber=!0};
_.r.handleScrubberLeave=function(){this.showScrubber=!1};
_.r.maybeLogNonDefaultAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&this.isActive&&.5625!==lOQ(this.data.thumbnail)&&_.Y92("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.r.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){W=W.offsetWidth/2-this.playerContainer.offsetWidth/2;W=W>=368?1:W>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&W===1&&(W=0);this.isPersistentPanelActive&&(W=0);window.innerWidth<=599&&(W=2);this.overlayDensity=W;var e;(e=this.onOverlayDensityChanged)==null||e.call(this,this.index,this.overlayDensity)}}};
_.r.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity);(W=_.rz(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&W.set("overlayDensity",this.overlayDensity);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity};
_.r.isVideoContent=function(W){_.ee().resolve(_.B1);return!!_.l(W,_.Za)};
_.r.isNonVideoContent=function(W){_.ee().resolve(_.B1);return!!_.l(W,_.xi)};
_.r.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Ec.Object.defineProperties(vk.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,e;return _.S("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.S("web_enable_format_first_ads_only")||((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer)&&_.S("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var e,t;if(((e=this.data)==null?0:e.adsOverlay)&&Object.keys((t=this.data)==null?void 0:t.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var b,m;if(((b=this.data)==null?0:b.reelPlayerOverlayRenderer)&&Object.keys((m=this.data)==null?void 0:m.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
vk.prototype.onOverlayDensityChange=vk.prototype.onOverlayDensityChange;vk.prototype.calculateOverlayDensity=vk.prototype.calculateOverlayDensity;vk.prototype.maybeLogNonDefaultAspectRatio=vk.prototype.maybeLogNonDefaultAspectRatio;vk.prototype.onEngagementPanelsChanged=vk.prototype.onEngagementPanelsChanged;vk.prototype.onScrubberDataChange=vk.prototype.onScrubberDataChange;vk.prototype.updateShouldHideOverlay=vk.prototype.updateShouldHideOverlay;
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],vk.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],vk.prototype,"index",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vk.prototype,"isActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vk.prototype,"isHiddenInDom",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"isPlayerPaused",void 0);_.P([_.J({selector:$Ou}),_.Y("design:type",Object)],vk.prototype,"isPlayerStarted",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"showPlayerControls",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"showScrubber",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"autoHideJobId",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"overlayType",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],vk.prototype,"ytdReduxBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],vk.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"watchWhileEngagementPanels",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"panelData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"isWatchWhileMode",void 0);_.P([_.J(),_.Y("design:type",String)],vk.prototype,"activeWatchWhilePanel",void 0);
_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"hasError",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"panelShowDelayMs",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"scrubberComponent",void 0);_.P([_.J({selector:_.SS,reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"isFullscreen",void 0);_.P([_.J(),_.Y("design:type",Object)],vk.prototype,"shouldHideOverlay",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"enableAnchoredPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"enablePersistentAnchoredPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"hideWatchWhilePanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"useAspectRatio",void 0);
_.P([_.J({selector:_.Ti9,reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"isPersistentPanelActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"anchoredPanelActive",void 0);_.P([_.J({selector:_.BL,reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"isShortsPipActive",void 0);_.P([_.J({selector:ZqU,reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"smallScreenSqueezeback",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vk.prototype,"enableFormatFirst",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"enableFlexibleOverlay",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vk.prototype,"overlayDensity",void 0);_.P([_.J(),_.Y("design:type",Function)],vk.prototype,"onOverlayDensityChanged",void 0);
_.P([_.J(),_.T("isActive","hasError"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vk.prototype,"shouldRenderPlayerElements",null);_.P([_.J(),_.T("isActive","isWatchWhileMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vk.prototype,"watchWhileOrPersistentActive",null);_.P([_.ul("isActive","hasError","showingExpandedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"updateShouldHideOverlay",null);
_.P([_.J({reflectToAttribute:!0}),_.T("isActive","isPlayerStarted","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vk.prototype,"shouldRenderScrubber",null);_.P([_.ul("shouldRenderScrubber"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"onScrubberDataChange",null);_.P([_.T("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vk.prototype,"overlayComponent",null);
_.P([_.ul("watchWhileEngagementPanels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"onEngagementPanelsChanged",null);_.P([_.vG("#player-container"),_.Y("design:type",HTMLElement)],vk.prototype,"playerContainer",void 0);_.P([_.vG("#cinematic-container"),_.Y("design:type",HTMLElement)],vk.prototype,"cinematicContainer",void 0);
_.P([_.ul("isPersistentPanelActive","data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"maybeLogNonDefaultAspectRatio",null);_.P([_.ul("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"calculateOverlayDensity",null);_.P([_.ul("overlayDensity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vk.prototype,"onOverlayDensityChange",null);
_.P([_.h({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],vk);
_.H(vk,"ytd-reel-video-renderer",function(){if(RnS!==void 0)return RnS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RnS=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var Gl=function(){var W=_.O.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.enablePreviousContinuation=_.S("shorts_in_playlists_web");W.shortsPipEnabled=_.S("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=_.S("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=
!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.S("web_scroll_into_view_center");W.formatFirst=_.S("web_enable_format_first")||_.S("web_enable_format_first_ads_only")||_.S("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");W.useAspectRatio=_.S("web_use_aspect_ratio");W.isShortsInitialized=
!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.na(56921);W.prevReelVe=_.na(56922);W.loopToggleOffVe=_.na(198013);W.loopToggleOnVe=_.na(198014);W.ambientModeToggleVe=_.na(227860);W.reelPlayerPausedStateRendererVe=_.na(141313);W.storedPlaybackSpeed=null;W.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"};W.onOverlayDensityChanged=function(e,t){var b;(b=W.getActiveReelVideo(e))==null||b.setAttribute("overlay-density",String(t))};
return W};
_.Z(Gl,_.O);_.r=Gl.prototype;
_.r.deflateInactivePreviousSlides=function(){var W=_.mn("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var e=0;e<=W;e++){var t=void 0;((t=this.shortsProcessedSequence[e].reelPlayerOverlayRenderer)==null?0:t.metapanel)&&this.set("shortsProcessedSequence."+e+".reelPlayerOverlayRenderer",{});t=void 0;((t=this.shortsProcessedSequence[e].adsOverlay)==null?0:t.adSlotMetadata)&&this.set("shortsProcessedSequence."+e+
".adsOverlay",{})}}};
_.r.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.r.onResize=function(){var W=_.Eb(),e=W.dispatch,t=this.calculateIsSmallWidth();e.call(W,_.rO({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:t}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.r.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:_.S("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}}};
_.r.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,e=W,t=0;W<250&&(e=W+this.shortsInnerContainer.clientWidth,t=24);_.XB(this.hostElement,{"--ytd-shorts-header-width":e+"px","--ytd-shorts-top-spacing":t+"px"})}};
_.r.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.r.isActiveReel=function(W,e,t){t&&(e=this.calculatePrevIndex(e,t));return W===e};
_.r.onFullscreenChange=function(){if(_.S("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.ee().resolve(_.Kn).close(!0)}};
_.r.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.r.unregisterPanels=function(){var W=_.ee().resolve(_.oL);if(this.watchWhileEngagementPanels)for(var e=_.R(this.watchWhileEngagementPanels),t=e.next();!t.done;t=e.next()){var b=void 0,m=void 0;t=(b=t.value.engagementPanelSectionListRenderer)==null?void 0:(m=b.identifier)==null?void 0:m.tag;W&&t&&W.panelMap.delete(t)}};
_.r.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.r.getActiveReelVideo=function(W){return _.rz(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.r.calculatePrevIndex=function(W,e){return e?W-((e==null?void 0:e.length)||0):-1};
_.r.onKeydown=function(W){var e=_.LB(W)||[];if(!_.IKl(e))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")){var t;(t=this.player)==null||t.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var b;(b=this.player)==null||b.seekBy(5)}};
_.r.onServiceRequestCompleted=function(W,e){W=e.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.r.handleEngagementPanelVisibilityChanged=function(W,e){var t=_.ee().resolve(_.oL);if(W&&t){var b,m=((b=W.identifier)==null?void 0:b.tag)||W.panelIdentifier||W.targetId;if(e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==m){t.hidePanel(this.activePanel);var q;this.activePanel=((q=W.identifier)==null?void 0:q.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.Eb().dispatch(MRC(!0)),this.anchoredPanelActive=!0,this.activePanel=m;else e==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===m&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Eb().dispatch(MRC(!1)))}};
_.r.handlePanelScrimClick=function(){var W=_.ee().resolve(_.oL);this.activePanel&&(W.hidePanel(this.activePanel),_.Eb().dispatch(MRC(!1)))};
_.r.getShortsLoopSetting=function(){var W,e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return _.S("kevlar_shorts_auto_advance")?_.a(q,_.p5.getInstance(),2):q.return(!0);case 2:return(W=q.yieldResult)?_.a(q,W.get("sfvles"),3):q.return(!0);case 3:return t=(e=q.yieldResult)!=null?e:!1,_.a(q,W.get("sfvle"),4);case 4:return m=(b=q.yieldResult)!=null?b:!0,t?q.return(m):q.return(!0)}})};
_.r.handleSignalActionToggleLoopShortsOff=function(){var W=this,e,t,b;return _.F(function(m){switch(m.nextAddress){case 1:if(!W.player)return m.return();W.player.setLoopVideo(!1);e=_.Sg();_.a0(e,W.loopToggleOffVe);return _.a(m,_.p5.getInstance(),2);case 2:return(t=m.yieldResult)?_.a(m,t.set("sfvle",!1),3):m.return();case 3:return _.a(m,t.set("sfvles",!0),4);case 4:b=_.B6(),_.oT(0,203,!1),_.oT(0,204,!0),b.save(),_.u8(m)}})};
_.r.handleSignalActionToggleLoopShortsOn=function(){var W=this,e,t,b;return _.F(function(m){switch(m.nextAddress){case 1:if(!W.player)return m.return();W.player.setLoopVideo(!0);e=_.Sg();_.a0(e,W.loopToggleOnVe);return _.a(m,_.p5.getInstance(),2);case 2:return(t=m.yieldResult)?_.a(m,t.set("sfvle",!0),3):m.return();case 3:return _.a(m,t.set("sfvles",!0),4);case 4:b=_.B6(),_.oT(0,203,!0),_.oT(0,204,!0),b.save(),_.u8(m)}})};
_.r.handleSignalActionToggleCinematicShortsOn=function(){oTw(!0);var W;(W=this.JSC$19790_cinematicController)==null||_.GUM(W,!0);_.a0(_.Sg(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.r.handleSignalActionToggleCinematicShortsOff=function(){oTw(!1);var W;(W=this.JSC$19790_cinematicController)==null||_.GUM(W,!1);_.a0(_.Sg(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.r.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.r.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.r.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.Tm.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.r.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var e=_.l(W,_.xi);return{reelNonVideoContentRenderer:_.l(e==null?void 0:e.renderer,_.d_N),command:W}}if(this.data){var t;e=(t=_.l(this.currentEndpoint,_.Za))==null?void 0:t.thumbnail;var b;t=(b=this.data.overlay)==null?void 0:b.reelPlayerOverlayRenderer;_.ee().resolve(_.B1);W=this.data;var m,q;b=(m=W.overlay)==null?void 0:(q=m.shortsAdsRenderer)==null?void 0:q.adSlots;if(b!==void 0)b.length===
0?(_.b0("Shorts ads returned no ad slots."),W=void 0):(b.length>1&&_.b0("Shorts ads has more than one ad slots."),W=_.l(b[0],_.nBy));else{var Q,X;W=_.l((Q=W.overlay)==null?void 0:(X=Q.shortsAdsRenderer)==null?void 0:X.overlay,_.nBy)}Q=W;W=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.l(this.currentEndpoint,_.Za),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:t,thumbnail:e,command:W,adsOverlay:Q}}}};
_.r.created=function(){var W=this;this.scrollToVideoThrottle=new _.eS(function(e){var t;(t=W.getActiveReelVideo(e))==null||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.eS(function(e){var t;(t=W.getActiveReelVideo(e))==null||t.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.r.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.r.attached=function(){var W=this;xOS(this);this.pageScrollElement=_.rz(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.aH(this,this.processResetAction));_.S("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.S("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var e=W.getActiveReelVideo(W.activeIndex);
W.maybeCreateIntersectionObserver();e==null||e.scrollIntoView({behavior:"instant",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.r.calculateSqueezebackPanelSize=function(){var W=this,e=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Tm.addLowPriorityJob(function(){e<360?_.Eb().dispatch(s9$(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(e,480)+"px"),_.Eb().dispatch(s9$(!1)))})};
_.r.detached=function(){var W=_.ee().resolve(_.B1);W.rootElement=void 0;var e;(e=W.unsubscribeFromStore)==null||e.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.aH(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.r.onResizeFinished=function(W,e){var t=this,b=new ResizeObserver(function(){t.shortsContainer.style.overflowY="hidden";_.Tm.addLowPriorityJob(function(){e()},100)});
b.observe(W);return b};
_.r.resetDocumentScrollTop=function(){var W,e;if((W=document)==null?0:(e=W.scrollingElement)==null?0:e.scrollTop)document.scrollingElement.scrollTop=0};
_.r.loadPage_=function(W){var e=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var t;if((t=_.l(this.currentEndpoint,_.Za))==null?0:t.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){e.isPlayerStarted&&
(e.handleOnPlaybackCommand(),e.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.r.afterPlayerStarted=function(){};
_.r.handleOnPlaybackCommand=function(){if(_.S("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,e=(W=_.l(this.currentEndpoint,_.Za))==null?void 0:W.onPlaybackCommand;e&&this.ytComponentBehavior.resolveCommand(e)}};
_.r.maybeCreateIntersectionObserver=function(){var W=this,e=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==e){this.intersectionObserverThreshold=e;var t={rootMargin:"0px",threshold:e},b;(b=this.intersectionObserver)==null||b.disconnect();this.intersectionObserver=new IntersectionObserver(function(m){m=_.R(m);for(var q=m.next();!q.done;q=m.next())if(q=q.value,q.intersectionRatio>e){q=Number(q.target.id);if(isNaN(q))break;if(q===W.index)break;
_.m_z();W.loadVideo(q);_.xh("r_vtc")}},t);
this.observeShorts()}};
_.r.observeShorts=function(){var W=[].concat(_.kP(_.rz(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=void 0;(t=this.intersectionObserver)==null||t.observe(e)}};
_.r.initCsi=function(){_.yL("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},e,t;if((e=this.playerData)==null?0:(t=e.cacheMetadata)==null?0:t.isCacheHit)W.isCacheHit=!0;var b;if(e=(b=_.l(this.currentEndpoint,_.Za))==null?void 0:
b.prefetchTaskId)W.prefetchInfo={taskId:e};_.fe(W)};
_.r.isAd=function(){var W,e;return!!((W=_.l(this.currentEndpoint,_.Za))==null?0:(e=W.adClientParams)==null?0:e.isAd)};
_.r.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.r.getPlayerContainer=function(){var W;return(W=_.rz(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.r.onPlayerStateChange=function(W){var e=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.Eb().dispatch(Ra(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Eb().dispatch(Ra(!0)));this.player&&!this.player.getLoopVideo()&&_.Tm.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(t){var b;(b=e.player)==null||b.setLoopVideo(t)})});
this.isPlayerPaused&&_.S("web_shorts_paused_state_logging")&&_.ic(_.fc(),[this.reelPlayerPausedStateRendererVe])};
_.r.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.r.isShortPlayable=function(){if(_.S("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.r.setNormalPlaybackSpeed=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.getPlayer().getPlayerPromise(),2);e=b.yieldResult;t=e.getPlaybackRate();t!==1&&(W.storedPlaybackSpeed=t,e.setPlaybackRate(1));_.u8(b)})};
_.r.restorePlaybackSpeed=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1)return W.storedPlaybackSpeed===null?t.jumpTo(0):_.a(t,W.getPlayer().getPlayerPromise(),3);e=t.yieldResult;e.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.u8(t)})};
_.r.playerDataChanged=function(){var W=this,e,t,b,m,q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1){e=W.getPlayer();(t=W.intersectionObserver)==null||t.disconnect();if(W.playerData){if(((b=W.playerData.videoDetails)==null?void 0:b.videoId)!==((m=e.getPlayer())==null?void 0:m.getVideoData().video_id)){q={};if(Q=_.l(W.currentEndpoint,_.Za))q.watch_endpoint=Q,Q.endTimeSeconds&&(q.end=Q.endTimeSeconds);e.loadVideoWithPlayerResponse(W.playerData,q)}}else return c.return();return W.player?c.jumpTo(2):
_.a(c,e.getPlayerPromise(),3)}c.nextAddress!=2&&(W.player=c.yieldResult,W.JSC$19790_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$19790_playerStateChangeListener),_.S("kevlar_client_enable_shorts_player_bootstrap")&&_.NZ(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.Tm.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(v){var D;(D=W.player)==null||D.setLoopVideo(v)})}),_.sEU.resolve(W.player),W.player.syncVolume(),
W.getPlayer().focusOnPlayer());
_.Tm.addLowPriorityJob(function(){W.observeShorts()},100);
X=W.player.getPlayerState(W.player.getPresentingPlayerType());X!==1||W.isPlayerStarted||_.Eb().dispatch(Ra(!0));W.updateBackNavContainerWidth();I=_.l(W.currentEndpoint,_.Za);((u=I)==null?0:u.startTimeSeconds)&&W.player.seekTo(I.startTimeSeconds);if(W.JSC$19790_cinematicController||W.cinematicsInitializeJobId)return c.return();W.cinematicsInitializeJobId=_.Tm.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.u8(c)})};
_.r.onShortUndoDismiss=function(){var W=this,e=Oqg().pop();e!==void 0&&(_.Uc(this,function(){W.showCardWithIndex(e)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.r.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.l(W.onDismissalCompletionRenderer,_.UCC))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.r.processReelNonVideoContentDismissalCommand=function(W){var e=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.l(W,UOS);this.activeDimissalTimeout=setTimeout(function(){e.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.r.scrollAndDismissCard=function(){var W=this,e=this.index;Oqg().push(e);_.Uc(this,function(){var t=W.getPlayableNextIndex();t!==null&&(t=W.getActiveReelVideo(t),W.hideCardWithIndex(e),t==null||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.r.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.r.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.r.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.r.activeChanged=function(W){_.Eb().dispatch(_.rO({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.aH(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var e;(e=this.player)==null||e.sendAbandonmentPing()}var t;(t=this.player)==null||t.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.aH(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.r.graftClientVisualElements=function(){if(this.data){var W=_.Sg();_.M$U(W,_.aT({response:this.reelWatchSequenceResponse}));_.XW(W,this.nextReelVe);_.XW(W,this.prevReelVe);_.S("kevlar_shorts_auto_advance")&&(_.XW(W,this.loopToggleOffVe),_.XW(W,this.loopToggleOnVe));_.XW(W,this.ambientModeToggleVe);_.ic(_.fc(),[this.nextReelVe,this.prevReelVe]);_.S("web_shorts_paused_state_logging")&&_.XW(W,this.reelPlayerPausedStateRendererVe)}};
_.r.graftNvcRenderer=function(){var W,e,t,b,m=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(e=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:e.command:(t=this.shortsProcessedSequence)==null?void 0:(b=t[this.index])==null?void 0:b.command;if(m&&this.isNonVideoContentCommand(m)){W=_.l(m,_.xi);var q,Q;(W=(q=_.l(W==null?void 0:W.renderer,_.d_N))==null?void 0:(Q=q.loggingDirectives)==null?void 0:Q.trackingParams)&&_.Sg().graftServerVe(W)}};
_.r.setActiveIndex=function(){_.ee().resolve(_.B1).setActiveIndex(this.index)};
_.r.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.r.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Tm.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.r.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Tm.cancelJob(this.updateMiniplayerDataJobId)};
_.r.updateMiniplayerData=function(){var W,e,t,b=_.ee().resolve(_.Kn),m={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((e=this.nextButtonData)==null||!e.isDisabled),playabilityStatus:(t=this.playerData)==null?void 0:t.playabilityStatus};_.Zl(b,m)};
_.r.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&W.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.r.movePlayerToVideo=function(W,e){var t=this;e=e===void 0?!0:e;var b=this.getActiveReelVideo(W),m=this.getPlayer();if(b){this.overlayContainer?b.appendChild(this.overlayContainer):(this.overlayContainer=_.rz(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,b.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||m.appendTo(this.overlayContainer.playerContainer,void 0,!0));var q;(q=this.player)==null||q.setSize(NaN,NaN);this.isActive||_.kM(_.Tm,function(){t.isActive=
!0});
m.style.visibility="visible";_.S("reels_web_disable_rtr_tick")||_.S("reels_web_use_pbs_first_shorts")&&W===0||_.Tv("r_tr");this.currentPlayerIndex=W;b.appendChild(this.errorScreenContainer);var Q;(Q=this.JSC$19790_cinematicController)==null||_.SNg(Q)}else e?_.Tm.addLowPriorityJob(function(){t.movePlayerToVideo(t.index,!1)}):Math.random()<=_.mn("web_shorts_error_logging_threshold")&&_.TT(new _.o_("Trying to movePlayerToVideo with undefined container.",{firstAttempt:e,
index:W}))};
_.r.enableFormatFirst=function(W){return _.S("web_enable_format_first")||W.adsOverlay&&_.S("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.S("web_enable_format_first_organic_only")};
_.r.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+lOQ(W.thumbnail)};
_.r.getBackgroundImage=function(W){if(W!=null&&W.thumbnail)return(W=_.qA(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"};
_.r.onPersistentPanelActiveChanged=function(){var W=this.getCurrentShort();if(W&&this.enableFormatFirst(W)&&(W==null?0:W.thumbnail)&&lOQ(W.thumbnail)!==.5625){var e;(e=this.player)==null||e.setSize(NaN,NaN)}};
_.r.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.r.moveCinematicsToVideo=function(){var W=_.rz(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.r.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.r.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var e;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.Gv("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((e=this.shortsProcessedPrevSequence)==null?void 0:e.length)||0),tooltip:this.isUpArrowHidden?"":_.Gv("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.r.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.r.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var e;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.Gv("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((e=this.shortsProcessedSequence)==null?void 0:e.length),tooltip:_.Gv("NEXT_VIDEO_LABEL")||""})}};
_.r.getPlayablePreviousIndex=function(){for(var W,e=this.index-1;e>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);e--)if(!Oqg().includes(e))return e;return null};
_.r.getIndexInSequence=function(W,e){return W.findIndex(function(t){var b;return((b=_.l(t.command,_.Za))==null?void 0:b.videoId)===e})};
_.r.handlePrevButtonClick=function(W){var e=this,t,b;return _.F(function(m){t=e.getPlayablePreviousIndex();if(t===null)return m.return();e.gestureType=((b=W)==null?void 0:b.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t===0&&(e.hidePreviousButtonImmediately=!0);if(e.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){e.transitionToVideoThrottle.fire(t)}),m.return();
e.scrollToVideoThrottle.fire(t);_.u8(m)})};
_.r.getPlayableNextIndex=function(){for(var W,e=this.index+1;e<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);e++)if(!Oqg().includes(e))return e;return null};
_.r.handleNextButtonClick=function(W,e){var t=this,b,m;return _.F(function(q){b=t.getPlayableNextIndex();if(b===null)return q.return();b===1&&(t.showPreviousButtonImmediately=!0);t.gestureType=((m=W)==null?void 0:m.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";e&&(t.gestureType=e);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.transitionToVideoThrottle.fire(b)}),q.return();
t.scrollToVideoThrottle.fire(b);_.u8(q)})};
_.r.handleReelNavigateCommand=function(W,e,t){(W=_.l(W,zWM))&&e&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(t)};
_.r.loadVideo=function(W,e){e=e===void 0?!1:e;if(W!==this.currentPlayerIndex){_.Eb().dispatch(Ra(!1));if(this.isAd()&&!e){var t;(t=this.player)==null||t.notifyShortsAdSwipeEvent()}if((e=this.JSC$19790_cinematicController)!=null){var b;(b=e.currentCinematicEffect)==null||b.pause()}if((b=this.JSC$19790_cinematicController)!=null){var m;(m=b.currentCinematicEffect)==null||m.clear()}b=W>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(b));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var q,Q,X,I;m=W<0?(q=this.shortsProcessedPrevSequence)==null?void 0:(Q=q[this.shortsProcessedPrevSequence.length+W])==null?void 0:Q.command:(X=this.shortsProcessedSequence)==null?void 0:(I=X[W])==null?void 0:I.command;this.index=W;this.gestureType||(this.gestureType=b?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
m&&this.isVideoContentCommand(m)&&(this.ytComponentBehavior.resolveCommand(m,{form:{createScreenConfig:{clickedVisualElement:b?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(m&&this.isNonVideoContentCommand(m)){this.currentEndpoint=m;this.data=void 0;q=_.Sg();Q=_.l(m,_.xi);var u,c;(Q=(u=_.l(Q==null?void 0:Q.renderer,_.d_N))==null?void 0:(c=u.screenLoggingData)==null?void 0:c.screenVeType)&&_.FW(q,Q);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(u=this.getActiveReelVideo(W))&&u.appendChild(this.overlayContainer)}var v,D;if(((v=this.reelWatchSequenceResponse)==null?0:v.continuationEndpoint)&&((D=this.reelWatchSequenceResponse)==null?0:D.entries)&&W===this.reelWatchSequenceResponse.entries.length-1){var B,k;v={contentPlaybackContext:_.pB({},(k=_.l((B=this.currentEndpoint)==null?void 0:B.commandMetadata,_.ez))==null?void 0:k.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:v})}var n,f,M;((n=this.reelWatchSequenceResponse)==null?0:n.prevContinuationEndpoint)&&W===-(((f=this.reelWatchSequenceResponse)==null?void 0:(M=f.prevEntries)==null?void 0:M.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.r.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var e,t,b=_.ee().resolve(_.Kn),m={shortsData:void 0,shortsPreviewThumbnail:W?(e=this.shortsProcessedSequence)==null?void 0:(t=e[W])==null?void 0:t.thumbnail:void 0};_.Zl(b,m)};
_.r.updateTitle=function(W){var e,t;W=(W==null?0:W.adSlots)?"":(t=W==null?void 0:(e=W.videoDetails)==null?void 0:e.title)!=null?t:"";_.q2(this.hostElement,"yt-update-title",W)};
_.r.registerPanel=function(W){var e=_.ee().resolve(_.oL);if(e){W=_.R(W.engagementPanels||[]);for(var t=W.next();!t.done;t=W.next()){t=t.value;var b=t.engagementPanelSectionListRenderer,m=void 0,q=void 0,Q=void 0,X=void 0,I=((m=b)==null?void 0:m.targetId)||((q=b)==null?void 0:q.panelIdentifier)||((Q=b)==null?void 0:(X=Q.identifier)==null?void 0:X.tag);m=b=void 0;(m=(b=e).registerPanelContent)==null||m.call(b,I,t)}}};
_.r.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;_.Eb().dispatch(Ra(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Eb().dispatch(MRC(!1));var W=_.ee().resolve(_.B1);W.dismissedIndices=[];W.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.ee().resolve(_.Kn).close(!0)};
_.r.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var e=this,t;(t=this.intersectionObserver)==null||t.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var b;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.kP(((b=this.reelWatchSequenceResponse)==null?void 0:b.entries)||[]),_.kP(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var m;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.kP(((m=this.reelWatchSequenceResponse)==null?void 0:m.prevEntries)||[]),_.kP(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.Tm.addLowPriorityJob(function(){e.movePlayerToVideo(e.index);var q;(q=e.getActiveReelVideo(e.index))==null||q.scrollIntoView({block:"nearest",inline:e.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Tm.addLowPriorityJob(function(){e.observeShorts()},100)};
_.r.processWatchSequence=function(W){var e=this;return W.map(function(t){t=t.command;if(e.isVideoContentCommand(t)){var b=_.l(t,_.Za);return{reelPlayerOverlayRenderer:_.l(b==null?void 0:b.overlay,_.WKS),thumbnail:b.thumbnail,command:t}}return e.isNonVideoContentCommand(t)?(b=_.l(t,_.xi),{reelNonVideoContentRenderer:_.l(b==null?void 0:b.renderer,_.d_N),command:t}):{command:t}})};
_.r.calculateIntersectionObserverThreshold=function(){var W=_.rz(this.hostElement).querySelector("ytd-reel-video-renderer"),e=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(e=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(e*.6*10)/10};
_.r.isVideoContentCommand=function(W){_.ee().resolve(_.B1);return!!_.l(W,_.Za)};
_.r.isNonVideoContentCommand=function(W){_.ee().resolve(_.B1);return!!_.l(W,_.xi)};
_.r.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19790_cinematicController=new _.qp(this.shortsCinematicContainer,this.player);var e,t=_.l((e=this.data)==null?void 0:e.background,_.$1);_.DO9(this.JSC$19790_cinematicController,t);_.GUM(this.JSC$19790_cinematicController,Bmw(t));_.vTu(this.JSC$19790_cinematicController);_.Tm.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.r.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.r.handleSignalActionToggleShortsPictureInPicture=function(){if(_.ee().resolve(_.Kn).pictureInPictureSupported()){var W=_.ee().resolve(_.B1);if(_.S("web_shorts_pip")){var e=_.ee().resolve(_.Kn);W.isShortsPipActive()?e.deactivate():e.isMiniplayerActive()||(_.G3().shortsPipActivation=!0,_.Cn9(e))}}else(W=this.player)==null||W.togglePictureInPicture()};
_.Ec.Object.defineProperties(Gl.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.kP(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var e=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.kP(this.prevShortsSequence.slice(0,e)),[W],_.kP(this.prevShortsSequence.slice(e+
1)))}e=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[e].thumbnail;return[].concat(_.kP(this.shortsProcessedPrevSequence.slice(0,e)),[W],_.kP(this.shortsProcessedPrevSequence.slice(e+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var W=this.getCurrentShort();if(!W||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[W];if(W==null||!W.reelNonVideoContentRenderer){var e=this.getIndexInSequence(this.shortsSequence,_.l(this.currentEndpoint,_.Za).videoId);if(this.index===0&&e!==-1)return this.currentPlayerIndex=this.index=e,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.kP(this.shortsSequence.slice(0,this.index)),[W],_.kP(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){W.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var t,b,m,q;e=((b=_.l((t=this.shortsProcessedSequence[0])==null?void 0:t.command,_.Za))==null?void 0:b.videoId)===((q=_.l((m=this.shortsSequence[0])==null?void 0:m.command,_.Za))==null?void 0:q.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.kP(this.shortsProcessedSequence.slice(0,
this.index)),[W],_.kP(this.shortsSequence.slice(e)))}return[W].concat(_.kP(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)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 W,e;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(e=W.entries)==null?void 0:e.length)}var t;return!((t=this.reelWatchSequenceResponse)==null?0:t.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return this.isShortPlayable()||((e=_.l((W=this.data)==null?void 0:W.watchStatus,_.FKy))==null?void 0:(t=e.style)==null?void 0:t.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,e=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),t;if((this.data||e)&&(((t=this.data)==null?0:t.engagementPanels)||this.isAd()||e)){e=!1;this.activePanel="shorts-comments-panel";var b;t=_.R(((b=this.data)==null?void 0:b.engagementPanels)||[]);for(b=t.next();!b.done;b=t.next()){b=b.value.engagementPanelSectionListRenderer;var m=void 0,q=void 0,Q=void 0,X=void 0;if((((m=b)==null?void 0:(q=m.identifier)==
null?void 0:q.tag)||((Q=b)==null?void 0:Q.targetId)||((X=b)==null?void 0:X.panelIdentifier))===this.activePanel){e=!0;break}}if(this.isPersistentPanelActive){var I=_.ee().resolve(_.oL);_.kM(_.Tm,function(){I.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}var u;
t=[].concat(_.kP(Object.values(((u=this.data)==null?void 0:u.engagementPanels)||{})));if(_.S("enable_preview_panel_for_shorts_search_suggested_action")){var c,v,D,B,k;((B=_.l((c=this.data)==null?void 0:(v=c.overlay)==null?void 0:(D=v.reelPlayerOverlayRenderer)==null?void 0:D.metapanel,_.NLr))==null?void 0:(k=B.metadataItems)==null?void 0:k.find(function(n){var f,M;return((f=_.l(n,ETw))==null?void 0:(M=f.icon)==null?void 0:M.iconType)==="SEARCH"}))!==void 0&&t.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}u=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);c=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return u===void 0&&c===void 0||(u==null?0:u.isDisabled)||(c==null?void 0:c.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!e?(e=t==null?void 0:t.findIndex(function(n){var f,
M;return((f=n.engagementPanelSectionListRenderer)==null?void 0:(M=f.identifier)==null?void 0:M.tag)==="shorts-comments-panel"}),e===-1||e===void 0||t!=null&&t.splice(e,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Gv("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Gv("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:_.Gv("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Gv("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(_.kP(Object.values(t||
{})))):t}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t,b;if((e=this.playerData)==null?0:(t=e.playabilityStatus)==null?0:(b=t.errorScreen)==null?0:b.playerInterstitialRenderer)return _.Tm.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var m,q;return((m=this.data)==null?void 0:m.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((q=this.data)==null?0:q.watchStatus)&&_.l(this.data.watchStatus,_.Qrb)?(_.Tm.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Ec.Object.defineProperties(Gl,{template:{configurable:!0,enumerable:!0,get:function(){if(NmC===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);NmC=W}W=NmC;return W}}});
Gl.prototype.onNextButtonDataChange=Gl.prototype.onNextButtonDataChange;Gl.prototype.onPrevButtonDataChange=Gl.prototype.onPrevButtonDataChange;Gl.prototype.onPersistentPanelActiveChanged=Gl.prototype.onPersistentPanelActiveChanged;Gl.prototype.lazyUpdateMiniplayerData=Gl.prototype.lazyUpdateMiniplayerData;Gl.prototype.onShortsPipActiveChanged=Gl.prototype.onShortsPipActiveChanged;Gl.prototype.setActiveIndex=Gl.prototype.setActiveIndex;Gl.prototype.graftNvcRenderer=Gl.prototype.graftNvcRenderer;
Gl.prototype.graftClientVisualElements=Gl.prototype.graftClientVisualElements;Gl.prototype.onActiveChanged=Gl.prototype.onActiveChanged;Gl.prototype.onShortsDismiss=Gl.prototype.onShortsDismiss;Gl.prototype.onShortUndoDismiss=Gl.prototype.onShortUndoDismiss;Gl.prototype.playerDataChanged=Gl.prototype.playerDataChanged;Gl.prototype.afterPlayerStarted=Gl.prototype.afterPlayerStarted;Gl.prototype.unhideCurrentOverlay=Gl.prototype.unhideCurrentOverlay;Gl.prototype.onServiceRequestCompleted=Gl.prototype.onServiceRequestCompleted;
Gl.prototype.engagementPanelsChanged=Gl.prototype.engagementPanelsChanged;Gl.prototype.onFullscreenChange=Gl.prototype.onFullscreenChange;Gl.prototype.onResize=Gl.prototype.onResize;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Gl.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.j4.YtPageBehavior),_.Y("design:type",Object)],Gl.prototype,"ytPageBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Gl.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.gf),_.Y("design:type",Object)],Gl.prototype,"ironResizableBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],Gl.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Gl.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Gl.prototype,"ytdReduxBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"playerData",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"reelWatchSequenceResponse",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"cachedReelWatchSequenceResponse",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"currentEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"nextButtonData",void 0);
_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"prevButtonData",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"isPreviousPageShorts",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"index",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"delayedActiveIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"playablePreviousIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"player",void 0);
_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"isPlayerPaused",void 0);_.P([_.J({selector:$Ou}),_.Y("design:type",Object)],Gl.prototype,"isPlayerStarted",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"intersectionObserver",void 0);_.P([_.J(),_.Y("design:type",Number)],Gl.prototype,"cinematicsInitializeJobId",void 0);_.P([_.J(),_.Y("design:type",Number)],Gl.prototype,"updateMiniplayerDataJobId",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"fitToVisibleBounds",void 0);
_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"pageSubtype",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gl.prototype,"enablePreviousContinuation",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"shortsPipEnabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"isDark",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"shortsViewTransitions",void 0);
_.P([_.J({selector:_.SS,reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"isFullscreen",void 0);_.P([_.J({selector:_.BL,reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"isShortsPipActive",void 0);_.P([_.vG("#shorts-inner-container"),_.Y("design:type",HTMLElement)],Gl.prototype,"shortsInnerContainer",void 0);_.P([_.vG("#back-nav-button ytd-button-renderer"),_.Y("design:type",_.EP)],Gl.prototype,"backNavButton",void 0);
_.P([_.vG("#shorts-container"),_.Y("design:type",HTMLElement)],Gl.prototype,"shortsContainer",void 0);_.P([_.UM("error-screen"),_.Y("design:type",HTMLElement)],Gl.prototype,"errorScreenContainer",void 0);_.P([_.UM("player"),_.Y("design:type",Object)],Gl.prototype,"playerElement",void 0);_.P([_.UM("shorts-cinematic-container"),_.Y("design:type",HTMLElement)],Gl.prototype,"shortsCinematicContainer",void 0);
_.P([_.UM("initial-player-container"),_.Y("design:type",HTMLElement)],Gl.prototype,"initialPlayerContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"buttonOverride",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"anchoredPanelActive",void 0);_.P([_.J(),_.Y("design:type",String)],Gl.prototype,"activePanel",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"isActive",void 0);
_.P([_.J({selector:ZqU,reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"smallScreenPersistentPanel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"isPersistentPanelActive",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"smallScreenSqueezeBack",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"enableScrollIntoViewCenter",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"formatFirst",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"enableFlexibleOverlay",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Gl.prototype,"useAspectRatio",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"panelContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"overlayContainer",void 0);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"isShortsInitialized",void 0);
_.P([_.T("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"prevShortsSequence",null);_.P([_.T("data","prevShortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"shortsProcessedPrevSequence",null);_.P([_.T("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"shortsSequence",null);
_.P([_.T("data","shortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"shortsProcessedSequence",null);_.P([_.J({reflectToAttribute:!0}),_.T("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gl.prototype,"isUpArrowHidden",null);
_.P([_.J({reflectToAttribute:!0}),_.T("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gl.prototype,"isDownArrowHidden",null);_.P([_.J(),_.T("index"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Gl.prototype,"activeIndex",null);_.P([_.T("isShortPlayable","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gl.prototype,"shouldRenderOfflineContent",null);
_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onResize",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"anchoredEngagementPanels",null);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"watchWhileEngagementPanels",void 0);_.P([_.ul("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onFullscreenChange",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"engagementPanelsChanged",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],Gl.prototype,"onServiceRequestCompleted",null);_.P([_.T("data","shortsSequence","index"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"activeReel",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"unhideCurrentOverlay",null);_.P([_.ul("isPlayerStarted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"afterPlayerStarted",null);_.P([_.T("playerData","reelWatchSequenceResponse","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gl.prototype,"errorScreen",null);
_.P([_.T("errorScreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gl.prototype,"hasError",null);_.P([_.ul("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Gl.prototype,"playerDataChanged",null);_.P([_.wz("yt-dismissible-item-undo-feedback"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onShortUndoDismiss",null);
_.P([_.wz("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Gl.prototype,"onShortsDismiss",null);_.P([_.BG("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onActiveChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"graftClientVisualElements",null);
_.P([_.ul("currentPlayerIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"graftNvcRenderer",null);_.P([_.ul("index"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"setActiveIndex",null);_.P([_.ul("isShortsPipActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onShortsPipActiveChanged",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"lazyUpdateMiniplayerData",null);_.P([_.J(),_.Y("design:type",Object)],Gl.prototype,"onOverlayDensityChanged",void 0);_.P([_.ul("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onPersistentPanelActiveChanged",null);
_.P([_.ul("index","data","isUpArrowHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onPrevButtonDataChange",null);_.P([_.ul("index","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gl.prototype,"onNextButtonDataChange",null);_.P([_.h({is:"ytd-shorts"})],Gl);_.qQ.registerService(_.q$9,Gl);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("JzFVk");
var o31=function(W){return _.w("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},BiE(W.data.ctaButton,{buttonViewModel:{}}),_.w(_.WL,{text:W.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var lFw;var Z9U;var xx=function(){return _.O.apply(this,arguments)||this};
_.Z(xx,_.O);xx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
xx.prototype.computeBlueBottomLink=function(W){return W};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xx.prototype,"data",void 0);_.P([_.J({computed:"computeIcon_(data.bottomIcon)"}),_.Y("design:type",String)],xx.prototype,"bottomIcon",void 0);
_.P([_.J({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],xx.prototype,"enableBlueBottomLink",void 0);_.P([_.h({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],xx);
_.H(xx,"ytd-web-answer-renderer",function(){if(Z9U!==void 0)return Z9U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Z9U=W},{mode:_.Qe("kevlar_poly_si_batch_j035")?1:2});var $CS;var Of=function(){var W=_.O.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.Z(Of,_.O);Of.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}}};
Of.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Of.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Y("design:type",Object)],Of.prototype,"hasChipBar",void 0);_.P([_.h({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Of);
_.H(Of,"ytd-search-header-renderer",function(){if($CS!==void 0)return $CS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $CS=W},{mode:1});var koE;var M8=function(){return _.O.apply(this,arguments)||this};
_.Z(M8,_.O);M8.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],M8.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-page-continuation"})],M8);
_.H(M8,"ytd-page-continuation",function(){if(koE!==void 0)return koE;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return koE=W},{mode:1});var p01;var ylS;var jgC;var sf=function(){return _.O.apply(this,arguments)||this};
_.Z(sf,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sf.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],sf);
_.H(sf,"ytd-watch-card-one-vs-one-event",function(){if(jgC!==void 0)return jgC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jgC=W},{mode:1});var hP=function(){return _.O.apply(this,arguments)||this};
_.Z(hP,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hP.prototype,"data",void 0);_.P([_.h({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],hP);
_.H(hP,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ylS!==void 0)return ylS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ylS=W},{mode:1});var CEQ;var HI=function(){return _.O.apply(this,arguments)||this};
_.Z(HI,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],HI.prototype,"data",void 0);_.P([_.h({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],HI);
_.H(HI,"ytd-banner-and-box-hero-image-renderer",function(){if(CEQ!==void 0)return CEQ;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CEQ=W},{mode:1});var n3l;var Ko=function(){var W=_.O.apply(this,arguments)||this;W.modern=_.S("web_modern_buttons");return W};
_.Z(Ko,_.O);Ko.prototype.computeIcon=function(){var W,e,t=(W=this.data)==null?void 0:(e=W.icon)==null?void 0:e.iconType;if(t)return _.ao(t)};
Ko.prototype.computeButtonShape=function(){var W;return{buttonText:_.Ub((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Ec.Object.defineProperties(Ko.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"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ko.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ko.prototype,"modern",void 0);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ko.prototype,"buttonColor",null);
_.P([_.h({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Ko);
_.H(Ko,"ytd-call-to-action-button-renderer",function(){if(n3l!==void 0)return n3l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return n3l=W},{mode:1});var fF9;var PI=function(){return _.O.apply(this,arguments)||this};
_.Z(PI,_.O);PI.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.rz(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.rd(this.data.leftThumbnail.thumbnails,216)+")")};
PI.prototype.onLeftThumbnailChanged=PI.prototype.onLeftThumbnailChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],PI.prototype,"data",void 0);_.P([_.ul("data.leftThumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PI.prototype,"onLeftThumbnailChanged",null);_.P([_.h({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],PI);
_.H(PI,"ytd-collage-hero-image-renderer",function(){if(fF9!==void 0)return fF9;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return fF9=W},{mode:1});var g3T;var VW=function(){return _.O.apply(this,arguments)||this};
_.Z(VW,_.O);VW.prototype.computeStyle=function(W){return W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],VW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],VW.prototype,"componentStyle",void 0);_.P([_.h({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],VW);
_.H(VW,"ytd-single-hero-image-renderer",function(){if(g3T!==void 0)return g3T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return g3T=W},{mode:1});var Til;var iY=function(){return _.O.apply(this,arguments)||this};
_.Z(iY,_.O);_.r=iY.prototype;
_.r.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:_.S("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.r.computeSubtitle=function(W){if(this.data){var e;if(this.data.upcomingEventData){W=_.Ub(W.subtitle);var t=Number(this.data.upcomingEventData.startTime);isNaN(t)||(e=_.zq(_.sQ(W,t)))}else e=W.subtitle;return e}};
_.r.onHeroTap=function(W){W.preventDefault();var e=this.data&&this.data.navigationEndpoint;!e||!_.NA(_.LB(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.NA(_.LB(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.S("kevlar_watchcard_hero_video_renderer_killswitch")?_.q2(this.hostElement,"yt-navigate",{navigationEndpoint:e}):this.ytComponentBehavior.resolveCommand(e))};
_.r.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.r.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.r.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.r.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.r.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),e;((e=_.l(W==null?void 0:W.commandMetadata,_.Cf))==null?0:e.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
iY.prototype.dataChanged=iY.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],iY.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iY.prototype,"data",void 0);
_.P([_.J({computed:"computeSubtitle(data)"}),_.Y("design:type",String)],iY.prototype,"subtitle",void 0);_.P([_.J({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iY.prototype,"isReminderButtonPresent",void 0);_.P([_.J({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iY.prototype,"hideBottomItems",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iY.prototype,"dataChanged",null);_.P([_.h({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],iY);
_.H(iY,"ytd-watch-card-hero-video-renderer",function(){if(Til!==void 0)return Til;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Til=W},{mode:1});var Jl$;var Yx=function(){return _.O.apply(this,arguments)||this};
_.Z(Yx,_.O);_.r=Yx.prototype;_.r.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"}}}};
_.r.computeTitleBadges=function(W){return W?[W]:[]};
_.r.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.r.computeAvatarAriaLabel=function(W){if(W){var e,t,b,m;return(m=(e=W.avatar)==null?void 0:(t=e.accessibility)==null?void 0:(b=t.accessibilityData)==null?void 0:b.label)!=null?m:_.Ub(W==null?void 0:W.title)}};
_.r.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.r.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yx.prototype,"data",void 0);_.P([_.J({computed:"computeTitleBadges(data.titleBadge)"}),_.Y("design:type",Array)],Yx.prototype,"titleBadges",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Y("design:type",String)],Yx.prototype,"headerStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Y("design:type",String)],Yx.prototype,"badgeRowClass",void 0);_.P([_.h({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Yx);
_.H(Yx,"ytd-watch-card-rich-header-renderer",function(){if(Jl$!==void 0)return Jl$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Jl$=W},{mode:1});var xCg;var O9w;var zj=function(){return _.O.apply(this,arguments)||this};
_.Z(zj,_.O);zj.prototype.onMetadataTap=function(W){var e=this.data&&this.data.navigationEndpoint;e&&!_.NA(_.LB(W),this.hostElement,["A".toString()])&&_.q2(this.hostElement,"yt-navigate",{endpoint:e})};
_.Ec.Object.defineProperties(zj.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 W;if(this.data.upcomingEventData){var e=_.Ub(this.data.subtitle),t=Number(this.data.upcomingEventData.startTime);isNaN(t)||(W=_.zq(_.sQ(e,t)))}else W=this.data.subtitle;return W}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zj.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zj.prototype,"isCondensed",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zj.prototype,"subtitle",null);
_.P([_.h({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],zj);
_.H(zj,"ytd-watch-card-compact-video-renderer",function(){if(O9w!==void 0)return O9w;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return O9w=W},{mode:1});var M6T;var Uf=function(){return _.O.apply(this,arguments)||this};
_.Z(Uf,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uf.prototype,"data",void 0);_.P([_.h({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Uf);
_.H(Uf,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(M6T!==void 0)return M6T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return M6T=W},{mode:1});var Lo=function(){return _.O.apply(this,arguments)||this};
_.Z(Lo,_.O);Lo.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}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Lo.prototype,"ytRendererStamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Lo.prototype,"data",void 0);_.P([_.h({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Lo);
_.H(Lo,"ytd-vertical-watch-card-list-renderer",function(){if(xCg!==void 0)return xCg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return xCg=W},{mode:1});var sgB;var Ef=function(){var W=_.O.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.Z(Ef,_.O);_.r=Ef.prototype;_.r.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.r.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.r.computeEpisodesInfo=function(W,e,t){if(W!==void 0&&e.length===W.length)return W[t]};
_.r.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.r.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.r.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.r.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.r.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.r.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
Ef.prototype.onIronOverlayClosed=Ef.prototype.onIronOverlayClosed;Ef.prototype.currentSeasonIndexChanged=Ef.prototype.currentSeasonIndexChanged;Ef.prototype.dataChanged=Ef.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ef.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",String)],Ef.prototype,"label",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Ef.prototype,"currentSeasonIndex",void 0);_.P([_.J({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Y("design:type",Object)],Ef.prototype,"episodesInfo",void 0);_.P([_.J({value:"false"}),_.Y("design:type",Object)],Ef.prototype,"ariaExpanded",void 0);_.P([_.vG("#lists"),_.Y("design:type",Object)],Ef.prototype,"lists",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ef.prototype,"dataChanged",null);_.P([_.BG("currentSeasonIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ef.prototype,"currentSeasonIndexChanged",null);_.P([_.wz("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Ef.prototype,"onIronOverlayClosed",null);
_.P([_.h({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Ef);
_.H(Ef,"ytd-watch-card-section-dropdown-renderer",function(){if(sgB!==void 0)return sgB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return sgB=W},{mode:1});var htS;var AP=function(){var W=_.O.apply(this,arguments)||this;W.isSearch=!1;return W};
_.Z(AP,_.O);AP.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}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],AP.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],AP.prototype,"isSearch",void 0);_.P([_.h({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],AP);
_.H(AP,"ytd-watch-card-section-sequence-renderer",function(){if(htS!==void 0)return htS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return htS=W},{mode:1});var BiE=_.$b({buttonViewModel:_.MV});_.tA(o31);_.a5(o31,"ytd-button-banner-view-model",{propNames:["data"]});var N8=function(){var W=_.O.apply(this,arguments)||this;W.isSearch=!1;return W};
_.Z(N8,_.O);
N8.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"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],N8.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],N8.prototype,"rounded",void 0);_.P([_.J(),_.Y("design:type",Object)],N8.prototype,"isSearch",void 0);
_.P([_.h({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],N8);
_.H(N8,"ytd-universal-watch-card-renderer",function(){if(p01!==void 0)return p01;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return p01=W},{mode:1});var H9$;_.mM(_.NN(function(W){var e=W.data;var t;W=!((t=_.ee().resolve(_.Wi(_.zf)))==null||!t());t={};return _.w("overview-message-view-model",{class:_.ve("ytwOverviewMessageViewModelHost",(t.ytwOverviewMessageViewModelDarkBackground=W,t.ytwOverviewMessageViewModelLightBackground=!W,t))},_.w(_.G,{cond:function(){return e().primaryImage},
then:function(b){return _.w(_.A_,{data:b,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.w(_.G,{cond:function(){return e().primaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.w(_.WL,{text:function(){return e().primaryText}}))}}),_.w(_.G,{cond:function(){return e().secondaryText},
then:function(){return _.w("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.w(_.WL,{text:function(){return e().secondaryText}}))}}))},"Mi"),"overview-message-view-model",{props:{data:_.Eu}});_.a5(_.E7y,"ytd-overview-answer-view-model",{propNames:["data"]});var dw=function(){return _.O.apply(this,arguments)||this};
_.Z(dw,_.O);dw.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"}}}};
dw.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],dw.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dw.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],dw.prototype,"isSearch",void 0);
_.P([_.h({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],dw);
_.H(dw,"ytd-secondary-search-container-renderer",function(){if(H9$!==void 0)return H9$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return H9$=W},{mode:1});var K9E;var Wk=function(){var W=_.O.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;W.isSearchDova=_.S("dova_on_search");return W};
_.Z(Wk,_.O);_.r=Wk.prototype;_.r.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.r.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.xq("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.r.computeIsSearchFrictionPage=function(W){var e,t,b,m,q;W=W==null?void 0:(e=W.primaryContents)==null?void 0:(t=e.sectionListRenderer)==null?void 0:(b=t.contents)==null?void 0:(m=b[0])==null?void 0:(q=m.itemSectionRenderer)==null?void 0:q.contents;if(!W)return!1;e=_.R(W);for(t=e.next();!t.done;t=e.next())if(b=void 0,(b=t.value)==null?0:b.searchFrictionViewModel)return!0;return!1};
_.r.computeShowSecondaryColumn=function(W,e){return!!(e&&e.secondaryContents&&W)};
_.r.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.aH(this,this.debounceStampSecondarySearchContainerIfFits)),_.hc(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.aH(this,this.debounceStampSecondarySearchContainerIfFits))};
_.r.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.r.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.r.debounceStampSecondarySearchContainerIfFits=function(){_.HG(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.r.onRetrieveLocation=function(W,e){e.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.r.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Wk.prototype.dataChanged=Wk.prototype.dataChanged;Wk.prototype.onRetrieveLocation=Wk.prototype.onRetrieveLocation;Wk.prototype.persistentGuideChanged=Wk.prototype.persistentGuideChanged;Wk.prototype.activeChanged=Wk.prototype.activeChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Wk.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],Wk.prototype,"ironResizableBehavior",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Wk.prototype,"active",void 0);_.P([_.J(),_.Y("design:type",Object)],Wk.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Wk.prototype,"useBiggerThumbs",void 0);_.P([_.J({reflectToAttribute:!0,value:function(){return _.r8("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Wk.prototype,"biggerThumbsStyle",void 0);_.P([_.J(),_.Y("design:type",Object)],Wk.prototype,"renderSecondarySearchContainer",void 0);_.P([_.J({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Y("design:type",Boolean)],Wk.prototype,"showSecondaryColumn",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Y("design:type",Boolean)],Wk.prototype,"isSearchFrictionPage",void 0);
_.P([_.J(),_.Y("design:type",Object)],Wk.prototype,"isSearch",void 0);_.P([_.J(),_.Y("design:type",Object)],Wk.prototype,"isSearchDova",void 0);_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wk.prototype,"activeChanged",null);_.P([_.ul("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wk.prototype,"persistentGuideChanged",null);
_.P([_.wz("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Wk.prototype,"onRetrieveLocation",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wk.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Wk);
_.H(Wk,"ytd-two-column-search-results-renderer",function(){if(K9E!==void 0)return K9E;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return K9E=W},{mode:1});var ec=function(){var W=_.O.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.S("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.Z(ec,_.O);_.r=ec.prototype;_.r.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:_.fb(["aa","eocs"])}}};
_.r.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.r.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.xq("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.EH(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.r.initCsi=function(){_.yL("results",["ol","cpt"])};
_.r.updateTitle=function(){var W=_.VV(window.location.href,"q");W||(W=_.VV(window.location.href,"search_query"));_.q2(this.hostElement,"yt-update-title",W||"")};
_.r.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.r.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.S("web_srp_data_changed_terminate_imp_killswitch")||_.RT(this.hostElement,"yt-terminate-video-preview-action")};
_.r.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.r.computeHasSearchHeader=function(W){var e;W=W==null?void 0:(e=W.header)==null?void 0:e.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.r.computeHasSecondaryContent=function(W){var e,t;return!!(W==null?0:(e=W.contents)==null?0:(t=e.twoColumnSearchResultsRenderer)==null?0:t.secondaryContents)};
_.Ec.Object.defineProperties(ec,{template:{configurable:!0,enumerable:!0,get:function(){if(lFw===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);lFw=W}W=lFw;return W}}});
ec.prototype.onReloadContinuationFinish=ec.prototype.onReloadContinuationFinish;ec.prototype.dataChanged=ec.prototype.dataChanged;_.P([_.y(_.j4.YtPageBehavior),_.Y("design:type",Object)],ec.prototype,"ytPageBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ec.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],ec.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ec.prototype,"data",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],ec.prototype,"monitorScroll",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ec.prototype,"hasSearchHeader",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ec.prototype,"hasSecondaryContent",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ec.prototype,"hasBiggerThumbs",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ec.prototype,"dataChanged",null);
_.P([_.wz("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ec.prototype,"onReloadContinuationFinish",null);_.P([_.h({is:"ytd-search"})],ec);_.qQ.registerService(_.rus,ec);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("h8y2qb");
var $T1=function(W){if(W=_.R2L(W)){var e;(e=W.sources)!=null&&e[0]?(e=_.FX9(W),e=e<1?"VERTICAL":e>1?"HORIZONTAL":"SQUARE"):e=void 0;return e}},CE=function(W){_.Z6.call(this,"upload");
this.opts.query=W},prT=function(W,e){return _.w(k89,{data:W,
onYtNavigate:e})},yRM=function(W,e){return _.I1(W.entities,"pageHeaderEntity",e)},CuB=function(W,e){return W.map(function(t){if(t.tabRenderer)return jKM(t.tabRenderer);
if(t.expandableTabRenderer&&e){var b=t.expandableTabRenderer;return{customTabRenderable:function(){return e(b)}}}return{}})},jKM=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.h_({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable,icon:W.icon}},nHg=function(W){return _.rO({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},fXl=function(W){if(!_.mg(document,"gtm-noscript")){var e=document.createElement("noscript");
e.id="gtm-noscript";e.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(e)}};_.QP(CE,_.Z6);CE.prototype.JSC$8119_setLabel=function(W){CE.superClass_.JSC$8119_setLabel.call(this,W);return this};
CE.prototype.addUploadMetadata=function(W,e){CE.superClass_.addUploadMetadata.call(this,W,e);return this};var gHC=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("Wl");CE.call(this,W)};
_.Z(gHC,CE);gHC.prototype.JSC$8119_setLabel=function(W){CE.prototype.JSC$8119_setLabel.call(this,W);return this};
gHC.prototype.addUploadMetadata=function(W,e){CE.prototype.addUploadMetadata.call(this,W,e);return this};var THM=[_.gf,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.ZZ(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Qy(this._layoutDebouncer,_.ye,W);_.FI(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 JRM=[_.c_U,{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(W,e){var t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!t)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(t,e||{});W.setUp();return W},
_effectsChanged:function(W,e,t){this._tearDownEffects();W&&t&&(W.split(" ").forEach(function(b){var m;b!==""&&((m=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[b])?this._effects.push(this._boundEffect(m,e[b])):console.warn(this._getUndefinedMsg(b)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,e){e=e||{};var t=parseFloat(e.startsAt||0),b=parseFloat(e.endsAt||1),m=b-t,q=function(){};
b=t===0&&b===1?W.run:function(Q,X){W.run.call(this,Math.max(0,(Q-t)/m),X)};
return{setUp:W.setUp?W.setUp.bind(this,e):q,run:W.run?b.bind(this):q,tearDown:W.tearDown?W.tearDown.bind(this):q}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,e){this._effectsRunFn&&this._effectsRunFn.forEach(function(t){t(W,e)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var e={};W=parseFloat(W.scalar);e.background=this._getDOMRef("background");e.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");e.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");e.deltaBg=e.backgroundFrontLayer.offsetHeight-e.background.offsetHeight;e.deltaBg===0?(isNaN(W)&&(W=.8),e.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),e.deltaBg*=W);this._fxParallaxBackground=e},
run:function(W){var e=this._fxParallaxBackground;this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,W)+"px, 0px)",e.backgroundFrontLayer);e.backgroundRearLayer&&this.transform("translate3d(0px, "+e.deltaBg*Math.min(1,W)+"px, 0px)",e.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var xTE;var Oig;var M7C=function(){};
_.r=M7C.prototype;_.r._scrollTargetChanged=function(){};
_.r.scroll=function(){};
_.r._isValidScrollTarget=function(){};
_.r._toggleScrollListener=function(){};
_.r.toggleScrollListener=function(){};
_.r.createEffect=function(){};
_.r._effectsChanged=function(){};
_.r._layoutIfDirty=function(){};
_.r._boundEffect=function(){};
_.r._setUpEffect=function(){};
_.r._tearDownEffects=function(){};
_.r._runEffects=function(){};
_.r._scrollHandler=function(){};
_.r._scrollStateChanged=function(){};
_.r._getUndefinedMsg=function(){};
_.r.notifyResize=function(){};
_.r.assignParentResizable=function(){};
_.r.stopResizeNotificationsFor=function(){};
_.r._subscribeIronResize=function(){};
_.r._unsubscribeIronResize=function(){};
_.r.resizerShouldNotify=function(){};
_.r._onDescendantIronResize=function(){};
_.r._fireResize=function(){};
_.r._onIronRequestResizeNotifications=function(){};
_.r._parentResizableChanged=function(){};
_.r._notifyDescendant=function(){};
_.r._requestResizeNotifications=function(){};
_.r._findParent=function(){};
_.r._appResetLayoutHandler=function(){};
_.r.resetLayout=function(){};
_.r._notifyLayoutChanged=function(){};
_.r._notifyDescendantResize=function(){};
_.r._setThresholdTriggered=function(){};
M7C=_.yQ({_template:function(){if(Oig!==void 0)return Oig;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;xTE===void 0&&(xTE=document.createElement("template"));var b=xTE;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return Oig=W},
is:"tp-yt-app-header",behaviors:[JRM,THM],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 W=_.ZZ(this.$.slot).getDistributedNodes(),e=0,t;t=W[e];e++)if(t.nodeType===Node.ELEMENT_NODE)if(t.hasAttribute("sticky")){this._stickyElRef=t;break}else this._stickyElRef||(this._stickyElRef=t);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,e=this._height===0||W===0,t=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;e||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();e?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=t}},
_updateScrollState:function(W,e){if(this._height!==0){var t=0,b=this._top;var m=this._maxHeaderTop;var q=W-this._lastScrollTop,Q=Math.abs(q),X=W>this._lastScrollTop,I=performance.now();this._mayMove()&&(t=this._clamp(this.reveals?b+q:W,0,m));W>=this._dHeight&&(t=this.condenses&&!this.fixed?Math.max(this._dHeight,t):t,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Q<100){if(I-this._initTimestamp>300||this._wasScrollingDown!==X)this._initScrollTop=W,this._initTimestamp=I;W>=m&&
(Math.abs(this._initScrollTop-W)>30||Q>10?(X&&W>=m?t=m:!X&&W>=this._dHeight&&(t=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((t-b)/(q/(I-this._lastTimestamp)),0,300)+"ms"):t=this._top)}m=this._dHeight===0?W>0?1:0:t/this._dHeight;e||(this._lastScrollTop=W,this._top=t,this._wasScrollingDown=X,this._lastTimestamp=I);if(e||m!==this._progress||b!==t||W===0)this._progress=m,this._runEffects(m,t),this._transformHeader(t)}},
_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(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,e,t){return Math.min(t,Math.max(e,W))},
_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),_.ZZ(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.ZZ(this).querySelector("[main-title]");case "condensedTitle":return _.ZZ(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var sKS;var hh1;_.yQ({_template:function(){if(hh1!==void 0)return hh1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;sKS===void 0&&(sKS=document.createElement("template"));var b=sKS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return hh1=W},
is:"tp-yt-app-header-layout",behaviors:[THM],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.ZZ(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var e=this.getBoundingClientRect(),t=document.documentElement.clientWidth-e.right;W.style.left=e.left+"px";W.style.right=t+"px"}e=this.$.contentContainer.style;t=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(e.marginTop=t+"px",e.paddingTop=""):(e.paddingTop=t+"px",e.marginTop="")}}});var HiB=new _.z("replaceFeedContentAction");var KA9=new _.z("alertCommand");var Pu$=new _.z("manageLabsStateCommand");var V7U=new _.z("inlineFormRenderer");var nE=new _.z("playlistSidebarPrimaryInfoRenderer");var iig=new _.z("productDetailsThumbnailRenderer"),YMg=new _.z("productDetailsVariantRenderer"),zhS=new _.z("productDetailsVariantOptionRenderer"),UTB=new _.z("productDetailsOffersContainerRenderer"),LAu=new _.z("productDetailsOfferRenderer");var EHC=new _.z("shoppingFlaggingRenderer");var ARQ=new _.z("playlistBylineRenderer");var NH$=new _.z("insertChannelTabCommand");var fE=function(){return _.D0.apply(this,arguments)||this};
_.Z(fE,_.D0);_.r=fE.prototype;_.r.activeChanged=function(){if(this.active){var W=_.rz(this.hostElement).querySelector("#header");W&&_.q2(W,"iron-resize");window.addEventListener("scroll",_.aH(this,this.onScroll))}else window.removeEventListener("scroll",_.aH(this,this.onScroll)),_.q2(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.r.guideVisibleChanged=function(){var W=_.rz(this.hostElement).querySelector("#header");W&&_.q2(W,"iron-resize")};
_.r.onScroll=function(){var W=this;_.HG(this,"onScroll",function(){var e=_.rz(W.hostElement).querySelector("#header");e&&e.polymerController&&(e=e.polymerController.getScrollState().progress===1?"standard":"seamed",_.q2(W.hostElement,"yt-request-panel-mode-change",{mode:e}))},10)};
_.r.tabsChanged=function(){if(this.tabs){for(var W=null,e=0,t=this.tabs.length;e<t;++e){var b=this.tabs[e].tabRenderer;if(b&&b.selected){W=e;break}}this.selected=W}};
_.r.onTabsActivate=function(W){_.q2(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
fE.prototype.tabsChanged=fE.prototype.tabsChanged;fE.prototype.guideVisibleChanged=fE.prototype.guideVisibleChanged;fE.prototype.activeChanged=fE.prototype.activeChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],fE.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.J(),_.Y("design:type",Array)],fE.prototype,"tabs",void 0);
_.P([_.J(),_.Y("design:type",Object)],fE.prototype,"selected",void 0);_.P([_.J(),_.Y("design:type",Boolean)],fE.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fE.prototype,"disableHeaderFluidWidth",void 0);_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fE.prototype,"activeChanged",null);
_.P([_.ul("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fE.prototype,"guideVisibleChanged",null);_.P([_.ul("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fE.prototype,"tabsChanged",null);_.P([_.SB()],fE);var dTg=[_.d.YtRendererBehavior,_.M$.YtdGuideStateAwareBehavior,fE.prototype];var W0M=2/3,eME=_.na(130749),t9C=function(W,e){var t=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){t.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:W0M,moveAction:function(b){t.moveAction(b)},
triggerAction:function(){t.element.isReloading=!0;_.Pe(_.Sg(),{visualElement:eME});_.uL.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:t.element}})}}}};
_.I0(_.Sg(),eME,this.layer);this.gesture=new _.w4(W,e,this.refreshConfig,"pan-down");this.attach()};
_.r=t9C.prototype;_.r.attach=function(){this.gesture.attach()};
_.r.detach=function(){this.gesture.detach()};
_.r.reset=function(){this.element.close()};
_.r.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.r.moveAction=function(W){this.element.rotation=W*360};var bWu=_.na(130750),g4=function(W,e,t,b,m){var q=this;this.element=W;this.parent=t;this.channelHeader=b;this.ytdReduxDispatch=m;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){q.tabsStartAtInPx=q.channelHeader.clientHeight-48;var Q;(Q=q.selectedTab)!=null&&Q.title&&(Q=_.ee().resolve(_.Wi(_.WS)))&&(Q=Q.getCurrentPage(),q.lastVisitedTabScrollPosition=Q.getScrollTop(),q.previousTab&&
((q.lastVisitedTabScrollPosition===void 0?0:q.lastVisitedTabScrollPosition<q.channelHeader.clientHeight-48)?q.scrollPositionForTabs.has(q.selectedTab.title)&&q.scrollPositionForTabs.delete(q.selectedTab.title):q.scrollPositionForTabs.set(q.selectedTab.title,Q.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:mFE(),triggerAction:function(){q.navigate(q.previousTab)},
moveAction:function(Q,X){q.moveAction(Q,X)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-mFE(),triggerAction:function(){q.navigate(q.nextTab)},
moveAction:function(Q,X){q.moveAction(Q,X)}}}};
_.I0(_.Sg(),bWu,this.layer);this.gesture=new _.w4(W,e,this.tabConfig);this.attach()};
g4.prototype.attach=function(){this.gesture.attach()};
g4.prototype.detach=function(){this.gesture.detach()};
g4.prototype.tabsChanged=function(W){if(W){var e=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.R(W);for(var t=W.next();!t.done;t=W.next()){t=t.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=t);var b=void 0;if((b=t)==null?0:b.selected)this.previousTab=e,this.selectedTab=t;e=t}e=this.gesture;W=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}});
e.config=W;this.scrollPositionNeedsUpdate=!0}};
g4.prototype.moveAction=function(W,e){if(!this.tabsElement){var t;this.tabsElement=(t=this.parent.header)==null?void 0:t.tabsElement;e==="right"&&this.previousTab?_.Jak(_.lT.instance,this.previousTab.endpoint,{},""):e==="left"&&this.nextTab&&_.Jak(_.lT.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}t=this.tabsElement._pos;e==="right"&&(W*=-1);this.tabsElement._positionBar(t.width,t.left*1+t.width*W)};
var mFE=function(){var W,e;return(e=(W=_.ee().resolve(_.WS).getCurrentPage())==null?void 0:W.clientWidth)!=null?e:0};
g4.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(nHg(!0)),_.Pe(_.Sg(),{visualElement:bWu}),_.uL.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var r4l;var q_l;var Tt=function(){return _.O.apply(this,arguments)||this};
_.Z(Tt,_.O);Tt.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Tt.prototype,"data",void 0);_.P([_.h({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Tt);
_.H(Tt,"ytd-labs-edit-renderer",function(){if(q_l!==void 0)return q_l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return q_l=W},{mode:1});var RM1;var Ju=function(){var W=_.O.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(Ju,_.O);Ju.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ju.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
Ju.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
Ju.prototype.setBackgroundImage=function(W){_.XB(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ju.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ju.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ju.prototype,"dark",void 0);
_.P([_.h({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Ju);
_.H(Ju,"ytd-labs-header-renderer",function(){if(RM1!==void 0)return RM1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RM1=W},{mode:1});var Q6U;var x1=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.Z(x1,_.O);x1.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"}}}}}};
x1.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
x1.prototype.onManageLabsState=function(W){if(W=_.l(W,Pu$))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.RT(this.hostElement,"yt-check-labs-opted-in-state").some(function(e){return e})&&this.data.confirmationDialogCommand?_.IT(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.ee().resolve(_.tQ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.ee().resolve(_.tQ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
x1.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.Ec.Object.defineProperties(x1.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
x1.prototype.onYtToggleButton=x1.prototype.onYtToggleButton;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],x1.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x1.prototype,"itemStyle",null);_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x1.prototype,"onYtToggleButton",null);_.P([_.h({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],x1);
_.H(x1,"ytd-labs-item-renderer",function(){if(Q6U!==void 0)return Q6U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Q6U=W},{mode:1});var F0Q;var XpC;var O$=function(){return _.O.apply(this,arguments)||this};
_.Z(O$,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],O$.prototype,"data",void 0);_.P([_.h({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],O$);
_.H(O$,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(XpC!==void 0)return XpC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return XpC=W},{mode:1});var Ikl;var Mj=function(){return _.O.apply(this,arguments)||this};
_.Z(Mj,_.O);Mj.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.XB(this.hostElement,W)}};
Mj.prototype.colorFromDecimal=function(W){return _.h8(Number(W||0))};
Mj.prototype.observeSuperchatChip=Mj.prototype.observeSuperchatChip;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mj.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mj.prototype,"observeSuperchatChip",null);_.P([_.h({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Mj);
_.H(Mj,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Ikl!==void 0)return Ikl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Ikl=W},{mode:1});var s$=function(){return _.O.apply(this,arguments)||this};
_.Z(s$,_.O);s$.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"}}}};
_.Ec.Object.defineProperties(s$.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.Tx),_.Y("design:type",Object)],s$.prototype,"ytdDismissibleItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],s$.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],s$.prototype,"hideMessageBlock",null);
_.P([_.h({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],s$);
_.H(s$,"ytd-live-chat-history-entry-renderer",function(){if(F0Q!==void 0)return F0Q;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return F0Q=W},{mode:1});var akE;var hu=function(){return _.O.apply(this,arguments)||this};
_.Z(hu,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hu.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],hu);
_.H(hu,"ytd-channel-options-renderer",function(){if(akE!==void 0)return akE;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return akE=W},{mode:1});var wpM;var Ho=function(){return _.O.apply(this,arguments)||this};
_.Z(Ho,_.O);Ho.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ho.prototype,"data",void 0);_.P([_.h({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Ho);
_.H(Ho,"ytd-settings-email-item-renderer",function(){if(wpM!==void 0)return wpM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return wpM=W},{mode:1});var uFl;var KE=function(){return _.O.apply(this,arguments)||this};
_.Z(KE,_.O);KE.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"}}}};
KE.prototype.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
KE.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Ec.Object.defineProperties(KE.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],KE.prototype,"data",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],KE.prototype,"expanded",void 0);_.P([_.T("expanded"),_.Y("design:type",String),_.Y("design:paramtypes",[])],KE.prototype,"emailListExpanded",null);
_.P([_.vG("#options"),_.Y("design:type",Object)],KE.prototype,"options",void 0);_.P([_.h({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],KE);
_.H(KE,"ytd-settings-email-list-renderer",function(){if(uFl!==void 0)return uFl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uFl=W},{mode:1});var c4T;var Po=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.Z(Po,_.O);Po.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"}}}};
Po.prototype.handleSignalActionSubmitForm=function(){var W,e=(W=this.formRenderer)==null?void 0:W.getForm();e&&this.data.serviceEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})})};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Po.prototype,"data",void 0);_.P([_.vG("yt-form-renderer"),_.Y("design:type",Object)],Po.prototype,"formRenderer",void 0);
_.P([_.h({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Po);
_.H(Po,"ytd-settings-gaia-link-renderer",function(){if(c4T!==void 0)return c4T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return c4T=W},{mode:1});var vjB;var VL=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.Z(VL,_.O);VL.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.XaU()&&this.set("data.hidden",!1)};
VL.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.S("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Fkw().then(function(e){e&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.N1("NotificationsDisabled").then(function(t){t||_.RT(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!t]);W.set("data.hidden",!1)}).catch(function(){}))})})};
VL.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}}}}};
VL.prototype.handleUpdateOptionsCommand=function(W){(W=_.l(W,_.Lcr))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
VL.prototype.onSwitchReady=VL.prototype.onSwitchReady;VL.prototype.dataChanged=VL.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],VL.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],VL.prototype,"data",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"dataChanged",null);_.P([_.wz("yt-settings-switch-ready"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"onSwitchReady",null);_.P([_.h({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],VL);
_.H(VL,"ytd-settings-options-renderer",function(){if(vjB!==void 0)return vjB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vjB=W},{mode:1});var G5C;var iM=function(){return _.O.apply(this,arguments)||this};
_.Z(iM,_.O);iM.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
iM.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
iM.prototype.onYtExpanderMoreTapped=iM.prototype.onYtExpanderMoreTapped;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],iM.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],iM.prototype,"data",void 0);
_.P([_.wz("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"onYtExpanderMoreTapped",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],iM);
_.H(iM,"ytd-product-details-description-renderer",function(){if(G5C!==void 0)return G5C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return G5C=W},{mode:1});var DFg;var Y1=function(){var W=_.O.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.Z(Y1,_.O);Y1.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ec.Object.defineProperties(Y1.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:(e=W.offerData)==null?void 0:e.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((e=this.data)==null?void 0:e.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((e=this.data)==null||!e.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Y1.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Y1.prototype,"data",void 0);
_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],Y1.prototype,"shippingIcon",void 0);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],Y1.prototype,"shippingAddressIcon",void 0);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],Y1.prototype,"googleGuaranteeIcon",void 0);
_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],Y1.prototype,"returnPolicyIcon",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y1.prototype,"showAdditionalFees",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y1.prototype,"showMultiPurchaseButtons",null);
_.P([_.T("data","showMultiPurchaseButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y1.prototype,"showPurchaseData",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Y1);
_.H(Y1,"ytd-product-details-hero-offer-renderer",function(){if(DFg!==void 0)return DFg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DFg=W},{mode:1});var S_u;var BhC;var zt=function(){return _.O.apply(this,arguments)||this};
_.Z(zt,_.O);_.r=zt.prototype;_.r.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.r.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.r.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.Qx(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.r.onMouseLeaveImage=function(){_.Qx(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.r.handleSelection=function(){this.data&&_.q2(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Ec.Object.defineProperties(zt.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zt.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zt.prototype,"isSelected",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],zt);
_.H(zt,"ytd-product-details-thumbnail-renderer",function(){if(BhC!==void 0)return BhC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BhC=W},{mode:1});var U$=function(){var W=_.O.apply(this,arguments)||this;var e={};W.actionMap=(e["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",e["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",e);W.selectedThumbnailIndex=0;W.selectItem=function(t){t.target.onKeyDown(t)};
return W};
_.Z(U$,_.O);_.r=U$.prototype;_.r.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.r.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.r.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.r.onThumbnailSelected=function(W,e){this.selectedThumbnailIndex=e};
_.r.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.r.updateOffset=function(){var W=_.rz(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.Ec.Object.defineProperties(U$.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var e,t;return((e=this.data)==null?void 0:(t=e.imageRenderer)==null?void 0:t.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var e;return(e=_.l(this.data.imageRenderer[this.selectedThumbnailIndex],iig))==null?void 0:e.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t,b,m=(b=(e=this.data)==null?void 0:(t=e.imageRenderer)==null?void 0:t.map(function(q,Q){return{productDetailsThumbnailRenderer:Object.assign({},_.l(q,iig),{index:Q,isSelected:Q===W.selectedThumbnailIndex})}}))!=null?b:[];
return Object.assign({},this.data,{imageRenderer:m})}}});
U$.prototype.updateOffset=U$.prototype.updateOffset;U$.prototype.dataChanged=U$.prototype.dataChanged;U$.prototype.onThumbnailSelected=U$.prototype.onThumbnailSelected;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.WC.YtdHorizontalListBehavior),_.Y("design:type",Object)],U$.prototype,"ytdHorizontalListBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],U$.prototype,"componentBehavior",void 0);_.P([_.y([_.qM.YtActionHandlerBehavior]),_.Y("design:type",Object)],U$.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],U$.prototype,"data",void 0);_.P([_.J({value:"$.items.children"}),_.Y("design:type",String)],U$.prototype,"itemsPath",void 0);_.P([_.J({value:3}),_.Y("design:type",Number)],U$.prototype,"initialCount",void 0);
_.P([_.vG("#items"),_.Y("design:type",Object)],U$.prototype,"items",void 0);_.P([_.J(),_.Y("design:type",Object)],U$.prototype,"selectedThumbnailIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],U$.prototype,"hoverThumbnail",void 0);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],U$.prototype,"showThumbnails",null);
_.P([_.wz("ytd-product-details-thumbnail-renderer-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Number]),_.Y("design:returntype")],U$.prototype,"onThumbnailSelected",null);_.P([_.T("data","selectedThumbnailIndex","hoverThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U$.prototype,"thumbnailDetails",null);_.P([_.T("data","selectedThumbnailIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],U$.prototype,"populatedData",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U$.prototype,"dataChanged",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U$.prototype,"updateOffset",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],U$);
_.H(U$,"ytd-product-details-image-carousel-renderer",function(){if(S_u!==void 0)return S_u;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return S_u=W},{mode:_.Qe("kevlar_poly_si_batch_j079")?1:2});var ojB;var LE=function(){return _.O.apply(this,arguments)||this};
_.Z(LE,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],LE.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],LE.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],LE);
_.H(LE,"ytd-product-details-offer-renderer",function(){if(ojB!==void 0)return ojB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ojB=W},{mode:1});var lkl;var E$=function(){var W=_.O.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.Z(E$,_.O);E$.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,e=_.l((W=this.data)==null?void 0:W.viewOffersButton,_.Md);e&&this.ytRendererBehavior.logExplicitClick(e)};
E$.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Ec.Object.defineProperties(E$.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return(t=_.l((W=this.data)==null?void 0:(e=W.offers)==null?void 0:e[0],LAu))==null?void 0:(b=t.offerData)==null?void 0:b.vendorLogoUrl}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],E$.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],E$.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],E$.prototype,"isOffersHidden",void 0);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],E$.prototype,"firstOfferVendorLogoUrl",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],E$);
_.H(E$,"ytd-product-details-offers-container-renderer",function(){if(lkl!==void 0)return lkl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lkl=W},{mode:1});var ZWU;var $Fl;var Au=function(){return _.O.apply(this,arguments)||this};
_.Z(Au,_.O);Au.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Au.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Qx(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Au.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Qx(this,"ytd-product-details-variant-image-unselect")};
_.Ec.Object.defineProperties(Au.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,e;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(e=this.data)==null?void 0:e.variantOptionAccessibilityLabel}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Au.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Au.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],Au.prototype,"displayType",void 0);
_.P([_.T("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Au.prototype,"isImageButton",null);_.P([_.T("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Au.prototype,"isPillButton",null);_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Au.prototype,"isActive",null);
_.P([_.T("data"),_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Au.prototype,"isUnavailable",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Au.prototype,"thumbnailDetails",null);_.P([_.T("isUnavailable","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Au.prototype,"accessibilityLabel",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Au);
_.H(Au,"ytd-product-details-variant-option-renderer",function(){if($Fl!==void 0)return $Fl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $Fl=W},{mode:1});var k5u;var Nj=function(){var W=_.O.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(e){e=e===void 0?!1:e;W.variantsExpanded||W.showOptions()||!e||(W.variantsExpanded=!0);if(W.variantsExpanded){e=_.R(W.items.children);for(var t=e.next();!t.done;t=e.next())t.value.hidden=!1}W.initialized=!0};
return W};
_.Z(Nj,_.O);_.r=Nj.prototype;_.r.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.r.showOptions=function(){for(var W=_.R(this.items.children),e=W.next();!e.done;e=W.next())e.value.hidden=!0;var t=this.container.getBoundingClientRect().width,b=0,m=W=0;e=!1;for(var q=_.R(this.items.children),Q=q.next();!Q.done;Q=q.next()){Q=Q.value;Q.hidden=!1;var X=Q.getBoundingClientRect().width;if(b+X<t)b+=X;else if(++m<2)b=X;else break;W+=1;Q.hasAttribute("is-active")&&(e=!0)}for(t=W;t<this.items.children.length;t++)this.items.children[t].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return e};
_.r.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Qy(this.computeVariantsDebouncer,_.E5.after(100),this.computeVariants)};
_.r.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.r.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Ec.Object.defineProperties(Nj.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.variantOptionRenderers)==null?void 0:e.find(function(q){return _.l(q,zhS).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),b,m;
return(m=(b=_.l(t,zhS))==null?void 0:b.name)!=null?m:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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"}}}});
Nj.prototype.debouncedComputeVariants=Nj.prototype.debouncedComputeVariants;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Nj.prototype,"componentBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],Nj.prototype,"ironResizableBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Nj.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Nj.prototype,"variantsExpanded",void 0);_.P([_.J(),_.Y("design:type",Object)],Nj.prototype,"hideShowMoreLessVariantButton",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Nj.prototype,"initialized",void 0);_.P([_.vG("#items"),_.Y("design:type",HTMLDivElement)],Nj.prototype,"items",void 0);_.P([_.vG("#container"),_.Y("design:type",HTMLDivElement)],Nj.prototype,"container",void 0);
_.P([_.vG("#more-variants-button"),_.Y("design:type",HTMLElement)],Nj.prototype,"moreVariantsButton",void 0);_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Nj.prototype,"selectedOptionName",null);_.P([_.ul("data","variantsExpanded"),_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nj.prototype,"debouncedComputeVariants",null);
_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Nj.prototype,"displayType",null);_.P([_.T("displayType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nj.prototype,"variantItemsClassname",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Nj);
_.H(Nj,"ytd-product-details-variant-renderer",function(){if(k5u!==void 0)return k5u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return k5u=W},{mode:1});var d4=function(){return _.O.apply(this,arguments)||this};
_.Z(d4,_.O);
d4.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"}}}};
_.Ec.Object.defineProperties(d4.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(e=_.l((W=this.data)==null?void 0:W.offersContainerRenderer,UTB))==null?void 0:e.offers;return t!==void 0&&(t==null?void 0:t.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 W,e,t;return((t=(W=this.data)==null?void 0:(e=W.variants)==null?void 0:e.map(function(b){var m,q;b=(q=(m=_.l(b,YMg))==null?void 0:m.variantOptionRenderers)==null?void 0:q.find(function(X){var I;return((I=_.l(X,zhS))==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Q;return(Q=_.l(b,zhS))==null?void 0:Q.name}).filter(function(b){return typeof b==="string"}))!=null?t:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b=(e=_.l((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,EHC))==null?void 0:(t=e.reportButton)==null?void 0:t.buttonRenderer;if(b)return{text:b.text,command:b.command,icon:{iconType:"FLAG"},accessibilityData:b.accessibilityData,trackingParams:b.trackingParams,loggingDirectives:b.loggingDirectives}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],d4.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],d4.prototype,"data",void 0);_.P([_.vG("#image-carousel-renderer"),_.Y("design:type",Object)],d4.prototype,"imageCarouselRenderer",void 0);
_.P([_.vG("#hero-offer-renderer"),_.Y("design:type",Object)],d4.prototype,"productDetailsHeroOfferRenderer",void 0);_.P([_.vG("#variants"),_.Y("design:type",Object)],d4.prototype,"productDetailsVariantRenderer",void 0);_.P([_.vG("#offers"),_.Y("design:type",Object)],d4.prototype,"productDetailsOffersContainerRenderer",void 0);_.P([_.vG("#description-renderer"),_.Y("design:type",Object)],d4.prototype,"productDetailsDescriptionRenderer",void 0);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showPurchaseData",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showHeroOfferRenderer",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showBrandText",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showOffers",null);
_.P([_.T("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showBuySeparator",null);_.P([_.T("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],d4.prototype,"showBuyCard",null);_.P([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],d4.prototype,"selectedVariantsText",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d4.prototype,"shoppingReportingButtonData",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],d4);
_.H(d4,"ytd-product-details-renderer",function(){if(ZWU!==void 0)return ZWU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZWU=W},{mode:1});var ppU;var y4l;var j6g;var WI=function(){return _.O.apply(this,arguments)||this};
_.Z(WI,_.O);WI.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Ec.Object.defineProperties(WI.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],WI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],WI.prototype,"formattedAmount",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],WI.prototype,"ariaLabel",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WI.prototype,"vcBalanceWidgetStyle",null);_.P([_.gz({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],WI);
_.H(WI,"yt-vc-balance-renderer",function(){if(j6g===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;y4l===void 0&&(y4l=document.createElement("template"));var b=y4l;t.call(e,b.content.cloneNode(!0),W.content.firstChild);j6g=W}W=j6g;return W},{mode:2});_.xD("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var eq=function(){return _.O.apply(this,arguments)||this};
_.Z(eq,_.O);_.Ec.Object.defineProperties(eq.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:""}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],eq.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],eq.prototype,"data",void 0);_.P([_.J({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,e){return _.I1(W.entities,"vcBalanceEntity",e)}}),
_.Y("design:type",Object)],eq.prototype,"vcBalanceEntity",void 0);_.P([_.T("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],eq.prototype,"formattedAmount",null);_.P([_.T("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],eq.prototype,"vcBalanceAriaLabel",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],eq);
_.H(eq,"ytd-vc-balance-renderer",function(){if(ppU!==void 0)return ppU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ppU=W},{mode:1});var C2M;var tP=function(){var W=_.O.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.Z(tP,_.O);tP.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
tP.prototype.reset=function(){this.hostElement.style.opacity=""};
tP.prototype.close=function(){var W=this;return _.F(function(e){if(e.nextAddress==1)return _.a(e,W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.u8(e)})};
tP.prototype.rotationChanged=tP.prototype.rotationChanged;_.P([_.J(),_.Y("design:type",Object)],tP.prototype,"rotation",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],tP.prototype,"isReloading",void 0);_.P([_.vG("#icon"),_.Y("design:type",HTMLElement)],tP.prototype,"icon",void 0);_.P([_.ul("rotation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tP.prototype,"rotationChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-refresh"})],tP);
_.H(tP,"ytd-refresh",function(){if(C2M!==void 0)return C2M;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return C2M=W},{mode:1});var njM;var bY=function(){return _.O.apply(this,arguments)||this};
_.Z(bY,_.O);bY.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"}}}};
bY.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var e=_.rd(this.data.banner.thumbnails,this.hostElement.clientWidth);e&&(e.indexOf("//")===0&&(e="https:"+e),this.hasBannerArt=!0,_.XB(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+e+")"}))}this.hasBannerArt!==W&&_.rz(this.hostElement).querySelector("#header").fire("iron-resize")}};
bY.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
bY.prototype.dataChanged=bY.prototype.dataChanged;_.P([_.y(dTg),_.Y("design:type",Object)],bY.prototype,"ytdTabbedHeaderBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.xO),_.Y("design:type",Object)],bY.prototype,"ytdGridStateAwareBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],bY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],bY.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],bY.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],bY.prototype,"selected",void 0);_.P([_.J(),_.Y("design:type",Boolean)],bY.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bY.prototype,"hasBannerArt",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bY.prototype,"dataChanged",null);_.P([_.h({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],bY);
_.H(bY,"ytd-interactive-tabbed-header-renderer",function(){if(njM!==void 0)return njM;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return njM=W},{mode:1});var fkB;var mB=function(){return _.O.apply(this,arguments)||this};
_.Z(mB,_.O);mB.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mB.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mB.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Y("design:type",String)],mB.prototype,"actionsAlignment",void 0);_.P([_.h({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],mB);
_.H(mB,"ytd-page-footer-renderer",function(){if(fkB!==void 0)return fkB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fkB=W},{mode:1});var gjM;var ThS;var rw=function(){var W=_.O.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.Z(rw,_.O);_.r=rw.prototype;_.r.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.r.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.r.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var e,t;return!!(W==null?0:(e=W.formField)==null?0:(t=e.textInputFormFieldRenderer)==null?0:t.isMultiline)};
_.r.computeTextDisplayed=function(W,e){if(W)return W;if(e)return e};
_.r.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.r.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.zq(W));else{var e;((e=this.data)==null?0:e.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.K7("inline-form-changed",this.data));this.isEditing=!1}};
_.r.onCancel=function(){var W=_.Ub(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
rw.prototype.onKeydown=rw.prototype.onKeydown;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],rw.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],rw.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],rw.prototype,"isEditing",void 0);_.P([_.J(),_.Y("design:type",Object)],rw.prototype,"useSlot",void 0);_.P([_.J(),_.Y("design:type",Boolean)],rw.prototype,"multilineOverride",void 0);_.P([_.J(),_.Y("design:type",Boolean)],rw.prototype,"enableOverlayTheme",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Y("design:type",String)],rw.prototype,"componentStyle",void 0);
_.P([_.J({computed:"computeisMultiline(data)"}),_.Y("design:type",Object)],rw.prototype,"isMultiline",void 0);_.P([_.vG("#text-form"),_.Y("design:type",Object)],rw.prototype,"textForm",void 0);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],rw.prototype,"onKeydown",null);_.P([_.h({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],rw);
_.H(rw,"ytd-inline-form-renderer",function(){if(ThS!==void 0)return ThS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ThS=W},{mode:1});var J4E;var q8=function(){var W=_.O.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.Z(q8,_.O);q8.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
q8.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,e,t,b,m=(W=this.data)==null?void 0:(e=W.dropdown)==null?void 0:(t=e.dropdownRenderer)==null?void 0:(b=t.entries)==null?void 0:b.map(function(X){return X.privacyDropdownItemRenderer});
W=_.R(m!=null?m:[]);for(e=W.next();!e.done;e=W.next())if((e=e.value)&&e.int32Value===this.selectedValue){this.selectedItemMessage=e.itemMessage;break}}else this.selectedItemMessage=void 0;var q;(q=this.onValueChanged)==null||q.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Q;(Q=this.data)!=null&&Q.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
q8.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
q8.prototype.selectedValueChanged=q8.prototype.selectedValueChanged;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],q8.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],q8.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],q8.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],q8.prototype,"theme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Number)],q8.prototype,"selectedValue",void 0);_.P([_.J(),_.Y("design:type",Function)],q8.prototype,"onValueChanged",void 0);
_.P([_.BG("selectedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q8.prototype,"selectedValueChanged",null);_.P([_.h({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],q8);
_.H(q8,"ytd-dropdown-form-field-renderer",function(){if(J4E!==void 0)return J4E;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return J4E=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var xFg;var RI=function(){return _.O.apply(this,arguments)||this};
_.Z(RI,_.O);_.Ec.Object.defineProperties(RI.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],e=_.R(this.data||[]),t=e.next();!t.done;t=e.next())(t=_.l(t.value,ARQ))&&W.push(t);return W}}});
_.P([_.J(),_.Y("design:type",Array)],RI.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RI.prototype,"byline",null);_.P([_.h({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],RI);
_.H(RI,"ytd-playlist-byline-renderer",function(){if(xFg!==void 0)return xFg;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xFg=W},{mode:1});var OWC;var QW=function(){var W=_.O.apply(this,arguments)||this;W.rtlBullet=_.S("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.S("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.Z(QW,_.O);_.r=QW.prototype;_.r.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"}}}}};
_.r.attached=function(){};
_.r.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.r.onYtNavigate=function(W,e){if(e&&e.actions&&e.actions.indexOf("shuffle")>-1){W=_.ee().resolve(_.Oj);var t=e.tempData||{};t.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);e.tempData=t;W.isShuffleNextPlaylist=!0}};
_.r.onUpdatePlaylistAction=function(W){var e;W=(e=_.l(W,_.k9k))==null?void 0:e.updatedRenderer;if(e=_.l(W,nE))this.data=e};
_.r.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.r.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var e=0;e<W.thumbnailOverlays.length;e++){var t=void 0;if((t=W.thumbnailOverlays[e])==null?0:t.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
QW.prototype.onYtNavigate=QW.prototype.onYtNavigate;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],QW.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],QW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QW.prototype,"rtlBullet",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Y("design:type",String)],QW.prototype,"styleType",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],QW.prototype,"thumbnailWidth",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],QW.prototype,"modern",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Y("design:type",Boolean)],QW.prototype,"isCustomThumbnail",void 0);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],QW.prototype,"onYtNavigate",null);_.P([_.h({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],QW);
_.H(QW,"ytd-playlist-sidebar-primary-info-renderer",function(){if(OWC!==void 0)return OWC;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return OWC=W},{mode:1});var M91;var F2=function(){return _.O.apply(this,arguments)||this};
_.Z(F2,_.O);F2.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
F2.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],F2.prototype,"data",void 0);_.P([_.h({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],F2);
_.H(F2,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(M91!==void 0)return M91;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return M91=W},{mode:1});var s6l;var X2=function(){var W=_.O.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.Z(X2,_.O);_.r=X2.prototype;_.r.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.r.dataChanged=function(){this.data&&_.KF(_.rz(this.text),_.jRU(_.fgU,_.Ub(this.data.text||null)))};
_.r.computeAutoScrollEnabled=function(W,e){return W&&!e};
_.r.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.r.toggleOnTap=function(){this.expanded=!this.expanded};
X2.prototype.expandedChanged=X2.prototype.expandedChanged;X2.prototype.dataChanged=X2.prototype.dataChanged;_.P([_.y(_.Kdl),_.Y("design:type",Object)],X2.prototype,"ytdAutoScrollBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],X2.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],X2.prototype,"expanded",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],X2.prototype,"isCompact",void 0);_.P([_.J({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Y("design:type",Boolean)],X2.prototype,"autoScrollEnabled",void 0);_.P([_.vG("#text"),_.Y("design:type",Object)],X2.prototype,"text",void 0);_.P([_.vG("#expander-icon"),_.Y("design:type",Object)],X2.prototype,"expanderIcon",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X2.prototype,"dataChanged",null);_.P([_.ul("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X2.prototype,"expandedChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],X2);
_.H(X2,"ytd-channel-legal-info-renderer",function(){if(s6l!==void 0)return s6l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return s6l=W},{mode:1});var hM9;var HWC=_.Gv("DOWNLOAD",{},"Download"),K0E=_.Gv("DOWNLOADING",{},"Downloading"),P2C=_.Gv("DOWNLOADED",{},"Downloaded"),II=function(){var W=_.O.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.Z(II,_.O);_.r=II.prototype;_.r.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.r.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.Ob(_.Eb().getState(),this.playlistId),this.updateButtonState(W))};
_.r.computePlaylistId=function(W){return W};
_.r.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.r.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==K0E||!_.Bm(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=HWC;var e="OFFLINE_DOWNLOAD";var t="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=P2C;e="OFFLINE_PIN";t="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=K0E;e="OFFLINE_DOWNLOADING_ZERO";t="ACTION_REMOVE_WITH_PROMPT";
break;default:W=HWC,e="OFFLINE_DOWNLOAD",t="ACTION_ADD"}var b=Object.assign({},this.data);b.tooltip=W;b.accessibilityData={accessibilityData:{label:W}};b.icon={iconType:e};b.size="SIZE_DEFAULT";_.l(b.command,_.vS)&&(_.l(b.command,_.vS).action=t);this.set("data",b)}};
_.r.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var e;W!==((e=this.data.icon)==null?void 0:e.iconType)&&(e=Object.assign({},this.data),e.tooltip=K0E,e.accessibilityData={accessibilityData:{label:K0E}},e.icon={iconType:W},_.l(e.command,_.vS)&&(_.l(e.command,_.vS).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",e))}};
II.prototype.updateProgress=II.prototype.updateProgress;II.prototype.onTransferStateChanged=II.prototype.onTransferStateChanged;II.prototype.dataChanged=II.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],II.prototype,"ytdReduxBehavior",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"forceIconButton",void 0);
_.P([_.J({value:!0}),_.Y("design:type",Boolean)],II.prototype,"forceIconOnly",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"overrides",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"buttonTooltipPosition",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"styleActionButton",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"disableTextTransform",void 0);
_.P([_.J({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Y("design:type",String)],II.prototype,"playlistId",void 0);_.P([_.J(),_.Y("design:type",Object)],II.prototype,"data",void 0);_.P([_.J({selector:_.$d9,selectorArgs:["playlistId"]}),_.Y("design:type",Object)],II.prototype,"downloadProgress",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],II.prototype,"isDownloadComplete",void 0);
_.P([_.J({selector:_.Ob,selectorArgs:["playlistId"]}),_.Y("design:type",String)],II.prototype,"transferState",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],II.prototype,"showTooltips",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],II.prototype,"sendCommandWhenDisabled",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],II.prototype,"disabled",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],II.prototype,"dataChanged",null);_.P([_.BG("transferState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],II.prototype,"onTransferStateChanged",null);_.P([_.BG("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],II.prototype,"updateProgress",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],II);
_.H(II,"ytd-download-playlist-button-renderer",function(){if(hM9!==void 0)return hM9;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hM9=W},{mode:1});var V9S;_.mM(_.prP,"thumbnail-overlay-button-view-model",{props:{data:_.Eu,lockupExperiments:_.Eu}});var aI=function(){var W=_.O.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.Z(aI,_.O);aI.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?$T1(W.thumbnail)==="SQUARE":!1};
aI.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?$T1(W.thumbnail)==="VERTICAL":!1};
aI.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Y("design:type",Object)],aI.prototype,"isSquare",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Y("design:type",Object)],aI.prototype,"isVertical",void 0);
_.P([_.J(),_.Y("design:type",Object)],aI.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],aI);
_.H(aI,"ytd-hero-playlist-thumbnail-renderer",function(){if(V9S!==void 0)return V9S;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return V9S=W},{mode:1});var ww=function(){var W=_.O.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.Z(ww,_.O);_.r=ww.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.ee();var W;(W=_.ee().resolve(_.Wi(_.VM)))!=null&&(W.headerElement=this.hostElement)};
_.r.detached=function(){var W;(W=_.ee().resolve(_.Wi(_.VM)))!=null&&(W.headerElement=void 0)};
_.r.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.r.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.r.gradientColorToLinearGradientStop=function(W){var e=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return e?_.h8(e)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.r.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.r.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.onUpdatePlaylistName=function(W){var e=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.Uc(this,function(){var t;(t=e.editableTitle)==null||t.resize()})};
_.r.onUpdatePlaylistDescription=function(W){var e=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.Uc(this,function(){var t;(t=e.editableDescriptionInlineExpander)==null||t.resize()})};
_.r.getCinematicData=function(W){return _.l(W==null?void 0:W.cinematicContainer,_.$1)};
_.Ec.Object.defineProperties(ww.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 W,e=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?e==null?void 0:e.darkThemeBackgroundColor:e==null?void 0:e.lightThemeBackgroundColor)?"background-color:"+_.sr(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.l((W=this.data)==null?void 0:W.descriptionForm,V7U)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t,b;return"background:linear-gradient(to bottom, "+(((b=(e=this.getCinematicData(this.data))==null?void 0:(t=e.gradientColorConfig)==null?void 0:t.map(function(m){return W.gradientColorToLinearGradientStop(m)}))==null?void 0:b.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.Ub((W=this.data)==null?void 0:W.descriptionTapText)}}});
ww.prototype.onUpdateHeader=ww.prototype.onUpdateHeader;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ww.prototype,"actionHandlerBehavior",void 0);_.P([_.vG("#description-inline-expander"),_.Y("design:type",Object)],ww.prototype,"descriptionInlineExpander",void 0);
_.P([_.vG("#editable-description-inline-expander"),_.Y("design:type",Object)],ww.prototype,"editableDescriptionInlineExpander",void 0);_.P([_.J(),_.Y("design:type",Object)],ww.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ww.prototype,"isUltraWide",void 0);_.P([_.vG("#editable-title-display"),_.Y("design:type",Object)],ww.prototype,"editableTitle",void 0);_.P([_.T("isUltraWide"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"maxDescriptionLines",null);
_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"noCinematicData",null);_.P([_.wz("yt-new-playlist-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ww.prototype,"onUpdateHeader",null);_.P([_.T("data","isDarkTheme"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"backgroundStyle",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"descriptionFormData",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"getDropdownTheme",null);_.P([_.T("data","isDarkTheme"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ww.prototype,"gradientStyle",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ww.prototype,"descriptionTapText",null);
_.P([_.h({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ww);
_.H(ww,"ytd-playlist-header-renderer",function(){if(gjM!==void 0)return gjM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gjM=W},{mode:_.Qe("kevlar_poly_si_batch_j078")?1:2});var iWU;var Y_E;var uY=function(){return _.O.apply(this,arguments)||this};
_.Z(uY,_.O);uY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uY.prototype,"data",void 0);_.P([_.h({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],uY);
_.H(uY,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Y_E!==void 0)return Y_E;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Y_E=W},{mode:1});var cI=function(){return _.O.apply(this,arguments)||this};
_.Z(cI,_.O);
cI.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}}}}};
cI.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var e=0;e<W.items.length;e++)if(_.l(W.items[e],nE)){var t=void 0;return((t=_.l(W.items[e],nE))==null?void 0:t.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cI.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Y("design:type",Boolean)],cI.prototype,"usePremiumShowStyle",void 0);
_.P([_.h({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],cI);
_.H(cI,"ytd-playlist-sidebar-renderer",function(){if(iWU!==void 0)return iWU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return iWU=W},{mode:1});var zMl;var UFC;var L0S=function(W,e,t,b,m,q,Q,X){this.minWidth=W;this.minHeight=e;this.recommendedWidth=t;this.recommendedHeight=b;this.JSC$19547_maxFileSize=m;this.title=q;this.bannerGalleryTitle=Q;this.channelId=X;this.picker_=null;W=_.BqG("yt-banner");e=W.addView;t=(new gHC("youtubebanner")).addUploadMetadata("silo_id","19");t.opts.ytMaxFileSize=this.JSC$19547_maxFileSize;b=this.recommendedHeight;t.opts.ytRecWidth=this.recommendedWidth;t.opts.ytRecHeight=b;e.call(W,t);W.addView(new _.pH);e=W.addView;t=new _.pH;
t.opts.type="ytbanner";e.call(W,t.JSC$8119_setLabel(this.bannerGalleryTitle));e=W.setTitle(this.title).setSize(1E3);e.urlParamMap_.set("thumbs","orig");t=this.minWidth;b=this.minHeight;if(isNaN(t)||isNaN(b))throw Error("lb`"+t+"`"+b);e.urlParamMap_.set("minSize",t+"x"+b);e.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
L0S.prototype.open=function(){var W=this;return new _.c3(function(e,t){_.FJS(W.builder_,function(b){b.action=="picked"?e(b):b.action=="cancel"&&t(Error("Yl"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
L0S.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Eju=function(W){this.channelId=W},A4g=function(W,e){var t="";
e.viewToken&&(t=e.viewToken[2].type);var b=e.docs[0];e=b.crop;W={channel_id:W.channelId,fife_url:b.thumbnails[0].url,photo_id:b.id,is_gallery_image:t=="ytbanner"};e&&(W.crop_top=e.top,W.crop_right=e.right,W.crop_bottom=e.bottom,W.crop_left=e.left);return _.VlG("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:W})};var vI=function(){var W=_.O.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.Z(vI,_.O);_.r=vI.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.r.detached=function(){this.picker&&this.picker.dispose()};
_.r.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.r.computeAriaLabel=function(W){return W};
_.r.onTap=function(){var W=this,e;if((e=this.data)==null||!e.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new L0S(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 t;(t=this.picker)==null||t.open().then(function(b){W.handleBannerPicked(b)},function(){})}};
_.r.handleBannerPicked=function(W){var e=this;this.uploader||(this.uploader=new Eju(this.data.channelId||""));this.message=this.data.uploadingText;A4g(this.uploader,W).then(function(t){e.handleBannerUploadSucceeded(t)},function(t){e.handleBannerUploadFailed(t)})};
_.r.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.q2(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.r.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
vI.prototype.dataChanged=vI.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],vI.prototype,"componentBehavior",void 0);_.P([_.y(_.JX),_.Y("design:type",Object)],vI.prototype,"ironButtonState",void 0);_.P([_.J(),_.Y("design:type",Object)],vI.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Y("design:type",Object)],vI.prototype,"ariaLabel",void 0);
_.P([_.J(),_.Y("design:type",Object)],vI.prototype,"message",void 0);_.P([_.J(),_.Y("design:type",Object)],vI.prototype,"picker",void 0);_.P([_.J(),_.Y("design:type",Object)],vI.prototype,"uploader",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vI.prototype,"dataChanged",null);_.P([_.h({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],vI);
_.H(vI,"ytd-channel-banner-editor-renderer",function(){if(UFC!==void 0)return UFC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return UFC=W},{mode:1});var NhM;var dFw=_.Nw(["#"]),Gj=function(){return _.O.apply(this,arguments)||this};
_.Z(Gj,_.O);Gj.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.kN(dFw)};
Gj.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.Aav(_.k6(),W.targetId,this.moreIcon)};
Gj.prototype.dataChanged=Gj.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Gj.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gj.prototype,"data",void 0);_.P([_.vG("#more-icon"),_.Y("design:type",Object)],Gj.prototype,"moreIcon",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gj.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Gj);
_.H(Gj,"ytd-channel-tagline-renderer",function(){if(NhM!==void 0)return NhM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NhM=W},{mode:1});var W9u;var De=function(){return _.O.apply(this,arguments)||this};
_.Z(De,_.O);_.r=De.prototype;_.r.ready=function(){var W=this;_.rz(this.hostElement).querySelector("#form").addEventListener("submit",function(e){W.onSubmit(e)})};
_.r.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.r.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.r.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.r.openOnClickHandler=function(){this.input.focus()};
_.r.onSubmit=function(W){W.preventDefault();return!1};
_.r.submitOnEnterKeyUp=function(W){var e;if(W.keyCode===13&&((e=this.data)==null?0:e.expandedText)){W=this.data.endpoint;e=_.kJ.unsafeClone(W);var t;((t=_.l(e==null?void 0:e.commandMetadata,_.ez))==null?0:t.url)?(_.l(e.commandMetadata,_.ez).url=_.Mq(_.l(e.commandMetadata,_.ez).url,"query",this.data.expandedText),_.l(e,_.Sf)&&(_.l(e,_.Sf).query=this.data.expandedText),_.q2(this.hostElement,"yt-navigate",{endpoint:e,tempData:{disableCache:!0}})):(t=new _.o_("Error: Trying to navigate to an endpoint without url",
W),_.gQ(t))}};
_.r.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
_.Ec.Object.defineProperties(De.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
De.prototype.onDataChanged=De.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.DYE),_.Y("design:type",Object)],De.prototype,"ytdExpandableInputBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],De.prototype,"data",void 0);_.P([_.vG("#input"),_.Y("design:type",Object)],De.prototype,"input",void 0);_.P([_.vG("#icon-button"),_.Y("design:type",HTMLElement)],De.prototype,"iconButton",void 0);
_.P([_.J(),_.Y("design:type",String),_.Y("design:paramtypes",[])],De.prototype,"searchIcon",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],De.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],De);
var k89=_.Ro()(De,"ytd-expandable-tab-renderer",function(){if(W9u===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);W9u=W}W=W9u;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var etl;var Sq=function(){var W=_.O.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.Gv("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.Z(Sq,_.O);Sq.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Sq.prototype.computeHref=function(W){var e;return((e=_.l(W,_.KJ))==null?0:e.url)?this.componentBehavior.computeHref_(W):null};
Sq.prototype.onTap=function(){var W,e;(W=this.data)==null||!W.editAvatarServiceEndpoint||((e=_.l(this.data.editAvatarServiceEndpoint,_.KJ))==null?0:e.url)||_.ee().resolve(_.tQ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.P([_.y(_.JX),_.Y("design:type",Object)],Sq.prototype,"ironButtonState",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Sq.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Sq.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Sq.prototype,"avatarSize",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Sq.prototype,"ariaLabel",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Sq);
_.H(Sq,"ytd-channel-avatar-editor",function(){if(etl!==void 0)return etl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return etl=W},{mode:1});var t6$=_.NN(function(W){var e=W.data;var t=W.noPadding;var b=W.enableBanner;var m=W.cinematicContainerTopbarOffset;var q=W.allowCinematicContainerOverflow;var Q=W.displayAsSidebar;W=W.className;_.nh(function(){e().tagManagerId&&(_.CT(e().tagManagerId,_.Ot("GL")),fXl(e().tagManagerId))},"xVTVTe");
var X=_.D_(yRM,function(){return e().pageHeaderEntityKey});
return _.w("yt-page-header-renderer",{class:_.ve("page-header-renderer-wiz",W)},_.w(_.nU,{data:function(){var I;return((I=X())==null?0:I.header)?X().header:(Q==null?0:Q())&&e().sidebarContent?e().sidebarContent:e().content}},{pageHeaderViewModel:function(I){return _.w(_.iRU,{data:I.data,
noPadding:t,enableBanner:b,cinematicContainerTopbarOffset:m,allowCinematicContainerOverflow:q,displayAsSidebar:function(){return(Q==null?void 0:Q())&&e().enableSidebarView}})}}))},"Ki");
t6$.idomCompat=!0;_.mM(t6$,"yt-page-header-renderer",{props:{data:_.Eu,noPadding:_.Eu,enableBanner:_.Eu,cinematicContainerTopbarOffset:_.Eu,allowCinematicContainerOverflow:_.Eu,displayAsSidebar:_.Eu,className:_.Eu}});_.mM(_.P5h,"yt-image-banner-view-model",{props:{data:_.Eu,isPositionRelative:_.Eu}});_.mM(_.RvU,"yt-tab-group-shape",{props:{shape:_.Eu}});var BI=function(){var W=_.O.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(e){return prT(e,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.Z(BI,_.O);_.r=BI.prototype;_.r.computeHeaderDisabled=function(W,e){return e||!W||this.tabsHidden};
_.r.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.r.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.r.computeImageBannerViewModel=function(){var W,e;return _.l((e=_.l((W=this.data)==null?void 0:W.content,_.Dde))==null?void 0:e.banner,_.wzB)};
_.r.computeHasCinematicContainer=function(){var W,e;return!((e=_.l((W=this.data)==null?void 0:W.content,_.Dde))==null||!e.background)};
_.r.handleHeaderResize=function(){var W=_.rz(this.hostElement).querySelector("#header");W&&_.q2(W,"iron-resize")};
_.r.handleInsertTabCommand=function(W){var e=_.l(W,NH$);e&&(e.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(t){return t.tabRenderer&&t.tabRenderer.tabIdentifier===e.tabIdentifier})||this.splice("tabs",e.tabIndex||-1,0,e.tab))};
_.r.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.r.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.XB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.r.observerRichGridSlimItemsPerRow=function(){_.XB(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.r.updateCssVars=function(){this.richGridItemsPerRow&&_.XB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.mn("rich_grid_max_item_width",500))+16)-16+"px"})};
_.r.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.XB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.r.onDataChanged=function(){this.handleHeaderResize()};
_.r.onWindowResize=function(){this.handleHeaderResize()};
_.r.onFocusedChanged=function(W){(W=_.Er(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.r.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.r.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Ec.Object.defineProperties(BI.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:CuB(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
BI.prototype.onDataChanged=BI.prototype.onDataChanged;BI.prototype.updateCssVarsForResponsiveGrid=BI.prototype.updateCssVarsForResponsiveGrid;BI.prototype.updateCssVars=BI.prototype.updateCssVars;BI.prototype.observerRichGridSlimItemsPerRow=BI.prototype.observerRichGridSlimItemsPerRow;BI.prototype.observerRichGridItemsPerRow=BI.prototype.observerRichGridItemsPerRow;_.P([_.y(_.xO),_.Y("design:type",Object)],BI.prototype,"ytdGridStateAwareBehavior",void 0);
_.P([_.y(dTg),_.Y("design:type",Object)],BI.prototype,"ytdTabbedHeaderBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],BI.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],BI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],BI.prototype,"ytdReduxBehavior",void 0);_.P([_.vG("#tabs"),_.Y("design:type",Object)],BI.prototype,"tabsElement",void 0);_.P([_.J(),_.Y("design:type",Array)],BI.prototype,"tabs",void 0);_.P([_.J(),_.Y("design:type",Object)],BI.prototype,"expandableCustomTabRenderable",void 0);_.P([_.T("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BI.prototype,"tabGroupShape",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BI.prototype,"isRichGrid",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BI.prototype,"isConstrainedList",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Object)],BI.prototype,"richGridMiniMode",void 0);_.P([_.J({selector:function(W){return W.ui.richGridStyle}}),
_.Y("design:type",Object)],BI.prototype,"richGridStyle",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Y("design:type",Object)],BI.prototype,"isRichGridShorts",void 0);_.P([_.J({selector:_.fG}),_.Y("design:type",Number)],BI.prototype,"richGridItemsPerRow",void 0);_.P([_.J({selector:function(W){return W.ui.richGridContainerWidth}}),
_.Y("design:type",Number)],BI.prototype,"richGridContainerWidth",void 0);_.P([_.J({selector:_.Ih2}),_.Y("design:type",Number)],BI.prototype,"richGridSlimItemsPerRow",void 0);_.P([_.J(),_.Y("design:type",Object)],BI.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BI.prototype,"responsiveSizing",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],BI.prototype,"disableGridStateAware",void 0);
_.P([_.J({computed:"computeImageBannerViewModel(data)"}),_.Y("design:type",Object)],BI.prototype,"imageBannerViewModel",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Y("design:type",Boolean)],BI.prototype,"hasCinematicContainer",void 0);_.P([_.J({selector:_.mYB,reflectToAttribute:!0}),_.Y("design:type",Boolean)],BI.prototype,"guideIsVisibleButNotPersistent",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BI.prototype,"hasBanner",null);_.P([_.J({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BI.prototype,"hasInsetBanner",null);_.P([_.J({computed:"computeTabsHidden(tabs)",value:!0}),_.Y("design:type",Boolean)],BI.prototype,"tabsHidden",void 0);
_.P([_.ul("richGridItemsPerRow","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"observerRichGridItemsPerRow",null);_.P([_.ul("richGridSlimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"observerRichGridSlimItemsPerRow",null);
_.P([_.ul("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"updateCssVars",null);_.P([_.ul("richGridContainerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"updateCssVarsForResponsiveGrid",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BI.prototype,"onDataChanged",null);
_.P([_.h({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],BI);
_.H(BI,"ytd-tabbed-page-header",function(){if(zMl!==void 0)return zMl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return zMl=W},{mode:1});var b9l;var oI=function(){return _.O.apply(this,arguments)||this};
_.Z(oI,_.O);oI.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.XB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Ec.Object.defineProperties(oI.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,e;return this.componentBehavior.computeIcon_(((e=_.l((W=this.data)==null?void 0:W.badge,_.q8y))==null?void 0:e.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.badge,_.q8y))==null?void 0:e.label}}});
oI.prototype.observerRichGridItemsPerRow=oI.prototype.observerRichGridItemsPerRow;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oI.prototype,"componentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],oI.prototype,"ytdReduxBehavior",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.nG}),_.Y("design:type",Boolean)],oI.prototype,"richGridMiniMode",void 0);
_.P([_.J({selector:_.fG}),_.Y("design:type",Number)],oI.prototype,"richGridItemsPerRow",void 0);_.P([_.J(),_.Y("design:type",Object)],oI.prototype,"data",void 0);_.P([_.ul("richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oI.prototype,"observerRichGridItemsPerRow",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oI.prototype,"badgeIconName",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oI.prototype,"badgeLabel",null);_.P([_.h({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],oI);
_.H(oI,"ytd-member-hub-profile-renderer",function(){if(b9l!==void 0)return b9l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return b9l=W},{mode:1});var mC9;var lY=function(){return _.O.apply(this,arguments)||this};
_.Z(lY,_.O);lY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],lY.prototype,"data",void 0);_.P([_.h({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],lY);
_.H(lY,"ytd-settings-sidebar-renderer",function(){if(mC9!==void 0)return mC9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mC9=W},{mode:1});var rll;var Ze=function(){var W=_.O.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(e){return prT(e,function(){return void W.onSearchNavigate()})};
return W};
_.Z(Ze,_.O);Ze.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Ze.prototype.onSearchNavigate=function(){this.selected=void 0};
Ze.prototype.onTabsChange=function(){var W,e=(W=this.tabs)==null?void 0:W.findIndex(function(t){var b;return t==null?void 0:(b=t.tabRenderer)==null?void 0:b.selected});
e!==void 0&&(this.selected=e)};
Ze.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var e,t;(W=(e=this.tabs[W.detail.selected])==null?void 0:(t=e.tabRenderer)==null?void 0:t.endpoint)&&_.q2(this.hostElement,"yt-navigate",{endpoint:W})}};
_.Ec.Object.defineProperties(Ze.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:CuB(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Ze.prototype.onTabsChange=Ze.prototype.onTabsChange;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.xO),_.Y("design:type",Object)],Ze.prototype,"ytdGridStateAwareBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Ze.prototype,"ytdGuideStateAwareBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ze.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],Ze.prototype,"tabs",void 0);_.P([_.J(),_.Y("design:type",Number)],Ze.prototype,"selected",void 0);_.P([_.T("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ze.prototype,"tabGroupShape",null);_.P([_.J(),_.Y("design:type",Object)],Ze.prototype,"expandableCustomTabRenderable",void 0);
_.P([_.T("tabs"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ze.prototype,"tabsEnabled",null);_.P([_.BG("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ze.prototype,"onTabsChange",null);_.P([_.h({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Ze);
_.H(Ze,"ytd-topic-channel-details-renderer",function(){if(rll!==void 0)return rll;var W=document.createElement("template");_.p(W,'\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        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rll=W},{mode:1});var q71;var $x=function(){var W=_.O.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.Z($x,_.O);$x.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]]"}}}}}};
$x.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
$x.prototype.updateCssVars=function(){_.XB(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.mn("rich_grid_max_item_width",500))+16)-16+"px"})};
$x.prototype.updateCssVars=$x.prototype.updateCssVars;$x.prototype.activeChanged=$x.prototype.activeChanged;_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],$x.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],$x.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$x.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],$x.prototype,"tabs",void 0);_.P([_.J(),_.Y("design:type",Boolean)],$x.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$x.prototype,"disableGridStateAware",void 0);
_.P([_.J({selector:_.fG}),_.Y("design:type",Number)],$x.prototype,"richGridItemsPerRow",void 0);_.P([_.J({selector:_.nG}),_.Y("design:type",Boolean)],$x.prototype,"richGridMiniMode",void 0);_.P([_.vG("ytd-carousel-item-renderer"),_.Y("design:type",Object)],$x.prototype,"carousel",void 0);_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$x.prototype,"activeChanged",null);
_.P([_.ul("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$x.prototype,"updateCssVars",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],$x);
_.H($x,"ytd-carousel-header-renderer",function(){if(q71!==void 0)return q71;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return q71=W},{mode:1});var RtC;var Qg9=_.Nw(["https://www.google-analytics.com/analytics.js"]),kx=function(){var W=_.O.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.Z(kx,_.O);kx.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,e=(W=this.data)==null?void 0:W.tagManagerId;e&&(_.CT(e,_.Ot("GL")),fXl(e))};
kx.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var t=_.$N.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(t)};
var e=window.ga;e("set","page",window.location.pathname);e.l=+new Date;e("set","forceSSL",!0);e("create",W,"'auto'");e("send","pageview")};
kx.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.DA("SCRIPT");W.name="ga-analytics";var e=_.bN(Qg9);_.H7(W,e);W.async=!0;_.rz(this.hostElement).appendChild(W)};
kx.prototype.dataChanged=kx.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],kx.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kx.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],kx);
_.H(kx,"ytd-channel-metadata-renderer",function(){if(RtC!==void 0)return RtC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return RtC=W},{mode:1});var F9T;var X0C;var po=function(){return _.O.apply(this,arguments)||this};
_.Z(po,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],po.prototype,"data",void 0);_.P([_.h({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],po);
_.H(po,"ytd-sub-feed-option-renderer",function(){if(X0C!==void 0)return X0C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return X0C=W},{mode:1});var IFB;var yW=function(){return _.O.apply(this,arguments)||this};
_.Z(yW,_.O);yW.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yW.prototype,"ytRendererStamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yW.prototype,"data",void 0);_.P([_.h({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],yW);
_.H(yW,"ytd-sub-feed-selector-renderer",function(){if(IFB!==void 0)return IFB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return IFB=W},{mode:1});var jq=function(){return _.O.apply(this,arguments)||this};
_.Z(jq,_.O);
jq.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}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jq.prototype,"data",void 0);_.P([_.h({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],jq);
_.H(jq,"ytd-browse-feed-actions-renderer",function(){if(F9T!==void 0)return F9T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return F9T=W},{mode:1});var aF1;var w01;var Co=function(){return _.O.apply(this,arguments)||this};
_.Z(Co,_.O);Co.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Co.prototype,"data",void 0);_.P([_.h({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Co);
_.H(Co,"ytd-mini-channel-renderer",function(){if(w01!==void 0)return w01;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return w01=W},{mode:1});var ujg;var no=function(){return _.O.apply(this,arguments)||this};
_.Z(no,_.O);no.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],no.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],no);
_.H(no,"ytd-vertical-channel-section-renderer",function(){if(ujg!==void 0)return ujg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ujg=W},{mode:1});var fo=function(){return _.O.apply(this,arguments)||this};
_.Z(fo,_.O);fo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fo.prototype,"data",void 0);_.P([_.h({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],fo);
_.H(fo,"ytd-browse-secondary-contents-renderer",function(){if(aF1!==void 0)return aF1;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return aF1=W},{mode:1});var clw;var gw=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.Z(gw,_.O);_.r=gw.prototype;
_.r.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(W){var e;return(W==null?void 0:(e=W.webComponentHint)==null?void 0:e.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.r.getPath=function(W,e){var t="data.tabs.#"+e+".";W.tabs[e].tabRenderer?t+="tabRenderer.":W.tabs[e].expandableTabRenderer&&(t+="expandableTabRenderer.");return t+"content.sectionListRenderer"};
_.r.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var e=W.tabs.length,t=0;t<e;t++){var b=W.tabs[t].tabRenderer||W.tabs[t].expandableTabRenderer;if(b.selected&&b.content)return this.linkPaths("content",this.getPath(W,t)),b.content}return null};
_.r.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.r.onRetrieveLocation=function(W,e){e.locationRetrieved(e.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.r.onYtServiceRequestSent=function(W,e){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.r.onYtServiceRequestCompleted=function(W,e){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(e)};
_.r.onReplaceFeedContentAction=function(W){if(!_.S("replace_feed_content_action_killswitch")&&!this.notActive){var e;(W=(e=_.l(W,HiB))==null?void 0:e.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.r.handleServiceRequestActions=function(W){if(W=W.actions){W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;var t=void 0;((t=_.l(e,HiB))==null?0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.l(e,HiB).items)}}};
gw.prototype.onYtServiceRequestCompleted=gw.prototype.onYtServiceRequestCompleted;gw.prototype.onYtServiceRequestSent=gw.prototype.onYtServiceRequestSent;gw.prototype.onRetrieveLocation=gw.prototype.onRetrieveLocation;_.P([_.y(_.xO),_.Y("design:type",Object)],gw.prototype,"ytdGridStateAwareBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],gw.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gw.prototype,"data",void 0);_.P([_.J({computed:"computeDisplayedContent(data)"}),_.Y("design:type",Object)],gw.prototype,"content",void 0);
_.P([_.J({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],gw.prototype,"hasSecondaryColumnData",void 0);_.P([_.J({value:function(){return window.outerHeight>1024?3:2}}),
_.Y("design:type",Number)],gw.prototype,"initialCount",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],gw.prototype,"pageSubtype",void 0);_.P([_.vG("ytd-section-list-renderer"),_.Y("design:type",Object)],gw.prototype,"listRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],gw.prototype,"notActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gw.prototype,"isConstrainedList",void 0);
_.P([_.J(),_.Y("design:type",String)],gw.prototype,"responsiveSizing",void 0);_.P([_.wz("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],gw.prototype,"onRetrieveLocation",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],gw.prototype,"onYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],gw.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],gw);
_.H(gw,"ytd-two-column-browse-results-renderer",function(){if(clw!==void 0)return clw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return clw=W},{mode:2});var v3S;var GoQ;var Tj=function(){var W=_.O.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.Z(Tj,_.O);_.r=Tj.prototype;_.r.attached=function(){this.requestElementsPerRow()};
_.r.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_]]"}}}}}};
_.r.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.r.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.r.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.r.computeAlertStyle_=function(W){return W};
_.r.observerElementsPerRow=function(){this.elementsPerRow&&_.XB(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.r.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.r.requestElementsPerRow=function(){_.q2(this.hostElement,"yt-request-elements-per-row")};
Tj.prototype.onIsVisibleChanged_=Tj.prototype.onIsVisibleChanged_;Tj.prototype.observerElementsPerRow=Tj.prototype.observerElementsPerRow;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Tj.prototype,"actionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Tj.prototype,"data",void 0);_.P([_.J({value:6,reflectToAttribute:!0}),_.Y("design:type",Number)],Tj.prototype,"elementsPerRow",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tj.prototype,"wrapButtons",void 0);_.P([_.J({value:_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tj.prototype,"isMusic",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Y("design:type",String)],Tj.prototype,"alertStyle",void 0);_.P([_.J({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Y("design:type",Function)],Tj.prototype,"dismissBoundButtonTap_",void 0);_.P([_.J({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Y("design:type",Function)],Tj.prototype,"acceptBoundButtonTap_",void 0);_.P([_.ul("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tj.prototype,"observerElementsPerRow",null);_.P([_.ul("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tj.prototype,"onIsVisibleChanged_",null);_.P([_.gz({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Tj);
_.H(Tj,"yt-alert-with-actions-renderer",function(){if(GoQ===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;v3S===void 0&&(v3S=document.createElement("template"));var b=v3S;t.call(e,b.content.cloneNode(!0),W.content.firstChild);GoQ=W}W=GoQ;return W},{mode:2});_.mM(_.NN(function(W){function e(D){var B={};return _.w(_.WL,{text:D,className:_.ve("ytPersonalGreetingViewModelHeadline",(B.ytPersonalGreetingViewModelHeadlineSmall=function(){return X()===48},B))})}
function t(D,B){return _.w("span",{el:D,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},e(B))}
var b=_.zT("yt-personal-greeting-view-model"),m=_.zT("span"),q=_.zT("span"),Q=function(){return W.data().canvasPromoData},X=function(){var D;
return(D=W.data().bannerHeight)!=null?D:56},I=_.GKQ(b,{throttleMs:100}),u=_.GKQ(m,{throttleMs:100}),c=_.GKQ(q,{throttleMs:100}),v=function(){return u.width()-I.width()>1};
_.UQ(b,function(){var D;return(D=W.data())==null?void 0:D.rendererContext},void 0,void 0,void 0,!0);
return _.w("yt-personal-greeting-view-model",{el:b,"aria-hidden":v,class:_.ve(W.className,"ytPersonalGreetingViewModelHost"),style:_.$D({height:(0,_.$A)(function(){return v()?0:X()})})},_.w(_.G,{cond:function(){return W.data().avatar&&!(c.width()+(W.data().avatar?48:0)-I.width()>1)},
then:function(){return _.w(_.nU,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(D){return _.w(_.yc,{data:D.data,
className:_.ve("ytPersonalGreetingViewModelAvatar")})}})}}),_.w("h1",null,e(function(){var D;
return(Q==null?void 0:(D=Q())==null?void 0:D.headline)||(c.width()+(W.data().avatar?48:0)-I.width()>1?W.data().shorterGreeting:W.data().greeting)})),t(q,function(){return W.data().greeting}),t(m,function(){return W.data().shorterGreeting}))},"Li"),"yt-personal-greeting-view-model",{props:{data:_.Eu,
className:_.Eu}});var JP=function(){var W=_.O.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.S("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.Z(JP,_.O);_.r=JP.prototype;
_.r.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}}}}};
_.r.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.r.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new t9C(this.refresh,this.contents))};
_.r.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.r.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.r.tabsChanged=function(){var W=this,e,t;if(this.pageSubtype==="channels"||_.S("kevlar_tab_gestures_for_tabbed_header_data")&&((e=this.data)==null?0:(t=e.header)==null?0:t.carouselHeaderRenderer))this.tabGestures=new g4(this.contents,this.contents,this.hostElement,this.header,function(Q){W.ytdReduxBehavior.dispatch(Q)});
var b,m,q;e=(b=this.data)==null?void 0:(m=b.contents)==null?void 0:(q=m.twoColumnBrowseResultsRenderer)==null?void 0:q.tabs;this.tabGestures&&this.tabGestures.tabsChanged(e)};
_.r.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.r.engagementPanelsChanged=function(){var W=_.ee().resolve(_.oL);if(W){if(this.engagementPanels)for(var e=_.R(this.engagementPanels),t=e.next();!t.done;t=e.next()){var b=void 0;(t=(b=t.value.identifier)==null?void 0:b.tag)&&W.panelMap.delete(t)}this.engagementPanels=[];var m;e=_.R(((m=this.data)==null?void 0:m.panels)||[]);for(m=e.next();!m.done;m=e.next()){m=_.l(m.value,_.T1u);var q=t=void 0,Q=void 0,X=void 0;if(b=((t=m)==null?void 0:t.targetId)||((q=m)==null?void 0:q.panelIdentifier)||((Q=m)==
null?void 0:(X=Q.identifier)==null?void 0:X.tag))q=t=void 0,(q=(t=W).registerPanelContent)==null||q.call(t,b,{engagementPanelSectionListRenderer:m}),this.engagementPanels.push(m)}}};
_.r.onStampFinished=function(){var W=this;_.Uc(this,function(){if(W.tabGestures){var e=W.tabGestures;if(e.scrollPositionNeedsUpdate){var t=_.ee().resolve(_.Wi(_.WS)),b;if((b=e.selectedTab)!=null&&b.title&&t&&(b=t.getCurrentPage())){if(e.scrollPositionForTabs.has(e.selectedTab.title)){var m,q;t=(q=(m=t.getCurrentPage())==null?void 0:m.clientHeight)!=null?q:0;m=e.scrollPositionForTabs.get(e.selectedTab.title);b.setScrollTop(m);t>m+100&&(e.scrollPositionNeedsUpdate=!1)}else b.setScrollTop(Math.min(e.lastVisitedTabScrollPosition!==
void 0?e.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,e.tabsStartAtInPx)),e.scrollPositionNeedsUpdate=!1;e.ytdReduxDispatch(nHg(!1))}}}})};
_.r.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.r.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.Ub(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",W);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W))return _.Ub(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W));var e,t;return _.S("enable_page_header_page_title")&&(W==null?0:(e=W.header)==null?0:(t=e.pageHeaderRenderer)==null?0:t.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.r.updateTitle=function(W){_.q2(this.hostElement,"yt-update-title",this.getTitle(W))};
_.r.initCsi=function(){_.yL(this.pageSubtype||"browse",["ol","cpt"])};
_.r.getPlayer=function(){if(_.S("kevlar_channel_trailer_multi_attach")){for(var W=_.R(this.attachedPlayers),e=W.next();!e.done;e=W.next())if(e=e.value,e.isConnected||_.PX(this.hostElement,e))return e;return null}return this.player};
_.r.getPlayerContainer=function(){return null};
_.r.onPlayerAttached=function(W,e){_.S("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(e):this.player=e};
_.r.onPlayerDetached=function(W,e){_.S("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(e),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.r.getServiceTrackingParams=function(){var W,e;return((W=this.data)==null?void 0:(e=W.responseContext)==null?void 0:e.serviceTrackingParams)||[]};
_.r.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.r.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.umC();_.Uc(this,function(){_.Qx(W.hostElement,"ytd-update-grid-state-action")})};
_.r.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.r.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(e){return!!e.alertWithActionsRenderer})}};
_.r.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(e){return!!e.personalGreetingViewModel})}};
_.r.computeHasMemberHubProfileRenderer=function(W){var e;return!!(W==null?0:(e=W.header)==null?0:e.memberHubProfileRenderer)};
_.r.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.l(W,KA9),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.r.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.q2(this.hostElement,"yt-navigate",{endpoint:W})};
_.r.computeFluidWidth=function(W,e,t){if(e==="mini_app"||t)return!0;var b,m,q;W=W==null?void 0:(b=W.contents)==null?void 0:(m=b.twoColumnBrowseResultsRenderer)==null?void 0:(q=m.tabs)==null?void 0:q.find(function(I){var u;return I==null?void 0:(u=I.tabRenderer)==null?void 0:u.selected});
if(!W)return!1;var Q,X;return!!((Q=W.tabRenderer)==null?0:(X=Q.content)==null?0:X.richGridRenderer)&&!["channel","channels","playables"].includes(e)};
_.r.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.r.computeHasSidebar=function(W){var e;return!!(W.sidebar||((e=W.header)==null?0:e.playlistHeaderRenderer))};
_.r.computeHasPageHeaderSidebar=function(W){var e,t;return!!((e=W.header)==null?0:(t=e.pageHeaderRenderer)==null?0:t.enableSidebarView)};
_.r.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var e=0;e<W.items.length;e++)if(_.l(W.items[e],nE)){var t=void 0;return((t=_.l(W.items[e],nE))==null?void 0:t.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.r.computeIsConstrainedList=function(W){return _.S("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.r.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Ec.Object.defineProperties(JP.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e;return((W=this.data)==null?0:(e=W.header)==null?0:e.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,e;if(!((W=this.data)==null?0:(e=W.sidebar)==null?0:e.playlistSidebarRenderer))return!1;var t;return(t=this.data)!=null&&t.header?!1:!0}}});
_.Ec.Object.defineProperties(JP,{template:{configurable:!0,enumerable:!0,get:function(){if(r4l===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);r4l=W}W=r4l;return W}}});
JP.prototype.dataChanged=JP.prototype.dataChanged;JP.prototype.onPlayerDetached=JP.prototype.onPlayerDetached;JP.prototype.onPlayerAttached=JP.prototype.onPlayerAttached;JP.prototype.onStampFinished=JP.prototype.onStampFinished;JP.prototype.engagementPanelsChanged=JP.prototype.engagementPanelsChanged;JP.prototype.scrollAtTopChanged=JP.prototype.scrollAtTopChanged;JP.prototype.tabsChanged=JP.prototype.tabsChanged;JP.prototype.activeChanged=JP.prototype.activeChanged;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],JP.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],JP.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.j4.YtPageBehavior),_.Y("design:type",Object)],JP.prototype,"ytPageBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],JP.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],JP.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JP.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],JP.prototype,"hidden",void 0);
_.P([_.J(),_.Y("design:type",Object)],JP.prototype,"mastheadAdData",void 0);_.P([_.J({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Y("design:type",Object)],JP.prototype,"alertBannerData",void 0);_.P([_.J({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Y("design:type",Object)],JP.prototype,"greetingData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],JP.prototype,"pageSubtype",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Y("design:type",Boolean)],JP.prototype,"hasMemberHubProfileRenderer",void 0);_.P([_.J({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],JP.prototype,"hasSidebar",void 0);_.P([_.J({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],JP.prototype,"hasPageHeaderSidebar",void 0);
_.P([_.J({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],JP.prototype,"roundedContainer",void 0);_.P([_.J({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],JP.prototype,"useUnifiedShowPageLayout",void 0);_.P([_.J({computed:"computeIsConstrainedList(pageSubtype)"}),_.Y("design:type",Object)],JP.prototype,"isConstrainedList",void 0);
_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JP.prototype,"usePlaylistHeaderRenderer",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],JP.prototype,"useOldPlaylistSidebarRenderer",null);_.P([_.J({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Y("design:type",Boolean)],JP.prototype,"fluidWidth",void 0);_.P([_.J({selector:function(W){return W.ui.scrollAtTop}}),
_.Y("design:type",Boolean)],JP.prototype,"scrollAtTop",void 0);_.P([_.J({selector:_.rGl}),_.Y("design:type",Boolean)],JP.prototype,"tabGesturesIsActive",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],JP.prototype,"darkerDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Y("design:type",Boolean)],JP.prototype,"disableHeaderFluidWidth",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Y("design:type",String)],JP.prototype,"responsiveSizing",void 0);_.P([_.vG("ytd-two-column-browse-results-renderer"),_.Y("design:type",HTMLElement)],JP.prototype,"contents",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],JP.prototype,"header",void 0);_.P([_.vG("ytd-refresh"),_.Y("design:type",Object)],JP.prototype,"refresh",void 0);
_.P([_.ul("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"activeChanged",null);_.P([_.ul("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"tabsChanged",null);_.P([_.ul("scrollAtTop"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"scrollAtTopChanged",null);
_.P([_.J(),_.Y("design:type",Object)],JP.prototype,"engagementPanels",void 0);_.P([_.ul("data.panels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"engagementPanelsChanged",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"onStampFinished",null);
_.P([_.wz("yt-player-attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],JP.prototype,"onPlayerAttached",null);_.P([_.wz("yt-player-detached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],JP.prototype,"onPlayerDetached",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JP.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-browse"})],JP);_.qQ.registerService(_.mjQ,JP);
_.Tg();
}catch(e){_._DumpException(e)}
try{
_.g$("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 Wp=function(W){if(!W)return"browse";var e=W.page,t=W.url,b,m,q,Q=(b=W.response)==null?void 0:(m=b.responseContext)==null?void 0:(q=m.webResponseContextExtensionData)==null?void 0:q.pageTheme;if(Q)e=Q.toLowerCase().replace(/_/g,"-");else if(e!=="watch"&&e!=="learning_journey_watch"){var X,I;if((e==="browse"||e==="settings")&&((X=W.response)==null?0:(I=X.sidebar)==null?0:I.settingsSidebarRenderer))e="WEB_PAGE_TYPE_SETTINGS";else{var u,c;e==="browse"&&((u=W.response)==null?0:(c=u.metadata)==null?
0:c.channelMetadataRenderer)?e="channel":t&&(e=_.Gi(t)||e)}}return e},vwQ=function(){var W=_.HO("yt.aba.att");
return W?W:_.N6.instance!==void 0?_.N6.instance.uR3.bind(_.N6.instance):null},GJ9=function(W,e){var t;
return _.F(function(b){return(t=vwQ())?b.return(t(W,e,6E4)):b.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},DzM=function(W,e,t,b,m){e=e===void 0?[]:e;
m=m?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:m}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.tm(W),dialogMessages:e.map(function(q){return _.tm(q)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tm(t),serviceEndpoint:m}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tm(b)}}}}}},SiC=function(W){var e=!!_.K5().queueProxy;
var t,b,m;W=W==null?void 0:(t=W.response)==null?void 0:(b=t.currentVideoEndpoint)==null?void 0:(m=b.watchEndpoint)==null?void 0:m.playlistId;return!(!e&&!W)},B89=function(W,e){var t=_.G3();
if(SiC(W))return t.playlistWatchPageActivation=!0;switch(Wp(e)){case "yts-products":return t.productDetailsPageActivation=!0;case "mini_app":return t.miniAppPageActivation=!0;case "playables":return t.playablesDestPageActivation=!0;default:return!1}},oww=function(W,e,t){for(var b=typeof W==="string"?W.split(""):W,m=W.length-1;m>=0;--m)m in b&&e.call(t,b[m],m,W)},lKE=function(W,e){e=_.GSL(W,e);
e>=0&&_.zS(W,e)},ZKu=function(W){return Array.prototype.concat.apply([],arguments)},$zl=function(W){var e=0;
e=e===void 0?0:e;if(!_.DM(W))throw _.Iy("uint64");var t=typeof W;switch(e){case 512:switch(t){case "string":return _.XU2(W);case "bigint":return String((0,_.JS)(64,W));default:return _.QyG(W)}case 1024:switch(t){case "string":return _.IDD(W);case "bigint":return _.Yv((0,_.JS)(64,W));default:return _.Fev(W)}case 0:switch(t){case "string":return _.XU2(W);case "bigint":return _.Yv((0,_.JS)(64,W));default:return _.RNS(W)}default:return _.Qw(e,"Unknown format requested type for int64")}},kJ9=function(W){W!=
null&&(W=W.JSC$6865_value_||"",W=typeof W==="string"?W:new Uint8Array(W));
return W},piu=function(W){for(var e=_.$N.apply(1,arguments),t=W[0],b=0;b<W.length-1;b++)t+=String(e[b]),t+=W[b+1];
e=document.implementation.createHTMLDocument("");b=e.createElement("style");e.head.appendChild(b);e=b.sheet;e.insertRule(t,0);if(e.cssRules.length===1&&(t=e.cssRules[0],t instanceof CSSStyleRule))return new _.iF(t.cssText.replace(/</g,"\\3C "))},yQM=function(W,e){if(/-[a-z]/.test(e))return null;
if(_.zNZ&&W.dataset){if(_.QRc()&&!(e in W.dataset))return null;W=W.dataset[e];return W===void 0?null:W}return W.getAttribute("data-"+_.cF(e))},CG1=function(){var W=j_T;
_.HO("yt.ads.biscotti.getId_")||_.Nz("yt.ads.biscotti.getId_",W)},nwE=function(W){_.Nz("yt.ads.biscotti.lastId_",W)},gwT=function(){var W={};
for(_.pK=new fK9(W.handleError===void 0?_.TT:W.handleError,W.logEvent===void 0?_.nJ:W.logEvent);_.ym.length>0;)switch(W=_.ym.shift(),W.type){case "ERROR":_.pK.logError(W.payload);break;case "EVENT":_.pK.logEvent(W.eventType,W.payload)}},T8C=function(W,e,t){return _.hp2(function(b){return t?b.userIdentifier!==void 0&&!W.includes(b.userIdentifier)&&t.includes(b.publicName):b.userIdentifier!==void 0&&!W.includes(b.userIdentifier)},e)},JQM=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1)return e=_.Se("YtIdbMeta hasAnyMeta other"),_.a(b,_.hp2(function(m){return m.userIdentifier!==void 0&&m.userIdentifier!==e},W),2);
t=b.yieldResult;return b.return(t.length>0)})},OKC=function(W,e){xzE||(xzE=_.Tm.addLowPriorityJob(function(){var t,b,m,q,Q;
return _.F(function(X){switch(X.nextAddress){case 1:return _.a(X,_.d8(),2);case 2:t=X.yieldResult;if(!t)return X.return();b=!0;_.Qh(X,3);return _.a(X,T8C(W,t,e),5);case 5:m=X.yieldResult;if(!m.length){b=!1;X.jumpTo(6);break}q=m[0];return _.a(X,_.KK(q.actualName),7);case 7:return _.a(X,_.Ui(q.actualName,t),6);case 6:_.Hi(X,4);break;case 3:Q=_.w9(X),_.je(Q),b=!1;case 4:_.Tm.cancelJob(xzE),xzE=0,b&&OKC(W,e),_.u8(X)}})}))},MeT=function(){var W;
return _.F(function(e){return e.nextAddress==1?_.a(e,_.d8(),2):(W=e.yieldResult)?e.return(JQM(W)):e.return(!1)})},s_l=function(W){var e=100;
e=e===void 0?500:e;var t,b,m,q,Q,X;return _.F(function(I){return I.nextAddress==1?(t=_.Ot("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[t,(0,_.eJ)()-2592E6],m=[t,(0,_.eJ)()],q=IDBKeyRange.bound(b,m),_.a(I,_.aav(W),2)):I.nextAddress!=3?(Q=I.yieldResult,X=[],_.a(I,_.zJ(Q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(u){X.length=0;return _.t7(u.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:q,direction:"prev"},function(c){if(c.getValue()&&X.length<e)return X.push(c.getValue()),
c.delete().then(function(){return c.continue()})})}),3)):I.return(X)})},hZE=function(){var W;
return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.d8(),2);W=e.yieldResult;if(!W||!_.Bi()&&!_.S("nwl_init_require_datasync_id_killswitch")||!_.faz())return e.jumpTo(0);_.TDg=!0;_.gQL.isNwlInitialized=_.TDg;return _.a(e,_.mqv().awaitInitialization(),0)})},e9=function(W,e){_.EQc[W]=!0;
var t=_.mG();t&&t.publish.apply(t,arguments);_.EQc[W]=!1},KnC=function(){if(_.yms()&&!HKS){var W=function(t){t=t.data;
if(t.op==="serializedGelBatch"){var b=_.AcZ.get(t.key);b&&(_.dND(t.serializedBatch,b.client,b.resolve,b.networklessOptions,b.isIsolated,b.useVSSEndpoint,b.dangerousLogToVisitorSession,b.requestsOutstanding),_.AcZ.delete(t.key))}},e=_.pmD();
e&&(e.addEventListener("message",W),e.onerror=function(){_.AcZ.clear()});
HKS=!0}},t4=function(){this.relativeTimeStart_=_.RP()},PGg=function(W,e){W!=null&&this.append.apply(this,arguments)},VeB=function(){return _.OT("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},iKT=function(W,e,t){t=t===void 0?!1:t;
var b,m,q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:_.GJ("SOCS",W,34128E3,"youtube.com",!0);if(_.vb)return m=fetch(e,{method:"POST",mode:_.V5(e),credentials:_.PF(e),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),q=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.V5("/upgrade_visitor_cookie?eom=1"),credentials:_.PF("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.a(I,Promise.all([m,q]).then(function(u){return u[1]}),5);
fetch(e,{method:"POST",mode:_.V5(e),credentials:_.PF(e),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.a(I,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.V5("/upgrade_visitor_cookie?eom=1"),credentials:_.PF("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:b=I.yieldResult;I.jumpTo(3);break;case 5:b=Q=I.yieldResult;case 3:if(!b.ok)throw Error("nf");return _.a(I,b.text(),7);case 7:X=I.yieldResult,
!X.includes('"state_switch":true')&&!t||X.includes("skip_reload_for_test")||window.location.reload(),_.u8(I)}})},Yiw=function(W){return _.F(function(e){return e.nextAddress==1?_.a(e,iKT(W.socsCookie,W.savePreferenceUrl,!0),2):e.return()})},zZw=function(W){return _.F(function(e){return e.nextAddress==1?_.a(e,iKT(W.socsCookie,W.savePreferenceUrl),2):e.return()})},Ln9=function(W){W=W.xhr.responseText;
if(!_.m2(W,")]}'"))throw new b2;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new b2;W=W.id;nwE(W);m0=_.zr(W);Uzg(18E5,2);return W},AQS=function(W,e){e=new Ew1(e);
nwE("");m0=_.C6P(e);W>0&&Uzg(12E4,W-1);throw e;},Uzg=function(W,e){_.Qm(function(){_.dD1().then(Ln9,function(t){return AQS(e,t)}).thenCatch(_.SQ)},W)},j_T=function(){var W=_.teu();
if(W!==void 0)return _.jg(W);m0||(m0=_.dD1().then(Ln9).thenCatch(function(e){return AQS(2,e)}));
return m0},N8u=function(){var W=document;
return _.Ms(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in W})},dzS=function(W){W.addEventListener("click",function(e){var t=e.target;
t&&t.getAttribute("href")&&(t=t.getAttribute("href"),_.Ty(window,t,"_blank"),e.preventDefault(),e.stopImmediatePropagation())})},WxC=function(W){var e,t,b,m=(b=(t=((e=W.mainDownloadsListEntity)!=null?e:{})[_.rrZ])==null?void 0:t.refresh)!=null?b:"",q;
W=(q=W.refresh)==null?void 0:q[m];m=W!=null?W:{};return(m==null?0:m.refreshTime)?Number(m==null?void 0:m.refreshTime):0},e_B=function(W,e){var t=_.kg(W);
return e.every(function(b){var m;b=b==null?void 0:(m=b.playbackDataEntity)==null?void 0:m.key;if(!b)return!1;m=_.X4(_.R1(b).entityId,"mainVideoEntity");return!!t[m]})},tJU=function(W){W=_.lX(W.entities);
return _.S4R(W).length},b_$=function(W,e){if(e){var t;
W=(t=_.I1(W.entities,"downloadQualityPickerEntity",e))!=null?t:void 0}else W=void 0;return W},qHM=function(){mI1||(_.Yg=_.Wwg,mI1=new r7C);
return mI1},R_Q=function(W){var e=document.getElementsByTagName("ytd-enforcement-message-view-model");
e.length===0||getComputedStyle(e[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")},QMT=function(){rh=0;
var W=[_.lm(!0)];qF&&_.Qx(qF,"yt-window-resized",W)},FxM=function(){rh||(rh=_.Tm.addLowPriorityJob(QMT,200))},I3E=function(){R6=0;
XHB=_.Use(document);var W=[XHB];qF&&_.Qx(qF,"yt-window-scrolled",W)},a3B=function(){R6||(R6=_.Tm.addLowPriorityJob(I3E,200))},u3g=function(W){W=W===void 0?null:W;
wH$.push(_.W3(window,"resize",FxM));wH$.push(_.W3(window,"scroll",a3B));W&&(qF=W)},vnQ=function(){var W={isWide:_.vi.get("wide","0")==="1"},e=_.B6();
if(e=e.getFlag(165)||e.getFlag(174))W.theme=_.jf(!0);if(_.uNS()){var t=_.yI()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=t}!e&&_.S("parent_tools_enable_app_settings")&&_.Yq(window.location.href).theme!==void 0&&(W.theme=_.jf());if((e=Qu)?!_.kJ.equals(e,W):W)e={currentValue:W},c7E&&(e.timeSinceLastSnapshotSecs=Math.round(((0,_.eJ)()-c7E)/1E3)),Qu&&(e.previousValue=Qu),_.nJ("appSettingsCaptured",e),Qu=W,c7E=(0,_.eJ)()},Gmw=function(W){_.F(function(e){if(e.nextAddress==1)return _.a(e,
W.delete("yt-appshell-assets"),2);
_.u8(e)})},DIM=function(W){return _.iG((0,_.qeo)(),W)},BTC=function(){var W;
_.F(function(e){return e.nextAddress==1?_.a(e,FF.getInstance(),2):(W=e.yieldResult)?_.a(e,SH9(W),0):e.jumpTo(0)})},l3l=function(){var W;
_.F(function(e){return e.nextAddress==1?_.a(e,XF.getInstance(),2):(W=e.yieldResult)?_.a(e,onE(W),0):e.jumpTo(0)})},Z_$=function(W){Gmw(W);
BTC();l3l()},$IQ=function(W){var e,t;
return _.F(function(b){if(b.nextAddress==1)return _.a(b,_.O7g(W),2);if(e=b.yieldResult){var m;a:{if(e.headers&&(m=e.headers.get("date"))&&(m=Date.parse(m),!isNaN(m))){m=Math.round((0,_.eJ)()-m);break a}m=-1}t=m;if(t>-1)return b.return(t)}return b.return(-1)})},kmw=function(){var W=_.tz.caches,e=_.MD("IS_SHELL_LOAD"),t,b;
_.F(function(m){if(m.nextAddress==1)return t=-1,e?_.a(m,$IQ(W),3):(b=_.pe(),t=Math.round((0,_.eJ)()-b),m.jumpTo(2));m.nextAddress!=2&&(t=m.yieldResult);t>=0&&t<2147483648&&_.fe({appInstallDataAgeMs:t});_.u8(m)})},pHE=function(W){var e=_.Ya(_.tz.location.href),t={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(b){var m=e.JSC$8077_queryData_.getValues(b);if(m==null?0:m.length)t[b]=m});
return _.m_(W,new Map(Object.entries(t)))},y7S=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},jMC=function(W){if(_.egg()){var e=Object.keys(window.localStorage);
e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=y7S(t);b===void 0||W.includes(b)||self.localStorage.removeItem(t)}}},CaT=function(){if(!_.egg())return!1;
var W=_.Se(),e=Object.keys(window.localStorage);e=_.R(e);for(var t=e.next();!t.done;t=e.next())if(t=y7S(t.value),t!==void 0&&t!==W)return!0;return!1},nnM=function(W){return _.YH("NotificationsDisabled",W)},f3B=function(){return Notification.permission!="granted"?Promise.resolve():_.qd$().then(function(W){return W?W.pushManager.getSubscription().then(function(e){if(e)return Promise.resolve();
e={userVisibleOnly:!0,applicationServerKey:_.Xb("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(e).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},gnu=function(W){return _.qd$().then(function(e){if(!e||!e.active)return Promise.reject(new _.o_("serviceworker.postMessage",W,e));
try{return e.active.postMessage(W),Promise.resolve()}catch(t){return Promise.reject(t)}})},TTE=function(){gnu({type:"notifications_register",
data:_.Ot("ID_TOKEN")})},J79=function(){if(!_.MD("LOGGED_IN"))return Promise.resolve(!1);
var W=_.r8("service_worker_push_force_notification_prompt_tag");return W?_.N1("PromptTags").then(function(e){if(!e)return!0;var t=[];try{t=JSON.parse(e)}catch(b){return!1}return t&&t.indexOf(W)==-1}):Promise.resolve(!1)},xIu=function(){var W=_.mn("service_worker_push_prompt_delay_microseconds");
return W?_.N1("PromptTime").then(function(e){return Promise.resolve(Date.now()-W>(e||0))}):Promise.resolve(!0)},O_E=function(){var W=_.mn("service_worker_push_logged_out_prompt_watches");
return W==-1?Promise.resolve(!1):_.N1("WatchCount").then(function(e){return e>=W})},MJ9=function(){var W=_.mg(document,"yt-push-prompt-modal-bg");
W&&_.BX(W)},sMl=function(){return _.mn("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.N1("PromptCount").then(function(W){W||(W=0);
return Promise.resolve(W<_.mn("service_worker_push_prompt_cap"))})},h_g=function(W){return _.MD("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.MD("LOGGED_IN")&&(W===void 0?0:W)?J79().then(function(e){if(e)return!0;
e=[sMl(),xIu()];_.MD("LOGGED_IN")||e.push(O_E());return Promise.all(e).then(function(t){return t.every(function(b){return b})})}):Promise.resolve(!1)},H_T=function(){_.N1("PromptCount").then(function(W){return _.YH("PromptCount",W+1)}).then(function(){return _.YH("PromptTime",Date.now())}).then(function(){var W=_.r8("service_worker_push_force_notification_prompt_tag");
if(W)return _.N1("PromptTags").then(function(e){var t=[];if(e)try{t=JSON.parse(e)}catch(b){return!1}t||(t=[]);t.push(W);return _.YH("PromptTags",JSON.stringify(t))})})},Pag=function(){KxT||MJ9()},VJ9=function(W){W.style.zIndex=2147483648;
W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"},i_1=function(){var W=_.mg(document,"yt-push-prompt-modal-bg");
KxT=_.S("service_worker_push_prompt_modal_ignore_click");W?VJ9(W):(W=_.yT("div",{id:"yt-push-prompt-modal-bg"}),VJ9(W),document.body.appendChild(W),_.YrG(document,"click",Pag))},YH9=function(){var W=arguments;
_.S("service_worker_push_prompt_modal_enable")&&i_1();return Notification.requestPermission().then(function(e){MJ9();var t=document.getElementById("ticker");t&&(t.className=t.classList.remove("show"));if(e=="granted")return f3B().then(function(){nnM(!1);TTE();return Promise.resolve(!0)});
e=="denied"&&TTE();return Promise.resolve(!1)}).catch(function(){MJ9();
return Promise.reject.apply(Promise,_.kP(W))})},z_C=function(W){W=W===void 0?!1:W;
var e=_.SPc().client;if(e&&e.browserVersion){var t=e.browserVersion,b=e.browserName=="CHROME"&&_.cZ(t,"50.0.0")<0;e=e.browserName=="OPERA"&&_.cZ(t,"42.0.0")<0;if(b||e)return Promise.resolve()}return _.Fkw().then(function(m){if(!m)return Promise.resolve();m=f3B().then(function(){return gnu({type:"notifications_check_registration",data:_.Ot("ID_TOKEN")})});
return Notification.permission!="default"?m.catch(function(){}):m.then(function(){return h_g(W)}).then(function(q){if(q)return H_T(),YH9().then(function(){})}).catch(function(){})})},UIu=function(W){return _.ReC(W)?z_C():Promise.resolve()},Lx9=function(W){var e=W.installing||W.waiting;
return W.active||!e?Promise.resolve(W):new Promise(function(t){var b=function(m){m=m.target;if(m.state==="activated"||m.state==="redundant")e.removeEventListener("statechange",b),t(W)};
e.addEventListener("statechange",b)})},Enl=function(){var W=new _.x3S("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.vN(W,{mainAppWeb:_.im()});var e=_.Zye;_.S("service_worker_forward_exp_params")&&(e=pHE(e));try{var t=_.oOv(e).catch(function(){_.GL(W,"FAILURE");return new Promise(function(){})});
_.S("service_worker_push_enabled")&&t.then(function(b){_.GL(W,"SUCCESS");return b}).then(Lx9).then(UIu)}catch(b){if(_.GL(W,"FAILURE"),b.name!=="SecurityError")throw b;
}},A7g=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Enl()},NTC=function(W,e){var t={};
e&&(t.serializedYpcFamilyCreateLoggingParams=e);_.nJ(W,t);_.fJ()},dIg=function(W,e){var t={};
t.serializedYpcRefundFlowLoggingParams=e;W&&(t.eventType=W);_.nJ("ypcRefundFlowEvent",t);_.fJ()},WGS=function(W){W&&_.ZuQ("transactionFlowSucceeded",W)},ebE=function(W){W&&_.nb("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},tIC=function(W){var e,t,b,m,q,Q,X;
_.F(function(I){if(I.nextAddress==1)return _.a(I,_.qFs(),2);if(I.nextAddress!=3){if(!I.yieldResult)return I.return(!1);e=[];return _.a(I,_.X6.keys(),3)}t=I.yieldResult;b=_.R(t);for(m=b.next();!m.done;m=b.next())q=m.value,Q=_.m6L(q),X=Q.datasyncId,!X||W.includes(X)||e.push(_.X6.delete(q));return I.return(Promise.all(e).then(function(u){return u.some(function(c){return c})}))})},bJw=function(){var W,e,t,b,m,q,Q;
return _.F(function(X){if(X.nextAddress==1)return _.a(X,_.qFs(),2);if(X.nextAddress!=3){if(!X.yieldResult)return X.return(!1);W=_.Se("cache contains other");return _.a(X,_.X6.keys(),3)}e=X.yieldResult;t=_.R(e);for(b=t.next();!b.done;b=t.next())if(m=b.value,q=_.m6L(m),(Q=q.datasyncId)&&Q!==W)return X.return(!0);return X.return(!1)})},mql=function(){var W=_.ee().resolve(_.Wi(_.D4k));
return W?W.getCurrentTime():0},rCU=function(){var W,e,t,b,m,q,Q,X,I,u,c,v,D,B;
return _.F(function(k){switch(k.nextAddress){case 1:W={},e=_.tkg(),t=_.R(Object.entries(e)),b=t.next();case 4:if(b.done){k.jumpTo(3);break}m=b.value;q=_.R(m);Q=q.next().value;X=q.next().value;I=Q;u=X;if(!u){k.jumpTo(5);break}return _.a(k,u(),8);case 8:W[I]=k.yieldResult;case 5:b=t.next();k.jumpTo(4);break;case 2:c=_.R(void 0),v=c.next();case 9:if(v.done){k.jumpTo(3);break}D=v.value;B=e[D];if(!B){k.jumpTo(10);break}return _.a(k,B(),13);case 13:W[D]=k.yieldResult;case 10:v=c.next();k.jumpTo(9);break;
case 3:return k.return(W)}})},qmw=function(){var W;
_.F(function(e){if(e.nextAddress==1)return _.a(e,rCU(),2);W=e.yieldResult;return _.a(e,navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})},Rbg=function(W,e){return _.I1(W.entities,"superThanksSelectedTierEntity",e)},QzM=function(W){var e;
return(e=W.sharedUi)==null?void 0:e.currentPageType},FGg=function(W,e){return{popup:{searchSuggestionReportDialog:{searchQuery:W,
title:_.Gv("SBOX_INAPPROPRIATE_TITLE"),suggestions:e,categoryLabel:_.Gv("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Gv("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Gv("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Gv("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Gv("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Gv("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Gv("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Gv("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.Gv("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.Gv("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},X3U=function(W){var e,t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U;
return _.F(function(V){switch(V.nextAddress){case 1:return _.a(V,_.uX(),2);case 2:return(e=V.yieldResult)?_.a(V,_.TID(e),3):V.return();case 3:t=V.yieldResult;if(!t)return V.return();m=((b=t.offlineVideos)==null?void 0:b.length)||0;Q=((q=t.offlinePlaylists)==null?void 0:q.length)||0;if(m===0&&Q===0)return V.return();X=0;if(t.offlineVideos)for(I=_.R(t.offlineVideos),u=I.next();!u.done;u=I.next())c=u.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===c.videoState&&(X+=1);W.offline_videos_count=m.toString();_.S("kevlar_log_offline_current_network_type_ks")||
(W.offline_current_network_type=(v=_.wFZ())!=null?v:"CONN_INVALID");_.S("kevlar_log_updated_time_for_smart_downloads")&&(D=_.Eb().getState().entities,B=_.CG(D),k=WxC(D),W.offline_smart_downloads_last_sync_time_ms=B.toString(),W.offline_smart_downloads_next_sync_time_ms=k.toString());W.offline_videos_playable=X.toString();W.offline_playlists_count=Q.toString();if(!_.S("woffle_used_state_report")){V.jumpTo(4);break}t.offlineVideos&&(n=t.offlineVideos.reduce(function(L,E){E.downloadedBytes&&(L+=Number(E.downloadedBytes));
return L},0).toString())&&(W.offline_used_disk_space_bytes=n);
if(!((f=navigator)==null?0:(M=f.storage)==null?0:M.estimate)){V.jumpTo(4);break}return _.a(V,navigator.storage.estimate(),6);case 6:K=V.yieldResult,W.offline_free_disk_space_bytes=(((U=K)==null?void 0:U.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(t),_.u8(V)}})},It9=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},atC=function(W){if(_.siG()){var e=Object.keys(window.sessionStorage);
e=_.R(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=It9(t);b===void 0||W.includes(b)||self.sessionStorage.removeItem(t)}}},w39=function(){if(!_.siG())return!1;
var W=_.Se(),e=Object.keys(window.sessionStorage);e=_.R(e);for(var t=e.next();!t.done;t=e.next())if(t=It9(t.value),t!==void 0&&t!==W)return!0;return!1},I6=function(W,e,t){(_.S("desktop_keyboard_shortcut_usage_log")||t&&_.S("web_shorts_keyboard_shortcut_usage_log"))&&(e?_.AR.get(W):_.EM.get(W))&&(W=e?_.dH.get(W):_.NT.get(W))&&_.zv(_.fc(),W)},uTS=function(){var W,e;
return typeof CSS!=="undefined"&&((e=(W=CSS).supports)==null?void 0:e.call(W,"selector(:has(*))"))},cCU=function(W){return W.visibility!=="hidden"&&W.display!=="none"},GTU=function(W){if(uTS()||W.tagName!=="DETAILS"?!W.matches(vMU):W.querySelector("summary")!==null)return-1;
W=W.getAttribute("tabindex")||"0";return Number(W)},Dq$=function(W){return W.some(function(e){return GTU(e)>0})},SmQ=function(W){if(W.textContent)return!0;
if(W instanceof HTMLInputElement){if(!W.labels)return!1;W=_.R(W.labels);for(var e=W.next();!e.done;e=W.next())if(e.value.textContent)return!0}return!1},BQB=function(W){return W.sort(function(e,t){return GTU(t)-GTU(e)})},oMC=function(W){W=Array.from(W.querySelectorAll(vMU)).filter(function(e){return(cCU(e.style)?cCU(window.getComputedStyle(e)):!1)&&SmQ(e)});
return Dq$(W)?BQB(W):W},lt1=function(W){W=oMC(W);
W.length>0&&W[0].focus()},ZJ9=function(W,e){e.stack&&(W.stack+="\n"+e.stack);
return W},p3Q=function(W){var e=a6(W,"Content-Type");
if(!e)return null;e=e.toLowerCase();if(e.startsWith("application/json"))return e.startsWith("application/json+protobuf")?new $qT:new _.RU;if(e.startsWith("application/x-protobuf")){W=a6(W,"Content-Transfer-Encoding");if(!W)return new wh;if(W.toLowerCase()=="base64")return new kT1}return null},xqS=function(W,e,t,b){var m=new yCC(function(X,I){return jzu.has(I)?X.sentinel==="gal"&&X.event!==void 0:!1},function(X){X.event?(X=CeT(X.event),X=!X||nMB(b,X)?!0:_.ZI(W.lastEvent,u2,2,cp)?!_.ZI(X,vp,1,cp)&&
!_.ZI(X,u2,2,cp):!_.ZI(X,vp,1,cp)&&!_.ZI(X,u2,3,cp)):X=!0;
return X});
t=_.m_(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",ftu(t)]]));if(W.nestedOrigins!==void 0)for(var q=_.R(W.nestedOrigins),Q=q.next();!Q.done;Q=q.next())t=_.m_(t,new Map([["origin",Q.value]]));return gMg(m,t,e).then(function(X){X=TQQ(X.event);if(_.ZI(X,vp,1,cp)){var I,u=(I=_.M7(X,vp,1,cp))==null?void 0:_.Js(I,2);u&&b.JSC$17182_logErrorEvent(JCC(u));I=_.M7(X,vp,1,cp);_.Js(I,2)===4?(X=_.M7(X,vp,1,cp),X={statusCode:11,statusMessage:_.T9(X,
3)}):(X=_.M7(X,vp,1,cp),X={statusCode:12,statusMessage:_.T9(X,3)});return X}_.ZI(X,u2,3,cp)?(X=_.M7(X,u2,3,cp),X={statusCode:1,consentLanguageKeys:_.T9(X,2)}):X={statusCode:1};return X}).catch(function(X){return X.errorCode!==void 0?{statusCode:X.errorCode,
statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},hbw=function(W){var e={};
if(W===void 0||W===null)return e;W.getToken()!==void 0&&OJl(W.getToken())&&OJl(W.getToken()).length>0&&(e.scopes=new Set(OJl(W.getToken())));W.getToken()!==void 0&&MIg(W.getToken())&&MIg(W.getToken()).length>0&&(e.capabilities=new Set(MIg(W.getToken())));_.T9(W,3)!==void 0&&(e.consistencyKey=_.T9(W,3));W.getName()!==void 0&&W.getName()!==""&&(e.linkName=W.getName());_.lI(W,szU,4)&&(W=_.mx(W,szU,4),W=Object.assign({},_.T9(W,1)&&{userId:_.T9(W,1)},_.T9(W,2)&&{displayName:_.T9(W,2)},_.T9(W,3)&&{email:_.T9(W,
3)},_.T9(W,5)&&{username:_.T9(W,5)},_.T9(W,4)&&{profilePicture:_.T9(W,4)}),e.profile=W);return e},HJu=function(W,e){var t=W.flowParams;
return{serviceId:t.serviceId,sessionId:t.sessionId,currentFlow:W.currentFlow,googleScopesString:e,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:t.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:t.dynamicUrlParameters,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp}},Ym$=function(W){var e=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";
KGC(HJu(W,e));e=PeQ(W);return e===null?Promise.resolve(VIw):e.start().then(function(t){var b,m=(b=t.link)==null?void 0:b.consistencyKey;return t.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&m!==void 0?(b=W.flowParams,iJ$(b.serviceId,b.sessionId,W.googleScopes,m,b.galService,W.config,t)):t})},zbE=function(W){var e=PeQ(W);
return e===null?Promise.resolve(G5({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):e.complete().then(function(t){var b,m=(b=t.link)==null?void 0:b.consistencyKey;return t.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&m!==void 0?(b=W.flowParams,iJ$(b.serviceId,b.sessionId,W.googleScopes,m,b.galService,W.config,t)):G5(t,W.callerState)},function(t){return G5({statusCode:12,
statusMessage:"Failed to complete the flow: "+t.message},W.callerState)})},iJ$=function(W,e,t,b,m,q,Q){return UqS(m,{serviceId:W,
sessionId:e,googleScopes:t,consistencyKey:b}).then(function(){return Q},function(X){return m.deleteLink({serviceId:W,
sessionId:e,accountLinkingEntryPoint:q.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+X.message}},function(I){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+I.message}})})},PeQ=function(W){switch(W.currentFlow){case 1:var e=W.flowParams;
W=_.mx(W.session,LGM,1);return Dk.createOAuthFlow(e,W);case 2:case 3:return e=W.flowParams,W=_.mx(W.session,EMQ,6),S9.createStreamlinedFlow(e,W);default:return null}},ACT=function(W,e){W===2&&(W=3);
var t=0;Bp.indexOf(W)!==-1&&(t=Bp.indexOf(W)+1);for(W=t;W<Bp.length;W++)if(e.has(Bp[W]))return Bp[W]},WYC=function(W){var e=W.serviceId;
var t=W.sessionId;var b=W.config;var m=W.galService;var q=W.capabilities;var Q=W.scopes;var X=W.loginHint;var I=W.callerState;var u=W.consentLanguageKeys;var c=W.linkName;var v=W.dynamicUrlParameters;var D=W.partnerConfigMinReadTimestamp;W=b.dataUsageNoticeConfig?b.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return m.startLinkingSession({serviceId:e,sessionId:t,capabilities:q,scopes:Q,loginHint:X,callerState:I,supportedFlows:NQS(b.supportedFlows),completionUrl:b.completionUrl,accountLinkingEntryPoint:b.accountLinkingEntryPoint,
consentLanguageKeys:u,dataUsageNoticeConfig:W,linkName:c,dynamicUrlParameters:v,partnerConfigMinReadTimestamp:D}).then(function(B){return new dqC(e,t,b,m,B,void 0,I,u,v,D)})},rA1=function(W,e,t){a:{var b=new erM;
if(b.storage!==null)try{var m=b.storage.get("SAVED_SESSION");if(m===void 0){var q=null;break a}if(m.serviceId===W){q=m;break a}}catch(Q){}q=null}if(q===null)return Promise.resolve({statusCode:2});tvS(W);b=b11(q.linkingSessionSerialized);return mnC(new dqC(W,q.sessionId,e,t,b,q.googleScopesString!==""&&q.googleScopesString!==void 0?new Set(q.googleScopesString.split(",")):void 0,q.callerState,q.consentLanguageKeys,q.dynamicUrlParameters,q.partnerConfigMinReadTimestamp),q.currentFlow,q.consentLanguageKeys)},
KGC=function(W){var e=new erM;
e.storage!==null&&e.storage.set("SAVED_SESSION",W)},tvS=function(W){var e=new erM;
if(e.storage!==null){var t=e.storage.get("SAVED_SESSION");t!==void 0&&t.serviceId===W&&e.storage.remove("SAVED_SESSION")}},NQS=function(W){var e=new Set;
W=_.R(W);for(var t=W.next();!t.done;t=W.next())t=t.value,t!==1&&qcT.has(t)&&e.add(qcT.get(t));return e},G5=function(W,e){e!==void 0&&(W.callerState=e);
return W},RrS=function(W){switch(W){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},XTl=function(W){return new QQS(W,new FY$(W))},wTg=function(W,e){e=e===void 0?!1:e;
var t=document.createElement("div");W&&(t.style.transform="scaleX(-1)");t.style.backgroundColor=e?"rgba(138,180,248,.24)":"#e8f0fe";t.style.height="4px";t.style.overflow="hidden";t.style.position="absolute";t.style.top="0";t.style.width="100%";t.style.zIndex="1500";t.setAttribute("aria-label","Loading");t.setAttribute("aria-live","polite");W=document.createElement("style");W.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  }";
t.appendChild(W);W=Io1();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var b=aoT(e);b.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(b);t.appendChild(W);W=Io1();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";e=aoT(e);e.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(e);t.appendChild(W);return t},Io1=function(){var W=document.createElement("div");
W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W},aoT=function(W){var e=document.createElement("span");
e.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";e.style.display="inline-block";e.style.position="absolute";e.style.width="100%";return e},uwQ=function(W){return W==null?void 0:_.WUU(W).valueOf()},DnQ=function(W){var e=document.body,t=!1,b=function(){t||(t=!0,cAT(m,q),setTimeout(function(){e.removeChild(q);
e.removeChild(m)},150))},m=vSC(W,getComputedStyle(e).direction==="rtl",b),q=Gk9(b);
cAT(m,q);e.appendChild(q);e.appendChild(m);window.requestAnimationFrame(function(){q.style.opacity="1";m.style.opacity="1";m.style.transform="translate(-50%, -50%) scale(1)";m.children[0].focus()})},vSC=function(W,e,t){var b=document.createElement("div");
b.style.position="fixed";b.style.alignItems="center";b.style.backgroundColor=W?"rgb(32, 33, 36)":"white";b.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";b.style.display="flex";b.style.flexDirection="column";b.style.justifyContent="center";b.style.left="50%";b.style.top="50%";b.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";b.style.zIndex="2002";document.body.clientWidth>=660?(b.style.borderRadius="8px",b.style.minHeight="220px",
b.style.maxHeight="90%",b.style.maxWidth="90%",b.style.minWidth="540px"):(b.style.height="100%",b.style.width="100%");b.setAttribute("aria-label","Error");b.setAttribute("aria-modal","true");b.setAttribute("role","alertdialog");b.addEventListener("keydown",function(q){q.key==="Escape"&&t()});
e=ScC(W,e,t);b.appendChild(BsC(e));b.appendChild(e);var m=document.createElement("img");m.src=W?"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";m.style.height="72px";m.style.width="72px";m.style.color="#9aa0a6";m.setAttribute("alt","");b.appendChild(m);m=document.createElement("h1");m.textContent="Something went wrong.  Try again.";
m.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";m.style.lineHeight="24px";m.style.fontSize="16px";m.style.textAlign="center";m.style.letterSpacing="0.1px";m.style.color=W?"rgb(232,234,237)":"#3c4043";b.appendChild(m);b.appendChild(BsC(e));return b},ScC=function(W,e,t){var b=document.createElement("button");
b.style.backgroundColor="transparent";b.style.border="none";b.style.borderRadius="50%";b.style.cursor="pointer";b.style.outline="none";b.style.padding="12px";b.setAttribute("aria-label","Close dialog");b.style.position="absolute";b.style.top="0";e?b.style.right="0":b.style.left="0";b.addEventListener("focus",function(){b.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
b.addEventListener("blur",function(){b.style.backgroundColor="transparent"});
b.addEventListener("mouseenter",function(){b.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
b.addEventListener("mouseleave",function(){b.style.backgroundColor="transparent"});
b.addEventListener("click",t);b.addEventListener("keydown",function(m){m.key!=="Enter"&&m.key!=="Space"||t()});
e=document.createElement("img");e.src=W?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";e.style.display="block";e.style.height="24px";e.style.width="24px";e.setAttribute("alt","");b.appendChild(e);return b},BsC=function(W){var e=document.createElement("div");
e.setAttribute("tabindex","0");e.setAttribute("aria-hidden","true");e.addEventListener("focus",function(){return void W.focus()});
return e},Gk9=function(W){var e=document.createElement("div");
e.style.backgroundColor="rgba(32,33,36,0.6)";e.style.bottom="0";e.style.left="0";e.style.position="fixed";e.style.right="0";e.style.top="0";e.style.transition=" opacity 150 ms linear";e.style.zIndex="2001";e.addEventListener("click",W);return e},cAT=function(W,e){e.style.opacity="0";
W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"},oSC=function(W,e){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));
W.src=e},o6=function(W){low.call(this,W)},l2=function(W,e){e=e===void 0?!1:e;
this.parsedImageUrl_=null;W instanceof Z1w||($n1==void 0&&($n1=new kkB),W=$n1.parse(W.toString(),e));W=this.parsedImageUrl_=W;W.JSC$17394_parsedOptions_==void 0&&((e=W.getOptions())||(e=""),W.JSC$17394_parsedOptions_=(new pTC).parse(e));low.call(this,W.JSC$17394_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;e=W.uri_.JSC$8077_port_;this.JSC$17396_domain_=W.uri_.JSC$8077_domain_+(e?":"+e:"");this.JSC$17396_query_=this.parsedImageUrl_.uri_.JSC$8077_queryData_.toString()},
yAM=function(W){this.mode=4;
this.data=W;this.parsedData=[];W=0;for(var e=this.data.length;W<e;W++){var t=[],b=this.data.charCodeAt(W);b>65536?(t[0]=240|(b&1835008)>>>18,t[1]=128|(b&258048)>>>12,t[2]=128|(b&4032)>>>6,t[3]=128|b&63):b>2048?(t[0]=224|(b&61440)>>>12,t[1]=128|(b&4032)>>>6,t[2]=128|b&63):b>128?(t[0]=192|(b&1984)>>>6,t[1]=128|b&63):t[0]=b;this.parsedData.push(t)}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))},jQ1=function(W){this.typeNumber=0;
this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Zk=function(W,e){if(W.length==void 0)throw Error("tk`"+W.length+"`"+e);
for(var t=0;t<W.length&&W[t]==0;)t++;this.num=Array(W.length-t+e);for(e=0;e<W.length-t;e++)this.num[e]=W[e+t]},CUl=function(W,e){this.totalCount=W;
this.dataCount=e},nSE=function(){this.buffer=[];
this.length=0},foS=function(){var W=!1;
if(_.ag9()){W=_.vZ();var e="";_.czv()?(e=/Windows (?:NT|Phone) ([0-9.]+)/,e=(W=e.exec(W))?W[1]:"0.0"):_.Jz()?(e=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,e=(W=e.exec(W))&&W[1].replace(/_/g,".")):_.uDv()?(e=/Mac OS X ([0-9_.]+)/,e=(W=e.exec(W))?W[1].replace(/_/g,"."):"10"):_.IR(_.vZ(),"KaiOS")?(e=/(?:KaiOS)\/(\S+)/i,e=(W=e.exec(W))&&W[1]):_.ag9()?(e=/Android\s+([^\);]+)(\)|;)/,e=(W=e.exec(W))&&W[1]):_.v99()&&(e=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,e=(W=e.exec(W))&&W[1]);W=e||""}return W},MvU=function(W,
e){this.JSC$17419__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(e)for(var t in e)this.JSC$17419__htOption[t]=e[t];this.JSC$17419__htOption.useSVG&&(gSB=TsC);this.JSC$17419__android=foS();this.JSC$17419__el=W;this._oQRCode=null;this._oDrawing=new gSB(this.JSC$17419__el,this.JSC$17419__htOption);this.JSC$17419__htOption.text&&(W=this.JSC$17419__htOption.text,this._oQRCode=new jQ1(this.JSC$17419__htOption.correctLevel),JAB(this._oQRCode,W),e=this._oQRCode,xnw(e,!1,O1S(e)),this.JSC$17419__el.title=
W,this._oDrawing.draw(this._oQRCode),this.makeImage())},sQQ=function(W,e,t,b,m){W.save();
var q=new Path2D;q.roundRect(e,t,b*7,b*7,b*2);q.roundRect(e+b,t+b,b*5,b*5,b*1.3);q.roundRect(e+2*b,t+2*b,b*3,b*3,b);W.clip(q,"evenodd");W.fillStyle=m;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()},kj=function(W,e){if(typeof W!=="function")throw Error("wk");
return _.tz.setTimeout(function(){W()},e)},pW=function(){},H1$=function(W,e,t,b,m){(new pW).debug("TestLoadImageWithRetries: "+m);
if(b==0)t(!1);else{var q=m||0;b--;hrl(W,e,function(Q){Q?t(!0):_.tz.setTimeout(function(){H1$(W,e,t,b,q)},q)})}},hrl=function(W,e,t){var b=new pW;
b.debug("TestLoadImage: loading "+W);var m=new Image;m.onload=function(){try{b.debug("TestLoadImage: loaded"),KYg(m),t(!0)}catch(q){}};
m.onerror=function(){try{b.debug("TestLoadImage: error"),KYg(m),t(!1)}catch(q){}};
m.onabort=function(){try{b.debug("TestLoadImage: abort"),KYg(m),t(!1)}catch(q){}};
m.ontimeout=function(){try{b.debug("TestLoadImage: timeout"),KYg(m),t(!1)}catch(q){}};
_.tz.setTimeout(function(){if(m.ontimeout)m.ontimeout()},e);
m.src=W},KYg=function(W){W.onload=null;
W.onerror=null;W.onabort=null;W.ontimeout=null},PUS=function(){this.front_=[];
this.back_=[]},VvC=function(W,e){_.ka.call(this);
this.delay_=new _.yV(this.JSC$17545_onTick_,0,this);_.w$(this,this.delay_);this.JSC$17543_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")e&&(W=(0,_.p3)(W,e));else if(W&&typeof W.handleEvent==="function")W=(0,_.p3)(W.handleEvent,W);else throw Error("Da");this.JSC$17545_listener_=W},yu=function(W,e,t,b,m,q,Q,X,I,u,c,v,D,B){t=t===void 0?!1:t;
b=b===void 0?function(){return""}:b;
m=m===void 0?!1:m;q=q===void 0?!1:q;Q=Q===void 0?!1:Q;X=X===void 0?function(){return _.aT({})}:X;
I=I===void 0?!1:I;c=c===void 0?!1:c;v=v===void 0?!1:v;D=D===void 0?!1:D;B=B===void 0?!1:B;this.JSC$17546_pathPrefix_=W;this.defaultQueryParams_=e;this.pubsub_=new _.uG;this.reconnectTimer_=new VvC(this.safeReconnect_,this);this.JSC$17546_channel_=null;this.JSC$17546_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17546_pendingMessages_=[];this.enableAsyncTest_=t;this.JSC$17546_getXsrfToken_=b;this.useAsyncBrowserChannelHandler_=q;this.getAuthorizationHeader_=
X;this.getAuthorizationHeaderSync_=u;this.enableCachedUpdateAuthorizationHeader_=Q;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.aT();this.enableLoungeTokenRefresh_=m;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=I;this.disableMdxAuthForNonPlaybackMessages_=c;this.disableMdxAuthForAdMessages_=v;this.enableMdxAuthForConnectionOnly_=D;this.disableMdxAuthForShortsMessages_=B;this.JSC$17546_channelOpenedCounter=new i1S;this.JSC$17546_channelClosedCounter=new YcM;this.channelMessageSentCounter=
new zrC;this.JSC$17546_channelMessageReceivedCounter=new UnC;this.JSC$17546_channelErrorCounter=new LYl;this.pendingMapsOnClosedCounter=new ESw;this.undeliveredMapsOnClosedCounter=new AAU},j9=function(W){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var e=Number(_.Lt(W)[4]||null)||"";e&&(this.port=":"+e);this.domain=_.Et(W)||"";W=_.vZ();W.search("MSIE")>=0&&_.cZ(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},CW=function(W){W=W||{};
this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"},Ns1=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var e=Math.random()*16|0;
return(W=="x"?e:e&3|8).toString(16)})},dnU=function(W){return _.yO(W,function(e){return{key:e.id,
name:e.name}})},W$w=function(W,e){return _.Ms(W,function(t){return t||e?!t!=!e?!1:t.id==e.id:!0})},fW=function(W,e){return _.Ms(W,function(t){return nW(t,e)})},rjw=function(){var W=epu(),e=tVQ();
if(bcU()){var t=W,b=_.o9K(t,e);b<0&&_.BGc(t,-(b+1),0,e)}W=mgC(W);if(W.length==0)try{_.F$v("remote_sid")}catch(m){}else try{_.GJ("remote_sid",W.join(","),-1)}catch(m){}},epu=function(){var W=_.Ie("yt-remote-connected-devices")||[];
W.sort(_.rB);return W},mgC=function(W){if(W.length==0)return[];
var e=W[0].indexOf("#"),t=e==-1?W[0]:W[0].substring(0,e);return _.yO(W,function(b,m){return m==0?b:b.substring(t.length)})},qTU=function(W){_.X_("yt-remote-connected-devices",W,86400)},tVQ=function(){if(RpT)return RpT;
var W=_.Ie("yt-remote-device-id");W||(W=Ns1(),_.X_("yt-remote-device-id",W,31536E3));for(var e=epu(),t=1,b=W;_.PZ(e,b);)t++,b=W+"#"+t;return RpT=b},QBE=function(){return _.Ie("yt-remote-session-browser-channel")},bcU=function(){return _.Ie("yt-remote-session-screen-id")},IZ1=function(W){W.length>5&&(W=W.slice(W.length-5));
var e=_.yO(F$g(),function(b){return b.loungeToken}),t=_.yO(W,function(b){return b.loungeToken});
_.NqR(t,function(b){return!_.PZ(e,b)})&&XFC();
_.X_("yt-remote-local-screens",W,31536E3)},F$g=function(){return _.Ie("yt-remote-local-screens")||[]},XFC=function(){_.X_("yt-remote-lounge-token-expiration",!0,86400)},gh=function(W){W||(_.ae("yt-remote-session-screen-id"),_.ae("yt-remote-session-video-id"));
rjw();W=epu();_.UL(W,tVQ());qTU(W)},wFu=function(){aZg();
return T5?!!T5.get("yt-remote-use-staging-server"):!1},aZg=function(){if(!T5){var W=_.DgR();
W&&(T5=new _.lG(W))}},G4U=function(W,e,t,b,m){t=t===void 0?function(){return""}:t;
var q=function(){return new yu(J4(W,"/bc"),e,!1,t,b)};
return _.S("enable_mdx_web_channel_desktop")?new urw(function(){return new cjg(J4(W,"/wc"),e,t)}):new v4g(q,m)},o4U=function(){var W=Dg$;
STE();xj.push(W);B3g()},O_=function(W,e){STE();
var t=lZS(W,String(e));xj.length==0?ZcE(t):(B3g(),_.VZ(xj,function(b){b(t)}))},MF=function(W){O_("CP",W)},STE=function(){xj||(xj=_.HO("yt.mdx.remote.debug.handlers_")||[],_.Nz("yt.mdx.remote.debug.handlers_",xj))},ZcE=function(W){var e=(s_+1)%50;
s_=e;$g$[e]=W;k4l||(k4l=e==49)},B3g=function(){var W=xj;
if($g$[0]){var e=k4l?s_:-1,t={};do t={record$jscomp$13:void 0},e=(e+1)%50,t.record$jscomp$13=$g$[e],_.VZ(W,function(b){return function(m){m(b.record$jscomp$13)}}(t));
while(e!=s_);$g$=Array(50);s_=-1;k4l=!1}},lZS=function(W,e){var t=(Date.now()-pFS)/1E3;
t.toFixed&&(t=t.toFixed(3));var b=[];b.push("[",t+"s","] ");b.push("[","yt.mdx.remote","] ");b.push(W+": "+e,"\n");return b.join("")},h4=function(W){_.Li.call(this);
this.JSC$17570_logName_=W;this.screens=[]},KW=function(W){h4.call(this,"LocalScreenService");
this.JSC$17577_http_=W;this.loungeTokenRefreshTimer_=NaN;Hp(this);this.info("Initializing with "+yjw(this.screens))},Pp=function(W,e){e=e===void 0?!1:e;
h4.call(this,"ScreenService");this.JSC$17583_http_=W;this.disableAutomaticScreenCache_=e;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};jBS(this)},Vu=function(W,e,t){_.Li.call(this);
this.JSC$17587_logName_=t;this.JSC$17587_screenService_=W;this.receiver_=e;this.screen_=null},VVC=function(W,e,t){t.disableCastApi?i2("Cannot initialize because disabled by Mdx config."):Ckg()?n4C(W,t)&&(fZ1(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?g4w(e):(window.__onGCastApiAvailable=function(b,m){b?g4w(e):(Yj("Failed to load cast API: "+m),T3C(!1),fZ1(!1),_.ae("yt-remote-cast-available"),_.ae("yt-remote-cast-receiver"),Jjl(),e(!1))},t.loadCastApiSetupScript?_.sT("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?xgu()>=60&&Oc1():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?MVC():xgu()>=89?sBg():(hpU(),HcC(K$w.map(Pk$))))):i2("Cannot initialize because not running Chrome")},Jjl=function(){i2("dispose");
var W=z5();W&&W.dispose();_.Nz("yt.mdx.remote.cloudview.instance_",null);icE(!1);_.A8G(YTT);YTT.length=0},zpS=function(){return!!_.Ie("yt-remote-cast-installed")},Ugl=function(){var W=_.Ie("yt-remote-cast-receiver");
return W?W.friendlyName:null},L$l=function(){i2("clearCurrentReceiver");
_.ae("yt-remote-cast-receiver")},E41=function(){return zpS()?z5()?z5().getCastSession():(Yj("getCastSelector: Cast is not initialized."),null):(Yj("getCastSelector: Cast API is not installed!"),null)},N3$=function(W,e){AjQ()?z5().setConnectedScreenStatus(W,e):Yj("setConnectedScreenStatus called before ready.")},Ckg=function(){var W=_.vZ().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.G9||W},n4C=function(W,e){var t=!1;
z5()||(W=new U_(W,e),W.subscribe("yt-remote-cast2-availability-change",function(b){_.X_("yt-remote-cast-available",b);e9("yt-remote-cast2-availability-change",b)}),W.subscribe("yt-remote-cast2-receiver-selected",function(b){i2("onReceiverSelected: "+b.friendlyName);
_.X_("yt-remote-cast-receiver",b);e9("yt-remote-cast2-receiver-selected",b)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(b){i2("onReceiverResumed: "+b.friendlyName);
_.X_("yt-remote-cast-receiver",b);e9("yt-remote-cast2-receiver-resumed",b)}),W.subscribe("yt-remote-cast2-session-change",function(b){i2("onSessionChange: "+dgB(b));
b||_.ae("yt-remote-cast-receiver");e9("yt-remote-cast2-session-change",b)}),_.Nz("yt.mdx.remote.cloudview.instance_",W),t=!0);
i2("cloudview.createSingleton_: "+t);return t},z5=function(){return _.HO("yt.mdx.remote.cloudview.instance_")},g4w=function(W){T3C(!0);
fZ1(!1);z5().init(!1,function(e){e?(icE(!0),_.ND2("yt-remote-cast2-api-ready")):(Yj("Failed to initialize cast API."),T3C(!1),_.ae("yt-remote-cast-available"),_.ae("yt-remote-cast-receiver"),Jjl());W(e)})},i2=function(W){O_("cloudview",W)},Yj=function(W){O_("cloudview",W)},T3C=function(W){i2("setCastInstalled_ "+W);
_.X_("yt-remote-cast-installed",W)},AjQ=function(){return!!_.HO("yt.mdx.remote.cloudview.apiReady_")},icE=function(W){i2("setApiReady_ "+W);
_.Nz("yt.mdx.remote.cloudview.apiReady_",W)},fZ1=function(W){_.Nz("yt.mdx.remote.cloudview.initializing_",W)},LW=function(W){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(W)},W1S=function(){var W,e;
return _.F(function(t){if(t.nextAddress==1)return(_.J8K()||_.S("use_new_nwl"))&&_.nQL().isNetworkAvailable()?_.a(t,_.d8(),2):t.return();if(t.nextAddress!=3)return(W=t.yieldResult)?_.a(t,s_l(W),3):t.return();e=t.yieldResult;if(!e.length)return t.return();e.forEach(function(b){var m={timestamp:b.timestamp};b=b.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:b.appShellAssetLoadReport,options:m}:b.clientError?{payloadName:"clientError",payload:b.clientError,options:m}:void 0;b&&
_.nJ(b.payloadName,b.payload,b.options)});
e.length===100&&_.Tm.addLowPriorityJob(W1S);_.u8(t)})},efS=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(e){return!(!e||!e.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer},tzC=function(W){if(W.response){var e=W.response;
if(e&&e.overlay&&e.overlay.tooltipRenderer)return e.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(t){return!(!t||!t.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer},m29=function(W){if(!beE&&(W=W||_.Ot("ZWIEBACK_PING_URLS"))&&W.length){beE=!0;
for(var e=0;e<W.length;e++)_.Vf(W[e])}},q6g=function(W){if(_.kJ.get(_.Ot("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&CG1();
try{ry$().then(function(){},function(){}),_.Qm(q6g,18E5)}catch(e){_.st(e)}}},Rf$=function(){var W=_.B6(),e=W.getFlag(119),t=window.devicePixelRatio>1;
document.body&&_.Vd(document.body,"exp-invert-logo")&&(t&&!_.Vd(document.body,"inverted-hdpi")?_.Nk(document.body,"inverted-hdpi"):!t&&_.Vd(document.body,"inverted-hdpi")&&_.ED(document.body,"inverted-hdpi"));e!=t&&(_.oT(0,119,t),W.save())},QTC=function(W){return W.filter(function(e){return"ypcGetCartEndpoint"in e||"ypcFixInstrumentEndpoint"in e})},F1B=function(W){return W.filter(function(e){return!_.l(e,_.w2v)})},I8w=function(W){W=_.R(W);
for(var e=W.next(),t={};!e.done;t={setter$jscomp$6:void 0},e=W.next()){var b=e.value;e=b.params;b=b.service;e&&b&&(t.setter$jscomp$6=X6Q[b],t.setter$jscomp$6&&e.forEach(function(m){return function(q){var Q=q.key;q=q.value;Q&&q&&(0,m.setter$jscomp$6)(Q,q)}}(t)))}},w6C=function(W,e){var t,b,m,q,Q,X,I;
_.F(function(u){switch(u.nextAddress){case 1:t=_.fB.getInstance();b=_.uL.instance;m=_.Vp.instance;if(!m)return a8l(W,b,e),u.return();_.Qh(u,2);W.onLoadingCommand&&b.resolveCommand(W.onLoadingCommand);return _.a(u,t.getCurrentPositionFromGeolocation(),4);case 4:q=u.yieldResult;if(!W.resolveLocationCommand){u.jumpTo(5);break}Q=t.createLocationInfo(q);return _.a(u,_.z2(m,W.resolveLocationCommand,{locationInfo:Q}),6);case 6:X=u.yieldResult;if(!X||"error"in X&&X.error||X.errorMetadata)return a8l(W,b,e),
u.return();var c;if(X==null?0:(c=X.onResponseReceivedActions)==null?0:c.length){c=_.R(X.onResponseReceivedActions);for(var v=c.next();!v.done;v=c.next())b.resolveCommand(v.value)}(_.l(W.onSuccessCommand,_.z4)||_.l(W.onSuccessCommand,_.Sf))&&_.q2(e.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.Hi(u,0);break;case 2:I=_.w9(u);if(I instanceof GeolocationPositionError&&I.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&b.resolveCommand(W.onDeniedCommand),
u.return();a8l(W,b,e);_.u8(u)}})},a8l=function(W,e,t){W.onFailureCommand&&(e.resolveCommand(W.onFailureCommand),_.RT(t.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},cyu=function(W,e){var t=_.l(W,_.pbN);
if(t&&e){W=t.videoIds||[t.videoId];var b;e=(b=_.q2(e,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:b.returnValue;var m;t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?m=e?e:W.map(function(q){return{videoId:q,navigationEndpoint:t.videoCommand}}):e&&(m=e);
m&&(b=m.map(function(q){var Q=Object,X=Q.assign;var I=q.navigationEndpoint;if(!_.l(I,_.Za)){var u=_.l(I,_.z4);if(u){if(delete u.index,delete u.playlistId,u=_.l(I==null?void 0:I.commandMetadata,_.ez),u==null?0:u.url){var c=u.url;c=_.W6(c,"list");c=_.W6(c,"index");u.url=c}}else I=void 0}return X.call(Q,{},q,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:I})}),u5C(b,t))}},vh1=function(W){var e=_.K5();
if(W=_.l(W,_.ysh))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&e.clearQueue(),W.closeMiniplayer&&_.ee().resolve(_.Kn).close(!0)},D2u=function(W){GvT(_.K5(),W)},S6T=function(W){var e;
(W=(e=_.l(W,_.$7o))==null?void 0:e.setVideoIds)&&W.forEach(function(t){_.pCZ(_.K5(),t)})},oh1=function(W){ByS(_.K5(),W)},l8C=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}},ZeB=function(){var W,e;
return(e=(W=window).matchMedia)==null?void 0:e.call(W,"(prefers-reduced-motion: reduce)").matches},$2S=function(W){var e=_.ee().resolve(_.Wi(_.q1));
if(e){var t={beforeTransition:function(){W.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){W.style.viewTransitionName=""}};
E_(e,"slide",t);E_(e,"zoom",t)}},kvQ=function(W,e,t){return{horizontalAlignment:W.x+t.width/2<e.width/2?"west":"east",
verticalAlignment:W.y+t.height/2<e.height/2?"north":"south"}},jTU=function(W,e,t,b,m){m=m===void 0?new _.jH(0,0):m;
return p6Q(yyg(W,e,t,b),m)},yyg=function(W,e,t,b){return new _.jH(W==="west"?16:t.width-b.width-16,e==="north"?16:t.height-b.height-16)},CcC=function(W,e){var t=0;
W&&(t+=76);e&&(t+=285);return t},nhT=function(W){var e=["h",
"m","s"],t=_.EL(e);t.reverse();var b={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Q){var X=(Q.match(/[hms]/)||[""])[0];return X?(b[X]=parseInt(Q.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&t.length;){var m=t.shift();m in b||(b[m]=parseInt(W.shift(),10))}if(W.length||b.s>59||b.m>59||b.h>9)return null;var q="";e.forEach(function(Q){b[Q]&&(q+=""+b[Q]+Q)});
return q||null},f8$=function(W){W=W.data;
return _.w("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.w("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.w(_.A_,{data:{thumbnails:[{url:W.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.w("div",{class:"profile-badge-view-model-wiz__content"},_.w("div",{class:"profile-badge-view-model-wiz__badge-description"},W.badgeDesc),W.badgeSubtitle?_.w("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},W.badgeSubtitle):null))},ghu=function(W){W=
W.data;
var e=_.zT("yt-comment-interaction-view-model");_.IXg(e,W.rendererContext);return _.w("yt-comment-interaction-view-model",{el:e,class:"yt-comment-interaction-view-model-wiz"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":W.onTapA11yLabel,"on:keydown":_.rRz(),tabindex:0},_.w("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},W.headerPrefix,' "',W.videoTitle),_.w("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.w("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.w("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},W.commentContent),_.w("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.w(_.A_,{data:{thumbnails:[{url:W.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},Jy9=function(W){W=W.data;
return _.w("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},TyB(W.avatar),_.w("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},W.channelName))},Oe9=function(W){W=W.data;
var e;return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},W.commentsInteractionTitle)),(e=W.comments)==null?void 0:e.map(function(t){return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},x2B(t))}))},MzS=function(W){W=W.data;
var e=_.h_({elementsCommand:W.subscriptionsAccessButtonCommand}),t=_.zT("a");_.KAs(t,_.Mk(W.subscriptionsAccessButtonCommand));var b;return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("a",{el:t,"on:click":_.Be(function(m){if(e==null?0:e.onclick)e.onclick(m);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},W.sharedSubscriptionsTitle),_.w("div",null,x2B(W.subscriptionsAccessButton)))),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(b=W.sharedSubscriptions)==null?void 0:b.slice(0,5).map(function(m){return _.w("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",x2B(m))})))},sT1=function(W){W=W.data;
var e;return _.w("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.w("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.w("h2",{class:"yt-profile-info-view-model-wiz__section-title"},W.sharedSubscriptionsTitle)),_.w("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=W.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(t){return _.w("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",x2B(t))})))},hf$=function(W){W=W.data;
return _.w("div",{class:"yt-profile-info-view-model-wiz__activity"},[W.profileBadgeInfoYtWide,W.profileBadgeInfoChannelWide].map(function(e){var t,b,m,q,Q;return e?_.w(_.qD,null,_.w("div",{class:"yt-profile-info-view-model-wiz__header"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-title"},e==null?void 0:e.profileSectionTitle),_.w("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},e==null?void 0:(t=e.commentBadge)==
null?void 0:t.commentDesc),(e==null?0:(b=e.commentBadge)==null?0:b.blackHeartDesc)?_.w("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.w("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.w(_.A_,{data:{thumbnails:[{url:e==null?void 0:(m=e.commentBadge)==null?void 0:m.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.w("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},e==null?void 0:(q=
e.commentBadge)==null?void 0:q.blackHeartDesc))),_.w("div",{class:"yt-profile-info-view-model-wiz__badge"},e==null?void 0:(Q=e.badges)==null?void 0:Q.map(function(X){return _.w(f8$,{data:X})}))):null}))},HeT=function(W){W=W.data;
return _.w("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.w(hf$,{data:W}),W.comments?_.w(Oe9,{data:W}):null,W.sharedSubscriptionsTitle?W.subscriptionsAccessButtonCommand?_.w(MzS,{data:W}):_.w(sT1,{data:W}):null)},PcE=function(W){var e=W.data;
W=e?K1T(e.profileIdentityInfo):void 0;e=e?K1T(e.profileInfo):void 0;return _.w("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},W,e)},VzU=function(W,e){var t=_.qlb(e,{},W,!0);
return new Promise(function(b,m){t.listenOnce("n",function(){m(Error("hl`"+t.JSC$25966_getErrorDescription()))});
t.listenOnce("l",function(){var q=t.getResponseCode();if(q!==200)m(Error("il`"+e+"`"+W.type+"`"+W.size+"`"+q));else try{b(JSON.parse(t.getResponseText()).encryptedBlobId)}catch(Q){m(Q)}});
t.run()})},ie9=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))},Y6l=function(W){return new Promise(function(e,t){var b=new FileReader;
b.onloadend=function(){try{var m=new Uint8Array(b.result);m.length<8&&t(void 0);var q=m.subarray(0,8);m="";for(var Q=0;Q<q.length;Q++)m+=("0"+q[Q].toString(16)).substr(-2);m.startsWith("ffd8ff")?e("image/jpeg"):m.startsWith("47494638")?e("image/gif"):m.startsWith("89504e470d0a1a0a")?e("image/png"):m.startsWith("424d")?e("image/bmp"):e(void 0)}catch(X){t(X)}};
b.onerror=t;b.readAsArrayBuffer(W)})},zfS=function(W){return new Promise(function(e,t){var b=new Image;
b.crossOrigin="anonymous";b.onload=function(){var m=document.createElement("canvas");m.width=b.naturalWidth;m.height=b.naturalHeight;var q=m.getContext("2d");if(!q)throw Error("jl");q.drawImage(b,0,0);q=ie9(W);m.toBlob(function(Q){Q?e(Q):t()},q)};
b.src=W})},L11=function(W,e){var t;
if(((t=_.l(W,_.Za))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b;_.q2((b=e.hostElement)!=null?b:e,"yt-shorts-reset");_.noB(_.ee().resolve(_.B1),W).then(function(q){U29(q,e,W)})}else{var m;
_.X5((m=e.hostElement)!=null?m:e,[W]).then(function(q){q&&U29(q.data,e,W)})}},U29=function(W,e,t){if(W){var b=_.l(W.replacementEndpoint,_.Za);
if(b){W.sequenceContinuation&&(b.sequenceParams=W.sequenceContinuation);var m;_.q2((m=e.hostElement)!=null?m:e,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.l(W.watchStatus,_.Qrb)){var q;_.q2((q=e.hostElement)!=null?q:e,"yt-navigate",{endpoint:t})}}},EhQ=function(W){var e=_.ee().resolve(_.hh),t=QzM(e.getState())||"";
e=_.UTL(e.getState())||"";t=t==="ytd-browse"&&e==="home";return _.S("web_guide_entry_enable_cache_for_non_home_pages")?(W=(W==null?void 0:W.navigationEndpoint)&&_.Da(W.navigationEndpoint)==="home",{disableCache:t&&W}):{disableCache:t}},Ayu=function(W){if(!W)return!1;
try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(e){return!1}return Ayu(W.parentNode)},A4=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1},NyM=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1},d2C=function(W,e,t){if(!W)return null;
var b=A4(W);if(b&&t)return e=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+e);if(b&&!t)return document.createTextNode("");if(NyM(W))return t=W.alt,W=W.dataset.emojiId,!W&&e&&(e=_.l0(e,t))&&e.isCustomEmoji&&(W=e.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(t);b=W.cloneNode(!1);for(var m=0;m<W.childNodes.length;++m){var q=d2C(W.childNodes[m],e,t);q&&b.appendChild(q)}return b},NF=function(W){return W?A4(W)?W:NF(W.lastChild):
null},WlC=function(W){return W?A4(W)?W:WlC(W.firstChild):null},eoM=function(W){if(!W)return null;
for(var e=W.previousSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.previousSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.previousSibling;else break;(e=NF(e))?W=e:W=(W=W.parentNode)?NF(W.previousElementSibling):null;return W},twQ=function(W){if(!W)return null;
for(var e=W.nextSibling;e;)if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="BR")e=e.nextSibling;else if(e.nodeType===Node.TEXT_NODE&&/\s+/.test(e.textContent))e=e.nextSibling;else break;return(e=WlC(e))?e:twQ(W.parentNode)},bG$=function(W){var e=_.$L(),t=e.JSC$9301_getStartNode();
if(!Ayu(t.parentNode))return null;e=e.JSC$9301_getStartOffset();if(t.nodeType===Node.TEXT_NODE){var b=_.JD(t,A4);if(b){if(W&&e===0||!W&&e===t.length)return b}else{if(W&&e===t.length)return!t||t.nodeName==="BR"||t.nextElementSibling&&_.kL(t.nextElementSibling,"display")==="block"?null:WlC(t.nextElementSibling);if(!W&&e===0)return t?NF(t.previousElementSibling):null}}if(t.nodeType===Node.ELEMENT_NODE)if(W){if(0<=e&&e<t.childNodes.length)return WlC(t.childNodes[e])}else if(0<e&&e<=t.childNodes.length)return NF(t.childNodes[e-
1]);return null},mfU=function(W,e,t){if(!W)return null;
if(W.nodeType===Node.TEXT_NODE)if(t){var b=eoM(W);if(b&&!/^\s+\S/.test(W.wholeText.substr(0,e)))return b}else if((b=twQ(W))&&!/\S\s+/.test(W.wholeText.substr(e,W.wholeText.length)))return b;return W.nodeType===Node.ELEMENT_NODE?t?eoM(W.childNodes[e]):twQ(W.childNodes[e]):mfU(W.parentNode,e,t)},rmQ=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var e="";
for(W=W.firstChild;W;W=W.nextSibling)e+=rmQ(W);return e;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}},qb$=function(W){W=W.data;
return _.w("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.w("div",null,_.w(_.WL,{text:W.title})),W.subtitle?_.w("div",{class:"ytd-menu-title-renderer__subtitle"},_.w(_.WL,{text:W.subtitle})):null)},RoU=function(W){switch(W){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"}},Q1B=function(W){return W.map(function(e){return{settingsRadioOptionRenderer:{title:_.ml(e.name),
asideText:_.ml(e.approximateSize),id:RoU(e.format)}}})},XmC=function(W){if(W&&W.length!==0)return W.filter(Flg()).map(function(e){return{settingsRadioOptionRenderer:{title:e.name,
asideText:e.approximateSize,id:RoU(e.formatType)}}})},dh=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},INU=function(W,e){W=new Set(W!=null?W:[]);
if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(e)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},aNu=function(W){var e=W.indexOf("(");
return e!==-1?W.substring(e+1,W.length-1):W},wmE=function(W){switch(W){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},cm1=function(W,e,t,b,m,q){var Q=_.kJ.clone(u41);
Q.locale=_.Ot("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Q.report={description:m||"<empty>"};m=_.Ot("SBOX_SETTINGS",{});e=e.join(",");var X=Date.now();W={choice_cc:b,choice_id_cc:t,choices_sc:e,gl:m.REQUEST_DOMAIN,hl:m.REQUEST_LANGUAGE,query:W,time:X};q&&(W.choice_additional_comment_cc=q);_.ano(Q,W)},vgB=function(W){var e=new Map;
e.set("authuser",_.Ot("SESSION_INDEX","0"));return _.m_(W,e)},DfU=function(W){var e;
return _.F(function(t){switch(t.nextAddress){case 1:if(!W||!GqQ(W))return t.return(null);e=null;switch(_.Ot("INNERTUBE_CLIENT_NAME")){case "WEB":return t.jumpTo(2);case "WEB_REMIX":e=W.getPlayer()}t.jumpTo(3);break;case 2:return _.a(t,W.getPlayerPromise(),4);case 4:e=t.yieldResult;t.jumpTo(3);break;case 3:return t.return(e)}})},GqQ=function(W){return["ytd-player",
"ytmusic-player"].includes(String(W.tagName||"").toLowerCase())},SbM=function(W){W=Math.round(W);
return W%2?W-1:W},BOE=function(W){W=Math.round(W);
return W%2===0?W-1:W},ogl=function(W){var e,t,b;
if(W=(e=W.createPlaylistDialogFormSchema)==null?void 0:(t=e.fieldSchemas)==null?void 0:(b=t.title)==null?void 0:b.validationSchema)for(e=[W.syncStep,W.asyncStep].filter(function(m){return m!==void 0}),e=_.R(e),t=e.next();!t.done;t=e.next()){t=t.value.rules;
if(!t)break;t=_.R(t);for(t=t.next();!t.done;t=t.next())return _.l(t.value,_.$L$)}},ZGu=function(W){var e,t,b;
if(W=(e=W.createPlaylistDialogFormSchema)==null?void 0:(t=e.fieldSchemas)==null?void 0:(b=t.visibility)==null?void 0:b.validationSchema)for(e=[W.syncStep,W.asyncStep].filter(function(m){return m!==void 0}),e=_.R(e),t=e.next();!t.done;t=e.next()){t=t.value.rules;
if(!t)break;t=_.R(t);for(b=t.next();!b.done;b=t.next())if(b=_.l(b.value,lNg))return e=void 0,(e=b.translations)==null?void 0:e.visibilityNotValidErrorMessage}},$fS=function(){var W,e;
return(e=(W=_.ee().resolve(_.Wi(_.zf)))==null?void 0:W())!=null?e:!1},kqQ=function(W){var e=21;
if(!W)return e;e+=W.headerTitle?27:0;e+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return e+=W.headerTitle&&W.headerSubtitle?16:0},pmC=function(W){var e=0;
if(!W)return e;e+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;e+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return e+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12},ym9=function(W){var e=new _.uG,t=W;
return{subscribe:function(b){e.subscribe("changed",b)},
dispatch:function(b,m){var q=t;b==="Touch Start"?t=Object.assign({},q,{isAnimating:!1,initialY:m.event.touches[0].clientY}):b==="Touch Move"?(b=Math.min(m.fullContentWrapperHeight,m.contentHeightMap[m.contentWrapperId]+kqQ(m.header)-pmC(m.footer)),t=Object.assign({},q,{currentY:Math.max(m.contentScrollable?-1*(q.initialY-24):0,m.event.touches[0].clientY-q.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,(q.isFullScreen?b:m.contentWrapperHeight)-q.currentY))})):t=b==="Snap To Full Screen"?
Object.assign({},q,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:m.maxHeight}):b==="Snap To Neutral Position"?Object.assign({},q,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:m.maxHeight}):b==="Close Sheet"?Object.assign({},q,{isAnimating:!0,currentY:m.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:m.maxHeight}):q;e.publish("changed",t)}}},j1S=function(W){return _.Be(function(e){W(e);
return!1})},CXC=function(){_.ee().resolve(_.lR).closeSheet()},ngC=function(W){var e,t,b,m,q,Q,X,I,u,c,v;
return{headerTitle:(e=W.headerTitle)==null?void 0:e.call(W),headerSubtitle:(t=W.headerSubtitle)==null?void 0:t.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(b=W.footerButtonType)==null?void 0:b.call(W),footerLeadingLabel:(m=W.footerLeadingLabel)==null?void 0:m.call(W),footerTrailingLabel:(q=W.footerTrailingLabel)==null?void 0:q.call(W),shouldShowIcons:(Q=W.shouldShowIcons)==null?void 0:Q.call(W),
skipContentClick:(X=W.skipContentClick)==null?void 0:X.call(W),additionalClassName:(I=W.additionalClassName)==null?void 0:I.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(u=W.focusOnClose)==null?void 0:u.call(W),isDisabled:(c=W.isDisabled)==null?void 0:c.call(W),disabledCommand:(v=W.disabledCommand)==null?void 0:v.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),hasFooterPrimaryButton:W.hasFooterPrimaryButton(),
hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}},fNl=function(W){switch(W){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""}},ggM=function(W){switch(W){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""}},TOB=function(W){switch(W){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""}},Jmg=function(W,e,t){e.forEach(function(b){_.wS(_.ee().resolve(_.ky),b)});
_.RT(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",t])},s1E=function(W,e,t,b){var m=_.l(t,_.Pz).commandLifeCycleConfig;
m&&m.onStartCommand&&_.IT(W,[m.onStartCommand],e);_.ER(e);var q=_.Vp.instance;q&&_.YD(q,t)?_.z2(q,t,b).then(function(Q){if(!Q||(Q==null?0:Q.error))return Q=_.l(t,_.Pz).serializedTransactionFlowLoggingParams,_.A3(e),_.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q));_.A3(e);return{data:Q}}).then(function(Q){_.A3(e);
xfU(Q.data);var X=Q.data.command;X&&_.IT(W,[X],e);X=OGg(t,Q.data);if(!X){var I=Q.data;Q=!1;if(I&&I.command&&_.l(I.command,_.wy)){var u;I=((u=_.l(I.command,_.wy))==null?void 0:u.commands)||[];for(u=0;u<I.length;u++)if(_.l(I[u],_.EiU)){Q=!0;break}}Q||_.nT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!X&&m&&m.onSuccessCommand?_.IT(W,[m.onSuccessCommand],e):X&&m&&m.onFailureCommand&&_.IT(W,[m.onFailureCommand],e)},function(){_.A3(e);
m&&m.onFailureCommand&&_.IT(W,[m.onFailureCommand],e);MwC(t)}):_.gQ(Error("Al"),"ERROR")},ho1=function(W,e,t){var b=[e];
t&&b.push(t);return _.X5(W,b).then(function(m){var q=_.l(e,_.Pz).serializedTransactionFlowLoggingParams,Q=m.data,X=OGg(e,Q);X?m=_.jg(new W0(X,q)):xfU(Q);return m},function(){var m=_.l(e,_.Pz).serializedTransactionFlowLoggingParams;
MwC(e);return _.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",m))})},OGg=function(W,e){W=_.l(W,_.Pz).serializedTransactionFlowLoggingParams;
var t=null;switch(e.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":t="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":t="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":t="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}t?_.zi(t,W):WGS(W);return t},MwC=function(W){_.zi("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.l(W,_.Pz).serializedTransactionFlowLoggingParams)},
xfU=function(W){if(W.trackingParams){var e=_.fc(),t=_.nc();
e&&t&&_.Ke(e,t,_.$5(W.trackingParams))}},HGC=function(W,e,t){var b=_.Vp.instance,m=_.qKL(_.Ot("YPC_MB_URL")),q=(new _.mxK).init(),Q=_.rVL(),X=_.l(t,_.YWy).languageCode;
X===void 0?_.gQ(Error("Ei"),"ERROR"):_.pV([q,m]).then(function(){var I={ctk:payments.business.integration.ClientTokenFactory.createClientToken(X,Q)};b&&_.YD(b,t)?_.z2(b,t,I).then(function(u){return{data:u}}).then(function(u){_.q2(e,"yt-service-request-completed",u);
u.code!=="ERROR"&&(u=u.data.command)&&_.IT(W,[u],e)}):_.gQ(Error("Al"),"ERROR")})},VwQ=function(W,e,t,b){var m=_.Vp.instance;
m&&_.YD(m,t)?_.z2(m,t,b).then(function(q){return{data:q}}).then(function(q){KlS(W,e,t,q)},function(){PXB(t)}):(m=_.ee().resolve(_.Wi(_.Ti)))&&m.requestDataForServiceEndpoint(t,b).then(function(q){KlS(W,e,t,q)},function(){PXB(t)})},KlS=function(W,e,t,b){_.q2(e,"yt-service-request-completed",b);
if(b.code&&b.code=="ERROR")PXB(t);else{(b=b.data.commands)&&_.IT(W,b,e);var m;(W=(m=_.l(t,_.NvD))==null?void 0:m.serializedYpcPauseFlowLoggingParams)&&W&&_.nb("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}},PXB=function(W){var e;
(W=(e=_.l(W,_.NvD))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&W&&_.nb("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},zoT=function(W,e,t){var b=_.Vp.instance;
b&&_.YD(b,t)?_.z2(b,t).then(function(m){return{data:m}}).then(function(m){iGw(W,e,t,m)},function(){Ybl(t)}):(b=_.ee().resolve(_.Wi(_.Ti)))&&b.requestDataForServiceEndpoint(t).then(function(m){iGw(W,e,t,m)},function(){Ybl(t)})},iGw=function(W,e,t,b){_.q2(e,"yt-service-request-completed",b);
b.code&&b.code=="ERROR"?Ybl(t):((b=b.data.commands)&&_.IT(W,b,e),(W=_.l(t,_.dde).serializedYpcResumeFlowLoggingParams)&&W&&_.nb("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))},Ybl=function(W){(W=_.l(W,_.dde).serializedYpcResumeFlowLoggingParams)&&W&&_.nb("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Ufu=function(W){W=W===void 0?{}:W;
_.ee().resolve(_.vUD).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)},Lll=function(W){W=W===void 0?{}:W;
_.ee().resolve(_.vUD).showHelpDialog(W.helpContext,W.articleId,W.productData)},Eg1=function(){Lll()},AmC=function(){Ufu()},dfl=function(W,e,t){var b,m,q,Q,X,I,u;
return _.F(function(c){switch(c.nextAddress){case 1:b=_.l(W,NOl);if((m=b)==null?0:m.productId){I={productId:b.productId,bucket:b.bucket,enableAnonymousFeedback:(X=b.enableAnonymousFeedback)!=null?X:!0,allowNonLoggedInFeedback:!0};u={feedbackChoice:t.feedbackChoice};if(!_.S("web_collect_offline_state")){c.jumpTo(8);break}_.Qh(c,9);return _.a(c,X3U(u),11)}Q={bucket:(q=b)==null?void 0:q.bucket};if(!_.S("web_collect_offline_state")){c.jumpTo(4);break}Q.customProductData={};_.Qh(c,5);return _.a(c,X3U(Q.customProductData),
7);case 7:_.Hi(c,4);break;case 5:_.w9(c);case 4:Ufu(Q);c.jumpTo(0);break;case 11:_.Hi(c,8);break;case 9:_.w9(c);case 8:_.AoQ(u),_.EfL("GFEEDBACK",u),b.productId==="5295751"&&(u.client_attestation=Number(_.Ot("CATSTAT",0))),b.productId==="5295751"&&(u.client_time=Date.now()/1E3/3600),b.productId==="5295751"&&(u.original_playback_id=_.MtD||""),_.ano(I,u),_.u8(c)}})},WVE=function(W){if(W=_.l(W,_.h0Z)){var e={bucket:W.bucketIdentifier};
W.additionalDatas&&(e.customProductData={},W.additionalDatas.forEach(function(t){if(t=t.userFeedbackEndpointProductSpecificValueData)e.customProductData[t.key]=t.value}));
Ufu(e)}},eLC=function(W){var e=_.P3.getInstance();
var t=_.Gv("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var b=_.Gv("DELETE",void 0,"Delete"),m=_.Gv("CANCEL",void 0,"Cancel");t=DzM(t,void 0,b,m,{signal:"DELETE_ALL_DOWNLOADS"});_.xc(e,[{openPopupAction:t}],W)},bBg=function(){return _.F(function(W){return W.nextAddress==1?_.a(W,_.ee().resolve(_.AW),2):_.a(W,tf9(),0)})},mu$=function(W){var e,t;
return _.F(function(b){return b.nextAddress==1?(t=(e=_.l(W,_.hC))==null?void 0:e.targetId)?_.a(b,_.ee().resolve(_.AW),3):b.jumpTo(0):_.a(b,_.ee().resolve(_.EA).deleteVideo(t),0)})},qrB=function(W){var e,t;
return _.F(function(b){return b.nextAddress==1?(t=(e=_.l(W,_.hC))==null?void 0:e.targetId)?_.a(b,_.ee().resolve(_.AW),3):b.jumpTo(0):_.a(b,r8C(_.ee().resolve(_.EA),t),0)})},QXU=function(W){var e,t;
return _.F(function(b){return(t=(e=_.l(W,_.hC))==null?void 0:e.targetId)?_.a(b,RLC(t),0):b.jumpTo(0)})},XwT=function(){_.S("kevlar_woffle_refresh_dl_load_killswitch")||FVT()},aag=function(){_.S("kevlar_woffle")&&_.nB.instance&&Ial()},uu1=function(W){var e;
if((e=_.l(W,_.cS))==null||!e.videoId)return!1;wwU(_.ee().resolve(_.EA),_.l(W,_.cS),W.clickTrackingParams);return!0},vQ$=function(W){var e;
if((e=_.l(W,_.vS))==null||!e.playlistId)return!1;c8U(_.ee().resolve(_.EA),_.l(W,_.vS),W.clickTrackingParams);return!0},DuC=function(W){var e=_.l(W,_.V38);
(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(e==null?void 0:e.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||GiQ(_.ee().resolve(_.EA),_.l(W,_.V38))},BDw=function(W){W=_.l(W,_.GMr);
var e;(W==null?0:(e=W.actions)==null?0:e.length)&&SrU(W)},ZBw=function(W){var e,t;
return _.F(function(b){e=_.l(W,oQl);return(t=e)!=null&&t.localWatchHistoryCommandType?_.a(b,laU(e),0):b.return()})},$uC=function(W){setTimeout(function(){requestAnimationFrame(W)},80)},kiB=function(W){return Object.entries(W).map(function(e){return e.join(":")}).join(";")},y8B=function(W){var e,t,b;
_.F(function(m){if(m.nextAddress==1)return _.a(m,pw$(),2);e=m.yieldResult;t=_.uL.instance;switch(e){case "granted":b=W.getLocationCommand;break;case "denied":b=W.openDeniedDialogAction;break;case "prompt":b=W.openCollectionDialogAction;break;default:b=W.openCollectionDialogAction}b&&t.resolveCommand(b);_.u8(m)})},pw$=function(){var W,e;
return _.F(function(t){if(t.nextAddress==1)return W="prompt",navigator.permissions?_.a(t,navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2);t.nextAddress!=2&&(e=t.yieldResult,W=e.state);return t.return(W)})},Cm9=function(){_.F(function(W){return _.a(W,_.jX$(),0)})},nQB=function(){var W,e,t;
return _.F(function(b){if(b.nextAddress==1)return W=_.ee().resolve(_.J8),W?_.a(b,_.z2(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.JC(Error("Dl")),b.return(void 0));if(e=b.yieldResult){if(e.errorMetadata)return _.JC(Error("El`"+e.errorMetadata.status+"`"+e.error)),b.return(void 0);t=e.datasyncIds;_.vmk=t.length;return b.return(t)}_.JC(Error("Fl"));return b.return(void 0)})},faS=function(){nQB().then(function(W){W&&(OKC(W),tIC(W),jMC(W),atC(W))})},gQB=function(W){_.Tm.addLowPriorityJob(function(){var e,
t,b,m,q;
return _.F(function(Q){switch(Q.nextAddress){case 1:if(_.S("ytidb_clear_optimizations_killswitch")){Q.jumpTo(2);break}e=_.Se("clear");if(e.startsWith("V")&&e.endsWith("||")){var X=[e];OKC(X);tIC(X);jMC(X);atC(X);return Q.return()}t=CaT();b=w39();return _.a(Q,bJw(),3);case 3:return m=Q.yieldResult,_.a(Q,MeT(),4);case 4:if(q=Q.yieldResult,!(t||b||m||q))return Q.return();case 2:W.isNetworkAvailable()?faS():W.listenOnce("publicytnetworkstatus-online",faS),_.u8(Q)}})})},e6=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.zq(W)}}}};_.uL.instance&&_.uL.instance.resolveCommand(W)},TDM=function(W){if(W){var e=_.Sg();
_.FW(e,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var t=238708;break;case 2:t=238715;break;case 3:t=238710;break;case 6:t=238709}t&&(W=_.Dj(e,{veType:t}))&&_.a0(e,W)}},J8w=function(W){if(W){var e=_.Sg();
_.FW(e,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var t=238714;break;case 2:t=238711;break;case 8:t=238709;break;case 7:t=238713;break;case 3:case 4:case 5:t=238712}t&&(W=_.Dj(e,{veType:t}))&&_.a0(e,W)}},xu9=function(W){switch(W.latencyType){case 0:_.gy("consent_primitive_flow");
_.Tv("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Tv("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Tv("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Tv("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Tv("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Tv("cpdt",W.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Tv("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}},
YrE=function(W,e){var t,b,m,q,Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V,L;
return _.F(function(E){switch(E.nextAddress){case 1:_.Qh(E,2);(b=(t=_.l(W,OBQ))==null?void 0:t.serializedConsentRequest)||(b=(m=_.l(W,Mf9))==null?void 0:m.serializedConsentRequest);b&&(q=sXB(_.Xb(b)));if(q===void 0)return E.return();Q=hLu(q);Q.latencyCallback=xu9;e&&HBB(Q,function(){e.then(function(RR){RR.pauseVideo();(new KVw).increment()})});
return((X=_.l(W,OBQ))==null?void 0:X.consentAction)==="CONSENT_ACTION_PREWARM"||((I=_.l(W,Mf9))==null?void 0:I.consentAction)==="CONSENT_ACTION_PREWARM"?_.a(E,PmT(Q),5):_.a(E,VfS(Q),6);case 6:u=E.yieldResult;c=_.pY(u,tl);if(c===1){if(((v=_.M7(u,bE,1,tl))==null?void 0:_.Js(v,1))===1||((D=_.M7(u,bE,1,tl))==null?void 0:_.Js(D,1))===2||((B=_.M7(u,bE,1,tl))==null?void 0:_.Js(B,1))===3)_.l(W,Mf9)?e6(_.Gv("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
e6(_.Gv("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));TDM((k=_.M7(u,bE,1,tl))==null?void 0:_.Js(k,1),_.eh(u,iBU,3,_.tE()))}else c===2?(((n=m9(u))==null?void 0:_.Js(n,1))===5?_.l(W,Mf9)?e6(_.Gv("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):e6(_.Gv("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((f=m9(u))==null?void 0:_.Js(f,1))===1||((M=m9(u))==null?void 0:_.Js(M,1))===4?e6(_.Gv("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((K=m9(u))==null?void 0:_.Js(K,1))===7&&((U=q)==null?void 0:(V=_.mx(U,ri,4))==null?void 0:_.Js(V,4))!==1&&e6(_.Gv("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),J8w((L=m9(u))==null?void 0:_.Js(L,1))):e6(_.Gv("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));E.jumpTo(5);break;case 5:_.Hi(E,0);break;case 2:_.w9(E),e6(_.Gv("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.u8(E)}})},UuC=function(){if(!zLu.has("Worker")){zLu.set("Worker",
!0);
var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.nJ("apiTest",W)}},LVC=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))},dug=function(W,e){EQQ(new A8T(_.l(e,NDU).addToken,_.l(e,NDU).commonToken)).then(function(){_.q2(W,"yt-invoke-instrument-manager-action-completed")},function(t){_.q2(W,"yt-invoke-instrument-manager-action-error",t)})},WZQ=function(W){return _.Pb(W)},esw=function(W){var e=1;
W=W.split(":");for(var t=[];e>0&&W.length;)t.push(W.shift()),e--;W.length&&t.push(W.join(":"));return t},tBE=function(W,e){e=W.aspectRatio()<=e.aspectRatio()?e.width/W.width:e.height/W.height;
W.scale(e)},bD$=function(W,e){e=W.aspectRatio()>e.aspectRatio()?e.width/W.width:e.height/W.height;
return W.scale(e)},mNE=function(W){var e=new _.Ir;
return _.sq(e,11,W)},rcl=function(W){var e={};
W=W.getAllResponseHeaders().split("\r\n");for(var t=0;t<W.length;t++)if(!_.QK(W[t])){var b=esw(W[t]),m=b[0];b=b[1];if(typeof b==="string"){b=b.trim();var q=e[m]||[];e[m]=q;q.push(b)}}return _.kJ.map(e,function(Q){return Q.join(", ")})},a6=function(W,e){return W.JSC$7842_xhr_?W.JSC$7842_xhr_.getResponseHeader(e):null},qC=function(W,e,t){Array.isArray(t)||(t=[String(t)]);
_.zPP(W.JSC$8077_queryData_,e,t);return W},Ial=function(){var W=_.nB.instance;
_.F(function(e){return W.deferredInstallPrompt?_.a(e,W.deferredInstallPrompt.prompt(),0):e.jumpTo(0)})},qzC=function(W,e,t){if(_.Ns(W))_.VZ(W,e,t);
else for(W=_.b_y(W);;){var b=W.next();if(b.done)break;e.call(t,b.value,void 0,W)}},Rsg={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}"]},b4C,mkC,r_w,qDU,Rmw,QoQ,FuQ,XgC,IjS,RLC,r8C,tf9,ajQ,wgQ,u1E,c_u,v59,GfT,c8U,wwU,Dku,SDU,BAT,FVT,GiQ,o5B,SrU,ljC,laU,Z4g,$k1,kfB,pg$,E_,y_E,joS,CL9,n5w,
fjC,g5C,TAM,J_l,xkC,GvT,u5C,O4$,ag,wi,uE,c0,MgQ,so1,hmU,H4C,Kuw,PLE,Vg9,i4T,YDu,zmE;Rsg={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 QHC=function(W,e){var t=[];qzC(e,function(b){try{var m=_.r3.prototype.getWrapper.call(this,b,!0)}catch(q){if(q=="Storage: Invalid value was encountered")return;throw q;}m===void 0?t.push(b):_.tJe(m)&&t.push(b)},W);
return t},FZM=function(W,e){QHC(W,e).forEach(function(t){_.r3.prototype.remove.call(this,t)},W)},XGT=function(W){var e=_.i$;
e._minimumZ=Math.max(e._minimumZ,W)},I0T=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],a0B=function(W,e){_.NL(W.iq);W.iq=e},wGM=function(W,e,t,b){W.setState(5);
var m=!!W.zcS&&I0T.includes(_.Et(W.zcS)||"");try{var q=new _.xr({program:e,globalName:t,nS:{disable:!_.S("att_web_record_metrics")||!_.S("att_skip_metrics_for_cookieless_domains_ks")&&m,xM:"aGIf"}});q.bde.then(function(){W.setState(6);b&&b(e)});
a0B(W,q)}catch(Q){W.setState(7),Q instanceof Error&&_.JC(Q)}},uBS=function(W,e,t,b,m,q){var Q=Q===void 0?"trayride":Q;
t?(W.setState(2),_.sT(t,function(){if(window[Q])wGM(W,b,Q,m);else{W.setState(3);var X=_.Erz(t),I=document.getElementById(X);I&&(_.WZc(X),I.parentNode.removeChild(I));_.JC(new _.o_("BL:ULB",t))}},q)):e?(q=_.DA("SCRIPT"),e instanceof _.OV?_.hK(q,e):q.textContent=e,q.nonce=_.JK(document),document.head.appendChild(q),document.head.removeChild(q),window[Q]?wGM(W,b,Q,m):(W.setState(4),_.JC(new _.o_("BL:ULBJ")))):_.JC(new _.o_("BL:ULV"))},ccu=function(){this.state=1;
this.iq=null;this.zcS=void 0};
_.r=ccu.prototype;_.r.initialize=function(W,e,t,b){this.zcS=b;if(W.program){var m;b=(m=W.interpreterUrl)!=null?m:null;if(W.interpreterSafeScript)m=_.lNv(W.interpreterSafeScript);else{var q;m=(q=W.interpreterScript)!=null?q:null}W.interpreterSafeUrl&&(b=_.J7(W.interpreterSafeUrl).toString());uBS(this,m,b,W.program,e,t)}else _.JC(Error("lf"))};
_.r.isInitialized=function(){return!!this.iq};
_.r.getState=function(){return this.state};
_.r.isLoading=function(){return this.state===2};
_.r.invoke=function(W){W=W===void 0?{}:W;var e;this.iq?e=_.JK8(this.iq,{c6:W}):e=null;return e};
_.r.dispose=function(){a0B(this,null);this.setState(8)};
_.r.setState=function(W){this.state=W};
var vt$=function(W,e){return W.iq.snapshot(e)},GF$=function(W,e){var t=_.mn("botguard_async_snapshot_timeout_ms",3E3);
e=e===void 0?{}:e;t=t===void 0?3E3:t;return W.iq?new Promise(function(b,m){var q=!1,Q=_.Tm.addJob(function(){q=!0;m(Error("mf"))},1,t);
W.iq?vt$(W,{c6:e}).then(function(X){_.Tm.cancelJob(Q);q||b(X)}).catch(function(X){_.Tm.cancelJob(Q);
q||m(X)}):(_.Tm.cancelJob(Q),b(null))}):Promise.resolve(null)},DNM=["att/log"],SzQ;
SzQ={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var BzS={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},otC=function(W,e){return _.Gq(W,{mode:"readwrite",enableRetries:!0},function(t){return _.yBK(t,e,"settingEntity")})},l0C=function(W,e,t){return _.Gq(W,{mode:"readonly",
enableRetries:!0},function(b){return _.lSk(b,e,t)})},ZDQ=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var e=W.storage.get("TLPQtimestamp")}catch(t){}W=Number(e);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},$Nw=function(W){if(W.storage){try{var e=W.storage.get("TLPQindex")}catch(t){}W=Number(e);
if(!isNaN(W))return W}},kFB=function(W,e){W.queueProxy&&e.forEach(function(t){if(t.videoId&&t.trackingParams&&W.queueProxy instanceof _.T3){var b=_.fc();
W.queueProxy.attributionData.set(t.videoId,{enqueueingVe:_.$5(t.trackingParams).getAsJson(),enqueueingCsn:b?b:void 0,clientEnqueueingTimeMs:Math.floor((0,_.eJ)()).toString()})}})},pGM=function(W){var e=_.tUb(W);
e!=W.currentSnapState_&&(W.currentSnapState_=e,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Rg=function(W){this.JSC$11103_networkManager_=W;
this.partCallbacks_=[]};
Rg.prototype.getCacheKeyForEndpoint=function(W){return _.qPs(W,!1)};
Rg.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(e){W&&e(W)})};
var QF=function(W,e,t){Rg.call(this,W);this.player_=e;this.autoplayData_=t};
_.Z(QF,Rg);QF.prototype.getCacheKeyForEndpoint=function(W){return _.qPs(W,!!this.autoplayData_)};
QF.prototype.getTempData=function(W,e){e=e.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.be(),pbis:e,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
QF.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
QF.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.S("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var ycl=function(W){W.playerEvents_.forEach(function(e){W.player.removeEventListener(e.eventName,e.callback)});
W.playerEvents_.length=0},Fj=function(W,e,t){this.player=W;
this.JSC$11113_taskManager=e;this.prefetchDelay=t;this.completionResolver_=null;this.playerEvents_=[]};
Fj.prototype.start=function(){var W=this;this.completionResolver_=_.UZ();_.yd(this.completionResolver_.promise,function(){ycl(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var jHS=function(W,e,t){W.player.addEventListener(e,t);W.playerEvents_.push({eventName:e,callback:t})},ClM={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},ntl={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},f0Q=function(W,e,t){Fj.call(this,W,e,t);this.cueId_="playbackTrigger-"+Math.random()};
_.Z(f0Q,Fj);
f0Q.prototype.prepareTrigger=function(W){var e=this,t=this.player.getDuration(),b=this.player.getVideoData(),m=b.isLive&&b.hasProgressBarBoundaries;if(m&&b.progressBarEndPositionUtcTimeMillis){var q=b.progressBarEndPositionUtcTimeMillis/1E3;isNaN(q)||(t=q)}var Q=0;this.prefetchDelay>=0?m?b.progressBarStartPositionUtcTimeMillis&&(b=b.progressBarStartPositionUtcTimeMillis/1E3,isNaN(b)||(Q=b+this.prefetchDelay)):Q=this.prefetchDelay:Q=t+this.prefetchDelay;m?this.player.addUtcCueRange(this.cueId_,Q,t):
this.player.addCueRange(this.cueId_,Q,t);_.yd(W.promise,function(){e.player.removeCueRange(e.cueId_)});
jHS(this,"onCueRangeEnter",function(X){X==e.cueId_&&W.resolve(t-Q)})};
var gtw=function(W,e){W.fragmentConfiguration_[e].requiredKeys.every(function(t){return!!W.prefetchedData_[t]})&&(W.validatedFragments_.push(e),e=W.missingFragments_.indexOf(e),e!==-1&&W.missingFragments_.splice(e,1))},TzE=function(W){W.prefetchedFragments_.forEach(function(e){gtw(W,e)})},Jc1=function(W,e,t){this.pageFragments_=W;
this.prefetchedFragments_=e;this.fragmentConfiguration_=ntl;this.prefetchedData_=t;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;TzE(this)},xNC=function(){},ODg=function(W){this.JSC$11127_playlistManager_=W};
_.Z(ODg,xNC);ODg.prototype.getPrefetchEndpoint=function(){return this.JSC$11127_playlistManager_.getAutoplayEndpoint()};
var MBB=function(W){this.autonavEndpoints_=W};
_.Z(MBB,xNC);MBB.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var sHC=function(W,e,t,b,m){this.autonavEndpoints=W;this.foregroundTrigger=e;this.backgroundTrigger=t;this.pageType=b;this.isInPlaylist=m},hsB=function(W,e){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var t=_.l(W[0],_.z4);if(t.watchEndpointSupportedPrefetchConfig&&t.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var b=t.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;t=b.playbackRelativeSecondsPrefetchCondition;t=typeof t==="number"&&Math.abs(t)<e.videoDuration?t:void 0;b=b.countdownUiRelativeSecondsPrefetchCondition;b=typeof b!=="number"||_.S("prefetch_job_config_cleanup_ks")&&e.inPlaylist?void 0:b;if(typeof b==="number")return new sHC(W,e.makeUpNextTrigger(b),e.makePlaybackTrigger(b),
"watch",e.inPlaylist);if(typeof t==="number")return new sHC(W,e.makePlaybackTrigger(t),null,"watch",e.inPlaylist)}}},HDC=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.hJ(_.z6L)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},KZB=function(W){_.lj(document,"visibilitychange",W.onVisibilityChange_,!1,W)},Xj=function(W){Rg.call(this,W)};
_.Z(Xj,Rg);Xj.prototype.getCacheKeyForEndpoint=function(W){return Rg.prototype.getCacheKeyForEndpoint.call(this,W)};
Xj.prototype.getTempData=function(){return{}};
Xj.prototype.getXhrParams=function(W){return W};
Xj.prototype.getParams=function(){return{}};
var Pl1=function(W,e,t){var b=W.prefetchDelay*1E3;if(Math.abs(b)>e)t.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var m=b,q=e-b;b<0&&(m=e+b,q=Math.abs(b));var Q=W.JSC$11113_taskManager.addJob(function(){t.resolve(q/1E3)},10,m);
t.promise.thenCatch(function(){W.JSC$11113_taskManager.cancelJob(Q)})}},VBw=function(W,e,t){Fj.call(this,W,e,t)};
_.Z(VBw,Fj);VBw.prototype.prepareTrigger=function(W){var e=this;jHS(this,"onAutonavCoundownStarted",function(t){Pl1(e,t,W)})};
var iDU=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},Yz9=function(W,e,t){if(!W.triggeredTargets.has(e)){var b=_.Eoo(W,e);
b.action=t;_.UXU(W,e,b)}},zsM=function(W){_.OA8();
_.RIc("cpt")&&_.JC(Error("lh"));_.tz.requestAnimationFrame(function(){_.tz.setTimeout(function(){_.Tv("cpt");var e=_.O6("vpl"),t=_.O6("cpt");e&&t&&_.Tv("ol",Math.max(e,t))})});
try{_.Tv("fr_s"),W()}catch(e){_.gQ(e)}_.tz.requestAnimationFrame(function(){_.Tv("bcp")})},UNC=function(W,e){W.serviceEndpointHandlers.push(e)},LZ1=function(W,e){e=W.pendingPages_.indexOf(e);
e>-1&&W.pendingPages_.splice(e,1)},Etw=function(W,e){var t=_.m4U.indexOf(e);
t>-1&&_.m4U.splice(t,1);W.targetPage_==e?(W.abort(),_.q1P(W)):LZ1(W,e)},Acu=function(W,e,t,b){e={challenge:e};
t&&(e.webResponse=t);return _.x0(W.innertubeTransportService,e,_.Am(DNM),b)},NzE=function(W,e,t){if(!e.challenge)throw Error("ni");
if(e.botguardData&&e.botguardData.program){var b=new ccu;b.initialize(e.botguardData,function(){GF$(b,{atr_challenge:e.challenge}).then(function(m){if(!m)throw Error("oi");return Acu(W,e.challenge,m,t)}).catch(function(m){_.JC(m);
return Acu(W,e.challenge,void 0,t)})},void 0)}else Acu(W,e.challenge,void 0,t)},dNC=function(W,e,t){var b={};
e.ids&&(b.ids=[].concat(_.kP(e.ids)));e.engagementType&&(b.engagementType=e.engagementType);return _.x0(W.innertubeTransportService,b,_.Am(_.s0B),t).then(function(m){if(!m)throw new _.o_("GetAttestationChallenge returned falsy");NzE(W,m,t)}).thenCatch(function(m){_.gQ(m)})},Wuu=function(W,e,t){return new _.c3(function(b,m){var q;
return _.F(function(Q){if(Q.nextAddress==1){var X=e.engagementType,I=e.ids,u={};I=_.R(I!=null?I:[]);for(var c=I.next();!c.done;c=I.next())c=c.value,c.encryptedVideoId?u.encryptedVideoId=c.encryptedVideoId:c.externalChannelId?u.externalChannelId=c.externalChannelId:c.commentId?u.commentId=c.commentId:c.externalOwnerId?u.externalOwnerId=c.externalOwnerId:c.artistId?u.artistId=c.artistId:c.playlistId?u.playlistId=c.playlistId:c.externalPostId?u.externalPostId=c.externalPostId:c.shareId&&(u.shareId=c.shareId);
return _.a(Q,GJ9(X,u),2)}q=Q.yieldResult;if(!q.challenge)return _.JC(Error("pi")),dNC(W,e,t).then(b,m),Q.return();X=q;u={challenge:X.challenge};u.webResponse=X.webResponse;u.engagementType=e.engagementType;u.ids=e.ids;_.x0(W.innertubeTransportService,u,_.Am(DNM),t).then(b,m);_.u8(Q)})})},ByS=function(W,e){var t,b,m,q;
_.F(function(Q){if(Q.nextAddress==1){t=_.l(e,_.CIU);if(!(t&&t.listId&&W.response&&W.response.playingVideoId)||W.listId!==t.listId)return Q.return();W.index===void 0&&(W.index=0);return _.a(Q,_.mv8(W.JSC$10858_playlistNetworkManager,t.listId,W.index,W.response.playingVideoId),2)}b=Q.yieldResult;if(!b)return Q.return();m=b.playlistId;q=b.playlistPanelRenderer;W.setPlaylistData(m,q,b.autoplayRenderer);_.u8(Q)})},emU=function(W,e,t){var b=W.getParams(t),m=_.g5D(e,b),q=W.getTempData(e,t);
q.endpoint=JSON.stringify(e);_.S("enable_unknown_lact_fix_on_html5")&&(_.ee().resolve(_.gd),q.lact=_.be());var Q={headers:{"X-YouTube-STS":_.Ot("STS"),"x-youtube-csoc":1}};_.Aj(m,q);return new _.c3(function(X,I){var u=W.getXhrParams(b),c;_.S("kevlar_cache_on_ttl_player")&&(c=_.lT.instance);c&&_.pAr(c,e)?_.Jak(c,e,q,window.location.href).then(function(v){v?X(v):I()},I):_.W8B(W.JSC$11103_networkManager_,e,u,W.onPartsCallback_.bind(W),Q).then(function(v){v?X(v):I()},I)})},tgC=function(W,e){W.triggerPromise_=
e.start();
W.triggerPromise_.then(function(t){var b=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(b){var m=ClM[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=emU(W.JSC$11139_networkPrefetchRequest_,b,{fragmentsRequested:m,timeBeforeNextVideo:t});W.prefetchResponseCacheKey_=W.JSC$11139_networkPrefetchRequest_.getCacheKeyForEndpoint(b);KZB(W);W.prefetchRequestPromise_.then(function(q){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,q);if(_.S("web_prefetch_preload_video")&&
m.length===1&&m[0]==="pl"&&q&&!q.playerAds&&!q.adPlacements){var Q=_.l(b,_.Za),X=Q!=null,I={raw_player_response:q,watch_endpoint:Q};(q=_.ee().resolve(X?_.hge:_.Rv))&&b&&q.then(function(u){X&&_.S("web_queue_preload_video")?(I.prefer_gapless=!0,u.queueNextVideo(I)):u.preloadVideoByPlayerVars(I)})}})}})},Ig=function(W,e,t,b){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=e;this.prefetchJobConfig_=t;this.JSC$11139_networkPrefetchRequest_=b;this.prefetchResponseCacheKey_=null};
Ig.prototype.enqueue=function(){this.triggerPromise_||(tgC(this,HDC(this)),_.p4(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Ig.prototype.resolve=function(){this.cancel()};
Ig.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.");KZB(this)};
Ig.prototype.onVisibilityChange_=function(){var W=this;_.hJ(_.z6L)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||tgC(this,HDC(this))};
b4C=function(W,e,t,b,m){e&&(e==null?0:e.videoId)&&t&&t.entries&&_.S("kevlar_enable_shorts_prefetch_in_sequence")&&(iDU(W),e=t.entries.map(function(q){var Q;return(Q=_.l(q.command,_.Za))==null?void 0:Q.videoId}).indexOf(e.videoId),t=t.entries[e+1],t!=null&&t.command&&!_.l(t==null?void 0:t.command,_.xi)&&(b=new sHC([t.command],new f0Q(b,_.Tm,1),null,"shorts",!1),W.pendingPrefetchJob_=new Ig(new MBB(b.autonavEndpoints),function(){return!1},b,new Xj(m)),W.pendingPrefetchJob_.enqueue()))};
mkC=function(W,e,t,b,m,q){var Q=_.dv.getInstance();if(!_.S("block_all_player_prefetch_requests")){iDU(W);var X=!!t.getPlaylistId(),I=t.getVideoData().isLive&&t.getVideoData().hasProgressBarBoundaries;if((Q.getState()==2||X||I)&&(!t.getVideoData().isLive||I)){Q={inPlaylist:X,videoDuration:t.getDuration(),makeUpNextTrigger:function(c){return new VBw(t,_.Tm,c)},
makePlaybackTrigger:function(c){return new f0Q(t,_.Tm,c)}};
var u=hsB(e,Q);u&&(W.pendingPrefetchJob_=new Ig(u.isInPlaylist?new ODg(m):new MBB(u.autonavEndpoints),function(c,v){v=new Jc1(ClM[u.pageType].pageFragments,ClM[u.pageType].prefetchedFragments,v);return _.sVU(v)?(W.prefetchCache_.set(c,v),!0):!1},u,new QF(b,t,q,m)),W.pendingPrefetchJob_.enqueue())}}};
r_w=function(){var W=_.K5();W.signals.parkOrScheduleJob(function(){var e=W.storage;if(e.storage)if(ZDQ(e)){var t=e.getPlaylistId();e=$Nw(e);t=!!t&&e!==void 0}else e.clear(),t=!1;else t=!1;if(t){t=W.pageManager.isOnWatch();a:{var b=W.storage;if(b.storage&&ZDQ(b)&&(e=b.getPlaylistId(),b=$Nw(b),e&&b!==void 0)){t={recoverPlaylistCommand:{listId:e,index:b,openMiniplayer:!t,openListPanel:t,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}t=void 0}t&&_.xc(W.JSC$10858_actionRouter,[t],null)}},0,"ma")};
qDU=function(W,e,t,b,m,q){var Q=_.na(7111);_.XW(W.JSC$16171_screenManager,Q,q?_.$5(q):void 0);_.a0(W.JSC$16171_screenManager,Q,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:b,offlineId:e,offlineabilityFormatType:t,isDefaultFormatType:m==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:m}})};
Rmw=function(W,e,t,b,m){var q,Q,X,I,u;return _.F(function(c){if(c.nextAddress==1)return _.a(c,W.JSC$16171_playerApiPromise,2);q=c.yieldResult;qDU(W,e,t,"OFFLINE_OBJECT_TYPE_PLAYLIST",b,m);if(X=_.CZb[W.entityTypeMap.listEntityType])u={},Q=(u[X]={maximumDownloadQuality:(I=t)!=null?I:void 0},u);return _.a(c,q.queueOfflineAction(e,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Q),0)})};
QoQ=function(W,e){var t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return _.a(Q,W.JSC$16171_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3){t=Q.yieldResult;if(!t)return _.JC(new _.o_("PES is undefined")),Q.return();b=_.X4(e,"downloadStatusEntity");return _.a(Q,l0C(t,b,"downloadStatusEntity"),3)}m=Q.yieldResult;return Q.return((q=m)==null?void 0:q.downloadState)})};
FuQ=function(W,e,t,b,m){var q,Q,X,I,u,c;return _.F(function(v){switch(v.nextAddress){case 1:return _.a(v,W.JSC$16171_playerApiPromise,2);case 2:q=v.yieldResult;qDU(W,e,t,"OFFLINE_OBJECT_TYPE_VIDEO",b,m);if(X=_.CZb[W.entityTypeMap.singleEntityType])u={},Q=(u[X]={maximumDownloadQuality:(I=t)!=null?I:void 0},u);return _.a(v,QoQ(W,e),3);case 3:c=v.yieldResult;if(c!=="DOWNLOAD_STATE_USER_DELETED"){v.jumpTo(4);break}return _.a(v,W.deleteVideo(e),4);case 4:return _.a(v,q.queueOfflineAction(e,W.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Q),0)}})};
XgC=function(W,e,t,b,m){return _.F(function(q){return q.nextAddress==1?_.a(q,W.deleteVideo(e,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.a(q,FuQ(W,e,t,b,m),0)})};
IjS=function(W,e,t){var b,m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.JSC$16171_playerApiPromise,2);b=q.yieldResult;m=_.X4(e,"mainVideoDownloadStateEntity");return _.a(q,b.updateDownloadState(m,t),0)})};
RLC=function(W){var e=_.ee().resolve(_.EA);return _.F(function(t){if(t.nextAddress==1)return e.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?t.jumpTo(2):_.a(t,e.resumeVideoDownload(W),2);if(t.nextAddress!=4)return _.a(t,IjS(e,W,e.previousDownloadStateForVideo[W]),4);delete e.previousDownloadStateForVideo[W];_.u8(t)})};
r8C=function(W,e){var t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$16171_playerApiPromise,2);t=b.yieldResult;return _.a(b,t.queueOfflineAction(e,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
tf9=function(){var W=_.ee().resolve(_.EA),e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$16171_playerApiPromise,2);if(b.nextAddress!=3)return e=b.yieldResult,t={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.a(b,e.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",t),3);var m=W.JSC$16171_commandHandler,q=m.resolveCommand,Q=_.Gv("DELETING_ALL",void 0,"Downloads are being deleted");
q.call(m,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tm(Q)}},popupType:"TOAST"}});_.u8(b)})};
ajQ=function(W,e){var t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return _.a(I,W.JSC$16171_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return t=I.yieldResult,t?_.a(I,l0C(t,_.pG,"downloadsPageViewConfigurationEntity"),3):(_.JC(new _.o_("PES is undefined")),I.return());m=(b=I.yieldResult)!=null?b:{};X=(Q=(q=m)==null?void 0:q.downloadsUpsellBannerVisibility)!=null?Q:{};return X.visibleWithConnection?_.a(I,e.refreshAllStaleEntities(0),0):I.jumpTo(0)})};
wgQ=function(W){var e,t;return _.F(function(b){if(b.nextAddress==1)return _.a(b,W.JSC$16171_prefStorage,2);e=b.yieldResult;return b.return((t=e)==null?void 0:t.get("sdois"))})};
u1E=function(W){var e,t,b,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return _.a(X,W.JSC$16171_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){e=X.yieldResult;if(!e)return _.JC(new _.o_("PES is undefined")),X.return();t=_.X4("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.a(X,l0C(e,t,"settingEntity"),3)}b=X.yieldResult;return X.return((Q=(m=b)==null?void 0:(q=m.settingOptionValue)==null?void 0:q.boolValue)!=null?Q:!1)})};
c_u=function(W,e){var t,b,m,q;return _.F(function(Q){switch(Q.nextAddress){case 1:return((t=e)==null?void 0:t.formatType)===void 0?Q.return():_.a(Q,W.JSC$16171_prefStorage,2);case 2:b=Q.yieldResult;if(b===void 0)return Q.return();if(((m=e)==null?void 0:m.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.a(Q,b.set("lmqf",e.formatType),8);if(((q=e)==null?void 0:q.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Q.jumpTo(0);break}return _.a(Q,b.set("lmqf",e.formatType),
6);case 6:return _.a(Q,b.set("lmqflst",Math.floor((0,_.eJ)())),0);case 8:return _.a(Q,b.remove("lmqflst"),0)}})};
v59=function(W){var e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,W.JSC$16171_prefStorage,2);case 2:e=b.yieldResult;if(!e){b.jumpTo(3);break}return _.a(b,e.get("lmqflst"),4);case 4:if(t=b.yieldResult,t!==void 0)return b.return(t);case 3:return b.return(0)}})};
GfT=function(W){var e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,W.JSC$16171_prefStorage,2);case 2:e=b.yieldResult;if(e===void 0){b.jumpTo(3);break}return _.a(b,e.get("lmqf"),4);case 4:if(t=b.yieldResult,t!==void 0)return b.return(t);case 3:return b.return("SD")}})};
c8U=function(W,e,t){var b,m,q,Q,X,I,u,c;_.F(function(v){switch(v.nextAddress){case 1:return _.a(v,c_u(W,(b=e)==null?void 0:b.actionParams),2);case 2:m=e.playlistId;if(!m)return v.return();if(e.action==="ACTION_ADD")return((Q=e.actionParams)==null?0:Q.formatType)?_.a(v,Rmw(W,m,e.actionParams.formatType,(c=e.actionParams)==null?void 0:c.settingsAction,t),0):_.a(v,W.offlineWebClientEligibility,14);if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var D=W.JSC$16171_commandHandler,B=D.resolveCommand,k=_.Ot("INNERTUBE_CLIENT_NAME");
var n=k==="WEB_REMIX"?_.Gv("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Gv("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var f=k==="WEB_REMIX"?[_.Gv("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];k=k==="WEB_REMIX"?_.Gv("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Gv("DELETE",void 0,"Delete");var M=_.Gv("CANCEL",void 0,"Cancel");n=DzM(n,f,k,M,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:m});B.call(D,{openPopupAction:n});
return v.return()}if(e.action==="ACTION_REMOVE")return _.a(v,r8C(W,m),0);if(e.action!=="ACTION_SYNC"){v.jumpTo(0);break}return _.a(v,W.JSC$16171_playerApiPromise,9);case 9:return q=v.yieldResult,_.a(v,q.queueOfflineAction(m,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return X=v.yieldResult,_.a(v,GfT(W),15);case 15:return I=v.yieldResult,_.a(v,v59(W),16);case 16:u=v.yieldResult,e.onAddCommand&&W.JSC$16171_commandHandler.resolveCommand(e.onAddCommand,{form:{preferredFormatType:I,
offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:u.toString()}}),v.jumpTo(0)}})};
wwU=function(W,e,t){var b,m,q,Q,X,I,u,c,v,D,B,k,n,f;_.F(function(M){switch(M.nextAddress){case 1:return _.a(M,c_u(W,(b=e)==null?void 0:b.actionParams),2);case 2:m=e.videoId;if(!m)return M.return();if(e.action==="ACTION_REMOVE_WITH_PROMPT"){var K=W.JSC$16171_commandHandler,U=K.resolveCommand,V=_.Ot("INNERTUBE_CLIENT_NAME");var L=V==="WEB_REMIX"?_.Gv("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Gv("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var E=V==="WEB_REMIX"?[_.Gv("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];V=V==="WEB_REMIX"?_.Gv("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Gv("DELETE",void 0,"Delete");var RR=_.Gv("CANCEL",void 0,"Cancel");L=DzM(L,E,V,RR,{signal:"DELETE_DOWNLOAD",targetId:m});U.call(K,{openPopupAction:L});return M.return()}if(e.action==="ACTION_ADD")return((D=e.actionParams)==null?0:D.formatType)?_.a(M,FuQ(W,m,e.actionParams.formatType,(f=e.actionParams)==null?void 0:f.settingsAction,t),0):_.a(M,W.offlineWebClientEligibility,
23);if(e.action==="ACTION_RETRY")return _.a(M,GfT(W),19);if(e.action==="ACTION_PAUSE")return _.a(M,W.pauseVideoDownload(m),0);if(e.action==="ACTION_RESUME")return _.a(M,W.resumeVideoDownload(m),0);if(e.action!=="ACTION_REMOVE"){M.jumpTo(0);break}return _.a(M,QoQ(W,m),13);case 13:return q=M.yieldResult,W.previousDownloadStateForVideo[m]=(Q=q)!=null?Q:"DOWNLOAD_STATE_UNKNOWN",_.a(M,IjS(W,m,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
W.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){M.jumpTo(15);break}return _.a(M,W.pauseVideoDownload(m),15);case 15:K=_.Gv("DELETED_VIDEO",void 0,"Video deleted from downloads.");U=_.Gv("UNDO_ACTION",void 0,"Undo");L=_.Gv("CLOSE",void 0,"Close");X={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tm(K),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tm(U),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:m}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:K+" "+U}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:m}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:L}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$16171_commandHandler.resolveCommand(X);
M.jumpTo(0);break;case 19:I=M.yieldResult;I==="UNKNOWN_FORMAT_TYPE"&&(I="SD");u="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((c=e.actionParams)==null?0:c.formatType)I=e.actionParams.formatType,u=(v=e.actionParams)==null?void 0:v.settingsAction;return _.a(M,XgC(W,m,I,u,t),20);case 20:return M.return();case 23:return B=M.yieldResult,_.a(M,GfT(W),24);case 24:return k=M.yieldResult,_.a(M,v59(W),25);case 25:n=M.yieldResult,e.onAddCommand&&W.JSC$16171_commandHandler.resolveCommand(e.onAddCommand,
{form:{preferredFormatType:k,offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:n.toString()}}),M.jumpTo(0)}})};
Dku=function(W,e){var t,b,m,q,Q,X,I;return _.F(function(u){if(u.nextAddress==1)return _.a(u,W.JSC$16171_persistentStorePromiseAccessor(),2);t=u.yieldResult;if(!t)return _.JC(new _.o_("PES is undefined")),u.return();if((b=e)==null||!b.settingItemId)return u.return();m=e;q=m.settingItemId;Q=m.boolValue;X=_.X4(q,"settingEntity");I={key:X,settingOptionValue:{boolValue:Q}};return _.a(u,otC(t,I),0)})};
SDU=function(W,e){var t,b,m,q,Q,X,I;return _.F(function(u){switch(u.nextAddress){case 1:return _.a(u,W.JSC$16171_prefStorage,2);case 2:return t=u.yieldResult,b=_.B6(),_.a(u,W.JSC$16171_persistentStorePromiseAccessor(),3);case 3:return m=u.yieldResult,t?m?_.a(u,t.get("sdois"),4):(_.JC(new _.o_("PES is undefined")),u.return()):(_.JC(new _.o_("prefStorage is undefined")),u.return());case 4:q=u.yieldResult;X=(Q=e)==null?void 0:Q.boolValue;X===void 0||_.S("kevlar_set_sd_enabled_flag_killswitch")||_.oT(0,
197,!0);q===void 0&&X===void 0&&(X=!1);if(X===void 0){u.jumpTo(0);break}return _.a(u,t.set("sdois",X),6);case 6:return _.S("kevlar_set_sd_enabled_flag_killswitch")||(_.oT(0,196,X),b.save()),I={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:X},_.a(u,Dku(W,I),0)}})};
BAT=function(W,e,t){var b,m,q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:return _.a(I,wgQ(W),2);case 2:return b=I.yieldResult,_.a(I,SDU(W,t),3);case 3:return _.a(I,wgQ(W),4);case 4:return m=I.yieldResult,q=m!==b,_.a(I,u1E(W),5);case 5:Q=I.yieldResult&&!_.S("kevlar_modern_downloads_page");if((X=!m&&!Q)||q)return _.a(I,e.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);I.jumpTo(0)}})};
FVT=function(){var W=_.ee().resolve(_.EA),e;_.F(function(t){switch(t.nextAddress){case 1:return _.a(t,W.JSC$16171_playerApiPromise,2);case 2:e=t.yieldResult;if(!_.S("kevlar_force_refresh_smart_downloads")){t.jumpTo(3);break}return _.a(t,e.refreshAllStaleEntities(0),4);case 4:return t.return();case 3:return _.a(t,e.refreshAllStaleEntities(),5);case 5:return _.a(t,BAT(W,e),6);case 6:if(_.S("enable_download_pep_for_premium_countries"))return _.a(t,ajQ(W,e),0);t.jumpTo(0)}})};
GiQ=function(W,e){var t,b;_.F(function(m){switch(m.nextAddress){case 1:return _.a(m,W.JSC$16171_playerApiPromise,2);case 2:t=m.yieldResult;switch((b=e)==null?void 0:b.settingItemId){case "SMART_DOWNLOADS_ENABLED":return m.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return m.jumpTo(4)}m.jumpTo(0);break;case 3:return _.a(m,BAT(W,t,e),6);case 6:m.jumpTo(0);break;case 4:return _.a(m,Dku(W,e),7);case 7:m.jumpTo(0)}})};
o5B=function(W,e){var t,b,m;return _.F(function(q){if(q.nextAddress==1)return _.a(q,W.JSC$16171_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3){t=q.yieldResult;if(!t)return _.JC(new _.o_("PES is undefined")),q.return(!1);if(!e)return q.return(!1);b=_.X4(e,"mainVideoEntity");return _.a(q,l0C(t,b,"mainVideoEntity"),3)}m=q.yieldResult;return q.return(m!==void 0)})};
SrU=function(W){var e=_.ee().resolve(_.EA),t,b,m,q,Q,X,I,u,c,v,D;_.F(function(B){switch(B.nextAddress){case 1:return _.a(B,e.JSC$16171_playerApiPromise,2);case 2:t=B.yieldResult;m=(b=W)==null?void 0:b.actions;if(!m)return B.return();q=_.R(m);Q=q.next();case 3:if(Q.done){B.jumpTo(0);break}X=Q.value;u=I=void 0;if(!(((I=X)==null?0:I.entityKey)&&((u=X)==null?0:u.actionType))){B.jumpTo(4);break}c=_.R1(X.entityKey);v=c.entityId;D=c.entityType;return _.a(B,t.queueOfflineAction(v,D,X.actionType),4);case 4:Q=
q.next(),B.jumpTo(3)}})};
ljC=function(W,e){var t,b,m,q,Q;return _.F(function(X){if(X.nextAddress==1)return _.a(X,W.JSC$16171_prefStorage,2);if(X.nextAddress!=3)return(t=X.yieldResult)?_.a(X,t.get("psi"),3):X.return();b=X.yieldResult;Q={isPaused:e,lastSyncTimestamp:(q=(m=b)==null?void 0:m.lastSyncTimestamp)!=null?q:"0"};return _.a(X,t.set("psi",Q),0)})};
laU=function(W){var e=_.ee().resolve(_.EA),t,b,m,q,Q,X,I,u;return _.F(function(c){switch(c.nextAddress){case 1:return _.a(c,e.JSC$16171_playerApiPromise,2);case 2:t=c.yieldResult;m=((b=W)==null?void 0:b.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((X=W)==null?void 0:X.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":q="!*$_ALL_ENTITIES_!*$";Q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return c.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return c.jumpTo(4)}c.jumpTo(5);break;case 3:return _.a(c,ljC(e,m),6);case 6:c.jumpTo(5);break;case 4:return _.a(c,o5B(e,(I=W)==null?void 0:I.videoId),7);case 7:c.yieldResult&&(q=(u=W)==null?void 0:u.videoId,Q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");c.jumpTo(5);break;case 5:if(q&&Q)return _.a(c,t.queueOfflineAction(q,"videoPlaybackPositionEntity",Q),0);c.jumpTo(0)}})};
Z4g=function(W,e){var t;e!==1||((t=W.currentPersistentToast)==null?0:t.isOpened())?W.openToast():W.currentPersistentToast=void 0};
$k1=function(W,e){var t;return(t=W.transitionTasksMap.get(e))!=null?t:[]};
kfB=function(W,e){var t=[];W.elementTasksMap.forEach(function(b){(b=b.get(e))&&t.push(b)});
return t};
pg$=function(W,e,t,b){b=b===void 0?{}:b;var m=W.defaultViewTransitionOptions;return Object.assign({},m,b,{beforeTransition:function(){t.forEach(function(I){I.beforeTransition()});
var q;(q=m.beforeTransition)==null||q.call(m);var Q,X;(X=(Q=b).beforeTransition)==null||X.call(Q);e.forEach(function(I){I.beforeTransition()})},
afterTransition:function(){t.forEach(function(I){I.afterTransition()});
var q;(q=m.afterTransition)==null||q.call(m);var Q,X;(X=(Q=b).afterTransition)==null||X.call(Q);e.forEach(function(I){I.afterTransition()})}})};
E_=function(W,e,t){W.transitionTasksMap.has(e)?W.transitionTasksMap.get(e).push(t):(W=new _.o_("Transition task registered for unknown transition type",e),_.gQ(W))};
y_E=function(W,e,t){if(W.transitionTasksMap.has(e)){var b=W.transitionTasksMap.get(e).filter(function(m){return m!==t});
W.transitionTasksMap.set(e,b)}};
joS=function(W,e){var t=$k1(W,e);t=_.R(t);for(var b=t.next();!b.done;b=t.next())b=b.value,b.runOnce&&y_E(W,e,b);W.elementTasksMap.forEach(function(m,q){m.forEach(function(Q,X){Q.runOnce&&e===X&&(m.delete(X),m.size===0&&W.elementTasksMap.delete(q))})})};
CL9=function(W,e,t){var b,m,q,Q,X,I,u,c,v;_.F(function(D){if(D.nextAddress==1){if(W.config.disableAllTransitions)return D.return(e());if((b=t)==null||!b.transitionType)return D.return(_.gNE(e,(m=t)==null?void 0:m.viewTransitionOptions));q=t;Q=q.transitionType;X=q.viewTransitionOptions;I=W.config.transitionConfigs.get(Q);if(!I)return D.return(e());u=$k1(W,Q);c=kfB(W,Q);v=_.gNE(e,pg$(I,u,c,X));return _.a(D,v,2)}joS(W,Q);_.u8(D)})};
n5w=function(){var W,e,t,b;return _.F(function(m){if(m.nextAddress==1)return W=navigator,(e=W.storage)!=null&&e.persisted?_.a(m,(t=W.storage)==null?void 0:t.persisted(),2):m.return("PERSISTED_STATE_NOT_SUPPORTED");b=m.yieldResult;return m.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
fjC=function(){var W,e,t,b;return _.F(function(m){if(m.nextAddress==1)return W=navigator,(e=W.storage)!=null&&e.persist?_.a(m,(t=W.storage)==null?void 0:t.persist(),2):m.return("PERSISTED_STATE_NOT_SUPPORTED");b=m.yieldResult;return m.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
g5C=function(){var W,e;return _.F(function(t){switch(t.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.Qh(t,2),_.a(t,n5w(),4);case 4:W=t.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){t.jumpTo(5);break}return _.a(t,fjC(),6);case 6:W=t.yieldResult;case 5:_.Hi(t,3);break;case 2:e=_.w9(t),e instanceof Error&&_.gQ(e);case 3:return _.nJ("persistentStorageStateChecked",{persistedState:W}),t.return(W)}})};
TAM=function(W,e){var t=[],b=!1;e=_.R(e);for(var m=e.next();!m.done;m=e.next()){m=W.moduleRegistry[m.value];var q=void 0,Q=void 0;((q=m)==null?0:q.isFetching)&&((Q=m)==null?0:Q.resolver)?(t.push(m.resolver.promise),b=!0):(m=new _.Xu,m.resolve(void 0),t.push(m.promise))}return b?Promise.all(t):void 0};
J_l=function(W,e,t){if(W.isInitialized()){var b=Wp(t),m=b==="watch";b=b==="shorts";var q=Wp(e)==="watch";if(m)q||(W.backgroundPageData=e),W.watchPipMode&&q||W.deactivate(t.endpoint);else if(b){if(Wp(e)!=="shorts"){var Q;(Q=W.getPlayerElement())==null||Q.pause()}}else q&&!W.watchPipMode&&(B89(e,t)?(W.watchWhileMode&&_.JeM(W,!1),_.jpS(W,e)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());q&&_.OOC(W);W.shortsPipMode&&!b&&(window.focus(),W.deactivate());if(W.pictureInPictureEnabled())if(b&&
W.shortsPipEnabled||m&&W.watchPipEnabled)_.Kvv(W.handleMediaSessionPipActivation);else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&window.documentPictureInPicture&&_.nQ()&&_.Igg("Chromium")>=120){W=_.HgZ().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(X){}}}};
xkC=function(W,e){var t,b;_.F(function(m){if(m.nextAddress==1){if(!W||!W.navigationEndpoint)return m.return();_.G3().lockupActivation=!0;var q;e?q=_.zq(_.Gv("QUEUE",void 0,"Queue")):q=W.longBylineText;b=(t=q)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:t,playlistData:null}:void 0;return _.a(m,_.sON(_.ee().resolve(_.Kn),W.navigationEndpoint,!0,b),2)}_.G3().userActivation=!0;_.u8(m)})};
GvT=function(W,e){var t,b,m,q,Q,X;_.F(function(I){if(I.nextAddress==1){t=_.l(e,_.jPy);if(!t||!t.listId)return I.return();W.index=t.index||W.index||0;b=W.response&&W.response.playingVideoId||void 0;return _.a(I,_.mv8(W.JSC$10858_playlistNetworkManager,t.listId,W.index,b),2)}m=I.yieldResult;if(!m)return I.return();q=m.playlistId;Q=m.playlistPanelRenderer;!W.queueProxy&&q&&Q&&q.startsWith("TLPQ")&&(W.queueProxy=new _.T3(W.JSC$10858_playlistNetworkManager,q,W.setPlaylistData.bind(W),W.clearQueue.bind(W),
_.NSc(Q),W.storage));if(t.openMiniplayer&&(X=_.drc(Q))&&!W.pageManager.isOnWatch()){var u=X,c=t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(u):xkC(u,c)}W.setPlaylistData(q,Q,m.autoplayRenderer);_.u8(I)})};
u5C=function(W,e){var t=_.K5();t.index===void 0&&(t.index=0);t.temporaryItems.push.apply(t.temporaryItems,_.kP(W));if((e.videoId||e.videoIds)&&t.index!==void 0&&e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!t.queueProxy){var b=[];if(t.response){var m=_.ee().resolve(_.Kn).isMiniplayerActive();if(t.response.playlistPanelRenderer&&t.response.playlistId&&!t.response.playlistId.startsWith("TLPQ")){if(t.pageManager.isOnWatch()||m)b=_.NSc(t.response.playlistPanelRenderer)}else t.response.playingVideoId&&
!e.openMiniplayer?b.push(t.response.playingVideoId):m&&t.response.playingVideoId&&e.openMiniplayer&&b.push(t.response.playingVideoId)}t.queueProxy=new _.T3(t.JSC$10858_playlistNetworkManager,"",t.setPlaylistData.bind(t),t.clearQueue.bind(t),b,t.storage);t.queueProxy.JSC$10804_setCurrentIndex(t.index)}t.queueProxy.addVideos(e.videoIds||[e.videoId],e)}kFB(t,W);t.response&&_.P2(t,_.Vn(t,t.response.autoplayRenderer));t.pageManager.isOnWatch()?t.isMiniplayerActive()&&t.openToast(W[0]):(W=W[0],e=e.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",t.isMiniplayerActive()?t.openToast(W):xkC(W,e))};
O4$=function(W){var e=_.ug(W);if(e=="object"||e=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);e=e=="array"?[]:{};for(var t in W)e[t]=O4$(W[t]);return e}return W};
ag=function(W,e){return _.L2c(_.oP(W,e,void 0,_.Bb))};
wi=function(W,e){return _.$l(_.oP(W,e,void 0,_.Bb))};
uE=function(W,e){return _.ubz(_.oP(W,e,void 0,_.Bb))};
c0=function(W,e){return _.oP(W,e,void 0,_.Bb,_.XC)};
MgQ=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;_.YE(e,t,_.KY(W.decoder_,_.tS));return!0},_.Ae,_.iI);
so1=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.KY(W.decoder_,_.tS));return!0},_.Ae,_.iI);
hmU=_.VS(function(W,e,t){if(W.nextWireType_!==1)return!1;var b=W.decoder_;W=_.VP(b);b=_.VP(b);W=_.dB(W,b);_.YE(e,t,W);return!0},_.YBs,_.hXL);
H4C=_.VS(function(W,e,t){if(W.nextWireType_!==5)return!1;_.YE(e,t,_.VP(W.decoder_));return!0},function(W,e,t){e=_.pC(e);
e!=null&&(_.Uw(W,t,5),_.Ew(W.encoder_,e))},_.saz);
Kuw=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;W=_.DpS(W.decoder_);_.YE(e,t,W===!1?void 0:W);return!0},_.zQ2,_.J0R);
PLE=_.VS(function(W,e,t){if(W.nextWireType_!==2)return!1;W=_.$pv(W);_.YE(e,t,W===""?void 0:W);return!0},_.Elz,_.xpL);
Vg9=_.VS(function(W,e,t){if(W.nextWireType_!==2)return!1;W=_.klS(W);_.YE(e,t,W===_.Jk()?void 0:W);return!0},_.NEG,_.PqD);
i4T=_.MTv(function(W,e,t){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;e=_.pO(e,e[_.oy]|0,t);W.nextWireType_==2?_.pkD(W,WZQ,e):e.push(_.Pb(W.decoder_));return!0},function(W,e,t){e=_.OCc(_.$l,e,!0);
if(e!=null&&e.length){t=_.wuv(W,t);for(var b=0;b<e.length;b++)_.Pgv(W.encoder_,e[b]);_.uC2(W,t)}},_.Vcg);
YDu=_.VS(function(W,e,t){if(W.nextWireType_!==0)return!1;W=_.Pb(W.decoder_);_.YE(e,t,W===0?void 0:W);return!0},_.d9Q,_.Vcg);
zmE=_.VS(function(W,e,t,b){if(W.nextWireType_!==0)return!1;_.k2(e,t,b,_.Pb(W.decoder_));return!0},_.d9Q,_.Vcg);
_.iF=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
_.iF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var p6Q=function(W,e){return new _.jH(W.x+e.x,W.y+e.y)},UkE=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.eNr(W.previousSibling,!1)},LuM=function(W,e){var t=[];
for(e=e||0;e<W.length;e+=2)_.VPP(W[e],W[e+1],t);return t.join("&")},E5T=function(W,e){var t=arguments.length==2?LuM(arguments[1],0):LuM(arguments,1);
return _.Ph8(W,t)},A_E=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(A_E,_.Ow);A_E.prototype.getValue=function(){var W=_.oP(this,2);if(Array.isArray(W)||W instanceof _.Ow)throw Error("aa");return _.$2(this,2)};
var i1S=function(){var W=_.qu();this.JSC$7963_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.qc("channel_type"))};
i1S.prototype.increment=function(W){this.JSC$7963_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var YcM=function(){var W=_.qu();this.JSC$7966_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.qc("channel_type"))};
YcM.prototype.increment=function(W){this.JSC$7966_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var UnC=function(){var W=_.qu();this.JSC$7969_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.qc("channel_type"))};
UnC.prototype.increment=function(W){this.JSC$7969_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var zrC=function(){var W=_.qu();this.JSC$7972_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
zrC.prototype.increment=function(){this.JSC$7972_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var LYl=function(){var W=_.qu();this.JSC$7975_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.qc("channel_type"),_.qc("error_type"))};
LYl.prototype.increment=function(W,e){this.JSC$7975_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,e)};
var ESw=function(){var W=_.qu();this.JSC$7978_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
ESw.prototype.increment=function(){this.JSC$7978_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var AAU=function(){var W=_.qu();this.JSC$7981_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
AAU.prototype.increment=function(){this.JSC$7981_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var KVw=function(){var W=_.qu();this.JSC$7987_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
KVw.prototype.increment=function(){this.JSC$7987_streamzService.JSC$7833_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var NAl=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.Ns(W)||typeof W==="string"?W.length:_.kJ.getCount(W)},dkC=function(W,e){if(typeof W.every=="function")return W.every(e,void 0);
if(_.Ns(W)||typeof W==="string")return Array.prototype.every.call(W,e,void 0);for(var t=_.MHU(W),b=_.du(W),m=b.length,q=0;q<m;q++)if(!e.call(void 0,b[q],t&&t[q],W))return!1;return!0},WMu=function(W,e,t,b){var m=new _.UT(null);
W&&_.Wh(m,W);e&&_.eo(m,e);t&&_.tF(m,t);b&&_.bz(m,b);return m},eKQ=function(){var W=_.JQ&&_.cZ(_.AON,10)>=0,e;
if(e=_.gxQ)e=_.cZ(_.EKy,10)>=0;var t=_.G9&&_.cZ(_.AON,85)>=0;return _.w2||W||e||t},tNw=function(W){var e=_.Zre(W);
return e&&eKQ()?-W.scrollLeft:e&&_.K3(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},baU=function(W,e){e=Math.max(e,0);
_.Zre(W)?eKQ()?W.scrollLeft=-e:W.scrollLeft=W.scrollWidth-e-W.clientWidth:W.scrollLeft=e},xzE=0,HKS=!1;
t4.prototype.set=function(W){this.relativeTimeStart_=W};
t4.prototype.reset=function(){this.set(_.RP())};
t4.prototype.get=function(){return this.relativeTimeStart_};
var mAU=null,rpC=function(){mAU||(mAU=new t4)},qZC=function(){mAU||(mAU=new t4)};
_.QP(qZC,rpC);_.r=PGg.prototype;_.r.JSC$9310_buffer_="";_.r.set=function(W){this.JSC$9310_buffer_=""+W};
_.r.append=function(W,e,t){this.JSC$9310_buffer_+=String(W);if(e!=null)for(var b=1;b<arguments.length;b++)this.JSC$9310_buffer_+=arguments[b];return this};
_.r.clear=function(){this.JSC$9310_buffer_=""};
_.r.getLength=function(){return this.JSC$9310_buffer_.length};
_.r.toString=function(){return this.JSC$9310_buffer_};
var RKB=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=Rsg;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
RKB.prototype.format=function(W){return Q5E(this,W)};
var Q5E=function(W,e){var t=e.length;switch(t){case 0:return"";case 1:return String(e[0]);case 2:return W.listTwoPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1]))}for(var b=W.listStartPattern_.replace("{0}",String(e[0])).replace("{1}",String(e[1])),m=2;m<t-1;++m)b=W.listMiddlePattern_.replace("{0}",b).replace("{1}",String(e[m]));return W.listEndPattern_.replace("{0}",b).replace("{1}",String(e[t-1]))},r7C=function(){var W={style:1};
this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=_.fSD||_.ggD},FMB=function(W,e){switch(e){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},v0=function(W,e,t){a:{t=FMB(W,t);
switch(W.style_){case 1:if(t.LONG!=void 0){W=t.LONG;break a}case 2:if(t.NARROW!=void 0){W=t.NARROW;break a}default:W=t.SHORT;break a}W=void 0}return W?(new _.eLb("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:e}):""};
r7C.prototype.format=function(W){var e=[],t=W.years,b=W.months,m=W.weeks,q=W.days,Q=W.hours,X=W.minutes;W=W.seconds;t!=null&&e.push(v0(this,t,"years"));b!=null&&e.push(v0(this,b,"months"));m!=null&&e.push(v0(this,m,"weeks"));q!=null&&e.push(v0(this,q,"days"));Q!=null&&e.push(v0(this,Q,"hours"));X!=null&&e.push(v0(this,X,"minutes"));W!=null&&e.push(v0(this,W,"seconds"));return(new RKB).format(e)};
var Xew=!1,Ew1=function(W){_.WZ.call(this,W.message||W.description||W.name);this.isMissing=W instanceof b2;this.isTimeout=W instanceof _.iu&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.Lv};
_.Z(Ew1,_.WZ);Ew1.prototype.name="BiscottiError";var b2=function(){_.WZ.call(this,"Biscotti ID is missing from server")};
_.Z(b2,_.WZ);b2.prototype.name="BiscottiMissingError";var m0=null,ry$=function(){try{var W=_.HO("yt.ads.biscotti.getId_");return W?W():j_T()}catch(e){return _.jg(e)}},mI1,ITC=function(W,e){return _.rO({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:W,command:e}})},aTl=function(W){return _.rO({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},weT=function(W){return _.rO({type:"SET_ONLINE_STATUS",
payload:W})},u6U=function(W,e){return _.rO({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:e}})},cpC=function(W){return _.rO({type:"SET_OVERLAY_STATE",
payload:W})},vDM=0,G2M=function(W,e,t){var b=this;
this.priority=e;this.delay=t;this.jobId=0;this.completionCallback=_.SQ;this.wrappedJob=function(){W();b.completionCallback()};
this.id=++vDM};
G2M.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.Tm.addJob(this.wrappedJob,this.priority,this.delay)};
var Go=function(){_.b9.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.Z(Go,_.b9);Go.prototype.addJob=function(W,e,t){W=new G2M(W,e,t);this.taskIdToTask.set(W.id,W);this.isActive?DAM(this,W):this.suspendedTasks.add(W);return W.id};
var DAM=function(W,e){W.scheduledTasks.add(e);e.enqueue(function(){W.scheduledTasks.delete(e)})};
Go.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.Tm.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
Go.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(e){_.Tm.cancelJob(e.jobId);W.suspendedTasks.add(e)});
this.scheduledTasks.clear()};
Go.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(e){DAM(W,e)});
this.suspendedTasks.clear()};
Go.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.Tm.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var DF=function(W,e){this.JSC$10987_networkService_=W;this.pageRequestPromise=e};
DF.prototype.fetchData=function(W){SZB(this,this.JSC$10987_networkService_.fetchData(W))};
DF.prototype.postData=function(W,e){SZB(this,this.JSC$10987_networkService_.postData(W,e))};
DF.prototype.requestDataForServiceEndpoint=function(W,e){SZB(this,this.JSC$10987_networkService_.requestDataForServiceEndpoint(W,e))};
var SZB=function(W,e){e.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
DF.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var S6=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
S6.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
S6.prototype.fetchData=function(W){var e=BdC(this);e.fetchData(W);return e.pageRequestPromise};
S6.prototype.postData=function(W,e){var t=BdC(this);t.postData(W,e);return t.pageRequestPromise};
S6.prototype.requestDataForServiceEndpoint=function(W,e){var t=BdC(this);t.requestDataForServiceEndpoint(W,e);return t.pageRequestPromise};
var BdC=function(W){var e=W.buildNetworkRequest_();W.pendingRequests_.add(e);var t=function(){W.pendingRequests_.delete(e)};
e.pageRequestPromise.then(t,t);return e},oD1=function(W){var e=new Go;
this.JSC$10994_networkService_=W;this.JSC$10994_taskManager_=e;this.JSC$10994_networkManager_=new S6(this.networkRequestFactory_.bind(this))};
_.r=oD1.prototype;_.r.networkRequestFactory_=function(){return new DF(this.JSC$10994_networkService_,new _.bT(this.JSC$10994_taskManager_))};
_.r.reset=function(){this.JSC$10994_taskManager_.reset();this.JSC$10994_networkManager_.reset()};
_.r.start=function(){this.JSC$10994_taskManager_.start()};
_.r.pause=function(){this.JSC$10994_taskManager_.pause()};
_.r.getTaskManager=function(){return this.JSC$10994_taskManager_};
_.r.getNetworkManager=function(){return this.JSC$10994_networkManager_};
var XHB=null,wH$=[],rh=0,R6=0,qF=null,lTw=!1,Qu=null,c7E=void 0,ZaE=function(){var W=(0,_.GPN)();W&&FZM(W,W.mechanism.__iterator__(!0))},XF=function(W){this.token=W};
XF.getInstance=function(){var W;return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.d8(),2);W=e.yieldResult;if(!W)return e.return();XF.instance||(XF.instance=new XF(W));return e.return(XF.instance)})};
var onE=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,DIM(W.token),2);e=t.yieldResult;return t.return(e.clear("resource-manifest-assets"))})},FF=function(W){this.token=W};
FF.getInstance=function(){var W;return _.F(function(e){if(e.nextAddress==1)return _.a(e,_.d8(),2);W=e.yieldResult;if(!W)return e.return();FF.instance||(FF.instance=new FF(W));return e.return(FF.instance)})};
var SH9=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,DIM(W.token),2);e=t.yieldResult;return _.a(t,e.clear("auth"),0)})},KxT=!1,$AC=function(W){_.WZ.call(this,W)};
_.Z($AC,_.iWe);var k2B="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(" ");uTS()&&k2B.push("details:not(:has(summary))");var vMU=k2B.join(",");var xgu=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},peT=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},yp1=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},HcC=function(W){W.length?j59(W.shift(),function(){HcC(W)}):MVC()},Pk$=function(W){return"chrome-extension://"+W+"/cast_sender.js"},j59=function(W,
e,t){var b=document.createElement("script");
b.onerror=e;t&&(b.onload=t);_.H7(b,_.jh(W));(document.head||document.documentElement).appendChild(b)},Ctw=function(){var W=xgu(),e=[];
if(W>1){var t=W-1;e.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");e.push("//www.gstatic.com/eureka/clank/"+t+"/cast_sender.js")}return e},MVC=function(){var W=yp1();
W&&W(!1,"No cast extension found")},hpU=function(){if(nDw){var W=2,e=yp1(),t=function(){W--;
W==0&&e&&e(!0)};
window.__onGCastApiAvailable=t;j59("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",MVC,t)}},Oc1=function(){hpU();
var W=Ctw();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");HcC(W)},sBg=function(){hpU();
var W=Ctw();W.push.apply(W,_.kP(K$w.map(Pk$)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");HcC(W)},nDw=peT("loadCastFramework")||peT("loadCastApplicationFramework"),K$w=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var fTC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(fTC,_.Ow);var gDg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gDg,_.Ow);var Tdw=function(){var W=new gDg;return _.hs(W,1,3)};var B0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(B0,_.Ow);var szU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(szU,_.Ow);var JpT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(JpT,_.Ow);JpT.prototype.getToken=function(){return _.T9(this,1)};
JpT.prototype.setToken=function(W){return _.WN(this,1,W)};
var OJl=function(W){return _.op(W,3,_.Hu,_.tE())},MIg=function(W){return _.op(W,6,_.Hu,_.tE())};var og=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(og,_.Ow);og.prototype.getToken=function(){return _.mx(this,JpT,2)};
og.prototype.setToken=function(W){return _.bF(this,2,W)};
og.prototype.getName=function(){return _.T9(this,6)};
var xAS=_.e5(og);var OaC=function(W,e,t){this.requestMessage=W;this.methodDescriptor=e;this.metadata=t};
OaC.prototype.getMetadata=function(){return this.metadata};var MN9=function(W,e){e=e===void 0?{}:e;this.responseMessage=W;this.metadata=e;this.status=null};
MN9.prototype.getMetadata=function(){return this.metadata};
MN9.prototype.getStatus=function(){return this.status};var lE=function(W,e,t,b,m){this.name=W;this.methodType="unary";this.requestType=e;this.responseType=t;this.requestSerializeFn=b;this.responseDeserializeFn=m},s5T=function(W,e,t){t=t===void 0?{}:t;
return new OaC(e,W,t)};
lE.prototype.getName=function(){return this.name};var ZF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ZF,_.Ow);ZF.prototype.setHeader=function(W){return _.bF(this,1,W)};
ZF.prototype.hasHeader=function(){return _.lI(this,B0,1)};var hKE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(hKE,_.Ow);var Hag=new lE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ZF,hKE,function(W){return W.serialize()},_.e5(hKE));var $3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z($3,_.Ow);$3.prototype.setHeader=function(W){return _.bF(this,1,W)};
$3.prototype.hasHeader=function(){return _.lI(this,B0,1)};var KMB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(KMB,_.Ow);var PtU=new lE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",$3,KMB,function(W){return W.serialize()},_.e5(KMB));var k3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(k3,_.Ow);k3.prototype.setHeader=function(W){return _.bF(this,1,W)};
k3.prototype.hasHeader=function(){return _.lI(this,B0,1)};var VNu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(VNu,_.Ow);VNu.prototype.getLink=function(){return _.mx(this,og,1)};var iaE=new lE("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",k3,VNu,function(W){return W.serialize()},_.e5(VNu));var p9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(p9,_.Ow);p9.prototype.setHeader=function(W){return _.bF(this,1,W)};
p9.prototype.hasHeader=function(){return _.lI(this,B0,1)};var YZM=new lE("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",p9,og,function(W){return W.serialize()},xAS);var zK1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(zK1,_.Ow);var UAC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(UAC,_.Ow);UAC.prototype.getUrl=function(){return _.T9(this,2)};
UAC.prototype.setUrl=function(W){return _.WN(this,2,W)};var LMB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(LMB,_.Ow);var EDw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(EDw,_.Ow);var Apw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Apw,_.Ow);var EMQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(EMQ,_.Ow);var LGM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(LGM,_.Ow);var NdU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(NdU,_.Ow);var b11=_.e5(NdU);var dAC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(dAC,_.Ow);var yF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(yF,_.Ow);yF.prototype.setHeader=function(W){return _.bF(this,1,W)};
yF.prototype.hasHeader=function(){return _.lI(this,B0,1)};
yF.prototype.getCompletionUrl=function(){return _.T9(this,6)};
yF.prototype.getDeviceId=function(){return _.T9(this,11)};var Wgl=new lE("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",yF,NdU,function(W){return W.serialize()},b11);var exg=new Set(["SAPISIDHASH","APISIDHASH"]);var tXT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(tXT,_.Ow);tXT.prototype.getMessage=function(){return _.T9(this,2)};
var bUT=_.e5(tXT);var j6=function(W,e){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=e;this.JSC$17108_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17108_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&mVU(this)},XSC=function(W,e){var t=new rvC;
_.p4(W.JSC$17108_xhr_,"complete",function(){if(W.JSC$17108_xhr_.isSuccess()){var b=W.JSC$17108_xhr_.getResponseText();var m;if(m=e)m=W.JSC$17108_xhr_,m.JSC$7842_xhr_&&m.isComplete()?(m=m.JSC$7842_xhr_.getResponseHeader("Content-Type"),m=m===null?void 0:m):m=void 0,m=m==="text/plain";if(m){if(!atob)throw Error("Nj");b=atob(b)}try{var q=W.grpcResponseDeserializeFn_(b)}catch(X){C9(W,ZJ9(new _.CV(13,"Error when deserializing response data; error: "+X+(", response: "+b)),t));return}b=_.Ih(W.JSC$17108_xhr_.getStatus());
qQw(W,Rxw(W));b==0?QvS(W,q):C9(W,ZJ9(new _.CV(b,"Xhr succeeded but the status code is not 200"),t))}else{b=W.JSC$17108_xhr_.getResponseText();q=Rxw(W);if(b){var Q=Fg1(W,b);b=Q.code;m=Q.details;Q=Q.metadata}else b=2,m="Rpc failed due to xhr error. uri: "+String(W.JSC$17108_xhr_.JSC$7842_lastUri_)+", error code: "+W.JSC$17108_xhr_.JSC$7842_lastErrorCode_+", error: "+W.JSC$17108_xhr_.getLastError(),Q=q;qQw(W,q);C9(W,ZJ9(new _.CV(b,m,Q),t))}})},mVU=function(W){W.xhrNodeReadableStream_.on("data",function(e){if("1"in
e){var t=e["1"];
try{var b=W.grpcResponseDeserializeFn_(t)}catch(m){C9(W,new _.CV(13,"Error when deserializing response data; error: "+m+(", response: "+t)))}b&&QvS(W,b)}if("2"in e)for(e=Fg1(W,e["2"]),t=0;t<W.onStatusCallbacks_.length;t++)W.onStatusCallbacks_[t](e)});
W.xhrNodeReadableStream_.on("end",function(){qQw(W,Rxw(W));for(var e=0;e<W.onEndCallbacks_.length;e++)W.onEndCallbacks_[e]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$17108_onErrorCallbacks_.length!=0){var e=W.JSC$17108_xhr_.JSC$7842_lastErrorCode_;e!==0||W.JSC$17108_xhr_.isSuccess()||(e=6);var t=-1;switch(e){case 0:var b=2;break;case 7:b=10;break;case 8:b=4;break;case 6:t=W.JSC$17108_xhr_.getStatus();b=_.Ih(t);break;default:b=14}qQw(W,Rxw(W));e=_.cKN(e)+", error: "+W.JSC$17108_xhr_.getLastError();t!=-1&&(e+=", http status code: "+t);C9(W,new _.CV(b,e))}})},Rxw=function(W){var e={},t=rcl(W.JSC$17108_xhr_);
Object.keys(t).forEach(function(b){e[b]=t[b]});
return e},Fg1=function(W,e){var t=2,b={};
try{var m=bUT(e);t=_.bQ(m,1);var q=m.getMessage();_.eh(m,A_E,3,_.tE()).length&&(b["grpc-web-status-details-bin"]=e)}catch(Q){W.JSC$17108_xhr_&&W.JSC$17108_xhr_.getStatus()===404?(t=5,q="Not Found: "+String(W.JSC$17108_xhr_.JSC$7842_lastUri_)):(t=14,q="Unable to parse RpcStatus: "+Q)}return{code:t,details:q,metadata:b}};
j6.prototype.on=function(W,e){W=="data"?this.onDataCallbacks_.push(e):W=="metadata"?this.onMetadataCallbacks_.push(e):W=="status"?this.onStatusCallbacks_.push(e):W=="end"?this.onEndCallbacks_.push(e):W=="error"&&this.JSC$17108_onErrorCallbacks_.push(e);return this};
var n9=function(W,e){e=W.indexOf(e);e>-1&&W.splice(e,1)};
j6.prototype.removeListener=function(W,e){W=="data"?n9(this.onDataCallbacks_,e):W=="metadata"?n9(this.onMetadataCallbacks_,e):W=="status"?n9(this.onStatusCallbacks_,e):W=="end"?n9(this.onEndCallbacks_,e):W=="error"&&n9(this.JSC$17108_onErrorCallbacks_,e);return this};
j6.prototype.cancel=function(){this.JSC$17108_xhr_.abort()};
var QvS=function(W,e){for(var t=0;t<W.onDataCallbacks_.length;t++)W.onDataCallbacks_[t](e)},qQw=function(W,e){for(var t=0;t<W.onMetadataCallbacks_.length;t++)W.onMetadataCallbacks_[t](e)},C9=function(W,e){for(var t=0;t<W.JSC$17108_onErrorCallbacks_.length;t++)W.JSC$17108_onErrorCallbacks_[t](e)};
j6.prototype.cancel=j6.prototype.cancel;j6.prototype.removeListener=j6.prototype.removeListener;j6.prototype.on=j6.prototype.on;var rvC=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.Z(rvC,Error);var f9=function(W){this.JSC$17117_worker_=W.worker||null;this.JSC$17117_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$17117_credentialsMode_=void 0};
_.QP(f9,_.LEG);f9.prototype.createInstance=function(){var W=new gi(this.JSC$17117_worker_,this.JSC$17117_streamBinaryChunks_);this.JSC$17117_credentialsMode_&&W.setCredentialsMode(this.JSC$17117_credentialsMode_);return W};
f9.prototype.setCredentialsMode=function(W){this.JSC$17117_credentialsMode_=W};
var gi=function(W,e){_.ZY.call(this);this.JSC$17121_worker_=W;this.JSC$17121_streamBinaryChunks_=e;this.JSC$17121_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$17121_responseHeaders_=null;this.JSC$17121_method_="GET";this.JSC$17121_url_="";this.inProgress_=!1;this.JSC$17121_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.QP(gi,_.ZY);gi.prototype.open=function(W,e){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$17121_method_=W;this.JSC$17121_url_=e;this.readyState=1;To(this)};
gi.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var e={headers:this.requestHeaders_,method:this.JSC$17121_method_,credentials:this.JSC$17121_credentialsMode_,cache:void 0,signal:this.abortController_.signal};W&&(e.body=W);(this.JSC$17121_worker_||_.tz).fetch(new Request(this.JSC$17121_url_,e)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
gi.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,Jl(this));this.readyState=0};
gi.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$17121_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17121_responseHeaders_=W.headers,this.readyState=2,To(this)),this.inProgress_&&(this.readyState=3,To(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.tz.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$17121_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$17121_textDecoder_=new TextDecoder;I_B(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var I_B=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
gi.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$17121_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$17121_streamBinaryChunks_){var e=W.value?W.value:new Uint8Array(0);if(e=this.JSC$17121_textDecoder_.decode(e,{stream:!W.done}))this.response=this.responseText+=e}W.done?Jl(this):To(this);this.readyState==3&&I_B(this)}};
gi.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,Jl(this))};
gi.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,Jl(this))};
gi.prototype.handleSendFailure_=function(){this.inProgress_&&Jl(this)};
var Jl=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$17121_textDecoder_=null;To(W)};
gi.prototype.setRequestHeader=function(W,e){this.requestHeaders_.append(W,e)};
gi.prototype.getResponseHeader=function(W){return this.JSC$17121_responseHeaders_?this.JSC$17121_responseHeaders_.get(W.toLowerCase())||"":""};
gi.prototype.getAllResponseHeaders=function(){if(!this.JSC$17121_responseHeaders_)return"";for(var W=[],e=this.JSC$17121_responseHeaders_.entries(),t=e.next();!t.done;)t=t.value,W.push(t[0]+": "+t[1]),t=e.next();return W.join("\r\n")};
gi.prototype.setCredentialsMode=function(W){this.JSC$17121_credentialsMode_=W};
var To=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(gi.prototype,"withCredentials",{get:function(){return this.JSC$17121_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var a_w=function(W){var e="";_.kJ.forEach(W,function(t,b){e+=b;e+=":";e+=t;e+="\r\n"});
return e},wST=function(W,e,t){if(_.kJ.isEmpty(t))return W;
t=a_w(t);if(typeof W==="string")return _.P9(W,_.PO(e),t);_.UJ(W,e,t);return W};var uX1=function(){this.isInputValid_=!0;this.JSC$17127_streamPos_=0;this.leftoverInput_=""};
uX1.prototype.isInputValid=function(){return this.isInputValid_};var wh=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17130_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
wh.prototype.isInputValid=function(){return this.state_!=3};
var x3=function(W,e,t,b){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$17130_streamPos_+"/"+t+". Error: "+b+". With input:\n"+e;throw Error(W.errorMessage_);};
wh.prototype.acceptsBinaryInput=function(){return!0};
wh.prototype.parse=function(W){function e(I){I&128&&x3(q,Q,X,"invalid tag");(I&7)!=2&&x3(q,Q,X,"invalid wire type");q.tag_=I>>>3;q.tag_!=1&&q.tag_!=2&&q.tag_!=15&&x3(q,Q,X,"unexpected tag");q.state_=1;q.length_=0;q.countLengthBytes_=0}
function t(I){q.countLengthBytes_++;q.countLengthBytes_==5&&I&240&&x3(q,Q,X,"message length too long");q.length_|=(I&127)<<(q.countLengthBytes_-1)*7;I&128||(q.state_=2,q.countMessageBytes_=0,typeof Uint8Array!=="undefined"?q.messageBuffer_=new Uint8Array(q.length_):q.messageBuffer_=Array(q.length_),q.length_==0&&m())}
function b(I){q.messageBuffer_[q.countMessageBytes_++]=I;q.countMessageBytes_==q.length_&&m()}
function m(){if(q.tag_<15){var I={};I[q.tag_]=q.messageBuffer_;q.result_.push(I)}q.state_=0}
for(var q=this,Q=W instanceof Array?W:new Uint8Array(W),X=0;X<Q.length;){switch(q.state_){case 3:x3(q,Q,X,"stream already broken");break;case 0:e(Q[X]);break;case 1:t(Q[X]);break;case 2:b(Q[X]);break;default:throw Error("Tj`"+q.state_);}q.JSC$17130_streamPos_++;X++}W=q.result_;q.result_=[];return W.length>0?W:null};var kT1=function(){this.errorMessage_=null;this.JSC$17133_streamPos_=0;this.base64Decoder_=new uX1;this.pbParser_=new wh};
kT1.prototype.isInputValid=function(){return this.errorMessage_===null};
var cvC=function(W,e,t){W.errorMessage_="The stream is broken @"+W.JSC$17133_streamPos_+". Error: "+t+". With input:\n"+e;throw Error(W.errorMessage_);};
kT1.prototype.acceptsBinaryInput=function(){return!1};
kT1.prototype.parse=function(W){this.errorMessage_!==null&&cvC(this,W,"stream already broken");var e=null;try{var t=this.base64Decoder_;if(!t.isInputValid_)throw t.isInputValid_=!1,Error("Sj`"+t.JSC$17127_streamPos_+"`stream already broken`"+W);t.leftoverInput_+=W;var b=Math.floor(t.leftoverInput_.length/4);if(b==0)var m=null;else{try{var q=_.IP9(t.leftoverInput_.slice(0,b*4))}catch(I){var Q=t.leftoverInput_,X=I.message;t.isInputValid_=!1;throw Error("Sj`"+t.JSC$17127_streamPos_+"`"+X+"`"+Q);}t.JSC$17127_streamPos_+=
b*4;t.leftoverInput_=t.leftoverInput_.slice(b*4);m=q}e=m===null?null:this.pbParser_.parse(m)}catch(I){cvC(this,W,I.message)}this.JSC$17133_streamPos_+=W.length;return e};var $qT=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17136_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$qT.prototype.isInputValid=function(){return this.errorMessage_===null};
$qT.prototype.acceptsBinaryInput=function(){return!1};
$qT.prototype.parse=function(W){function e(I){q.state_=6;q.errorMessage_="The stream is broken @"+q.JSC$17136_streamPos_+"/"+Q+". Error: "+I+". With input:\n";throw Error(q.errorMessage_);}
function t(){q.jsonStreamParser_=new _.RU({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function b(I){if(I)for(var u=0;u<I.length;u++){var c={};c[1]=I[u];q.result_.push(c)}}
function m(I){if(I){(q.statusParsed_||I.length>1)&&e("extra status: "+I);q.statusParsed_=!0;var u={};u[2]=I[0];q.result_.push(u)}}
for(var q=this,Q=0;Q<W.length;){var X;if(X=q.state_!==2){a:{for(;Q<W.length;){if(!_.qU(W[Q])){X=!0;break a}Q++;q.JSC$17136_streamPos_++}X=!1}X=!X}if(X)return null;switch(q.state_){case 6:e("stream already broken");break;case 0:W[Q]==="["?(q.state_=1,Q++,q.JSC$17136_streamPos_++):e("unexpected input token");break;case 1:W[Q]==="["?(q.state_=2,t()):W[Q]===","||W.slice(Q,Q+5)=="null,"?q.state_=3:W[Q]==="]"?(q.state_=5,Q++,q.JSC$17136_streamPos_++):e("unexpected input token");break;case 2:X=q.jsonStreamParser_.parse(W.substring(Q));
b(X);q.jsonStreamParser_.done()?(q.state_=3,X=q.jsonStreamParser_.JSC$9437_buffer_,q.JSC$17136_streamPos_+=W.length-Q-X.length,W=X,Q=0):(q.JSC$17136_streamPos_+=W.length-Q,Q=W.length);break;case 3:W[Q]===","||W.slice(Q,Q+5)=="null,"?(q.state_=4,t(),q.jsonStreamParser_.parse("["),Q+=W[Q]===","?1:5,q.JSC$17136_streamPos_++):W[Q]==="]"&&(q.state_=5,Q++,q.JSC$17136_streamPos_++);break;case 4:X=q.jsonStreamParser_.parse(W.substring(Q));m(X);q.jsonStreamParser_.done()?(q.state_=5,X=q.jsonStreamParser_.JSC$9437_buffer_,
q.JSC$17136_streamPos_+=W.length-Q-X.length,W=X,Q=0):(q.JSC$17136_streamPos_+=W.length-Q,Q=W.length);break;case 5:e("extra input after stream end")}}return q.result_.length>0?(W=q.result_,q.result_=[],W):null};var vbS=function(W){this.JSC$17139_xhr_=W;this.JSC$17139_parser_=null;this.status_=this.JSC$17139_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17139_textDecoder_=null;this.JSC$17139_eventHandler_=new _.bk(this);this.JSC$17139_eventHandler_.listen(this.JSC$17139_xhr_,"readystatechange",this.JSC$17141_readyStateChangeHandler_)},O7=function(W,e){W.status_!=e&&(W.status_=e,W.statusHandler_&&W.statusHandler_())},MC=function(W){W.JSC$17139_eventHandler_.removeAll();
if(W.JSC$17139_xhr_){var e=W.JSC$17139_xhr_;W.JSC$17139_xhr_=null;e.abort();e.dispose()}};
vbS.prototype.getStatus=function(){return this.status_};
vbS.prototype.JSC$17141_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$17139_xhr_)a:{var e=_.gu(this.JSC$17139_xhr_),t=this.JSC$17139_xhr_.JSC$7842_lastErrorCode_,b=this.JSC$17139_xhr_.getStatus(),m=this.JSC$17139_xhr_.getResponseText();W=[];if(this.JSC$17139_xhr_.getResponse()instanceof Array){var q=this.JSC$17139_xhr_.getResponse();q.length>0&&q[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=q)}if(!(e<3||e==3&&!m&&W.length==0))if(b=b==200||b==206,e==4&&(t==8?O7(this,
7):t==7?O7(this,8):b||O7(this,3)),this.JSC$17139_parser_||(this.JSC$17139_parser_=p3Q(this.JSC$17139_xhr_),this.JSC$17139_parser_==null&&O7(this,5)),this.status_>2)MC(this);else{if(W.length>this.JSC$17139_pos_){var Q=W.length;t=[];try{if(this.JSC$17139_parser_.acceptsBinaryInput())for(var X=0;X<Q;X++){var I=this.JSC$17139_parser_.parse(Array.from(W[X]));I&&(t=t.concat(I))}else{I="";if(!this.JSC$17139_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$17139_textDecoder_=new TextDecoder}for(X=
0;X<Q;X++)I+=this.JSC$17139_textDecoder_.decode(W[X],{stream:e==4&&X==Q-1});t=this.JSC$17139_parser_.parse(I)}W.splice(0,Q);t&&this.dataHandler_(t)}catch(c){O7(this,5);MC(this);break a}}else if(m.length>this.JSC$17139_pos_){X=m.slice(this.JSC$17139_pos_);this.JSC$17139_pos_=m.length;try{var u=this.JSC$17139_parser_.parse(X);u!=null&&this.dataHandler_&&this.dataHandler_(u)}catch(c){O7(this,5);MC(this);break a}}e==4?(m.length!=0||this.hasStreamingResponseData_?O7(this,2):O7(this,4),MC(this)):O7(this,
1)}}}catch(c){O7(this,6),MC(this)}};var GzC=function(W){W=this.xhrReader_=W;var e=(0,_.p3)(this.onData_,this);W.dataHandler_=e;W=this.xhrReader_;e=(0,_.p3)(this.onStatusChange_,this);W.statusHandler_=e;this.JSC$17143_callbackMap_={};this.callbackOnceMap_={}};
_.r=GzC.prototype;_.r.on=function(W,e){var t=this.JSC$17143_callbackMap_[W];t||(t=[],this.JSC$17143_callbackMap_[W]=t);t.push(e);return this};
_.r.addListener=function(W,e){this.on(W,e);return this};
_.r.removeListener=function(W,e){var t=this.JSC$17143_callbackMap_[W];t&&_.UL(t,e);(W=this.callbackOnceMap_[W])&&_.UL(W,e);return this};
_.r.once=function(W,e){var t=this.callbackOnceMap_[W];t||(t=[],this.callbackOnceMap_[W]=t);t.push(e);return this};
_.r.onData_=function(W){var e=this.JSC$17143_callbackMap_.data;e&&DV9(W,e);(e=this.callbackOnceMap_.data)&&DV9(W,e);this.callbackOnceMap_.data=[]};
var DV9=function(W,e){for(var t={},b=0;b<W.length;t={message$jscomp$970:void 0},b++)t.message$jscomp$970=W[b],e.forEach(function(m){return function(q){try{q(m.message$jscomp$970)}catch(Q){}}}(t))};
GzC.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:SQQ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:SQQ(this,"error");break;case 8:SQQ(this,"close");break;case 2:SQQ(this,"end")}};
var SQQ=function(W,e){var t=W.JSC$17143_callbackMap_[e];t&&t.forEach(function(b){try{b()}catch(m){}});
(t=W.callbackOnceMap_[e])&&t.forEach(function(b){b()});
W.callbackOnceMap_[e]=[]};var BN1=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight=W.suppressCorsPreflight||_.HO("suppressCorsPreflight",W)||!1;this.withCredentials=W.withCredentials||_.HO("withCredentials",W)||!1;this.streamInterceptors=W.streamInterceptors||[];this.unaryInterceptors=W.unaryInterceptors||[];this.workerScope=W.workerScope;this.chunkedServerStreaming=W.useFetchDownloadStreams||!1},ZUE=function(W,e,t,b,m,q){q=q===void 0?{}:q;
var Q=e.substring(0,e.length-m.name.length),X,I=(X=q)==null?void 0:X.signal;return obg(function(u){return new Promise(function(c,v){if(I==null?0:I.aborted){var D=new _.CV(1,"Aborted");D.cause=I.reason;v(D)}else{var B={},k=l_u(W,u,Q);k.on("error",function(n){return void v(n)});
k.on("metadata",function(n){B=n});
k.on("data",function(n){var f=B;f=f===void 0?{}:f;c(new MN9(n,f))});
I&&I.addEventListener("abort",function(){k.cancel();var n=new _.CV(1,"Aborted");n.cause=I.reason;v(n)})}})},W.unaryInterceptors).call(W,s5T(m,t,b)).then(function(u){return u.responseMessage})},s7=function(W,e,t,b,m,q){q=q===void 0?{}:q;
return ZUE(W,e,t,b,m,q)};
BN1.prototype.serverStreaming=function(W,e,t,b){var m=this,q=W.substring(0,W.length-b.name.length);return $VQ(function(Q){var X=Q.methodDescriptor,I=Q.getMetadata(),u=kzS(m,!1);I=pSU(m,I,u,q+X.getName());var c=yvU(u,X.responseDeserializeFn,!0);Q=X.requestSerializeFn(Q.requestMessage);u.send(I,"POST",Q);return c},this.streamInterceptors).call(this,s5T(b,e,t))};
var l_u=function(W,e,t){var b=e.methodDescriptor,m=e.getMetadata(),q=kzS(W,!0);W=pSU(W,m,q,t+b.getName());t=yvU(q,b.responseDeserializeFn,!1);XSC(t,m["X-Goog-Encode-Response-If-Executable"]==="base64");e=b.requestSerializeFn(e.requestMessage);q.send(W,"POST",e);return t},kzS=function(W,e){e=W.chunkedServerStreaming&&!e;
return W.workerScope||e?new _.fV(new f9({worker:W.workerScope,streamBinaryChunks:e})):new _.fV},pSU=function(W,e,t,b){e["Content-Type"]="application/json+protobuf";
e["X-User-Agent"]="grpc-web-javascript/0.1";var m=e.Authorization;if(m&&exg.has(m.split(" ")[0])||W.withCredentials)t.JSC$7842_withCredentials_=!0;if(W.suppressCorsPreflight)b=wST(b,"$httpHeaders",e);else for(W=_.R(Object.keys(e)),m=W.next();!m.done;m=W.next())m=m.value,t.headers.set(m,e[m]);return b},yvU=function(W,e,t){if(t){t=new vbS(W);
var b=new GzC(t)}return new j6({xhr:W,nodeReadableStream:b},e)},$VQ=function(W,e){return e.reduce(function(t,b){return function(m){return b.intercept(m,t)}},W)},obg=function(W,e){return e.reduce(function(t,b){return function(m){return b.intercept(m,t)}},W)};var jvQ=function(W){this.client_=new BN1;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.r=jvQ.prototype;_.r.JSC$17161_depositGoogleCredential=function(W,e,t){return s7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,e||{},PtU,t)};
_.r.deleteLink=function(W,e,t){return s7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,e||{},Hag,t)};
_.r.JSC$17161_finishOAuth=function(W,e,t){return s7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,e||{},iaE,t)};
_.r.getLink=function(W,e,t){return s7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,e||{},YZM,t)};
_.r.startLinkingSession=function(W,e,t){return s7(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,e||{},Wgl,t)};var CJS=[0,Kuw,1,i4T,[0,_.Eq,[0,PLE,-1]],[0,Vg9],[0,YDu,-1]];var nbg=function(){this.storage=new Map},gbT=function(W,e,t,b,m){if(!W.storage.has(e))return null;
W=_.R(W.storage.get(e));for(e=W.next();!e.done;e=W.next())if(e=e.value,!m||e.linkName===m)if(t&&e.scopes&&f_g(e.scopes,t)||b&&e.capabilities&&f_g(e.capabilities,b))return e;return null},TN$=function(W,e,t){if(!t)W.storage.delete(e);
else if(W.storage.has(e)){var b=W.storage.get(e).filter(function(m){return m.linkName!==t});
b.length>0?W.storage.set(e,b):W.storage.delete(e)}},f_g=function(W,e){e=_.R(e);
for(var t=e.next();!t.done;t=e.next())if(!W.has(t.value))return!1;return!0};var Jvu=function(){var W=_.Ot("LINK_GAL_DOMAIN");this.alsDomain1p=_.Ot("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},xVS=function(W,e){W.apiKey=e;
return W};
Jvu.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var u2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(u2,_.Ow);var OUC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(OUC,_.Ow);var MXU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(MXU,_.Ow);var vp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(vp,_.Ow);var svl=function(W){return _.Js(W,1)};var hxB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(hxB,_.Ow);var TQQ=_.e5(hxB),cp=[1,2,3,4,5];var CeT=function(W){try{return TQQ(W)}catch(e){return null}},HUS=function(){},nMB=function(W,e){switch(_.pY(e,cp)){case 4:return(e=_.M7(e,MXU,4,cp))&&W.logStateTransition(_.Js(e,1)),!0;
case 5:return(e=_.M7(e,OUC,5,cp))&&W.logInternalEvent(_.Js(e,1)),!0}return!1},JCC=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Qw(W)}};var yCC=function(W,e){var t=this;this.validator=W;this.messageListener=e;this.dismissCallback=function(){Kgg(t,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17190_receiveMessage=function(b){b.type==="message"&&(b=b.event_,b!==null&&(new URL(t.iframe.src)).origin===b.origin&&t.validator(b.data,b.origin)&&!t.messageListener(b.data)&&(t.JSC$17190_resolveCb!==void 0&&t.JSC$17190_resolveCb(b.data),PJQ(t)))}},gMg=function(W,e,t){W.uiHandler!==void 0&&Kgg(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(b,m){W.JSC$17190_resolveCb=b;W.JSC$17190_rejectCb=m;W.iframe=document.createElement("iframe");_.fF(W.iframe,e);W.uiHandler=t.displayContent(W.iframe,W.dismissCallback);_.p4(window,"message",W.JSC$17190_receiveMessage,!1,W)})},Kgg=function(W,e){W.JSC$17190_rejectCb!==void 0&&W.JSC$17190_rejectCb(e);
PJQ(W)},PJQ=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.lj(window,"message",W.JSC$17190_receiveMessage,!1,W);W.JSC$17190_resolveCb=void 0;W.JSC$17190_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var VXl=function(W){if(W===2){var e;W=((e=window)==null?0:e.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},ftu=function(W){W=VXl(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.Qw(W)}};var jzu=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),iUC=function(W,e){this.JSC$17202_linkingSession=W;this.noticeConfig=e;this.displayInfoMap=new Map;var t=new Map;if(_.lI(this.JSC$17202_linkingSession,LMB,7))for(W=_.mx(this.JSC$17202_linkingSession,LMB,7),W=_.eh(W,UAC,1,_.tE()),W=_.R(W),e=W.next();!e.done;e=W.next())e=e.value,t.set(_.Js(e,1),_.JOL(_.mx(e,_.v8Z,3)));if(t.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){e=this.noticeConfig.enabledDataUsageNoticeUis;W=e.has(0)?t.get(1):void 0;e=e.has(1)?t.get(2):void 0;t=W!==void 0&&e!==void 0?t.get(3):void 0;var b=this.noticeConfig.nestedOrigins;var m=new hxB;var q=new u2;m=_.mT(m,2,cp,q);q=new hxB;var Q=new u2;q=_.mT(q,3,cp,Q);Q=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:m,nestedOrigins:b}]),Q.push({trustedUrl:W,lastEvent:m,nestedOrigins:b}));e!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:e,lastEvent:q,nestedOrigins:b}]),Q.push({trustedUrl:e,lastEvent:q,nestedOrigins:b}));t!==void 0?this.displayInfoMap.set(3,[{trustedUrl:t,lastEvent:q,nestedOrigins:b}]):this.displayInfoMap.set(3,Q)}};var YQw=function(W){var e=new nbg;this.galService=W;this.galCache=e};
YQw.prototype.getLink=function(W){var e=W.serviceId;var t=W.scopes;var b=W.capabilities;var m=W.linkName;var q=this,Q;return _.F(function(X){if(b!==void 0&&t!==void 0)throw Error("Zj");Q=gbT(q.galCache,e,t,b,m);return Q!==null?X.return(Q):X.return(q.galService.getLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),scopes:t,capabilities:b,linkName:m}).then(function(I){I=hbw(I);var u=q.galCache;u.storage.has(e)?u.storage.get(e).push(I):u.storage.set(e,[I]);return I}))})};
YQw.prototype.deleteLink=function(W,e,t){var b=this;return _.F(function(m){TN$(b.galCache,W,t);return m.return(b.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:e,linkName:t}).then(function(){return!0}))})};var UV$=function(W,e){var t=this;this.validator=W;this.msgHandler=e;this.closedPopupTimeout=this.JSC$17224_rejectCb=this.JSC$17224_resolveCb=this.popup=null;this.JSC$17224_receiveMessage=function(b){if(b!==null&&(b=b.event_,b.source===t.popup)){var m=b.data;if(t.validator(m,b.origin)){var q;(q=t.msgHandler)!=null&&q.call(t,m)||(t.JSC$17224_resolveCb!==null&&t.JSC$17224_resolveCb(m),zxU(t))}}}};
UV$.prototype.open=function(W,e){var t=this;this.popup!==null&&LgB(this);return new Promise(function(b,m){t.JSC$17224_resolveCb=b;t.JSC$17224_rejectCb=m;t.popup=_.Ty(window,W,"",e);_.p4(window,"message",t.JSC$17224_receiveMessage,!1,t);Ebl(t)})};
var LgB=function(W,e){W.JSC$17224_rejectCb!==null&&W.JSC$17224_rejectCb(e);zxU(W)},zxU=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.lj(window,"message",W.JSC$17224_receiveMessage,!1,W);W.popup=null;W.JSC$17224_resolveCb=null;W.JSC$17224_rejectCb=null},Ebl=function(W){W.closedPopupTimeout=_.X7e(100).then(function(){W.popup?W.popup.closed?Avw(W):Ebl(W):LgB(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Avw=function(W){W.closedPopupTimeout=_.X7e(100).then(function(){LgB(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var NNB=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),dVU=function(W,e,t,b,m,q,Q,X,I,u){var c=this;this.serviceId=W;this.sessionId=e;this.galService=t;this.oauthDetails=b;this.galLogger=m;this.interactionMode=q;this.redirectServiceUrl=Q;this.consentLanguageKeys=X;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=u;this.started=!1;this.JSC$17230_dataValidator=function(v,
D){var B=NNB.has(D);B||c.redirectServiceUrl===void 0||(B=c.redirectServiceUrl===D);return B?v.sentinel==="gdi":!1}};
dVU.prototype.complete=function(){var W=this,e;return _.F(function(t){if(W.interactionMode!==1)return t.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=Dk.getRedirectStateFromUri();return e===null?t.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):t.return(WFU(W,e))})};
dVU.prototype.start=function(){var W=this,e;return _.F(function(t){if(W.started)return t.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.T9(W.oauthDetails,1))return t.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return Dk.setLocation(_.T9(W.oauthDetails,1)),t.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
e=Dk.getPostMessagePopup(W.JSC$17230_dataValidator);return t.return(e.open(_.T9(W.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(b){W.started=!1;var m=W.galLogger;if((b==null?void 0:b.error)!==void 0)throw m.logInternalEvent(59),Error("$j");if((b==null?void 0:b.redirect_state)===void 0)throw m.logInternalEvent(131),Error("ak");return WFU(W,b.redirect_state)}).catch(function(b){W.started=
!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var WFU=function(W,e){return _.F(function(t){return t.return(elw(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:e,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(b){var m={statusCode:1,link:hbw(b.getLink())};kJ9(_.$2(b,3))!==void 0&&(m.callerState=kJ9(_.$2(b,3)));W.galLogger.logInternalEvent(134);return m}))})},Dk={getPostMessagePopup:function(W){return new UV$(W)},
getRedirectStateFromUri:function(){var W=_.Ya(Dk.getLocation()).fragment_;return(new _.R8(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.YN(window.location,_.lF(W))},
createOAuthFlow:function(W,e){return new dVU(W.serviceId,W.sessionId,W.galService,e,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var tSl=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(tSl,_.Ow);var bvw=_.e5(tSl);var mZ1=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),r3u=function(W,e,t,b,m,q,Q,X,I){var u=this;this.serviceId=W;this.sessionId=e;this.galService=t;this.gsiWebFlowDetails=b;this.colorScheme=m;this.showCloseOption=q;this.galLogger=Q;this.interactionMode=X;this.redirectServiceUrl=I;this.started=!1;this.JSC$17242_dataValidator=function(c,v){var D=mZ1.has(v);D||u.redirectServiceUrl===
void 0||(D=u.redirectServiceUrl===v);return D?c.sentinel==="gal":!1};
this.logEventProcessor=function(c){return c.result?(c=CeT(c.result))?nMB(u.galLogger,c):!1:!1}};
r3u.prototype.complete=function(){var W=this,e,t;return _.F(function(b){if(W.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));e=S9.getRedirectStateFromUri();if(e===void 0)return W.galLogger.JSC$17182_logErrorEvent(131),b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return t=qRE(W,e),b.return(RlS(W,t))}catch(m){return b.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
r3u.prototype.start=function(){var W=this,e;return _.F(function(t){if(W.started)return t.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.T9(W.gsiWebFlowDetails,1))return t.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return S9.setLocation(Qw9(W,_.T9(W.gsiWebFlowDetails,1))),t.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;e=S9.getPostMessagePopup(W.JSC$17242_dataValidator,W.logEventProcessor);return t.return(e.open(Qw9(W,_.T9(W.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(b){W.started=!1;if((b==null?void 0:b.result)===void 0)throw W.galLogger.JSC$17182_logErrorEvent(131),Error("ak");b=qRE(W,b.result);return RlS(W,b)}).catch(function(b){W.started=!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Qw9=function(W,e){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",ftu(W.colorScheme),"show_close_option",W.showCloseOption];return E5T(e,W)},RlS=function(W,e){if(e!==null&&_.lI(e,vp,2)){var t,b=e==null?void 0:(t=_.mx(e,vp,2))==null?void 0:_.Js(t,2);
b&&W.galLogger.JSC$17182_logErrorEvent(JCC(b));return svl(_.mx(e,vp,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.T9(e,1)}).then(function(m){m=hbw(m);W.galLogger.logInternalEvent(134);return{statusCode:1,link:m}})},qRE=function(W,e){e=bvw(e);
if(!_.lI(e,vp,2)&&_.T9(e,1)==="")throw W.galLogger.JSC$17182_logErrorEvent(5),Error("bk");return e},S9={getPostMessagePopup:function(W,e){return new UV$(W,e)},
getRedirectStateFromUri:function(){return _.zg(_.Ya(S9.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.YN(window.location,_.lF(W))},
createStreamlinedFlow:function(W,e){return new r3u(W.serviceId,W.sessionId,W.galService,e,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var erM=function(){var W=_.STG("GAL");this.storage=W?new _.lG(W):null};var hl=function(){};
_.Z(hl,HUS);hl.prototype.logStateTransition=function(){};
hl.prototype.logInternalEvent=function(){};
hl.prototype.JSC$17182_logErrorEvent=function(){};var FF9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(FF9,_.Ow);FF9.prototype.getCompletionUrl=function(){return _.T9(this,15)};var H0=function(W,e,t,b,m,q){this.serviceId=W;this.environment=e;this.sessionId=t;this.colorSchemeSelected=b;this.colorThemeDisplayed=m;this.JSC$17255_transport=q;this.currentState=1};
_.Z(H0,HUS);H0.prototype.logStateTransition=function(W){var e=XLU(this);e=_.rT(e,3,this.currentState);e=_.rT(e,1,W);this.currentState=W;W=mNE(1);this.dispatch(e,W)};
H0.prototype.logInternalEvent=function(W){W=mNE(W);this.dispatch(XLU(this),W)};
H0.prototype.JSC$17182_logErrorEvent=function(W){var e=XLU(this);e=_.rT(e,1,10);W=mNE(W);this.dispatch(e,W)};
var XLU=function(W){var e=new FF9;e=_.rT(e,1,W.currentState);e=_.Ga(e,7,W.serviceId);var t,b;var m=((t=window)==null?0:(b=t.location)==null?0:b.href)?_.Ya(window.location.href).JSC$8077_domain_:"NO_PACKAGE_NAME";t=_.Ga(e,8,m);t=_.rT(t,6,W.environment);t=_.Ga(t,5,"100");t=_.rT(t,11,W.colorSchemeSelected);return _.rT(t,12,W.colorThemeDisplayed)};
H0.prototype.dispatch=function(W,e){e===void 0&&(e=new _.Ir);var t=e;W=W.serialize();t=_.Ga(t,8,W);_.Zt(t,12,this.sessionId);this.JSC$17255_transport.dispatch(e)};var IHS=function(W,e){this.loggerType=W;this.sessionIndex=e!=null?e:0},aHT;
IHS.prototype.create=function(W,e,t,b,m){switch(this.loggerType){case 0:return new hl;case 1:return aHT||(aHT=(new _.ah(555,this.sessionIndex.toString())).build()),new H0(W,e,t,b,m,aHT);default:_.Qw(this.loggerType,"unknown logger type")}};var Bp=[6,2,3,1],qcT=new Map([[4,1],[1,6],[2,2],[3,3]]),VIw={statusCode:7,statusMessage:"Failed to create flow object"},dqC=function(W,e,t,b,m,q,Q,X,I,u){this.serviceId=W;this.sessionId=e;this.config=t;this.galService=b;this.JSC$17262_linkingSession=m;this.googleScopes=q;this.callerState=Q;this.consentLanguageKeys=X;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=u;this.currentFlow=0;b=this.JSC$17262_linkingSession;m=new Set;_.lI(b,LGM,1)&&m.add(1);_.lI(b,Apw,2)&&_.lI(b,EMQ,6)&&m.add(2);
_.lI(b,EDw,3)&&_.lI(b,EMQ,6)&&m.add(3);_.lI(b,zK1,4)&&m.add(6);this.supportedFlows=m;b=t.loggerType;m=t.clientEnvironment;a:{q=t.colorScheme;switch(q){case 0:q=1;break a;case 1:q=2;break a;case 2:q=3;break a;default:_.Qw(q)}q=void 0}a:{Q=t.colorScheme;Q=VXl(Q);switch(Q){case 0:Q=1;break a;case 1:Q=2;break a;default:_.Qw(Q)}Q=void 0}this.galLogger=(new IHS(b,t.authUser)).create(W,m,e,q,Q)},uZ1=function(W){return new Promise(function(e){var t,b,m,q,Q,X,I,u,c,v;
return _.F(function(D){switch(D.nextAddress){case 1:t=ACT(W.currentFlow,W.supportedFlows),b=!1,m=new iUC(W.JSC$17262_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(t===void 0){D.jumpTo(4);break}_.Qh(D,5);var B=m,k=t,n=void 0;b?k===1&&(n=B.displayInfoMap.get(2)):k===2||k===3?n=B.displayInfoMap.get(1):k===1&&(n=B.displayInfoMap.get(3));q=n?n:[];Q=W.consentLanguageKeys;X=_.R(q);I=X.next();case 7:if(I.done)return W.currentFlow=t,_.a(D,Ym$(wLT(W,Q)),11);u=I.value;return _.a(D,xqS(u,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:c=D.yieldResult;if(c.statusCode!==1)return tvS(W.serviceId),W.currentFlow=0,e(G5({statusCode:c.statusCode,statusMessage:c.statusMessage},W.callerState)),D.return();c.consentLanguageKeys!==void 0&&(Q=c.consentLanguageKeys);I=X.next();D.jumpTo(7);break;case 11:v=D.yieldResult;if(v.statusCode!==10)return v.statusCode!==6&&(tvS(W.serviceId),W.currentFlow=0),v.statusCode!==1&&W.callerState!==void 0&&(v.callerState=W.callerState),e(v),D.return();_.Hi(D,6);break;
case 5:_.w9(D);case 6:t=ACT(W.currentFlow,W.supportedFlows);b=!0;D.jumpTo(2);break;case 4:tvS(W.serviceId),W.currentFlow=0,e(G5({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.u8(D)}})})},mnC=function(W,e,t){W.currentFlow=e;
return zbE(wLT(W,t)).then(function(b){return b.statusCode===10&&W.config.interactionMode===1&&ACT(W.currentFlow,W.supportedFlows)!==void 0?uZ1(W):b})},wLT=function(W,e){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:e,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$17262_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var QQS=function(W,e){this.config=W;this.galService=e.getService();this.JSC$17275_galRepository=e.JSC$17293_galRepository};
QQS.prototype.getLink=function(W,e){return c3C(this,W,e)};
var c3C=function(W,e,t){return W.JSC$17275_galRepository.getLink({serviceId:e,scopes:void 0,capabilities:void 0,linkName:t}).then(function(b){return{statusCode:1,link:b}}).catch(function(b){return{statusCode:RrS(b.code),
statusMessage:b.message}})};
QQS.prototype.deleteLink=function(W,e){return this.JSC$17275_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,e).then(function(){return{statusCode:1}}).catch(function(t){return{statusCode:RrS(t.code),
statusMessage:t.message}})};
QQS.prototype.startLinkingSession=function(W){var e=W.serviceId;var t=W.sessionId;return WYC({serviceId:e,sessionId:t!==void 0?t:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var K9=function(W,e,t,b,m,q,Q){this.apiKey=e;this.authUser=t;this.oauthToken=b;this.bucket=m;this.locale=q;this.galSdkEventHandler=Q;if(b===void 0){if(e===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new jvQ(W)};
K9.prototype.deleteLink=function(W){var e=W.serviceId;var t=W.sessionId;var b=W.accountLinkingEntryPoint;var m=W.linkName;var q=this,Q;return _.F(function(X){var I=(new ZF).setHeader(P0(q,t));var u=vLU({serviceId:e,linkName:m});I=_.bF(I,2,u);Q=_.hs(I,3,b);return X.return(q.makeRequest(q.galServiceClient.deleteLink,Q,[1,3],[2,4]))})};
var elw=function(W,e){var t=e.serviceId;var b=e.sessionId;var m=e.dynamicUrlParameters;var q=e.redirectState;var Q=e.consentLanguageKeys;var X=e.partnerConfigMinReadTimestamp;var I;return _.F(function(u){var c=(new k3).setHeader(P0(W,b,m));c=_.WN(c,2,t);I=_.WN(c,4,q);Q!==void 0&&_.WN(I,5,Q);X!==void 0&&_.bF(I,6,X);return u.return(W.makeRequest(W.galServiceClient.JSC$17161_finishOAuth,I,[1,3],[2,4]))})};
K9.prototype.getLink=function(W){var e=W.serviceId;var t=W.sessionId;var b=W.scopes;var m=W.capabilities;var q=W.consistencyKey;var Q=W.linkName;var X=this,I;return _.F(function(u){var c=(new p9).setHeader(P0(X,t)),v=vLU({serviceId:e,scopes:b,capabilities:m,linkName:Q});I=_.bF(c,2,v);q!==void 0&&(c=Tdw(),c=_.WN(c,2,q),_.bF(I,3,c));return u.return(X.makeRequest(X.galServiceClient.getLink,I,[1,3],[2,4]))})};
var UqS=function(W,e){var t=e.serviceId;var b=e.sessionId;var m=e.googleScopes;var q=e.consistencyKey;var Q;return _.F(function(X){var I=(new $3).setHeader(P0(W,b));I=_.WN(I,2,t);var u=Array.from(m.values());I=_.$E(I,3,u,_.OB);u=Tdw();u=_.WN(u,2,q);Q=_.bF(I,4,u);return X.return(W.makeRequest(W.galServiceClient.JSC$17161_depositGoogleCredential,Q,[1,3],[2,4]))})};
K9.prototype.startLinkingSession=function(W){var e=W.serviceId;var t=W.sessionId;var b=W.scopes;var m=W.capabilities;var q=W.loginHint;var Q=W.supportedFlows;var X=W.completionUrl;var I=W.usePingPong;var u=W.twoWayLinking;var c=W.accountLinkingEntryPoint;var v=W.callerState;var D=W.consentLanguageKeys;var B=W.googleScopes;var k=W.dataUsageNoticeConfig;var n=W.linkName;var f=W.dynamicUrlParameters;var M=W.partnerConfigMinReadTimestamp;var K=this,U,V;return _.F(function(L){if(m!==void 0&&b!==void 0)throw Error("Zj");
var E=(new yF).setHeader(P0(K,t,f));U=_.WN(E,2,e);n!==void 0&&_.WN(U,14,n);if(m!==void 0){E=U;var RR=Array.from(m.values());_.$E(E,5,RR,_.OB)}else b!==void 0&&(E=U,RR=Array.from(b.values()),_.$E(E,3,RR,_.OB));X!==void 0&&_.WN(U,6,X);I!==void 0&&_.y5(U,15,I);Q!==void 0&&(E=U,RR=Array.from(Q.values()),_.$E(E,4,RR,_.o$));if(u!==void 0){if(u&&(!B||B.size===0))throw Error("dk");_.y5(U,8,u)}c!==void 0&&_.hs(U,9,c);q!==void 0&&_.WN(U,13,q);v!==void 0&&(E=U,RR=(new TextEncoder).encode(v),_.kE(E,12,_.xv(RR,
!1),_.Jk()));D!==void 0&&_.WN(U,16,D);M!==void 0&&_.bF(U,18,M);if(k!==void 0&&k.size>0||B!==void 0&&B.size>0)V=new dAC,B!==void 0&&B.size>0&&(E=V,RR=Array.from(B.values()),_.$E(E,1,RR,_.OB)),k!==void 0&&(k.has(0)&&_.RQG(V,2,_.o$,1,_.lg),k.has(1)&&_.RQG(V,2,_.o$,2,_.lg)),_.bF(U,17,V);return L.return(K.makeRequest(K.galServiceClient.startLinkingSession,U,[1],[2]))})};
K9.prototype.getMetadata=function(){var W=this,e,t;return _.F(function(b){e={};W.useFpa?(e["X-Goog-Api-Key"]=W.apiKey,e["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(t=_.Yb9([]))&&(e.Authorization=t)):e.Authorization="Bearer "+W.oauthToken;W.locale&&(e["accept-language"]=W.locale);return b.return(e)})};
K9.prototype.makeRequest=function(W,e,t,b){var m=this,q;return _.F(function(Q){if(Q.nextAddress==1)return _.a(Q,m.getMetadata(),2);q=Q.yieldResult;G_E(m,t);return Q.return(W.bind(m.galServiceClient)(e,q).finally(function(){G_E(m,b)}))})};
var G_E=function(W,e){W.galSdkEventHandler!==void 0&&e.forEach(function(t){W.galSdkEventHandler.onEvent(t)})},P0=function(W,e,t){var b=new B0;
e=_.kE(b,2,_.ZM(e),0);e=_.hs(e,5,3);t=_.$E(e,8,t,_.OB);W.bucket!==void 0&&_.WN(t,1,W.bucket);return t},vLU=function(W){var e=W.serviceId;
var t=W.scopes;var b=W.capabilities;W=W.linkName;if(b!==void 0&&t!==void 0)throw Error("Zj");var m=new fTC;e=_.WN(m,1,e);b!==void 0?(t=Array.from(b.values()),_.$E(e,5,t,_.OB)):t!==void 0&&(t=Array.from(t.values()),_.$E(e,3,t,_.OB));W!==void 0&&_.WN(e,6,W);return e};var FY$=function(W){this.galService=new K9(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.locale,W.galSdkEventHandler);this.JSC$17293_galRepository=new YQw(this.galService)};
FY$.prototype.getService=function(){return this.galService};var DZ$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(DZ$,_.Ow);var SRC=function(W){var e=new DZ$;return _.rT(e,1,W)};
DZ$.prototype.setErrorMessage=function(W){return _.Ga(this,2,W)};var BkB=[0,_.N7,_.LY,_.N7];var VF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(VF,_.Ow);var oL$=[0,[1,2,3],_.As,[0,MgQ,H4C,-1],_.As,[0,hmU,-1],_.ejL];var lHC=[0,_.z9,1,_.N7,_.LY,-1,1,_.maG,_.Y2,_.N7,-1,oL$];var ZvC=[0,_.N7,[0,_.maG,_.Y2,[0,_.LY]],_.Uq,[0,_.N7,-1]];var ri=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ri,_.Ow);var $ZQ=[0,_.LY,_.N7,-2,_.z9,_.N7,_.z9,_.N7,-2,1,_.Uq];var k_S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(k_S,_.Ow);var pLw=[0,_.z9];var y3E=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(y3E,_.Ow);var jww=[0,_.N7,ZvC,pLw,$ZQ,lHC];var sXB=_.NS(y3E,jww);var C0g=[0,CJS];var iBU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(iBU,_.Ow);var nLS=[0,[1,3],zmE,_.N7,zmE];var bE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(bE,_.Ow);var fH1=[0,_.N7];var gLu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(gLu,_.Ow);var m9=function(W){return _.M7(W,DZ$,2,tl)},TkB=function(W){var e=new gLu;
return _.mT(e,2,tl,W)},tl=[1,
2];var J3S=[0,tl,_.As,fH1,_.As,BkB,_.Eq,nLS,1,_.N7,C0g];var xZw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(xZw,_.Ow);var MSQ=function(W){var e=new xZw;return _.mT(e,3,Ovw,W)},Ovw=[2,
3];var iE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(iE,_.Ow);var sw9=function(W,e){return _.bF(W,2,e)},hlS=function(W,e){return _.bF(W,8,e)},HvM=function(W,e){return _.bF(W,3,e)};var KFE=[0,_.N7,J3S,jww,_.aMP,[0,[5,6],[0,_.N7,-2],[0,_.z9,_.N7,_.LY],[0,oL$],[0,_.LY,_.N7,-1,_.IMv,_.N7],_.As,[0,[0,_.z9],_.N7,-1],_.As,[0,[3,4],_.N7,-1,_.As,[0,[0,_.N7,_.Uq]],_.As,[0,[0,[0,[1,2],_.As,[0],_.As,[0]]]]]],_.aMP,-1,[0,Ovw,_.N7,_.As,fH1,_.As,BkB,_.Eq,nLS,[0,CJS]]];var P0C=_.NS(iE,KFE),VSC=_.dl(KFE);var ivM=function(){_.ka.call(this)};
_.Z(ivM,_.ka);ivM.prototype.init=function(){};
new ivM;var YRB=_.Nw(["data-"]),zlE=_.Nw(["aria-"]),UZ$=_.Nw(["aria-"]),Y3=function(W,e){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=e===void 0?!1:e;this.JSC$17322_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.syB(_.tz.location.href)},HBB=function(W,e){W.onConsentPrimitiveShownCallback=e},LF9=function(W,e){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:e!==void 0?e:5E3},PmT=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(e,t){zo(W,1);ELC(W,A3w(W,!0),NkU(W));W.iframe?W.prewarmChannel||dZM(W,W.iframe,e):t(Error("ek"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
Y3.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var e=Date.now();Wz1(this,e);this.consentPromise=new Promise(function(t,b){zo(W,0,e);var m=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=wTg(getComputedStyle(document.body).direction==="rtl",m),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
ELC(W,A3w(W),NkU(W));W.iframe?W.channel||eHC(W,W.iframe,t,b):(tjT(W),b(Error("ek")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var eHC=function(W,e,t,b){var m,q;_.F(function(Q){switch(Q.nextAddress){case 1:zo(W,3);m=!1;setTimeout(function(){if(!m){tjT(W);bnl(W);mwE(W);var X=SRC(7).setErrorMessage("Timeout connecting to iframe");t(hlS(sw9(new iE,TkB(X)),MSQ(X)))}},LF9(W,ri1(W)));
if(!W.prewarmPromise){Q.jumpTo(2);break}_.Qh(Q,3);return _.a(Q,W.prewarmPromise,5);case 5:_.Hi(Q,2);break;case 3:_.w9(Q),q=SRC(4).setErrorMessage("Error while prewarming."),t(hlS(sw9(new iE,TkB(q)),MSQ(q)));case 2:W.prewarmChannel&&W.prewarmChannel.send(VSC(HvM(new iE,W.consentPrimitiveRequest))),W.channel=_.eQ({destination:W.JSC$17322_win,iframe:e,origin:qlC(W),channelName:"cpw",onEstablished:function(){m=!0;tjT(W);W.isLatencyMeasurementExperiment||(W.JSC$17322_previousBodyOverflow=document.body.style.overflow,
W.JSC$17322_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$17322_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var X=W.iframe;X.style.bottom="0";X.style.position="fixed";X.style.right="0";X.style.border="none";X.style.left="0";X.style.top=
"0";X.style.zIndex="5000";X.style.pointerEvents="";X.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?zo(W,4):zo(W,6);var I;(I=W.onConsentPrimitiveShownCallback)==null||I.call(W)},
onMessage:function(X){X=P0C(X.data);switch(_.Js(X,1)){case 1:bnl(W);var I=uwQ(_.mx(X,_.Vg,7));I&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||zo(W,6,I),zo(W,5,I));if(I=uwQ(_.mx(X,_.Vg,6)))zo(W,7,I),zo(W,8);var u,c;((u=_.mx(X,gLu,2))==null?void 0:_.pY(u,tl))!==0&&((c=_.mx(X,xZw,8))==null?void 0:_.pY(c,Ovw))!==0||b(Error("fk"));t(X);break;case 2:mwE(W)}}}),_.u8(Q)}})},dZM=function(W,e,t){W.prewarmChannel=_.eQ({destination:W.JSC$17322_win,
iframe:e,origin:qlC(W),channelName:"pwcp",onEstablished:function(){zo(W,2);t()}})},qlC=function(W){var e=_.Xh(W.src).toString();
return e&&e.indexOf("://")<0&&e.indexOf("//")!==0?W.origin:_.syB(e)},A3w=function(W,e){e=e===void 0?!1:e;
var t,b=new Map([["origin",W.origin],["hl",(t=RHS(W))!=null?t:null]]);e&&b.set("pw","1");e=_.R([["cpr",W.consentPrimitiveRequest.serialize()]]);for(t=e.next();!t.done;t=e.next()){var m=_.R(t.value);t=m.next().value;m=m.next().value;b.set(t,m)}W.isDarkTheme()&&b.set("color_scheme","dark");return _.m_(W.src,b)},tjT=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
Y3.prototype.getSrc=function(){var W=_.Et(this.origin),e;var t=(e=_.mx(this.consentPrimitiveRequest,k_S,3))==null?void 0:_.bQ(e,1);e="consent.google.com";t=t?"/u/"+encodeURIComponent(t.toString()):"";(W==null?0:W.endsWith("youtube.com"))?e="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(e="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.Fh("https://"+e+"/signedin"+t+"/landing")};
var ELC=function(W,e,t){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",t!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.fF(W.iframe,e),W.iframe.setAttribute("jsname","C5o1O"),Q4E(W.iframe),document.body.appendChild(W.iframe))},Q4E=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},bnl=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$17322_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$17322_previousHtmlOverscroll),W.JSC$17322_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$17322_previousBodyOverscroll),W.JSC$17322_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$17322_previousBodyOverflow),W.enableDialogA11yFix&&FzE(W,!1)),Q4E(W.iframe))};
Y3.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(FzE(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var FzE=function(W,e){var t,b,m=(t=W.iframe)==null?void 0:(b=t.parentElement)==null?void 0:b.children;if(m)for(t=0;t<m.length;t++)b=m[t],b!==W.iframe&&(e?(b.hasAttribute("aria-hidden")&&_.P7([_.eH(YRB)],b,"data-old-aria-hidden",b.getAttribute("aria-hidden")),_.P7([_.eH(zlE)],b,"aria-hidden","true")):(b.removeAttribute("aria-hidden"),b.hasAttribute("data-old-aria-hidden")&&(_.P7([_.eH(UZ$)],b,"aria-hidden",b.getAttribute("data-old-aria-hidden")),b.removeAttribute("data-old-aria-hidden"))))},zo=function(W,
e,t){var b;
(b=W.latencyCallback)==null||b.call(W,{latencyType:e,timestampEpochMillis:t!=null?t:Date.now()})};var XNS=function(W,e,t){Y3.call(this,e,t===void 0?!1:t);this.consentPrimitiveRequest=W;W=RHS(this);_.Q_M(W);this.src=this.getSrc();var b;this.initialLoadingStrategy=(b=_.mx(this.consentPrimitiveRequest,ri,4))==null?void 0:_.Js(b,4)},In$;
_.Z(XNS,Y3);var hLu=function(W){var e=_.S("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:e===void 0?!1:e};In$||(In$=new XNS(W.request,W.isLatencyMeasurementExperiment||_.Js(W.request,1)===2,W.enableDialogA11yFix));return In$},RHS=function(W){var e;
return(e=_.mx(W.consentPrimitiveRequest,ri,4))==null?void 0:_.T9(e,1)},Wz1=function(W,e){if(!_.lI(W.consentPrimitiveRequest,VF,5)){var t=W.consentPrimitiveRequest,b=new VF;
_.bF(t,5,b)}var m;if((m=_.mx(W.consentPrimitiveRequest,VF,5))==null||_.aDG(_.oP(m,8))==null){var q;(q=_.mx(W.consentPrimitiveRequest,VF,5))!=null&&_.Zt(q,8,e)}},NkU=function(W){var e;
return(e=_.mx(W.consentPrimitiveRequest,VF,5))==null?void 0:_.bQ(e,1)};
XNS.prototype.isDarkTheme=function(){var W;return((W=_.mx(this.consentPrimitiveRequest,ri,4))==null?void 0:_.Js(W,2))===2};
var ri1=function(W){var e;return((e=_.mx(W.consentPrimitiveRequest,ri,4))==null?void 0:_.bQ(e,5))||void 0},mwE=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);In$=void 0},VfS=function(W){return Y3.prototype.showPrimitive.call(W).then(function(e){return _.mx(e,gLu,2)})};for(var U7={},an9=(U7[64]="ma",U7[73]="ogb",U7[89]="cr",U7[21]="test",U7[0]="unkn",U7[137]="con",U7[155]="hl",U7[78]="yt",U7[171]="lp",U7[172]="ap",U7[177]="amo",U7[178]="pqe",U7[74]="gg",U7[1]="gm",U7[140]="am",U7[193]="sc",U7),wNl=_.R(Object.keys(an9)),uqC=wNl.next();!uqC.done;uqC=wNl.next());var ciT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(ciT,_.Ow);var vBl=[0,[2,3,4],_.N7,so1,zmE,_.ejL];var GLC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(GLC,_.Ow);var DwT=_.NS(GLC,[0,YDu,_.LY,_.N7,_.LY,_.N7,vBl]);var SlQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(SlQ,_.Ow);SlQ.prototype.getCommand=function(){return _.Js(this,1)};
var B0w=function(){var W=new SlQ;return _.hs(W,1,0)};var oBE=_.dl([0,YDu,_.LY,[0,_.N7,_.LY,-1]]);var lnC=new _.GD("s"),Zn9=new _.GD("t"),$ww=new _.GD("u"),kL$=new _.GD("v"),pNC=function(W,e,t){_.DY.call(this,lnC);this.mediaKey=W;this.photoUrl=e;this.photoSource=t};
_.Z(pNC,_.DY);var yiC=function(){_.DY.call(this,Zn9)};
_.Z(yiC,_.DY);var j4u=function(W){W=W===void 0?!1:W;_.DY.call(this,$ww);this.isError=W};
_.Z(j4u,_.DY);var CCQ=function(){_.DY.call(this,kL$)};
_.Z(CCQ,_.DY);var nB$=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Jiu=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return fnw(W.substr(1));if(W.charAt(0)=="["){var e=nB$.exec(W);W=W.indexOf("=")==-1?void 0:e[3];return gBE(e[1],W)}return T0T(W)}return W},fnw=function(W){return function(e){return e.getAttribute&&_.Vd(e,W)}},gBE=function(W,e){return function(t){return e!==void 0?t.getAttribute&&t.getAttribute(W)==e:t.hasAttribute&&t.hasAttribute(W)}},T0T=function(W){W=W.toUpperCase();
return function(e){return(e=e.tagName)&&e.toUpperCase()==W}},xwl=function(){return!0};var L9=function(W,e){this.JSC$17350_key_=W;this.JSC$17350_value_=e},E7=function(W){throw Error("gk`"+W.JSC$17350_key_);
},OnC=function(W,e){return new TypeError("hk`"+e+"`"+W.JSC$17350_key_+"`"+W.JSC$17350_value_+"`"+typeof W.JSC$17350_value_)};
L9.prototype.string=function(W){if(arguments.length==0)var e=Mju(this);else{var t;e=(t=s4C(this))!=null?t:W}return e};
var Mju=function(W){var e=s4C(W);e===null&&E7(W);return e},s4C=function(W){var e=W.JSC$17350_value_;
if(e==null)return null;if(typeof e==="string")return e;throw OnC(W,"string");};
L9.prototype.bool=function(W){if(arguments.length==0){var e=this.optionalBool();e===null&&E7(this)}else{var t;e=(t=this.optionalBool())!=null?t:W}return e};
L9.prototype.optionalBool=function(){var W=this.JSC$17350_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw OnC(this,"boolean");};
L9.prototype.number=function(W){if(arguments.length==0){var e=hHU(this);e===null&&E7(this)}else{var t;e=(t=hHU(this))!=null?t:W}return e};
var hHU=function(W){var e=W.JSC$17350_value_;if(e==null)return null;if(typeof e==="number")return e;if(typeof e==="string"){var t=Number(e);if(!isNaN(t)&&(t!==0||e.trim().length!==0))return t}throw OnC(W,"number");};
L9.prototype.toString=function(){return Mju(this)};
L9.prototype.array=function(W){if(arguments.length==0){var e=HnE(this);e===null&&E7(this);return e}e=HnE(this);return e==null?W:e};
var HnE=function(W){var e=W.JSC$17350_value_;if(e==null)return null;Array.isArray(e)||(typeof e!=="string"?e=[e]:(e=e.trim(),e=e==""?[]:e.split(",").map(function(t){return t.trim()})));
return Kz$(W,e)},Kz$=function(W,e){var t=W.JSC$17350_key_+"[";
return Array.from(e,function(b,m){return new L9(t+m+"]",b)})};
L9.prototype.object=function(W){var e=this.JSC$17350_value_;if(e==null)return W===void 0&&E7(this),W;if(typeof e==="object"&&e.constructor===Object){W={};var t=this.JSC$17350_key_+".",b;for(b in e)W[b]=new L9(t+b,e[b]);return W}throw OnC(this,"object");};var Al=function(W){this.list_=PCl(W)},PCl=function(W){if(W instanceof Al)W=W.list_;
else if(W[0]instanceof Al){for(var e=new Set,t=0;t<W.length;t++)for(var b=_.R(W[t].list_),m=b.next();!m.done;m=b.next())e.add(m.value);W=e}return[].concat(_.kP(W))};
_.r=Al.prototype;_.r.each=function(W,e,t){((t===void 0?0:t)?oww:_.VZ)(this.list_,W,e);return this};
_.r.size=function(){return this.list_.length};
_.r.isEmpty=function(){return this.list_.length===0};
_.r.get=function(W){return this.list_[W]||null};
_.r.el=function(){return this.list_[0]||null};
_.r.map=function(W,e){return _.yO(this.list_,W,e)};
_.r.equals=function(W){return this===W||_.Q8(this.list_,W.list_)};
_.r.first=function(){return this.list_.length==0?null:new NC(this.list_[0])};
_.r.find=function(W){var e=[];this.each(function(t){t=t.querySelectorAll(String(W));for(var b=0;b<t.length;b++)e.push(t[b])});
return new Al(e)};
_.r.parent=function(){var W=[];this.each(function(e){(e=e.parentElement||null)&&!_.PZ(W,e)&&W.push(e)});
return new Al(W)};
_.r.children=function(){var W=[];this.each(function(e){e=_.TX(e);for(var t=0;t<e.length;t++)W.push(e[t])});
return new Al(W)};
_.r.filter=function(W){W=_.Xi(this.list_,Jiu(W));return new Al(W)};
_.r.closest=function(W){var e=[],t=Jiu(W),b=function(m){return _.A7(m)&&t(m)};
this.each(function(m){(m=_.JD(m,b,!0))&&!_.PZ(e,m)&&e.push(m)});
return new Al(e)};
_.r.next=function(W){return VjC(this,_.tPP,W)};
_.r.prev=function(W){return VjC(this,UkE,W)};
var VjC=function(W,e,t){var b=[];var m=t?Jiu(t):xwl;W.each(function(q){(q=e(q))&&m(q)&&b.push(q)});
return new Al(b)};
Al.prototype.setClass=function(W){return this.each(function(e){_.Pq(e,W)})};
var inB=function(W,e){return W.each(function(t){_.Nk(t,e)})},YlB=function(W,e){return W.each(function(t){_.ED(t,e)})};
Al.prototype.toggleClass=function(W,e){return e===!0?inB(this,W):e===!1?YlB(this,W):this.each(function(t){_.Vd(t,W)?_.ED(t,W):_.Nk(t,W)})};
Al.prototype.setText=function(W){return this.each(function(e){_.Jt(e,W)})};
var zHS=function(W){W.each(function(e){e.removeAttribute("aria-hidden")})};
Al.prototype.getStyle=function(W){if(this.list_.length>0){var e=this.list_[0],t=e.style[_.vF(W)];return typeof t!=="undefined"?t:e.style[_.ck8(e,W)]||""}};
Al.prototype.getData=function(W){if(this.list_.length===0)return new L9(W,null);var e=yQM(this.list_[0],W);return new L9(W,e)};
Al.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(e){}return this};
Al.prototype.click=function(){var W=_.n8(this.el());if(W.createEvent){var e=W.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(e)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var di=function(W,e,t,b){function m(X,I,u){var c=I;I&&I.parentNode&&(c=I.cloneNode(!0));X(c,u)}
b=b===void 0?!1:b;if(W.list_.length==1){var q=W.list_[0],Q=function(X){return e(X,q)};
t instanceof Al?t.each(Q,void 0,b):Array.isArray(t)?(b?oww:_.VZ)(t,Q):Q(t);return W}return W.each(function(X){t instanceof Al?t.each(function(I){m(e,I,X)}):Array.isArray(t)?_.VZ(t,function(I){m(e,I,X)}):m(e,t,X)})};
_.r=Al.prototype;_.r.append=function(W){return di(this,function(e,t){e&&t.appendChild(e)},W)};
_.r.appendTo=function(W){(new Al([W])).append(this);return this};
_.r.remove=function(){return di(this,function(W,e){_.BX(e)},null)};
_.r.empty=function(){return di(this,function(W,e){_.nd(e)},null)};
_.r.after=function(W,e){return di(this,function(t,b){t&&_.gj(t,b)},W,!(e===void 0||e))};
_.r.before=function(W){return di(this,function(e,t){e&&_.fd(e,t)},W)};
_.r.replaceWith=function(W){return di(this,function(e,t){e&&_.ds8(e,t)},W)};
_.r.toggle=function(W){return this.each(function(e){_.L3(e,W)})};
_.r.show=function(){return this.toggle(!0)};
_.r.hide=function(){return this.toggle(!1)};
_.r.trigger=function(W,e,t,b){return Uw1(this,W,e,t,b)};
var Uw1=function(W,e,t,b,m){return W.each(function(q){_.$Dg(_.n8(q)).triggerWizEventInternal(q,e,t,b,m)})},NC=function(W,e){W instanceof Al&&(e=W.list_,W=null);
this.list_=PCl(W!=null?[W]:e)};
_.QP(NC,Al);_.r=NC.prototype;_.r.children=function(){return new Al(Array.prototype.slice.call(_.TX(this.list_[0])))};
_.r.each=function(W,e){W.call(e,this.list_[0],0);return this};
_.r.size=function(){return 1};
_.r.el=function(){return this.list_[0]};
_.r.first=function(){return this};var Wt=function(W,e){e=e===void 0?window:e;this.hostId=W;this.JSC$17361_win=e;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17361_previousHtmlOverscroll=this.JSC$17361_previousBodyOverscroll=this.JSC$17361_previousBodyOverflow="";this.eventTarget=new _.ZY;this.JSC$17361_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
AiE=function(W){var e=Lz9(Lz9(Lz9(new EB$(78),"po"),"hppp"),"hhc");
e.authUser=Number(_.Ot("SESSION_INDEX","0"));e.colorScheme=W;return e};
Wt.prototype.getOrigin=function(){return this.origin?this.origin:_.tF(_.eo(_.Wh(new _.UT,this.JSC$17361_win.location.protocol),this.JSC$17361_win.location.hostname),this.JSC$17361_win.location.port).toString()};
Wt.prototype.getTargetOrigin=function(){return _.tF(_.eo(_.Wh(new _.UT,this.scheme),this.domain),this.port)};
Wt.prototype.preloadIframe=function(W){var e=this;if(this.iframeLoadPromise===void 0){var t=document.createElement("iframe");this.iframe=t;oSC(t,W);this.iframeLoadPromise=new Promise(function(b,m){var q=!1,Q=function(X){X.stopPropagation();t.removeEventListener("error",Q);t.removeEventListener("securitypolicyviolation",Q);m(Error("ik",{cause:X}))};
t.addEventListener("error",Q);t.addEventListener("securitypolicyviolation",Q);setTimeout(function(){q||m(Error("jk"))},3E4);
N0U(e,t,function(){q=!0;t.removeEventListener("error",Q);t.removeEventListener("securitypolicyviolation",Q);b()})});
dwC(this);W=this.getTargetOrigin().toString();t.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(t)}return this.iframeLoadPromise};
var tuM=function(W,e){var t,b;return _.F(function(m){if(m.nextAddress==1)return t=wTg(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(t),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.Qh(m,2),_.a(m,W.preloadIframe(e),4);if(m.nextAddress!=2){W.parentElement.removeChild(t);W.JSC$17361_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$17361_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$17361_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var q=W.iframe;q.style.bottom="0";q.style.border="none";q.style.height="100%";q.style.left="0";q.style.position=W.iframePosition;q.style.right="0";q.style.top="0";q.style.width="100%";q.style.zIndex="2202";q.setAttribute("aria-hidden","false");q.setAttribute("aria-modal","true");
W.opened=!0;WcE(W);return _.Hi(m,0)}b=_.w9(m);W.parentElement.removeChild(t);DnQ(W.isDarkTheme());ezB(W,!1);throw Error("kk",{cause:b});})},ezB=function(W,e){e=e===void 0?!0:e;
W.iframe!==void 0&&(bYE(W),document.documentElement.style.overscrollBehavior=W.JSC$17361_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$17361_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$17361_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),e?dwC(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},bYE=function(W){W.backgroundElementsAriaHiddenIsNull&&
(zHS(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(e){e.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},WcE=function(W){W.backgroundElementsAriaHiddenIsNull=(new NC(W.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")===null&&e!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(e){e.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new NC(W.iframe.parentElement)).children().filter(function(e){return e.getAttribute("aria-hidden")==="false"&&e!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(e){e.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new NC(W.iframe.parentElement)).children().filter(function(e){return!e.hasAttribute("inert")&&e!==W.iframe});
W.backgroundElementsWithoutInert.each(function(e){e.setAttribute("inert","true")})},dwC=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
Wt.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var EB$=function(W,e){Wt.call(this,an9[W],e);this.options=[];this.style=""};
_.Z(EB$,Wt);var m7$=function(W){W.style="youtube";return W},rsB=function(W,e){W.eventTarget.listen($ww,e);
return W},qqu=function(W,e){W.eventTarget.listen(lnC,e);
return W},Lz9=function(W,e){W.options.push(e);
return W},RzB=function(W){var e=[W.getOrigin()];
W.ancestorOrigins&&e.push.apply(e,_.kP(W.ancestorOrigins));var t=new _.UT(W.JSC$17361_win.location.href),b=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";e=qC(_.bz(W.getTargetOrigin(),b),"origin",e);W.startUrl&&_.UJ(e,"startPath",W.startUrl);W.authUser>0&&_.UJ(e,"authuser",W.authUser);W.pageId!==void 0&&_.UJ(e,"pageId",W.pageId);_.UJ(e,"hostId",W.hostId);W.jsMode!==void 0&&_.UJ(e,"jsmode",W.jsMode);W.rectangleRatio!==void 0&&_.UJ(e,"rectangleRatio",W.rectangleRatio);
W.options.length>0&&_.UJ(e,"opts",W.options.join(","));try{for(var m=_.R(["utm_source","utm_medium","utm_campaign","utm_content"]),q=m.next();!q.done;q=m.next()){var Q=q.value;_.zg(t,Q)&&_.UJ(e,Q,_.zg(t,Q))}var X,I=(X=W.hl)!=null?X:_.zg(t,"hl");I!==void 0&&_.UJ(e,"hl",I)}catch(u){if(!(u instanceof URIError))throw u;}W.colorScheme&&_.UJ(e,"theme",W.colorScheme);W.style&&_.UJ(e,"style",W.style);return e},QPU=function(W,e){W.mainChannel=_.eQ({destination:W.JSC$17361_win,
iframe:e,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(t){t=DwT(t.data);if(e===W.iframe)switch(_.Js(t,1)){case 1:W.eventTarget.dispatchEvent(new j4u);ezB(W);break;case 2:W.eventTarget.dispatchEvent(new pNC(_.T9(t,4),_.T9(t,2),_.Js(t,5),_.mx(t,ciT,6)));break;case 0:var b;W.eventTarget.dispatchEvent(new yiC(_.T9(t,2),(b=_.Js(t,3))!=null?b:0));break;case 3:W.eventTarget.dispatchEvent(new j4u(!0));ezB(W,!1);break;case 4:W.eventTarget.dispatchEvent(new CCQ)}}})},N0U=function(W,
e,t){_.eQ({destination:W.JSC$17361_win,
iframe:e,origin:_.tF(_.eo(_.Wh(new _.UT,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(b){e===W.iframe&&(t!==void 0&&t(),QPU(W,e),W.opened&&W.mainChannel.send(oBE(B0w())),b.reply(),N0U(W,e))}})};
EB$.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Wt.prototype.preloadIframe.call(this,RzB(this).toString()):this.iframeLoadPromise};
EB$.prototype.openPicker=function(W){var e=this;return _.F(function(t){if(t.nextAddress==1)return e.startUrl=W?W:e.options.includes("po")?"profile-picture/art":"profile-picture",_.a(t,tuM(e,RzB(e).toString()),2);if(e.mainChannel){var b=e.mainChannel,m=b.send;var q=B0w();q=_.Ga(q,2,e.startUrl);m.call(b,oBE(q))}_.u8(t)})};var Fc1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(Fc1,_.Ow);_.r=Fc1.prototype;_.r.getSize=function(){return wi(this,1)};
_.r.setSize=function(W){return _.sq(this,1,W)};
_.r.getWidth=function(){return wi(this,12)};
_.r.getHeight=function(){return wi(this,13)};
_.r.setCenterCrop=function(W){return _.Rh(this,20,W)};
_.r.getHtml=function(){return _.nY(this,4)};
_.r.getToken=function(){return _.Gg(this,24)};
_.r.setToken=function(W){return _.Ga(this,24,W)};
_.r.getBackgroundColor=function(){return wi(this,87)};
_.r.hasBackgroundColor=function(){return _.$l(_.oP(this,87))!=null};
_.r.getStoryboardLevel=function(){return wi(this,109)};var eR=function(W){this.JSC$17369_value_=void 0;this.childNodes_={};if(W){var e=_.MHU(W);W=_.du(W);for(var t=0;t<e.length;t++)this.set(e[t],W[t])}};
eR.prototype.set=function(W,e){XbC(this,W,e,!1)};
eR.prototype.add=function(W,e){XbC(this,W,e,!0)};
var XbC=function(W,e,t,b){for(var m=0;m<e.length;m++){var q=e.charAt(m);W.childNodes_[q]||(W.childNodes_[q]=new eR);W=W.childNodes_[q]}if(b&&W.JSC$17369_value_!==void 0)throw Error("lk`"+e);W.JSC$17369_value_=t},II1=function(W,e){for(var t=0;t<e.length;t++)if(W=W.childNodes_[e.charAt(t)],!W)return;
return W};
eR.prototype.get=function(W){return(W=II1(this,W))?W.JSC$17369_value_:void 0};
eR.prototype.getValues=function(){var W=[];aIu(this,W);return W};
var aIu=function(W,e){W.JSC$17369_value_!==void 0&&e.push(W.JSC$17369_value_);for(var t in W.childNodes_)aIu(W.childNodes_[t],e)};
eR.prototype.getKeys=function(W){var e=[];if(W){for(var t=this,b=0;b<W.length;b++){var m=W.charAt(b);if(!t.childNodes_[m])return[];t=t.childNodes_[m]}wbU(t,W,e)}else wbU(this,"",e);return e};
var wbU=function(W,e,t){W.JSC$17369_value_!==void 0&&t.push(e);for(var b in W.childNodes_)wbU(W.childNodes_[b],e+b,t)};
_.r=eR.prototype;_.r.containsKey=function(W){return this.get(W)!==void 0};
_.r.containsValue=function(W){if(this.JSC$17369_value_===W)return!0;for(var e in this.childNodes_)if(this.childNodes_[e].containsValue(W))return!0;return!1};
_.r.clear=function(){this.childNodes_={};this.JSC$17369_value_=void 0};
_.r.remove=function(W){for(var e=this,t=[],b=0;b<W.length;b++){var m=W.charAt(b);if(!e.childNodes_[m])throw Error("mk`"+W);t.push([e,m]);e=e.childNodes_[m]}W=e.JSC$17369_value_;for(delete e.JSC$17369_value_;t.length>0;)if(b=t.pop(),e=b[0],b=b[1],e.childNodes_[b].isEmpty())delete e.childNodes_[b];else break;return W};
_.r.clone=function(){return new eR(this)};
_.r.getCount=function(){return NAl(this.getValues())};
_.r.isEmpty=function(){return this.JSC$17369_value_===void 0&&_.kJ.isEmpty(this.childNodes_)};var pTC=function(){if(!uiw){var W=uiw=new eR,e;for(e in csE)W.add(e,csE[e])}},uiw,tw=function(W,e){this.types=W;
this.setters=e},csE={a:new tw([3,
0],[function(W,e){_.Rh(W,21,e)},
function(W,e){_.sq(W,56,e)}]),
al:new tw([3],[function(W,e){_.Rh(W,74,e)}]),
b:new tw([3,0],[function(W,e){_.Rh(W,23,e)},
function(W,e){_.sq(W,38,e)}]),
ba:new tw([0],[function(W,e){_.sq(W,85,e)}]),
bc:new tw([0],[function(W,e){_.sq(W,87,e)}]),
br:new tw([0],[function(W,e){_.sq(W,86,e)}]),
c:new tw([3,0],[function(W,e){_.Rh(W,2,e)},
function(W,e){_.sq(W,39,e)}]),
cc:new tw([3],[function(W,e){_.Rh(W,51,e)}]),
ci:new tw([3],[function(W,e){_.Rh(W,32,e)}]),
ckm:new tw([3],[function(W,e){_.Rh(W,104,e)}]),
cp:new tw([0],[function(W,e){_.sq(W,92,e)}]),
cr:new tw([3],[function(W,e){_.Rh(W,108,e)}]),
cv:new tw([0],[function(W,e){_.sq(W,94,e)}]),
d:new tw([3],[function(W,e){_.Rh(W,3,e)}]),
dc:new tw([5],[function(W,e){_.Ga(W,99,e)}]),
df:new tw([3],[function(W,e){_.Rh(W,80,e)}]),
dv:new tw([3],[function(W,e){_.Rh(W,90,e)}]),
e:new tw([0],[function(W,e){_.sq(W,15,e)}]),
em:new tw([0],[function(W,e){_.sq(W,107,e)}]),
f:new tw([4],[function(W,e){_.Ga(W,16,e)}]),
fg:new tw([3],[function(W,e){_.Rh(W,34,e)}]),
fh:new tw([3],[function(W,e){_.Rh(W,30,e)}]),
fm:new tw([3],[function(W,e){_.Rh(W,84,e)}]),
fo:new tw([2],[function(W,e){_.qI(W,79,_.FC(e))}]),
ft:new tw([3],[function(W,e){_.Rh(W,50,e)}]),
fv:new tw([3],[function(W,e){_.Rh(W,31,e)}]),
g:new tw([3],[function(W,e){_.Rh(W,14,e)}]),
gce:new tw([4],[function(W,e){_.Ga(W,112,e)}]),
gd:new tw([3],[function(W,e){_.Rh(W,83,e)}]),
gm:new tw([3],[function(W,e){_.Rh(W,105,e)}]),
h:new tw([3,0],[function(W,e){_.Rh(W,4,e)},
function(W,e){_.sq(W,13,e)}]),
i:new tw([3],[function(W,e){_.Rh(W,22,e)}]),
ic:new tw([0],[function(W,e){_.sq(W,71,e)}]),
id:new tw([3],[function(W,e){_.Rh(W,70,e)}]),
il:new tw([3],[function(W,e){_.Rh(W,96,e)}]),
ip:new tw([3],[function(W,e){_.Rh(W,54,e)}]),
iv:new tw([0],[function(W,e){_.Zt(W,75,e)}]),
j:new tw([1],[function(W,e){e=e==null?e:$zl(e);_.qI(W,29,e)}]),
k:new tw([3,0],[function(W,e){_.Rh(W,17,e)},
function(W,e){_.sq(W,42,e)}]),
l:new tw([0],[function(W,e){_.sq(W,44,e)}]),
lf:new tw([3],[function(W,e){_.Rh(W,65,e)}]),
lo:new tw([3],[function(W,e){_.Rh(W,97,e)}]),
m:new tw([0],[function(W,e){_.sq(W,63,e)}]),
md:new tw([3],[function(W,e){_.Rh(W,91,e)}]),
mm:new tw([4],[function(W,e){_.Ga(W,81,e)}]),
mo:new tw([3],[function(W,e){_.Rh(W,73,e)}]),
mv:new tw([3],[function(W,e){_.Rh(W,66,e)}]),
n:new tw([3],[function(W,e){W.setCenterCrop(e)}]),
nc:new tw([3],[function(W,e){_.Rh(W,55,e)}]),
nd:new tw([3],[function(W,e){_.Rh(W,53,e)}]),
ng:new tw([3],[function(W,e){_.Rh(W,95,e)}]),
ngm:new tw([3],[function(W,e){_.Rh(W,106,e)}]),
no:new tw([3],[function(W,e){_.Rh(W,37,e)}]),
ns:new tw([3],[function(W,e){_.Rh(W,40,e)}]),
nt0:new tw([4],[function(W,e){_.Ga(W,36,e)}]),
ntm:new tw([3],[function(W,e){_.Rh(W,114,e)}]),
nu:new tw([3],[function(W,e){_.Rh(W,46,e)}]),
nw:new tw([3],[function(W,e){_.Rh(W,48,e)}]),
o:new tw([1,3],[function(W,e){e=e==null?e:$zl(e);_.qI(W,7,e)},
function(W,e){_.Rh(W,27,e)}]),
p:new tw([3,0],[function(W,e){_.Rh(W,19,e)},
function(W,e){_.sq(W,43,e)}]),
pa:new tw([3],[function(W,e){_.Rh(W,61,e)}]),
pc:new tw([0],[function(W,e){_.sq(W,88,e)}]),
pd:new tw([3],[function(W,e){_.Rh(W,60,e)}]),
pf:new tw([3],[function(W,e){_.Rh(W,67,e)}]),
pg:new tw([3],[function(W,e){_.Rh(W,72,e)}]),
pi:new tw([2],[function(W,e){_.qI(W,76,_.FC(e))}]),
pp:new tw([3],[function(W,e){_.Rh(W,52,e)}]),
pt:new tw([4],[function(W,e){_.Ga(W,111,e)}]),
q:new tw([4],[function(W,e){_.Ga(W,28,e)}]),
r:new tw([3,0],[function(W,e){_.Rh(W,6,e)},
function(W,e){_.sq(W,26,e)}]),
ra:new tw([3],[function(W,e){_.Rh(W,103,e)}]),
rf:new tw([3],[function(W,e){_.Rh(W,100,e)}]),
rg:new tw([3],[function(W,e){_.Rh(W,59,e)}]),
rh:new tw([3],[function(W,e){_.Rh(W,49,e)}]),
rj:new tw([3],[function(W,e){_.Rh(W,57,e)}]),
ro:new tw([2],[function(W,e){_.qI(W,78,_.FC(e))}]),
rp:new tw([3],[function(W,e){_.Rh(W,58,e)}]),
rw:new tw([3],[function(W,e){_.Rh(W,35,e)}]),
rwa:new tw([3],[function(W,e){_.Rh(W,64,e)}]),
rwu:new tw([3],[function(W,e){_.Rh(W,41,e)}]),
s:new tw([3,0],[function(W,e){_.Rh(W,33,e)},
function(W,e){W.setSize(e)}]),
sb:new tw([0],[function(W,e){_.sq(W,110,e)}]),
sc:new tw([0],[function(W,e){_.sq(W,89,e)}]),
sg:new tw([3],[function(W,e){_.Rh(W,82,e)}]),
sl:new tw([0],[function(W,e){_.sq(W,109,e)}]),
sm:new tw([3],[function(W,e){_.Rh(W,93,e)}]),
t:new tw([4],[function(W,e){W.setToken(e)}]),
tm:new tw([3],[function(W,e){_.Rh(W,113,e)}]),
u:new tw([3],[function(W,e){_.Rh(W,18,e)}]),
ut:new tw([3],[function(W,e){_.Rh(W,45,e)}]),
v:new tw([0],[function(W,e){_.sq(W,62,e)}]),
vb:new tw([0],[function(W,e){_.Zt(W,68,e)}]),
vf:new tw([4],[function(W,e){_.Ga(W,102,e)}]),
vl:new tw([0],[function(W,e){_.Zt(W,69,e)}]),
vm:new tw([3],[function(W,e){_.Rh(W,98,e)}]),
w:new tw([0],[function(W,e){_.sq(W,12,e)}]),
x:new tw([0],[function(W,e){_.sq(W,9,e)}]),
y:new tw([0],[function(W,e){_.sq(W,10,e)}]),
ya:new tw([2],[function(W,e){_.qI(W,77,_.FC(e))}]),
z:new tw([0],[function(W,e){_.sq(W,11,e)}])};
pTC.prototype.parse=function(W){var e=new Fc1,t=new Fc1;if(W=="")W=!0;else{W=W.split("-");for(var b=!0,m=0;m<W.length;m++){var q=W[m];if(q.length==0)b=!1;else{var Q=q,X=!1;var I=Q;var u=Q.charAt(0);u!=u.toLowerCase()&&(X=!0,I=Q.charAt(0).toLowerCase()+Q.substring(1));var c=uiw;for(u=1;u<=I.length;++u){var v=c,D=I.substring(0,u);if(D.length==0?v.isEmpty():!II1(v,D))break}I=u==1?null:(I=c.get(I.substring(0,u-1)))?{option:Q.substring(0,u-1),value:Q.substring(u-1),signed:X,attributes:I}:null;if(I){Q=
[];X=[];u=!1;for(c=0;c<I.attributes.types.length;c++){v=I.attributes.types[c];var B=I.value;D=m;if(I.signed&&v==1)for(var k=B.length;k<12&&D<W.length-1;)B+="-"+W[D+1],k=B.length,++D;else if(v==2)for(;D<W.length-1&&W[D+1].match(/^[\d\.]/);)B+="-"+W[D+1],++D;k=I.attributes.setters[c];B=v2$(this,v)(I.option,B,e,t,k);if(B===null){u=!0;m=D;break}else Q.push(v),X.push(B)}if(!u)for(I=0;I<X.length;I++)c=Q[I],B=X[I],G9B(this,c)(q,B);b=b&&u}else b=!1}}W=b}return new D79(e,t,W)};
var bi=function(W,e,t,b,m,q){m(t,e);W=W.charAt(0);q=q(W==W.toUpperCase());m(b,q)};
_.r=pTC.prototype;_.r.parseAndSetIntOption_=function(W,e,t,b,m){if(e=="")return 0;isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;if(isNaN(e))return 1;bi(W,e,t,b,m,Number);return null};
_.r.logIntParseError_=function(){};
_.r.parseAndSetFloatOption_=function(W,e,t,b,m){if(e=="")return 0;var q=Number(e);e=q==0&&_.QK(e)?NaN:q;if(isNaN(e))return 1;bi(W,e,t,b,m,Number);return null};
_.r.logFloatParseError_=function(){};
_.r.parseAndSetBoolOption_=function(W,e,t,b,m){if(e!="")return 2;bi(W,!0,t,b,m,Boolean);return null};
_.r.logBoolParseError_=function(){};
_.r.parseAndSetStringOption_=function(W,e,t,b,m){if(e=="")return 0;bi(W,e,t,b,m,function(q){return q?"1":""});
return null};
_.r.logStringParseError_=function(){};
_.r.parseAndSetUint64Base64Option_=function(W,e,t,b,m){if(e=="")return 0;bi(W,e,t,b,m,function(q){return q?1:0});
return null};
var v2$=function(W,e){switch(e){case 0:return(0,_.p3)(W.parseAndSetIntOption_,W);case 2:return(0,_.p3)(W.parseAndSetFloatOption_,W);case 3:return(0,_.p3)(W.parseAndSetBoolOption_,W);case 4:return(0,_.p3)(W.parseAndSetStringOption_,W);case 1:return(0,_.p3)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},G9B=function(W,e){switch(e){case 0:return(0,_.p3)(W.logIntParseError_,W);
case 2:return(0,_.p3)(W.logFloatParseError_,W);case 3:return(0,_.p3)(W.logBoolParseError_,W);case 4:case 1:return(0,_.p3)(W.logStringParseError_,W);default:return function(){}}},D79=function(W,e,t){this.valueProto_=W;
this.signatureFlagProto_=e;this.JSC$17381_valid_=t};
D79.prototype.isValid=function(){return this.JSC$17381_valid_};var low=function(W){this.JSC$17382_parser_=null;this.JSC$17382_components_=[];this.JSC$17382_parsedOptions_=null;SqQ(this,W)},B2w=function(W){W.JSC$17382_parser_==null&&(W.JSC$17382_parser_=new pTC);
return W.JSC$17382_parser_},SqQ=function(W,e){W.JSC$17382_parsedOptions_=e?typeof e==="string"?B2w(W).parse(e):e:B2w(W).parse("")},mh=function(W,e){return W==e?!1:!0};
_.r=low.prototype;_.r.JSC$17384_setCrop=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,_.nY(t,2),_.nY(e.signatureFlagProto_,2))&&_.Rh(t,2,W);return this};
_.r.JSC$17384_setCircleCrop=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,ag(t,51),ag(e.signatureFlagProto_,51))&&_.Rh(t,51,W);return this};
_.r.JSC$17384_setImageCrop=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,ag(t,32),ag(e.signatureFlagProto_,32))&&_.Rh(t,32,W);return this};
_.r.JSC$17384_setHeight=function(W){var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,t.getHeight(),e.signatureFlagProto_.getHeight())&&_.sq(t,13,W);return this};
_.r.setCenterCrop=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,_.nY(t,20),_.nY(e.signatureFlagProto_,20))&&t.setCenterCrop(W);return this};
_.r.JSC$17384_setSmartCrop=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,_.nY(t,19),_.nY(e.signatureFlagProto_,19))&&_.Rh(t,19,W);return this};
_.r.JSC$17384_setPad=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,ag(t,60),ag(e.signatureFlagProto_,60))&&_.Rh(t,60,W);return this};
_.r.JSC$17384_setSmartCropUseFace=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,_.nY(t,67),_.nY(e.signatureFlagProto_,67))&&_.Rh(t,67,W);return this};
_.r.JSC$17384_setSmartCropNoClip=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,_.nY(t,52),_.nY(e.signatureFlagProto_,52))&&_.Rh(t,52,W);return this};
_.r.setSize=function(W){var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,t.getSize(),e.signatureFlagProto_.getSize())&&t.setSize(W);return this};
_.r.setToken=function(W){W=W||void 0;var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,t.getToken(),e.signatureFlagProto_.getToken())&&t.setToken(W);return this};
_.r.JSC$17384_setWidth=function(W){var e=this.JSC$17382_parsedOptions_,t=e.valueProto_;mh(W,t.getWidth(),e.signatureFlagProto_.getWidth())&&_.sq(t,12,W);return this};
_.r.clearOptions=function(){SqQ(this,"");return this};
_.r.build=function(){this.JSC$17382_components_.length=0;var W=this.JSC$17382_parsedOptions_,e=W.valueProto_;W=W.signatureFlagProto_;rm(this,"s",e.getSize(),W.getSize());rm(this,"w",e.getWidth(),W.getWidth());qO(this,"c",_.nY(e,2),_.nY(W,2));qO(this,"d",_.nY(e,3),_.nY(W,3));rm(this,"h",e.getHeight(),W.getHeight());qO(this,"s",ag(e,33),ag(W,33));qO(this,"h",e.getHtml(),W.getHtml());qO(this,"p",_.nY(e,19),_.nY(W,19));qO(this,"pp",_.nY(e,52),_.nY(W,52));qO(this,"pf",_.nY(e,67),_.nY(W,67));qO(this,"n",
_.nY(e,20),_.nY(W,20));rm(this,"r",wi(e,26),wi(W,26));qO(this,"r",_.nY(e,6),_.nY(W,6));qO(this,"o",ag(e,27),ag(W,27));var t=_.CY(e,7,_.Bb);R9(this,"o",t,_.CY(W,7,_.Bb));t=_.CY(e,29,_.Bb);R9(this,"j",t,_.CY(W,29,_.Bb));rm(this,"x",wi(e,9),wi(W,9));rm(this,"y",wi(e,10),wi(W,10));rm(this,"z",wi(e,11),wi(W,11));qO(this,"g",_.nY(e,14),_.nY(W,14));rm(this,"e",wi(e,15),wi(W,15));R9(this,"f",_.Gg(e,16),_.Gg(W,16));qO(this,"k",ag(e,17),ag(W,17));qO(this,"u",ag(e,18),!0);qO(this,"ut",ag(e,45),!0);qO(this,"i",
ag(e,22),!0);qO(this,"a",ag(e,21),ag(W,21));qO(this,"b",_.nY(e,23),_.nY(W,23));rm(this,"b",wi(e,38),wi(W,38));rm(this,"c",wi(e,39),wi(W,39),16,8);R9(this,"q",_.Gg(e,28),_.Gg(W,28));qO(this,"fh",ag(e,30),ag(W,30));qO(this,"fv",ag(e,31),ag(W,31));qO(this,"fg",_.nY(e,34),_.nY(W,34));qO(this,"ci",ag(e,32),ag(W,32));R9(this,"t",e.getToken(),W.getToken());R9(this,"nt0",_.Gg(e,36),_.Gg(W,36));qO(this,"rw",_.nY(e,35),_.nY(W,35));qO(this,"rwu",_.nY(e,41),_.nY(W,41));qO(this,"rwa",_.nY(e,64),_.nY(W,64));qO(this,
"nw",_.nY(e,48),_.nY(W,48));qO(this,"rh",_.nY(e,49),_.nY(W,49));qO(this,"no",_.nY(e,37),_.nY(W,37));qO(this,"ns",ag(e,40),ag(W,40));rm(this,"k",wi(e,42),wi(W,42));rm(this,"p",wi(e,43),wi(W,43));rm(this,"l",wi(e,44),wi(W,44));rm(this,"v",wi(e,62),wi(W,62));qO(this,"nu",ag(e,46),ag(W,46));qO(this,"ft",ag(e,50),ag(W,50));qO(this,"cc",ag(e,51),ag(W,51));qO(this,"nd",ag(e,53),ag(W,53));qO(this,"ip",ag(e,54),ag(W,54));qO(this,"nc",ag(e,55),ag(W,55));rm(this,"a",wi(e,56),wi(W,56));qO(this,"rj",ag(e,57),
ag(W,57));qO(this,"rp",ag(e,58),ag(W,58));qO(this,"rg",ag(e,59),ag(W,59));qO(this,"pd",ag(e,60),ag(W,60));qO(this,"pa",ag(e,61),ag(W,61));rm(this,"m",wi(e,63),wi(W,63));rm(this,"vb",uE(e,68),uE(W,68));rm(this,"vl",uE(e,69),uE(W,69));qO(this,"lf",ag(e,65),ag(W,65));qO(this,"mv",ag(e,66),ag(W,66));qO(this,"id",ag(e,70),ag(W,70));rm(this,"ic",wi(e,71),!0);qO(this,"pg",_.nY(e,72),_.nY(W,72));qO(this,"mo",ag(e,73),ag(W,73));qO(this,"al",ag(e,74),ag(W,74));rm(this,"iv",uE(e,75),uE(W,75));rm(this,"pi",c0(e,
76),c0(W,76));rm(this,"ya",c0(e,77),c0(W,77));rm(this,"ro",c0(e,78),c0(W,78));rm(this,"fo",c0(e,79),c0(W,79));qO(this,"df",ag(e,80),ag(W,80));R9(this,"mm",_.Gg(e,81),_.Gg(W,81));qO(this,"sg",ag(e,82),ag(W,82));qO(this,"gd",ag(e,83),ag(W,83));qO(this,"fm",ag(e,84),ag(W,84));rm(this,"ba",wi(e,85),wi(W,85));rm(this,"br",wi(e,86),wi(W,86));rm(this,"bc",e.getBackgroundColor(),W.getBackgroundColor(),16,8);rm(this,"pc",wi(e,88),wi(W,88),16,8);rm(this,"sc",wi(e,89),wi(W,89),16,8);qO(this,"dv",ag(e,90),ag(W,
90));qO(this,"md",ag(e,91),ag(W,91));rm(this,"cp",wi(e,92),wi(W,92));qO(this,"sm",ag(e,93),ag(W,93));rm(this,"cv",wi(e,94),wi(W,94));qO(this,"ng",ag(e,95),ag(W,95));qO(this,"il",ag(e,96),ag(W,96));qO(this,"lo",ag(e,97),ag(W,97));qO(this,"vm",ag(e,98),ag(W,98));R9(this,"dc",_.Gg(e,99),_.Gg(W,99));qO(this,"rf",ag(e,100),ag(W,100));R9(this,"vf",_.Gg(e,102),_.Gg(W,102));qO(this,"ra",_.nY(e,103),_.nY(W,103));qO(this,"ckm",ag(e,104),ag(W,104));qO(this,"gm",ag(e,105),ag(W,105));qO(this,"ngm",ag(e,106),ag(W,
106));rm(this,"em",wi(e,107),wi(W,107));qO(this,"cr",ag(e,108),ag(W,108));rm(this,"sl",e.getStoryboardLevel(),W.getStoryboardLevel());rm(this,"sb",wi(e,110),wi(W,110));R9(this,"pt",_.Gg(e,111),_.Gg(W,111));R9(this,"gce",_.Gg(e,112),_.Gg(W,112));qO(this,"tm",ag(e,113),ag(W,113));qO(this,"ntm",ag(e,114),ag(W,114));return this.JSC$17382_components_.join("-")};
var rm=function(W,e,t,b,m,q){if(t!=null){var Q=m==void 0||m!=10&&m!=16?10:m;t=Number(t).toString(Q);m=new PGg;m.append(Q==16?"0x":"");Q=m.append;q==void 0?q="":(q-=t.length,q=q<=0?"":(0,_.sf9)("0",q));Q.call(m,q);m.append(t);I6u(W,e,m.toString(),!!Number(b))}},qO=function(W,e,t,b){t&&I6u(W,e,"",!!b)},R9=function(W,e,t,b){t&&I6u(W,e,String(t),!!Number(b))},I6u=function(W,e,t,b){b&&(e=e.charAt(0).toUpperCase()+e.substring(1));
W.JSC$17382_components_.push(e+t)};_.QP(o6,low);_.r=o6.prototype;_.r.JSC$17384_setCrop=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setCrop.call(this,W)};
_.r.JSC$17384_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return o6.superClass_.JSC$17384_setHeight.call(this,W)};
_.r.JSC$17384_setImageCrop=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setImageCrop.call(this,W)};
_.r.JSC$17384_setCircleCrop=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setCircleCrop.call(this,W)};
_.r.setSize=function(W){_.tk(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$17384_setWidth(),this.JSC$17384_setHeight());return o6.superClass_.setSize.call(this,W)};
_.r.JSC$17384_setSmartCrop=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setSmartCrop.call(this,W)};
_.r.JSC$17384_setSmartCropNoClip=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setSmartCropNoClip.call(this,W)};
_.r.JSC$17384_setSmartCropUseFace=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setSmartCropUseFace.call(this,W)};
_.r.setCenterCrop=function(W){W&&Q0(this);return o6.superClass_.setCenterCrop.call(this,W)};
_.r.JSC$17384_setPad=function(W){W&&Q0(this);return o6.superClass_.JSC$17384_setPad.call(this,W)};
_.r.JSC$17384_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return o6.superClass_.JSC$17384_setWidth.call(this,W)};
var a6B=function(W){W.clearOptions();var e=W.JSC$17382_parsedOptions_,t=e.valueProto_;mh(!0,_.nY(t,3),_.nY(e.signatureFlagProto_,3))&&_.Rh(t,3,!0);return W},Q0=function(W){W.setCenterCrop();
W.JSC$17384_setCircleCrop();W.JSC$17384_setCrop();W.JSC$17384_setImageCrop();W.JSC$17384_setPad();W.JSC$17384_setSmartCrop();W.JSC$17384_setSmartCropNoClip();W.JSC$17384_setSmartCropUseFace()};
o6.prototype.build=function(){var W=this.JSC$17382_parsedOptions_.valueProto_;ag(W,18)||ag(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$17382_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$17384_setHeight(),this.JSC$17384_setWidth(),Q0(this)));return o6.superClass_.build.call(this)};var whT=/^[^\/]*\/\//,FJ=function(W,e){e=e===void 0?!1:e;this.original_=W;this.originalPrefix_="";(W=this.original_.match(whT))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.Ya(W,!0);this.isFreeformUrl_=e;this.JSC$17388_valid_=!0;this.obfuscated_=!1},uHQ=function(W,e){W.JSC$17390_pathPrefix_=W.JSC$17390_pathPrefix_?W.JSC$17390_pathPrefix_+("/"+e):e},XJ=function(W){if(W.JSC$17390_components_==
void 0){var e=W.uri_.getPath().substring(1);
W.JSC$17390_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$17390_components_=[];if((e.match(/=/g)||[]).length>1)return W.JSC$17388_valid_=!1,W.JSC$17390_components_;var t=e.indexOf("=");t!=-1?(W.JSC$17390_components_.push(e.substr(0,t)),W.JSC$17390_components_.push(e.substr(t+1))):W.JSC$17390_components_.push(e);return W.JSC$17390_components_}W.JSC$17390_components_=e.split("/");e=W.JSC$17390_components_.length;e>2&&W.JSC$17390_components_[0]=="u"&&(uHQ(W,W.JSC$17390_components_[0]+"/"+W.JSC$17390_components_[1]),
W.JSC$17390_components_.shift(),W.JSC$17390_components_.shift(),e-=2);if(e==0||e==4||e>7)return W.JSC$17388_valid_=!1,W.JSC$17390_components_;if(e==2)uHQ(W,W.JSC$17390_components_[0]);else if(W.JSC$17390_components_[0]=="image")uHQ(W,W.JSC$17390_components_[0]);else if(e==7||e==3)return W.JSC$17388_valid_=!1,W.JSC$17390_components_;if(e<=3){W.obfuscated_=!0;e==3&&(uHQ(W,W.JSC$17390_components_[1]),W.JSC$17390_components_.shift(),--e);--e;t=W.JSC$17390_components_[e];var b=t.indexOf("=");b!=-1&&(W.JSC$17390_components_[e]=
t.substr(0,b),W.JSC$17390_components_.push(t.substr(b+1)))}}return W.JSC$17390_components_};
FJ.prototype.isValid=function(){XJ(this);return this.JSC$17388_valid_};
FJ.prototype.isObfuscated=function(){XJ(this);return this.obfuscated_};
var cFu=function(W){XJ(W);return W.isFreeformUrl_},I9=function(W){XJ(W);
W.JSC$17390_pathPrefix_==void 0&&(W.JSC$17390_pathPrefix_=null);return W.JSC$17390_pathPrefix_},vZQ=function(W){switch(XJ(W).length){case 7:return!0;
case 6:return I9(W)==null;case 5:return!1;case 3:return!0;case 2:return I9(W)==null;case 1:return!1;default:return!1}},a9=function(W,e){if(cFu(W))a:{switch(e){case 7:e=0;
break;case 4:if(!vZQ(W)){W=null;break a}e=1;break;default:W=null;break a}W=XJ(W)[e]}else if(W.isObfuscated())a:{var t=I9(W)!=null?1:0;switch(e){case 6:e=t;break;case 4:if(!vZQ(W)){W=null;break a}e=1+t;break;default:W=null;break a}W=XJ(W)[e]}else a:{t=I9(W)!=null?1:0;switch(e){case 0:e=t;break;case 1:e=1+t;break;case 2:e=2+t;break;case 3:e=3+t;break;case 4:if(!vZQ(W)){W=null;break a}e=4+t;break;case 5:e=vZQ(W)?1:0;e=4+t+e;break;default:W=null;break a}W=XJ(W)[e]}return W};
FJ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=a9(this,4));return this.options_};var kkB=function(){};
kkB.prototype.parse=function(W,e){return new Z1w(W,e===void 0?!1:e)};
var Z1w=function(W,e){FJ.call(this,W,e===void 0?!1:e)};
_.Z(Z1w,FJ);_.QP(l2,o6);var $n1;l2.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
l2.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=l2.superClass_.build.call(this),e=[];I9(this.parsedImageUrl_)!=null&&e.push(I9(this.parsedImageUrl_));var t=cFu(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var b=this.parsedImageUrl_;b.obfuscatedData_==void 0&&(b.obfuscatedData_=a9(b,6));e.push(b.obfuscatedData_+(W?"="+W:""))}else if(t){b=e.push;var m=this.parsedImageUrl_;m.freeformUrlPath_===void 0&&(m.freeformUrlPath_=a9(m,
7));b.call(e,m.freeformUrlPath_);W&&e.push(W)}else b=e.push,m=this.parsedImageUrl_,m.obfuscatedGaiaId_==void 0&&(m.obfuscatedGaiaId_=a9(m,0)),b.call(e,m.obfuscatedGaiaId_),b=e.push,m=this.parsedImageUrl_,m.photoId_==void 0&&(m.photoId_=a9(m,1)),b.call(e,m.photoId_),b=e.push,m=this.parsedImageUrl_,m.imageVersion_==void 0&&(m.imageVersion_=a9(m,2)),b.call(e,m.imageVersion_),b=e.push,m=this.parsedImageUrl_,m.signature_==void 0&&(m.signature_=a9(m,3)),b.call(e,m.signature_),W&&e.push(W),W=e.push,b=this.parsedImageUrl_,
b.filename_==void 0&&(b.filename_=a9(b,5)),W.call(e,b.filename_);e=t?e.join("="):e.join("/");e=_.Ya(this.protocolPrefix_+this.JSC$17396_domain_+"/"+e+(this.JSC$17396_query_?"?"+this.JSC$17396_query_:"")).toString();e.startsWith("%3a//")&&(e=e.replace("%3a//","://"));return e};var GR$=_.Nw(["viewBox"]),DRu=_.Nw(["width"]),Sx9=_.Nw(["height"]),BUE=_.Nw(["fill"]),oZC=_.Nw(["id"]),l6$=_.Nw(["x"]),ZH1=_.Nw(["y"]);yAM.prototype.getLength=function(){return this.parsedData.length};
yAM.prototype.write=function(W){for(var e=0,t=this.parsedData.length;e<t;e++)W.put(this.parsedData[e],8)};
var JAB=function(W,e){var t=new yAM(e);W.dataList.push(t);t=W.errorCorrectLevel;var b=1,m=encodeURI(e).toString().replace(/%[0-9a-fA-F]{2}/g,"a");e=m.length+(m.length!=e?3:0);m=0;for(var q=wm.length;m<=q;m++){var Q=0;switch(t){case 1:Q=wm[m][0];break;case 0:Q=wm[m][1];break;case 3:Q=wm[m][2];break;case 2:Q=wm[m][3]}if(e<=Q)break;else b++}if(b>wm.length)throw Error("vk");W.typeNumber=b;W.dataCache=null};
jQ1.prototype.isDark=function(W,e){if(W<0||this.moduleCount<=W||e<0||this.moduleCount<=e)throw Error("nk`"+W+"`"+e);return this.modules[W][e]};
for(var xnw=function(W,e,t){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var b=0;b<W.moduleCount;b++){W.modules[b]=Array(W.moduleCount);for(var m=0;m<W.moduleCount;m++)W.modules[b][m]=null}$RS(W,0,0);$RS(W,W.moduleCount-7,0);$RS(W,0,W.moduleCount-7);b=kRU[W.typeNumber-1];for(m=0;m<b.length;m++)for(var q=0;q<b.length;q++){var Q=b[m],X=b[q];if(W.modules[Q][X]==null)for(var I=-2;I<=2;I++)for(var u=-2;u<=2;u++)W.modules[Q+I][X+u]=I==-2||I==2||u==-2||u==2||I==0&&u==0?!0:!1}for(b=
8;b<W.moduleCount-8;b++)W.modules[b][6]==null&&(W.modules[b][6]=b%2==0);for(b=8;b<W.moduleCount-8;b++)W.modules[6][b]==null&&(W.modules[6][b]=b%2==0);b=W.errorCorrectLevel<<3|t;for(m=b<<10;ui(m)-ui(1335)>=0;)m^=1335<<ui(m)-ui(1335);b=(b<<10|m)^21522;for(m=0;m<15;m++)q=!e&&(b>>m&1)==1,m<6?W.modules[m][8]=q:m<8?W.modules[m+1][8]=q:W.modules[W.moduleCount-15+m][8]=q;for(m=0;m<15;m++)q=!e&&(b>>m&1)==1,m<8?W.modules[8][W.moduleCount-m-1]=q:m<9?W.modules[8][15-m-1+1]=q:W.modules[8][15-m-1]=q;W.modules[W.moduleCount-
8][8]=!e;if(W.typeNumber>=7){b=W.typeNumber;for(m=b<<12;ui(m)-ui(7973)>=0;)m^=7973<<ui(m)-ui(7973);b=b<<12|m;for(m=0;m<18;m++)q=!e&&(b>>m&1)==1,W.modules[Math.floor(m/3)][m%3+W.moduleCount-8-3]=q;for(m=0;m<18;m++)q=!e&&(b>>m&1)==1,W.modules[m%3+W.moduleCount-8-3][Math.floor(m/3)]=q}if(W.dataCache==null){m=W.typeNumber;q=W.dataList;e=W.errorCorrectLevel;b=phC(m,e);if(b==void 0)throw Error("uk`"+m+"`"+e);Q=b.length/3;e=[];for(X=0;X<Q;X++){I=b[X*3];u=b[X*3+1];for(var c=b[X*3+2],v=0;v<I;v++)e.push(new CUl(u,
c))}b=new nSE;for(Q=0;Q<q.length;Q++)X=q[Q],b.put(X.mode,4),b.put(X.getLength(),yFu(X.mode,m)),X.write(b);for(Q=m=0;Q<e.length;Q++)m+=e[Q].dataCount;if(b.length>m*8)throw Error("ok`"+b.length+"`"+m*8);for(b.length+4<=m*8&&b.put(0,4);b.length%8!=0;)j8l(b,!1);for(;!(b.length>=m*8);){b.put(236,8);if(b.length>=m*8)break;b.put(17,8)}q=m=u=0;Q=Array(e.length);X=Array(e.length);for(I=0;I<e.length;I++){v=e[I].dataCount;var D=e[I].totalCount-v;m=Math.max(m,v);q=Math.max(q,D);Q[I]=Array(v);for(c=0;c<Q[I].length;c++)Q[I][c]=
255&b.buffer[c+u];u+=v;c=D;v=new Zk([1],0);for(D=0;D<c;D++)v=v.multiply(new Zk([1,Czu(D)],0));c=v;v=(new Zk(Q[I],c.getLength()-1)).mod(c);X[I]=Array(c.getLength()-1);for(c=0;c<X[I].length;c++)D=c+v.getLength()-X[I].length,X[I][c]=D>=0?v.get(D):0}for(c=b=0;c<e.length;c++)b+=e[c].totalCount;b=Array(b);for(c=u=0;c<m;c++)for(I=0;I<e.length;I++)c<Q[I].length&&(b[u++]=Q[I][c]);for(c=0;c<q;c++)for(I=0;I<e.length;I++)c<X[I].length&&(b[u++]=X[I][c]);W.dataCache=b}e=W.dataCache;b=-1;m=W.moduleCount-1;q=7;Q=
0;for(X=W.moduleCount-1;X>0;X-=2)for(X==6&&X--;;){for(I=0;I<2;I++)W.modules[m][X-I]==null&&(u=!1,Q<e.length&&(u=(e[Q]>>>q&1)==1),nZC(t,m,X-I)&&(u=!u),W.modules[m][X-I]=u,q--,q==-1&&(Q++,q=7));m+=b;if(m<0||W.moduleCount<=m){m-=b;b=-b;break}}},$RS=function(W,e,t){for(var b=-1;b<=7;b++)if(!(e+b<=-1||W.moduleCount<=e+b))for(var m=-1;m<=7;m++)t+m<=-1||W.moduleCount<=t+m||(W.modules[e+b][t+m]=0<=b&&b<=6&&(m==0||m==6)||0<=m&&m<=6&&(b==0||b==6)||2<=b&&b<=4&&2<=m&&m<=4?!0:!1)},O1S=function(W){for(var e=0,
t=0,b=0;b<8;b++){xnw(W,!0,b);
var m=W;for(var q=m.moduleCount,Q=0,X=0;X<q;X++)for(var I=0;I<q;I++){for(var u=0,c=m.isDark(X,I),v=-1;v<=1;v++)if(!(X+v<0||q<=X+v))for(var D=-1;D<=1;D++)I+D<0||q<=I+D||(v!=0||D!=0)&&c==m.isDark(X+v,I+D)&&u++;u>5&&(Q+=3+u-5)}for(X=0;X<q-1;X++)for(I=0;I<q-1;I++)if(u=0,m.isDark(X,I)&&u++,m.isDark(X+1,I)&&u++,m.isDark(X,I+1)&&u++,m.isDark(X+1,I+1)&&u++,u==0||u==4)Q+=3;for(X=0;X<q;X++)for(I=0;I<q-6;I++)m.isDark(X,I)&&!m.isDark(X,I+1)&&m.isDark(X,I+2)&&m.isDark(X,I+3)&&m.isDark(X,I+4)&&!m.isDark(X,I+5)&&
m.isDark(X,I+6)&&(Q+=40);for(I=0;I<q;I++)for(X=0;X<q-6;X++)m.isDark(X,I)&&!m.isDark(X+1,I)&&m.isDark(X+2,I)&&m.isDark(X+3,I)&&m.isDark(X+4,I)&&!m.isDark(X+5,I)&&m.isDark(X+6,I)&&(Q+=40);for(I=u=0;I<q;I++)for(X=0;X<q;X++)m.isDark(X,I)&&u++;m=Q+=Math.abs(100*u/q/q-50)/5*10;if(b==0||e>m)e=m,t=b}return t},kRU=[[],
[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]],ui=function(W){for(var e=0;W!=0;)e++,W>>>=1;return e},nZC=function(W,e,t){switch(W){case 0:return(e+t)%2==0;
case 1:return e%2==0;case 2:return t%3==0;case 3:return(e+t)%3==0;case 4:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case 5:return e*t%2+e*t%3==0;case 6:return(e*t%2+e*t%3)%2==0;case 7:return(e*t%3+(e+t)%2)%2==0;default:throw Error("pk`"+W);}},yFu=function(W,e){if(1<=e&&e<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+W);}else if(e<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+W);}else if(e<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+W);}else throw Error("rk`"+e);},ct=function(W){if(W<1)throw Error("sk`"+W);
return f6C[W]},Czu=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return vt[W]},vt=Array(256),f6C=Array(256),gZE=0;gZE<8;gZE++)vt[gZE]=1<<gZE;
for(var GU=8;GU<256;GU++)vt[GU]=vt[GU-4]^vt[GU-5]^vt[GU-6]^vt[GU-8];for(var TUT=0;TUT<255;TUT++)f6C[vt[TUT]]=TUT;Zk.prototype.get=function(W){return this.num[W]};
Zk.prototype.getLength=function(){return this.num.length};
Zk.prototype.multiply=function(W){for(var e=Array(this.getLength()+W.getLength()-1),t=0;t<this.getLength();t++)for(var b=0;b<W.getLength();b++)e[t+b]^=Czu(ct(this.get(t))+ct(W.get(b)));return new Zk(e,0)};
Zk.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var e=ct(this.get(0))-ct(W.get(0)),t=Array(this.getLength()),b=0;b<this.getLength();b++)t[b]=this.get(b);for(b=0;b<W.getLength();b++)t[b]^=Czu(ct(W.get(b))+e);return(new Zk(t,0)).mod(W)};
var JFu=[[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]],phC=function(W,e){switch(e){case 1:return JFu[(W-1)*4];case 0:return JFu[(W-1)*4+1];case 3:return JFu[(W-1)*4+2];case 2:return JFu[(W-1)*4+3]}};
nSE.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
nSE.prototype.put=function(W,e){for(var t=0;t<e;t++)j8l(this,(W>>>e-t-1&1)==1)};
var j8l=function(W,e){var t=Math.floor(W.length/8);W.buffer.length<=t&&W.buffer.push(0);e&&(W.buffer[t]|=128>>>W.length%8);W.length++},wm=[[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]],TsC=function(){var W=function(e,t){this.JSC$17416__el=e;this.JSC$17416__htOption=t};
W.prototype.draw=function(e){function t(c,v){c=document.createElementNS("http://www.w3.org/2000/svg",c);for(var D in v)v.hasOwnProperty(D)&&(D==="href"?_.T9B(c,v[D]):_.P7([_.eH(GR$),_.eH(DRu),_.eH(Sx9),_.eH(BUE),_.eH(oZC),_.eH(l6$),_.eH(ZH1)],c,D,v[D]));return c}
var b=this.JSC$17416__htOption,m=this.JSC$17416__el,q=e.moduleCount;this.clear();var Q=t("svg",{viewBox:"0 0 "+String(q)+" "+String(q),width:"100%",height:"100%",fill:b.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});m.appendChild(Q);Q.appendChild(t("rect",{fill:b.colorLight,width:"100%",height:"100%"}));Q.appendChild(t("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var X=0;X<q;X++)for(var I=0;I<q;I++)if(e.isDark(X,I)){var u=t("use",{x:String(X),y:String(I),href:"#template"});
Q.appendChild(u)}};
W.prototype.clear=function(){for(;this.JSC$17416__el.hasChildNodes();)this.JSC$17416__el.removeChild(this.JSC$17416__el.lastChild)};
return W}(),gSB=document.documentElement.tagName.toLowerCase()==="svg"?TsC:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(e,t){this._bIsPainted=!1;
foS();this.JSC$17416__htOption=t;this._elCanvas=document.createElement("canvas");this._elCanvas.width=t.width;this._elCanvas.height=t.height;e.appendChild(this._elCanvas);this.JSC$17416__el=e;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17416__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var e=this._elCanvas.toDataURL("image/png");this._elImage.src=e;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(e,t){var b=this;b._fFail=t;b._fSuccess=e;b._bSupportDataURI===null?(e=_.DA("IMG"),t=function(){b._bSupportDataURI=!1;b._fFail&&b._fFail.call(b)},e.onabort=t,e.onerror=t,e.onload=function(){b._bSupportDataURI=!0;
b._fSuccess&&b._fSuccess.call(b)},e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):b._bSupportDataURI===!0&&b._fSuccess?b._fSuccess.call(b):b._bSupportDataURI===!1&&b._fFail&&b._fFail.call(b)};
W.prototype.draw=function(e){var t=this._oContext,b=this.JSC$17416__htOption,m=e.moduleCount,q=b.width/m,Q=b.height/m,X=Math.round(q),I=Math.round(Q);this._elImage.style.display="none";this.clear();for(var u=0;u<m;u++)for(var c=0;c<m;c++){var v=e.isDark(u,c),D=c*q,B=u*Q;t.strokeStyle=v?b.colorDark:b.colorLight;t.lineWidth=1;t.fillStyle=v?b.colorDark:b.colorLight;t.fillRect(D,B,q,Q);t.strokeRect(Math.floor(D)+.5,Math.floor(B)+.5,X,I);t.strokeRect(Math.ceil(D)-.5,Math.ceil(B)-.5,X,I)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(e){return e?Math.floor(e*1E3)/1E3:e};
return W}():function(){var W=function(e,t){this.JSC$17416__el=e;
this.JSC$17416__htOption=t};
W.prototype.draw=function(e){for(var t=this.JSC$17416__htOption,b=this.JSC$17416__el,m=e.moduleCount,q=Math.floor(t.width/m),Q=Math.floor(t.height/m),X=['<table style="border:0;border-collapse:collapse;">'],I=0;I<m;I++){X.push("<tr>");for(var u=0;u<m;u++)X.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+q+"px;height:"+Q+"px;background-color:"+(e.isDark(I,u)?t.colorDark:t.colorLight)+';"></td>');X.push("</tr>")}X.push("</table>");e=X.join("");e=_.jRU(_.n9S,e);_.KF(b,e);
e=b.childNodes[0];m=(t.width-e.offsetWidth)/2;q=(t.height-e.offsetHeight)/2;m>0&&q>0&&(e.style.margin=q+"px "+m+"px")};
W.prototype.clear=function(){this.JSC$17416__el.textContent=""};
return W}();
MvU.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17419__android||this.JSC$17419__android>=3)&&this._oDrawing.makeImage()};
MvU.prototype.clear=function(){this._oDrawing.clear()};
_.tz.QRCode=MvU;var xRU={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var DO=function(){};
DO.prototype.stringify=function(W){return _.tz.JSON.stringify(W,void 0)};
DO.prototype.parse=function(W){return _.tz.JSON.parse(W,void 0)};var OHB=function(){_.DY.call(this,"z")};
_.QP(OHB,_.DY);var MoQ=function(){_.DY.call(this,"y")};
_.QP(MoQ,_.DY);var s8E=null,h6g=function(){return s8E=s8E||new _.ZY},HH1=function(W){_.DY.call(this,"serverreachability",W)};
_.QP(HH1,_.DY);var SR=function(W){var e=h6g();e.dispatchEvent(new HH1(e,W))},KDM=function(W){_.DY.call(this,"statevent",W)};
_.QP(KDM,_.DY);var Bt=function(W){var e=h6g();e.dispatchEvent(new KDM(e,W))},PzU=function(W,e,t,b){_.DY.call(this,"timingevent",W);
this.size=e;this.rtt=t;this.retries=b};
_.QP(PzU,_.DY);var VoU=function(W,e,t){var b=h6g();b.dispatchEvent(new PzU(b,W,e,t))},o9=function(W,e){if(typeof W!=="function")throw Error("wk");
return _.tz.setTimeout(function(){W()},e)};var li=function(){this.redactEnabled_=!0};
li.prototype.disableRedact=function(){this.redactEnabled_=!1};
var iHS=function(W,e,t,b,m,q){W.info(function(){if(W.redactEnabled_)if(q){var Q="";for(var X=q.split("&"),I=0;I<X.length;I++){var u=X[I].split("=");if(u.length>1){var c=u[0];u=u[1];var v=c.split("_");Q=v.length>=2&&v[1]=="type"?Q+(c+"="+u+"&"):Q+(c+"=redacted&")}}}else Q=null;else Q=q;return"XMLHTTP REQ ("+b+") [attempt "+m+"]: "+e+"\n"+t+"\n"+Q})},YxE=function(W,e,t,b,m,q,Q){W.info(function(){return"XMLHTTP RESP ("+b+") [ attempt "+m+"]: "+e+"\n"+t+"\n"+q+" "+Q})},ZO=function(W,e,t,b){W.info(function(){return"XMLHTTP TEXT ("+
e+"): "+z6B(W,t)+(b?" "+b:"")})},URu=function(W,e){W.info(function(){return"TIMEOUT: "+e})};
li.prototype.debug=function(){};
li.prototype.info=function(){};
li.prototype.warning=function(){};
var z6B=function(W,e){if(!W.redactEnabled_)return e;if(!e)return null;try{var t=JSON.parse(e);if(t)for(var b=0;b<t.length;b++)if(Array.isArray(t[b])){var m=t[b];if(!(m.length<2)){var q=m[1];if(Array.isArray(q)&&!(q.length<1)){var Q=q[0];if(Q!="noop"&&Q!="stop"&&Q!="close")for(var X=1;X<q.length;X++)q[X]=""}}}return(0,_.nV)(t)}catch(I){return W.debug("Exception parsing expected JS array - probably was not JS"),e}};var $T=function(W,e,t,b,m){this.JSC$17441_channel_=W;this.JSC$17441_channelDebug_=e;this.sid_=t;this.JSC$17441_rid_=b;this.JSC$17441_retryId_=m||1;this.JSC$17441_eventHandler_=new _.bk(this);this.timeout_=45E3;this.JSC$17441_extraHeaders_=null;this.JSC$17441_successful_=!1;this.JSC$17441_postData_=this.JSC$17441_requestUri_=this.JSC$17441_baseUri_=this.JSC$17441_type_=this.JSC$17441_requestStartTime_=this.JSC$17441_watchDogTimeoutTime_=this.JSC$17441_watchDogTimerId_=null;this.JSC$17441_pendingMessages_=
[];this.JSC$17441_xmlHttp_=null;this.JSC$17441_xmlHttpChunkStart_=0;this.JSC$17441_lastError_=this.JSC$17441_verb_=null;this.JSC$17441_lastStatusCode_=-1;this.JSC$17441_cancelled_=!1;this.JSC$17441_readyStateChangeThrottleMs_=0;this.JSC$17441_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new LDu},LDu=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},EZw=function(W,e){switch(W){case 0:return"Non-200 return code ("+e+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},AFu={},NUT={};
$T.prototype.setTimeout=function(W){this.timeout_=W};
var WmU=function(W,e,t){W.JSC$17441_type_=1;W.JSC$17441_baseUri_=_.FH(e.clone());W.JSC$17441_postData_=t;W.decodeChunks_=!0;dRw(W,null)},dRw=function(W,e){W.JSC$17441_requestStartTime_=Date.now();
eIC(W);W.JSC$17441_requestUri_=W.JSC$17441_baseUri_.clone();qC(W.JSC$17441_requestUri_,"t",W.JSC$17441_retryId_);W.JSC$17441_xmlHttpChunkStart_=0;var t=W.JSC$17441_channel_.JSC$17460_supportsCrossDomainXhrs_;W.fetchResponseState_=new LDu;W.JSC$17441_xmlHttp_=tLg(W.JSC$17441_channel_,t?e:null,!W.JSC$17441_postData_);W.JSC$17441_readyStateChangeThrottleMs_>0&&(W.JSC$17441_readyStateChangeThrottle_=new _.eS((0,_.p3)(W.JSC$17445_xmlHttpHandler_,W,W.JSC$17441_xmlHttp_),W.JSC$17441_readyStateChangeThrottleMs_));
W.JSC$17441_eventHandler_.listen(W.JSC$17441_xmlHttp_,"readystatechange",W.JSC$17445_readyStateChangeHandler_);e=W.JSC$17441_extraHeaders_?_.kJ.clone(W.JSC$17441_extraHeaders_):{};W.JSC$17441_postData_?(W.JSC$17441_verb_||(W.JSC$17441_verb_="POST"),e["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17441_xmlHttp_.send(W.JSC$17441_requestUri_,W.JSC$17441_verb_,W.JSC$17441_postData_,e)):(W.JSC$17441_verb_="GET",W.JSC$17441_xmlHttp_.send(W.JSC$17441_requestUri_,W.JSC$17441_verb_,null,e));SR(1);
iHS(W.JSC$17441_channelDebug_,W.JSC$17441_verb_,W.JSC$17441_requestUri_,W.JSC$17441_rid_,W.JSC$17441_retryId_,W.JSC$17441_postData_)};
$T.prototype.JSC$17445_readyStateChangeHandler_=function(W){W=W.target;var e=this.JSC$17441_readyStateChangeThrottle_;e&&_.gu(W)==3?(this.JSC$17441_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$17445_xmlHttpHandler_(W)};
$T.prototype.JSC$17445_xmlHttpHandler_=function(W){try{W==this.JSC$17441_xmlHttp_?bME(this):this.JSC$17441_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(e){this.JSC$17441_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),m_S(this)}finally{}};
var bME=function(W){var e=_.gu(W.JSC$17441_xmlHttp_),t=W.JSC$17441_xmlHttp_.JSC$7842_lastErrorCode_,b=W.JSC$17441_xmlHttp_.getStatus();if(!(e<3||e==3&&!m_S(W))){W.JSC$17441_cancelled_||e!=4||t==7||(t==8||b<=0?SR(3):SR(2));rqu(W);var m=W.JSC$17441_xmlHttp_.getStatus();W.JSC$17441_lastStatusCode_=m;t=q5M(W);m_S(W)||W.JSC$17441_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$17441_requestUri_+" status "+m});
W.JSC$17441_successful_=m==200;YxE(W.JSC$17441_channelDebug_,W.JSC$17441_verb_,W.JSC$17441_requestUri_,W.JSC$17441_rid_,W.JSC$17441_retryId_,e,m);if(W.JSC$17441_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(b=RIQ(W))ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,b,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,Q3M(W,b);else{W.JSC$17441_successful_=!1;W.JSC$17441_lastError_=3;Bt(12);W.JSC$17441_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$17441_rid_+")");kT(W);pq(W);return}W.decodeChunks_?FmU(W,e,t):(ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,t,null),Q3M(W,t));e==4&&kT(W);W.JSC$17441_successful_&&!W.JSC$17441_cancelled_&&(e==4?X_U(W.JSC$17441_channel_,W):(W.JSC$17441_successful_=!1,eIC(W)))}else rcl(W.JSC$17441_xmlHttp_),m==400&&t.indexOf("Unknown SID")>0?(W.JSC$17441_lastError_=3,Bt(12),W.JSC$17441_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$17441_rid_+")")):(W.JSC$17441_lastError_=0,Bt(13),W.JSC$17441_channelDebug_.warning("XMLHTTP Bad status "+
m+" ("+W.JSC$17441_rid_+")")),kT(W),pq(W)}},RIQ=function(W){return W.JSC$17441_xmlHttp_&&(W=a6(W.JSC$17441_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.QK(W)?W:null},q5M=function(W){if(!I5l(W))return W.JSC$17441_xmlHttp_.getResponseText();
var e=W.JSC$17441_xmlHttp_.getResponse();if(e==="")return"";var t="",b=e.length,m=_.gu(W.JSC$17441_xmlHttp_)==4;if(!W.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return kT(W),pq(W),"";W.fetchResponseState_.textDecoder=new _.tz.TextDecoder}for(var q=0;q<b;q++)W.fetchResponseState_.responseArrivedForFetch=!0,t+=W.fetchResponseState_.textDecoder.decode(e[q],{stream:!(m&&q==b-1)});e.length=0;W.fetchResponseState_.responseBuffer+=t;W.JSC$17441_xmlHttpChunkStart_=0;return W.fetchResponseState_.responseBuffer},
m_S=function(W){return W.JSC$17441_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$17441_xmlHttp_.getResponseText()&&!W.JSC$17441_xmlHttp_.getResponse()):!1},I5l=function(W){return W.JSC$17441_xmlHttp_?W.JSC$17441_verb_=="GET"&&W.JSC$17441_type_!=2&&W.JSC$17441_channel_.usesFetchStreams_:!1},FmU=function(W,e,t){for(var b=!0,m;!W.JSC$17441_cancelled_&&W.JSC$17441_xmlHttpChunkStart_<t.length;)if(m=a5E(W,t),m==NUT){e==4&&(W.JSC$17441_lastError_=4,Bt(14),b=!1);
ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,null,"[Incomplete Response]");break}else if(m==AFu){W.JSC$17441_lastError_=4;Bt(15);ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,t,"[Invalid Chunk]");b=!1;break}else ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,m,null),Q3M(W,m);I5l(W)&&W.JSC$17441_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$17441_xmlHttpChunkStart_),W.JSC$17441_xmlHttpChunkStart_=0);e!=4||t.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$17441_lastError_=1,Bt(16),b=!1);W.JSC$17441_successful_=W.JSC$17441_successful_&&b;b?t.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,e=W.JSC$17441_channel_,e.JSC$17460_backChannelRequest_==W&&e.detectBufferingProxy_&&!e.bpDetectionDone_&&(e.JSC$17460_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+t.length),w_Q(e),e.bpDetectionDone_=!0,Bt(11))):(ZO(W.JSC$17441_channelDebug_,W.JSC$17441_rid_,t,"[Invalid Chunked Response]"),kT(W),pq(W))},a5E=function(W,e){var t=
W.JSC$17441_xmlHttpChunkStart_,b=e.indexOf("\n",t);
if(b==-1)return NUT;t=Number(e.substring(t,b));if(isNaN(t))return AFu;b+=1;if(b+t>e.length)return NUT;e=e.slice(b,b+t);W.JSC$17441_xmlHttpChunkStart_=b+t;return e};
$T.prototype.cancel=function(){this.JSC$17441_cancelled_=!0;kT(this)};
var eIC=function(W){W.JSC$17441_watchDogTimeoutTime_=Date.now()+W.timeout_;uRE(W,W.timeout_)},uRE=function(W,e){if(W.JSC$17441_watchDogTimerId_!=null)throw Error("xk");
W.JSC$17441_watchDogTimerId_=o9((0,_.p3)(W.JSC$17445_onWatchDogTimeout_,W),e)},rqu=function(W){W.JSC$17441_watchDogTimerId_&&(_.tz.clearTimeout(W.JSC$17441_watchDogTimerId_),W.JSC$17441_watchDogTimerId_=null)};
$T.prototype.JSC$17445_onWatchDogTimeout_=function(){this.JSC$17441_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17441_watchDogTimeoutTime_>=0?(URu(this.JSC$17441_channelDebug_,this.JSC$17441_requestUri_),this.JSC$17441_type_!=2&&(SR(3),Bt(17)),kT(this),this.JSC$17441_lastError_=2,pq(this)):(this.JSC$17441_channelDebug_.warning("WatchDog timer called too early"),uRE(this,this.JSC$17441_watchDogTimeoutTime_-W))};
var pq=function(W){W.JSC$17441_channel_.state_==0||W.JSC$17441_cancelled_||X_U(W.JSC$17441_channel_,W)},kT=function(W){rqu(W);
_.NL(W.JSC$17441_readyStateChangeThrottle_);W.JSC$17441_readyStateChangeThrottle_=null;W.JSC$17441_eventHandler_.removeAll();if(W.JSC$17441_xmlHttp_){var e=W.JSC$17441_xmlHttp_;W.JSC$17441_xmlHttp_=null;e.abort();e.dispose()}};
$T.prototype.getLastError=function(){return this.JSC$17441_lastError_};
var Q3M=function(W,e){try{var t=W.JSC$17441_channel_;if(t.state_!=0&&(t.JSC$17460_backChannelRequest_==W||cqg(t.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&cqg(t.forwardChannelRequestPool_,W)&&t.state_==3){try{var b=t.wireCodec_.JSC$17455_parser_.parse(e)}catch(X){b=null}if(Array.isArray(b)&&b.length==3){e=b;if(e[0]==0)a:if(t.JSC$17460_channelDebug_.debug("Server claims our backchannel is missing."),t.JSC$17460_backChannelTimerId_)t.JSC$17460_channelDebug_.debug("But we are currently starting the request.");
else{if(t.JSC$17460_backChannelRequest_)if(t.JSC$17460_backChannelRequest_.JSC$17441_requestStartTime_+3E3<W.JSC$17441_requestStartTime_)vcU(t),GMC(t);else break a;else t.JSC$17460_channelDebug_.warning("We do not have a BackChannel established");D_B(t);Bt(18)}else{t.JSC$17460_lastPostResponseArrayId_=e[1];var m=t.JSC$17460_lastPostResponseArrayId_-t.JSC$17460_lastArrayId_;if(0<m){var q=e[2];t.JSC$17460_channelDebug_.debug(q+" bytes (in "+m+" arrays) are outstanding on the BackChannel");q<37500&&
t.enableStreaming_&&t.JSC$17460_backChannelRetryCount_==0&&!t.JSC$17460_deadBackChannelTimerId_&&(t.JSC$17460_deadBackChannelTimerId_=o9((0,_.p3)(t.JSC$17462_onBackChannelDead_,t),6E3))}}if(S5l(t.forwardChannelRequestPool_)<=1&&t.forwardChannelFlushedCallback_){try{t.forwardChannelFlushedCallback_()}catch(X){}t.forwardChannelFlushedCallback_=void 0}}else t.JSC$17460_channelDebug_.debug("Bad POST response data returned"),y0(t,11)}else if((W.initialResponseDecoded_||t.JSC$17460_backChannelRequest_==
W)&&vcU(t),!_.QK(e)){var Q=t.wireCodec_.JSC$17455_parser_.parse(e);t.onInput_(Q,W)}SR(4)}catch(X){}};var BLu=function(W,e){this.JSC$17448_mapId=W;this.map=e;this.context=null};var ocT=function(W){this.maxPoolSizeConfigured_=W||10;_.tz.PerformanceNavigationTiming?(W=_.tz.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.tz.chrome&&_.tz.chrome.loadTimes&&_.tz.chrome.loadTimes()&&_.tz.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17451_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17451_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17451_request_=null;this.JSC$17451_pendingMessages_=
[]},l5T=function(W){return W.JSC$17451_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$17451_maxSize_:!1},S5l=function(W){return W.JSC$17451_request_?1:W.requestPool_?W.requestPool_.size:0},cqg=function(W,e){return W.JSC$17451_request_?W.JSC$17451_request_==e:W.requestPool_?W.requestPool_.has(e):!1},ZMw=function(W,e){W.requestPool_?W.requestPool_.add(e):W.JSC$17451_request_=e},$_Q=function(W,e){W.JSC$17451_request_&&W.JSC$17451_request_==e?W.JSC$17451_request_=null:W.requestPool_&&W.requestPool_.has(e)&&
W.requestPool_.delete(e)};
ocT.prototype.cancel=function(){this.JSC$17451_pendingMessages_=kMQ(this);if(this.JSC$17451_request_)this.JSC$17451_request_.cancel(),this.JSC$17451_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.R(this.requestPool_.values()),e=W.next();!e.done;e=W.next())e.value.cancel();this.requestPool_.clear()}};
var kMQ=function(W){if(W.JSC$17451_request_!=null)return W.JSC$17451_pendingMessages_.concat(W.JSC$17451_request_.JSC$17441_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var e=W.JSC$17451_pendingMessages_;W=_.R(W.requestPool_.values());for(var t=W.next();!t.done;t=W.next())e=e.concat(t.value.JSC$17441_pendingMessages_);return e}return _.EL(W.JSC$17451_pendingMessages_)},p_E=function(W,e){W.JSC$17451_pendingMessages_=W.JSC$17451_pendingMessages_.concat(e)};var yqM=function(W,e){var t=new li;t.debug("TestLoadImage: loading "+W);if(_.tz.Image){var b=new Image;b.onload=_.Sz(jR,t,"TestLoadImage: loaded",!0,e,b);b.onerror=_.Sz(jR,t,"TestLoadImage: error",!1,e,b);b.onabort=_.Sz(jR,t,"TestLoadImage: abort",!1,e,b);b.ontimeout=_.Sz(jR,t,"TestLoadImage: timeout",!1,e,b);_.tz.setTimeout(function(){if(b.ontimeout)b.ontimeout()},1E4);
b.src=W}else e(!1)},j3E=function(W,e){var t=new li,b=new AbortController,m=setTimeout(function(){b.abort();
jR(t,"TestPingServer: timeout",!1,e)},1E4);
fetch(W,{signal:b.signal}).then(function(q){clearTimeout(m);q.ok?jR(t,"TestPingServer: ok",!0,e):jR(t,"TestPingServer: server error",!1,e)}).catch(function(){clearTimeout(m);
jR(t,"TestPingServer: error",!1,e)})},jR=function(W,e,t,b,m){try{W.debug(e),m&&(m.onload=null,m.onerror=null,m.onabort=null,m.ontimeout=null),b(t)}catch(q){}};var C9g=function(){this.JSC$17455_parser_=new DO},ncw=function(W,e,t){var b=t||"";
try{_.sDk(W,function(m,q){var Q=m;_.tk(m)&&(Q=(0,_.nV)(m));e.push(b+q+"="+encodeURIComponent(Q))})}catch(m){throw e.push(b+"type="+encodeURIComponent("_badmap")),m;
}};var Cq=function(W,e,t){return t&&t.internalChannelParams?t.internalChannelParams[W]||e:e},nq=function(W){this.serverVersion_=0;
this.JSC$17460_outgoingMaps_=[];this.JSC$17460_channelDebug_=new li;this.JSC$17460_hostPrefix_=this.JSC$17460_backChannelUri_=this.JSC$17460_forwardChannelUri_=this.JSC$17460_path_=this.JSC$17460_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17460_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17460_extraHeaders_=null;this.JSC$17460_nextMapId_=this.JSC$17460_nextRid_=0;this.JSC$17460_failFast_=Cq("failFast",!1,W);this.enableStreaming_=this.JSC$17460_deadBackChannelTimerId_=
this.JSC$17460_backChannelTimerId_=this.JSC$17460_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17460_lastPostResponseArrayId_=this.JSC$17460_lastArrayId_=-1;this.JSC$17460_backChannelAttemptId_=this.JSC$17460_backChannelRetryCount_=this.JSC$17460_forwardChannelRetryCount_=0;this.JSC$17460_baseRetryDelayMs_=Cq("baseRetryDelayMs",5E3,W);this.JSC$17460_retryDelaySeedMs_=Cq("retryDelaySeedMs",1E4,W);this.JSC$17460_forwardChannelMaxRetries_=
Cq("forwardChannelMaxRetries",2,W);this.JSC$17460_forwardChannelRequestTimeoutMs_=Cq("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$17460_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17460_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ocT(W&&W.concurrentRequestLimit);this.wireCodec_=new C9g;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17460_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$17460_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
nq.prototype.JSC$17462_channelVersion_=8;nq.prototype.state_=1;
nq.prototype.connect=function(W,e,t,b){this.JSC$17460_channelDebug_.debug("connect()");Bt(0);this.JSC$17460_path_=W;this.JSC$17460_extraParams_=e||{};t&&b!==void 0&&(this.JSC$17460_extraParams_.OSID=t,this.JSC$17460_extraParams_.OAID=b);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17460_channelDebug_.debug("connectChannel_()");W=f5g(this,null,this.JSC$17460_path_);this.JSC$17460_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$17460_forwardChannelUri_=W;gcC(this)};
nq.prototype.disconnect=function(){this.JSC$17460_channelDebug_.debug("disconnect()");TLB(this);if(this.state_==3){var W=this.JSC$17460_nextRid_++,e=this.JSC$17460_forwardChannelUri_.clone();_.UJ(e,"SID",this.sid_);_.UJ(e,"RID",W);_.UJ(e,"TYPE","terminate");fq(this,e);W=new $T(this,this.JSC$17460_channelDebug_,this.sid_,W);W.JSC$17441_type_=2;W.JSC$17441_baseUri_=_.FH(e.clone());e=!1;if(_.tz.navigator&&_.tz.navigator.sendBeacon)try{e=_.tz.navigator.sendBeacon(W.JSC$17441_baseUri_.toString(),"")}catch(t){}!e&&
_.tz.Image&&((new Image).src=W.JSC$17441_baseUri_,e=!0);e||(W.JSC$17441_xmlHttp_=tLg(W.JSC$17441_channel_,null),W.JSC$17441_xmlHttp_.send(W.JSC$17441_baseUri_));W.JSC$17441_requestStartTime_=Date.now();eIC(W)}Jqu(this)};
var GMC=function(W){W.JSC$17460_backChannelRequest_&&(w_Q(W),W.JSC$17460_backChannelRequest_.cancel(),W.JSC$17460_backChannelRequest_=null)},TLB=function(W){GMC(W);
W.JSC$17460_backChannelTimerId_&&(_.tz.clearTimeout(W.JSC$17460_backChannelTimerId_),W.JSC$17460_backChannelTimerId_=null);vcU(W);W.forwardChannelRequestPool_.cancel();W.JSC$17460_forwardChannelTimerId_&&(typeof W.JSC$17460_forwardChannelTimerId_==="number"&&_.tz.clearTimeout(W.JSC$17460_forwardChannelTimerId_),W.JSC$17460_forwardChannelTimerId_=null)};
nq.prototype.getState=function(){return this.state_};
var gcC=function(W){l5T(W.forwardChannelRequestPool_)||W.JSC$17460_forwardChannelTimerId_||(W.JSC$17460_forwardChannelTimerId_=!0,_.kr(W.JSC$17462_onStartForwardChannelTimer_,W),W.JSC$17460_forwardChannelRetryCount_=0)},OMw=function(W,e){if(S5l(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$17451_maxSize_-(W.JSC$17460_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$17460_forwardChannelTimerId_)return W.JSC$17460_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$17460_outgoingMaps_=e.JSC$17441_pendingMessages_.concat(W.JSC$17460_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$17460_forwardChannelRetryCount_>=(W.JSC$17460_failFast_?0:W.JSC$17460_forwardChannelMaxRetries_))return!1;W.JSC$17460_channelDebug_.debug("Going to retry POST");W.JSC$17460_forwardChannelTimerId_=o9((0,_.p3)(W.JSC$17462_onStartForwardChannelTimer_,
W,e),x_$(W,W.JSC$17460_forwardChannelRetryCount_));W.JSC$17460_forwardChannelRetryCount_++;return!0};
nq.prototype.JSC$17462_onStartForwardChannelTimer_=function(W){if(this.JSC$17460_forwardChannelTimerId_)if(this.JSC$17460_forwardChannelTimerId_=null,this.JSC$17460_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$17460_channelDebug_.debug("open_()");this.JSC$17460_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$17460_nextRid_++;var e=new $T(this,this.JSC$17460_channelDebug_,"",W),t=this.JSC$17460_extraHeaders_;this.initHeaders_&&(t?(t=_.kJ.clone(t),_.kJ.extend(t,this.initHeaders_)):
t=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(e.JSC$17441_extraHeaders_=t,t=null);var b;if(this.fastHandshake_)a:{for(var m=b=0;m<this.JSC$17460_outgoingMaps_.length;m++){b:{var q=this.JSC$17460_outgoingMaps_[m];if("__data__"in q.map&&(q=q.map.__data__,typeof q==="string")){q=q.length;break b}q=void 0}if(q===void 0)break;b+=q;if(b>4096){b=m;break a}if(b===4096||m===this.JSC$17460_outgoingMaps_.length-1){b=m+1;break a}}b=1E3}else b=1E3;b=ML1(this,e,b);
m=this.JSC$17460_forwardChannelUri_.clone();_.UJ(m,"RID",W);_.UJ(m,"CVER",22);this.httpSessionIdParam_&&_.UJ(m,"X-HTTP-Session-Id",this.httpSessionIdParam_);fq(this,m);t&&(this.encodeInitMessageHeaders_?b="headers="+_.PO(a_w(t))+"&"+b:this.httpHeadersOverwriteParam_&&wST(m,this.httpHeadersOverwriteParam_,t));ZMw(this.forwardChannelRequestPool_,e);this.blockingHandshake_&&_.UJ(m,"TYPE","init");this.fastHandshake_?(_.UJ(m,"$req",b),_.UJ(m,"SID","null"),e.decodeInitialResponse_=!0,WmU(e,m,null)):WmU(e,
m,b);this.state_=2}}else this.state_==3&&(W?s3C(this,W):this.JSC$17460_outgoingMaps_.length==0?this.JSC$17460_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):l5T(this.forwardChannelRequestPool_)||(s3C(this),this.JSC$17460_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var s3C=function(W,e){var t;e?t=e.JSC$17441_rid_:t=W.JSC$17460_nextRid_++;var b=W.JSC$17460_forwardChannelUri_.clone();_.UJ(b,"SID",W.sid_);_.UJ(b,"RID",t);_.UJ(b,"AID",W.JSC$17460_lastArrayId_);fq(W,b);W.httpHeadersOverwriteParam_&&W.JSC$17460_extraHeaders_&&wST(b,W.httpHeadersOverwriteParam_,W.JSC$17460_extraHeaders_);t=new $T(W,W.JSC$17460_channelDebug_,W.sid_,t,W.JSC$17460_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(t.JSC$17441_extraHeaders_=W.JSC$17460_extraHeaders_);e&&
(W.JSC$17460_outgoingMaps_=e.JSC$17441_pendingMessages_.concat(W.JSC$17460_outgoingMaps_));e=ML1(W,t,1E3);t.setTimeout(Math.round(W.JSC$17460_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$17460_forwardChannelRequestTimeoutMs_*.5*Math.random()));ZMw(W.forwardChannelRequestPool_,t);WmU(t,b,e)},fq=function(W,e){W.JSC$17460_extraParams_&&_.kJ.forEach(W.JSC$17460_extraParams_,function(t,b){_.UJ(e,b,t)});
W.handler_&&_.sDk({},function(t,b){_.UJ(e,b,t)})},ML1=function(W,e,t){t=Math.min(W.JSC$17460_outgoingMaps_.length,t);
var b=W.handler_?(0,_.p3)(W.handler_.JSC$17466_badMapError,W.handler_,W):null;a:{for(var m=W.JSC$17460_outgoingMaps_,q=-1;;){var Q=["count="+t];q==-1?t>0?(q=m[0].JSC$17448_mapId,Q.push("ofs="+q)):q=0:Q.push("ofs="+q);for(var X=!0,I=0;I<t;I++){var u=m[I].JSC$17448_mapId,c=m[I].map;u-=q;if(u<0)q=Math.max(0,m[I].JSC$17448_mapId-100),X=!1;else try{ncw(c,Q,"req"+u+"_")}catch(v){b&&b(c)}}if(X){b=Q.join("&");break a}}b=void 0}W=W.JSC$17460_outgoingMaps_.splice(0,t);e.JSC$17441_pendingMessages_=W;return b},
hIg=function(W){W.JSC$17460_backChannelRequest_||W.JSC$17460_backChannelTimerId_||(W.JSC$17460_backChannelAttemptId_=1,_.kr(W.JSC$17462_onStartBackChannelTimer_,W),W.JSC$17460_backChannelRetryCount_=0)},D_B=function(W){if(W.JSC$17460_backChannelRequest_||W.JSC$17460_backChannelTimerId_||W.JSC$17460_backChannelRetryCount_>=3)return!1;
W.JSC$17460_channelDebug_.debug("Going to retry GET");W.JSC$17460_backChannelAttemptId_++;W.JSC$17460_backChannelTimerId_=o9((0,_.p3)(W.JSC$17462_onStartBackChannelTimer_,W),x_$(W,W.JSC$17460_backChannelRetryCount_));W.JSC$17460_backChannelRetryCount_++;return!0};
nq.prototype.JSC$17462_onStartBackChannelTimer_=function(){this.JSC$17460_backChannelTimerId_=null;HMC(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17460_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17460_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17460_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=2*this.handshakeRttMs_;this.JSC$17460_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=o9((0,_.p3)(this.onBpDetectionTimer_,
this),W)}};
nq.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17460_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17460_backChannelRequest_.JSC$17441_xmlHttp_!=null){var W=this.JSC$17460_backChannelRequest_.JSC$17441_xmlHttp_.getResponseText();W&&this.JSC$17460_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$17460_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Bt(10);GMC(this);HMC(this)}else this.JSC$17460_channelDebug_.warning("Invalid operation.")};
var w_Q=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$17460_channelDebug_.debug("Cancel the BP detection timer."),_.tz.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},HMC=function(W){W.JSC$17460_channelDebug_.debug("Creating new HttpRequest");
W.JSC$17460_backChannelRequest_=new $T(W,W.JSC$17460_channelDebug_,W.sid_,"rpc",W.JSC$17460_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$17460_backChannelRequest_.JSC$17441_extraHeaders_=W.JSC$17460_extraHeaders_);W.JSC$17460_backChannelRequest_.JSC$17441_readyStateChangeThrottleMs_=0;var e=W.JSC$17460_backChannelUri_.clone();_.UJ(e,"RID","rpc");_.UJ(e,"SID",W.sid_);_.UJ(e,"AID",W.JSC$17460_lastArrayId_);_.UJ(e,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.UJ(e,"TO",W.longPollingTimeout_);_.UJ(e,"TYPE","xmlhttp");fq(W,e);W.httpHeadersOverwriteParam_&&W.JSC$17460_extraHeaders_&&wST(e,W.httpHeadersOverwriteParam_,W.JSC$17460_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$17460_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var t=W.JSC$17460_backChannelRequest_,b=W.JSC$17460_hostPrefix_;t.JSC$17441_type_=1;t.JSC$17441_baseUri_=_.FH(e.clone());t.JSC$17441_postData_=null;t.decodeChunks_=!0;dRw(t,b);W.JSC$17460_channelDebug_.debug("New Request created")};
nq.prototype.JSC$17462_onBackChannelDead_=function(){this.JSC$17460_deadBackChannelTimerId_!=null&&(this.JSC$17460_deadBackChannelTimerId_=null,GMC(this),D_B(this),Bt(19))};
var vcU=function(W){W.JSC$17460_deadBackChannelTimerId_!=null&&(_.tz.clearTimeout(W.JSC$17460_deadBackChannelTimerId_),W.JSC$17460_deadBackChannelTimerId_=null)},X_U=function(W,e){W.JSC$17460_channelDebug_.debug("Request complete");
var t=null;if(W.JSC$17460_backChannelRequest_==e){vcU(W);w_Q(W);W.JSC$17460_backChannelRequest_=null;var b=2}else if(cqg(W.forwardChannelRequestPool_,e))t=e.JSC$17441_pendingMessages_,$_Q(W.forwardChannelRequestPool_,e),b=1;else return;if(W.state_!=0)if(e.JSC$17441_successful_)b==1?(VoU(e.JSC$17441_postData_?e.JSC$17441_postData_.length:0,Date.now()-e.JSC$17441_requestStartTime_,W.JSC$17460_forwardChannelRetryCount_),gcC(W)):hIg(W);else{var m=e.JSC$17441_lastStatusCode_,q=e.getLastError();if(q==3||
q==0&&m>0)W.JSC$17460_channelDebug_.debug("Not retrying due to error type"),m>200&&(W.errorResponseStatusCode_=e.JSC$17441_lastStatusCode_);else{W.JSC$17460_channelDebug_.debug(function(){return"Maybe retrying, last error: "+EZw(q,W.errorResponseStatusCode_)});
if(b==1&&OMw(W,e)||b==2&&D_B(W))return;W.JSC$17460_channelDebug_.debug("Exceeded max number of retries")}t&&t.length>0&&p_E(W.forwardChannelRequestPool_,t);W.JSC$17460_channelDebug_.debug("Error: HTTP request failed");switch(q){case 1:y0(W,5);break;case 4:y0(W,10);break;case 3:y0(W,6);break;default:y0(W,2)}}},x_$=function(W,e){var t=W.JSC$17460_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$17460_retryDelaySeedMs_);
W.isActive()||(W.JSC$17460_channelDebug_.debug("Inactive channel"),t*=2);return t*e};
nq.prototype.onInput_=function(W,e){for(var t=0;t<W.length;t++){var b=W[t];this.JSC$17460_lastArrayId_=b[0];b=b[1];if(this.state_==2)if(b[0]=="c"){this.sid_=b[1];this.JSC$17460_hostPrefix_=b[2];var m=b[3];m!=null&&(this.JSC$17462_channelVersion_=m,this.JSC$17460_channelDebug_.info("VER="+this.JSC$17462_channelVersion_));m=b[4];m!=null&&(this.serverVersion_=m,this.JSC$17460_channelDebug_.info("SVER="+this.serverVersion_));b=b[5];b!=null&&typeof b==="number"&&b>0&&(this.backChannelRequestTimeoutMs_=
b*=1.5,this.JSC$17460_channelDebug_.info("backChannelRequestTimeoutMs_="+b));if(b=e.JSC$17441_xmlHttp_){var q=a6(b,"X-Client-Wire-Protocol");q&&(m=this.forwardChannelRequestPool_,!m.requestPool_&&(_.XD(q,"spdy")||_.XD(q,"quic")||_.XD(q,"h2"))&&(m.JSC$17451_maxSize_=m.maxPoolSizeConfigured_,m.requestPool_=new Set,m.JSC$17451_request_&&(ZMw(m,m.JSC$17451_request_),m.JSC$17451_request_=null)));this.httpSessionIdParam_&&((b=a6(b,"X-HTTP-Session-Id"))?(this.httpSessionId_=b,_.UJ(this.JSC$17460_forwardChannelUri_,
this.httpSessionIdParam_,b)):this.JSC$17460_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17466_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-e.JSC$17441_requestStartTime_,this.JSC$17460_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));b=e;m=f5g(this,this.JSC$17460_supportsCrossDomainXhrs_?this.JSC$17460_hostPrefix_:null,this.JSC$17460_path_);this.JSC$17460_channelDebug_.debug("GetBackChannelUri: "+
m);this.JSC$17460_backChannelUri_=m;b.initialResponseDecoded_?(this.JSC$17460_channelDebug_.debug("Upgrade the handshake request to a backchannel."),$_Q(this.forwardChannelRequestPool_,b),m=b,(q=this.backChannelRequestTimeoutMs_)&&m.setTimeout(q),m.JSC$17441_watchDogTimerId_&&(rqu(m),eIC(m)),this.JSC$17460_backChannelRequest_=b):hIg(this);this.JSC$17460_outgoingMaps_.length>0&&gcC(this)}else b[0]!="stop"&&b[0]!="close"||y0(this,7);else this.state_==3&&(b[0]=="stop"||b[0]=="close"?b[0]=="stop"?y0(this,
7):this.disconnect():b[0]!="noop"&&this.handler_&&this.handler_.JSC$17466_channelHandleArray(b),this.JSC$17460_backChannelRetryCount_=0)}};
var y0=function(W,e){W.JSC$17460_channelDebug_.info("Error code "+e);if(e==2){var t=(0,_.p3)(W.testNetworkCallback_,W),b=W.networkTestUrl_,m=!b;b=new _.UT(b||"//www.google.com/images/cleardot.gif");_.tz.location&&_.tz.location.protocol=="http"||_.Wh(b,"https");_.FH(b);m?yqM(b.toString(),t):j3E(b.toString(),t)}else Bt(2);W.onError_(e)};
nq.prototype.testNetworkCallback_=function(W){W?(this.JSC$17460_channelDebug_.info("Successfully pinged google.com"),Bt(2)):(this.JSC$17460_channelDebug_.info("Failed to ping google.com"),Bt(1))};
nq.prototype.onError_=function(W){this.JSC$17460_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17466_channelError(W);Jqu(this);TLB(this)};
var Jqu=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var e=kMQ(W.forwardChannelRequestPool_);if(e.length!=0||W.JSC$17460_outgoingMaps_.length!=0)W.JSC$17460_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+e.length+", outgoing: "+W.JSC$17460_outgoingMaps_.length}),_.dG(W.nonAckedMapsAtChannelClose_,e),_.dG(W.nonAckedMapsAtChannelClose_,W.JSC$17460_outgoingMaps_),W.forwardChannelRequestPool_.JSC$17451_pendingMessages_.length=0,_.EL(W.JSC$17460_outgoingMaps_),
W.JSC$17460_outgoingMaps_.length=0;
W.handler_.JSC$17466_channelClosed()}},KmM=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var e=[];_.dG(e,kMQ(W.forwardChannelRequestPool_));_.dG(e,W.JSC$17460_outgoingMaps_);return e},f5g=function(W,e,t){var b=_.Ya(t);
b.JSC$8077_domain_!=""?(e&&_.eo(b,e+"."+b.JSC$8077_domain_),_.tF(b,b.JSC$8077_port_)):(b=_.tz.location,b=WMu(b.protocol,e?e+"."+b.hostname:b.hostname,+b.port,t));e=W.httpSessionIdParam_;t=W.httpSessionId_;e&&t&&_.UJ(b,e,t);_.UJ(b,"VER",W.JSC$17462_channelVersion_);fq(W,b);return b},tLg=function(W,e,t){if(e&&!W.JSC$17460_supportsCrossDomainXhrs_)throw Error("yk");
e=W.usesFetchStreams_&&!W.JSC$17460_xmlHttpFactory_?new _.fV(new f9({streamBinaryChunks:t})):new _.fV(W.JSC$17460_xmlHttpFactory_);e.JSC$7842_withCredentials_=W.JSC$17460_supportsCrossDomainXhrs_;return e};
nq.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var P9T=function(){};
_.r=P9T.prototype;_.r.JSC$17466_channelOpened=function(){};
_.r.JSC$17466_channelHandleArray=function(){};
_.r.JSC$17466_channelError=function(){};
_.r.JSC$17466_channelClosed=function(){};
_.r.isActive=function(){return!0};
_.r.JSC$17466_badMapError=function(){};var VLQ=function(){},TU=function(W,e){_.ZY.call(this);
this.JSC$17469_channel_=new nq(e);this.JSC$17469_url_=W;this.messageUrlParams_=e&&e.messageUrlParams||null;W=e&&e.messageHeaders||null;e&&e.clientProtocolHeaderRequired&&(W?_.kJ.set(W,"X-Client-Protocol","webchannel"):W=_.kJ.create("X-Client-Protocol","webchannel"));this.JSC$17469_channel_.JSC$17460_extraHeaders_=W;W=e&&e.initMessageHeaders||null;e&&e.messageContentType&&(W?_.kJ.set(W,"X-WebChannel-Content-Type",e.messageContentType):W=_.kJ.create("X-WebChannel-Content-Type",e.messageContentType));
e&&e.clientProfile&&(W?_.kJ.set(W,"X-WebChannel-Client-Profile",e.clientProfile):W=_.kJ.create("X-WebChannel-Client-Profile",e.clientProfile));this.JSC$17469_channel_.initHeaders_=W;(W=e&&e.httpHeadersOverwriteParam)&&!_.QK(W)&&(this.JSC$17469_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=e&&e.supportsCrossDomainXhr||!1;this.sendRawJson_=e&&e.sendRawJson||!1;(e=e&&e.httpSessionIdParam)&&!_.QK(e)&&(this.JSC$17469_channel_.httpSessionIdParam_=e,_.kJ.containsKey(this.messageUrlParams_,
e)&&_.kJ.remove(this.messageUrlParams_,e));this.channelHandler_=new gm(this)};
_.QP(TU,_.ZY);TU.prototype.open=function(){this.JSC$17469_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17469_channel_.JSC$17460_supportsCrossDomainXhrs_=!0);this.JSC$17469_channel_.connect(this.JSC$17469_url_,this.messageUrlParams_||void 0)};
TU.prototype.close=function(){this.JSC$17469_channel_.disconnect()};
TU.prototype.send=function(W){var e=this.JSC$17469_channel_;if(typeof W==="string"){var t={};t.__data__=W;W=t}else this.sendRawJson_&&(t={},t.__data__=(0,_.nV)(W),W=t);e.JSC$17460_outgoingMaps_.push(new BLu(e.JSC$17460_nextMapId_++,W));e.state_==3&&gcC(e)};
TU.prototype.disposeInternal=function(){this.JSC$17469_channel_.handler_=null;delete this.channelHandler_;this.JSC$17469_channel_.disconnect();delete this.JSC$17469_channel_;TU.superClass_.disposeInternal.call(this)};
var iMg=function(W){OHB.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var e=W.__sm__;e?this.data=(this.metadataKey=_.kJ.getAnyKey(e))?_.kJ.get(e,this.metadataKey):e:this.data=W};
_.QP(iMg,OHB);var Y5u=function(W){MoQ.call(this);this.status=1;this.errorCode=W};
_.QP(Y5u,MoQ);var gm=function(W){this.JSC$17476_channel_=W};
_.QP(gm,P9T);gm.prototype.JSC$17466_channelOpened=function(){this.JSC$17476_channel_.dispatchEvent("w")};
gm.prototype.JSC$17466_channelHandleArray=function(W){this.JSC$17476_channel_.dispatchEvent(new iMg(W))};
gm.prototype.JSC$17466_channelError=function(W){this.JSC$17476_channel_.dispatchEvent(new Y5u(W))};
gm.prototype.JSC$17466_channelClosed=function(){this.JSC$17476_channel_.dispatchEvent("x")};
var zI9=function(W,e){this.transportChannel_=W;this.JSC$17479_channel_=e},U_g=function(W){return KmM(W.JSC$17479_channel_).map(function(e){var t=W.transportChannel_;
e=e.map;"__data__"in e?(e=e.__data__,t=t.sendRawJson_?(0,_.uhb)(e):e):t=e;return t})};var Jw=function(W){LmQ.dispatchEvent(new EcQ(LmQ,W))},LmQ=new _.ZY,EcQ=function(W){_.DY.call(this,"statevent",W)};
_.Z(EcQ,_.DY);var xT=function(W,e,t,b,m){this.JSC$17484_channel_=W;this.JSC$17484_channelDebug_=e;this.sid_=t;this.JSC$17484_rid_=b;this.JSC$17484_retryId_=m||1;this.timeout_=45E3;this.JSC$17484_eventHandler_=new _.bk(this);this.pollingTimer_=new _.tj;this.pollingTimer_.setInterval(250)};
_.r=xT.prototype;_.r.JSC$17486_extraHeaders_=null;_.r.JSC$17486_successful_=!1;_.r.JSC$17486_watchDogTimerId_=null;_.r.JSC$17486_watchDogTimeoutTime_=null;_.r.JSC$17486_requestStartTime_=null;_.r.JSC$17486_type_=null;_.r.JSC$17486_baseUri_=null;_.r.JSC$17486_requestUri_=null;_.r.JSC$17486_postData_=null;_.r.JSC$17486_xmlHttp_=null;_.r.JSC$17486_xmlHttpChunkStart_=0;_.r.trident_=null;_.r.JSC$17486_verb_=null;_.r.JSC$17486_lastError_=null;_.r.JSC$17486_lastStatusCode_=-1;_.r.sendClose_=!0;
_.r.JSC$17486_cancelled_=!1;_.r.JSC$17486_readyStateChangeThrottleMs_=0;_.r.JSC$17486_readyStateChangeThrottle_=null;var AqM=function(W,e){switch(W){case 0:return"Non-200 return code ("+e+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},NLC={},d_Q={};
xT.prototype.setTimeout=function(W){this.timeout_=W};
var eD1=function(W,e,t){W.JSC$17486_type_=1;W.JSC$17486_baseUri_=_.FH(e.clone());W.JSC$17486_postData_=t;W.decodeChunks_=!0;WKB(W,null)},tA$=function(W,e,t,b,m){W.JSC$17486_type_=1;
W.JSC$17486_baseUri_=_.FH(e.clone());W.JSC$17486_postData_=null;W.decodeChunks_=t;m&&(W.sendClose_=!1);WKB(W,b)},WKB=function(W,e){W.JSC$17486_requestStartTime_=Date.now();
bsC(W);W.JSC$17486_requestUri_=W.JSC$17486_baseUri_.clone();qC(W.JSC$17486_requestUri_,"t",W.JSC$17484_retryId_);W.JSC$17486_xmlHttpChunkStart_=0;W.JSC$17486_xmlHttp_=W.JSC$17484_channel_.JSC$17493_createXhrIo(W.JSC$17484_channel_.JSC$17493_shouldUseSecondaryDomains()?e:null);W.JSC$17486_readyStateChangeThrottleMs_>0&&(W.JSC$17486_readyStateChangeThrottle_=new _.eS((0,_.p3)(W.JSC$17486_xmlHttpHandler_,W,W.JSC$17486_xmlHttp_),W.JSC$17486_readyStateChangeThrottleMs_));W.JSC$17484_eventHandler_.listen(W.JSC$17486_xmlHttp_,
"readystatechange",W.JSC$17486_readyStateChangeHandler_);e=W.JSC$17486_extraHeaders_?_.kJ.clone(W.JSC$17486_extraHeaders_):{};W.JSC$17486_postData_?(W.JSC$17486_verb_="POST",e["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17486_xmlHttp_.send(W.JSC$17486_requestUri_,W.JSC$17486_verb_,W.JSC$17486_postData_,e)):(W.JSC$17486_verb_="GET",W.sendClose_&&!_.uI&&(e.Connection="close"),W.JSC$17486_xmlHttp_.send(W.JSC$17486_requestUri_,W.JSC$17486_verb_,null,e));W.JSC$17484_channel_.notifyServerReachabilityEvent(1);
e=W.JSC$17484_channelDebug_;var t=W.JSC$17486_postData_;if(t){var b="";t=t.split("&");for(var m=0;m<t.length;m++){var q=t[m].split("=");if(q.length>1){var Q=q[0];q=q[1];var X=Q.split("_");b=X.length>=2&&X[1]=="type"?b+(Q+"="+q+"&"):b+(Q+"=redacted&")}}}else b=null;e.info("XMLHTTP REQ ("+W.JSC$17484_rid_+") [attempt "+W.JSC$17484_retryId_+"]: "+W.JSC$17486_verb_+"\n"+W.JSC$17486_requestUri_+"\n"+b)};
xT.prototype.JSC$17486_readyStateChangeHandler_=function(W){W=W.target;var e=this.JSC$17486_readyStateChangeThrottle_;e&&_.gu(W)==3?(this.JSC$17484_channelDebug_.debug("Throttling readystatechange."),e.fire()):this.JSC$17486_xmlHttpHandler_(W)};
xT.prototype.JSC$17486_xmlHttpHandler_=function(W){try{if(W==this.JSC$17486_xmlHttp_)a:{var e=_.gu(this.JSC$17486_xmlHttp_),t=this.JSC$17486_xmlHttp_.JSC$7842_lastErrorCode_,b=this.JSC$17486_xmlHttp_.getStatus();if(_.uI&&!_.cb("420+")){if(e<4)break a}else if(e<3||e==3&&!this.JSC$17486_xmlHttp_.getResponseText())break a;this.JSC$17486_cancelled_||e!=4||t==7||(t==8||b<=0?this.JSC$17484_channel_.notifyServerReachabilityEvent(3):this.JSC$17484_channel_.notifyServerReachabilityEvent(2));mGu(this);var m=
this.JSC$17486_xmlHttp_.getStatus();this.JSC$17486_lastStatusCode_=m;var q=this.JSC$17486_xmlHttp_.getResponseText();q||this.JSC$17484_channelDebug_.debug("No response text for uri "+this.JSC$17486_requestUri_+" status "+m);this.JSC$17486_successful_=m==200;this.JSC$17484_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17484_rid_+") [ attempt "+this.JSC$17484_retryId_+"]: "+this.JSC$17486_verb_+"\n"+this.JSC$17486_requestUri_+"\n"+e+" "+m);if(this.JSC$17486_successful_){e==4&&ON(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$17486_cancelled_&&this.JSC$17486_xmlHttpChunkStart_<q.length;){var Q=rBE(this,q);if(Q==d_Q){e==4&&(this.JSC$17486_lastError_=4,Jw(15),W=!1);MO(this.JSC$17484_channelDebug_,this.JSC$17484_rid_,null,"[Incomplete Response]");break}else if(Q==NLC){this.JSC$17486_lastError_=4;Jw(16);MO(this.JSC$17484_channelDebug_,this.JSC$17484_rid_,q,"[Invalid Chunk]");W=!1;break}else MO(this.JSC$17484_channelDebug_,this.JSC$17484_rid_,Q,null),qUg(this,Q)}e==4&&q.length==0&&(this.JSC$17486_lastError_=1,
Jw(17),W=!1);this.JSC$17486_successful_=this.JSC$17486_successful_&&W;W||(MO(this.JSC$17484_channelDebug_,this.JSC$17484_rid_,q,"[Invalid Chunked Response]"),ON(this),RDw(this))}else MO(this.JSC$17484_channelDebug_,this.JSC$17484_rid_,q,null),qUg(this,q);this.JSC$17486_successful_&&!this.JSC$17486_cancelled_&&(e==4?this.JSC$17484_channel_.JSC$17493_onRequestComplete(this):(this.JSC$17486_successful_=!1,bsC(this)))}else m==400&&q.indexOf("Unknown SID")>0?(this.JSC$17486_lastError_=3,Jw(13),this.JSC$17484_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17484_rid_+")")):(this.JSC$17486_lastError_=0,Jw(14),this.JSC$17484_channelDebug_.warning("XMLHTTP Bad status "+m+" ("+this.JSC$17484_rid_+")")),ON(this),RDw(this)}else this.JSC$17484_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(X){this.JSC$17484_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var rBE=function(W,e){var t=W.JSC$17486_xmlHttpChunkStart_,b=e.indexOf("\n",t);if(b==-1)return d_Q;t=Number(e.substring(t,b));if(isNaN(t))return NLC;b+=1;if(b+t>e.length)return d_Q;e=e.slice(b,b+t);W.JSC$17486_xmlHttpChunkStart_=b+t;return e};
xT.prototype.cancel=function(){this.JSC$17486_cancelled_=!0;ON(this)};
var bsC=function(W){W.JSC$17486_watchDogTimeoutTime_=Date.now()+W.timeout_;QZC(W,W.timeout_)},QZC=function(W,e){if(W.JSC$17486_watchDogTimerId_!=null)throw Error("xk");
W.JSC$17486_watchDogTimerId_=kj((0,_.p3)(W.JSC$17486_onWatchDogTimeout_,W),e)},mGu=function(W){W.JSC$17486_watchDogTimerId_&&(_.tz.clearTimeout(W.JSC$17486_watchDogTimerId_),W.JSC$17486_watchDogTimerId_=null)};
xT.prototype.JSC$17486_onWatchDogTimeout_=function(){this.JSC$17486_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17486_watchDogTimeoutTime_>=0?(this.JSC$17484_channelDebug_.info("TIMEOUT: "+this.JSC$17486_requestUri_),this.JSC$17486_type_!=2&&this.JSC$17484_channel_.notifyServerReachabilityEvent(3),ON(this),this.JSC$17486_lastError_=2,Jw(18),RDw(this)):(this.JSC$17484_channelDebug_.warning("WatchDog timer called too early"),QZC(this,this.JSC$17486_watchDogTimeoutTime_-W))};
var RDw=function(W){W.JSC$17484_channel_.JSC$17493_isClosed()||W.JSC$17486_cancelled_||W.JSC$17484_channel_.JSC$17493_onRequestComplete(W)},ON=function(W){mGu(W);
_.NL(W.JSC$17486_readyStateChangeThrottle_);W.JSC$17486_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$17484_eventHandler_.removeAll();if(W.JSC$17486_xmlHttp_){var e=W.JSC$17486_xmlHttp_;W.JSC$17486_xmlHttp_=null;e.abort();e.dispose()}W.trident_&&(W.trident_=null)};
xT.prototype.getLastError=function(){return this.JSC$17486_lastError_};
var qUg=function(W,e){try{W.JSC$17484_channel_.JSC$17493_onRequestData(W,e),W.JSC$17484_channel_.notifyServerReachabilityEvent(4)}catch(t){}};var MO=function(W,e,t,b){var m=W.info;a:if(t&&t!="y2f%"){try{var q=JSON.parse(t);if(q)for(var Q=0;Q<q.length;Q++)if(Array.isArray(q[Q])){var X=q[Q];if(!(X.length<2)){var I=X[1];if(Array.isArray(I)&&!(I.length<1)){var u=I[0];if(u!="noop"&&u!="stop")for(var c=1;c<I.length;c++)I[c]=""}}}var v=(0,_.nV)(q);break a}catch(D){W.debug("Exception parsing expected JS array - probably was not JS");v=t;break a}v=void 0}else v=t;m.call(W,"XMLHTTP TEXT ("+e+"): "+v+(b?" "+b:""))};
pW.prototype.debug=function(W){this.info(W)};
pW.prototype.info=function(){};
pW.prototype.warning=function(){};var FK$=function(W,e){this.JSC$17491_channel_=W;this.JSC$17491_channelDebug_=e;this.JSC$17491_parser_=new DO};
_.r=FK$.prototype;_.r.JSC$17493_extraHeaders_=null;_.r.JSC$17493_request_=null;_.r.receivedIntermediateResult_=!1;_.r.JSC$17493_path_=null;_.r.state_=null;_.r.JSC$17493_lastStatusCode_=-1;_.r.JSC$17493_hostPrefix_=null;_.r.blockedPrefix_=null;
_.r.connect=function(W){this.JSC$17493_path_=W;W=XQg(this.JSC$17491_channel_,this.JSC$17493_path_);Jw(3);Date.now();var e=this.JSC$17491_channel_.firstTestResults_;e!=null?(this.JSC$17493_hostPrefix_=e[0],(this.blockedPrefix_=e[1])?(this.state_=1,IcS(this)):(this.state_=2,ac$(this))):(qC(W,"MODE","init"),this.JSC$17493_request_=new xT(this,this.JSC$17491_channelDebug_),this.JSC$17493_request_.JSC$17486_extraHeaders_=this.JSC$17493_extraHeaders_,tA$(this.JSC$17493_request_,W,!1,null,!0),this.state_=
0)};
var IcS=function(W){var e=wQE(W.JSC$17491_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.FH(e);H1$(e.toString(),5E3,(0,_.p3)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
FK$.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,ac$(this);else{Jw(4);var e=this.JSC$17491_channel_;e.JSC$17494_channelDebug_.debug("Test Connection Blocked");e.JSC$17498_lastStatusCode_=e.connectionTest_.JSC$17493_lastStatusCode_;sN(e,9)}W&&this.notifyServerReachabilityEvent(2)};
var ac$=function(W){W.JSC$17491_channelDebug_.debug("TestConnection: starting stage 2");var e=W.JSC$17491_channel_.secondTestResults_;e!=null?(W.JSC$17491_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+e?"Buffered":"Unbuffered"),Jw(5),e?(Jw(11),hw(W.JSC$17491_channel_,W,!1)):(Jw(12),hw(W.JSC$17491_channel_,W,!0))):(W.JSC$17493_request_=new xT(W,W.JSC$17491_channelDebug_),W.JSC$17493_request_.JSC$17486_extraHeaders_=W.JSC$17493_extraHeaders_,e=uIC(W.JSC$17491_channel_,
W.JSC$17493_hostPrefix_,W.JSC$17493_path_),Jw(5),qC(e,"TYPE","xmlhttp"),tA$(W.JSC$17493_request_,e,!1,W.JSC$17493_hostPrefix_,!1))};
_.r=FK$.prototype;_.r.JSC$17493_createXhrIo=function(W){return this.JSC$17491_channel_.JSC$17493_createXhrIo(W)};
_.r.abort=function(){this.JSC$17493_request_&&(this.JSC$17493_request_.cancel(),this.JSC$17493_request_=null);this.JSC$17493_lastStatusCode_=-1};
_.r.JSC$17493_isClosed=function(){return!1};
_.r.JSC$17493_onRequestData=function(W,e){this.JSC$17493_lastStatusCode_=W.JSC$17486_lastStatusCode_;if(this.state_==0)if(this.JSC$17491_channelDebug_.debug("TestConnection: Got data for stage 1"),e){try{var t=this.JSC$17491_parser_.parse(e)}catch(b){cB9(this.JSC$17491_channel_,this);return}this.JSC$17493_hostPrefix_=t[0];this.blockedPrefix_=t[1]}else this.JSC$17491_channelDebug_.debug("TestConnection: Null responseText"),cB9(this.JSC$17491_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Jw(7),Date.now()):e=="11111"?(Jw(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17493_lastStatusCode_=200,this.JSC$17493_request_.cancel(),this.JSC$17491_channelDebug_.debug("Test connection succeeded; using streaming connection"),Jw(12),hw(this.JSC$17491_channel_,this,!0)):(Jw(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.r.JSC$17493_onRequestComplete=function(){this.JSC$17493_lastStatusCode_=this.JSC$17493_request_.JSC$17486_lastStatusCode_;this.JSC$17493_request_.JSC$17486_successful_?this.state_==0?(this.JSC$17491_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,IcS(this)):(this.state_=2,ac$(this))):this.state_==2&&(this.JSC$17491_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17491_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Jw(12),hw(this.JSC$17491_channel_,this,!0)):(this.JSC$17491_channelDebug_.debug("Test connection failed; not using streaming"),Jw(11),hw(this.JSC$17491_channel_,this,!1))):(this.JSC$17491_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Jw(9):this.state_==2&&Jw(10),cB9(this.JSC$17491_channel_,this,this.JSC$17493_request_.getLastError()))};
_.r.JSC$17493_shouldUseSecondaryDomains=function(){return this.JSC$17491_channel_.JSC$17493_shouldUseSecondaryDomains()};
_.r.isActive=function(){return this.JSC$17491_channel_.isActive()};
_.r.notifyServerReachabilityEvent=function(W){this.JSC$17491_channel_.notifyServerReachabilityEvent(W)};var Ht=function(W,e,t){this.state_=1;this.JSC$17494_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17494_channelDebug_=new pW;this.JSC$17494_parser_=new DO;this.firstTestResults_=W||null;this.secondTestResults_=e!=null?e:null;this.asyncTest_=t||!1},vFQ=function(W,e){this.JSC$17496_mapId=W;
this.map=e;this.context=null};
_.r=Ht.prototype;_.r.JSC$17498_extraHeaders_=null;_.r.JSC$17498_extraParams_=null;_.r.forwardChannelRequest_=null;_.r.JSC$17498_backChannelRequest_=null;_.r.JSC$17498_path_=null;_.r.JSC$17498_forwardChannelUri_=null;_.r.JSC$17498_backChannelUri_=null;_.r.JSC$17498_hostPrefix_=null;_.r.JSC$17498_nextRid_=0;_.r.JSC$17498_nextMapId_=0;_.r.handler_=null;_.r.JSC$17498_forwardChannelTimerId_=null;_.r.JSC$17498_backChannelTimerId_=null;_.r.JSC$17498_deadBackChannelTimerId_=null;_.r.connectionTest_=null;
_.r.useChunked_=null;_.r.JSC$17498_lastArrayId_=-1;_.r.JSC$17498_lastPostResponseArrayId_=-1;_.r.JSC$17498_lastStatusCode_=-1;_.r.JSC$17498_forwardChannelRetryCount_=0;_.r.JSC$17498_backChannelRetryCount_=0;_.r.JSC$17498_channelVersion_=8;var Gh9={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},DGU=function(W,e,t,b){_.DY.call(this,"timingevent",W);this.size=e;this.rtt=t;this.retries=b};
_.QP(DGU,_.DY);var SU$=function(W){_.DY.call(this,"serverreachability",W)};
_.QP(SU$,_.DY);Ht.prototype.connect=function(W,e,t,b,m){this.JSC$17494_channelDebug_.debug("connect()");Jw(0);this.JSC$17498_path_=e;this.JSC$17498_extraParams_=t||{};b&&m!==void 0&&(this.JSC$17498_extraParams_.OSID=b,this.JSC$17498_extraParams_.OAID=m);this.asyncTest_?(kj((0,_.p3)(this.connectTest_,this,W),100),BJC(this)):this.connectTest_(W)};
Ht.prototype.disconnect=function(){this.JSC$17494_channelDebug_.debug("disconnect()");oFu(this);if(this.state_==3){var W=this.JSC$17498_nextRid_++,e=this.JSC$17498_forwardChannelUri_.clone();_.UJ(e,"SID",this.sid_);_.UJ(e,"RID",W);_.UJ(e,"TYPE","terminate");Kq(this,e);W=new xT(this,this.JSC$17494_channelDebug_,this.sid_,W);W.JSC$17486_type_=2;W.JSC$17486_baseUri_=_.FH(e.clone());(new Image).src=W.JSC$17486_baseUri_.toString();W.JSC$17486_requestStartTime_=Date.now();bsC(W)}lcE(this)};
Ht.prototype.connectTest_=function(W){this.JSC$17494_channelDebug_.debug("connectTest_()");this.connectionTest_=new FK$(this,this.JSC$17494_channelDebug_);this.connectionTest_.JSC$17493_extraHeaders_=this.JSC$17498_extraHeaders_;this.connectionTest_.JSC$17491_parser_=this.JSC$17494_parser_;this.connectionTest_.connect(W)};
var BJC=function(W){W.JSC$17494_channelDebug_.debug("connectChannel_()");W.JSC$17498_ensureInState_(1,0);W.JSC$17498_forwardChannelUri_=XQg(W,W.JSC$17498_path_);ZsE(W)},oFu=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$17498_backChannelRequest_&&(W.JSC$17498_backChannelRequest_.cancel(),W.JSC$17498_backChannelRequest_=null);W.JSC$17498_backChannelTimerId_&&(_.tz.clearTimeout(W.JSC$17498_backChannelTimerId_),W.JSC$17498_backChannelTimerId_=null);$GM(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$17498_forwardChannelTimerId_&&(_.tz.clearTimeout(W.JSC$17498_forwardChannelTimerId_),W.JSC$17498_forwardChannelTimerId_=null)},khU=function(W,e){if(W.state_==0)throw Error("Ak");
W.JSC$17494_outgoingMaps_.length==1E3&&W.JSC$17494_parser_.stringify(e);W.JSC$17494_outgoingMaps_.push(new vFQ(W.JSC$17498_nextMapId_++,e));W.state_!=2&&W.state_!=3||ZsE(W)};
Ht.prototype.JSC$17493_isClosed=function(){return this.state_==0};
Ht.prototype.getState=function(){return this.state_};
var ZsE=function(W){W.forwardChannelRequest_||W.JSC$17498_forwardChannelTimerId_||(W.JSC$17498_forwardChannelTimerId_=kj((0,_.p3)(W.JSC$17498_onStartForwardChannelTimer_,W),0),W.JSC$17498_forwardChannelRetryCount_=0)};
Ht.prototype.JSC$17498_onStartForwardChannelTimer_=function(W){this.JSC$17498_forwardChannelTimerId_=null;pQw(this,W)};
var pQw=function(W,e){W.JSC$17494_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!e){W.JSC$17494_channelDebug_.debug("open_()");W.JSC$17498_nextRid_=Math.floor(Math.random()*1E5);e=W.JSC$17498_nextRid_++;var t=new xT(W,W.JSC$17494_channelDebug_,"",e);t.JSC$17486_extraHeaders_=W.JSC$17498_extraHeaders_;var b=yBw(W),m=W.JSC$17498_forwardChannelUri_.clone();_.UJ(m,"RID",e);_.UJ(m,"CVER","1");Kq(W,m);eD1(t,m,b);W.forwardChannelRequest_=t;W.state_=2}}else W.state_==3&&(e?jZw(W,e):W.JSC$17494_outgoingMaps_.length==
0?W.JSC$17494_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||(jZw(W),W.JSC$17494_channelDebug_.debug("startForwardChannel_ finished, sent request")))},jZw=function(W,e){if(e)if(W.JSC$17498_channelVersion_>6){W.JSC$17494_outgoingMaps_=W.pendingMaps_.concat(W.JSC$17494_outgoingMaps_);
W.pendingMaps_.length=0;var t=W.JSC$17498_nextRid_-1;e=yBw(W)}else t=e.JSC$17484_rid_,e=e.JSC$17486_postData_;else t=W.JSC$17498_nextRid_++,e=yBw(W);var b=W.JSC$17498_forwardChannelUri_.clone();_.UJ(b,"SID",W.sid_);_.UJ(b,"RID",t);_.UJ(b,"AID",W.JSC$17498_lastArrayId_);Kq(W,b);t=new xT(W,W.JSC$17494_channelDebug_,W.sid_,t,W.JSC$17498_forwardChannelRetryCount_+1);t.JSC$17486_extraHeaders_=W.JSC$17498_extraHeaders_;t.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=t;eD1(t,b,e)},
Kq=function(W,e){W.handler_&&(W=W.handler_.JSC$17505_getAdditionalParams())&&_.kJ.forEach(W,function(t,b){_.UJ(e,b,t)})},yBw=function(W){var e=Math.min(W.JSC$17494_outgoingMaps_.length,1E3),t=["count="+e];
if(W.JSC$17498_channelVersion_>6&&e>0){var b=W.JSC$17494_outgoingMaps_[0].JSC$17496_mapId;t.push("ofs="+b)}else b=0;for(var m={},q=0;q<e;m={mapId$jscomp$3:void 0},q++){m.mapId$jscomp$3=W.JSC$17494_outgoingMaps_[q].JSC$17496_mapId;var Q=W.JSC$17494_outgoingMaps_[q].map;m.mapId$jscomp$3=W.JSC$17498_channelVersion_<=6?q:m.mapId$jscomp$3-b;try{_.kJ.forEach(Q,function(X){return function(I,u){t.push("req"+X.mapId$jscomp$3+"_"+u+"="+encodeURIComponent(I))}}(m))}catch(X){t.push("req"+m.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$17494_outgoingMaps_.splice(0,e));
return t.join("&")},CSw=function(W){W.JSC$17498_backChannelRequest_||W.JSC$17498_backChannelTimerId_||(W.JSC$17498_backChannelAttemptId_=1,W.JSC$17498_backChannelTimerId_=kj((0,_.p3)(W.JSC$17498_onStartBackChannelTimer_,W),0),W.JSC$17498_backChannelRetryCount_=0)},fcC=function(W){if(W.JSC$17498_backChannelRequest_||W.JSC$17498_backChannelTimerId_||W.JSC$17498_backChannelRetryCount_>=3)return!1;
W.JSC$17494_channelDebug_.debug("Going to retry GET");W.JSC$17498_backChannelAttemptId_++;W.JSC$17498_backChannelTimerId_=kj((0,_.p3)(W.JSC$17498_onStartBackChannelTimer_,W),nFU(W,W.JSC$17498_backChannelRetryCount_));W.JSC$17498_backChannelRetryCount_++;return!0};
Ht.prototype.JSC$17498_onStartBackChannelTimer_=function(){this.JSC$17498_backChannelTimerId_=null;this.JSC$17494_channelDebug_.debug("Creating new HttpRequest");this.JSC$17498_backChannelRequest_=new xT(this,this.JSC$17494_channelDebug_,this.sid_,"rpc",this.JSC$17498_backChannelAttemptId_);this.JSC$17498_backChannelRequest_.JSC$17486_extraHeaders_=this.JSC$17498_extraHeaders_;this.JSC$17498_backChannelRequest_.JSC$17486_readyStateChangeThrottleMs_=0;var W=this.JSC$17498_backChannelUri_.clone();_.UJ(W,
"RID","rpc");_.UJ(W,"SID",this.sid_);_.UJ(W,"CI",this.useChunked_?"0":"1");_.UJ(W,"AID",this.JSC$17498_lastArrayId_);Kq(this,W);_.UJ(W,"TYPE","xmlhttp");tA$(this.JSC$17498_backChannelRequest_,W,!0,this.JSC$17498_hostPrefix_,!1);this.JSC$17494_channelDebug_.debug("New Request created")};
var hw=function(W,e,t){W.JSC$17494_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?t:!W.secondTestResults_;W.JSC$17498_lastStatusCode_=e.JSC$17493_lastStatusCode_;W.asyncTest_||BJC(W)},cB9=function(W,e){W.JSC$17494_channelDebug_.debug("Test Connection Failed");
W.JSC$17498_lastStatusCode_=e.JSC$17493_lastStatusCode_;sN(W,2)};
Ht.prototype.JSC$17493_onRequestData=function(W,e){if(this.state_!=0&&(this.JSC$17498_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$17498_lastStatusCode_=W.JSC$17486_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$17498_channelVersion_>7){try{var t=this.JSC$17494_parser_.parse(e)}catch(b){t=null}if(Array.isArray(t)&&t.length==3)if(e=t,e[0]==0)a:if(this.JSC$17494_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17498_backChannelTimerId_)this.JSC$17494_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17498_backChannelRequest_)if(this.JSC$17498_backChannelRequest_.JSC$17486_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17486_requestStartTime_)$GM(this),this.JSC$17498_backChannelRequest_.cancel(),this.JSC$17498_backChannelRequest_=null;else break a;else this.JSC$17494_channelDebug_.warning("We do not have a BackChannel established");fcC(this);Jw(19)}else this.JSC$17498_lastPostResponseArrayId_=e[1],W=this.JSC$17498_lastPostResponseArrayId_-this.JSC$17498_lastArrayId_,0<
W&&(e=e[2],this.JSC$17494_channelDebug_.debug(e+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),e<37500&&this.useChunked_&&this.JSC$17498_backChannelRetryCount_==0&&!this.JSC$17498_deadBackChannelTimerId_&&(this.JSC$17498_deadBackChannelTimerId_=kj((0,_.p3)(this.JSC$17498_onBackChannelDead_,this),6E3)));else this.JSC$17494_channelDebug_.debug("Bad POST response data returned"),sN(this,11)}else e!="y2f%"&&(this.JSC$17494_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
sN(this,11));else this.JSC$17498_backChannelRequest_==W&&$GM(this),_.QK(e)||(W=this.JSC$17494_parser_.parse(e),this.onInput_(W))};
Ht.prototype.JSC$17498_onBackChannelDead_=function(){this.JSC$17498_deadBackChannelTimerId_!=null&&(this.JSC$17498_deadBackChannelTimerId_=null,this.JSC$17498_backChannelRequest_.cancel(),this.JSC$17498_backChannelRequest_=null,fcC(this),Jw(20))};
var $GM=function(W){W.JSC$17498_deadBackChannelTimerId_!=null&&(_.tz.clearTimeout(W.JSC$17498_deadBackChannelTimerId_),W.JSC$17498_deadBackChannelTimerId_=null)};
Ht.prototype.JSC$17493_onRequestComplete=function(W){this.JSC$17494_channelDebug_.debug("Request complete");if(this.JSC$17498_backChannelRequest_==W){$GM(this);this.JSC$17498_backChannelRequest_=null;var e=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,e=1;else return;this.JSC$17498_lastStatusCode_=W.JSC$17486_lastStatusCode_;if(this.state_!=0)if(W.JSC$17486_successful_)if(e==1){e=W.JSC$17486_postData_?W.JSC$17486_postData_.length:0;W=Date.now()-W.JSC$17486_requestStartTime_;
var t=LmQ;t.dispatchEvent(new DGU(t,e,W,this.JSC$17498_forwardChannelRetryCount_));ZsE(this);this.handler_&&this.handler_.JSC$17505_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else CSw(this);else{t=W.getLastError();if(t==3||t==7||t==0&&this.JSC$17498_lastStatusCode_>0)this.JSC$17494_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17494_channelDebug_.debug("Maybe retrying, last error: "+AqM(t,this.JSC$17498_lastStatusCode_));var b;if(b=e==1)this.forwardChannelRequest_||
this.JSC$17498_forwardChannelTimerId_||this.state_==1||this.JSC$17498_forwardChannelRetryCount_>=2?b=!1:(this.JSC$17494_channelDebug_.debug("Going to retry POST"),this.JSC$17498_forwardChannelTimerId_=kj((0,_.p3)(this.JSC$17498_onStartForwardChannelTimer_,this,W),nFU(this,this.JSC$17498_forwardChannelRetryCount_)),this.JSC$17498_forwardChannelRetryCount_++,b=!0);if(b||e==2&&fcC(this))return;this.JSC$17494_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17494_channelDebug_.debug("Error: HTTP request failed");
switch(t){case 1:sN(this,5);break;case 4:sN(this,10);break;case 3:sN(this,6);break;case 7:sN(this,12);break;default:sN(this,2)}}};
var nFU=function(W,e){var t=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$17494_channelDebug_.debug("Inactive channel"),t*=2);return t*e};
Ht.prototype.onInput_=function(W){for(var e=0;e<W.length;e++){var t=W[e];this.JSC$17498_lastArrayId_=t[0];t=t[1];this.state_==2?t[0]=="c"?(this.sid_=t[1],this.JSC$17498_hostPrefix_=t[2],t=t[3],t!=null?this.JSC$17498_channelVersion_=t:this.JSC$17498_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17505_channelOpened(),this.JSC$17498_backChannelUri_=uIC(this,this.JSC$17498_hostPrefix_,this.JSC$17498_path_),CSw(this)):t[0]=="stop"&&sN(this,7):this.state_==3&&(t[0]=="stop"?sN(this,7):
t[0]!="noop"&&this.handler_&&this.handler_.JSC$17505_channelHandleArray(t),this.JSC$17498_backChannelRetryCount_=0)}};
Ht.prototype.JSC$17498_ensureInState_=function(W){if(!_.PZ(arguments,this.state_))throw Error("Bk`"+this.state_);};
var sN=function(W,e){W.JSC$17494_channelDebug_.info("Error code "+e);if(e==2||e==9){var t=null;W.handler_&&(t=null);var b=(0,_.p3)(W.testGoogleComCallback_,W);t||(t=new _.UT("//www.google.com/images/cleardot.gif"),_.FH(t));hrl(t.toString(),1E4,b)}else Jw(2);W.onError_(e)};
Ht.prototype.testGoogleComCallback_=function(W){W?(this.JSC$17494_channelDebug_.info("Successfully pinged google.com"),Jw(2)):(this.JSC$17494_channelDebug_.info("Failed to ping google.com"),Jw(1),this.onError_(8))};
Ht.prototype.onError_=function(W){this.JSC$17494_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17505_channelError(W);lcE(this);oFu(this)};
var lcE=function(W){W.state_=0;W.JSC$17498_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$17494_outgoingMaps_.length==0)W.handler_.JSC$17505_channelClosed();else{W.JSC$17494_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$17494_outgoingMaps_.length);var e=_.EL(W.pendingMaps_),t=_.EL(W.JSC$17494_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$17494_outgoingMaps_.length=0;W.handler_.JSC$17505_channelClosed(e,t)}},XQg=function(W,
e){e=wQE(W,null,e);
W.JSC$17494_channelDebug_.debug("GetForwardChannelUri: "+e);return e},uIC=function(W,e,t){e=wQE(W,W.JSC$17493_shouldUseSecondaryDomains()?e:null,t);
W.JSC$17494_channelDebug_.debug("GetBackChannelUri: "+e);return e},wQE=function(W,e,t){var b=_.Ya(t);
if(b.JSC$8077_domain_!="")e&&_.eo(b,e+"."+b.JSC$8077_domain_),_.tF(b,b.JSC$8077_port_);else{var m=window.location;b=WMu(m.protocol,e?e+"."+m.hostname:m.hostname,+m.port,t)}W.JSC$17498_extraParams_&&_.kJ.forEach(W.JSC$17498_extraParams_,function(q,Q){_.UJ(b,Q,q)});
_.UJ(b,"VER",W.JSC$17498_channelVersion_);Kq(W,b);return b};
Ht.prototype.JSC$17493_createXhrIo=function(W){if(W)throw Error("yk");W=new _.fV;W.JSC$7842_withCredentials_=!1;return W};
Ht.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Ht.prototype.notifyServerReachabilityEvent=function(W){var e=LmQ;e.dispatchEvent(new SU$(e,W))};
Ht.prototype.JSC$17493_shouldUseSecondaryDomains=function(){return!1};
new qZC;var gFM=function(){};
_.r=gFM.prototype;_.r.JSC$17505_channelOpened=function(){};
_.r.JSC$17505_channelHandleArray=function(){};
_.r.JSC$17505_channelSuccess=function(){};
_.r.JSC$17505_channelError=function(){};
_.r.JSC$17505_channelClosed=function(){};
_.r.JSC$17505_getAdditionalParams=function(){return{}};
_.r.isActive=function(){return!0};var TJ1=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.r=PUS.prototype;_.r.enqueue=function(W){this.back_.push(W)};
_.r.peek=function(){TJ1(this);return _.OL(this.front_)};
_.r.getCount=function(){return this.front_.length+this.back_.length};
_.r.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.r.clear=function(){this.front_=[];this.back_=[]};
_.r.contains=function(W){return _.PZ(this.front_,W)||_.PZ(this.back_,W)};
_.r.remove=function(W){var e=this.front_;var t=Array.prototype.lastIndexOf.call(e,W,e.length-1);t>=0?(_.zS(e,t),e=!0):e=!1;return e||_.UL(this.back_,W)};
_.r.getValues=function(){for(var W=[],e=this.front_.length-1;e>=0;--e)W.push(this.front_[e]);e=this.back_.length;for(var t=0;t<e;++t)W.push(this.back_[t]);return W};var Pt=function(W){this.JSC$17509_map_=new _.X8;this.size=0;W&&this.addAll(W)},JBC=function(W){var e=typeof W;
return e=="object"&&W||e=="function"?"o"+_.bh(W):e.charAt(0)+W};
_.r=Pt.prototype;_.r.getCount=function(){return this.JSC$17509_map_.size};
_.r.add=function(W){this.JSC$17509_map_.set(JBC(W),W);this.size=this.JSC$17509_map_.size};
_.r.addAll=function(W){W=_.du(W);for(var e=W.length,t=0;t<e;t++)this.add(W[t]);this.size=this.JSC$17509_map_.size};
_.r.removeAll=function(W){W=_.du(W);for(var e=W.length,t=0;t<e;t++)this.remove(W[t]);this.size=this.JSC$17509_map_.size};
_.r.delete=function(W){W=this.JSC$17509_map_.remove(JBC(W));this.size=this.JSC$17509_map_.size;return W};
_.r.remove=function(W){return this.delete(W)};
_.r.clear=function(){this.JSC$17509_map_.clear();this.size=0};
_.r.isEmpty=function(){return this.JSC$17509_map_.size===0};
_.r.has=function(W){return this.JSC$17509_map_.containsKey(JBC(W))};
_.r.contains=function(W){return this.JSC$17509_map_.containsKey(JBC(W))};
_.r.getValues=function(){return this.JSC$17509_map_.getValues()};
_.r.values=function(){return this.JSC$17509_map_.values()};
_.r.clone=function(){return new Pt(this)};
_.r.equals=function(W){return this.getCount()==NAl(W)&&xGw(this,W)};
var xGw=function(W,e){var t=NAl(e);if(W.getCount()>t)return!1;!(e instanceof Pt)&&t>5&&(e=new Pt(e));return dkC(W,function(b){var m=e;return m.contains&&typeof m.contains=="function"?m.contains(b):m.containsValue&&typeof m.containsValue=="function"?m.containsValue(b):_.Ns(m)||typeof m==="string"?_.PZ(m,b):_.kJ.containsValue(m,b)})};
Pt.prototype.__iterator__=function(){return this.JSC$17509_map_.__iterator__(!1)};
Pt.prototype[Symbol.iterator]=function(){return this.values()};var OsS={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var MAQ;var sZg;_.yQ({_template:function(){if(sZg!==void 0)return sZg;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;MAQ===void 0&&(MAQ=document.createElement("template"));var b=MAQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return sZg=W},
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(){_.Uc(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(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var e=W.detail.dx+this._translateOffset,t=this.getWidth();e=this.position==="left"?e>=0||e<=-t:e<=0||e>=t;if(!e){var b=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,b);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}t/=2;W.detail.dx<-t?this.opened=this.position==="right":W.detail.dx>t&&(this.opened=this.position==="left");e?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,e){for(var t=Date.now(),b=t-100,m,q=0,Q=e.length-1;q<=Q;){var X=q+Q>>1,I=e[X];I.timeStamp>=b?(m=I,Q=X-1):q=X+1}return m?(W.detail.dx-m.dx)/(t-m.timeStamp||1):0},
_flingDrawer:function(W,e){e=this._calculateVelocity(W,e);if(!(Math.abs(e)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var t=this.getWidth(),b=this.position==="left",m=e>0;m?(e=Math.max(e,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(e=Math.min(e,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");e=this._FLING_INITIAL_SLOPE*(!m&&b?-(W+t):m&&!b?t-W:-W)/e;this._styleTransitionDuration(e);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,e)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var e=this.getWidth();this.position==="left"?(W=Math.max(-e,Math.min(W,0)),this.$.scrim.style.opacity=1+W/e):(W=Math.max(0,Math.min(W,e)),this.$.scrim.style.opacity=1-W/e);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.ZZ(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.ZZ(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.ZZ(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,e){this.toggleClass("visible",W&&!e,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var hDM;var HsC;_.yQ({_template:function(){if(HsC!==void 0)return HsC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;hDM===void 0&&(hDM=document.createElement("template"));var b=hDM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return HsC=W},
is:"tp-yt-paper-progress",behaviors:[OsS],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,e){W.style.transform=W.style.webkitTransform="scaleX("+e/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,e,t,b,m){W=this._clampValue(W);e=this._clampValue(e);var q=this._calcRatio(W)*100,Q=this._calcRatio(e)*100;this._setSecondaryRatio(q);this._transformProgress(this.$.secondaryProgress,q);this._transformProgress(this.$.primaryProgress,Q);this.secondaryProgress=W;m?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",e);this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",b)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var KKC;var PSl;var VAU=function(){};
_.r=VAU.prototype;_.r.registered=function(){};
_.r.addOwnKeyBinding=function(){};
_.r.removeOwnKeyBindings=function(){};
_.r.keyboardEventMatchesKeys=function(){};
_.r._collectKeyBindings=function(){};
_.r._prepKeyBindings=function(){};
_.r._addKeyBinding=function(){};
_.r._resetKeyEventListeners=function(){};
_.r._listenKeyEventListeners=function(){};
_.r._unlistenKeyEventListeners=function(){};
_.r._onKeyBindingEvent=function(){};
_.r._triggerKeyHandler=function(){};
_.r._tapHandler=function(){};
_.r._focusChanged=function(){};
_.r._detectKeyboardFocus=function(){};
_.r._userActivate=function(){};
_.r._upHandler=function(){};
_.r._spaceKeyDownHandler=function(){};
_.r._spaceKeyUpHandler=function(){};
_.r._asyncClick=function(){};
_.r._pressedChanged=function(){};
_.r._ariaActiveAttributeChanged=function(){};
_.r._activeChanged=function(){};
_.r._controlStateChanged=function(){};
_.r._changedButtonState=function(){};
_.r._focusBlurHandler=function(){};
_.r._disabledChanged=function(){};
_.r._changedControlState=function(){};
_.r._buttonStateChanged=function(){};
_.r._downHandler=function(){};
_.r.ensureRipple=function(){};
_.r.getRipple=function(){};
_.r.hasRipple=function(){};
_.r._noinkChanged=function(){};
_.r._calcRatio=function(){};
_.r._clampValue=function(){};
_.r._calcStep=function(){};
_.r._validateValue=function(){};
_.r._update=function(){};
_.r._setImmediateValue=function(){};
_.r._setExpand=function(){};
_.r._setDragging=function(){};
_.r._setTransiting=function(){};
_.r._setMarkers=function(){};
_.r._setPressed=function(){};
_.r._setPointerDown=function(){};
_.r._setReceivedFocusFromKeyboard=function(){};
_.r._setFocused=function(){};
_.r._setRatio=function(){};
VAU=_.yQ({_template:function(){if(PSl!==void 0)return PSl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;KKC===void 0&&(KKC=document.createElement("template"));var b=KKC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return PSl=W},
is:"tp-yt-paper-slider",behaviors:[_.ZJ,_.y6,_.dAb,OsS],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&&_.f1(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(W,e,t){this.setAttribute("aria-valuemin",e);this.setAttribute("aria-valuemax",t);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var e=this.$.sliderBar.getBoundingClientRect();e=(W.detail.x-e.left)/this._w*100;this._isRTL&&(e=100-e);var t=this.ratio;this._setTransiting(!0);this._positionKnob(e);t===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,e,t,b){b||this._setMarkers([]);e=Math.round((t-e)/this.step);e>W&&(e=W);if(e<0||!isFinite(e))e=0;this._setMarkers(Array(e))},
_mergeClasses:function(W){return Object.keys(W).filter(function(e){return W[e]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Nde._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var isu;var YUw;var V0=null,zDu=function(){};
_.r=zDu.prototype;_.r.fit=function(){};
_.r._discoverInfo=function(){};
_.r.resetFit=function(){};
_.r.refit=function(){};
_.r.position=function(){};
_.r.constrain=function(){};
_.r._sizeDimension=function(){};
_.r.__sizeDimension=function(){};
_.r.center=function(){};
_.r.__getNormalizedRect=function(){};
_.r.__getOffscreenArea=function(){};
_.r.__getPosition=function(){};
_.r.notifyResize=function(){};
_.r.assignParentResizable=function(){};
_.r.stopResizeNotificationsFor=function(){};
_.r._subscribeIronResize=function(){};
_.r._unsubscribeIronResize=function(){};
_.r.resizerShouldNotify=function(){};
_.r._onDescendantIronResize=function(){};
_.r._fireResize=function(){};
_.r._onIronRequestResizeNotifications=function(){};
_.r._parentResizableChanged=function(){};
_.r._notifyDescendant=function(){};
_.r._requestResizeNotifications=function(){};
_.r._findParent=function(){};
_.r.toggle=function(){};
_.r.open=function(){};
_.r.close=function(){};
_.r.cancel=function(){};
_.r.invalidateTabbables=function(){};
_.r._ensureSetup=function(){};
_.r._canceledChanged=function(){};
_.r._withBackdropChanged=function(){};
_.r._prepareRenderOpened=function(){};
_.r._finishRenderOpened=function(){};
_.r._finishRenderClosed=function(){};
_.r._preparePositioning=function(){};
_.r._finishPositioning=function(){};
_.r._applyFocus=function(){};
_.r._onCaptureClick=function(){};
_.r._onCaptureFocus=function(){};
_.r._onCaptureEsc=function(){};
_.r._onCaptureTab=function(){};
_.r._onIronResize=function(){};
_.r._onNodesChange=function(){};
_.r.__ensureFirstLastFocusables=function(){};
_.r.__openedChanged=function(){};
_.r.__deraf=function(){};
_.r.__updateScrollObservers=function(){};
_.r.__addScrollListeners=function(){};
_.r.__removeScrollListeners=function(){};
_.r.__isValidScrollAction=function(){};
_.r.__onCaptureScroll=function(){};
_.r.__saveScrollPosition=function(){};
_.r.__restoreScrollPosition=function(){};
_.r._setCanceled=function(){};
zDu=_.yQ({_template:function(){if(YUw!==void 0)return YUw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;isu===void 0&&(isu=document.createElement("template"));var b=isu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);return YUw=W},
is:"tp-yt-paper-toast",behaviors:[_.z0],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(){_.Zc._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Kx.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var e in W)e.indexOf("_")===0?_.Zc._warn('The property "'+e+'" is private and was not set.'):e in this?this[e]=W[e]:_.Zc._warn('The property "'+e+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(V0&&V0!==this&&V0.close(),V0=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):V0===this&&(V0=null);_.YG._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var UG$=new _.z("disablePersonalizationAction");var OBQ=new _.z("showDmaConsentFlowCommand");var Mf9=new _.z("showMmgNoticeCommand");var LKT=new _.z("saveConsentAction");var EF1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.qS(W)};
_.Z(EF1,_.Ow);var AB1=_.W7(EF1);var NJS=new _.z("updateTopbarAvatarAction");var dGC=new _.z("channelHandleValidationResultRenderer");var WWE=new _.z("generateHandleFromNameResultRenderer");var e9C=new _.z("channelHandleInputRenderer");var t3$=new _.z("copyLinkRenderer");var bxU=new _.z("timedCommand");var mUB=new _.z("clearCookieAction");var rX$=new _.z("getMultiPageMenuAction");var q4E=new _.z("addToGuideSectionAction"),R9C=new _.z("removeFromGuideSectionAction");var QUu=new _.z("updateNotificationsUnseenCountAction");var FWu=new _.z("resetChannelUnreadCountCommand");var XMS=new _.z("resetSubscriptionsUnreadDotCommand");var IJT=new _.z("selectLanguageCommand");var NOl=new _.z("sendFeedbackAction");var aJB=new _.z("uploadImageToScottyCommand");var wMU=new _.z("registerPromoCommand");var u81=new _.z("setPushNotificationsEnabledCommand");var cX$=new _.z("desktopTopbarRenderer");var vGT=new _.z("surveyFollowUpRenderer");var G0w=new _.z("handlesClaimingRadioOptionRenderer");var DUS=new _.z("hotkeyDialogRenderer");var S4$=new _.z("modifyReportFormCommand");var Bfl=new _.z("accountLinkCommand");var oGB=new _.z("accountUnlinkCommand");var lJl=new _.z("logAccountLinkingEventCommand");var Zxw=new _.z("guideCollapsibleEntryRenderer");var $UQ=new _.z("guideDownloadsEntryRenderer");var ii=new _.z("guideEntryRenderer");var k0w=new _.z("getLocationCommand");var pMg=new _.z("locationCollectionCommand");var yXQ=new _.z("storiesItemViewModel");var jUT=new _.z("addToRemoteQueueAction");var C$B=new _.z("insertInRemoteQueueAction");var nGU=new _.z("removeFromRemoteQueueAction");var fJT=new _.z("notificationRenderer");var oQl=new _.z("localWatchHistoryCommand");var gGE=new _.z("pdgBuyFlowHeaderRenderer");var Tf$=new _.z("pdgColorSliderRenderer");var JXU=new _.z("pdgCommentOptionRenderer");var xUw=new _.z("pdgCommentPreviewRenderer");var Ox1=new _.z("superVodSelectableItemButtonRenderer");var M3g=new _.z("switchButtonRenderer");var sUU=new _.z("upsellDialogRenderer");var h9l=new _.z("feedbackQuestionRenderer"),HxE=new _.z("feedbackOptionRenderer");var KWT=new _.z("sponsorshipsTierRenderer"),P$$=new _.z("sponsorshipsPromotionChannelRenderer");var V3w=new _.z("simpleSurveyMessageRenderer");var NDU=new _.z("invokeInstrumentManagerAction");var ixE=new _.z("logYpcFlowDismissCommand");var Y4$=new _.z("logYpcFlowStartCommand");var z9C=new _.z("unlimitedCreateFamilyEndpoint");var UU1=new _.z("iconBadgeRenderer");var lNg=new _.z("collaborativePlaylistVisibilityValidationRule");var LWl=function(W){_.DY.call(this,"channelMessage");this.message=W};
_.Z(LWl,_.DY);var EG$=function(W){_.DY.call(this,"channelError");this.error=W};
_.Z(EG$,_.DY);var AXg={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"},NfS={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},dUE={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},WOQ={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ekC={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var zU=function(W){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 _.X8;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;W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.castUserId=W.castUserId||"",this.theme=W.theme||"u",tOu(this,W.capabilities||""),bfg(this,
W.compatibleSenderThemes||""),mdB(this,W.experiments||""),this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=
W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
zU.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new zU(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;W.castUserId=this.castUserId;return W};
zU.prototype.equals=function(W){return W?this.id==W.id:!1};
var tOu=function(W,e){W.capabilities.clear();_.Xi(e.split(","),_.Sz(_.kJ.contains,AXg)).forEach(function(t){W.capabilities.add(t)})},bfg=function(W,e){W.compatibleSenderThemes.clear();
_.Xi(e.split(","),_.Sz(_.kJ.contains,NfS)).forEach(function(t){W.compatibleSenderThemes.add(t)})},mdB=function(W,e){W.experiments.clear();
e.split(",").forEach(function(t){W.experiments.add(t)})};var rru=function(W,e){this.action=W;this.params=e||{}};_.QP(VvC,_.ka);_.r=VvC.prototype;_.r.JSC$17545_onTick_=function(){this.JSC$17543_interval_=Math.min(3E5,this.JSC$17543_interval_*2);this.JSC$17545_listener_();this.nextTickTime_&&this.start()};
_.r.start=function(){var W=this.JSC$17543_interval_+15E3*Math.random(),e=this.delay_;e.isActive()||e.start(W);this.nextTickTime_=Date.now()+W};
_.r.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.r.isActive=function(){return this.delay_.isActive()};
_.r.reset=function(){this.delay_.stop();this.JSC$17543_interval_=5E3};_.QP(yu,gFM);_.r=yu.prototype;_.r.subscribe=function(W,e,t){return this.pubsub_.subscribe(W,e,t)};
_.r.unsubscribe=function(W,e,t){return this.pubsub_.unsubscribe(W,e,t)};
_.r.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.r.publish=function(W,e){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.r.dispose=function(){this.JSC$17546_disposed_||(this.JSC$17546_disposed_=!0,_.NL(this.pubsub_),this.disconnect(),_.NL(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17546_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.aT({})})};
_.r.isDisposed=function(){return this.JSC$17546_disposed_};
_.r.connect=function(W,e,t){var b=this,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return _.IG(I,2),b.useAsyncBrowserChannelHandler_?_.a(I,b.connectPromise_,2):I.jumpTo(2);_.FY(I);if(b.JSC$17546_disposed_||b.JSC$17546_channel_&&b.JSC$17546_channel_.getState()==2)return I.return();b.sCookie_="";b.reconnectTimer_.stop();b.connectionParams_=W||null;b.connectUi_=e||0;m=b.JSC$17546_pathPrefix_+"/test";q=b.JSC$17546_pathPrefix_+"/bind";Q=new Ht(t?t.firstTestResults:null,t?t.secondTestResults:null,
b.enableAsyncTest_);if(X=b.JSC$17546_channel_)X.handler_=null;Q.handler_=b;b.JSC$17546_channel_=Q;if(b.useAsyncBrowserChannelHandler_)return b.connectPromise_=qWT(b).then(function(){return Rku(b,m,q,X,t)}),I.return(b.connectPromise_.then(function(){b.connectPromise_=_.aT()}));
Rku(b,m,q,X,t);return _.aG(I,0)})};
var Rku=function(W,e,t,b,m){Q7l(W);if(W.JSC$17546_channel_){var q=_.Ot("ID_TOKEN"),Q=W.JSC$17546_channel_.JSC$17498_extraHeaders_||{};q?Q["x-youtube-identity-token"]=q:delete Q["x-youtube-identity-token"];W.JSC$17546_channel_.JSC$17498_extraHeaders_=Q}FOC(W);b?(b.getState(),W.JSC$17546_channel_.connect(e,t,W.defaultQueryParams_,b.sid_,b.JSC$17498_lastArrayId_)):m?W.JSC$17546_channel_.connect(e,t,W.defaultQueryParams_,m.sessionId,m.arrayId):W.JSC$17546_channel_.connect(e,t,W.defaultQueryParams_)};
yu.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.aT())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Q7l(this),this.JSC$17546_channel_&&(this.JSC$17546_channel_.getState()==3&&pQw(this.JSC$17546_channel_),this.JSC$17546_channel_.disconnect()),this.disconnectUi_=0}};
yu.prototype.sendMessage=function(W,e){var t=this,b;return _.F(function(m){switch(m.nextAddress){case 1:_.IG(m,2);if(!t.useAsyncBrowserChannelHandler_){m.jumpTo(2);break}return _.a(m,t.connectPromise_,2);case 2:_.FY(m);if(t.JSC$17546_disposed_)return m.return();b={_sc:W};e&&_.kJ.extend(b,e);if(t.reconnectTimer_.isActive()||(t.JSC$17546_channel_?t.JSC$17546_channel_.getState():0)==2){t.JSC$17546_pendingMessages_.push(b);m.jumpTo(6);break}if(!t.isChannelOpened()){m.jumpTo(6);break}_.IG(m,8);if(!t.useAsyncBrowserChannelHandler_||
XzC(t,W)){m.jumpTo(8);break}return _.a(m,qWT(t),8);case 8:_.FY(m,0,0,1);t.isChannelOpened()&&(XzC(t,W)||FOC(t),Q7l(t),khU(t.JSC$17546_channel_,b));_.aG(m,6,1);break;case 6:_.aG(m,0)}})};
var XzC=function(W,e){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(dUE).includes(e):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(WOQ).includes(e):W.disableMdxAuthForShortsMessages_?Object.values(ekC).includes(e):!1};
yu.prototype.JSC$17505_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17546_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)IhU(this);else{var W=this.JSC$17546_pendingMessages_;this.JSC$17546_pendingMessages_=[];var e=W.length;FOC(this);ahl(this,W,e);wzE(this)}else wzE(this)};
var IhU=function(W){var e,t;_.F(function(b){if(b.nextAddress==1)return _.IG(b,2),_.a(b,qWT(W),2);_.FY(b);e=W.JSC$17546_pendingMessages_;W.JSC$17546_pendingMessages_=[];t=e.length;ahl(W,e,t);wzE(W);return _.aG(b,0)})},ahl=function(W,e,t){for(var b=0;b<t;++b)khU(W.JSC$17546_channel_,e[b]);
wzE(W)},wzE=function(W){W.publish("handlerOpened");
W.JSC$17546_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.r=yu.prototype;_.r.JSC$17505_channelError=function(W){var e=W==2&&this.JSC$17546_channel_.JSC$17498_lastStatusCode_==401;W==4||e||this.reconnectTimer_.start();this.publish("handlerError",W,e);e=Object.keys(Gh9).find(function(t){return Gh9[t]===W});
this.JSC$17546_channelErrorCounter.increment("BROWSER_CHANNEL",e!=null?e:"UNKNOWN")};
_.r.JSC$17505_channelClosed=function(W,e){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(e)for(var t=e.length,b=0;b<t;++b){var m=e[b].map;m&&this.JSC$17546_pendingMessages_.push(m)}this.JSC$17546_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$7978_streamzService.JSC$7833_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);e&&this.undeliveredMapsOnClosedCounter.JSC$7981_streamzService.JSC$7833_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
e.length)};
_.r.JSC$17505_channelSuccess=function(W,e){e!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.r.JSC$17505_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.kJ.extend(W,this.connectionParams_);return W};
_.r.JSC$17505_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17546_channel_.disconnect()):this.publish("handlerMessage",new rru(W[0],W[1]));this.JSC$17546_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.r.isChannelOpened=function(){return!!this.JSC$17546_channel_&&this.JSC$17546_channel_.getState()==3};
var Q7l=function(W){if(W.JSC$17546_channel_){var e=W.JSC$17546_getXsrfToken_(),t=W.JSC$17546_channel_.JSC$17498_extraHeaders_||{};e?t["x-youtube-lounge-xsrf-token"]=e:delete t["x-youtube-lounge-xsrf-token"];W.JSC$17546_channel_.JSC$17498_extraHeaders_=t}},qWT=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.aT();
if(!W.enableCachedUpdateAuthorizationHeader_)return uQC(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=uQC(W));return W.updateAuthorizationHeaderPromise_},uQC=function(W){return _.yd(W.getAuthorizationHeader_().then(function(e){crC(W,e)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},crC=function(W,e){if(W.JSC$17546_channel_){var t=W.JSC$17546_channel_.JSC$17498_extraHeaders_||{};
e&&Object.keys(e).length>0?t=Object.assign({},t,e):delete t.Authorization;W.JSC$17546_channel_.JSC$17498_extraHeaders_=t}},FOC=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&crC(W,W.getAuthorizationHeaderSync_())};
_.r=yu.prototype;_.r.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17546_channel_){var e=this.JSC$17546_channel_.JSC$17498_extraHeaders_||{};W?e["X-YouTube-LoungeId-Token"]=W:delete e["X-YouTube-LoungeId-Token"];this.JSC$17546_channel_.JSC$17498_extraHeaders_=e}};
_.r.getDeviceId=function(){return this.defaultQueryParams_.id};
_.r.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.r.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.r.safeReconnect_=function(){var W=this.JSC$17546_channel_,e=0;W.JSC$17498_backChannelRequest_&&e++;W.forwardChannelRequest_&&e++;e==0&&this.connect(this.connectionParams_,this.connectUi_)};var J4=function(W,e){var t=W.basePath;W.supportCors&&(t=W.scheme+"://"+W.domain+W.port+W.basePath);return _.Ut(t+e,{})};
j9.prototype.sendRequest=function(W,e,t,b,m,q,Q){W={format:q?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!Q,onSuccess:_.Sz(this.JSC$17551_onSuccess_,b,!q),onError:_.Sz(this.onError_,m),onTimeout:_.Sz(this.JSC$17551_onTimeout_,m)};t&&(W.postParams=t,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.a_(e,W)};
j9.prototype.JSC$17551_onSuccess_=function(W,e,t,b){e?W(b):W({text:t.responseText})};
j9.prototype.onError_=function(W,e){W(Error("Ck`"+e.status))};
j9.prototype.JSC$17551_onTimeout_=function(W){W(Error("Dk"))};var nW=function(W,e){return!!e&&(W.id==e||W.uuid==e)},viE=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},GrM=function(W){return new CW(W)},DdU=function(W){return Array.isArray(W)?_.yO(W,GrM):[]},dgB=function(W){if(!W)return"null";
var e=W.token?".."+W.token.slice(-6):"-",t=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(e+",uuid:"+t+",idType:"+W.idType+"}")},yjw=function(W){return Array.isArray(W)?"["+_.yO(W,dgB).join(",")+"]":"null"};var RpT="",T5=null;var v4g=function(W,e){_.ZY.call(this);var t=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$17558_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(b,m){t.onError(m)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=e};
_.Z(v4g,_.ZY);_.r=v4g.prototype;_.r.connect=function(W,e,t){this.handler.connect(W,e,t)};
_.r.disconnect=function(W){this.handler.disconnect(W)};
_.r.reconnect=function(){this.handler.reconnect()};
_.r.getDeviceId=function(){return this.handler.getDeviceId()};
_.r.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.r.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.r.JSC$17558_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,e=this.currentScreenId;_.X_("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$17546_channel_.useChunked_,sessionId:W.JSC$17546_channel_.sid_,arrayId:W.JSC$17546_channel_.JSC$17498_lastArrayId_});_.X_("yt-remote-session-screen-id",e);W=epu();e=tVQ();_.PZ(W,e)||W.push(e);qTU(W);rjw()};
_.r.onClosed=function(){this.dispatchEvent("channelClosed")};
_.r.onMessage=function(W){this.dispatchEvent(new LWl(W))};
_.r.onError=function(W){this.dispatchEvent(new EG$(W?1:0))};
_.r.sendMessage=function(W,e){this.handler.sendMessage(W,e)};
_.r.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.r.dispose=function(){this.handler.dispose()};var cjg=function(W,e,t){var b=this;t=t===void 0?function(){return""}:t;
var m=m===void 0?new VLQ:m;var q=q===void 0?new _.uG:q;this.pathPrefix=W;this.defaultQueryParams=e;this.getXsrfToken=t;this.JSC$17561_pubsub=q;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new VvC(function(){var Q;((Q=b.channel)==null?void 0:S5l((new zI9(Q,Q.JSC$17469_channel_)).JSC$17479_channel_.forwardChannelRequestPool_))===0&&b.connect(b.connectionParams,b.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17561_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17561_channelOpenedCounter=new i1S;this.JSC$17561_channelClosedCounter=new YcM;this.JSC$17561_channelMessageReceivedCounter=new UnC;this.JSC$17561_channelErrorCounter=new LYl};
cjg.prototype.connect=function(W,e){W=W===void 0?{}:W;e=e===void 0?0:e;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=e,SWC(this),(W=_.Ot("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 TU(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,BvC(this))};
var BvC=function(W){_.p4(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var e=_.R(W.nonAckedMessagesOnChannelClosed),t=e.next();!t.done;t=e.next())t=t.value,W.channel&&W.channel.send(t);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$17561_channelOpenedCounter.increment("WEB_CHANNEL")});
_.p4(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var e,t=(e=W.channel)==null?void 0:U_g(new zI9(e,e.JSC$17469_channel_));t&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.kP(t)));W.JSC$17561_channelClosedCounter.increment("WEB_CHANNEL")});
_.p4(W.channel,"z",function(e){var t=e.data;t[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new rru(t[0],t[1]));W.lastStatusCode=e.statusCode;W.JSC$17561_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.p4(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$17561_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.r=cjg.prototype;_.r.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();SWC(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.r.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.r.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.r.sendMessage=function(W,e){this.channel&&(SWC(this),W=Object.assign({},{_sc:W},e),this.channel.send(W))};
_.r.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var SWC=function(W){var e=W.getXsrfToken();e?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=e:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.r=cjg.prototype;_.r.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.r.publish=function(W){return this.JSC$17561_pubsub.publish.apply(this.JSC$17561_pubsub,[W].concat(_.kP(_.$N.apply(1,arguments))))};
_.r.subscribe=function(W,e,t){return this.JSC$17561_pubsub.subscribe(W,e,t)};
_.r.unsubscribe=function(W,e,t){return this.JSC$17561_pubsub.unsubscribe(W,e,t)};
_.r.unsubscribeByKey=function(W){return this.JSC$17561_pubsub.unsubscribeByKey(W)};
_.r.dispose=function(){this.JSC$17561_disposed||(this.JSC$17561_disposed=!0,_.NL(this.JSC$17561_pubsub),this.disconnect(),_.NL(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.r.isDisposed=function(){return this.JSC$17561_disposed};var urw=function(W){_.ZY.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$17569_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.Z(urw,_.ZY);_.r=urw.prototype;_.r.connect=function(W,e){this.webChannelService.connect(W,e)};
_.r.disconnect=function(W){this.webChannelService.disconnect(W)};
_.r.reconnect=function(){this.webChannelService.reconnect()};
_.r.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.r.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.r.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.r.JSC$17569_onOpened=function(){this.dispatchEvent("channelOpened")};
_.r.onClosed=function(){this.dispatchEvent("channelClosed")};
_.r.onMessage=function(W){this.dispatchEvent(new LWl(W))};
_.r.onError=function(){this.dispatchEvent(new EG$(this.webChannelService.lastStatusCode===401?1:0))};
_.r.sendMessage=function(W,e){this.webChannelService.sendMessage(W,e)};
_.r.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.r.dispose=function(){this.webChannelService.dispose()};var pFS=Date.now(),xj=null,$g$=Array(50),s_=-1,k4l=!1;_.QP(h4,_.Li);h4.prototype.getScreens=function(){return this.screens};
h4.prototype.contains=function(W){return!!W$w(this.screens,W)};
h4.prototype.get=function(W){return W?fW(this.screens,W):null};
var oig=function(W,e){var t=W.get(e.uuid)||W.get(e.id);if(t)return W=t.name,t.id=e.id||t.id,t.name=e.name,t.token=e.token,t.uuid=e.uuid||t.uuid,t.name!=W;W.screens.push(e);return!0},lhE=function(W,e){var t=W.screens.length!=e.length;
W.screens=_.Xi(W.screens,function(q){return!!W$w(e,q)});
for(var b=e.length,m=0;m<b;m++)t=oig(W,e[m])||t;return t},ZfB=function(W,e){var t=W.screens.length;
W.screens=_.Xi(W.screens,function(b){return!(b||e?!b!=!e?0:b.id==e.id:1)});
return W.screens.length<t};
h4.prototype.info=function(W){O_(this.JSC$17570_logName_,W)};var $dl=function(W,e,t,b,m){_.Li.call(this);this.JSC$17573_http_=W;this.pairingCode_=e;this.deviceId_=t;this.friendlyName_=b;this.enableShortLivedLoungeToken_=m;this.pollIndex_=0;this.JSC$17573_xhr_=null;this.JSC$17573_timer_=NaN};
_.Z($dl,_.Li);_.r=$dl.prototype;_.r.start=function(){!this.JSC$17573_xhr_&&isNaN(this.JSC$17573_timer_)&&this.poll_()};
_.r.stop=function(){this.JSC$17573_xhr_&&(this.JSC$17573_xhr_.abort(),this.JSC$17573_xhr_=null);isNaN(this.JSC$17573_timer_)||(_.Xe(this.JSC$17573_timer_),this.JSC$17573_timer_=NaN)};
_.r.disposeInternal=function(){this.stop();_.Li.prototype.disposeInternal.call(this)};
_.r.poll_=function(){this.JSC$17573_timer_=NaN;this.JSC$17573_xhr_=_.a_(J4(this.JSC$17573_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.p3)(this.JSC$17575_onSuccess_,this),onError:(0,_.p3)(this.onError_,this),onTimeout:(0,_.p3)(this.JSC$17575_onTimeout_,this)})};
_.r.JSC$17575_onSuccess_=function(W,e){this.JSC$17573_xhr_=null;W=e.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;e=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,e=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new CW(W),e)};
_.r.onError_=function(W){this.JSC$17573_xhr_=null;W.status&&W.status==404?this.pollIndex_>=kru.length?this.publish("pairingFailed",Error("Ek")):(W=kru[this.pollIndex_],this.JSC$17573_timer_=_.Qm((0,_.p3)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+W.status))};
_.r.JSC$17575_onTimeout_=function(){this.JSC$17573_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var kru=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.QP(KW,h4);_.r=KW.prototype;_.r.start=function(){Hp(this)&&this.publish("screenChange");!_.Ie("yt-remote-lounge-token-expiration")&&pzC(this);_.Xe(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Qm((0,_.p3)(this.start,this),1E4)};
_.r.add=function(W,e){Hp(this);oig(this,W);yrC(this,!1);this.publish("screenChange");e(W);W.token||pzC(this)};
_.r.remove=function(W,e){var t=Hp(this);ZfB(this,W)&&(yrC(this,!1),t=!0);e(W);t&&this.publish("screenChange")};
_.r.updateName=function(W,e,t,b){var m=Hp(this),q=this.get(W.id);q?(q.name!=e&&(q.name=e,yrC(this,!1),m=!0),t(W)):b(Error("Hk"));m&&this.publish("screenChange")};
_.r.disposeInternal=function(){_.Xe(this.loungeTokenRefreshTimer_);KW.superClass_.disposeInternal.call(this)};
var pzC=function(W){if(W.screens.length){var e=_.yO(W.screens,function(b){return b.id}),t=J4(W.JSC$17577_http_,"/pairing/get_lounge_token_batch");
W.JSC$17577_http_.sendRequest("POST",t,{screen_ids:e.join(",")},(0,_.p3)(W.handleLoungeTokens_,W),(0,_.p3)(W.handleLoungeTokenError_,W))}};
KW.prototype.handleLoungeTokens_=function(W){Hp(this);var e=this.screens.length;W=W&&W.screens||[];for(var t=W.length,b=0;b<t;++b){var m=W[b],q=this.get(m.screenId);q&&(q.token=m.loungeToken,--e)}yrC(this,!e);e&&O_(this.JSC$17570_logName_,"Missed "+e+" lounge tokens.")};
KW.prototype.handleLoungeTokenError_=function(W){O_(this.JSC$17570_logName_,"Requesting lounge tokens failed: "+W)};
var Hp=function(W){if(_.S("deprecate_pair_servlet_enabled"))return lhE(W,[]);var e=DdU(F$g());e=_.Xi(e,function(t){return!t.uuid});
return lhE(W,e)},yrC=function(W,e){IZ1(_.yO(W.screens,viE));
e&&XFC()};var UN=function(W,e){_.Li.call(this);this.getScreensToCheck_=e;e=(e=_.Ie("yt-remote-online-screen-ids")||"")?e.split(","):[];for(var t={},b=this.getScreensToCheck_(),m=b.length,q=0;q<m;++q){var Q=b[q].id;t[Q]=_.PZ(e,Q)}this.screenIdSet_=t;this.JSC$17580_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;j7w("Initialized with "+(0,_.nV)(this.screenIdSet_))};
_.Z(UN,_.Li);UN.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
UN.prototype.start=function(){var W=parseInt(_.Ie("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.RP()-144E5<W?0:W)?Cyu(this):(this.fastCheckEndTime_=_.RP()+3E5,_.X_("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
UN.prototype.isEmpty=function(){return _.kJ.isEmpty(this.screenIdSet_)};
UN.prototype.update=function(){j7w("Updating availability on schedule.");var W=this.getScreensToCheck_(),e=_.kJ.filter(this.screenIdSet_,function(t,b){return t&&!!fW(W,b)},this);
niC(this,e)};
var fhu=function(W,e,t){var b=J4(W.JSC$17580_http_,"/pairing/get_screen_availability");W.JSC$17580_http_.sendRequest("POST",b,{lounge_token:e.token},(0,_.p3)(function(m){m=m.screens||[];for(var q=m.length,Q=0;Q<q;++Q)if(m[Q].loungeToken==e.token){t(m[Q].status=="online");return}t(!1)},W),(0,_.p3)(function(){t(!1)},W))};
UN.prototype.disposeInternal=function(){_.Xe(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Li.prototype.disposeInternal.call(this)};
var niC=function(W,e){a:if(_.kJ.getCount(e)!=_.kJ.getCount(W.screenIdSet_))var t=!1;else{t=_.kJ.getKeys(e);for(var b=t.length,m=0;m<b;++m)if(!W.screenIdSet_[t[m]]){t=!1;break a}t=!0}t||(j7w("Updated online screens: "+(0,_.nV)(W.screenIdSet_)),W.screenIdSet_=e,W.publish("screenChange"));giC(W)},Cyu=function(W){isNaN(W.refreshTimer_)||_.Xe(W.refreshTimer_);
W.refreshTimer_=_.Qm((0,_.p3)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.RP()?2E4:1E4)};
UN.prototype.requestScreenAvailability_=function(){_.Xe(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=Tvg(this);if(_.kJ.getCount(W)){var e=J4(this.JSC$17580_http_,"/pairing/get_screen_availability"),t={lounge_token:_.kJ.getKeys(W).join(",")};this.currentRequest_=this.JSC$17580_http_.sendRequest("POST",e,t,(0,_.p3)(this.onScreenAvailability_,this,W),(0,_.p3)(this.onScreenAvailabilityError_,this))}else niC(this,{}),Cyu(this)};
UN.prototype.onScreenAvailability_=function(W,e){this.currentRequest_=null;var t=_.kJ.getKeys(Tvg(this));if(_.Q8(t,_.kJ.getKeys(W))){e=e.screens||[];t={};for(var b=e.length,m=0;m<b;++m)t[W[e[m].loungeToken]]=e[m].status=="online";niC(this,t);Cyu(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
UN.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;Cyu(this)};
var j7w=function(W){O_("OnlineScreenService",W)};
UN.prototype.warn_=function(W){O_("OnlineScreenService",W)};
var Tvg=function(W){var e={};_.VZ(W.getScreensToCheck_(),function(t){t.token?e[t.token]=t.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return e},giC=function(W){W=_.kJ.getKeys(_.kJ.filter(W.screenIdSet_,function(e){return e}));
W.sort(_.rB);W.length?_.X_("yt-remote-online-screen-ids",W.join(","),60):_.ae("yt-remote-online-screen-ids")};_.QP(Pp,h4);_.r=Pp.prototype;_.r.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.r.add=function(W,e,t){this.localScreenService_.add(W,e,t)};
_.r.remove=function(W,e,t){this.localScreenService_.remove(W,e,t);this.onlineScreenService_.update()};
_.r.updateName=function(W,e,t,b){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,e,t,b):(W="Updating name of unknown screen: "+W.name,O_(this.JSC$17570_logName_,W),b(Error(W)))};
_.r.getScreens=function(W){return W?this.screens:ZKu(this.screens,_.Xi(this.automaticScreens_,function(e){return!this.contains(e)},this))};
_.r.JSC$17585_getOnlineScreens=function(){return _.Xi(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var xdC=function(W,e,t,b,m,q){W.info("getAutomaticScreenByIds "+t+" / "+e);t||(t=W.deviceToScreenId_[e]);var Q=W.getScreens(),X=t?fW(Q,t):null;t&&(W.disableAutomaticScreenCache_||X)||(X=fW(Q,e));if(X){X.uuid=e;var I=Lq(W,X);fhu(W.onlineScreenService_,I,function(u){m(u?I:null)})}else t?JrB(W,t,(0,_.p3)(function(u){var c=Lq(this,new CW({name:b,
screenId:t,loungeToken:u,dialId:e||""}));fhu(this.onlineScreenService_,c,function(v){m(v?c:null)})},W),q):m(null)};
Pp.prototype.JSC$17585_getScreenByPollingPairingCode=function(W,e,t,b,m,q){var Q=this;this.info("getDialScreenByPairingCode "+W+" / "+e);var X=new $dl(this.JSC$17583_http_,W,e,t,b);X.subscribe("pairingComplete",function(I,u){_.NL(X);m(Lq(Q,I),u)});
X.subscribe("pairingFailed",function(I){_.NL(X);q(I)});
X.start();return(0,_.p3)(X.stop,X)};
var OfC=function(W,e){for(var t=W.screens.length,b=0;b<t;++b)if(W.screens[b].name==e)return W.screens[b];return null};
Pp.prototype.JSC$17585_getScreenByPairingCode=function(W,e,t,b){_.a_(J4(this.JSC$17583_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.p3)(function(m,q){m=new CW(q.screen||{});if(!m.name||OfC(this,m.name)){a:{q=m.name;for(var Q=2,X=e(q,Q);OfC(this,X);){Q++;if(Q>20)break a;X=e(q,Q)}q=X}m.name=q}t(Lq(this,m))},this),
onError:(0,_.p3)(function(m){b(Error("Ik`"+m.status))},this),
onTimeout:(0,_.p3)(function(){b(Error("Jk"))},this)})};
var MO9=function(W,e,t){fhu(W.onlineScreenService_,e,t)};
Pp.prototype.disposeInternal=function(){_.NL(this.localScreenService_);_.NL(this.onlineScreenService_);Pp.superClass_.disposeInternal.call(this)};
var JrB=function(W,e,t,b){W.info("requestLoungeToken_ for "+e);var m={postParams:{screen_ids:e},method:"POST",context:W,onSuccess:function(q,Q){q=Q&&Q.screens||[];q[0]&&q[0].screenId==e?t(q[0].loungeToken):b(Error("Kk"))},
onError:function(){b(Error("Lk"))}};
_.a_(J4(W.JSC$17583_http_,"/pairing/get_lounge_token_batch"),m)},s7E=function(W){W.screens=W.localScreenService_.getScreens();
for(var e=_.kJ.transpose(W.deviceToScreenId_),t=W.screens.length,b=0;b<t;++b){var m=W.screens[b];m.uuid=e[m.id]||""}W.info("Updated manual screens: "+yjw(W.screens))};
Pp.prototype.handleScreenChange_=function(){s7E(this);this.publish("screenChange");this.onlineScreenService_.update()};
var jBS=function(W){hkl(W);W.localScreenService_=new KW(W.JSC$17583_http_);W.localScreenService_.subscribe("screenChange",(0,_.p3)(W.handleScreenChange_,W));s7E(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=DdU(_.Ie("yt-remote-automatic-screen-cache")||[]));hkl(W);W.info("Initializing automatic screens: "+yjw(W.automaticScreens_));W.onlineScreenService_=new UN(W.JSC$17583_http_,(0,_.p3)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.p3)(function(){this.publish("onlineScreenChange")},
W))},Lq=function(W,e){var t=W.get(e.id);
t?(t.uuid=e.uuid,e=t):((t=fW(W.automaticScreens_,e.uuid))?(t.id=e.id,t.token=e.token,e=t):W.automaticScreens_.push(e),W.disableAutomaticScreenCache_||Hfg(W));hkl(W);W.deviceToScreenId_[e.uuid]=e.id;_.X_("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return e},Hfg=function(W){W=_.Xi(W.automaticScreens_,function(e){return e.idType!="shortLived"});
_.X_("yt-remote-automatic-screen-cache",_.yO(W,viE))},hkl=function(W){W.deviceToScreenId_=_.Ie("yt-remote-device-id-map")||{}};
Pp.prototype.dispose=Pp.prototype.dispose;_.QP(Vu,_.Li);var EN=function(W,e){W.screen_=e;W.publish("sessionScreen",W.screen_)},KOu=function(W,e){W.screen_&&(W.screen_.token=e,Lq(W.JSC$17587_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
Vu.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(Aw(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Vu.prototype.info=function(W){O_(this.JSC$17587_logName_,W)};
var Aw=function(W,e){O_(W.JSC$17587_logName_,e)};
Vu.prototype.JSC$17589_getCastSession=function(){return null};
Vu.prototype.setDisplayStatus=function(W){var e=this.receiver_;W?(e.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),e.displayStatus.showStop=!0):e.displayStatus=null;chrome.cast.setReceiverDisplayStatus(e,(0,_.p3)(function(){this.info("Updated receiver status for "+e.friendlyName+": "+W)},this),(0,_.p3)(function(){Aw(this,"Failed to update receiver status for: "+e.friendlyName)},this))};
Vu.prototype.disposeInternal=function(){this.setDisplayStatus("");Vu.superClass_.disposeInternal.call(this)};var NO=function(W,e,t){Vu.call(this,W,e,"CastSession");var b=this;this.config_=t;this.JSC$17592_session_=null;this.JSC$17592_boundSessionUpdate_=(0,_.p3)(this.JSC$17594_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.p3)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Qm(function(){Py$(b,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17592_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17592_isInitLoungeToken_=!1;this.JSC$17592_lastLoungeTokenRefreshError_="unknown"};
_.Z(NO,Vu);_.r=NO.prototype;
_.r.setCastSession=function(W){if(this.JSC$17592_session_){if(this.JSC$17592_session_==W)return;Aw(this,"Overriding cast session with new session object");VOE(this);this.JSC$17592_isInitLoungeToken_=!1;this.JSC$17592_lastLoungeTokenRefreshError_="unknown";this.JSC$17592_session_.removeUpdateListener(this.JSC$17592_boundSessionUpdate_);this.JSC$17592_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17592_session_=W;this.JSC$17592_session_.addUpdateListener(this.JSC$17592_boundSessionUpdate_);this.JSC$17592_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);if$(this,"getMdxSessionStatus")};
_.r.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.nV)(W))};
_.r.stop=function(){if(this.JSC$17592_session_)this.JSC$17592_session_.stop((0,_.p3)(function(){this.onSessionStopped()},this),(0,_.p3)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.r.setDisplayStatus=function(){};
_.r.disposeInternal=function(){this.info("disposeInternal");VOE(this);this.JSC$17592_session_&&(this.JSC$17592_session_.removeUpdateListener(this.JSC$17592_boundSessionUpdate_),this.JSC$17592_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17592_session_=null;Vu.prototype.disposeInternal.call(this)};
var zkT=function(W,e){_.Xe(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;e==0?YW$(W):W.getLoungeTokenTimeoutKey_=_.Qm(function(){YW$(W)},e)},YW$=function(W){if$(W,"getLoungeToken");
_.Xe(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.Qm(function(){Ud$(W,null)},3E4)},if$=function(W,e){W.info("sendYoutubeMessage_: "+e+" "+(0,_.nV)(void 0));
var t={};t.type=e;W.JSC$17592_session_?W.JSC$17592_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",t,function(){},(0,_.p3)(function(){Aw(this,"Failed to send message: "+e+".")},W)):Aw(W,"Sending yt message without session: "+(0,_.nV)(t))};
NO.prototype.onYoutubeMessage_=function(W,e){if(!this.isDisposed())if(e)if(e=(0,_.pc)(e),_.tk(e))switch(W=""+e.type,e=e.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.nV)(e)),W){case "mdxSessionStatus":Py$(this,e);break;case "loungeToken":Ud$(this,e);break;default:Aw(this,"Unknown youtube message: "+W)}else Aw(this,"Unable to parse message.");else Aw(this,"No data in message.")};
var LOT=function(W,e){if(e)W.info("onConnectedScreenId_: Received screenId: "+e),W.screen_&&W.screen_.id==e||W.getScreen_(e,function(t){EN(W,t)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("Ok"))},Ar1=function(W,e,t){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(e));
var b=new CW(e);Eiu(W,b,function(m){m?(W.JSC$17592_isInitLoungeToken_=!0,Lq(W.JSC$17587_screenService_,b),EN(W,b),W.JSC$17592_lastLoungeTokenRefreshError_="unknown",zkT(W,t)):(_.st(Error("Pk`"+JSON.stringify(e))),W.onSessionStopped())},5)},Py$=function(W,e){_.Xe(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(e)W.config_.enableCastLoungeToken&&e.loungeToken?e.deviceId?W.screen_&&W.screen_.uuid==e.deviceId||(e.loungeTokenRefreshIntervalMs?Ar1(W,{name:W.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:e.deviceId,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.st(Error("Rk`"+JSON.stringify(e))),LOT(W,e.screenId))):(_.st(Error("Qk`"+JSON.stringify(e))),LOT(W,e.screenId)):LOT(W,e.screenId);else W.onSessionStopped(Error("Ok"))},Ud$=function(W,
e){_.Xe(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var t=null;if(e)if(e.loungeToken){var b;((b=W.screen_)==null?void 0:b.token)==e.loungeToken&&(t="staleLoungeToken")}else t="missingLoungeToken";else t="noLoungeTokenResponse";t?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(e)+", error: "+t)),W.JSC$17592_lastLoungeTokenRefreshError_=t,zkT(W,3E4)):(KOu(W,e.loungeToken),W.JSC$17592_isInitLoungeToken_=!1,W.JSC$17592_lastLoungeTokenRefreshError_="unknown",zkT(W,e.loungeTokenRefreshIntervalMs))};
NO.prototype.getScreen_=function(W,e,t,b){_.Xe(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;xdC(this.JSC$17587_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.p3)(function(m){m?e(m):b>=0?(Aw(this,"Screen "+W+" appears to be offline. "+b+" retries left."),this.getScreenTimeoutKey_=_.Qm((0,_.p3)(this.getScreen_,this,W,e,t,b-1),300)):t(Error("Sk"))},this),t)};
var Eiu=function(W,e,t,b){_.Xe(W.JSC$17592_checkScreenAvailabilityTimeoutKey_);W.JSC$17592_checkScreenAvailabilityTimeoutKey_=0;MO9(W.JSC$17587_screenService_,e,function(m){m||b<0?t(m):W.JSC$17592_checkScreenAvailabilityTimeoutKey_=_.Qm(function(){Eiu(W,e,t,b-1)},300)})};
NO.prototype.JSC$17589_getCastSession=function(){return this.JSC$17592_session_};
NO.prototype.JSC$17594_onSessionUpdate_=function(W){this.isDisposed()||W||(Aw(this,"Cast session died."),this.onSessionStopped())};
var VOE=function(W){_.Xe(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.Xe(W.JSC$17592_checkScreenAvailabilityTimeoutKey_);W.JSC$17592_checkScreenAvailabilityTimeoutKey_=0;_.Xe(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.Xe(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.Xe(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var dm=function(W,e,t,b){Vu.call(this,W,e,"DialSession");this.config_=b;this.JSC$17596_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17596_theme_=t;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17596_deferredLaunchDeadlineTimer_=NaN;this.JSC$17596_boundSessionUpdate_=(0,_.p3)(this.JSC$17598_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17596_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17596_isInitLoungeToken_=!1;this.JSC$17596_lastLoungeTokenRefreshError_="unknown"};
_.Z(dm,Vu);dm.prototype.setCastSession=function(W){this.JSC$17596_session_=W;this.JSC$17596_session_.addUpdateListener(this.JSC$17596_boundSessionUpdate_)};
dm.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
dm.prototype.stop=function(){NvM(this);if(this.JSC$17596_session_)this.JSC$17596_session_.stop((0,_.p3)(this.onSessionStopped,this,null),(0,_.p3)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
dm.prototype.disposeInternal=function(){NvM(this);this.JSC$17596_session_&&this.JSC$17596_session_.removeUpdateListener(this.JSC$17596_boundSessionUpdate_);this.JSC$17596_session_=null;Vu.prototype.disposeInternal.call(this)};
var ddU=function(W){var e;return!!(W.config_.enableDialLoungeToken&&((e=W.JSC$17596_session_)==null?0:e.getDialAppInfo))},WwM=function(W){W.cancelPolling_=W.JSC$17587_screenService_.JSC$17585_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,ddU(W),function(e,t){W.cancelPolling_=function(){};
W.JSC$17596_isInitLoungeToken_=!0;EN(W,e);e.idType=="shortLived"&&t>0&&WP(W,t)},function(e){W.cancelPolling_=function(){};
W.onSessionStopped(e)})};
dm.prototype.JSC$17598_onSessionUpdate_=function(W){this.isDisposed()||W||(Aw(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var eY9=function(W){var e={};e.pairingCode=W.reversePairingCode_;e.theme=W.JSC$17596_theme_;wFu()&&(e.env_useStageMdx=1);return _.w8(e)},t8C=function(W){return new Promise(function(e){W.reversePairingCode_=Ns1();
if(W.connectData_){var t=new chrome.cast.DialLaunchResponse(!0,eY9(W));e(t);WwM(W)}else W.deferredLaunch_=function(){_.Xe(W.JSC$17596_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$17596_deferredLaunchDeadlineTimer_=NaN;var b=new chrome.cast.DialLaunchResponse(!0,eY9(W));e(b);WwM(W)},W.JSC$17596_deferredLaunchDeadlineTimer_=_.Qm(function(){W.deferredLaunch_()},100)})},mrw=function(W,e,t){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(e));
var b=new CW(e);return(new Promise(function(m){b5C(W,b,function(q){q?(W.JSC$17596_isInitLoungeToken_=!0,Lq(W.JSC$17587_screenService_,b),EN(W,b),WP(W,t)):_.st(Error("Uk`"+JSON.stringify(e)));m(q)},5)})).then(function(m){return m?new chrome.cast.DialLaunchResponse(!1):t8C(W)})},r2g=function(W,e){var t=W.launchData_.receiver.label,b=W.receiver_.friendlyName;
return(new Promise(function(m){xdC(W.JSC$17587_screenService_,t,e,b,function(q){q&&q.token&&EN(W,q);m(q)},function(q){Aw(W,"Failed to get DIAL screen: "+q);
m(null)})})).then(function(m){return m&&m.token?new chrome.cast.DialLaunchResponse(!1):t8C(W)})},b5C=function(W,e,t,b){_.Xe(W.JSC$17596_checkScreenAvailabilityTimeoutKey_);
W.JSC$17596_checkScreenAvailabilityTimeoutKey_=0;MO9(W.JSC$17587_screenService_,e,function(m){m||b<0?t(m):W.JSC$17596_checkScreenAvailabilityTimeoutKey_=_.Qm(function(){b5C(W,e,t,b-1)},300)})},WP=function(W,e){W.info("getDialAppInfoWithTimeout_ "+e);
ddU(W)&&(_.Xe(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,e==0?qjC(W):W.getDialAppInfoTimeoutKey_=_.Qm(function(){qjC(W)},e))},qjC=function(W){ddU(W)&&W.JSC$17596_session_.getDialAppInfo(function(e){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(e));
e=e.extraData||{};var t=null;if(e.loungeToken){var b;((b=W.screen_)==null?void 0:b.token)==e.loungeToken&&(t="staleLoungeToken")}else t="missingLoungeToken";t?(W.JSC$17596_lastLoungeTokenRefreshError_=t,WP(W,3E4)):(W.JSC$17596_isInitLoungeToken_=!1,W.JSC$17596_lastLoungeTokenRefreshError_="unknown",KOu(W,e.loungeToken),WP(W,e.loungeTokenRefreshIntervalMs))},function(e){W.info("getDialAppInfo error: "+e);
W.JSC$17596_lastLoungeTokenRefreshError_="noLoungeTokenResponse";WP(W,3E4)})},NvM=function(W){_.Xe(W.JSC$17596_checkScreenAvailabilityTimeoutKey_);
W.JSC$17596_checkScreenAvailabilityTimeoutKey_=0;_.Xe(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.Xe(W.JSC$17596_deferredLaunchDeadlineTimer_)};var ex=function(W,e){Vu.call(this,W,e,"ManualSession");this.JSC$17600_deferredLaunchDeadlineTimer_=_.Qm((0,_.p3)(this.launchWithParams,this,null),150)};
_.Z(ex,Vu);ex.prototype.stop=function(){this.onSessionStopped()};
ex.prototype.setCastSession=function(){};
ex.prototype.launchWithParams=function(){_.Xe(this.JSC$17600_deferredLaunchDeadlineTimer_);this.JSC$17600_deferredLaunchDeadlineTimer_=NaN;var W=fW(this.JSC$17587_screenService_.getScreens(),this.receiver_.label);if(W)EN(this,W);else this.onSessionStopped(Error("Vk"))};
ex.prototype.disposeInternal=function(){_.Xe(this.JSC$17600_deferredLaunchDeadlineTimer_);this.JSC$17600_deferredLaunchDeadlineTimer_=NaN;Vu.prototype.disposeInternal.call(this)};var U_=function(W,e){_.Li.call(this);this.config_=e;this.JSC$17603_screenService_=W;this.JSC$17603_appId_=e.appId||"233637DE";this.JSC$17603_theme_=e.theme||"cl";this.disableDial_=e.disableCastApi||!1;this.forceMirroring_=e.forceMirroring||!1;this.JSC$17603_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.p3)(this.onReceiverAction_,this)};
_.Z(U_,_.Li);
U_.prototype.init=function(W,e){chrome.cast.timeout.requestSession=3E4;var t=new chrome.cast.SessionRequest(this.JSC$17603_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.S("desktop_enable_cast_connect")&&(t.androidReceiverCompatible=!0);this.disableDial_||(t.dialRequest=new chrome.cast.DialRequest("YouTube"));var b=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var m=(0,_.p3)(this.onReceiverUpdated_,
this);t=new chrome.cast.ApiConfig(t,(0,_.p3)(this.onSessionEstablished_,this),m,b,W);t.customDialLaunchCallback=(0,_.p3)(this.onDialLaunchRequested_,this);chrome.cast.initialize(t,(0,_.p3)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),o4U(),this.JSC$17603_screenService_.subscribe("onlineScreenChange",(0,_.p3)(this.JSC$17605_onScreenChange_,this)),this.customReceivers_=RYB(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.p3)(function(q){this.warn_("Failed to set initial custom receivers: "+(0,_.nV)(q))},this)),this.publish("yt-remote-cast2-availability-change",ro(this)),e(!0))},this),(0,_.p3)(function(q){this.warn_("Failed to initialize API: "+(0,_.nV)(q));
e(!1)},this))};
U_.prototype.setConnectedScreenStatus=function(W,e){qH("Setting connected screen ID: "+W+" -> "+e);if(this.JSC$17603_session_){var t=this.JSC$17603_session_.screen_;if(!W||t&&t.id!=W)qH("Unsetting old screen status: "+this.JSC$17603_session_.receiver_.friendlyName),Rd(this,null)}if(W&&e){if(!this.JSC$17603_session_){W=fW(this.JSC$17603_screenService_.getScreens(),W);if(!W){qH("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){qH("setConnectedScreenStatus: Screen with id type to be short lived.");
return}t=Q0U(this,W);t||(qH("setConnectedScreenStatus: Connected receiver not custom..."),t=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),t.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(t),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.p3)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.nV)(b))},this)));
qH("setConnectedScreenStatus: new active receiver: "+t.friendlyName);Rd(this,new ex(this.JSC$17603_screenService_,t),!0)}this.JSC$17603_session_.setDisplayStatus(e)}else qH("setConnectedScreenStatus: no screen.")};
var Q0U=function(W,e){return e?_.Ms(W.customReceivers_,function(t){return nW(e,t.label)},W):null};
U_.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17603_session_?this.JSC$17603_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
U_.prototype.JSC$17605_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17603_session_?(this.JSC$17603_session_.stop(),Rd(this,null)):qH("Stopping non-existing session")};
U_.prototype.requestSession=function(){chrome.cast.requestSession((0,_.p3)(this.onSessionEstablished_,this),(0,_.p3)(this.onSessionRequestFailed_,this))};
U_.prototype.disposeInternal=function(){this.JSC$17603_screenService_.unsubscribe("onlineScreenChange",(0,_.p3)(this.JSC$17605_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.UL(_.HO("yt.mdx.remote.debug.handlers_")||[],Dg$);_.NL(this.JSC$17603_session_);_.Li.prototype.disposeInternal.call(this)};
var qH=function(W){O_("Controller",W)};
U_.prototype.warn_=function(W){O_("Controller",W)};
var Dg$=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},ro=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$17603_session_},Rd=function(W,e,t){e!=W.JSC$17603_session_&&(_.NL(W.JSC$17603_session_),(W.JSC$17603_session_=e)?(t?W.publish("yt-remote-cast2-receiver-resumed",e.receiver_):W.publish("yt-remote-cast2-receiver-selected",e.receiver_),e.subscribe("sessionScreen",(0,_.p3)(W.onSessionScreen_,W,e)),e.subscribe("sessionFailed",
function(){return FwT(W,e)}),e.screen_?W.publish("yt-remote-cast2-session-change",e.screen_):t&&W.JSC$17603_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},FwT=function(W,e){W.JSC$17603_session_==e&&W.publish("yt-remote-cast2-session-failed")};
_.r=U_.prototype;_.r.onSessionScreen_=function(W,e){this.JSC$17603_session_==W&&(e||Rd(this,null),this.publish("yt-remote-cast2-session-change",e))};
_.r.onReceiverAction_=function(W,e){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),qH("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+e),e){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17603_session_)if(this.JSC$17603_session_.receiver_.label!=W.label)qH("onReceiverAction_: Stopping active receiver: "+this.JSC$17603_session_.receiver_.friendlyName),this.JSC$17603_session_.stop();else{qH("onReceiverAction_: Casting to active receiver.");this.JSC$17603_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17603_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:Rd(this,new ex(this.JSC$17603_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:Rd(this,new dm(this.JSC$17603_screenService_,W,this.JSC$17603_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Rd(this,new NO(this.JSC$17603_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17603_session_&&
this.JSC$17603_session_.receiver_.label==W.label?this.JSC$17603_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.r.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("Wk"));var e=W.receiver;e.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+e.friendlyName),e.receiverType=chrome.cast.ReceiverType.DIAL);var t=this.JSC$17603_session_?this.JSC$17603_session_.receiver_:null;if(!t||t.label!=e.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+e.friendlyName),Promise.reject(Error("Xk"));if(t&&t.label==e.label&&t.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17603_session_.screen_)return qH("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17603_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+t.receiverType+'" to "dial" for '+e.friendlyName);Rd(this,new dm(this.JSC$17603_screenService_,e,this.JSC$17603_theme_,this.config_))}e=this.JSC$17603_session_;e.launchData_=W;e.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=e.launchData_.extraData||{},t=W.screenId||null,ddU(e)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=mrw(e,{name:e.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:e.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.st(Error("Tk`"+JSON.stringify(W))),W=r2g(e,t)):W=r2g(e,t)):W=t8C(e);return W};
_.r.onSessionEstablished_=function(W){var e=this;if(!this.isDisposed()&&!this.forceMirroring_){qH("New cast session ID: "+W.sessionId);var t=W.receiver;if(t.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17603_session_)if(t.receiverType==chrome.cast.ReceiverType.CAST)qH("Got resumed cast session before resumed mdx connection."),t.friendlyName=chrome.cast.unescape(t.friendlyName),Rd(this,new NO(this.JSC$17603_screenService_,t,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var b=this.JSC$17603_session_.receiver_,m=fW(this.JSC$17603_screenService_.getScreens(),b.label);m&&nW(m,t.label)&&b.receiverType!=chrome.cast.ReceiverType.CAST&&t.receiverType==chrome.cast.ReceiverType.CAST&&(qH("onSessionEstablished_: manual to cast session change "+t.friendlyName),_.NL(this.JSC$17603_session_),this.JSC$17603_session_=new NO(this.JSC$17603_screenService_,t,this.config_),this.JSC$17603_session_.subscribe("sessionScreen",(0,_.p3)(this.onSessionScreen_,this,this.JSC$17603_session_)),
this.JSC$17603_session_.subscribe("sessionFailed",function(){return FwT(e,e.JSC$17603_session_)}),this.JSC$17603_session_.launchWithParams(null));
this.JSC$17603_session_.setCastSession(W)}}};
_.r.JSC$17605_getCastSession=function(){return this.JSC$17603_session_?this.JSC$17603_session_.JSC$17589_getCastSession():null};
_.r.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.nV)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&Rd(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.r.onReceiverUpdated_=function(W){qH("Receiver availability updated: "+W);if(!this.isDisposed()){var e=ro(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;ro(this)!=e&&this.publish("yt-remote-cast2-availability-change",ro(this))}};
var RYB=function(W){var e=W.JSC$17603_screenService_.JSC$17585_getOnlineScreens(),t=W.JSC$17603_session_&&W.JSC$17603_session_.receiver_;W=_.yO(e,function(b){t&&nW(b,t.label)&&(t=null);var m=b.uuid?b.uuid:b.id,q=Q0U(this,b);q?(q.label=m,q.friendlyName=b.name):(q=new chrome.cast.Receiver(m,b.name),q.receiverType=chrome.cast.ReceiverType.CUSTOM);return q},W);
t&&(t.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(t=new chrome.cast.Receiver(t.label,t.friendlyName),t.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(t));return W};
U_.prototype.JSC$17605_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=RYB(this),qH("Updating custom receivers: "+(0,_.nV)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.p3)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",ro(this)))};
U_.prototype.setLaunchParams=U_.prototype.setLaunchParams;U_.prototype.setConnectedScreenStatus=U_.prototype.setConnectedScreenStatus;U_.prototype.stopSession=U_.prototype.JSC$17605_stopSession;U_.prototype.getCastSession=U_.prototype.JSC$17605_getCastSession;U_.prototype.requestSession=U_.prototype.requestSession;U_.prototype.init=U_.prototype.init;U_.prototype.dispose=U_.prototype.dispose;var YTT=[];var X2E=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.RP();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.r=LW.prototype;
_.r.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.r.stopPlayer=function(){this.index=-1;this.videoId="";X2E(this)};
_.r.isPlaying=function(){return this.playerState==1};
_.r.isBuffering=function(){return this.playerState==3};
_.r.isAdPlaying=function(){return this.playerState==1081};
var Qa=function(W,e){W.playerTime_=e;W.playerTimeAt_=_.RP()},IB9=function(W){switch(W.playerState){case 1:case 1081:return(_.RP()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
LW.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.RP()-this.playerTimeAt_)/1E3:0):this.duration_};
var aBU=function(W,e,t){var b=W.videoId;W.videoId=e;W.index=t;e!=b&&X2E(W)},w2l=function(W){var e={};
e.index=W.index;e.listId=W.listId;e.videoId=W.videoId;e.playerState=W.playerState;e.volume=W.volume;e.muted=W.muted;e.audioTrackId=W.audioTrackId;e.trackData=_.kJ.unsafeClone(W.trackData);e.hasPrevious=W.hasPrevious;e.hasNext=W.hasNext;e.playerTime=W.playerTime_;e.playerTimeAt=W.playerTimeAt_;e.seekableStart=W.seekableStart_;e.seekableEnd=W.seekableEnd_;e.duration=W.duration_;e.loadedTime=W.loadedTime;e.liveIngestionTime=W.liveIngestionTime_;return e};
LW.prototype.clone=function(){return new LW(w2l(this))};var F7=function(W,e){_.Li.call(this);var t=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new PUS;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.p3)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.p3)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.p3)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.p3)(this.onCloudviewAvailabilityChange_,this);var b=0;W?(b=W.getProxyState(),
b!=3&&(W.subscribe("proxyStateChange",this.setState_,this),uWE(this))):b=3;b!=0&&(e?this.setState_(b):_.Qm(function(){t.setState_(b)},0));
(W=E41())&&c2T(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.Z(F7,_.Li);F7.prototype.getState=function(){return this.state_};
F7.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
F7.prototype.reconnect=function(){this.connection_.reconnect()};
var X7=function(W){return new LW(W.connection_.getPlayerContextData())};
_.r=F7.prototype;_.r.play=function(){Id(this)?(this.castMedia_?this.castMedia_.play(null,_.SQ,v0M(this,"play")):ad(this,"play"),G3$(this,1,IB9(X7(this))),this.publish("remotePlayerChange")):wo(this,this.play)};
_.r.pause=function(){Id(this)?(this.castMedia_?this.castMedia_.pause(null,_.SQ,v0M(this,"pause")):ad(this,"pause"),G3$(this,2,IB9(X7(this))),this.publish("remotePlayerChange")):wo(this,this.pause)};
_.r.seekTo=function(W){if(Id(this)){if(this.castMedia_){var e=X7(this),t=new chrome.cast.media.SeekRequest;t.currentTime=W;e.isPlaying()||e.isBuffering()?t.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:t.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(t,_.SQ,v0M(this,"seekTo",{newTime:W}))}else ad(this,"seekTo",{newTime:W});G3$(this,3,W);this.publish("remotePlayerChange")}else wo(this,_.Sz(this.seekTo,W))};
_.r.stop=function(){if(Id(this)){this.castMedia_?this.castMedia_.stop(null,_.SQ,v0M(this,"stopVideo")):ad(this,"stopVideo");var W=X7(this);W.stopPlayer();ub(this,W);this.publish("remotePlayerChange")}else wo(this,this.stop)};
_.r.setVolume=function(W,e){if(Id(this)){var t=X7(this);if(this.castSession_){if(t.volume!=W){var b=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(b,(0,_.p3)(function(){MF("set receiver volume: "+b)},this),(0,_.p3)(function(){this.warn_("failed to set receiver volume.")},this))}t.muted!=e&&this.castSession_.setReceiverMuted(e,(0,_.p3)(function(){MF("set receiver muted: "+e)},this),(0,_.p3)(function(){this.warn_("failed to set receiver muted.")},this))}else{var m={volume:W,
muted:e};t.volume!=-1&&(m.delta=W-t.volume);ad(this,"setVolume",m)}t.muted=e;t.volume=W;ub(this,t)}else wo(this,_.Sz(this.setVolume,W,e))};
_.r.setAudioTrack=function(W,e){Id(this)?(e=e.getLanguageInfo().getId(),ad(this,"setAudioTrack",{videoId:W,audioTrackId:e}),W=X7(this),W.audioTrackId=e,ub(this,W)):wo(this,_.Sz(this.setAudioTrack,W,e))};
_.r.addVideo=function(W){Id(this)?ad(this,"addVideo",{videoId:W}):wo(this,_.Sz(this.addVideo,W))};
_.r.addPlaylist=function(W){Id(this)?ad(this,"addVideos",{listId:W}):wo(this,_.Sz(this.addPlaylist,W))};
_.r.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):Id(this)?ad(this,"addVideos",{videoIds:W.join(",")}):wo(this,_.Sz(this.addVideos,W))};
_.r.JSC$17615_removeVideo=function(W){Id(this)?ad(this,"removeVideo",{videoId:W}):wo(this,_.Sz(this.JSC$17615_removeVideo,W))};
_.r.JSC$17615_insertVideo=function(W){Id(this)?ad(this,"insertVideo",{videoId:W}):wo(this,_.Sz(this.JSC$17615_insertVideo,W))};
_.r.playVideo=function(W,e,t,b,m,q,Q){b=b===void 0?null:b;m=m===void 0?null:m;q=q===void 0?null:q;Q=Q===void 0?null:Q;var X=X7(this),I={videoId:W};t!==void 0&&(I.currentIndex=t);aBU(X,W,t||0);e!==void 0&&(Qa(X,e),I.currentTime=e);b&&(I.listId=b);m&&(I.playerParams=m);q&&(I.clickTrackingParams=q);Q&&(I.locationInfo=(0,_.nV)(Q));ad(this,"setPlaylist",I);b||ub(this,X)};
_.r.nextVideo=function(W,e){if(Id(this)){if(W&&e){var t=X7(this);aBU(t,W,e);ub(this,t)}ad(this,"next")}else wo(this,_.Sz(this.nextVideo,W,e))};
_.r.clearPlaylist=function(){if(Id(this)){ad(this,"clearPlaylist");var W=X7(this);W.reset();ub(this,W);this.publish("remotePlayerChange")}else wo(this,this.clearPlaylist)};
_.r.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.Li.prototype.dispose.call(this)};
_.r.disposeInternal=function(){Dru(this);this.connection_=null;this.actionQueue_.clear();c2T(this,null);_.Li.prototype.disposeInternal.call(this)};
var uWE=function(W){_.VZ("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(e){this.contextSubscriptions_.push(this.connection_.subscribe(e,_.Sz(this.onProxyEvent_,e),this))},W)},Dru=function(W){_.VZ(W.contextSubscriptions_,function(e){this.connection_.unsubscribeByKey(e)},W);
W.contextSubscriptions_.length=0},Id=function(W){return W.getState()==1},wo=function(W,e){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(e)},G3$=function(W,e,t){var b=X7(W);
Qa(b,t);b.playerState!=-1E3&&(b.playerState=e);ub(W,b)},ad=function(W,e,t){W.connection_.sendMessage(e,t)},ub=function(W,e){Dru(W);
W.connection_.setPlayerContextData(w2l(e));uWE(W)};
F7.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var e=this.state_;this.state_=W;this.publish("proxyStateChange",e,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,TJ1(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
F7.prototype.onProxyEvent_=function(W,e){this.publish(W,e)};
var c2T=function(W,e){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=e;if(W.castSession_&&(MF("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
F7.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),c2T(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var e=X7(this),t=Math.round(100*W.level||0);if(e.volume!=t||e.muted!=W.muted)MF("Cast volume update: "+W.level+(W.muted?" muted":"")),e.volume=t,e.muted=!!W.muted,ub(this,e)}};
F7.prototype.onCastMediaChange_=function(W){MF("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),SjT(this),this.publish("remotePlayerChange")};
var SjT=function(W){var e=W.castMedia_.media,t=W.castMedia_.customData;if(e&&t){var b=X7(W);e.contentId!=b.videoId&&MF("Cast changing video to: "+e.contentId);b.videoId=e.contentId;b.playerState=t.playerState;Qa(b,W.castMedia_.getEstimatedTime());ub(W,b)}else MF("No cast media video. Ignoring state update.")};
F7.prototype.onCastMediaUpdate_=function(W){if(W)SjT(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
F7.prototype.onCloudviewAvailabilityChange_=function(){var W=E41();W&&c2T(this,W)};
F7.prototype.warn_=function(W){O_("CP",W)};
var v0M=function(W,e,t){return(0,_.p3)(function(b){this.warn_("Failed to "+e+" with cast v2 channel. Error code: "+b.code);b.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+e+" using MDx browser channel."),ad(this,e,t))},W)};var vP=function(W,e,t,b){b=b===void 0?!1:b;_.Li.call(this);var m=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$17622_http_=W;this.enableConnectWithInitialState_=b;this.listeners_.push(_.W3(window,"beforeunload",function(){m.JSC$17625_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new LW;this.currentScreenId_=e.id;this.currentScreenIdType_=e.idType;this.channelService=G4U(this.JSC$17622_http_,t,this.JSC$17625_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){BSM(m)});
this.channelService.listen("channelClosed",function(){cP("Channel closed");isNaN(m.connectTimerId_)?gh(!0):gh();m.dispose()});
this.channelService.listen("channelError",function(q){gh();isNaN(m.getReconnectTimeout_())?(q==1&&m.currentScreenIdType_=="shortLived"&&m.publish("browserChannelAuthError",q),cP("Channel error: "+q+" without reconnection"),m.dispose()):(m.reconnecting_=!0,cP("Channel error: "+q+" with reconnection in "+m.getReconnectTimeout_()+" ms"),o0S(m,2))});
this.channelService.listen("channelMessage",function(q){lBE(m,q)});
this.channelService.setLoungeToken(e.token);this.subscribe("remoteQueueChange",function(){var q=m.playerContext_.videoId;bcU()&&_.X_("yt-remote-session-video-id",q)})};
_.Z(vP,_.Li);
vP.prototype.connect=function(W,e){if(e){var t=e.listId,b=e.videoId,m=e.videoIds,q=e.playerParams,Q=e.clickTrackingParams,X=e.index,I={videoId:b},u=e.currentTime,c=e.locationInfo;e=e.loopMode;u!==void 0&&(I.currentTime=u<=5?0:u);q&&(I.playerParams=q);c&&(I.locationInfo=c);Q&&(I.clickTrackingParams=Q);t&&(I.listId=t);m&&m.length>0&&(I.videoIds=m.join(","));X!==void 0&&(I.currentIndex=X);this.enableConnectWithInitialState_&&(I.loopMode=e||"LOOP_MODE_OFF");t&&(this.playerContext_.listId=t);this.playerContext_.videoId=
b;this.playerContext_.index=X||0;this.playerContext_.state=3;Qa(this.playerContext_,u);this.autoplayMode_="UNSUPPORTED";t=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";cP("Connecting with "+t+" and params: "+(0,_.nV)(I));this.channelService.connect({method:t,params:(0,_.nV)(I)},W,QBE())}else cP("Connecting without params"),this.channelService.connect({},W,QBE());Z5$(this)};
vP.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
vP.prototype.dispose=function(){this.isDisposed()||(_.Nz("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),o0S(this,3));_.Li.prototype.dispose.call(this)};
vP.prototype.disposeInternal=function(){$rQ(this);k3E(this);p2w(this);_.Xe(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Xe(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.iB2(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Li.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var y21=function(W){return _.Ms(W.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"})},cP=function(W){O_("conn",W)},o0S=function(W,e){W.publish("proxyStateChange",e)},Z5$=function(W){W.connectTimerId_=_.Qm(function(){cP("Connecting timeout");
W.JSC$17625_disconnect_(1)},2E4)},$rQ=function(W){_.Xe(W.connectTimerId_);
W.connectTimerId_=NaN},p2w=function(W){_.Xe(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},j0g=function(W){k3E(W);
W.playingSyncTimerId_=_.Qm(function(){GK(W,"getNowPlaying")},2E4)},k3E=function(W){_.Xe(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},BSM=function(W){cP("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,p2w(W),W.reconnectedCheckScreenTimeout_=_.Qm(function(){cP("Timing out waiting for a screen.");W.JSC$17625_disconnect_(1)},15E3))},n0g=function(W,e){var t=null;
if(e){var b=y21(W);b&&(t={clientName:b.clientName,deviceMake:b.brand,deviceModel:b.model,osVersion:b.osVersion})}_.Nz("yt.mdx.remote.remoteClient_",t);e&&($rQ(W),p2w(W));t=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);e==t?e&&(o0S(W,1),GK(W,"getSubtitlesTrack")):e?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),o0S(W,1),GK(W,"getNowPlaying"),C6T(W)):W.JSC$17625_disconnect_(1)},fBT=function(W,e){var t=e.params.videoId;
delete e.params.videoId;t==W.playerContext_.videoId&&(_.kJ.isEmpty(e.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=e.params,W.publish("remotePlayerChange"))},g0C=function(W,e,t){var b=e.params.videoId||e.params.video_id,m=parseInt(e.params.currentIndex,10);
W.playerContext_.listId=e.params.listId||W.playerContext_.listId;aBU(W.playerContext_,b,m);W.publish("remoteQueueChange",t)},TSB=function(W,e){e.params=e.params||{};
g0C(W,e,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(e);W.publish("autoplayDismissed")};
vP.prototype.onStateChange_=function(W){var e=parseInt(W.params.currentTime||W.params.current_time,10);Qa(this.playerContext_,isNaN(e)?0:e);e=parseInt(W.params.state,10);e=isNaN(e)?-1:e;e==-1&&this.playerContext_.playerState==-1E3&&(e=-1E3);this.playerContext_.playerState=e;e=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(e)?0:e;e=Number(W.params.duration);this.playerContext_.duration_=isNaN(e)?0:e;e=this.playerContext_;var t=Number(W.params.liveIngestionTime);e.liveIngestionTime_=
t;e.isLive_=isNaN(t)?!1:!0;e=this.playerContext_;t=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);e.seekableStart_=isNaN(t)?0:t;e.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?j0g(this):k3E(this);this.publish("remotePlayerChange")};
vP.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var e=1085;switch(parseInt(W.params.adState,10)){case 1:e=1081;break;case 2:e=1084;break;case 0:e=1083}this.playerContext_.playerState=e;W=parseInt(W.params.currentTime,10);Qa(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var J2B=function(W,e){var t=e.params.muted=="true";W.playerContext_.volume=parseInt(e.params.volume,10);W.playerContext_.muted=t;W.publish("remotePlayerChange")},xrC=function(W,e){W.autoplayVideoId_=e.params.videoId;
W.publish("nowAutoplaying",parseInt(e.params.timeout,10))},O5C=function(W,e){W.autoplayVideoId_=e.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},M8B=function(W,e){W.autoplayMode_=e.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},s0E=function(W,e){var t=e.params.hasNext=="true";
W.playerContext_.hasPrevious=e.params.hasPrevious=="true";W.playerContext_.hasNext=t;W.publish("previousNextChange")};
vP.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var e=_.R(this.connectedDevices_),t=e.next();!t.done;t=e.next())if(!t.value.capabilities.has(W))return!1;return!0};
var lBE=function(W,e){e=e.message;e.params?cP("Received: action="+e.action+", params="+(0,_.nV)(e.params)):cP("Received: action="+e.action+" {}");switch(e.action){case "loungeStatus":e=(0,_.pc)(e.params.devices);W.connectedDevices_=_.yO(e,function(b){return new zU(b)});
e=!!_.Ms(W.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
n0g(W,e);e=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",e);break;case "loungeScreenDisconnected":lKE(W.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
n0g(W,!1);break;case "remoteConnected":var t=new zU((0,_.pc)(e.params.device));_.Ms(W.connectedDevices_,function(b){return b.equals(t)})||_.Y9(W.connectedDevices_,t);
break;case "remoteDisconnected":t=new zU((0,_.pc)(e.params.device));lKE(W.connectedDevices_,function(b){return b.equals(t)});
break;case "gracefulDisconnect":break;case "playlistModified":g0C(W,e,"QUEUE_MODIFIED");break;case "nowPlaying":TSB(W,e);break;case "onStateChange":W.onStateChange_(e);break;case "onAdStateChange":W.onAdStateChange_(e);break;case "onVolumeChanged":J2B(W,e);break;case "onSubtitlesTrackChanged":fBT(W,e);break;case "nowAutoplaying":xrC(W,e);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":O5C(W,e);break;case "onAutoplayModeChanged":M8B(W,e);break;case "onHasPreviousNextChanged":s0E(W,
e);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",e.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",e.params.loopMode);break;default:cP("Unrecognized action: "+e.action)}};
_.r=vP.prototype;_.r.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.r.JSC$17625_disconnect_=function(W){cP("Disconnecting with "+W);_.Nz("yt.mdx.remote.remoteClient_",null);$rQ(this);this.publish("beforeDisconnect",W);W==1&&gh();this.channelService.disconnect(W);this.dispose()};
_.r.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),aBU(W,this.clientVideoId_,W.index));return w2l(W)};
_.r.setPlayerContextData_=function(W){var e=this,t=new LW(W);t.videoId&&t.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=t.videoId,_.Xe(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Qm(function(){if(e.clientVideoId_){var m=e.clientVideoId_;e.clientVideoId_=null;e.playerContext_.videoId!=m&&GK(e,"getNowPlaying")}},5E3));
var b=[];this.playerContext_.listId==t.listId&&this.playerContext_.videoId==t.videoId&&this.playerContext_.index==t.index||b.push("remoteQueueChange");this.playerContext_.playerState==t.playerState&&this.playerContext_.volume==t.volume&&this.playerContext_.muted==t.muted&&IB9(this.playerContext_)==IB9(t)&&(0,_.nV)(this.playerContext_.trackData)==(0,_.nV)(t.trackData)||b.push("remotePlayerChange");this.playerContext_.reset(W);_.VZ(b,function(m){this.publish(m)},this)};
_.r.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),e=_.Ms(this.connectedDevices_,function(t){return t.type=="REMOTE_CONTROL"&&t.id!=W});
return e?e.id:""};
_.r.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.r.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.r.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.r.JSC$17625_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var C6T=function(W){_.Xe(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.Qm(function(){W.JSC$17625_disconnect_(1)},864E5)},GK=function(W,e,t){t?cP("Sending: action="+e+", params="+(0,_.nV)(t)):cP("Sending: action="+e);
W.channelService.sendMessage(e,t)};
vP.prototype.sendMessageWithUserAction_=function(W,e){GK(this,W,e);C6T(this)};
vP.prototype.JSC$17625_getXsrfToken_=function(){var W=_.vi.get("SAPISID","")||_.vi.get("__Secure-1PAPISID",void 0)||"",e=_.vi.get("__Secure-3PAPISID","")||"";if(!W&&!e)return"";W=_.eK(_.$a(W),2);e=_.eK(_.$a(e),2);return _.eK(_.$a(","+W+","+e),2)};
vP.prototype.subscribe=vP.prototype.subscribe;vP.prototype.unsubscribeByKey=vP.prototype.unsubscribeByKey;vP.prototype.getProxyState=vP.prototype.getProxyState_;vP.prototype.disconnect=vP.prototype.JSC$17625_disconnect_;vP.prototype.getPlayerContextData=vP.prototype.getPlayerContextData_;vP.prototype.setPlayerContextData=vP.prototype.setPlayerContextData_;vP.prototype.getOtherConnectedRemoteId=vP.prototype.getOtherConnectedRemoteId_;vP.prototype.getReconnectTimeout=vP.prototype.getReconnectTimeout_;
vP.prototype.getAutoplayMode=vP.prototype.getAutoplayMode_;vP.prototype.getAutoplayVideoId=vP.prototype.getAutoplayVideoId_;vP.prototype.reconnect=vP.prototype.JSC$17625_reconnect_;vP.prototype.sendMessage=vP.prototype.sendMessageWithUserAction_;vP.prototype.getXsrfToken=vP.prototype.JSC$17625_getXsrfToken_;vP.prototype.isCapabilitySupportedOnConnectedDevices=vP.prototype.isCapabilitySupportedOnConnectedDevices_;var hYu=function(W){h4.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.p3)(this.JSC$17628_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.p3)(this.onOnlineScreenChange_,this)))};
_.Z(hYu,h4);_.r=hYu.prototype;_.r.getScreens=function(W){return this.instance_.$_gs(W)};
_.r.contains=function(W){return!!this.instance_.$_c(W)};
_.r.get=function(W){return this.instance_.$_g(W)};
_.r.start=function(){this.instance_.$_st()};
_.r.add=function(W,e,t){this.instance_.$_a(W,e,t)};
_.r.remove=function(W,e,t){this.instance_.$_r(W,e,t)};
_.r.updateName=function(W,e,t,b){this.instance_.$_un(W,e,t,b)};
_.r.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,e=0;e<W;++e)this.instance_.$_ubk(this.subscriptionKeys_[e]);this.subscriptionKeys_.length=0;this.instance_=null;h4.prototype.disposeInternal.call(this)};
_.r.JSC$17628_onScreenChange_=function(){this.publish("screenChange")};
_.r.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Pp.prototype.$_st=Pp.prototype.start;Pp.prototype.$_gspc=Pp.prototype.JSC$17585_getScreenByPairingCode;Pp.prototype.$_gsppc=Pp.prototype.JSC$17585_getScreenByPollingPairingCode;Pp.prototype.$_c=Pp.prototype.contains;Pp.prototype.$_g=Pp.prototype.get;Pp.prototype.$_a=Pp.prototype.add;Pp.prototype.$_un=Pp.prototype.updateName;Pp.prototype.$_r=Pp.prototype.remove;Pp.prototype.$_gs=Pp.prototype.getScreens;Pp.prototype.$_gos=Pp.prototype.JSC$17585_getOnlineScreens;Pp.prototype.$_s=Pp.prototype.subscribe;
Pp.prototype.$_ubk=Pp.prototype.unsubscribeByKey;var zYS=function(W){aZg();if(!T5||!T5.get("yt-remote-disable-remote-module-for-dev")){W=_.Ot("MDX_CONFIG")||W;ZaE();rjw();Di||(Di=new j9(W?W.loungeApiHost:void 0),wFu()&&(Di.basePath="/api/loungedev"));Sx||(Sx=_.HO("yt.mdx.remote.deferredProxies_")||[],_.Nz("yt.mdx.remote.deferredProxies_",Sx));H5g();var e=BP();if(!e){var t=new Pp(Di,W?W.disableAutomaticScreenCache||!1:!1);_.Nz("yt.mdx.remote.screenService_",t);e=BP();var b={};W&&(b={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.Nz("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);VVC(t,function(q){q?od()&&N3$(od(),"YouTube TV"):t.subscribe("onlineScreenChange",function(){e9("yt-remote-receiver-availability-change")})},b)}if(W&&!_.HO("yt.mdx.remote.initialized_")){_.Nz("yt.mdx.remote.initialized_",!0);
lb("Initializing: "+(0,_.nV)(W));Zi.push(_.Rz("yt-remote-cast2-api-ready",function(){e9("yt-remote-api-ready")}));
Zi.push(_.Rz("yt-remote-cast2-availability-change",function(){e9("yt-remote-receiver-availability-change")}));
Zi.push(_.Rz("yt-remote-cast2-receiver-selected",function(){KwB();e9("yt-remote-auto-connect","cast-selector-receiver")}));
Zi.push(_.Rz("yt-remote-cast2-receiver-resumed",function(){e9("yt-remote-receiver-resumed","cast-selector-receiver")}));
Zi.push(_.Rz("yt-remote-cast2-session-change",P6U));Zi.push(_.Rz("yt-remote-connection-change",function(q){q?N3$(od(),"YouTube TV"):V8U()||(N3$(null,null),L$l())}));
Zi.push(_.Rz("yt-remote-cast2-session-failed",function(){e9("yt-remote-connection-failed")}));
b=i5C();W.isAuto&&(b.id+="#dial");var m=W.capabilities||[];m.length>0&&(b.capabilities=m);b.name=W.device;b.app=W.app;(W=W.theme)&&(b.theme=W);lb(" -- with channel params: "+(0,_.nV)(b));b?(_.X_("yt-remote-session-app",b.app),_.X_("yt-remote-session-name",b.name)):(_.ae("yt-remote-session-app"),_.ae("yt-remote-session-name"));_.Nz("yt.mdx.remote.channelParams_",b);e.start();od()||Yju()}}},Lwu=function(){var W=BP().instance_.$_gos();
var e=UrB();e&&$p()&&(W$w(W,e)||W.push(e));return dnU(W)},E0C=function(){var W=Lwu(),e=UrB();
e||(e=V8U());return _.Ms(W,function(t){return e&&nW(e,t.key)?!0:!1})},UrB=function(){var W=od();
if(!W)return null;var e=BP().getScreens();return fW(e,W)},P6U=function(W){lb("remote.onCastSessionChange_: "+dgB(W));
if(W){var e=UrB();e&&e.id==W.id?(N3$(e.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token)&&(e=$p())&&e.setLoungeToken(W)):(e&&A2E(),NSQ(W,1))}else $p()&&A2E()},A2E=function(){AjQ()?z5().stopSession():Yj("stopSession called before API ready.");
var W=$p();W&&(W.disconnect(1),drQ(null))},Wyw=function(){var W=$p();
return W&&W.getProxyState()!=3?new F7($p(),void 0):null},lb=function(W){O_("remote",W)},BP=function(){if(!edU){var W=_.HO("yt.mdx.remote.screenService_");
edU=W?new hYu(W):null}return edU},od=function(){return _.HO("yt.mdx.remote.currentScreenId_")},t1T=function(W){_.Nz("yt.mdx.remote.currentScreenId_",W)},KwB=function(){_.Nz("yt.mdx.remote.connectData_",null)},$p=function(){return _.HO("yt.mdx.remote.connection_")},drQ=function(W){var e=$p();
KwB();W||t1T("");_.Nz("yt.mdx.remote.connection_",W);Sx&&(_.VZ(Sx,function(t){t(W)}),Sx.length=0);
e&&!W?e9("yt-remote-connection-change",!1):!e&&W&&e9("yt-remote-connection-change",!0)},V8U=function(){var W=bcU();
if(!W)return null;var e=BP();if(!e)return null;e=e.getScreens();return fW(e,W)},NSQ=function(W,e){t1T(W.id);
W=new vP(Di,W,i5C(),_.HO("yt.mdx.remote.enableConnectWithInitialState_")||!1);W.connect(e,_.HO("yt.mdx.remote.connectData_"));W.subscribe("beforeDisconnect",function(t){e9("yt-remote-before-disconnect",t)});
W.subscribe("beforeDispose",function(){$p()&&drQ(null)});
W.subscribe("browserChannelAuthError",function(){var t=UrB();t&&t.idType=="shortLived"&&(AjQ()?z5().handleBrowserChannelAuthError():Yj("refreshLoungeToken called before API ready."))});
drQ(W)},Yju=function(){var W=V8U();
W?(lb("Resume connection to: "+dgB(W)),NSQ(W,0)):(gh(),L$l(),lb("Skipping connecting because no session screen found."))},Di=null,Sx=null,edU=null,H5g=function(){var W=i5C();
if(_.kJ.isEmpty(W)){W=tVQ();var e=_.Ie("yt-remote-session-name")||"",t=_.Ie("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:e,app:t,mdxVersion:3};W.authuser=String(_.Ot("SESSION_INDEX","0"));(e=_.Ot("DELEGATED_SESSION_ID"))&&(W.pageId=String(e));_.Nz("yt.mdx.remote.channelParams_",W)}},i5C=function(){return _.HO("yt.mdx.remote.channelParams_")||{}},Zi=[];var bTB=new _.sH("yt-menu"),mQU=function(){},quw=function(W,e,t){W=e=="right-click"?t.rightClickMenuPopupHint:t.menuPopupHint;
if(!(rhQ(e)>10))return e=e||"default",bTB.set(e+"-impression",rhQ(e)+1),W},rhQ=function(W){return parseInt(bTB.get((W||"default")+"-impression")||0,10)};
_.q7(mQU);var Rd1=function(){this.contexts_=new WeakMap;this.JSC$17634_networkService_=this.activeContext_=null},Qe9=function(W,e,t){var b=W.contexts_.get(e);
b||(b=new oD1(W.JSC$17634_networkService_),W.contexts_.set(e,b));W.activeContext_=b;t&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var kp=function(){};
kp.prototype.enqueue=function(){var W=this,e;return _.F(function(t){if(W.isCounterfactual())return(e=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(e),t.return();W.doEnqueue();_.u8(t)})};
kp.prototype.sendImpressionEndpoints=function(W){_.P3.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var pp=function(W,e){this.renderer=W;this.page=e};
_.Z(pp,kp);pp.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
pp.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
pp.prototype.shouldLogCounterfactualImpression=function(){return!0};
pp.prototype.doEnqueue=function(){var W=_.eX(this.page);W&&W.pause();this.renderer.impressionCommand&&_.P3.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.xc(_.P3.getInstance(),[this.renderer.promoCommand],this.page)};var FyC=function(W,e){this.renderer=W;this.resolver=_.UZ();this.JSC$17646_enforcementCounter=new _.Md8;e?this.JSC$17646_playerManager=_.eX(e):this.JSC$17646_playerManager=null;_.um(1,!0)};
_.Z(FyC,kp);_.r=FyC.prototype;_.r.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(e){(e=_.Mk(e))&&W.push(e)});
return W}};
_.r.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.r.shouldLogCounterfactualImpression=function(){var W=_.rgG();W?(this.JSC$17646_enforcementCounter.increment("POPUP"),_.um(3)):_.um(2);return W};
_.r.cancel=function(){this.resolver.promise.cancel()};
_.r.doEnqueue=function(){var W=this;_.rgG()?(this.JSC$17646_enforcementCounter.increment("POPUP"),_.um(3),X19(this)):this.JSC$17646_playerManager?(this.resolver.promise.then(function(){X19(W)}),IUB(this.resolver,this.JSC$17646_playerManager)):_.um(2)};
var IUB=function(W,e){var t=_.UZ();e.getPlayerPromise().then(function(b){t.resolve(b)});
t.promise.then(function(b){b.addEventListener("onAbnormalityDetected",W.resolve);_.yd(W.promise,function(){b.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){t.promise.cancel()})},X19=function(W){_.um(3);
var e={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};e=_.P3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});Promise.all(e).then(function(){aUQ();W.JSC$17646_playerManager&&W.JSC$17646_playerManager.pause()})},aUQ=function(){R_Q(function(W,e){_.mz1(W,e);
W===0?_.um(7):_.um(4)})};var w1U=function(W,e){this.renderer=W;this.page=e;this.resolver=_.UZ()};
_.Z(w1U,kp);_.r=w1U.prototype;_.r.cancel=function(){this.resolver.promise.cancel()};
_.r.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.r.isCounterfactual=function(){return!this.renderer.isVisible};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var t={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.P3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var e=_.eX(this.page);e&&u_C(this.resolver,e)}break;default:this.resolver.resolve()}};
var u_C=function(W,e){var t=_.UZ();e.getPlayerPromise().then(function(b){t.resolve(b)});
t.promise.then(function(b){b.addEventListener("onAdEnd",W.resolve);_.yd(W.promise,function(){b.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){t.promise.cancel()})};var chS=function(W,e){this.renderer=W;this.page=e};
_.Z(chS,kp);_.r=chS.prototype;_.r.cancel=function(){this.JSC$17654_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17654_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17654_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.r.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.r.isCounterfactual=function(){return!this.renderer.isVisible};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var W=this,e,t;((e=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(t=e.playbackUpsellDialogTriggerConditionData)==null?void 0:t.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17654_downloadedVideosCountSelectorUnsubscriber=_.S8(_.Eb(),tJU,function(b,m){b>m&&(v6U(W),W.cancel())}):v6U(this)};
var v6U=function(W){var e={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.P3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:e},{});(W=_.eX(W.page))&&W.pause()};var ya={},GI$=(ya.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",ya.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",ya.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",ya.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",ya.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",ya.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",ya.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",ya),DQQ=function(W,e){this.renderer=W;this.targetManager=
e};
_.Z(DQQ,kp);_.r=DQQ.prototype;_.r.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17661_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17661_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17661_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.r.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.r.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.r.shouldLogCounterfactualImpression=function(){return!0};
_.r.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17661_downloadedVideosCountSelectorUnsubscriber=_.S8(_.Eb(),tJU,function(e,t){W.renderer.targetId&&e>t&&(Yz9(W.targetManager,W.renderer.targetId,Sug(W)),W.cancel())});
break;default:Yz9(this.targetManager,this.renderer.targetId,Sug(this))}};
var Sug=function(W){var e;if((e=W.renderer.suggestedPosition)==null?0:e.type)var t=GI$[W.renderer.suggestedPosition.type];t||(t="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:t}}};var Bt9=function(){this.previousPage=null},o6B;
Bt9.prototype.registerPromoCommand=function(W,e){lUE(this,void 0,void 0,_.l(W.roadblock,sUU),void 0,void 0,e)};
var lUE=function(W,e,t,b,m,q,Q){W.previousPage!==Q&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=Q;m?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new FyC(m,Q),W.pendingEnforcementPromo.enqueue()):q?(W.pendingCommandWrapperPromo=new pp(q,Q),W.pendingCommandWrapperPromo.enqueue()):b?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new chS(b,Q),W.pendingRoadblockPromo.enqueue()):e?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new w1U(e,Q),W.pendingMealbarPromo.enqueue()):t&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new DQQ(t,_.k6()),W.pendingTooltipPromo.enqueue())},ZTT=function(){o6B||(o6B=new Bt9);
return o6B};var beE=!1;var A8T=function(W,e){var t=_.Ot("SESSION_INDEX");this.actionToken_=W;this.commonToken_=e;this.sessionIndex_=t},EQQ=function(W){var e=_.UZ(),t=_.HO("payments.business.integration.bootstrap"),b=_.HO("payments.business.integration"),m=b.Style.create().withMaterialDesignStyle(),q=b.mashupMode.popup("instrument-manager");
t.asMashupMode(q).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(m).inStandaloneContext(b.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(Q){var X=Q.instrumentId;X?e.resolve(X):(X=_.HO("payments.business.integration.scenario.InstrumentManager"),e.reject(Q.errorCode&&Q.errorCode===X.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Q){_.st(Q);
e.reject("instrumentManagerLoadError")});
return e.promise};var W0=function(W,e,t){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:e,isUserDismiss:t===void 0?!1:t}};
_.Nz("yt.ypc.shared.YpcTransactionFlowError",W0);var jx=function(){return _.D0.apply(this,arguments)||this};
_.Z(jx,_.D0);jx.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
jx.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
jx.prototype.onErrorMessageDismiss=jx.prototype.onErrorMessageDismiss;_.P([_.J({readOnly:!0,observer:"errorRendererChanged"}),_.Y("design:type",Object)],jx.prototype,"errorRenderer",void 0);_.P([_.wz("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jx.prototype,"onErrorMessageDismiss",null);_.P([_.SB()],jx);var $Qg=[jx.prototype];var kIC;var p19;var yhS=new _.sH("yt-live-chat"),jeg=new Map;jeg.set("timestamp_toggle","show-timestamps");jeg.set("reactions_toggle","allow-reactions");var Cp=function(){return _.O.apply(this,arguments)||this};
_.Z(Cp,_.O);_.r=Cp.prototype;_.r.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=jeg.get(this.data.menuItemIdentifier))&&(_.S("enable_lwe_web_mute")?(W=yhS.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=yhS.get(W))};
_.r.onFocus=function(){this.toggleButton.focus()};
_.r.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.r.computeText=function(W,e,t){return this.componentBehavior.getSimpleString(W?t:e)};
_.r.computeIcon=function(W,e,t){return(W=W?t:e)&&W.iconType?_.ao(W.iconType):""};
Cp.prototype.onTap=Cp.prototype.onTap;Cp.prototype.onFocus=Cp.prototype.onFocus;Cp.prototype.menuItemIdentifierChanged=Cp.prototype.menuItemIdentifierChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Cp.prototype,"componentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Cp.prototype,"data",void 0);
_.P([_.J({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],Cp.prototype,"icon",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Cp.prototype,"isToggled",void 0);_.P([_.vG("tp-yt-paper-toggle-button"),_.Y("design:type",Object)],Cp.prototype,"toggleButton",void 0);_.P([_.ul("data.menuItemIdentifier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cp.prototype,"menuItemIdentifierChanged",null);
_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cp.prototype,"onFocus",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cp.prototype,"onTap",null);_.P([_.gz({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Cp);
_.H(Cp,"yt-live-chat-toggle-renderer",function(){if(p19===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;kIC===void 0&&(kIC=document.createElement("template"));var b=kIC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);p19=W}W=p19;return W},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var CTB=new _.W_("NAVIGATION_PROGRESS_TOKEN");_.xq("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var n6C={},X6Q=(n6C.CSI=function(W,e){var t={};t[W]=e;W=_.hJ(_.URZ)(t);Object.keys(W).length>0&&_.fe(W)},n6C.ECATCHER=function(W){return function(e,t){_.Ot(W)[e]=t}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),n6C);var fU1={},g6T={},TtS=(g6T[pMg.name]=!0,g6T),np=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.aT();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.Z(np,_.D0);np.prototype.attached=function(){JhE(this);document.addEventListener("yt-navigate-cache",_.aH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=fp();W.init();W.dispatchElement=this.hostElement};
var JhE=function(W,e){e=e===void 0?0:e;var t=_.ee().resolve(_.Wi(_.$6));if(t)xQB(W,t);else{if(e>=5)throw Error("Yk");setTimeout(function(){JhE(W,e+1)},0)}},xQB=function(W,e){e.addEventListener("yt-navigate-start",_.aH(W,W.onYtNavigateStart));
e.addEventListener("yt-navigate-finish",_.aH(W,W.onYtNavigateFinish));e.addEventListener("yt-navigate-error",_.aH(W,W.onYtNavigateError));e.addEventListener("yt-page-data-fetched",_.aH(W,W.onYtPageDataFetched))};
_.r=np.prototype;_.r.detached=function(){var W=_.ee().resolve(_.$6);W.removeEventListener("yt-navigate-start",_.aH(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.aH(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.aH(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.aH(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.aH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.r.setPageOffset=function(W,e){W?_.RT(this.hostElement,"yt-set-page-offset",[W,e]):_.gQ(Error("Zk"))};
_.r.setPageOffsetForNavigation=function(W,e){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,e))};
_.r.onYtNavigateSetPageOffset=function(W,e){this.setPageOffsetForNavigation(e.page,e.offset)};
_.r.getPageOffset=function(){var W=_.rz(this.hostElement).querySelector("#page-manager").getCurrentPage(),e=0;W&&(e=_.RT(this.hostElement,"yt-get-page-offset",[W])[0]);return e};
_.r.onYtHistoryPop=function(W,e){if(_.MD("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var t=_.ee().resolve(_.$6);t.hasPendingNavigation()&&W.preventDefault();t.cancelPendingNavigation();_.Qx(this.hostElement,"yt-pending-navigation-cancelled");e.errorMsg&&(W=e.errorMsg.split(" - "),e=Error(W[0]),W.length==2&&W[1]&&(_.xM(e,W[1]),_.JC(e)),window.location.reload())}};
_.r.onYtHistoryLoad=function(W,e){var t=this;if(_.MD("DISABLE_WARM_LOADS"))window.location.reload();else{(W=e.endpoint)&&Object.keys(W).length||(W=null);var b=e.historyEntry,m=_.ee().resolve(_.$6),q=_.ee().resolve(_.WS),Q=null;b&&b.rootData&&(Q=b.rootData);var X=Q&&OT1(Q);!Q||X||Q.filler?W?(m.navigate(W,!0),M11(this,W)):(e.legacyBorder||X||(e.JSC$26667_savedComponentState==null&&Q==null?_.JC(new _.o_("Incomplete history entry",e.forward)):_.TT(new _.o_("Malformed history entry",e.JSC$26667_savedComponentState,
e.forward,Q))),window.location.reload()):(_.m_z({isHot:!0}),_.fe({webInfo:{navigationReason:"h"}}),_.IWg(),_.Tv("srt"),_.Tv("pdc"),this.cancelPendingTasks(),seM(this,e.forward,Q),Q.player&&(Q.player.loaded=!1),M11(this,W),_.PsN(m,W||{},Q,2,{},!1,e).then(function(){t.setPageOffset(q.getCurrentPage(),b.scrollTop||0)}))}};
_.r.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var e=_.rz(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var t=_.ee().resolve(_.$6).currentEndpoint;this.replaceState(t,e,W)}};
_.r.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.r.onYtNavigateStart=function(W,e){this.cancelPendingTasks();e.noProgressBar||(W=_.ee().resolve(_.Wi(CTB)))&&W.start();W=this.hasPendingNavigation?null:this.data;var t=_.ee().resolve(_.WS),b,m,q;_.S("kevlar_use_vimio_behavior")&&!((b=e.endpoint)==null?0:(m=b.commandMetadata)==null?0:(q=m.webCommandMetadata)==null?0:q.ignoreNavigation)&&(b=t.getCurrentPage())&&b.disconnectVisibilityRoot();t.prepareForNavigation(e.pageType,e.endpoint);_.S("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.bw(1,
"pcl"),_.mI(this.pagePreparer,t.preparePage.bind(t,e.pageType,e.endpoint)));b=this.getPageOffset();this.initHistoryManager(b);e.reload||this.hasPendingNavigation?this.replaceState(e.endpoint,W,b):(W==null?void 0:W.page)==="watch"&&e.pageType==="watch"&&_.S("kevlar_replace_watch_to_watch_history_state")?this.replaceState(e.endpoint,W,b):(W==null?void 0:W.page)!=="shorts"||e.pageType!=="shorts"||e.endpoint.reelWatchEndpoint.sequenceParams||_.S("short_to_short_back_nav_killswitch")?e.type!="navigate-back"&&
e.type!="navigate-forward"&&(e.pageType==="shorts"&&_.q2(this.hostElement,"yt-shorts-reset"),this.saveAndPush(e.url,e.endpoint,W,b)):this.replaceState(e.endpoint,W,0);this.hasPendingNavigation=!0};
var hdM=function(W){W.hasPendingNavigation=!1;(W=_.ee().resolve(_.Wi(CTB)))&&W.finish()};
np.prototype.onYtNavigateError=function(W,e){hdM(this);W=this.get("endpoint.commandMetadata.webCommandMetadata.url",e);var t=_.Yq(window.location.href);W&&!t.pbjreload&&(e=e.navigationErrorReason||"10",_.S("kevlar_parent_on_pbjreload")&&(t={csn:_.fc()},this.get("data.endpoint.clickTrackingParams")&&(t.itct=this.data.endpoint.clickTrackingParams),_.Aj(W,t)),_.VI(_.zn(W,{pbjreload:e})))};
np.prototype.onYtNavigateCache=function(W,e){var t=this,b=e.url,m=e.endpoint,q=e.data;W=!!e.miniplayer;e=!!e.skipHistory;if(b&&m&&q){var Q=this.getPageOffset(),X=this.data||null;e||this.saveAndPush(b,m,X,Q);b=_.PsN(_.ee().resolve(_.$6),m,q,W?4:3,{},W);W&&b.then(function(){t.dataUpdatePromise&&t.dataUpdatePromise.then(function(){var I=_.ee().resolve(_.WS);t.setPageOffset(I.getCurrentPage(),0)})})}};
np.prototype.onYtNavigateFinish=function(W,e){var t=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){HTu(t,e.fromHistory)})};
var HTu=function(W,e){hdM(W);if(W.pendingPlayerOnResponseReceivedActions){for(var t=_.R(W.pendingPlayerOnResponseReceivedActions),b=t.next();!b.done;b=t.next())_.cg(b.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}t=_.ee().resolve(_.WS);!e&&W.hasNavigated&&((e=t.getCurrentPage())?e.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(e,0):_.JC(Error("$k")));_.hc(function(){_.hc(function(){_.Tv("pda")})})};
np.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var e=new _.o_("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.gQ(e)}if(e=_.S("cold_missing_history"))e=fp(),e.init(!1),e=!(e.browserHistory.boundHistoryReplaceState&&e.browserHistory.boundHistoryPushState);if(e){_.xq("DISABLE_WARM_LOADS",!0);e=new _.o_("Failed to initialize history manager",this.getDebugString());var t=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
t?_.JC(e):_.gQ(e)}e=W.detail.endpoint;var b,m;_.S("debug_forward_web_query_parameters")&&((b=e.commandMetadata)==null?0:(m=b.webCommandMetadata)==null?0:m.url)&&(e=JSON.parse(JSON.stringify(e)),e.commandMetadata.webCommandMetadata.url=_.VvQ(e.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:e,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.S("kevlar_yt_navigate_command_handler")?(b=_.ee().resolve(_.tQ),W.form.skipDefaultElement=!0,b.resolveCommand(e,{form:W.form})):this.handleNavigate(W)};
np.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var e=_.ee().resolve(_.$6),t=W.form||{};e.navigate(W.command,t.reload,t.params,t.tempData,t.requestType,t.createScreenConfig,t.ignoreConfirmation,t.requestForm)&&M11(this,W.command,t.tempData)};
np.prototype.onYtPageDataFetched=function(W,e){try{_.OA8().reset();this.data=e.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.ee().resolve(_.WS).updatePageData(this.data);var t=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);t&&I8w(t);var b=this.get("response.responseContext.serviceTrackingParams",this.data);b&&I8w(b);var m=
this.get("playerResponse.onResponseReceivedActions",this.data);m&&(m=KyE(this,m));m&&_.IT(this.hostElement,m,this.hostElement);var q=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(q||Q){var X=_.DMG(),I=(0,_.kJ.getValues)(X.tokenJars);q&&X.replace(I,q);Q&&X.replace(I,Q)}}catch(u){_.gQ(u)}};
var M11=function(W,e,t){try{W.onYtEndpointChangeHandler(e,t)}catch(b){_.gQ(b)}};
_.r=np.prototype;_.r.onYtEndpointChangeHandler=function(){};
_.r.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.r.onYtUpdateTitle=function(W,e){this.setPageTitle(e)};
_.r.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.r.handleUpdateNotificationsUnseenCountAction=function(W){_.l(W,QUu)&&((W=_.l(W,QUu).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.r.handleClearCookieAction=function(W){var e;(W=(e=_.l(W,mUB))==null?void 0:e.cookieName)&&_.F$v(W)};
_.r.onYtUpdateUnseenNotificationCount=function(W,e){this.setUnseenNotificationCount(e)};
_.r.loadData=function(W){var e=this;this.loadDepsPromise.then(function(){var t=_.ee().resolve(_.Wi(_.$6));t||_.gQ(Error("al"));if(W&&W.response){if(!W.endpoint){var b=_.Kc(window.document.location.href)||"/",m="";if(b==="/"||b.startsWith("/?"))m="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:b,webPageType:m,rootVe:3854}}}}_.PsN(t,W.endpoint,W,5,{})}else W.endpoint?t.navigate(W.endpoint):t.navigate(_.DB);_.Tm.cancelJob(e.zwiebackInitJobId);e.zwiebackInitJobId=_.Tm.addLowPriorityJob(m29)})};
var fp=function(){return _.ee().resolve(_.Xa)};
np.prototype.getDebugString=function(){return fp().getDebugString()};
np.prototype.getThirdPartyManipulationSuspected=function(){return fp().getThirdPartyManipulationSuspected()};
np.prototype.replaceState=function(W,e,t){fp().saveAndReplace(W,e,t)};
np.prototype.saveAndPush=function(W,e,t,b){fp().saveAndPush(W,e,t,b)};
var OT1=function(W){return _.l(W.endpoint,_.z4)||_.l(W.endpoint,_.Za)?!0:!W||isNaN(W.expirationTime)?!1:(0,_.eJ)()>W.expirationTime},seM=function(W,e,t){var b=W.get("response.trackingParams",t),m=_.nc(),q=_.fc();
if(b&&m&&q&&(b=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",t),!b&&t.rootVe&&(b=t.rootVe),m=e?"forwardButton":"backButton",e=W.get("playerResponse.topbar.desktopTopbarRenderer."+m+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+m+".buttonRenderer.command.clickTrackingParams",W.data),e=(W=e||W)?_.$5(W):void 0,W=_.Sg(),m=[_.aT(t)],_.FW(W,b,e,{dataPromises:m,csnToClone:t.csn}),t.graftedVes))for(t=
_.R(t.graftedVes),b=t.next();!b.done;b=t.next())_.XW(W,b.value)};
np.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.JC(Error("bl"))};
var KyE=function(W,e){return e.filter(function(t){for(var b in t)if(TtS[b])return W.pendingPlayerOnResponseReceivedActions.push(t),!0;return!1})};
_.Ec.Object.defineProperties(np.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
np.prototype.onStoreGraftedVeAction=np.prototype.onStoreGraftedVeAction;np.prototype.loadData=np.prototype.loadData;np.prototype.onYtUpdateUnseenNotificationCount=np.prototype.onYtUpdateUnseenNotificationCount;np.prototype.handleClearCookieAction=np.prototype.handleClearCookieAction;np.prototype.handleUpdateNotificationsUnseenCountAction=np.prototype.handleUpdateNotificationsUnseenCountAction;np.prototype.setUnseenNotificationCount=np.prototype.setUnseenNotificationCount;
np.prototype.onYtUpdateTitle=np.prototype.onYtUpdateTitle;np.prototype.setPageTitle=np.prototype.setPageTitle;np.prototype.onYtEndpointChangeHandler=np.prototype.onYtEndpointChangeHandler;np.prototype.onYtPageDataFetched=np.prototype.onYtPageDataFetched;np.prototype.handleNavigate=np.prototype.handleNavigate;np.prototype.onYtNavigate=np.prototype.onYtNavigate;np.prototype.onYtNavigateFinish=np.prototype.onYtNavigateFinish;np.prototype.onYtNavigateCache=np.prototype.onYtNavigateCache;
np.prototype.onYtNavigateError=np.prototype.onYtNavigateError;np.prototype.onYtNavigateStart=np.prototype.onYtNavigateStart;np.prototype.cancelPendingTasks=np.prototype.cancelPendingTasks;np.prototype.initHistoryManager=np.prototype.initHistoryManager;np.prototype.onYtHistoryLoad=np.prototype.onYtHistoryLoad;np.prototype.onYtHistoryPop=np.prototype.onYtHistoryPop;np.prototype.onYtNavigateSetPageOffset=np.prototype.onYtNavigateSetPageOffset;np.prototype.setPageOffset=np.prototype.setPageOffset;
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],np.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],np.prototype,"data",void 0);_.P([_.wz("yt-navigate-set-page-offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],np.prototype,"onYtNavigateSetPageOffset",null);
_.P([_.wz("yt-history-pop"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],np.prototype,"onYtHistoryPop",null);_.P([_.wz("yt-history-load"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.FLP]),_.Y("design:returntype")],np.prototype,"onYtHistoryLoad",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],np.prototype,"onYtNavigate",null);
_.P([_.wz("yt-update-title"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,String]),_.Y("design:returntype")],np.prototype,"onYtUpdateTitle",null);_.P([_.wz("yt-update-unseen-notification-count"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Number]),_.Y("design:returntype")],np.prototype,"onYtUpdateUnseenNotificationCount",null);_.P([_.SB()],np);fU1.YtdAppBehavior=[_.qM.YtActionHandlerBehavior,np.prototype];var go=function(){var W=_.D0.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.Z(go,_.D0);go.prototype.ready=function(){var W=this;_.rz(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
go.prototype.dataChanged_=function(){_.rz(this.hostElement).querySelector("#checkbox").checked=!1};
go.prototype.onChange_=function(){var W=_.rz(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.q2(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
go.prototype.dataChanged_=go.prototype.dataChanged_;_.P([_.J(),_.Y("design:type",Object)],go.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],go.prototype,"dataChanged_",null);_.P([_.SB()],go);var PTg=[go.prototype];var TK=function(){var W=_.D0.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.Z(TK,_.D0);TK.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
TK.prototype.startTimeout=function(){var W=this,e=this.data&&this.data.displayDurationSeconds;e&&!this.timeoutJobId&&(this.timeoutJobId=_.kM(_.Tm,function(){_.RT(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},e*1E3))};
TK.prototype.cancelTimeout=function(){_.Tm.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
TK.prototype.ytdHatsSurveyBehaviorDataChanged=TK.prototype.ytdHatsSurveyBehaviorDataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],TK.prototype,"ytActionHandlerBehavior",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TK.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.P([_.SB()],TK);var V1T=[_.qM.YtActionHandlerBehavior,TK.prototype];var iTg=function(W,e){var t;return((t=W.prefixMapping)==null?0:t[e])?W.prefixMapping[e]:W.SHARED_RENDERERS_.hasOwnProperty(e)?"yt":W.prefix},JI={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}};JI.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.S("kevlar_mealbar_above_player"),modern:_.S("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"}};
JI.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};JI.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};JI.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
JI.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)"}};
JI.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};
JI.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};
JI.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};
JI.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};JI.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"}};
JI.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};JI.TOAST={component:null,properties:{}};var YuC=new function(W,e,t){this.supportedPopups=W;this.navigationEndpointPopupMap=e;this.popupTypeMap=t;this.supportedPopups=W;this.navigationEndpointPopupMap=e;this.popupTypeMap=t}({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:_.S("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"}),zdT=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$17713_popupConfig=JI;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 UQ9=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.j_.getInstance()},xp=function(W,e){var t=W.pageNameToElement.get(e);
if(!t){switch(e){case "watch":var b=_.S("web_watch_force_learning_journey_for_testing")?_.tH("ytd-watch-learning-journey"):_.S("kevlar_watch_fixie")?_.tH("ytd-watch-fixie"):_.S("kevlar_watch_grid")?_.tH("ytd-watch-grid"):_.tH("ytd-watch-flexy");break;case "learning_journey_watch":b=_.tH("ytd-watch-learning-journey");break;case "shorts":b=_.tH("ytd-shorts");break;case "search":b=_.tH("ytd-search");break;case "channel":b=_.tH("ytd-browse");b.pageSubtype="channels";break;case "trending":b=_.tH("ytd-browse");
b.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":b=
_.tH("ytd-browse");b.pageSubtype=e;break;case "browse":b=_.tH("ytd-browse");break;default:_.JC(new _.o_("Error getting page element for type",e))}t=b;W.pageNameToElement.set(e,t)}return t};
UQ9.prototype.preparePage=function(W,e,t){t&&(W=_.Da(t)||W);if(W!=="watch"&&W!=="learning_journey_watch"){var b=this.elementPoolPopulator,m=W;m!=b.targetPage_&&b.pendingPages_.indexOf(m)>-1&&(b.targetPage_&&(b.pendingPages_.unshift(b.targetPage_),b.abort()),LZ1(b,m),_.rYB(b,m))}if((b=xp(this,W))||!_.l(t,_.KJ)){b.isAttached||b===e||(b.hidden=!0);if(!b.data&&(W!=="watch"&&W!=="learning_journey_watch"||!_.S("swatcheroo_page_pool_dont_provide_filler_data"))){var q;if(W=(q=_.Ot("FILLER_DATA",{})[W])==
null?void 0:q.response)b.data=W}return b}};var LyS=function(W){this.JSC$28557_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":cyu,"yt-end-playlist-command":vh1,"yt-recover-playlist-command":D2u,"yt-refresh-playlist-command":oh1,"yt-playlist-remove-videos-action":S6T};_.Vo(_.P3.getInstance(),this.playlistHandlerActionMap,this.JSC$28557_clientRoot);r_w()},E6S;var OI=function(W,e,t){this.apiKey=W;this.endpoint=e;this.confidenceThreshold=t===void 0?.5:t;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=e==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
e==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||e==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new VLQ};
_.r=OI.prototype;
_.r.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.gy("voice_assistant");_.Jy("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var e;this.prefetchResponseTimeoutMs=(e=W.prefetchResponseTimeoutMs)!=null?e:this.prefetchResponseTimeoutMs;Ahw(this);this.startAudio();NtQ(this)}else this.errorHandler("OFFLINE")};
_.r.stop=function(W){var e=W===void 0?{}:W;W=e.logCancel===void 0?!0:e.logCancel;var t=e.logMicClosed===void 0?!0:e.logMicClosed;var b=e.handleError===void 0?!0:e.handleError;e=e.handleStop===void 0?!0:e.handleStop;this.state!==0&&(W&&MH("voz_cx"),sI(this,{logMicClosed:t,handleStop:e}),b&&this.errorHandler("ABORTED"))};
_.r.getState=function(){return this.state};
_.r.isSupported=function(){return!0};
_.r.stopAudio=function(W){(W===void 0||W)&&MH("voz_mf")};
_.r.startAudio=function(){MH("voz_vp");return _.aT(null)};
var dQu=function(W,e){W.channelOpen&&(W.state!==2&&(W.state=2,MH("voz_ss"),W.listeningHandler()),e=new Uint8Array(e),e='{ "audioIn": "'+_.eK(e)+'" }',W.channel.send(e))},sI=function(W,e){var t=e===void 0?{}:e;
e=t.logMicClosed===void 0?!0:t.logMicClosed;t=t.handleStop===void 0?!0:t.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);WIQ(W);W.stopAudio(e);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;t&&W.stopHandler()},Ahw=function(W){var e={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new TU(W.endpoint,e);W.channel.open();_.p4(W.channel,"w",function(){var t=W.channel,b=t.send,m=W.isUsingVoz?"PLACEHOLDER":"example";m={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:m,deviceModelId:m},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)m.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var q=JSON.stringify(W.youtubeAssistantRequest);m.config.internalIn={youtubeAssistantS3InputJson:q}}b.call(t,m);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.p4(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,sI(W))});
_.p4(W.channel,"z",function(t){if(t.data){WIQ(W);for(var b=0;b<t.data.length;b++){var m=W,q=t.data[b],Q=q.speechResults;if(Q)a:{var X=[];q=[];var I=!1;Q=_.R(Q);for(var u=Q.next();!u.done;u=Q.next()){u=u.value;if(u.noSpeech){sI(m);m.errorHandler("NO_SPEECH");break a}u.transcript!==void 0&&u.stability!==void 0&&(u.stability<m.confidenceThreshold&&(I=!0),I?q.push(u.transcript):X.push(u.transcript))}if(X.length!==0||q.length!==0)X=X.join(" "),q=q.join(" "),m.receivedEndOfUtterance&&!m.isUsingVoz?m.isUsingVoz||
m.completeHandler([X,q]):(I=m,Q=X,u=q,MH("voz_sf"),I.transcriptionUpdateHandler(Q,u),I.transcribedSpeechResults=[Q,u]),m.receivedEndOfUtterance&&(MH("voz_eou"),m.transcriptionCompleteHandler([X,q]),m.isUsingVoz&&(m.prefetchResponseTimeoutMs===0?sI(m,{logMicClosed:!1,handleStop:!0}):m.prefetchResponseTimeoutMs>0&&e8B(m)))}else m.isUsingVoz&&(q==null?0:q.internalOut)?(q=JSON.parse(q.internalOut.youtubeAssistantS3OutputJson),q.userHasOptedInToVaa||q.vaaConsent?m.vaaConsentUpdateHandler(!!q.userHasOptedInToVaa,
!!q.vaaConsent):(t$1(m),q&&(X=m.transcribedSpeechResults,MH("voz_rqf"),m.completeHandler(X,q)))):q.eventType==="END_OF_UTTERANCE"?m.receivedEndOfUtterance=!0:(MH("voz_err"),m.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.JC(Error("cl")))}}});
_.p4(W.channel,"y",function(t){sI(W);switch(t.status){case 1:t="WEBCHANNEL_NETWORK_ERROR";break;case 2:t="WEBCHANNEL_SERVER_ERROR";break;default:t="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(t);W.logError(Error(t))})};
OI.prototype.logError=function(W){_.gQ(W)};
OI.prototype.isOnline=function(){return!0};
var e8B=function(W){t$1(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){sI(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},t$1=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},NtQ=function(W){WIQ(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){sI(W);W.errorHandler("NO_SPEECH")},11E3)},WIQ=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},MH=function(W){_.Tv(W,void 0,"voice_assistant")};var hI=function(){OI.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.Z(hI,OI);hI.prototype.isSupported=function(){return l8C()};
hI.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.jg(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(b){b79(W,b)};
this.processor.connect(this.audioContext.destination);var e=function(b){W.stream=b;if(!W.audioContext)return _.aT(null);b=W.audioContext.createMediaStreamSource(b);W.processor&&b.connect(W.processor);return _.aT(null)},t={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?e(this.stream):(t=navigator.mediaDevices.getUserMedia(t))?t.then(e).catch(function(b){sI(W);b.name&&b.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(b));return _.jg(null)}):(sI(this),this.errorHandler("AUDIO_ERROR"),_.JC(Error("dl")));
return OI.prototype.startAudio.call(this)};
hI.prototype.stopAudio=function(W){W=W===void 0?!0:W;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(e){e.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;OI.prototype.stopAudio.call(this,W)};
hI.prototype.isOnline=function(){return navigator.onLine};
var b79=function(W,e){if(W.audioContext)if(window.OfflineAudioContext){var t=W.audioContext.sampleRate,b=e.inputBuffer.getChannelData(0);e=new window.OfflineAudioContext(1,b.length,16E3);for(var m=e.createBuffer(1,b.length,t),q=m.getChannelData(0),Q=0,X=0;X<b.length;X++)q[X]=b[X],Q+=q[X]*q[X];!W.audioDetected&&Math.sqrt(Q/b.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());b=e.createBufferSource();b.buffer=m;b.connect(e.destination);b.start(0);e.oncomplete=function(I){I=I.renderedBuffer.getChannelData(0);
for(var u=Math.floor(16384E3/t),c=new Int16Array(u),v=0;v<u;++v)c[v]=Math.max(-1,Math.min(1,I[v]))*32767;dQu(W,c.buffer)};
e.startRendering()}else mMS(W,e)},mMS=function(W,e){var t=W.audioContext.sampleRate,b=e.inputBuffer.getChannelData(0),m=Math.floor((t+8E3)/16E3);
t=b.length/m;e=new Float32Array(t);for(var q=0;q<t;++q)e[q]=b[q*m];b=new Int16Array(t);for(m=0;m<t;++m)b[m]=Math.max(-1,Math.min(1,e[m]))*32767;dQu(W,b.buffer)};var rHS={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var qP9=function(){this.JSC$17778_audioEnabled=!0;this.audioFeedbackHolder={}};
qP9.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var R8$=function(W){for(var e=_.R(Object.values(rHS)),t=e.next();!t.done;t=e.next())t=t.value,W.audioFeedbackHolder[t]=new Audio,W.audioFeedbackHolder[t].src="/s/search/audio/"+t+".mp3",W.audioFeedbackHolder[t].load()},HP=function(W,e){if(W.JSC$17778_audioEnabled!==!1&&e in W.audioFeedbackHolder){for(var t=_.R(Object.values(W.audioFeedbackHolder)),b=t.next();!b.done;b=t.next())b=b.value,W.isPlaying(b)&&b.pause();
W.audioFeedbackHolder[e].currentTime=0;W.audioFeedbackHolder[e].play().catch(function(){})}};var Qju=function(W,e){var t=this;this.store=W;this.service=e;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){t.setState("offline");t.stop()};
this.audioPlayer=new qP9;var b;(b=this.audioPlayer)==null||R8$(b)};
_.r=Qju.prototype;_.r.getService=function(){return this.service};
_.r.isEnabled=function(){return!!this.service};
_.r.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.r.start=function(){var W=this,e,t,b,m,q,Q,X,I,u,c,v,D,B;return _.F(function(k){switch(k.nextAddress){case 1:W.store.dispatch(u6U("",""));if(!navigator.onLine)return W.setState("offline"),k.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){k.jumpTo(2);break}_.Qh(k,3);return _.a(k,FIM(W),5);case 5:e=k.yieldResult;if(!e)return(t=W.audioPlayer)==null||HP(t,"failure"),k.return();W.service.stream=W.stream;W.setState("listening");_.Hi(k,2);break;
case 3:_.w9(k),W.permissionsSupported=!1;case 2:b={context:_.vhS(_.ba())},b.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},m=function(n,f){W.store.dispatch(cpC("transcribing"));W.store.dispatch(u6U(n,f))},q=function(){var n;
(n=W.audioPlayer)==null||HP(n,"open");W.setState("listening")},Q=function(){W.setState("transcribing")},X=function(n){W.setErrorState(n)},I=function(n,f){var M;
(M=W.audioPlayer)==null||HP(M,"success");f&&(_.S("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.ee().resolve(_.v12),W.responseProcessor&&(M=f.navigationAction,n=f.prefetchedSearchResponse,M&&n&&(M=(new _.Xxr).JSC$11058_getStoreKey(M),_.YB(W.responseProcessor,n,M)))),W.JSC$17796_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",f))},u=function(){window.removeEventListener("offline",W.handleOfflineEvent)},c=_.kvc(!1),v=c.Authorization!=null,D=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&v?c:{"X-Goog-Visitor-Id":c["X-Goog-Visitor-Id"]},B={completeHandler:I,
errorHandler:X,listeningHandler:q,audioDetectedHandler:Q,stopHandler:u,transcriptionUpdateHandler:m,youtubeAssistantRequest:b,languageCode:X4u(),additionalHeaders:D,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&v,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(B),_.u8(k)}})};
_.r.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.r.reset=function(){this.store.dispatch(_.rO({type:"RESET_VOICE_SEARCH_STATE"}))};
_.r.setState=function(W){this.store.dispatch(cpC(W))};
_.r.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var e;(e=this.audioPlayer)==null||HP(e,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)FIM(this);else{var t;(t=this.audioPlayer)==null||HP(t,"failure");this.setState("permission-denied")}break;case "ABORTED":var b;(b=this.audioPlayer)==null||HP(b,"no_input");break;default:var m;(m=this.audioPlayer)==
null||HP(m,"no_input");this.setState("timeout")}};
var FIM=function(W){var e,t;return _.F(function(b){switch(b.nextAddress){case 1:return _.a(b,navigator.permissions.query({name:"microphone"}),2);case 2:e=b.yieldResult;if(e.state==="granted")return b.return(!0);if(e.state==="denied")return W.setState("permission-denied"),b.return(!1);W.setState("permission");t={audio:{sampleSize:16,channelCount:1},video:!1};_.Qh(b,3);return _.a(b,navigator.mediaDevices.getUserMedia(t),5);case 5:return W.stream=b.yieldResult,b.return(!0);case 3:return _.w9(b),W.setState("permission-denied"),
b.return(!1)}})},X4u=function(){var W=_.Ot("INNERTUBE_CONTEXT_HL"),e=_.Ot("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+e};var Iz1=function(W,e,t){Qju.call(this,e,t);this.JSC$17796_actionRouter=W;this.enableInlineSearchResponse=_.S("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.S("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.S("kevlar_voice_search_enable_fpa_signedin_users")},az$;
_.Z(Iz1,Qju);
var w4E=function(){if(!az$){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.S("kevlar_voice_search_auth_enabled")||_.S("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.S("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");az$=
new Iz1(_.P3.getInstance(),_.Eb(),new hI(_.Ot("VOZ_API_KEY"),W,.5))}return az$};var uN1=function(W){this.JSC$17800_clientRoot=W;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$17800_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)]]));W=_.R(this.eventListeners);for(var e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;t=_.R(t);for(var b=t.next();!b.done;b=t.next()){var m=
_.R(b.value);b=m.next().value;m=m.next().value;e.addEventListener(b,m)}}_.Vo(_.P3.getInstance(),this.autonavPauseActionMap,this.JSC$17800_clientRoot)},cHw,vyQ=function(W){return _.S("kevlar_autonav_popup_filtering")?(W=_.Er(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.r=uN1.prototype;_.r.onIronOverlayOpened=function(W){vyQ(W)&&(this.autonavPauseReasons.overlayOpen=!0,Kp(this))};
_.r.onIronOverlayClosed=function(W){vyQ(W)&&(this.autonavPauseReasons.overlayOpen=!1,Kp(this))};
_.r.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Kp(this)};
_.r.onYtAutonavPauseBlur=function(){var W=this;_.Tm.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,Kp(W))},8,0)};
_.r.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Kp(this)};
_.r.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Kp(this)};
_.r.onYtAutonavPauseScroll=function(){var W=_.ee().resolve(_.WS);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,Kp(this))};
_.r.onYtAutonavPauseUserEngagement=function(W){var e=this;if(_.S("user_engagement_enable_autoplay_pause_feature")){var t=Number(W.lowEngagementThresholdMs);isNaN(t)||t<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.ee().resolve(_.gd),_.be()<t?_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.qig()?(this.userEngagementCsn=_.fc(),_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Kp(this)):_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.CLs(Error("el`"+JSON.stringify(W)))};
_.r.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;Kp(this)};
_.r.onYtAutonavVisibilityChanged=function(){var W=this,e,t,b;return _.F(function(m){if(m.nextAddress==1)return(e=_.tv())?_.a(m,e.getPlayerPromise(),2):m.return();t=m.yieldResult;b=t.isMuted()||t.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&b;Kp(W);_.u8(m)})};
_.r.onYtAutonavPausePlayerEnded=function(){_.ee().resolve(_.gd);var W=144E5;_.S("user_engagement_enable_autoplay_pause_feature")||_.S("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.be()>W;Gel(this);Kp(this)};
_.r.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Kp(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.fJ()}),this.autonavPauseReasons.youthereLactExperiment=!1,Kp(this));
this.autonavPauseReasons.longIdle&&!_.S("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Kp(this))};
_.r.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var Kp=function(W){for(var e=!1,t=_.R(Object.values(W.autonavPauseReasons)),b=t.next();!b.done;b=t.next())b=b.value,e=e||b;e?_.dv.getInstance().pause(W.autonavPauseReasons):(W=_.dv.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},Gel=function(W){var e=!1;
if(_.S("enable_autoplay_pause_by_lact")){_.ee().resolve(_.gd);e=_.mn("autoplay_pause_by_lact_sec")*1E3;var t=_.mn("autoplay_pause_by_lact_sampling_fraction");(e=_.be()>=e&&Math.random()<t)&&!_.qig()&&(_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),e=!1)}e!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=e)&&(W.userEngagementCsn=_.fc(),_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.kM(_.Tm,function(){_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
uN1.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.z8("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.fJ(),this.autonavPauseReasons.youthereLactExperiment=!1,Kp(this));this.autonavPauseReasons.userEngagement&&(_.z8("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Kp(this))};
uN1.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var PP=function(){var W=_.O.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.S("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.mn("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");W.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.UZ();W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return W};
_.Z(PP,_.O);_.r=PP.prototype;_.r.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.r.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.r.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.r.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.r.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.r.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.r.ready=function(){_.ee().addProvider({provide:_.Op,useValue:this.hostElement})};
_.r.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.aH(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.aH(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.aH(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.aH(this,this.onYtGuideShow));_.Uc(this,function(){W.animationTransitionDuration=200})};
_.r.detached=function(){document.removeEventListener("yt-navigate-finish",_.aH(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.aH(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.aH(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.aH(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.aH(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.aH(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.aH(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.r.getData=function(){return this.data};
_.r.load=function(){var W=this,e,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),q.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return e=_.UZ(),e.resolve(window.ytInitialGuideData),q.return(e.promise);b=!1;_.Qh(q,2);return _.a(q,W.fetchGuideData(),4);case 4:t=q.yieldResult;_.Hi(q,3);break;case 2:m=_.w9(q),m.message==="Returned error"&&(b=!0);
case 3:if(t)return q.return(t);W.onYtGuideClose();b||(W.initialGuideDataFetchFailed=!0);return q.return(W.lateDataResolver.promise)}})};
_.r.fetchGuideData=function(){var W=this,e,t,b,m,q,Q,X;return _.F(function(I){if(I.nextAddress==1)return e=_.ee(),W.guidePromise||(t=e.resolve(_.J8),W.guidePromise=_.z2(t,BzS)),_.a(I,W.guidePromise,2);if(I.nextAddress!=3)return b=I.yieldResult,m=e.resolve(_.Kw),_.a(I,m(),3);(q=I.yieldResult)&&((Q=b)==null?void 0:(X=Q.responseContext)==null?void 0:X.maxAgeSeconds)!==0&&q.put("service:guide:fallback",new _.qv({innertubeResponse:b}));return I.return(b)})};
_.r.initializeGuideDataIfEmpty=function(){var W=this,e,t;return _.F(function(b){if(b.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return b.return();_.Qh(b,2);return _.a(b,W.fetchGuideData(),4)}if(b.nextAddress!=2)return(e=b.yieldResult)&&W.lateDataResolver.resolve(e),_.Hi(b,0);t=_.w9(b);_.JC(t);_.u8(b)})};
_.r.initializeGuideData=function(){var W=this,e;return _.F(function(t){switch(t.nextAddress){case 1:return _.vN(VeB(),{mainAppWeb:_.im()}),_.Qh(t,2),_.a(t,W.load(),4);case 4:W.data=t.yieldResult;_.Hi(t,3);break;case 2:_.w9(t),_.GL(VeB(),"FAILURE");case 3:e=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.GL(VeB(),e),_.u8(t)}})};
_.r.setGuideData=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1)return e.disabled?m.return():e.data?(W.data=e.data,e.guideRenderers.add(W),m.return()):_.a(m,e.initializeGuideData(),2);e.graftGuideToPage();t=_.MD("IS_HOMEPAGE_COLD")?"eop":void 0;_.S("disable_element_pool_populator")?e.setGuideDataAfterInit(W):(b=new _.bw(1,t),_.mI(b,e.setGuideDataAfterInit.bind(e,W)));_.u8(m)})};
_.r.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.hc(function(){_.Tv("gle")});
_.Uc(this,function(){_.Tv("gpe")})};
_.r.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.$5(W),_.I0(_.Sg(),W))}};
_.r.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.aH(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.r.onDrawerOpenedChanged=function(W,e){!e.value&&this.guideOpened&&(this.guideOpened=!1)};
_.r.onYtGuideToggle=function(W){var e=this.guideOpened;this.guideOpened=!e;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var t=_.B6();_.oT(0,109,!this.guideUserStateOpened);t.save()}this.updateGuideDrawerElementState();if(this.guideElement){var b;this.guideOpened&&((b=W.detail)==null?0:b.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.aH(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.aH(this,
this.onAppDrawerTransitioned))}e||this.initializeGuideDataIfEmpty()};
_.r.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.aH(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.EH(this.guideElement)};
_.r.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.aH(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(aTl(this.guideOpened))};
_.r.guidePersistentAndVisibleChanged=function(){_.Qx(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.r.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.rO({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.r.miniGuideVisibleChanged=function(){_.Qx(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.r.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(aTl(this.guideOpened)),this.initialLoad=!1);_.Qx(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.r.activeEndpointChanged=function(){_.Qx(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.r.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.r.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()};
_.r.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.r.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.r.getGuideOpened=function(){return this.guideOpened};
_.r.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.r.getActiveEndpoint=function(){return this.activeEndpoint};
_.r.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.r.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&&_.q2(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.r.computeGuidePersistentAndVisible=function(){var W=this;_.HG(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.r.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.r.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.r.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.r.startLoadingWatch=function(){this.closeGuide()};
_.r.startLoadingShorts=function(){_.S("web_hide_guide_on_shorts")&&this.closeGuide()};
_.r.onYtNavigateFinish=function(W,e){if(!_.aP||e){this.activeEndpoint=e.endpoint;this.pageType=e.pageType;this.pageUrl=e.response.url;var t,b;W=(b=_.l((t=e.endpoint)==null?void 0:t.commandMetadata,_.ez))==null?void 0:b.url;!this.pageUrl&&W&&(this.pageUrl=W);_.S("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.r.getVisibleGuideRenderer=function(){for(var W=_.R(this.guideRenderers),e=W.next();!e.done;e=W.next())if(e=e.value,this.miniGuideVisible&&e.is==="ytd-mini-guide-renderer"||this.guideOpened&&e.is==="ytd-guide-renderer")return e;return null};
_.r.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.R([].concat(_.kP(_.rz(W).children)));for(var e=W.next();!e.done;e=W.next())this.markGuideRendererDirty(e.value)}};
_.r.persistentGuideEnabled=function(W,e){if(!e||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.S("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var t=_.I_(e)||"";return _.S("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(b){return t===b}):!this.persistentGuideBlockedPagePathRegex.test(t)};
_.r.canFitPersistentGuide=function(W){var e=_.mn("kevlar_persistent_guide_width_threshold",1312);return e===-1||_.S("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>e};
_.r.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.r.onResize=function(){var W=this;_.HG(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.r.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.r.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.r.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.r.getInitialGuideUserStateOpened=function(){return!_.B6().getFlag(109)};
_.Ec.Object.defineProperties(PP.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Ot("initialBodyClientWidth")||window.innerWidth}}});
PP.prototype.onResize=PP.prototype.onResize;PP.prototype.observeForMiniGuideVisible=PP.prototype.observeForMiniGuideVisible;PP.prototype.computeGuidePersistentAndVisible=PP.prototype.computeGuidePersistentAndVisible;PP.prototype.cachedClientWidthChanged=PP.prototype.cachedClientWidthChanged;PP.prototype.resetGuide=PP.prototype.resetGuide;PP.prototype.activeEndpointChanged=PP.prototype.activeEndpointChanged;PP.prototype.guideOpenedChanged=PP.prototype.guideOpenedChanged;
PP.prototype.miniGuideVisibleChanged=PP.prototype.miniGuideVisibleChanged;PP.prototype.guideIsVisibleButNotPersistentChanged=PP.prototype.guideIsVisibleButNotPersistentChanged;PP.prototype.guidePersistentAndVisibleChanged=PP.prototype.guidePersistentAndVisibleChanged;PP.prototype.onGuideElementChanged=PP.prototype.onGuideElementChanged;PP.prototype.onGuidePersistentChanged=PP.prototype.onGuidePersistentChanged;PP.prototype.onRenderGuideChanged=PP.prototype.onRenderGuideChanged;
PP.prototype.onActiveEndpointChanged=PP.prototype.onActiveEndpointChanged;PP.prototype.onMiniGuideVisibleChanged=PP.prototype.onMiniGuideVisibleChanged;PP.prototype.onGuideIsVisibleButNotPersistentChanged=PP.prototype.onGuideIsVisibleButNotPersistentChanged;PP.prototype.onGuidePersistendAndVisibleChanged=PP.prototype.onGuidePersistendAndVisibleChanged;_.P([_.y(_.gf),_.Y("design:type",Object)],PP.prototype,"ironResizableBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"disabled",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"guidePersistentAndVisible",void 0);_.P([_.ul("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onGuidePersistendAndVisibleChanged",null);_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"guideIsVisibleButNotPersistent",void 0);
_.P([_.ul("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"miniGuideVisible",void 0);_.P([_.ul("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onMiniGuideVisibleChanged",null);_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"forceMiniGuideClose",void 0);
_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"activeEndpoint",void 0);_.P([_.ul("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onActiveEndpointChanged",null);_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"renderGuide",void 0);_.P([_.ul("renderGuide"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onRenderGuideChanged",null);
_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"guideOpened",void 0);_.P([_.J(),_.Y("design:type",Boolean)],PP.prototype,"guidePersistent",void 0);_.P([_.ul("guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onGuidePersistentChanged",null);_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"guideUserStateOpened",void 0);_.P([_.J(),_.Y("design:type",String)],PP.prototype,"pageUrl",void 0);
_.P([_.J(),_.Y("design:type",String)],PP.prototype,"pageType",void 0);_.P([_.J(),_.Y("design:type",Number)],PP.prototype,"cachedClientWidth",void 0);_.P([_.J(),_.Y("design:type",Object)],PP.prototype,"guideElement",void 0);_.P([_.J({selector:_.SS}),_.Y("design:type",Object)],PP.prototype,"isFullscreenShorts",void 0);_.P([_.ul("guideElement"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onGuideElementChanged",null);
_.P([_.ul("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"guidePersistentAndVisibleChanged",null);_.P([_.BG("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.P([_.ul("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"miniGuideVisibleChanged",null);_.P([_.BG("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"guideOpenedChanged",null);_.P([_.ul("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"activeEndpointChanged",null);
_.P([_.BG("pageUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"resetGuide",null);_.P([_.BG("cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"cachedClientWidthChanged",null);_.P([_.ul("guideOpened","guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"computeGuidePersistentAndVisible",null);
_.P([_.BG("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"observeForMiniGuideVisible",null);_.P([_.wz("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"onResize",null);_.P([_.h({disableElementRegistration:!0,is:"yt-guide-manager"})],PP);var DME=_.H(PP,"yt-guide-manager",void 0,{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var Va=function(){var W=_.O.apply(this,arguments)||this;W.JSC$17810_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(e){W.handleCapturedKeydownEvent(e)};
return W};
_.Z(Va,_.O);_.r=Va.prototype;_.r.attached=function(){this.listenToDocument(document)};
_.r.listenToDocument=function(W){W.addEventListener("keydown",_.aH(this,this.onKeyDownEvent));W.addEventListener("keyup",_.aH(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.aH(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.aH(this,this.onPageUpdate))};
_.r.detached=function(){this.unlistenFromDocument(document)};
_.r.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.aH(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.aH(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.aH(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.aH(this,this.onPageUpdate))};
_.r.ready=function(){_.ee().addProvider({provide:_.FN,useValue:this})};
_.r.isKeyBoardInUse=function(){return this.JSC$17810_keyboardInUse};
_.r.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.r.onMouseDownEvent=function(){this.JSC$17810_keyboardInUse=!1};
_.r.onPageUpdate=function(){if(_.S("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.S("web_shorts_keyboard_shortcut_usage_log")){_.NT.clear();for(var W=_.R(_.EM),e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;t=_.na(t);_.NT.set(e,t);_.Ke(_.fc(),_.nc(),t)}_.dH.clear();W=_.R(_.AR);for(e=W.next();!e.done;e=W.next())t=_.R(e.value),e=t.next().value,t=t.next().value,t=_.na(t),_.dH.set(e,t),_.Ke(_.fc(),_.nc(),t);_.P6(_.fc(),_.nc(),[].concat(_.kP(_.dH.values()),
_.kP(_.NT.values())));_.ic(_.fc(),[].concat(_.kP(_.dH.values()),_.kP(_.NT.values())))}};
_.r.onMiniplayerActiveChange=function(){var W;(W=_.ee().resolve(_.Kn).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.r.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.S("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var e=_.LB(W)||[];return _.IKl(e)?!0:W.defaultPrevented?(I6(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.r.isSpacebarClick=function(W){var e=W||window.event;var t;e.composedPath&&typeof e.composedPath==="function"?t=e.composedPath():t=e.path;t&&t.length?e=t[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e&&W.keyCode===32&&(W=e.tagName==="BUTTON"||e.tagName==="A"||e.tagName==="INPUT",e=(e=e.getAttribute("role"))&&(e==="option"||e==="button"||e.indexOf("menuitem")===0),W||e)?!0:!1};
_.r.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),I6(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var e=_.ee().resolve(_.Kn);switch(W.keyCode){case 9:this.JSC$17810_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:e.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:e.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.S("web_fullscreen_shorts")){_.wil();break}this.isMiniplayerActive()?e.pipController.getWindow()&&(e.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(W.keyCode,W.shiftKey):this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.S("web_ephemeral_actions")&&_.ee().resolve(_.Is).activate(W);break;
default:this.passEventToPlayer(W)}}};
_.r.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.S("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var e=this.getPlayerManager();e&&(e=e.getPlayer())&&e.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.r.getPlayerManager=function(){var W=_.tv(),e=_.ee().resolve(_.Wi(_.WS));return W&&e&&e.isOnWatch()?W:null};
_.r.passEventToPlayer=function(W,e){var t=this,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return!_.S("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&t.isMiniplayerActive()?b=_.ee().resolve(_.Kn).getPlayerElement():t.inlinePreviewIsActive?(m=_.Qx(t.hostElement,"yt-get-inline-preview-player-action"))&&m[0]&&(b=m[0]):b=_.tv(),b?_.a(Q,b.getPlayerPromise(),3):Q.jumpTo(0);q=Q.yieldResult;e?q.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat):q.handleGlobalKeyDown(W.keyCode,
W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&I6(W.keyCode,W.shiftKey,t.isShortsPage);_.u8(Q)})};
_.r.focusSearchBox=function(){_.q2(this.hostElement,"yt-focus-searchbox")};
_.r.openHotkeyDialog=function(){_.q2(this.hostElement,"yt-open-hotkey-dialog")};
_.r.isMiniplayerActive=function(){return _.ee().resolve(_.Kn).isMiniplayerActive()};
_.r.closeMiniplayer=function(W,e){return this.isMiniplayerActive()?(_.ee().resolve(_.Kn).close(),I6(W,e,this.isShortsPage),!0):!1};
_.r.toggleTheaterMode=function(W,e){var t=_.hv(_.Eb().getState()),b=this.getPlayerManager(),m=_.S("disable_theater_mode_keyboard")||_.MD("START_IN_FULL_WINDOW_MODE");b&&!m&&(t=!t,_.ty()&&_.S("external_fullscreen")&&(t=!0),_.RT(this.hostElement,"yt-toggle-theater-mode",[t]),I6(W,e,this.isShortsPage))};
_.r.toggleMiniplayer=function(W,e){var t=this.getPlayerManager();if(this.isMiniplayerActive()){var b;((b=_.ee().resolve(_.Wi(_.WS)))==null?0:b.isOnWatch())?_.ee().resolve(_.Kn).close(!0):_.Sy(_.ee().resolve(_.Kn));I6(W,e,this.isShortsPage)}else t&&(_.RT(this.hostElement,"yt-activate-miniplayer-from-watch-action"),I6(W,e,this.isShortsPage))};
_.r.handlePlayerSpaceKey=function(W,e){var t=!!_.tv()||this.isMiniplayerActive();t=_.S("disable_space_scroll_fix")||t;_.S("global_spacebar_pause")&&!this.isKeyBoardInUse()&&t&&(W.preventDefault(),this.passEventToPlayer(W,e))};
_.r.isPresentingTheaterMode=function(){return _.S("web_watch_enable_tm_esc_key")?_.hv(_.Eb().getState())&&!_.ty():!1};
Va.prototype.onMiniplayerActiveChange=Va.prototype.onMiniplayerActiveChange;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Va.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Va.prototype,"ytdReduxBehavior",void 0);_.P([_.J({selector:_.crD}),_.Y("design:type",Boolean)],Va.prototype,"inlinePreviewIsActive",void 0);_.P([_.J({selector:_.Fnu}),_.Y("design:type",Boolean)],Va.prototype,"isShortsPage",void 0);
_.P([_.J({selector:_.gO}),_.Y("design:type",Boolean)],Va.prototype,"miniplayerIsActive",void 0);_.P([_.ul("miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Va.prototype,"onMiniplayerActiveChange",null);_.P([_.h({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Va);_.H(Va,"yt-hotkey-manager",void 0,{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var ib=function(){var W=_.O.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.Z(ib,_.O);_.r=ib.prototype;_.r.ready=function(){_.ee().addProvider({provide:_.Oj,useValue:this.hostElement})};
_.r.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_)};
_.r.attached=function(){document.addEventListener("yt-navigate-start",_.aH(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.aH(this,this.onYtNavigateFinish_))};
_.r.detached=function(){document.removeEventListener("yt-navigate-start",_.aH(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.aH(this,this.onYtNavigateFinish_))};
_.r.updatePlaylistEventListeners=function(W,e){e&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!e&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.r.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.r.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.r.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.r.registerPlaylistEventListeners_=function(W){var e=this;W.getPlayerPromise().then(function(t){e.playerListenersSetup_||(e.ytPlayerListenerBehavior.listenToPlayerEvents(t,e.PLAYER_EVENTS_),e.playerListenersSetup_=!0)})};
_.r.removePlaylistEventListeners_=function(W){var e=this;W.getPlayerPromise().then(function(t){e.playerListenersSetup_&&(e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,e.PLAYER_EVENTS_),e.playerListenersSetup_=!1)})};
_.r.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.aH(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.aH(this,this.onPlaylistYtNavigate_))};
_.r.setAutoplayRenderer=function(W){this.autoplayData=W};
_.r.setPlaylistData=function(W){this.currentPlaylistData_=W;_.q2(this.hostElement,"yt-playlist-data-updated");_.kJ.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.r.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.r.getPlaylistData=function(){return this.currentPlaylistData_};
_.r.getTempData_=function(W,e){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);e&&(W.autonav="1",_.ee().resolve(_.gd),e=_.be(),e>0&&(W.lact=e),this.playerManager_&&(e=this.playerManager_.getPlayer())&&e.shouldSendVisibilityState()&&(e=e.getVisibilityState(),e!=0&&(W.vis=e)));_.S("enable_unknown_lact_fix_on_html5")&&(_.ee().resolve(_.gd),W.lact=
_.be());return W};
_.r.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.r.setLoopStateEntityKey_=function(W){var e;this.loopStateEntityKey_=((e=this.getPlaylistLoopData_(W))==null?void 0:e.playlistLoopStateEntityKey)||null};
_.r.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.r.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.r.skipVideo=function(){var W=this,e=_.S("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||e)e=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.lJ(_.Tm,function(){W.onPlaylistNext();W.videoSkipJob_=0},e)};
_.r.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Tm.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.r.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.r.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.q2(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.r.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.dv.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.r.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.r.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.r.navigateToAutoplayWatchEndpoint_=function(W,e,t){var b=this.playlistComponent.data.currentIndex,m=this.getNumPlayableVideos_();W=="NORMAL"&&e=="autoplayVideo"&&b+1>=m&&t||!(W=this.getVideoEndpoint_(W,e))||(t=this.getTempData_(W,t),_.q2(this.hostElement,"yt-navigate",{endpoint:W,tempData:t}))};
_.r.getNumPlayableVideos_=function(){for(var W=0,e=_.R(this.playlistComponent.data.contents||[]),t=e.next();!t.done;t=e.next())t.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.r.getVideoEndpoint_=function(W,e){if(this.autoplayData&&this.autoplayData.sets)for(var t=0,b=this.autoplayData.sets.length;t<b;t++){var m=this.autoplayData.sets[t];if(m.mode==W){if(m[e])return m[e];break}}else W=new _.o_("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+e),_.JC(W)};
_.r.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.r.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var e=W.detail;e.tempData=this.getTempData_(W.detail.endpoint);_.q2(this.hostElement,"yt-navigate",e)}};
_.r.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.r.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.r.playlistLoopStateEntityChanged_=function(W){var e=this,t,b,m;return _.F(function(q){if(q.nextAddress==1){if(!W)return q.return();t=W.state==="PLAYLIST_LOOP_STATE_ONE";return e.playerManager_?_.a(q,e.playerManager_.getPlayerPromise(),3):q.jumpTo(2)}q.nextAddress!=2&&(b=q.yieldResult,b.setLoopVideo(t));m=W.state==="PLAYLIST_LOOP_STATE_ALL";e.playlistComponent&&(e.playlistComponent.loopOn=m);_.u8(q)})};
_.r.getPlaylistLoopData_=function(W){var e,t;if(W=W==null?void 0:(e=W.playlistButtons)==null?void 0:(t=e.menuRenderer)==null?void 0:t.topLevelButtons)for(e=_.R(W),t=e.next();!t.done;t=e.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer};
_.r.getLoopStateCommand_=function(W){var e=this.getPlaylistData(),t;e=((t=this.getPlaylistLoopData_(e))==null?void 0:t.states)||[];var b;W=(b=_.l(e[W?1:2],_.QtZ))==null?void 0:b.button;var m;return(m=_.l(W,_.Md))==null?void 0:m.command};
_.r.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.r.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
ib.prototype.onPlaylistLoopStateEntityChanged=ib.prototype.onPlaylistLoopStateEntityChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],ib.prototype,"ytPlayerListenerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ib.prototype,"loopStateEntityKey_",void 0);
_.P([_.J({selectorArgs:["loopStateEntityKey_"],selector:_.CsR}),_.Y("design:type",Object)],ib.prototype,"playlistLoopStateEntity_",void 0);_.P([_.ul("playlistLoopStateEntity_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ib.prototype,"onPlaylistLoopStateEntityChanged",null);_.P([_.h({disableElementRegistration:!0,is:"yt-playlist-manager"})],ib);_.H(ib,"yt-playlist-manager",void 0,{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var SPQ,BqE=function(){if(SPQ!==void 0)return SPQ;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SPQ=W};var Yp=function(){var W=_.O.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.Z(Yp,_.O);_.r=Yp.prototype;_.r.getLocation=function(){return window.location.href};
_.r.getCompletionUrl=function(){return _.ET(this.getLocation())};
_.r.containsRedirectState=function(W){return(W=_.fn(_.Q2z(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.r.createGalConfig=function(W,e){var t=new Jvu;W=t=e?this.getPopupOrRedirectSetting(t,_.Ot("LINK_API_KEY"),_.Ot("LINK_API_KEY_REDIRECT"),W):xVS(t,_.Ot("LINK_API_KEY"));W.authUser=_.Ot("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.r.getPopupOrRedirectSetting=function(W,e,t,b){this.isGalInteractionPopupMode(b)?(W.interactionMode=0,W=xVS(W,e)):(W.interactionMode=1,e=this.getCompletionUrl(),W.completionUrl=e,W=xVS(W,t));return W};
_.r.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.r.getStatusEntityKeyForProviderId=function(W){return _.X4(W+":all","accountLinkStatusEntity")};
_.r.findNestedPropValue=function(W,e){var t=!1,b=null;JSON.stringify(W,function(m,q){t||m!==e||(t=!0,b=q);return t?null:q});
return b};
_.r.findAccountLinkButtonViewModel=function(W,e){var t=null,b=!1;JSON.stringify(W,function(m,q){b||q.accountLinkStatusEntityKey!==e||q.accountLinkStatusSecondaryEntityKey||(b=!0,t=q);return b?null:q});
return t};
_.r.executeLinkingSuccessOrFailureCommands=function(W,e,t){var b=null,m;(e==null?0:(m=e.url)==null?0:m.includes("account_sharing"))?b=e==null?void 0:e.response:b=e==null?void 0:e.response;(e=this.findAccountLinkButtonViewModel(b,W))?(W=t?this.findNestedPropValue(e,"onSuccessCommand"):this.findNestedPropValue(e,"onFailureCommand"))?_.uc([W],this.hostElement):_.Kt(Error("fl")):_.Kt(Error("gl`"+W))};
_.r.handleInitializeRequest=function(W,e){var t=this,b=XTl(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?rA1(W,b.config,b.galService).then(function(m){var q=t.getStatusEntityKeyForProviderId(W);if(m.statusCode===1)e&&t.executeLinkingSuccessOrFailureCommands(q,e,!0),m=t.getLocation().indexOf("#"),m!==-1&&window.history.pushState(null,"",t.getLocation().substring(0,m));else return e&&t.executeLinkingSuccessOrFailureCommands(q,e,!1),Promise.reject(Error(m.statusMessage))}).catch(function(m){_.JC(m);
_.nJ("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(m)}):this.getAccountLinkPromises[W]=b.startLinkingSession({serviceId:W})};
_.r.handleAccountLinkCommand=function(W){_.l(W,Bfl)&&this.handleLinkRequest(_.l(W,Bfl))};
_.r.handleLinkRequest=function(W){var e=this,t=W.thirdPartyId;if(t)if(this.isGalInteractionPopupMode(t)){var b=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},m=function(){e.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=m;this.getAccountLinkPromises[t].then(function(q){uZ1(q).then(function(Q){Q.statusCode===1?m():b()})}).catch(function(){b()})}else this.getAccountLinkPromises[t].then(function(q){uZ1(q).then(function(Q){if(Q.statusCode!==1)return Promise.reject(Error(Q.statusMessage))})}).catch(function(q){_.JC(q);
_.nJ("gamingAccountLinkStatusChanged",{serviceId:t,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(q)})};
_.r.closeAndFire=function(W,e){_.RT(this.hostElement,"yt-close-popup-action",[W]);e&&_.uc([e],this.hostElement)};
_.r.handleAccountUnlinkCommand=function(W){_.l(W,oGB)&&this.handleUnlinkRequest(_.l(W,oGB))};
_.r.handleUnlinkRequest=function(W){var e=this,t=W.thirdPartyId;if(t){var b=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},m=function(){e.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=m;var q=XTl(this.createGalConfig(t,!1));this.unlinkUserGal(q,t).then(function(Q){Q.statusCode===1?m():b()}).catch(function(){b()})}};
_.r.unlinkUserGal=function(W,e){return W.deleteLink(e)};
_.r.handleLogAccountLinkingEventCommand=function(W){_.S("enable_gel_log_commands")&&_.l(W,lJl)&&(W=_.l(W,lJl).event)&&_.nJ("gamingAccountLinkStatusChanged",W)};
_.Ec.Object.defineProperties(Yp,{template:{configurable:!0,enumerable:!0,get:function(){return BqE()}}});
_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],Yp.prototype,"ytOpenPopupBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Yp.prototype,"ytActionHandlerBehavior",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Yp);_.H(Yp,"ytd-third-party-manager",function(){return BqE()},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var oyC,lz1=function(){return oyC!==void 0?oyC:oyC=document.createElement("template")};
document.head.appendChild(lz1().content);var Z7T,$M1=function(){if(Z7T!==void 0)return Z7T;var W=document.createElement("template");_.p(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");W.content.insertBefore(lz1().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Z7T=W};var keg=_.Nw(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),zK=function(){var W=_.O.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.applyZoomTransition=_.r8("web_page_transition_type")==="zoom";W.applySlideTransition=_.r8("web_page_transition_type")==="slide"||_.S("enable_plj_landing_page");W.TEST_ONLY=void 0;return W};
_.Z(zK,_.O);_.r=zK.prototype;_.r.ready=function(){var W=_.ee();W.addProvider({provide:_.WS,useValue:this});W.addProvider({provide:_.gxr,useValue:this})};
_.r.created=function(){this.pagePool=new UQ9;this.contextSwitcher=new Rd1};
_.r.attached=function(){_.q2(this.hostElement,"attached");var W=_.ee().resolve(_.Wi(_.Ti));W&&(this.contextSwitcher.JSC$17634_networkService_=W);this.viewTransitionCoordinator=_.ee().resolve(_.Wi(_.q1));this.setupPageTransitionAnimation()};
_.r.getPageOffset=function(W){return W.getScrollTop()};
_.r.setPageOffset=function(W,e){try{W.setScrollTop(e)}catch(t){}};
_.r.setPageOffsetForNavigation=function(W,e){_.q2(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:e===void 0?0:e})};
_.r.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.r.getModuleNameForType=function(W){return W==="watch"?_.S("kevlar_watch_fixie")?"watchFixie":_.S("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.r.attachPage=function(W){var e,t=!_.S("pc_is_attached_ks")&&(W==null?void 0:(e=W.polymerController)==null?void 0:e.isAttached);if(!W.isAttached&&!t)try{_.rz(this.hostElement).appendChild(W)}catch(m){var b;_.JC(new _.o_("Error attaching page element for component",{origin:(b=this.currentPage)==null?void 0:b.is,component:W.is}))}};
_.r.setActivePage=function(W){var e=this,t=!1,b=function(){var m=e.isOnWatch(),q=e.currentPage;if(W)if(W!==e.currentPage){q&&(q.hidden=!0,q.active=!1,q.removeAttribute("role"));e.currentPage=W;var Q,X=_.Da((Q=e.data)==null?void 0:Q.endpoint);q&&_.q2(e.hostElement,"yt-page-type-changed",{oldPageType:q.is,newPageType:W.is,newPageSubtype:X});_.Yt().dispatch(_.rO({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.Yt().dispatch(_.rO({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:X||""}));W.hidden=
!1;e.attachPage(W);W.active=!0;W.setAttribute("role","main");q&&e.setPageOffsetForNavigation(W,0);_.S("kevlar_remove_page_dom_on_switch")&&!m&&q&&_.rz(e.hostElement).removeChild(q)}else t=!0;else m=new _.o_("Unable to set active page",q?q.is:"unknown origin",(X=e.data)==null?void 0:X.endpoint),_.gQ(m)};
this.viewTransitionCoordinator?CL9(this.viewTransitionCoordinator,b,this.viewTransitionConfigForSetActivePage(this.currentPage,W)):b();return t};
_.r.viewTransitionConfigForSetActivePage=function(W,e){return _.S("web_thumbnail_to_watch_transition")&&(W==null?void 0:W.is)==="ytd-browse"&&this.isWatchPage(e)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(W==null?void 0:W.is)==="ytd-browse"&&(e==null?void 0:e.is)==="ytd-browse"&&W!==e?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(W==null?void 0:W.is)!=="ytd-browse"||(e==null?void 0:e.is)!=="ytd-watch-learning-journey"&&
(e==null?void 0:e.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.r.updatePageData=function(W){var e=this,t=this.data;this.updatePageDataJobId&&_.Tm.cancelJob(this.updatePageDataJobId);this.data=W;return new _.c3(function(b){var m=function(){W.filler?e.performDataUpdate(W,t):zsM(function(){e.performDataUpdate(W,t)});
var I=_.sj();_.h2(I,"cr")||I.processSignal("cr");b()},q=function(){W&&W.page==="watch"?e.updatePageDataJobId=_.lJ(_.Tm,m):m()};
if(_.S("kevlar_enable_mss_page_modules_client")&&W){var Q=_.ee().resolve(_.V$),X=e.getModuleNameForType(W.page);(Q=TAM(Q,[X]))?Q.then(q):q()}else q()})};
_.r.isDownloadsPage=function(W){var e,t;return(W==null?void 0:(e=W.endpoint)==null?void 0:(t=e.browseEndpoint)==null?void 0:t.browseId)==="FEdownloads"};
_.r.setPlayerSyncInterval=function(W){var e;return _.F(function(t){if(t.nextAddress==1)return _.a(t,_.ee().resolve(_.Rv),2);e=t.yieldResult;e.setUpPositionSyncInterval(W);_.u8(t)})};
_.r.performDataUpdate=function(W,e){_.S("kevlar_early_popup_close")||_.RT(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var t=!W.filler;t&&(_.Tv("lps"),_.S("config_age_report_killswitch")||kmw());var b=Wp(W),m,q=!1;if(_.S("kevlar_remove_page_dom_on_switch")){var Q=e&&Wp(e);b===Q&&(m=this.getCurrentPage())}m||(m=xp(this.pagePool,b));t&&Etw(this.pagePool.elementPoolPopulator,b);t&&!this.renderLoadingStateJobId&&(q=this.setActivePage(m));if(m){Q=b==="watch";var X=
b==="shorts",I=b==="learning_journey_watch";_.S("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(m);if(Q||X||I)m.playerData=W.playerResponse;if(X){W.reelWatchSequenceResponse?m.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse?m.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse:_.S("web_enable_cached_reel_sequence_fix")&&m.cachedReelWatchSequenceResponse&&!m.reelWatchSequenceResponse&&(m.reelWatchSequenceResponse=m.cachedReelWatchSequenceResponse);
m.currentEndpoint=W.endpoint;var u;m.isPreviousPageShorts=!!(e==null?0:(u=e.endpoint)==null?0:u.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=W.reelWatchSequenceResponse||W.cachedReelWatchSequenceResponse||(e==null?void 0:e.cachedReelWatchSequenceResponse);m.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}u=this.isDownloadsPage(W);var c=this.isDownloadsPage(e);u&&!c?this.setPlayerSyncInterval(6E5):!u&&c&&this.setPlayerSyncInterval();_.S("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(W,m,t,Q,X,I);J_l(_.ee().resolve(_.Kn),e,W);_.Ep(_.ee().resolve(_.gd));_.S("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(m);t?(t=typeof m.loadPage,t==="function"?(m.pageContext=Qe9(this.contextSwitcher,m,m.data!==W.response),t=function(){m.loadPage(W.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&m.is==="ytd-browse"&&q&&(b==="learning"||this.isDifferentBrowseId(W==null?void 0:W.endpoint,
e==null?void 0:e.endpoint))?this.applySlideTransition?CL9(this.viewTransitionCoordinator,t,{transitionType:"slide"}):CL9(this.viewTransitionCoordinator,t,{transitionType:"zoom"}):t()):_.TT(new _.o_("b/38014653 ",[b,
m.is,m.nodeName,t,m.isAttached,e&&Wp(e),this.hostElement.children.length])),_.Tv("pdl")):(m.hidden=!0,W.response.filler=!0,m.data=W.response,this.attachPage(m));_.q2(this.hostElement,"yt-page-data-updated",{pageType:b})}_.kM(_.Tm,function(){_.S("logging_avoid_blocking_during_navigation")&&_.em2().transition("none");var v=ZTT(),D=m;if(W){var B=efS(W),k=tzC(W),n;a:{if(W.playerResponse){var f=W.playerResponse,M;if((n=f.auxiliaryUi)==null?0:(M=n.messageRenderers)==null?0:M.upsellDialogRenderer){n=f.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(n=W.response,(f=n.overlay)==null?0:f.upsellDialogRenderer)){n=n.overlay.upsellDialogRenderer;break a}n=void 0}var K;var U;M=(K=W.playerResponse)==null?void 0:(U=K.auxiliaryUi)==null?void 0:U.messageRenderers;K=(M==null?void 0:M.enforcementMessageViewModel)||(M==null?void 0:M.bkaEnforcementMessageViewModel);K=(K==null?void 0:K.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?K:void 0;var V;a:{if(W.response&&(U=W.response,(V=U.overlay)==null?0:V.commandWrapperPromoRenderer)){V=
U.overlay.commandWrapperPromoRenderer;break a}V=void 0}lUE(v,B,k,n,K,V,D)}})};
_.r.preparePrefetchRequest=function(W,e,t,b,m,q){var Q,X,I,u,c,v,D,B,k,n,f,M,K,U,V;return _.F(function(L){if(L.nextAddress==1)return!t||!(b||m||q)||_.S("kevlar_disable_background_prefetch")&&_.hJ(_.z6L)()===0?L.return():(Q=_.eX(e))?_.a(L,Q.getPlayerPromise(),2):L.return();X=L.yieldResult;I=_.ee().resolve(_.Wi(_.Ti));if(!I)return L.return();if(m)return u=_.Fq(_.ZU),b4C(u,(c=W.endpoint)==null?void 0:c.reelWatchEndpoint,e.reelWatchSequenceResponse,X,I),L.return();B=(v=W.response)==null?void 0:(D=v.responseContext)==
null?void 0:D.webResponseContextExtensionData;if(!B)return L.return();K=(k=W.response)==null?void 0:(n=k.contents)==null?void 0:(f=n.twoColumnWatchNextResults)==null?void 0:(M=f.autoplay)==null?void 0:M.autoplay;U=_.ee().resolve(_.Oj);V=_.Fq(_.ZU);mkC(V,B,X,I,U,K);_.u8(L)})};
_.r.movePlayerToWatch=function(W){var e=this,t,b;return _.F(function(m){t=xp(e.pagePool,"watch");b=t.getPlayerContainer();W.appendTo(b);_.u8(m)})};
_.r.movePlayerToShorts=function(W){var e=this,t,b,m;return _.F(function(q){t=xp(e.pagePool,"shorts");b=t.getPlayerContainer();(m=W)==null||m.appendTo(b,void 0,!0);_.u8(q)})};
_.r.getPlayerFromWatch=function(){var W=xp(this.pagePool,"watch");return _.eX(W)};
_.r.getPlayerFromShorts=function(){var W=xp(this.pagePool,"shorts");return _.eX(W)};
_.r.startLoadingWatch=function(){var W=xp(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Tm.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(W)};
_.r.startLoadingShorts=function(){var W=xp(this.pagePool,"shorts");this.setActivePage(W)};
_.r.startLoadingLearningJourney=function(){var W=xp(this.pagePool,"learning_journey_watch");this.setActivePage(W)};
_.r.getCurrentPage=function(){return this.currentPage};
_.r.getDestinationPageType=function(){return this.destinationPageType};
_.r.getCurrentData=function(){return this.data};
_.r.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.r.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.r.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.r.preparePage=function(W,e){var t=this,b=function(){var Q=t.pagePool.preparePage(W,t.currentPage,e);Q&&t.attachPage(Q)},m=function(Q){_.xM(Q,e);
_.JC(Q)};
if(_.S("kevlar_enable_mss_page_modules_client")){var q=this.getModuleNameForType(W);if(q=TAM(_.ee().resolve(_.V$),[q])){q.then(b.bind(this)).catch(m.bind(this));return}}try{b()}catch(Q){m(Q)}};
_.r.lazyPrepareCriticalPages=function(W,e){W=_.Da(e)||W;_.S("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.r.maybePrepareWatchPage=function(W){W!=="watch"&&_.kM(_.Tm,this.preparePage.bind(this,"watch"))};
_.r.downloadPageModules=function(W){W=this.getModuleNameForType(W);var e=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);e.delete(W);var t=_.ee().resolve(_.V$);t.JSC$16394_loadModules(W);return t.JSC$16394_loadModules.apply(t,_.kP(e))};
_.r.renderPageLoadingState=function(W,e){this.preparePage(W,e);var t=xp(this.pagePool,W);t.loadingData&&(t.loadingData.endpoint=e);t.loading=!0;this.setActivePage(t);W!=="watch"&&W!=="learning_journey_watch"||_.q2(this.hostElement,"yt-guide-close")};
_.r.prepareForNavigation=function(W,e){var t=this;if(this.currentPage&&this.data){var b=_.Da(e)||W;this.destinationPageType=b;Wp(this.data)==b&&_.q2(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((W==="watch"||W==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Tm.cancelJob(this.renderLoadingStateJobId);_.ee().resolve(_.Kn).deactivate(e);var m=this.data;this.renderLoadingStateJobId=_.CU(_.Tm,function(){if(t.data!=
m){var q=xp(t.pagePool,W);t.setActivePage(q)}else t.renderPageLoadingState(W,e);t.renderLoadingStateJobId=0},150)}};
_.r.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.bw(1);this.currentPage.pageDisposeJobs.forEach(function(e){_.mI(W,e)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.r.flushPageDisposeJobset=function(W){var e=this.pageDisposeJobsets.get(W);e&&(e.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.r.onYtStopOldPlayer=function(W,e){e=e===void 0?!1:e;var t,b=_.qz("kevlar_new_stop_old_player_logic_pages");if(_.S("kevlar_check_current_page_on_stop_old_player")&&(b.length===0||this.currentPage&&b.includes(this.currentPage.is)))if(this.data&&(t=Wp(this.data)),Wp(W)===t&&this.currentPage&&Wp(this.currentPage.data)!==t)var m=_.eX(this.currentPage);else t=Wp(this.data),m=xp(this.pagePool,t),m=_.eX(m);else this.data&&(t=Wp(this.data),m=xp(this.pagePool,t),m=_.eX(m));if(m)if(W=Wp(W),b=xp(this.pagePool,
W),b=_.eX(b),m==b)e&&!_.S("kevlar_disable_preemptive_player_reset")&&m.resetForNewPlayback();else if(e=t==="watch"&&W!=="watch",!e||W==="shorts"||_.AHe()&&!SiC(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")t=_.ee().resolve(_.Kn),e&&t.isMiniplayerActive()&&t.pipController.getWindow()||m.stop()};
_.r.setupPageTransitionAnimation=function(){var W=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){E_(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
E_(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
var e=_.mn("web_page_transition_exit_ms"),t=_.mn("web_page_transition_wait_ms"),b=_.mn("web_page_transition_enter_ms");if(!isNaN(e)||!isNaN(t)||!isNaN(b))if(e=piu(keg,e,t,b))t=document.createElement("style"),t.textContent=_.ZOg(e),document.head.appendChild(t)}};
_.r.isDifferentBrowseId=function(W,e){W=_.l(W,_.Sf);e=_.l(e,_.Sf);return(W==null?void 0:W.browseId)!==(e==null?void 0:e.browseId)};
_.Ec.Object.defineProperties(zK,{template:{configurable:!0,enumerable:!0,get:function(){return $M1()}}});
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-page-manager"})],zK);_.H(zK,"ytd-page-manager",function(){return $M1()},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var UI=function(W,e,t){t=t===void 0?!1:t;_.ka.call(this);this.draggableElement=W;this.callbacks=e;this.allowClicks=t;this.dragOccurred=!1;this.internalDragger=new _.MR(this.draggableElement);this.dragDelay=new _.ds(this.delayedDrag.bind(this));p4S(this);this.allowClicks&&(_.rJZ(this.internalDragger,5),W.addEventListener("click",_.aH(this,this.validateClick),{capture:!0}))};
_.Z(UI,_.ka);var p4S=function(W){_.p4(W.internalDragger,"earlycancel",function(){W.allowClicks&&(W.dragOccurred=!1)});
_.p4(W.internalDragger,"start",function(e){var t,b;(b=(t=W.callbacks).onStartDrag)==null||b.call(t,e);!e.defaultPrevented&&W.allowClicks&&(W.dragOccurred=!0)});
_.p4(W.internalDragger,"beforedrag",function(e){e.preventDefault();W.lastOffset=new _.jH(e.clientX-W.internalDragger.startX,e.clientY-W.internalDragger.startY);W.dragDelay.start()});
_.p4(W.internalDragger,"end",function(){W.dragDelay.stop();var e,t;(t=(e=W.callbacks).onEndDrag)==null||t.call(e);W.lastOffset=void 0})};
UI.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
UI.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.aH(this,this.validateClick),{capture:!0})};
UI.prototype.validateClick=function(W){this.dragOccurred&&(this.dragOccurred=!1,W.stopPropagation(),W.preventDefault())};var Lp=function(W,e){_.ka.call(this);this.JSC$17835_resizeContainer=W;this.callbacks=e;this.aspectRatio=16/9;this.JSC$17835_resizers=[];W=_.R(this.JSC$17835_resizeContainer.children);for(e=W.next();!e.done;e=W.next())yHE(this,e.value)};
_.Z(Lp,_.ka);Lp.prototype.disposeInternal=function(){for(var W=_.R(this.JSC$17835_resizers),e=W.next();!e.done;e=W.next())e.value.dispose();W=_.R(this.JSC$17835_resizeContainer.children);for(e=W.next();!e.done;e=W.next())e.value.setAttribute("disabled","");this.JSC$17835_resizers.length=0};
Lp.prototype.setSize=function(W){this.currentMiniplayerSize=W};
Lp.prototype.setAspectRatio=function(W){this.aspectRatio=W};
Lp.prototype.update=function(W,e){for(var t=_.R(this.JSC$17835_resizeContainer.children),b=t.next();!b.done;b=t.next()){b=b.value;var m=b.getAttribute("alignment");_.QQ(b,"disabled",m===W||m===e)}};
var yHE=function(W,e){var t=e.getAttribute("alignment"),b=new UI(e,{onStartDrag:function(m){if(e.hasAttribute("disabled"))m.preventDefault();else{W.dragStartSize=W.currentMiniplayerSize;var q,Q;(Q=(q=W.callbacks).onStartResize)==null||Q.call(q)}},
onDrag:function(m){if(W.dragStartSize){t!=="north"&&t!=="west"||m.scale(-1);var q=t==="north"||t==="south";m=q?m.y:m.x;q&&W.aspectRatio>=1?m*=W.aspectRatio:!q&&W.aspectRatio<1&&(m/=W.aspectRatio);W.callbacks.onResize(W.dragStartSize+m)}}});
W.JSC$17835_resizers.push(b)};var jjg,CwT=function(){return jjg!==void 0?jjg:jjg=document.createElement("template")};
document.head.appendChild(CwT().content);var nyB;var fz$=_.NN(function(W){var e=_.zT("yt-draggable"),t=W.onDrag,b=W.onDragStart,m=W.onDragEnd,q=_.Ez(W,{allowClicks:!1,dragThreshold:5}),Q=q.dragThreshold,X=q.allowClicks;W=q.children;q=q.className;var I=void 0,u=void 0,c=new _.jH(0,0),v=!1;_.nt(function(){I=new _.MR(e.value);u=new _.ds(B);D(I,u);if(X()){_.rJZ(I,Q());var n;(n=e.value)==null||n.addEventListener("click",k,{capture:!0})}_.fh(function(){var f;(f=I)==null||f.dispose();if(X()){var M;(M=e.value)==null||M.removeEventListener("click",k,{capture:!0})}})});
var D=function(n,f){_.p4(n,"earlycancel",function(){X()&&(v=!1)});
_.p4(n,"start",function(M){b==null||b(M);M.defaultPrevented||X()&&(v=!0)});
_.p4(n,"beforedrag",function(M){I&&u&&(M.preventDefault(),c=new _.jH(M.clientX-I.startX,M.clientY-I.startY),u.start())});
_.p4(n,"end",function(){f.stop();m==null||m();c=new _.jH(0,0)})},B=function(){c&&t(c)},k=function(n){v&&(v=!1,n.stopPropagation(),n.preventDefault())};
return _.w("yt-draggable",{el:e,class:_.ve("ytDraggableComponentHost",q)},W)},"og");var gyM=_.NN(function(W){var e=_.R(_.up(0,void 0,"CvAwBd")),t=e.next().value,b=e.next().value;e=function(m){var q={},Q={};return _.w(fz$,{className:_.ve("ytdMiniplayerComponentResizer",(q.ytdMiniplayerComponentResizerDisabled=function(){return m===W.horizontalAlignment()||m===W.verticalAlignment()},q.ytdMiniplayerComponentResizerNorth=m==="north",q.ytdMiniplayerComponentResizerEast=m==="east",q.ytdMiniplayerComponentResizerSouth=m==="south",q.ytdMiniplayerComponentResizerWest=m==="west",q)),
onDragStart:function(){b(W.currentMiniplayerSize());if(W.onResizeStart)W.onResizeStart()},
onDrag:function(X){m!=="north"&&m!=="west"||X.scale(-1);var I;X=(I=m==="north"||m==="south")?X.y:X.x;var u=W.currentAspectRatio();I&&u>=1?X*=u:!I&&u<1&&(X/=u);I=X;W.onResize(t()+I)}},_.w("div",{class:_.ve("ytdMiniplayerComponentResizerCorner",(Q.ytdMiniplayerComponentResizerNorthCorner=m==="north",Q.ytdMiniplayerComponentResizerEastCorner=m==="east",Q.ytdMiniplayerComponentResizerSouthCorner=m==="south",Q.ytdMiniplayerComponentResizerWestCorner=m==="west",Q))}))};
return _.w("div",{class:"ytdMiniplayerComponentResizers"},e("north"),e("east"),e("south"),e("west"))},"pg");var Tqu=16/9,JHE=_.NN(function(){var W=_.zT("ytd-miniplayer"),e=_.R(_.up(new _.aD(NaN,NaN),void 0,"YeKki")),t=e.next().value,b=e.next().value;e=_.R(_.up(!1,void 0,"DcXgUd"));var m=e.next().value,q=e.next().value;e=_.R(_.up(!1,void 0,"aDeXOc"));var Q=e.next().value,X=e.next().value;e=_.R(_.up(!1,void 0,"JpZfjb"));var I=e.next().value,u=e.next().value;e=_.R(_.up(!1,void 0,"EmCWpc"));var c=e.next().value,v=e.next().value;e=_.R(_.up(!1,void 0,"ovvtt"));var D=e.next().value,B=e.next().value;e=_.R(_.up(!1,
void 0,"wPIoNd"));var k=e.next().value,n=e.next().value;e=_.R(_.up(Tqu,void 0,"AmisJf"));var f=e.next().value,M=e.next().value,K=_.R(_.up(!1,void 0,"uNKP1c"));e=K.next().value;var U=K.next().value;K=_.R(_.up(!1,void 0,"n9hvIf"));var V=K.next().value,L=K.next().value;K=_.R(_.up(void 0,void 0,"Sjx4Dc"));var E=K.next().value,RR=K.next().value;K=_.R(_.up(_.Ot("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var uv=K.next().value,GS=K.next().value;K=_.R(_.up("south",void 0,"jyzxy"));var k9=K.next().value,
CQ=K.next().value;K=_.R(_.up(400,void 0,"JFUs2d"));var fQ=K.next().value,iv=K.next().value,hz=_.ee().resolve(_.Kn).miniplayerPropSignalMap[0],ES=hz.data,Wu=hz.externalPlaylistData;K=hz.toastData;var pr=hz.playabilityStatus,ay=hz.isReadyToResume,PU=hz.isDisabled,cu=hz.watchWhile,LQ=hz.playerVe,sB=hz.expandVe,z1=hz.closeVe,FD=hz.readyToResumeVe,DD=hz.readyToResumeCloseVe,nr=hz.repositionVe,UB=hz.resizeVe;hz=_.R(_.ZT(ay));var ZD=hz.next().value,US=hz.next().value,Ha=!1,zZ=!1,qo;_.nt(function(){b(_.lm());
W.value.addEventListener("animationend",function(HU){HU.target===W.value&&(B(!1),n(!1))});
$2S(W.value)});
_.YM("yt-window-resized",function(HU){HU&&b(HU)});
var sS=function(){qo&&M(qo.getVideoAspectRatio())},ST=function(){if(qo){var HU=qo.getPlayerState()===1;
ZD()&&HU&&US(!1)}},SP=function(){var HU=sB();
if(HU){var kl=_.fc(3);kl&&_.zv(kl,HU)}},y8=function(){var HU=z1(),kl=DD();
HU&&_.zv(_.fc(3),HU);ay()&&kl&&_.zv(_.fc(3),kl)};
_.YM("yt-activate-miniplayer",function(HU){var kl;return _.F(function(WR){if(WR.nextAddress==1)return m()?WR.return():_.a(WR,(kl=_.ee().resolve(_.Kn).getPlayerElement())==null?void 0:kl.getPlayerPromise(),2);qo=WR.yieldResult;if(!qo)return WR.return();!V()&&_.S("kevlar_watch_while_v2")&&(CQ(HU&&!_.S("kevlar_watch_while_bottom_align")?"north":"south"),GS(_.Ot("HTML_DIR")==="rtl"?"west":"east"));var mf=qo;mf.addEventListener("onVideoDataChange",sS);mf.addEventListener("onStateChange",ST);mf.addEventListener("onExpandMiniplayer",
SP);mf.addEventListener("onCloseMiniplayer",y8);M(qo.getVideoAspectRatio());q(!0);ZeB()||B(!0);_.u8(WR)})});
_.YM("yt-deactivate-miniplayer",function(HU){return _.F(function(kl){if(!m())return kl.return();q(!1);US(!1);n(HU);v(!1);X(!1);if(qo){var WR=qo;WR.removeEventListener("onVideoDataChange",sS);WR.removeEventListener("onStateChange",ST);WR.removeEventListener("onExpandMiniplayer",SP);WR.removeEventListener("onCloseMiniplayer",y8)}ZeB()||B(!0);_.u8(kl)})});
var I$=function(){return!(cu()&&_.S("kevlar_watch_while_modern"))},Rm=function(){var HU;
return!((HU=Wu())==null||!HU.contents)},q9=function(){var HU=fQ();
var kl=t();kl=Math.min(Math.min(kl.width,kl.height)-32,720);var WR=f(),mf=I$(),Ch=Rm()&&Q(),KP=Math.min(HU,kl);HU=new _.aD(192,mf?116:192);WR=bD$(new _.aD(Ch?Tqu:WR,1),new _.aD(KP,mf?KP-76:KP));HU.width<=WR.width&&HU.height<=WR.height||(tBE(WR,HU),WR.width=Math.min(WR.width,kl),WR.height=Math.min(WR.height,kl));return new _.aD(WR.width,_.Mw(192,WR.height+CcC(mf,Ch),720))},Ba=function(){var HU=q9(),kl=I$(),WR=Rm()&&Q();
return new _.aD(HU.width,HU.height-CcC(kl,WR))},HF=function(){var HU=function(kl){kl.target===W.value&&c()&&(v(!1),W.value.removeEventListener("transitionend",HU))};
ZeB()||(W.value.addEventListener("transitionend",HU),v(!0));X(!Q())};
_.nh(function(){var HU=LQ(),kl=_.fc(3),WR=_.nc(3);if(kl&&WR&&HU){_.Ke(kl,WR,HU);WR=nr();var mf=UB(),Ch=sB(),KP=z1(),Pi=DD();Ch&&KP&&Pi&&(_.P6(kl,HU,[Ch,KP,Pi]),_.ic(kl,[Ch,KP]));WR&&mf&&_.P6(kl,HU,[WR,mf])}},"yiTJkc");
_.nh(function(){var HU=FD();if(HU){var kl=_.fc(0),WR=_.nc(0);kl&&WR&&(_.Ke(kl,WR,HU),_.ic(kl,[HU]))}},"fy89qe");
hz={};return _.w("ytd-miniplayer",{el:W,class:_.ve("ytdMiniplayerComponentHost",(hz.ytdMiniplayerComponentVisible=function(){return m()||D()},hz.ytdMiniplayerComponentAnimatingSnap=I,hz.ytdMiniplayerComponentAnimatingPlaylistExpand=c,hz.ytdMiniplayerComponentAnimatingFade=D,hz),function(){if(D()){var HU=k9();
var kl=m(),WR=k();HU=kl?HU==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":WR?HU==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":HU==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else HU="";return HU}),
style:_.$D({top:function(){return k9()==="north"?"16px":""},
right:function(){return uv()==="east"?"16px":""},
bottom:function(){return k9()==="south"?"16px":""},
left:function(){return uv()==="west"?"16px":""},
width:function(){return q9().width+"px"},
height:function(){return q9().height+"px"},
transform:function(){var HU=E();return HU?"translate("+HU.x+"px, "+HU.y+"px)":""}})},_.w("div",{class:"ytdMiniplayerComponentContent"},_.w(fz$,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(HU){var kl=jTU(uv(),k9(),t(),q9(),E()),WR=Ba();Math.abs(HU.clientY-(kl.y+WR.height))>15?(U(!0),HU=_.fc(3),kl=nr(),Ha||(Ha=!0,HU&&kl&&_.ic(HU,[kl])),HU&&kl&&_.zv(HU,kl)):HU.preventDefault()},
onDrag:function(HU){RR(HU)},
onDragEnd:function(){var HU=kvQ(jTU(uv(),k9(),t(),q9(),E()),t(),q9()),kl=yyg(uv(),k9(),t(),q9()),WR=yyg(HU.horizontalAlignment,HU.verticalAlignment,t(),q9());WR=new _.jH(WR.x-kl.x,WR.y-kl.y);var mf;kl=kl.y+(((mf=E())==null?void 0:mf.y)||0)+q9().height/2;var Ch=function(){uv()===HU.horizontalAlignment&&k9()===HU.verticalAlignment||L(!0);GS(HU.horizontalAlignment);CQ(HU.verticalAlignment);RR(void 0)},KP=function(Pi){Pi.target===W.value&&I()&&(u(!1),Ch(),W.value.removeEventListener("transitionend",KP))};
U(!1);k9()==="south"&&kl>t().height?(Ch(),_.ee().resolve(_.Kn).close()):(W.value.addEventListener("transitionend",KP),u(!0),RR(WR))}},_.w(_.G,{cond:m,
then:function(){return _.w(_.TEl,{isDisabled:PU,playabilityStatus:pr,size:Ba})}}),_.w(_.G,{cond:I$,
then:function(){return _.w(_.fMM,{isReadyToResume:ZD,data:ES,expanded:Q,onExpandClick:HF,playlistData:Wu})}}),_.w(_.G,{cond:e,
then:function(){return _.w("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.w(_.G,{cond:function(){return Rm()&&Q()||c()},
then:function(){return _.w(_.tck,{className:"ytdMiniplayerComponentPlaylistPanel",data:Wu,hideHeaderText:!0,withinMiniplayer:!0})}}),_.w("div",{class:"ytdMiniplayerComponentToast"},_.w(_.JSE,{toastData:K}))),_.w(gyM,{onResize:function(HU){iv(_.Mw(192,HU,720))},
onResizeStart:function(){var HU=_.fc(3),kl=UB();zZ||(zZ=!0,HU&&kl&&_.ic(HU,[kl]));HU&&kl&&_.zv(HU,kl)},
currentAspectRatio:f,currentMiniplayerSize:fQ,horizontalAlignment:uv,verticalAlignment:k9}))},"qg");_.S("ytd_miniplayer_to_wiz")&&_.mM(JHE,"ytd-miniplayer",{});_.mM(_.JSE,"ytd-miniplayer-toast",{props:{toastData:_.Eu}});var xMT=16/9,O7M=new _.aD(400,400/xMT),EI=function(){var W=_.O.apply(this,arguments)||this;W.active=!1;W.hasNoData=!1;W.enabled=!1;W.expanded=!1;W.readyToResume=!1;W.isDisabled=!1;W.externalPlaylistData={};W.premiumBadges=[];W.watchWhile=!1;W.playerState=null;W.verticalAttachment="south";W.horizontalAttachment=_.Ot("HTML_DIR")==="rtl"?"west":"east";W.isAnimatingFade=!1;W.isAnimatingSnap=!1;W.isAnimatingExpand=!1;W.isDragging=!1;W.playerHidden=!1;W.hasPlaylistData=!1;W.closed=!1;W.expandedClosed=!1;
W.isForReadyToResume=!1;W.watchResponse=null;W.player=null;W.playerVe=null;W.expandVe=null;W.closeVe=null;W.readyToResumeCloseVe=null;W.disabledInitialStateIsPlaying=!1;W.PLAYER_EVENTS=new Map;W.aspectRatio=xMT;W.currentMiniplayerSize=400;W.userSetSize=!1;W.userSetPosition=!1;W.userHasDragged=!1;W.maxMiniplayerSize=720;W.transform=new _.jH(0,0);W.windowDimensions=new _.aD(NaN,NaN);W.dimensions=O7M;W.screenLayer=3;W.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return W};
_.Z(EI,_.O);_.r=EI.prototype;_.r.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.r.ready=function(){this.setUpDragging();this.setUpResizing()};
_.r.attached=function(){this.onWindowResized(_.lm());this.hostElement.addEventListener("animationend",_.aH(this,this.resetFadingAnimation))};
_.r.detached=function(){this.hostElement.removeEventListener("animationend",_.aH(this,this.resetFadingAnimation))};
_.r.resetFadingAnimation=function(W){W.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.r.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.r.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.r.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var W=_.fc(this.screenLayer);this.readyToResumeCloseVe&&W&&_.ic(W,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.r.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var W=_.fc(0),e=_.nc(0);W&&e&&(_.Ke(W,e,this.readyToResumeVe),_.ic(W,[this.readyToResumeVe]))}};
_.r.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var W=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=W===-1||W===1||W===3)&&this.player.pauseVideo()}};
_.r.activate=function(W,e){e=e===void 0?!1:e;var t=this,b;return _.F(function(m){if(m.nextAddress==1)return t.setInitialActivatePositioning(e),t.enabled=!0,t.active=!0,t.expanded=!1,t.closed=!1,t.expandedClosed=!1,t.watchWhileHidden||(t.isAnimatingFade=!0),_.ee().resolve(_.Oj).setPlaylistComponent(t.JSC$17846_playlistPanel),W.appendTo(t.playerContainer),_.a(m,W.getPlayerPromise(),2);b=m.yieldResult;b.setSizeStyle(!1,!0);t.ytPlayerListenerBehavior.listenToPlayerEvents(b,t.PLAYER_EVENTS);t.player=b;
t.watchWhile&&_.S("kevlar_watch_while_minimum_size")&&t.setMiniplayerSize(192);t.setAspectRatio(t.player.getVideoAspectRatio());t.onIsDisabledChanged();_.u8(m)})};
_.r.setInitialActivatePositioning=function(W){if(!this.userSetPosition&&_.S("kevlar_watch_while_v2")){this.verticalAttachment=W&&!_.S("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Ot("HTML_DIR")==="rtl"?"west":"east";var e;(e=this.JSC$17846_resizers)==null||e.update(this.horizontalAttachment,this.verticalAttachment)}};
_.r.deactivate=function(W,e){var t=this;return _.F(function(b){if(!t.active)return b.return();W||(t.expanded?t.expandedClosed=!0:t.closed=!0);t.active=!1;t.isForReadyToResume=!1;e&&_.S("kevlar_watch_while_counterfactual")||(t.isAnimatingFade=!0);t.player&&t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t.player,t.PLAYER_EVENTS);t.player=null;_.u8(b)})};
_.r.onMetadataTap=function(W){this.expandVe&&(W===void 0||W)&&(W=_.fc(this.screenLayer))&&_.zv(W,this.expandVe);_.Sy(_.ee().resolve(_.Kn))};
_.r.onDisabledTap=function(W){W.target===_.rz(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.r.onPlaylistExpandTap=function(W){if(this.hasPlaylistData){W=_.LB(W)||[];W=_.R(W);for(var e=W.next();!e.done;e=W.next()){e=e.value;if(e===this.hostElement)break;if(e.classList&&e.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.r.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.aH(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.r.animatedResizePlaylist=function(W){W.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.aH(this,this.animatedResizePlaylist)))};
_.r.getExpandIcon=function(W){return W?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.r.onPlayerVideoDataChange=function(){var W,e=(W=this.player)==null?void 0:W.getVideoAspectRatio();e&&e!==this.aspectRatio&&this.setAspectRatio(e)};
_.r.setAspectRatio=function(W){if(this.active){this.aspectRatio=W;this.updateDimensionsAndResize();var e;(e=this.JSC$17846_resizers)==null||e.setAspectRatio(W)}};
_.r.updateDimensionsAndResize=function(){var W=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),e=this.expanded?xMT:this.aspectRatio,t=new _.aD(192,this.showInfoBar?116:192);W=bD$(new _.aD(e,1),new _.aD(W,this.showInfoBar?W-76:W));t.width<=W.width&&t.height<=W.height||(tBE(W,t),W.width=Math.min(W.width,this.maxMiniplayerSize),W.height=Math.min(W.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&e<=1?Math.max(W.width,W.height)+76:Math.max(W.width,W.height)));this.dimensions=
new _.aD(W.width,this.clamp(W.height+this.getNonPlayerHeight()));this.resize()};
_.r.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var W=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=W.height+"px";var e;(e=this.player)==null||e.setInternalSize(W.width,W.height)};
_.r.getPlayerSize=function(W){var e=Math.max(0,W.height-this.getNonPlayerHeight());return new _.aD(W.width,e)};
_.r.getNonPlayerHeight=function(){var W=0;this.showInfoBar&&(W+=76);this.expanded&&(W+=285);return W};
_.r.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.ee().resolve(_.Kn).close()};
_.r.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.r.logClosingClick=function(){this.closeVe&&_.zv(_.fc(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.zv(_.fc(this.screenLayer),this.readyToResumeCloseVe)};
_.r.onPlayerExpandMiniplayer=function(){if(this.expandVe){var W=_.fc(this.screenLayer);W&&_.zv(W,this.expandVe)}};
_.r.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var W=this.playerState===1;this.continueWatching&&W&&(this.continueWatching=!1);this.premiumBadges.length&&W&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.r.getScreenLayer=function(){return this.screenLayer};
_.r.logMiniplayer=function(){var W=_.fc(this.screenLayer),e=_.nc(this.screenLayer);W&&e&&this.playerVe&&(_.Ke(W,e,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.P6(W,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.ic(W,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.P6(W,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.r.computePlaylistData=function(W,e){return e};
_.r.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.r.computeExpandButtonHidden=function(W,e,t){return!W||!e||t};
_.r.computePlaylistIndexHidden=function(W,e){return!W||e};
_.r.computePlaylistPanelHidden=function(W,e){return!e&&!W};
_.r.computeExpandButtonLabel=function(W){return W?_.Gv("MINIPLAYER_COLLAPSE_LABEL"):_.Gv("MINIPLAYER_EXPAND_LABEL")};
_.r.computeDisabledStateCloseButtonLabel=function(){return _.Gv("MINIPLAYER_CLOSE",void 0,"Close")};
_.r.onWindowResized=function(W){W&&(W=this.windowDimensions=W,this.maxMiniplayerSize=Math.min(Math.min(W.width,W.height)-32,720),this.updateDimensionsAndResize())};
_.r.setUpResizing=function(){var W=this;this.JSC$17846_resizers||(this.JSC$17846_resizers=new Lp(this.JSC$17846_resizeContainer,{onStartResize:function(){W.handleResizeStart()},
onResize:function(e){W.handleResize(e)}}),this.JSC$17846_resizers.setSize(this.currentMiniplayerSize),this.JSC$17846_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.r.handleResizeStart=function(){var W=_.fc(this.screenLayer);this.userSetSize||(this.userSetSize=!0,W&&this.resizeVe&&_.ic(W,[this.resizeVe]));W&&this.resizeVe&&_.zv(W,this.resizeVe)};
_.r.handleResize=function(W){this.setMiniplayerSize(W);this.updateDimensionsAndResize()};
_.r.setUpDragging=function(){var W=this;this.JSC$17846_dragger||(this.JSC$17846_dragger=new UI(this.draggableContainer,{onStartDrag:function(e){!W.isSafeToDrag(e)||W.isAnimatingSnap?e.preventDefault():W.handleDragStart()},
onDrag:function(e){W.transform=e;W.setTransform(W.transform)},
onEndDrag:function(){W.handleDragEnd()}},!0))};
_.r.handleDragStart=function(){this.isDragging=!0;var W=_.fc(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,W&&this.repositionVe&&_.ic(W,[this.repositionVe]));W&&this.repositionVe&&_.zv(W,this.repositionVe)};
_.r.handleDragEnd=function(){this.isDragging=!1;var W=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&W>this.windowDimensions.height&&_.ee().resolve(_.Kn).close();this.animateSnapToCorner()};
_.r.animateSnapToCorner=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),e=this.getNearestAttachments();e=this.getGlobalPositionFromAttachments(e.horizontalAttachment,e.verticalAttachment);W=new _.jH(e.x-W.x,e.y-W.y);this.isAnimatingSnap=!0;this.setTransform(W);this.hostElement.addEventListener("transitionend",_.aH(this,this.endSnapAnimation))};
_.r.endSnapAnimation=function(W){W.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.aH(this,this.endSnapAnimation)),this.endDrag())};
_.r.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.r.setTransform=function(W){this.hostElement.style.transform=W?"translate("+W.x+"px, "+W.y+"px)":""};
_.r.getGlobalPositionFromAttachments=function(W,e){return new _.jH(W==="west"?16:this.windowDimensions.width-this.dimensions.width-16,e==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.r.updateAttachments=function(){var W=this.getNearestAttachments();if(this.horizontalAttachment!==W.horizontalAttachment||this.verticalAttachment!==W.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=W.horizontalAttachment;this.verticalAttachment=W.verticalAttachment;var e;(e=this.JSC$17846_resizers)==null||e.update(this.horizontalAttachment,this.verticalAttachment)};
_.r.getNearestAttachments=function(){var W=this.getCurrentGlobalPosition();return{horizontalAttachment:W.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:W.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.r.getCurrentGlobalPosition=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return p6Q(W,this.transform)};
_.r.isSafeToDrag=function(W){var e=this.playerContainer.getBoundingClientRect();return Math.abs(W.clientY-(e.y+e.height))>15};
_.r.setMiniplayerSize=function(W){this.currentMiniplayerSize=this.clamp(W);var e;(e=this.JSC$17846_resizers)==null||e.setSize(this.currentMiniplayerSize)};
_.r.clamp=function(W){return _.Mw(192,W,720)};
_.r.registerViewTransitionTasks=function(){var W=this,e=_.ee().resolve(_.Wi(_.q1));if(e){var t={beforeTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="")}};
E_(e,"slide",t);E_(e,"zoom",t)}};
_.Ec.Object.defineProperties(EI.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.S("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.Gv("CONTINUE_WATCHING",void 0,"Continue watching")};var W;if((W=this.externalPlaylistData)==null?0:W.contents)return this.externalPlaylistData.titleText;var e;return(e=this.data)==null?void 0:e.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.externalPlaylistData)==null?0:W.contents){var e;return(e=_.drc(this.externalPlaylistData))==null?void 0:e.title}var t;return(t=this.data)==null?void 0:t.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var W,e,t,b;return((W=this.externalPlaylistData)==null?void 0:W.currentIndex)!==void 0&&((e=this.externalPlaylistData)==null?0:e.totalVideos)&&!((t=this.data)==null?0:(b=t.playlistData)==null?0:b.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.qnz(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.S("kevlar_watch_while_counterfactual")}}});
EI.prototype.onIsDisabledChanged=EI.prototype.onIsDisabledChanged;EI.prototype.readyToResumeVeChanged=EI.prototype.readyToResumeVeChanged;EI.prototype.premiumBrandingChanged=EI.prototype.premiumBrandingChanged;EI.prototype.onPlayerVeChange=EI.prototype.onPlayerVeChange;EI.prototype.hasPlaylistDataChanged=EI.prototype.hasPlaylistDataChanged;_.P([_.y(_.Pl.YtPlayerListenerBehavior),_.Y("design:type",_.VB)],EI.prototype,"ytPlayerListenerBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],EI.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],EI.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],EI.prototype,"ytdReduxBehavior",void 0);_.P([_.vG("#draggable"),_.Y("design:type",HTMLDivElement)],EI.prototype,"draggableContainer",void 0);
_.P([_.vG("#resize-container"),_.Y("design:type",HTMLDivElement)],EI.prototype,"JSC$17846_resizeContainer",void 0);_.P([_.vG("#video-container"),_.Y("design:type",HTMLDivElement)],EI.prototype,"videoContainer",void 0);_.P([_.vG("#player-container"),_.Y("design:type",HTMLDivElement)],EI.prototype,"playerContainer",void 0);_.P([_.vG("#playlist"),_.Y("design:type",HTMLDivElement)],EI.prototype,"JSC$17846_playlistPanel",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"active",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"hasNoData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"enabled",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"expanded",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"readyToResume",void 0);
_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"isDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"externalPlaylistData",void 0);_.P([_.J(),_.Y("design:type",Array)],EI.prototype,"premiumBadges",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"toastData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"watchWhile",void 0);_.P([_.J(),_.Y("design:type",Boolean)],EI.prototype,"premiumBranding",void 0);
_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"playerState",void 0);_.P([_.J(),_.Y("design:type",Boolean)],EI.prototype,"continueWatching",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],EI.prototype,"verticalAttachment",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],EI.prototype,"horizontalAttachment",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"isAnimatingFade",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"isAnimatingSnap",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"isAnimatingExpand",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"isDragging",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"playerHidden",void 0);
_.P([_.J({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.Y("design:type",Object)],EI.prototype,"playlistData",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.Y("design:type",Object)],EI.prototype,"hasPlaylistData",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"closed",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],EI.prototype,"expandedClosed",void 0);
_.P([_.J({selector:_.wzG}),_.Y("design:type",Boolean)],EI.prototype,"isSingleOptionSurveyActive",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.Tq}),_.Y("design:type",Boolean)],EI.prototype,"isWatchPage",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("watchWhile"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"showInfoBar",null);_.P([_.T("premiumBadges","showInfoBar"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"showOverlayPremiumBadges",null);
_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"watchResponse",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"miniplayerRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"playabilityStatus",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"playerVe",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"expandVe",void 0);_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"closeVe",void 0);
_.P([_.J(),_.Y("design:type",Object)],EI.prototype,"readyToResumeCloseVe",void 0);_.P([_.J(),_.Y("design:type",_.Cc)],EI.prototype,"readyToResumeVe",void 0);_.P([_.J(),_.Y("design:type",_.Cc)],EI.prototype,"resizeVe",void 0);_.P([_.J(),_.Y("design:type",_.Cc)],EI.prototype,"repositionVe",void 0);_.P([_.ul("hasPlaylistData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EI.prototype,"hasPlaylistDataChanged",null);
_.P([_.ul("playerVe"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EI.prototype,"onPlayerVeChange",null);_.P([_.ul("premiumBranding"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EI.prototype,"premiumBrandingChanged",null);_.P([_.ul("readyToResumeVe"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EI.prototype,"readyToResumeVeChanged",null);
_.P([_.ul("isDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EI.prototype,"onIsDisabledChanged",null);_.P([_.T("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"miniplayerSubtitle",null);_.P([_.T("data.miniplayerTitle","externalPlaylistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"miniplayerTitle",null);
_.P([_.T("externalPlaylistData","continueWatching"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"playlistIndexMessage",null);_.P([_.J({reflectToAttribute:!0}),_.T("playabilityStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"showErrorScreen",null);_.P([_.J({reflectToAttribute:!0}),_.T("watchWhile"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EI.prototype,"watchWhileHidden",null);
_.S("ytd_miniplayer_to_wiz")||_.H(EI,"ytd-miniplayer",function(){if(nyB===void 0){var W=document.createElement("template");_.p(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
W.content.insertBefore(CwT().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);nyB=W}W=nyB;return W},{mode:2});var M$u;var AI=function(){var W=_.O.apply(this,arguments)||this;W.useListItemStyles=_.S("web_list_item_style_for_menu_items");W.systemIcons=_.S("kevlar_system_icons");return W};
_.Z(AI,_.O);_.r=AI.prototype;_.r.ready=function(){this.hostElement.addEventListener("tap",_.aH(this,this.onEndpointTapExtra))};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){var W;(W=_.rz(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.r.onEndpointTapExtra=function(W){_.q2(this.hostElement,"iron-activate");var e=this.data.navigationEndpoint;e&&_.l(e,_.h0Z)&&(W.stopPropagation(),_.IT(this.hostElement,[e],this.hostElement))};
_.r.computeIcon=function(W){return W&&W.iconType?_.ao(W.iconType):""};
_.r.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.XB(this.hostElement)};
AI.prototype.forceUpdateStylesOnLegacyBrowsers=AI.prototype.forceUpdateStylesOnLegacyBrowsers;AI.prototype.onFocus=AI.prototype.onFocus;_.P([_.y(_.UP),_.Y("design:type",Object)],AI.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.r0v.YtConditionalRendererBehavior),_.Y("design:type",Object)],AI.prototype,"ytConditionalRendererBehavior",void 0);_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],AI.prototype,"ytEndpointBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],AI.prototype,"data",void 0);_.P([_.J({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],AI.prototype,"icon",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],AI.prototype,"useIcons",void 0);_.P([_.J({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],AI.prototype,"hasSeparator",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AI.prototype,"useListItemStyles",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AI.prototype,"systemIcons",void 0);_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AI.prototype,"onFocus",null);_.P([_.ul("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AI.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.H(AI,"ytd-menu-navigation-item-renderer",function(){if(M$u===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);M$u=W}W=M$u;return W},{mode:1});var sjU;var h8Q=_.zq(_.Gv("DOWNLOAD",{},"Download")),H7w=_.zq(_.Gv("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),KIM=_.zq(_.Gv("RETRY",{},"Retry")),Pwg=_.zq(_.Gv("PAUSE_DOWNLOADING",{},"Pause downloading")),V$w=_.zq(_.Gv("RESUME_DOWNLOAD",{},"Resume download")),NH=function(){var W=_.O.apply(this,arguments)||this;W.primaryText=h8Q;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.Z(NH,_.O);_.r=NH.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){this.primaryEntry.focus()};
_.r.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.r.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.r.getRemoveAction=function(){return"ACTION_REMOVE"};
_.r.sendOfflineAction=function(W){var e=this.data.serviceEndpoint;if(e){var t=_.l(e,_.cS);t&&W&&(t.action=W);this.ytComponentBehavior.resolveCommand(e)}};
_.r.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=h8Q,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=h8Q;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=KIM;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=H7w;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=V$w;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=H7w;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Pwg;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=H7w;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=H7w;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=h8Q,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.r.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.r.isSecondaryEntryHidden=function(W,e){return W?!0:!e};
_.r.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
NH.prototype.showHideButton=NH.prototype.showHideButton;NH.prototype.onTransferStateChange=NH.prototype.onTransferStateChange;NH.prototype.onFocus=NH.prototype.onFocus;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],NH.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],NH.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],NH.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],NH.prototype,"primaryText",void 0);_.P([_.J(),_.Y("design:type",String)],NH.prototype,"primaryIconType",void 0);_.P([_.J(),_.Y("design:type",String)],NH.prototype,"primaryAction",void 0);_.P([_.J(),_.Y("design:type",Object)],NH.prototype,"secondaryText",void 0);_.P([_.J(),_.Y("design:type",String)],NH.prototype,"secondaryIconType",void 0);
_.P([_.J(),_.Y("design:type",String)],NH.prototype,"secondaryAction",void 0);_.P([_.J(),_.Y("design:type",Object)],NH.prototype,"hasSecondaryContent",void 0);_.P([_.J({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Object)],NH.prototype,"hasSeparator",void 0);_.P([_.J({selector:_.xg,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",String)],NH.prototype,"transferState",void 0);
_.P([_.J({selector:_.giQ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],NH.prototype,"isVideoDeletedByUser",void 0);_.P([_.J(),_.Y("design:type",Object)],NH.prototype,"isHidden",void 0);_.P([_.J({selector:_.pzD,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],NH.prototype,"offlineabilityState",void 0);_.P([_.vG("#primary-entry"),_.Y("design:type",Object)],NH.prototype,"primaryEntry",void 0);
_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NH.prototype,"onFocus",null);_.P([_.BG("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NH.prototype,"onTransferStateChange",null);_.P([_.BG("offlineabilityState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NH.prototype,"showHideButton",null);
_.H(NH,"ytd-menu-service-item-download-renderer",function(){if(sjU===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);sjU=W}W=sjU;return W},{mode:1});var i7$;var Wd=function(){var W=_.O.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.S("kevlar_system_icons");W.useListItemStyles=_.S("web_list_item_style_for_menu_items");return W};
_.Z(Wd,_.O);_.r=Wd.prototype;_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.r.onFocus=function(){var W;(W=_.rz(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.r.onTap=function(){_.Qx(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,e=this.data.command;if(W){var t,b=(t=this.data)==null?void 0:t.trackingParams;t=!!_.l(W,_.a5B);b&&t&&_.Eb().dispatch(_.rO({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:b}}));this.ytComponentBehavior.resolveCommand(W)||_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}})}e&&(this.ytComponentBehavior.resolveCommand(e)||_.IT(this.hostElement,
[e],this.hostElement))};
_.r.computeIcon=function(W){return W&&W.iconType?_.ao(W.iconType):""};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.r.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.XB(this.hostElement)};
_.r.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
Wd.prototype.forceUpdateStylesOnLegacyBrowsers=Wd.prototype.forceUpdateStylesOnLegacyBrowsers;Wd.prototype.onTap=Wd.prototype.onTap;Wd.prototype.onFocus=Wd.prototype.onFocus;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],Wd.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Wd.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.r0v.YtConditionalRendererBehavior),_.Y("design:type",Object)],Wd.prototype,"ytConditionalRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wd.prototype,"data",void 0);_.P([_.J({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],Wd.prototype,"icon",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Wd.prototype,"useIcons",void 0);
_.P([_.J({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Wd.prototype,"hasSeparator",void 0);_.P([_.J({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Wd.prototype,"isSelected",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Wd.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Wd.prototype,"useListItemStyles",void 0);
_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wd.prototype,"onFocus",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Wd.prototype,"onTap",null);_.P([_.ul("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wd.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.H(Wd,"ytd-menu-service-item-renderer",function(){if(i7$===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);i7$=W}W=i7$;return W},{mode:2});var YPQ;var el=function(){return _.O.apply(this,arguments)||this};
_.Z(el,_.O);_.r=el.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onDataChanged=function(){var W=this;_.Uc(this,function(){W.postbox.openDialog();W.focus();_.q2(W.hostElement,"yt-refit")})};
_.r.focus=function(){this.postbox.focus()};
_.r.closePopup=function(){_.RT(this.hostElement,"yt-close-popup-action")};
_.r.onYtCommentboxDismiss=function(){this.closePopup()};
el.prototype.onYtCommentboxDismiss=el.prototype.onYtCommentboxDismiss;el.prototype.onDataChanged=el.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],el.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],el.prototype,"data",void 0);_.P([_.J({value:function(){return _.Gv("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],el.prototype,"closeButtonAriaLabel",void 0);_.P([_.vG("#postbox"),_.Y("design:type",Object)],el.prototype,"postbox",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],el.prototype,"onDataChanged",null);_.P([_.wz("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],el.prototype,"onYtCommentboxDismiss",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],el);
_.H(el,"ytd-backstage-post-dialog-popup-renderer",function(){if(YPQ!==void 0)return YPQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return YPQ=W},{mode:1});var z8l;var to=function(){return _.O.apply(this,arguments)||this};
_.Z(to,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],to.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],to);
_.H(to,"ytd-sender-id-section-renderer",function(){if(z8l!==void 0)return z8l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return z8l=W},{mode:1});var UMB;var LI$;var Eyl;var b1=function(){return _.O.apply(this,arguments)||this};
_.Z(b1,_.O);b1.prototype.closePopup=function(){_.RT(this.hostElement,"yt-close-popup-action")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],b1.prototype,"data",void 0);_.P([_.gz({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],b1);
_.H(b1,"yt-community-post-section-renderer",function(){if(Eyl===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;LI$===void 0&&(LI$=document.createElement("template"));var b=LI$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Eyl=W}W=Eyl;return W},{mode:2});var AHU;var Nq$;var dMC;var WtE;var egM;var t_C;var mS=function(){return _.O.apply(this,arguments)||this};
_.Z(mS,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mS.prototype,"data",void 0);_.P([_.gz({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],mS);
_.H(mS,"yt-share-start-time-with-context-renderer",function(){if(t_C===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;egM===void 0&&(egM=document.createElement("template"));var b=egM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);t_C=W}W=t_C;return W},{mode:2});var rC=function(){return _.O.apply(this,arguments)||this};
_.Z(rC,_.O);rC.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],rC.prototype,"data",void 0);_.P([_.gz({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],rC);
_.H(rC,"yt-share-panel-title-v15-renderer",function(){if(WtE===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;dMC===void 0&&(dMC=document.createElement("template"));var b=dMC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);WtE=W}W=WtE;return W},{mode:2});var qm=function(){return _.O.apply(this,arguments)||this};
_.Z(qm,_.O);qm.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qm.prototype,"data",void 0);_.P([_.gz({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],qm);
_.H(qm,"yt-share-panel-header-renderer",function(){if(Nq$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;AHU===void 0&&(AHU=document.createElement("template"));var b=AHU;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Nq$=W}W=Nq$;return W},{mode:2});var buw;var m$U;var Rc=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.Z(Rc,_.O);_.r=Rc.prototype;_.r.attached=function(){this.onOpen()};
_.r.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.r.computeTimeString=function(W){W=W.toString();var e=Math.floor(Number(W)/3600),t=Math.floor(Number(W)%3600%60);return(e>0?e+":":"")+_.m5(Math.floor(Number(W)%3600/60),e>0?2:1)+":"+_.m5(t,2)};
_.r.computeTimeStringA11y=function(W){W=_.JrL({seconds:W});var e=W.hours===void 0?0:W.hours,t=W.minutes===void 0?0:W.minutes,b=W.seconds===void 0?0:W.seconds;W=[];if(e>0){var m=qHM().format({hours:e});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.hm)||e>9999)m=m.replace(e.toString(),_.xdD(e)),_.hm==="km"&&(m=m.replace(".",","));W.push(m)}t>0&&W.push(qHM().format({minutes:t}));b>0&&W.push(qHM().format({seconds:b}));e="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");t=_.hm==
"am"?"{0}\u1363 ":_.hm=="fa"?"{0}\u060c\u200f ":_.hm=="my"?"{0} - ":_.hm=="ne"?"{0},":_.hm=="th"?"{0} ":_.hm=="ur"?"{0}\u060c ":_.hm=="ar"||_.hm=="ar-XB"?"{0} \u0648":_.hm=="ja"||_.hm=="zh-CN"||_.hm=="zh-HK"||_.hm=="zh-TW"?"{0}\u3001":"{0}, ";b=_.hm=="am"?"\u1363 ":_.hm=="fa"?"\u060c\u200f ":_.hm=="my"?" - ":_.hm=="th"?" ":_.hm=="ur"?"\u060c ":_.hm=="ar"||_.hm=="ar-XB"?" \u0648":_.hm=="ja"||_.hm=="zh-CN"||_.hm=="zh-HK"||_.hm=="zh-TW"?"\u3001":", ";m=_.hm=="am"?" \u12a5\u1293 {0}":_.hm=="as"?" \u0986\u09f0\u09c1 {0}":
_.hm=="az"?" v\u0259 {0}":_.hm=="bn"?" \u098f\u09ac\u0982 {0}":_.hm=="cs"?" a\u00a0{0}":_.hm=="de"?" und {0}":_.hm=="el"?" \u03ba\u03b1\u03b9 {0}":_.hm=="eu"?" eta {0}":_.hm=="fa"?"\u060c \u0648 {0}":_.hm=="fil"?", at {0}":_.hm=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.hm=="hi"?", \u0914\u0930 {0}":_.hm=="hu"?" \u00e9s {0}":_.hm=="hy"?" \u0587 {0}":_.hm=="id"?", dan {0}":_.hm=="iw"?" \u05d5-{0}":_.hm=="ja"?"\u3001{0}":_.hm=="ka"?" \u10d3\u10d0 {0}":_.hm=="km"?" \u1793\u17b7\u1784 {0}":_.hm=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.hm=="ko"?" \ubc0f {0}":_.hm=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.hm=="lt"?" ir {0}":_.hm=="lv"?" un {0}":_.hm=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.hm=="mr"?" \u0906\u0923\u093f {0}":_.hm=="ms"?" dan {0}":_.hm=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.hm=="ne"?" \u0930 {0}":_.hm=="or"?", \u0b13 {0}":_.hm=="pa"?" \u0a05\u0a24\u0a47 {0}":_.hm=="ro"?" \u0219i {0}":_.hm=="si"?", \u0dc3\u0dc4 {0}":_.hm=="sk"?" a {0}":_.hm=="sl"?" in {0}":_.hm=="sq"?" dhe {0}":_.hm=="sv"?" och {0}":
_.hm=="sw"?" na {0}":_.hm=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.hm=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.hm=="th"?" \u0e41\u0e25\u0e30{0}":_.hm=="tr"?" ve {0}":_.hm=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.hm=="uz"?" va {0}":_.hm=="vi"?" v\u00e0 {0}":_.hm=="zh-HK"?"\u53ca{0}":_.hm=="zu"?", ne-{0}":_.hm=="af"||_.hm=="nl"?" en {0}":_.hm=="ar"||_.hm=="ar-XB"?" \u0648{0}":_.hm=="be"||_.hm=="uk"?" \u0456 {0}":_.hm=="en-GB"||_.hm=="en-IN"?" and {0}":_.hm=="en"||_.hm=="en-XA"?
", and {0}":_.hm=="et"||_.hm=="fi"?" ja {0}":_.hm=="fr"||_.hm=="fr-CA"?" et {0}":_.hm=="zh-CN"||_.hm=="zh-TW"?"\u548c{0}":_.hm=="da"||_.hm=="is"||_.hm=="no"?" og {0}":_.hm=="es"||_.hm=="es-419"||_.hm=="es-US"?" y {0}":_.hm=="kk"||_.hm=="lo"||_.hm=="mn"?", {0}":_.hm=="bg"||_.hm=="mk"||_.hm=="ru"||_.hm=="sr"?" \u0438 {0}":_.hm=="gl"||_.hm=="it"||_.hm=="pt-BR"||_.hm=="pt-PT"?" e {0}":" i {0}";var q=_.hm=="am"?"{0} \u12a5\u1293 {1}":_.hm=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.hm=="az"?"{0} v\u0259 {1}":
_.hm=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.hm=="de"?"{0} und {1}":_.hm=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.hm=="eu"?"{0} eta {1}":_.hm=="fa"?"{0} \u0648 {1}":_.hm=="fil"?"{0} at {1}":_.hm=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.hm=="hi"?"{0} \u0914\u0930 {1}":_.hm=="hu"?"{0} \u00e9s {1}":_.hm=="hy"?"{0} \u0587 {1}":_.hm=="iw"?"{0} \u05d5-{1}":_.hm=="ja"?"{0}\u3001{1}":_.hm=="ka"?"{0} \u10d3\u10d0 {1}":_.hm=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.hm=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.hm=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.hm=="ko"?"{0} \ubc0f {1}":_.hm=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.hm=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.hm=="lt"?"{0} ir {1}":_.hm=="lv"?"{0} un {1}":_.hm=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.hm=="mn"?"{0}, {1}":_.hm=="mr"?"{0} \u0906\u0923\u093f {1}":_.hm=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.hm=="ne"?"{0} \u0930 {1}":_.hm=="or"?"{0} \u0b13 {1}":_.hm=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.hm=="ro"?"{0} \u0219i {1}":_.hm==
"si"?"{0} \u0dc3\u0dc4 {1}":_.hm=="sl"?"{0} in {1}":_.hm=="sq"?"{0} dhe {1}":_.hm=="sv"?"{0} och {1}":_.hm=="sw"?"{0} na {1}":_.hm=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.hm=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.hm=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.hm=="tr"?"{0} ve {1}":_.hm=="ur"?"{0} \u0627\u0648\u0631 {1}":_.hm=="uz"?"{0} va {1}":_.hm=="vi"?"{0} v\u00e0 {1}":_.hm=="zh-HK"?"{0}\u53ca{1}":_.hm=="zu"?"{0} ne-{1}":_.hm=="af"||_.hm=="nl"?"{0} en {1}":_.hm=="ar"||_.hm==
"ar-XB"?"{0} \u0648{1}":_.hm=="be"||_.hm=="uk"?"{0} \u0456 {1}":_.hm=="cs"||_.hm=="sk"?"{0} a\u00a0{1}":_.hm=="et"||_.hm=="fi"?"{0} ja {1}":_.hm=="fr"||_.hm=="fr-CA"?"{0} et {1}":_.hm=="id"||_.hm=="ms"?"{0} dan {1}":_.hm=="zh-CN"||_.hm=="zh-TW"?"{0}\u548c{1}":_.hm=="da"||_.hm=="is"||_.hm=="no"?"{0} og {1}":_.hm=="es"||_.hm=="es-419"||_.hm=="es-US"?"{0} y {1}":_.hm=="bg"||_.hm=="mk"||_.hm=="ru"||_.hm=="sr"?"{0} \u0438 {1}":_.hm=="en"||_.hm=="en-GB"||_.hm=="en-IN"||_.hm=="en-XA"?"{0} and {1}":_.hm==
"gl"||_.hm=="it"||_.hm=="pt-BR"||_.hm=="pt-PT"?"{0} e {1}":"{0} i {1}";_.hm==="sq"?(m=m.replace("dhe","e"),q=q.replace("dhe","e")):_.hm==="th"?(b=b.replace("{0}"," {0}"),q=q.replace("{0}","{0} "),q=q.replace("{1}"," {1}")):_.hm==="ne"?b=",":_.hm==="zh-CN"?b="":e.includes(_.hm)&&(b=" ");return W.length<2?W.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(_.hm)?W.length===2?
q.replace("{0}",W[0]).replace("{1}",W[1]):t.replace("{0}",W[0])+W.slice(1,-1).join(b)+m.replace("{0}",W[W.length-1]):W.join(b)};
_.r.getTimeParam=function(){return nhT(this.timeString)};
_.r.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},e;_.wS(_.Sg(),(e=this.data)==null?void 0:e.trackingParams,W,7)};
_.r.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),e=0,t=1,b=W.length-1;b>=0;b--)e+=Number(W[b])*t,t*=60;this.updateTimeSecs(e);this.setTimestamp()};
_.r.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var e=_.tv();e?e.getPlayerPromise().then(function(t){t=t.getCurrentTime();W.updateTimeSecs(t)}):mql()&&this.updateTimeSecs(mql())};
_.r.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.RT(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Rc.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Rc.prototype,"data",void 0);_.P([_.J({value:!1,notify:!0}),_.Y("design:type",Boolean)],Rc.prototype,"isStartAtChecked",void 0);_.P([_.J(),_.Y("design:type",Number)],Rc.prototype,"currentTimeSecs",void 0);
_.P([_.J({computed:"computeTimeString(currentTimeSecs)"}),_.Y("design:type",String)],Rc.prototype,"timeString",void 0);_.P([_.J({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Y("design:type",String)],Rc.prototype,"timeStringA11y",void 0);_.P([_.vG("#start-at-timestamp"),_.Y("design:type",Object)],Rc.prototype,"startAtTimestamp",void 0);_.P([_.gz({is:"yt-start-at-renderer",disableElementRegistration:!0})],Rc);
_.H(Rc,"yt-start-at-renderer",function(){if(m$U===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;buw===void 0&&(buw=document.createElement("template"));var b=buw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);m$U=W}W=m$U;return W},{mode:2});var rNg;var qp$;var RgT=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"]]),QEB=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"]]),FtC=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var XlB={};XlB.YtBindingExpressionsBehavior={identity:_.sL,msg:function(W,e){e=e===void 0?{}:e;return _.Gv(W,e,W)},
msgPlural:function(W,e){return _.D8(W,e)},
getMusicIconFromType:function(W){if(_.S("music_web_enable_icon_wil"))W=_.ao(W);else if(QEB.has(W))W="yt-sys-icons:"+QEB.get(W);else{var e=RgT.get(W)||_.ao(W).split(":")[1];e=_.jSZ(e);var t;W=((t=FtC.get(W))!=null?t:"yt-sys-icons:")+e}return W}};var ISl;var aSQ;var wlQ;var uy9=document.head,cN1=uy9.appendChild,vOl;if(wlQ===void 0){var GxC=document.createElement("template");_.p(GxC,'\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>');wlQ=GxC}vOl=wlQ;cN1.call(uy9,vOl.content);var QC=function(){var W=_.O.apply(this,arguments)||this;W.screenLayer=7;return W};
_.Z(QC,_.O);QC.prototype.getScreenLayer=function(){return this.screenLayer};
QC.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.rz(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.X5(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Ec.Object.defineProperties(QC.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()}}});
QC.prototype.onTap=QC.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],QC.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],QC.prototype,"data",void 0);_.P([_.T("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QC.prototype,"title",null);
_.P([_.T("data.serviceName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QC.prototype,"icon",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QC.prototype,"onTap",null);_.P([_.gz({is:"yt-share-target-renderer",disableElementRegistration:!0})],QC);
_.H(QC,"yt-share-target-renderer",function(){if(aSQ===void 0){var W=document.createElement("template");_.p(W,'\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" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ISl===void 0&&(ISl=document.createElement("template"));var b=ISl;t.call(e,b.content.cloneNode(!0),W.content.firstChild);aSQ=W}W=aSQ;return W},{mode:2});var D$E;var Spw;var Fg=function(){var W=_.O.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.Z(Fg,_.O);_.r=Fg.prototype;_.r.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.r.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.rz(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.rz(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.r.onReset_=function(){if(_.rz(this.hostElement).querySelector("#list")){var W=_.rz(this.hostElement).querySelector("#list");var e=_.rz(this.hostElement).querySelector("#list");var t=e.offsetLeft,b=e.offsetParent;b||_.GZh(e)!="fixed"||(b=_.n8(e).documentElement);if(b){if(_.w2&&!_.cb(58)){var m=_.kZ8(b);t+=m.left}else Number(_.PYG)>=8&&!(Number(_.PYG)>=9)&&(m=_.kZ8(b),t-=m.left);e=_.Zre(b)?b.clientWidth-(t+e.offsetWidth):t}else e=t;baU(W,e);this.updateScrollButtons_()}};
_.r.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.r.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.r.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var e=tNw(_.rz(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;baU(_.rz(this.hostElement).querySelector("#list"),e+W);this.updateScrollButtons_()};
_.r.smoothScrollByOnePage_=function(W){var e=_.rz(this.hostElement).querySelector("#list"),t=(Math.floor(e.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,b=tNw(e),m=t*(W?1:-1),q=this.PAGE_SCROLL_SPEED,Q=this.updateScrollButtons_.bind(this),X=0,I;(function c(){X+=q;I=X/t*2;baU(e,b+m*(I<1?I*I:-I*I+4*I-2));X<t?window.requestAnimationFrame(c):Q()})()};
_.r.updateScrollButtons_=function(){var W=tNw(_.rz(this.hostElement).querySelector("#list")),e=_.rz(this.hostElement).querySelector("#list").scrollWidth-_.rz(this.hostElement).querySelector("#list").clientWidth;_.rz(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.rz(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=e};
Fg.prototype.onScrollWheel_=Fg.prototype.onScrollWheel_;Fg.prototype.onDataChanged_=Fg.prototype.onDataChanged_;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fg.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(XlB.YtBindingExpressionsBehavior),_.Y("design:type",Object)],Fg.prototype,"ytBindingExpressionsBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Fg.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fg.prototype,"onDataChanged_",null);_.P([_.wz("wheel"),_.Y("design:type",Function),_.Y("design:paramtypes",[WheelEvent]),_.Y("design:returntype")],Fg.prototype,"onScrollWheel_",null);
_.P([_.gz({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Fg);
_.H(Fg,"yt-third-party-share-target-section-renderer",function(){if(Spw===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;D$E===void 0&&(D$E=document.createElement("template"));var b=D$E;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Spw=W}W=Spw;return W},{mode:2});var Xg=function(){return _.O.apply(this,arguments)||this};
_.Z(Xg,_.O);Xg.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"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Xg.prototype,"data",void 0);_.P([_.gz({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Xg);
_.H(Xg,"yt-third-party-network-section-renderer",function(){if(qp$===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;rNg===void 0&&(rNg=document.createElement("template"));var b=rNg;t.call(e,b.content.cloneNode(!0),W.content.firstChild);qp$=W}W=qp$;return W},{mode:2});_.mM(_.NN(function(W){return _.w("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.w("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.w(_.nU,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.p$})))},"rg"),"first-party-network-section-view-model",{props:{data:_.Eu}});var BWw=_.Nw(["data:image/svg+xml;charset=UTF-8;base64,",""]),Ic=function(){var W=_.O.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.S("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.Z(Ic,_.O);_.r=Ic.prototype;_.r.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"}}}};
_.r.attached=function(){this.JSC$17898_scroller&&(this.JSC$17898_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17898_scroller.attached&&typeof this.JSC$17898_scroller.attached==="function"&&this.JSC$17898_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.r.onDataChanged=function(){var W=this,e;(e=this.data)!=null&&e.contents&&(this.hostElement.setAttribute("links-only","true"),_.QQ(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Uc(this,function(){_.q2(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.r.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.r.handleSetTimestamp=function(W){var e=this.shortUrl();W.isSet&&(e=_.P9(e,"t",W.timestamp));this.maybeRenderQrCode(e)};
_.r.shortUrl=function(){var W,e=(W=this.data)==null?void 0:W.contents;if(e)for(W=0;W<e.length;W++){var t=void 0,b=void 0;if((t=e[W])==null?0:(b=t.thirdPartyNetworkSection)==null?0:b.copyLinkContainer){var m=b=t=void 0;return(m=_.l((t=e[W])==null?void 0:(b=t.thirdPartyNetworkSection)==null?void 0:b.copyLinkContainer,t3$))==null?void 0:m.shortUrl}}};
_.r.maybeRenderQrCode=function(W){var e=this,t,b,m,q,Q,X,I,u,c;return _.F(function(v){if(v.nextAddress==1){t=_.rz(e.hostElement).querySelector("#qr-code");if(!e.qrCodeEnabled||!W)return t&&(t.style.display="none"),v.return();b=_.sxG(_.ee().resolve(_.wA),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});m=document.createElement("div");return typeof b==="function"?(b(m),v.jumpTo(2)):_.a(v,b,3)}v.nextAddress!=2&&(q=v.yieldResult,q(m));I=(Q=m)==null?void 0:(X=Q.firstChild)==null?void 0:X.firstChild;
u=document.createElement("img");c=_.kN(BWw,btoa(I.outerHTML));u.onload=function(){var D={canvas:t,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:u},B=new jQ1;JAB(B,W);xnw(B,!1,O1S(B));var k=B.modules,n=Object.assign({},xRU,D);k=structuredClone(k);D=k.length;var f,M=(f=n.canvas)!=null?f:document.createElement("canvas");f=n.cellSize;B=n.logo;var K,U=(K=n.logoSize)!=null?K:Math.floor(D/4);D%2!==U%2&&U++;var V=n.logoPadding,L=n.backgroundColor;K=D*f;var E=
n.width,RR=0;E&&(RR=n.padding,RR=Math.ceil(RR*K/(E-RR*2)),M.style.width=E+"px",M.style.height=E+"px");M.width!==K+RR*2&&(M.width=K+RR*2);M.height!==K+RR*2&&(M.height=K+RR*2);K=M.getContext("2d");n.autoClear&&K.clearRect(0,0,M.width,M.height);K.fillStyle=L;K.beginPath();K.roundRect(0,0,M.width,M.height,n.borderRadius);K.fill();K.save();K.translate(RR,RR);if(B)for(M=Math.floor(D-U)/2-V,V=Math.floor(D+U)/2+V,L=M;L<V;L++)for(E=M;E<V;E++)k[L][E]=!1;for(M=0;M<D;M++)for(V=0;V<D;V++)(M<7&&V<7||M<7&&V>=D-
7||M>=D-7&&V<7)&&(k[M][V]=!1);var uv;M=(uv=n.markerColor)!=null?uv:n.color;sQQ(K,0,0,f,M);sQQ(K,f*(D-7),0,f,M);sQQ(K,0,f*(D-7),f,M);switch(n.cellStyle){case 0:uv=k;k=uv.length;M=n.cellSize;K.beginPath();for(V=0;V<k;V++)for(L=0;L<k;L++)uv[V][L]&&K.rect(V*M,L*M,M,M);K.fillStyle=n.color;K.fill();break;case 1:uv=k;k=uv.length;M=n.cellSize;V=M*n.relativeCircleSize;K.fillStyle=n.color;K.beginPath();for(n=0;n<k;n++)for(L=0;L<k;L++)uv[n][L]&&(K.beginPath(),K.ellipse((n+.5)*M,(L+.5)*M,V/2,V/2,0,0,2*Math.PI),
K.fill());K.fill();break;case 2:uv=k;k=uv.length;M=n.cellSize;K.fillStyle=n.color;n=[[1,1],[-1,1],[-1,-1],[1,-1]];K.beginPath();for(V=0;V<k;V++)for(L=0;L<k;L++)if(uv[V][L])K.roundRect(V*M,L*M,M,M,M/2),V+1<k&&uv[V+1][L]&&K.rect(V*M+M/2,L*M,M,M),L+1<k&&uv[V][L+1]&&K.rect(V*M,L*M+M/2,M,M);else{E=V*M+M/2;RR=L*M+M/2;for(var GS=0;GS<4;GS++){var k9=_.R(n[GS]),CQ=k9.next().value;k9=k9.next().value;V+CQ>=0&&V+CQ<k&&L+k9>=0&&L+k9<k&&uv[V+CQ][L]&&uv[V][L+k9]&&uv[V+CQ][L+k9]&&(CQ=GS*Math.PI/2,k9=M/2,K.moveTo(E+
k9*Math.cos(CQ),RR+k9*Math.sin(CQ)),K.arc(E,RR,M/2,CQ,CQ+Math.PI/2,!1),K.lineTo(E+k9*(Math.cos(CQ)-Math.sin(CQ)),RR+k9*(Math.cos(CQ)+Math.sin(CQ))),K.lineTo(E+k9*Math.cos(CQ),RR+k9*Math.sin(CQ)))}}K.fill()}B&&K.drawImage(B,(D-U)*f/2,(D-U)*f/2,U*f,U*f);K.restore();t.style.removeProperty("display")};
u.src=_.v7(c);_.u8(v)})};
_.r.hasCommunityPostRenderer=function(){var W,e,t,b;return!!((W=this.data)==null?0:(e=W.header)==null?0:(t=e.sharePanelHeaderRenderer)==null?0:(b=t.communityPost)==null?0:b.communityPostSectionRenderer)};
_.r.onTapClose=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.r.getScreenLayer=function(){return this.screenLayer};
_.r.logSharePanelPage=function(){if(!_.S("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var e=this.parentClickTrackingParams;e=e?_.$5(e):void 0;var t=_.Sg();_.FW(t,21760,e,{layer:7,parentLayer:0});t.graftServerVe(W,void 0,7);_.Eb().dispatch(_.rO({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Ic.prototype.onDataChanged=Ic.prototype.onDataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Ic.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ic.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ic.prototype,"data",void 0);_.P([_.J({value:_.Gv("SBOX_INAPPROPRIATE_CANCEL")}),_.Y("design:type",String)],Ic.prototype,"closeButtonAriaLabel",void 0);_.P([_.vG("yt-share-panel-header-renderer"),_.Y("design:type",HTMLElement)],Ic.prototype,"header",void 0);_.P([_.J({selector:function(W){return W.share.parentClickTrackingParams}}),
_.Y("design:type",String)],Ic.prototype,"parentClickTrackingParams",void 0);_.P([_.J(),_.Y("design:type",Object)],Ic.prototype,"qrCodeEnabled",void 0);_.P([_.vG("#scroller"),_.Y("design:type",Object)],Ic.prototype,"JSC$17898_scroller",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ic.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Ic);
_.H(Ic,"ytd-unified-share-panel-renderer",function(){if(UMB!==void 0)return UMB;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return UMB=W},{mode:1});var oOg;var ac=function(){var W=_.O.apply(this,arguments)||this;W.modernModal=_.S("kevlar_sign_in_modal_modernization");return W};
_.Z(ac,_.O);ac.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ac.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.Ec.Object.defineProperties(ac.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,e;if(this.modernModal&&((W=this.data)==null?0:(e=W.button)==null?0:e.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var t,b;return(t=this.data)==null?void 0:(b=t.button)==null?void 0:b.buttonRenderer}}});
_.P([_.J(),_.Y("design:type",Object)],ac.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],ac.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ac.prototype,"modernModal",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ac.prototype,"buttonRendererData",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ac);
_.H(ac,"ytd-modal-with-title-and-button-renderer",function(){if(oOg!==void 0)return oOg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oOg=W},{mode:1});var lSS;var wC=function(){return _.O.apply(this,arguments)||this};
_.Z(wC,_.O);wC.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("page-changed",this.page))};
wC.prototype.pageChangedForBinding=wC.prototype.pageChangedForBinding;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],wC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],wC.prototype,"page",void 0);_.P([_.ul("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wC.prototype,"pageChangedForBinding",null);
_.P([_.h({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],wC);
_.H(wC,"ytd-account-item-section-header-renderer",function(){if(lSS!==void 0)return lSS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return lSS=W},{mode:1});var ZuC;var u1=function(){return _.O.apply(this,arguments)||this};
_.Z(u1,_.O);u1.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"}}}};
u1.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],u1.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],u1.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Function)],u1.prototype,"onAccountItemTap",void 0);
_.P([_.h({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],u1);
_.H(u1,"ytd-account-item-section-renderer",function(){if(ZuC!==void 0)return ZuC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return ZuC=W},{mode:1});var $$l;var kxC;var cd=function(){return _.O.apply(this,arguments)||this};
_.Z(cd,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cd.prototype,"data",void 0);_.P([_.h({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],cd);
_.H(cd,"ytd-accounts-dialog-header-renderer",function(){if(kxC!==void 0)return kxC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kxC=W},{mode:1});var pl9;var vd=function(){return _.O.apply(this,arguments)||this};
_.Z(vd,_.O);vd.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],vd.prototype,"data",void 0);_.P([_.h({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],vd);
_.H(vd,"ytd-google-account-header-renderer",function(){if(pl9!==void 0)return pl9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pl9=W},{mode:1});var GW=function(){return _.O.apply(this,arguments)||this};
_.Z(GW,_.O);GW.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"}}}};
GW.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("page-changed",this.page))};
GW.prototype.pageChangedForBinding=GW.prototype.pageChangedForBinding;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],GW.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],GW.prototype,"page",void 0);
_.P([_.ul("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GW.prototype,"pageChangedForBinding",null);_.P([_.h({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],GW);
_.Ro()(GW,"ytd-account-section-list-renderer",function(){if($$l===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);$$l=W}W=$$l;return W},{allowedProps:["data"],
mode:1});var yNT;var D9=function(){var W=_.O.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.S("enable_handles_account_menu_switcher");return W};
_.Z(D9,_.O);D9.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
D9.prototype.dataChanged=D9.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],D9.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],D9.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.P([_.vG("#avatar"),_.Y("design:type",Object)],D9.prototype,"avatar",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D9.prototype,"dataChanged",null);_.P([_.h({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],D9);
_.Ro()(D9,"ytd-active-account-header-renderer",function(){if(yNT===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);yNT=W}W=yNT;return W},{allowedProps:["data"],
mode:1});var jEC;var CZC;var Sl=function(){return _.O.apply(this,arguments)||this};
_.Z(Sl,_.O);Sl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Sl.prototype.onBackTap=function(){_.q2(this.hostElement,"yt-menu-back-tapped")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Sl.prototype,"data",void 0);_.P([_.h({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Sl);
_.Ro()(Sl,"ytd-simple-menu-header-renderer",function(){if(CZC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);CZC=W}W=CZC;return W},{allowedProps:["data"],
mode:2});var nOQ;var Bd=function(){return _.O.apply(this,arguments)||this};
_.Z(Bd,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bd.prototype,"data",void 0);_.P([_.h({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Bd);
_.H(Bd,"ytd-comment-video-thumbnail-header-renderer",function(){if(nOQ!==void 0)return nOQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return nOQ=W},{mode:1});var fSM;var oc=function(){return _.O.apply(this,arguments)||this};
_.Z(oc,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oc.prototype,"data",void 0);_.P([_.h({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],oc);
_.H(oc,"ytd-abuse-type-selector-renderer",function(){if(fSM!==void 0)return fSM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fSM=W},{mode:1});var gO$;var l1=function(){return _.O.apply(this,arguments)||this};
_.Z(l1,_.O);l1.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
l1.prototype.handleAdditionalContextChanged=function(){var W=this;_.HG(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.rO({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
l1.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
l1.prototype.handleAdditionalContextChanged=l1.prototype.handleAdditionalContextChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],l1.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",String)],l1.prototype,"additionalContext",void 0);_.P([_.J({selector:function(W){return W.reportChannelAbuse.additionalContext}}),
_.Y("design:type",String)],l1.prototype,"additionalContextRedux",void 0);_.P([_.J(),_.Y("design:type",Object)],l1.prototype,"data",void 0);_.P([_.vG("yt-text-input-form-field-renderer"),_.Y("design:type",Object)],l1.prototype,"additionalContextInput",void 0);_.P([_.ul("additionalContext"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l1.prototype,"handleAdditionalContextChanged",null);
_.P([_.h({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],l1);
_.H(l1,"ytd-report-channel-modal-additional-context-renderer",function(){if(gO$!==void 0)return gO$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return gO$=W},{mode:1});var TWl;var Z9=function(){var W=_.O.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.Z(Z9,_.O);_.r=Z9.prototype;_.r.computeNextButtonData=function(W,e,t){var b={};e&&(b.navigationEndpoint=e);t&&(b.serviceEndpoint=t);W&&W.buttonRenderer&&_.kJ.extend(b,W.buttonRenderer);return b};
_.r.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.r.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.r.handleSignalActionSubmitForm=function(){var W,e=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),t;W=((t=this.reportChannelAbuseForm)==null?void 0:t.additionalContext)||"";var b;t=((b=this.reportChannelAbuseForm)==null?void 0:b.impersonatedChannelUrl)||"";var m;if((m=this.data)==null?0:m.submitEndpoint){e={impersonated_channel_url:t,text:W,video_ids:e};var q;_.ee().resolve(_.tQ).resolveCommand((q=this.data)==null?void 0:q.submitEndpoint,{form:Object.assign({},
e,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.r.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.r.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.mF(this.hostElement,W.detail.error.message)};
_.r.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.r.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Z9.prototype.onYtServiceRequestError=Z9.prototype.onYtServiceRequestError;Z9.prototype.onYtServiceRequestCompleted=Z9.prototype.onYtServiceRequestCompleted;_.P([_.J(),_.Y("design:type",Object)],Z9.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Z9.prototype,"nextButtonDisabled",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Z9.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Z9.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Z9.prototype,"submitEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],Z9.prototype,"navigationEndpoint",void 0);_.P([_.J({selector:function(W){return W.reportChannelAbuse}}),
_.Y("design:type",Object)],Z9.prototype,"reportChannelAbuseForm",void 0);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Z9.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Z9.prototype,"onYtServiceRequestError",null);
_.P([_.h({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Z9);
_.H(Z9,"ytd-report-channel-modal-footer-renderer",function(){if(TWl!==void 0)return TWl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TWl=W},{mode:1});var JNg;var $f=function(){var W=_.O.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.Z($f,_.O);$f.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
$f.prototype.handleDataChanged=function(){_.L_(this.hostElement)};
$f.prototype.closePopup=function(){_.RT(this.hostElement,"yt-close-popup-action")};
$f.prototype.handleDataChanged=$f.prototype.handleDataChanged;_.P([_.J(),_.Y("design:type",Object)],$f.prototype,"boundOnTapDismissButton",void 0);_.P([_.J(),_.Y("design:type",Object)],$f.prototype,"data",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$f.prototype,"handleDataChanged",null);_.P([_.h({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],$f);
_.H($f,"ytd-report-channel-modal-header-renderer",function(){if(JNg!==void 0)return JNg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return JNg=W},{mode:1});var x$u;var kf=function(){var W=_.O.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.Z(kf,_.O);_.r=kf.prototype;_.r.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.r.disableNextButton=function(W){_.RT(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.r.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.HG(this,"ytd-report-channel-impersonated-channel-update",function(){var e=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.rO({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:e}));var t;((t=W.data)==null?0:t.submitEndpoint)&&e&&_.ee().resolve(_.tQ).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:e,element:W.hostElement}})},500)};
_.r.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.r.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.r.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
kf.prototype.handleImpersonatedChannelUrlChanged=kf.prototype.handleImpersonatedChannelUrlChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],kf.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],kf.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],kf.prototype,"autoValidate",void 0);_.P([_.J(),_.Y("design:type",Object)],kf.prototype,"invalid",void 0);
_.P([_.J(),_.Y("design:type",String)],kf.prototype,"impersonatedChannelUrl",void 0);_.P([_.J({selector:function(W){return W.reportChannelAbuse.impersonatedChannelUrl}}),
_.Y("design:type",String)],kf.prototype,"impersonatedChannelUrlRedux",void 0);_.P([_.J(),_.Y("design:type",Object)],kf.prototype,"data",void 0);_.P([_.vG("#text-input"),_.Y("design:type",Object)],kf.prototype,"channelUrlInput",void 0);_.P([_.ul("impersonatedChannelUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kf.prototype,"handleImpersonatedChannelUrlChanged",null);
_.P([_.h({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],kf);
_.H(kf,"ytd-report-channel-modal-impersonation-renderer",function(){if(x$u!==void 0)return x$u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return x$u=W},{mode:1});var OuE;var M_B;var p0=function(){return _.O.apply(this,arguments)||this};
_.Z(p0,_.O);p0.prototype.onCheckboxToggled=function(W){var e,t,b=(t=_.l((e=this.data)==null?void 0:e.video,_.hr))==null?void 0:t.videoId;b&&this.ytdReduxBehavior.dispatch(W.target.checked?_.rO({type:"VIDEO_SELECTED",payload:b}):_.rO({type:"VIDEO_UNSELECTED",payload:b}))};
p0.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Ec.Object.defineProperties(p0.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,e=(W=this.data)==null?void 0:W.video;if(!e)return{};var t;W=(t=_.l(e,_.hr))==null?void 0:t.navigationEndpoint;if(!W)return e;_.l(W==null?void 0:W.commandMetadata,_.ez)&&(_.l(W.commandMetadata,_.ez).ignoreNavigation=!0);return e}}});
_.P([_.J({reflectToAttribute:!0,selector:function(W,e){return e in W.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.Y("design:type",Boolean)],p0.prototype,"checked",void 0);_.P([_.J(),_.Y("design:type",Object)],p0.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p0.prototype,"video",null);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],p0.prototype,"ytdReduxBehavior",void 0);_.P([_.h({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],p0);
_.H(p0,"ytd-selectable-video-renderer",function(){if(M_B!==void 0)return M_B;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return M_B=W},{mode:1});var yC=function(){var W=_.O.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.Z(yC,_.O);yC.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yC.prototype,"data",void 0);_.P([_.h({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],yC);
_.H(yC,"ytd-selectable-video-list-renderer",function(){if(OuE!==void 0)return OuE;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return OuE=W},{mode:1});var sEu;_.xD("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var jl=function(){return _.O.apply(this,arguments)||this};
_.Z(jl,_.O);jl.prototype.onChange=function(W){if(W=_.Er(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.S("kevlar_command_handler_migration_killswitch"))_.IT(this.hostElement,W,this.hostElement);else{W=_.R(W);for(var e=W.next();!e.done;e=W.next())this.ytComponentBehavior.resolveCommand(e.value)}};
jl.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
jl.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],jl.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jl.prototype,"data",void 0);_.P([_.J({computed:"isEnabled(data)"}),_.Y("design:type",Boolean)],jl.prototype,"enabled",void 0);_.P([_.h({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],jl);
_.H(jl,"ytd-toggle-item-renderer",function(){if(sEu!==void 0)return sEu;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sEu=W},{mode:1});var hgU;var Hu1;var Ktg;var C0=function(){var W=_.O.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.Z(C0,_.O);C0.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}}}}}};
C0.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
C0.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.S("enable_ytc_refunds_submit_form_signal_action")&&_.X5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
C0.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.X5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Ec.Object.defineProperties(C0.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],C0.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],C0.prototype,"setVisible",void 0);_.P([_.J(),_.Y("design:type",Object)],C0.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],C0.prototype,"surveyFeedbackData",void 0);_.P([_.J(),_.Y("design:type",Object)],C0.prototype,"boundOnSubmitButtonClick",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data","setVisible"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C0.prototype,"visibilityHidden",null);_.P([_.gz({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],C0);
_.H(C0,"yt-flow-footer-renderer",function(){if(Ktg===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;Hu1===void 0&&(Hu1=document.createElement("template"));var b=Hu1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Ktg=W}W=Ktg;return W},{mode:2});var n0=function(){return _.O.apply(this,arguments)||this};
_.Z(n0,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],n0.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],n0.prototype,"data",void 0);_.P([_.J({selector:function(W){return W.ypc.surveyFeedbackData}}),
_.Y("design:type",Object)],n0.prototype,"surveyFeedbackData",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],n0);
_.H(n0,"ytd-flow-footer-renderer",function(){if(hgU!==void 0)return hgU;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hgU=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var PZC;var V_l;var f0=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.Z(f0,_.O);_.r=f0.prototype;_.r.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.OZ("multiPageMenuSectionItems")}}};
_.r.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var e=0;e<this.data.items.length;e++){var t=this.data.items[e].notificationRenderer;if(t&&t.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",e,1);_.RT(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.r.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.QQ(this.hostElement,"hidden",!0)};
_.r.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var e=0;e<W.length;e++)if(W[e].invalidationContinuationData){var t=void 0;var b=(t=W[e].invalidationContinuationData)==null?void 0:t.continuation;break}W=_.kJ.clone(this.data.continuationUpdateEndpoint||null);W.continuation=b;W.click_tracking_params=this.data.trackingParams;_.X5(this.hostElement,[W])}};
_.r.onServiceRequestCompleted_=function(W,e){if(this.data&&(W=e.actions)){e=0;for(var t=W.length;e<t;e++){var b=_.l(W[e],_.B28);if(!b)break;if((b.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||b.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&b.continuationItems&&this.data.items){var m=this.data.items.length-1;this.data.items[m].continuationItemRenderer&&this.splice.apply(this,["data.items",m,1].concat(b.continuationItems))}}}};
f0.prototype.onServiceRequestCompleted_=f0.prototype.onServiceRequestCompleted_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],f0.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],f0.prototype,"data",void 0);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],f0.prototype,"onServiceRequestCompleted_",null);_.P([_.gz({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],f0);
_.Ro()(f0,"yt-multi-page-menu-section-renderer",function(){if(V_l===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;PZC===void 0&&(PZC=document.createElement("template"));var b=PZC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);V_l=W}W=V_l;return W},{allowedProps:["data"],
mode:2});var iu1;var YpB;var gC=function(){return _.O.apply(this,arguments)||this};
_.Z(gC,_.O);gC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Ec.Object.defineProperties(gC.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gC.prototype,"data",void 0);_.P([_.T("data.progress"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gC.prototype,"showProgressBar",null);
_.P([_.T("data.progress"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gC.prototype,"progress",null);_.P([_.gz({is:"yt-flow-header-renderer",disableElementRegistration:!0})],gC);
_.H(gC,"yt-flow-header-renderer",function(){if(YpB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;iu1===void 0&&(iu1=document.createElement("template"));var b=iu1;t.call(e,b.content.cloneNode(!0),W.content.firstChild);YpB=W}W=YpB;return W},{mode:2});var zgl;var U$T;var TW=function(){return _.O.apply(this,arguments)||this};
_.Z(TW,_.O);TW.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TW.prototype,"data",void 0);_.P([_.gz({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],TW);
_.H(TW,"yt-post-confirmation-flow-step-renderer",function(){if(U$T===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;zgl===void 0&&(zgl=document.createElement("template"));var b=zgl;t.call(e,b.content.cloneNode(!0),W.content.firstChild);U$T=W}W=U$T;return W},{mode:2});var LtB;var EOC;var Jo=function(){return _.O.apply(this,arguments)||this};
_.Z(Jo,_.O);
Jo.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Jo.prototype,"data",void 0);_.P([_.gz({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Jo);
_.H(Jo,"yt-refund-confirmation-flow-step-renderer",function(){if(EOC===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;LtB===void 0&&(LtB=document.createElement("template"));var b=LtB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);EOC=W}W=EOC;return W},{mode:2});_.tA(f8$);_.tA(ghu);var TyB=_.$b({avatarViewModel:_.pz});_.tA(Jy9);var x2B=_.$b({commentInteractionViewModel:ghu,sharedSubscriptionViewModel:Jy9,buttonViewModel:_.MV});_.tA(Oe9);_.tA(MzS);_.tA(sT1);_.tA(hf$);_.tA(HeT);var K1T=_.$b({profileIdentityInfoViewModel:_.VdC,profileInfoViewModel:HeT});_.tA(PcE);_.a5(PcE,"yt-profile-card-view-model",{propNames:["data"]});var xf=function(){var W=_.O.apply(this,arguments)||this;W.enableFocusFix=_.S("music_web_enable_focus_on_setting_menu_fix")&&_.MD("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.S("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.Z(xf,_.O);_.r=xf.prototype;
_.r.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"}}}};
_.r.ready=function(){var W=this;this.JSC$18007_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.r.attributeChanged=function(W,e){W==="menu-style"&&_.RT(this.hostElement,"yt-multi-page-menu-closed-action",[e])};
_.r.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.aH(this,this.focusOnStampFinished))};
_.r.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.aH(this,this.focusOnStampFinished))};
_.r.reset=function(){this.closeJobId&&(_.Tm.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.r.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.aH(this,this.focusOnStampFinished)),this.doFocus())};
_.r.doFocus=function(){var W=_.gDh(this.sectionsElement);W.length&&W[0].focus()};
_.r.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.r.computeIsCommentNotificationOnProfileCard=function(W){return _.S("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.r.computeHideMenu=function(W,e){return W||!(!e||!e.showLoadingSpinner)};
_.r.onPopupClosed=function(){this.isPopUpOpen=!1;_.RT(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.r.onPopupOpened=function(W,e){this.isPopUpOpen=!0;e.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.q2(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.rO({type:"CHANNEL_REPORT_RESET"})))};
_.r.onYtNavigate=function(W,e){this.shouldCloseOnNavigateEvent(e.endpoint)&&_.RT(this.hostElement,"yt-close-all-popups-action")};
_.r.handleEndpoint=function(W){W=_.l(W,_.Tr);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$18007_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.r.handleActions=function(W){for(var e=0,t=W.length;e<t;e++){var b=_.l(W[e],rX$);b&&this.handleGetMultiPageMenuAction(b);(b=_.l(W[e],_.B28))&&this.handleAppendContinuationItemsAction(b)}};
_.r.onServiceRequestSentOrCompleted=function(W,e){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);e.actions&&this.handleActions(e.actions)};
_.r.handleGetMultiPageMenuAction=function(W){var e=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.rz(this.submenuElement).appendChild(e);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);e.data=W;e.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.r.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var e=this.data.sections.length-1;this.data.sections[e].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),e--);if(this.data.sections[e].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.R(W==null?void 0:W.continuationItems);for(var t=W.next();!t.done;t=W.next())if(t=t.value,_.l(t,fJT)){var b=
void 0,m=void 0,q=void 0,Q=void 0,X=void 0;((b=this)==null?0:(m=b.data)==null?0:(q=m.sections)==null?0:(Q=q[e])==null?0:(X=Q.multiPageMenuNotificationSectionRenderer)==null?0:X.items)&&this.push("data.sections."+e+".multiPageMenuNotificationSectionRenderer.items",t)}else if(_.l(t,_.RSy)||_.l(t,_.Q$))this.push("data.sections",t),e++}}};
_.r.logSubmenu=function(W){if(!_.S("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var e=this.ytRendererBehavior.getScreenLayer(),t=_.fc(e),b=_.nc(e);if((W=W.trackingParams)&&t&&b){var m=_.$5(W);_.S("combine_ve_grafts")?_.Sg().graftServerVe(W,b,e):_.Ke(t,b,m)}}};
_.r.emptySubmenuContainer=function(){for(var W=_.rz(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.r.onMenuBackTap=function(W){_.q2(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.r.onSubmenuClosed=function(W){_.Er(W)!==this.hostElement&&(this.covered=!1,_.q2(this.hostElement,"yt-refit"),W.stopPropagation())};
_.r.onRetrieveLocation=function(W,e){e.hasComments&&(e.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.r.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.l(W,_.rqU)||_.l(W,_.q5D)||_.l(W,_.m_k)||_.l(W,_.KJ))return!1;var e;return((e=_.l(W==null?void 0:W.commandMetadata,_.ez))==null?0:e.ignoreNavigation)?!1:!0};
_.r.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.r.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.r.refitAfterRender=function(){var W=this;_.Uc(this,function(){_.q2(W.hostElement,"yt-refit")})};
xf.prototype.refitAfterRender=xf.prototype.refitAfterRender;xf.prototype.onRetrieveLocation=xf.prototype.onRetrieveLocation;xf.prototype.onSubmenuClosed=xf.prototype.onSubmenuClosed;xf.prototype.onMenuBackTap=xf.prototype.onMenuBackTap;xf.prototype.onServiceRequestSentOrCompleted=xf.prototype.onServiceRequestSentOrCompleted;xf.prototype.onYtNavigate=xf.prototype.onYtNavigate;xf.prototype.onPopupOpened=xf.prototype.onPopupOpened;xf.prototype.onPopupClosed=xf.prototype.onPopupClosed;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],xf.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],xf.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],xf.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],xf.prototype,"enableFocusFix",void 0);_.P([_.J(),_.Y("design:type",Object)],xf.prototype,"covered",void 0);_.P([_.J({computed:"computeHideMenu(covered, data)"}),_.Y("design:type",Object)],xf.prototype,"hideMenu",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Y("design:type",String)],xf.prototype,"menuStyle",void 0);
_.P([_.J({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Y("design:type",Object)],xf.prototype,"isCommentNotificationOnProfileCard",void 0);_.P([_.J(),_.Y("design:type",Boolean)],xf.prototype,"isPopUpOpen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xf.prototype,"scrolledByTouch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],xf.prototype,"disableBackdropFilter",void 0);
_.P([_.vG("#sections"),_.Y("design:type",HTMLElement)],xf.prototype,"sectionsElement",void 0);_.P([_.vG("#spinner"),_.Y("design:type",HTMLElement)],xf.prototype,"spinnerElement",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],xf.prototype,"headerElement",void 0);_.P([_.vG("#container"),_.Y("design:type",HTMLElement)],xf.prototype,"JSC$18007_containerElement",void 0);_.P([_.vG("#submenu"),_.Y("design:type",HTMLElement)],xf.prototype,"submenuElement",void 0);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xf.prototype,"onPopupClosed",null);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],xf.prototype,"onPopupOpened",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],xf.prototype,"onYtNavigate",null);
_.P([_.wz("yt-service-request-completed"),_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],xf.prototype,"onServiceRequestSentOrCompleted",null);_.P([_.wz("yt-menu-back-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xf.prototype,"onMenuBackTap",null);
_.P([_.wz("yt-submenu-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xf.prototype,"onSubmenuClosed",null);_.P([_.wz("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],xf.prototype,"onRetrieveLocation",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xf.prototype,"refitAfterRender",null);
_.P([_.h({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],xf);
_.H(xf,"ytd-multi-page-menu-renderer",function(){if(jEC!==void 0)return jEC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jEC=W},{mode:1});var AN$;var Oh=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.Z(Oh,_.O);_.r=Oh.prototype;_.r.created=function(){this.showTooltips=!0};
_.r.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.r.onTap=function(){var W=_.Qx(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var e;if((e=this.data)==null?0:e.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var t;((t=this.data)==null?0:t.menuRequest)&&_.X5(this.hostElement,[this.data.menuRequest])}}};
_.r.handleTopbarMenuClosedAction=function(W){var e,t;(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(W)===((e=this.data)==null?void 0:(t=e.icon)==null?void 0:t.iconType)&&this.toggleIconState(!1)};
_.r.toggleIconState=function(W){_.S("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.r.handleUpdateTopbarAvatarAction=function(W){var e;W=(e=_.l(W,NJS))==null?void 0:e.avatarUrl;var t,b;e=(t=this.data)==null?void 0:(b=t.avatar)==null?void 0:b.thumbnails;W&&e&&(t={thumbnails:[Object.assign({},e[0],{url:W})]},this.set("data.avatar",t))};
_.Ec.Object.defineProperties(Oh.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.rz(this.hostElement).querySelector("#button")}}});
Oh.prototype.onTap=Oh.prototype.onTap;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Oh.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],Oh.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.hJr.YtButtonBehavior),_.Y("design:type",Object)],Oh.prototype,"ytButtonBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Oh.prototype,"data",void 0);
_.P([_.vG("yt-icon-button#button"),_.Y("design:type",Object)],Oh.prototype,"iconButton",void 0);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oh.prototype,"onTap",null);_.P([_.h({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Oh);
_.H(Oh,"ytd-topbar-menu-button-renderer",function(){if(AN$!==void 0)return AN$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AN$=W},{mode:1});var NWC;var Mm=function(){return _.O.apply(this,arguments)||this};
_.Z(Mm,_.O);Mm.prototype.getSelected=function(){return this.reasons.selected};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mm.prototype,"data",void 0);_.P([_.vG("#reasons"),_.Y("design:type",Object)],Mm.prototype,"reasons",void 0);_.P([_.h({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Mm);
_.H(Mm,"ytd-ad-feedback-content",function(){if(NWC!==void 0)return NWC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NWC=W},{mode:1});var d$U;var sh=function(){return _.O.apply(this,arguments)||this};
_.Z(sh,_.O);_.r=sh.prototype;_.r.onPopupOpened=function(){_.RT(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.r.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.r.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.r.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}}),_.RT(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.r.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.RT(this.hostElement,"yt-open-popup-action",[_.Nf(this.data.completionMessage),this])};
_.r.onCancelTap=function(){_.RT(this.hostElement,"yt-close-popup-action")};
sh.prototype.onPopupOpened=sh.prototype.onPopupOpened;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sh.prototype,"data",void 0);_.P([_.vG("#content"),_.Y("design:type",Object)],sh.prototype,"content",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sh.prototype,"onPopupOpened",null);
_.P([_.h({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],sh);
_.H(sh,"ytd-ad-feedback-renderer",function(){if(d$U!==void 0)return d$U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return d$U=W},{mode:1});var Wju;var ho=function(){return _.O.apply(this,arguments)||this};
_.Z(ho,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ho.prototype,"data",void 0);_.P([_.h({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],ho);
_.H(ho,"ytd-ad-info-dialog-content",function(){if(Wju!==void 0)return Wju;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Wju=W},{mode:1});var e71;var Hd=function(){return _.O.apply(this,arguments)||this};
_.Z(Hd,_.O);Hd.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
Hd.prototype.onConfirmTap=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Hd.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
Hd.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Hd.prototype.onPopupClosed=Hd.prototype.onPopupClosed;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hd.prototype,"data",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Hd.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Hd);
_.H(Hd,"ytd-ad-info-dialog-renderer",function(){if(e71!==void 0)return e71;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return e71=W},{mode:1});var ttB;var K0=function(){var W=_.O.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.Z(K0,_.O);_.r=K0.prototype;_.r.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.r.computedLogo=function(){var W,e;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(e=this.data)==null?void 0:e.logo};
_.r.computedHeaderImage=function(){var W,e;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(e=this.data)==null?void 0:e.headerImage};
_.r.computeLogoIconId=function(){var W,e,t,b=(W=this.computedLogo())==null?void 0:(e=W.sources)==null?void 0:(t=e[0])==null?void 0:t.height;return b&&b%31===0?"logo-icon-with-padding":"logo-icon"};
_.r.computeLogoIconHeight=function(){var W,e,t,b=(W=this.computedLogo())==null?void 0:(e=W.sources)==null?void 0:(t=e[0])==null?void 0:t.height;return b&&b%31===0?"31":"24"};
_.r.onPopupClosed=function(){_.ee().resolve(_.br).dispose()};
_.r.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.r.onShow=function(){this.inPlayer&&_.um(6)};
_.r.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var e=_.l(this.data.impressionEndpoints[W],_.OD);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.r.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.RT(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Ec.Object.defineProperties(K0.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,e;return!((W=this.data)==null||!W.headerImageDark)&&!((e=this.data)==null||!e.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
K0.prototype.onPopupClosed=K0.prototype.onPopupClosed;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],K0.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.Y6.YtVisibilityBehavior),_.Y("design:type",Object)],K0.prototype,"ytVisibilityBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],K0.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],K0.prototype,"actionButtonClass",void 0);_.P([_.J(),_.Y("design:type",Object)],K0.prototype,"dismissButtonId",void 0);_.P([_.J(),_.Y("design:type",Object)],K0.prototype,"dialogDismiss",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K0.prototype,"hasHeaderImage",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K0.prototype,"hasPremiumButton",null);
_.P([_.J({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Y("design:type",Boolean)],K0.prototype,"inPlayer",void 0);_.P([_.vG("#dismiss-button"),_.Y("design:type",HTMLElement)],K0.prototype,"dismissButton",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],K0.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],K0);
_.H(K0,"ytd-enforcement-message-view-model",function(){if(ttB!==void 0)return ttB;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return ttB=W},{mode:1});var b2S;var mvw;var Pd=function(){var W=_.O.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(e){W.onValidationResponse(e)},
onGenerateHandleFromNameResponse:function(e){W.onGenerateHandleFromNameResponse(e)}};
return W};
_.Z(Pd,_.O);_.r=Pd.prototype;_.r.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.r.validate=function(){this.immediateValidation()};
_.r.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.r.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.r.getHandleDir=function(W){var e=W===""&&!1;return(e=_.ZKU.test.call(_.ZKU,W))?"rtl":"ltr"};
_.r.onDataChanged=function(){var W,e;this.handleDir=this.getHandleDir((e=(W=this.data)==null?void 0:W.handle)!=null?e:"");var t;this.validationState=((t=this.data)==null?0:t.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var b;((b=this.data)==null?0:b.validateOnInit)&&this.immediateValidation()};
_.r.stopPropagation=function(W){W.stopPropagation()};
_.r.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.r.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.r.delayedValidation=function(){var W,e;this.debouncedValidation((e=(W=this.data)==null?void 0:W.validationDelayMs)!=null?e:1E3)};
_.r.immediateValidation=function(){this.debouncedValidation(0)};
_.r.debouncedValidation=function(W){var e=this;_.HG(this,"debouncedValidation",function(){var t,b=e.staticValidation((t=e.handleInput.value)!=null?t:"");if(b!==void 0)e.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:b};else{var m;if((m=e.data)!=null&&m.validateChannelHandleCommand){e.validationState={status:"LOADING"};var q;e.ytComponentBehavior.resolveCommand(e.data.validateChannelHandleCommand,{form:{handle:(q=e.handleInput.value)!=null?q:""},commandController:{onSuccess:function(Q,
X){e.onValidationResponse(X)},
onServerError:function(Q,X){e.onValidationServerError(X)}}})}else e.handleUnexpectedValidationError(new _.o_("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",e.data))}},W)};
_.r.staticValidation=function(W){var e;if(((e=this.data)==null?void 0:e.channelHandleStaticValidationParams)!==void 0){e=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&e.validValueRegexpErrorMessage!==void 0)return e.validValueRegexpErrorMessage;if(e.minLength!==void 0&&W.length<e.minLength&&e.minLengthErrorMessage!==void 0)return e.minLengthErrorMessage;if(e.maxLength!==void 0&&W.length>e.maxLength&&e.maxLengthErrorMessage!==void 0)return e.maxLengthErrorMessage}};
_.r.onValidationResponse=function(W){var e=_.l(W.result,dGC);e===void 0?this.handleUnexpectedValidationError(new _.o_("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(e)};
_.r.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.o_("ValidateChannelHandle request failed.",W))};
_.r.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.o_("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.o_("Unrecognized ChannelHandleValidationResult",W));break;default:_.Qw(W.result)}};
_.r.handleUnexpectedValidationError=function(W){var e;this.validationState={status:"UNKNOWN",handle:(e=this.handleInput.value)!=null?e:""};_.JC(W)};
_.r.stopEventPropagation=function(W){W.stopPropagation()};
_.r.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var e,t;this.debouncedGenerateHandleFromName(W,(t=(e=this.data)==null?void 0:e.validationDelayMs)!=null?t:1E3)}};
_.r.debouncedGenerateHandleFromName=function(W,e){var t=this;_.HG(this,"debouncedGenerateHandleFromName",function(){var b;(b=t.data)!=null&&b.validateChannelHandleCommand?t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(m,q){t.onGenerateHandleFromNameResponse(q)},
onServerError:function(m,q){_.JC(new _.o_("Error calling GenerateHandleFromName",q))}}}):_.JC(new _.o_("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",t.data))},e)};
_.r.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.l(W.result,WWE))?this.setHandleInputValue(W.handle):_.JC(new _.o_("Invalid results when generate handle from name")))};
_.Ec.Object.defineProperties(Pd.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,e=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(e!=null?e:"");return e}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,e;if(((W=this.data)==null?void 0:(e=W.channelHandleStaticValidationParams)==null?void 0:e.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Pd.prototype.stopEventPropagation=Pd.prototype.stopEventPropagation;Pd.prototype.onDataChanged=Pd.prototype.onDataChanged;Pd.prototype.applyHandleEdit=Pd.prototype.applyHandleEdit;Pd.prototype.onValueChanged=Pd.prototype.onValueChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Pd.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Pd.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Pd.prototype,"wasEdited",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Pd.prototype,"handleDir",void 0);_.P([_.vG("#handle-input"),_.Y("design:type",Object)],Pd.prototype,"handleInput",void 0);_.P([_.J(),_.T("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pd.prototype,"value",null);
_.P([_.ul("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pd.prototype,"onValueChanged",null);_.P([_.T("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pd.prototype,"errorIndicator",null);_.P([_.J({reflectToAttribute:!0}),_.T("errorIndicator"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pd.prototype,"borderErrorIndicator",null);
_.P([_.J({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,e){return _.I1(W.entities,"channelHandle",e)}}),
_.Y("design:type",Object)],Pd.prototype,"channelHandleEntity",void 0);_.P([_.T("channelHandleEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pd.prototype,"handleEdit",null);_.P([_.ul("handleEdit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pd.prototype,"applyHandleEdit",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pd.prototype,"onDataChanged",null);
_.P([_.T("data.channelHandleStaticValidationParams.validValueRegexp"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pd.prototype,"validValueRegexp",null);_.P([_.wz("yt-service-request-sent"),_.wz("yt-service-request-completed"),_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Pd.prototype,"stopEventPropagation",null);_.P([_.h({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Pd);
_.H(Pd,"ytd-channel-handle-input-renderer",function(){if(mvw!==void 0)return mvw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return mvw=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var VC=function(){var W=_.O.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.S("enable_new_channel_creation_for_id4all");W.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"};W.testOnly={setErrorMessage:function(e){W.resetErrorState();
W.setErrorState(e)}};
return W};
_.Z(VC,_.O);_.r=VC.prototype;_.r.created=function(){this.logScreenVe()};
_.r.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")};
_.r.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.zq(this.zeroStepErrorMessageEntity.value))};
_.r.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var e,t;if(!((e=this.data.createChannelButton)==null?0:(t=e.buttonRenderer)==null?0:t.isDisabled)){var b;if((b=this.nameInput)!=null&&b.value){this.setLoadingState();var m,q;e=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(m=this.handleInput)==null?void 0:m.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((q=this.handleInput)==null?void 0:q.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:e,commandController:{onSuccess:function(Q,X){W.onChannelCreationEndpointSuccess(X);W.obakeImageSource&&_.nJ("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.r.endpointRequiresServiceRequestAction=function(W){return!!_.l(W,_.xB)||!!_.l(W,NJS)};
_.r.isNavigateAction=function(W){var e;return!!_.l(W,_.Kb)||!!_.l((e=_.l(W,bxU))==null?void 0:e.command,_.Kb)};
_.r.isPlaylistAction=function(W){return!!_.l(W,_.Jr)||!!_.l(W,_.Hz)};
_.r.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var e;this.setErrorState((e=W.createChannelError)==null?void 0:e.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.S("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){e=_.R(W.actions);for(var t=e.next();!t.done;t=e.next())if(t=t.value,this.endpointRequiresServiceRequestAction(t)&&this.ytComponentBehavior.resolveCommand(t),
this.isNavigateAction(t)){var b=void 0;t=_.l((b=_.l(t,bxU))==null?void 0:b.command,_.Kb);b=void 0;this.isPlaylistAction((b=t)==null?void 0:b.endpoint)&&(_.RT(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),b=void 0,this.ytComponentBehavior.resolveCommand((b=t)==null?void 0:b.endpoint))}}W.actions&&W.actions.some(function(m){var q;return _.l(m,_.Kb)||_.l((q=_.l(m,bxU))==null?void 0:q.command,_.Kb)})||_.RT(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.r.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.r.onCancelTap=function(){var W,e,t;if(!((W=this.data)==null?0:(e=W.cancelButton)==null?0:(t=e.buttonRenderer)==null?0:t.isDisabled)){var b,m,q;W=(b=this.data)==null?void 0:(m=b.cancelButton)==null?void 0:(q=m.buttonRenderer)==null?void 0:q.command;if(!W||!_.l(W,_.GsG)){var Q;this.nameInput&&((Q=this.data)==null?0:Q.name)&&(this.nameInput.value=this.data.name);var X;this.handleInput&&((X=this.data)==null?0:X.channelHandleInput)&&(this.handleInput.data=_.l(this.data.channelHandleInput,e9C));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.r.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.r.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.r.onClearProfilePhotoTap=function(){var W,e,t;((W=this.data)==null?0:(e=W.clearProfilePhotoButton)==null?0:(t=e.buttonRenderer)==null?0:t.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.r.onEditAvatarTap=function(){var W,e,t;((W=this.data)==null?0:(e=W.editAvatarButton)==null?0:(t=e.buttonRenderer)==null?0:t.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.r.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)};
_.r.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.r.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var e;if((e=this.zeroStepErrorMessageEntity)==null?0:e.value)this.set("errorMessage",_.zq(this.zeroStepErrorMessageEntity.value));else{var t;((t=this.data)==null?0:t.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.r.fetchImageBlobWithAlr=function(W,e){e=e===void 0?5:e;var t=this,b,m,q,Q,X;return _.F(function(I){switch(I.nextAddress){case 1:return _.a(I,fetch(W,{method:"GET",mode:"cors"}),2);case 2:b=I.yieldResult;if(b.ok){I.jumpTo(3);break}if(e===0)throw Error();m=t.addJitter(Math.pow(2,5-e));return _.a(I,new Promise(function(u){setTimeout(u,m*1E3)}),4);
case 4:return I.return(t.fetchImageBlobWithAlr(W,e-1));case 3:if(!b.headers.get("content-type").split(";").some(function(u){return u.trim()==="text/plain"})){I.jumpTo(5);
break}q=t;Q=q.fetchImageBlobWithAlr;return _.a(I,b.text(),6);case 6:return I.return(Q.call(q,I.yieldResult,e-1));case 5:return _.a(I,b.blob(),7);case 7:return X=I.yieldResult,I.return(X)}})};
_.r.addJitter=function(W){var e=W*.3*Math.random();Math.random()>.5&&(e*=-1);return W+e};
_.r.openProfilePicturePicker=function(){var W=this,e,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){e=W.data.scottyUploadUrl;if(!e)return Q.return();t=document.documentElement.hasAttribute("dark");b=document.body.style.colorScheme;t&&(document.body.style.colorScheme="dark");m=rsB(qqu(m7$(AiE(t?"dark":"light")),function(X){var I,u,c,v,D;return _.F(function(B){if(B.nextAddress==1)return I=_.P9(a6B(new l2(X.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(X.photoSource),
_.Qh(B,2),W.setLoadingState(),_.a(B,W.fetchImageBlobWithAlr(I),4);if(B.nextAddress!=2)return u=B.yieldResult,c=new FileReader,c.addEventListener("load",function(){var k,n,f,M,K,U;return _.F(function(V){if(V.nextAddress==1){if(u.size>15728640)return W.setErrorState((k=W.data)==null?void 0:k.imageSizeErrorMessage),_.JC(Error("kl")),V.return();if(!c.result)return W.setErrorState((n=W.data)==null?void 0:n.genericImageLoadErrorMessage),_.JC(Error("ll")),V.return();f=c.result;_.Qh(V,2);return _.a(V,VzU(u,
e),4)}if(V.nextAddress!=2)return M=V.yieldResult,W.handleImageUpdatedAction(f,M),W.resetErrorState(),_.Hi(V,0);K=_.w9(V);W.setErrorState((U=W.data)==null?void 0:U.uploadErrorMessage);if(K instanceof Error)_.gQ(K);else{var L=new _.o_(JSON.stringify(K));_.gQ(L)}_.u8(V)})}),c.readAsDataURL(u),_.Hi(B,0);
v=_.w9(B);W.setErrorState((D=W.data)==null?void 0:D.genericImageLoadErrorMessage);v instanceof Error?_.gQ(v):_.TT(new _.o_(JSON.stringify(v)));_.u8(B)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=b});
_.Qh(Q,2);return _.a(Q,m.openPicker(),4)}if(Q.nextAddress!=2)return _.Hi(Q,0);_.w9(Q);W.setErrorState((q=W.data)==null?void 0:q.selectImageErrorMessage);_.u8(Q)})};
_.r.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.r.logScreenVe=function(){_.FW(_.Sg(),124448)};
_.r.graftServerVe=function(){var W=_.nc(),e,t,b=(e=this.data)==null?void 0:(t=e.loggingDirectives)==null?void 0:t.trackingParams;b&&W&&(this.channelCreationFormVe=_.Sg().graftServerVe(b,W),W={visualElement:this.channelCreationFormVe},_.Gf().reportShown(W))};
_.r.isNameChanged=function(W){var e;return((e=this.data)==null?void 0:e.name)!==W};
_.r.isHandleChanged=function(W){var e,t=_.l((e=this.data)==null?void 0:e.channelHandleInput,e9C);return t&&W?t.handle!==W:!1};
_.r.handleImageUpdatedAction=function(W,e){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=e};
_.r.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.r.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.r.showContainer=function(){this.hideContainer=!1};
_.r.maybeWipeZeroStepErrorMessage=function(){var W,e=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,t;e&&((t=this.zeroStepErrorMessageEntity)==null?0:t.value)&&this.ytdReduxBehavior.dispatch(_.SX("stringEntity",e,{key:e,value:""}))};
_.Ec.Object.defineProperties(VC.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
VC.prototype.dataChanged=VC.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],VC.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],VC.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],VC.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],VC.prototype,"errorMessage",void 0);
_.P([_.J(),_.Y("design:type",Object)],VC.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",String)],VC.prototype,"previewDataUrl",void 0);_.P([_.J(),_.Y("design:type",Number)],VC.prototype,"obakeImageSource",void 0);_.P([_.J(),_.Y("design:type",Object)],VC.prototype,"hideContainer",void 0);_.P([_.vG("#title-input"),_.Y("design:type",Object)],VC.prototype,"nameInput",void 0);_.P([_.vG("#handle-input"),_.Y("design:type",Object)],VC.prototype,"handleInput",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],VC.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.P([_.J({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.eBQ}),_.Y("design:type",Object)],VC.prototype,"zeroStepErrorMessageEntity",void 0);_.P([_.T("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VC.prototype,"photoThumbnail",null);
_.P([_.T("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VC.prototype,"userSetPhotoThumbnailUrl",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VC.prototype,"hideProfilePhotoButtonLayer",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VC.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.P([_.BG("data","zeroStepErrorMessageEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VC.prototype,"dataChanged",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VC.prototype,"description",null);_.P([_.h({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],VC);
_.H(VC,"ytd-channel-creation-dialog-renderer",function(){if(b2S!==void 0)return b2S;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return b2S=W},{mode:1});var rxl;var i1=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.Z(i1,_.O);i1.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
i1.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
i1.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var e;((e=this.data)==null?void 0:e.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var t;if((t=W.data)==null?0:t.nextEndpoint){var b;W.ytComponentBehavior.resolveCommand((b=W.data)==null?void 0:b.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var t;W.errorMessage=(t=W.data)==null?void 0:t.errorMessage}}}))}};
i1.prototype.closeDialog=function(){_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
i1.prototype.updateDisabled=i1.prototype.updateDisabled;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],i1.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],i1.prototype,"data",void 0);_.P([_.vG("#handle-input"),_.Y("design:type",Object)],i1.prototype,"handleInput",void 0);_.P([_.ul("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i1.prototype,"updateDisabled",null);
_.P([_.h({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],i1);
_.H(i1,"ytd-channel-handle-edit-dialog-renderer",function(){if(rxl!==void 0)return rxl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rxl=W},{mode:1});var qyw;var Yf=function(){return _.O.apply(this,arguments)||this};
_.Z(Yf,_.O);Yf.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Yf.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Yf);
_.H(Yf,"ytd-channel-switcher-footer-renderer",function(){if(qyw!==void 0)return qyw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return qyw=W},{mode:1});var R7T;var QLS;var zW=function(){return _.O.apply(this,arguments)||this};
_.Z(zW,_.O);zW.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
zW.prototype.onIronChange=zW.prototype.onIronChange;_.P([_.J(),_.Y("design:type",Object)],zW.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Function)],zW.prototype,"onDontAskAgainChanged",void 0);_.P([_.vG("#checkbox"),_.Y("design:type",Object)],zW.prototype,"checkbox",void 0);_.P([_.wz("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zW.prototype,"onIronChange",null);
_.P([_.h({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],zW);
_.H(zW,"ytd-identity-prompt-footer-renderer",function(){if(QLS!==void 0)return QLS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QLS=W},{mode:1});var Uh=function(){var W=_.O.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(e){W.dontAskAgainChanged(e)};
W.boundOnAccountItemTap=function(e){W.onAccountItemTap(e)};
return W};
_.Z(Uh,_.O);_.r=Uh.prototype;
_.r.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]]"}}}}}};
_.r.ready=function(){var W=this;_.rz(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.r.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.r.onAccountItemTap=function(W){if(W){var e={};this.dontAskAgain&&(e={dont_ask_again:this.dontAskAgain});_.VI(W,e)}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.r.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.l(W.sections[0],_.GLr),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.Yq(window.location.href),(W==null?0:W.next)&&_.Z1K(W.next)?_.VI(W.next):_.VI("/")):this.showPopup=!0)};
Uh.prototype.dataChanged=Uh.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uh.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Object)],Uh.prototype,"dontAskAgain",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Uh.prototype,"showPopup",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Object)],Uh.prototype,"boundDontAskAgainChanged",void 0);_.P([_.J({reflectToAttribute:!1}),_.Y("design:type",Object)],Uh.prototype,"boundOnAccountItemTap",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uh.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Uh);
_.H(Uh,"ytd-channel-switcher-renderer",function(){if(R7T!==void 0)return R7T;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return R7T=W},{mode:1});var Fjw;var L0=function(){return _.O.apply(this,arguments)||this};
_.Z(L0,_.O);_.Ec.Object.defineProperties(L0.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.P([_.J(),_.Y("design:type",Object)],L0.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],L0.prototype,"steps",null);_.P([_.h({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],L0);
_.H(L0,"ytd-channel-transfer-stepper-renderer",function(){if(Fjw!==void 0)return Fjw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Fjw=W},{mode:1});var XCU;var Eh=function(){var W=_.O.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.Z(Eh,_.O);_.r=Eh.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.r.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.r.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)};
_.r.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)};
Eh.prototype.onYtServiceRequestError=Eh.prototype.onYtServiceRequestError;Eh.prototype.onYtServiceRequestSent=Eh.prototype.onYtServiceRequestSent;Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Eh.prototype,"data",void 0);
_.P([_.J({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Y("design:type",String)],Eh.prototype,"profileName",void 0);_.P([_.J(),_.Y("design:type",Object)],Eh.prototype,"isError",void 0);_.P([_.J(),_.Y("design:type",Object)],Eh.prototype,"isLoading",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Eh.prototype,"dataChanged",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],Eh.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],Eh.prototype,"onYtServiceRequestError",null);_.P([_.h({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Eh);
_.H(Eh,"ytd-channel-warm-welcome-cont-renderer",function(){if(XCU!==void 0)return XCU;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XCU=W},{mode:1});var I4U;var Ao=function(){var W=_.O.apply(this,arguments)||this;W.data=null;return W};
_.Z(Ao,_.O);Ao.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ao.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ao.prototype,"data",void 0);_.P([_.h({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Ao);
_.H(Ao,"ytd-channel-warm-welcome-renderer",function(){if(I4U!==void 0)return I4U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return I4U=W},{mode:1});var a4w;var Nm=function(){return _.O.apply(this,arguments)||this};
_.Z(Nm,_.O);_.Ec.Object.defineProperties(Nm.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Nm.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Nm.prototype,"thumbnailDetails",null);_.P([_.h({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Nm);
_.H(Nm,"ytd-comment-preview-renderer",function(){if(a4w!==void 0)return a4w;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return a4w=W},{mode:1});var wCS;var dC=function(){return _.O.apply(this,arguments)||this};
_.Z(dC,_.O);dC.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Ec.Object.defineProperties(dC.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dC.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dC.prototype,"submitButton",null);_.P([_.h({is:"ytd-notice-renderer",disableElementRegistration:!0})],dC);
_.H(dC,"ytd-notice-renderer",function(){if(wCS!==void 0)return wCS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return wCS=W},{mode:1});var uaT;var Wy=function(){return _.O.apply(this,arguments)||this};
_.Z(Wy,_.O);Wy.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wy.prototype,"data",void 0);_.P([_.h({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Wy);
_.H(Wy,"ytd-preview-comment-dialog-content",function(){if(uaT!==void 0)return uaT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return uaT=W},{mode:1});var cxQ;var en=function(){return _.O.apply(this,arguments)||this};
_.Z(en,_.O);en.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
en.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],en.prototype,"data",void 0);_.P([_.h({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],en);
_.H(en,"ytd-preview-comment-dialog-renderer",function(){if(cxQ!==void 0)return cxQ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return cxQ=W},{mode:1});var vI1;var GCl=_.S("web_button_rework")&&_.MD("BUTTON_REWORK")||_.S("web_button_rework_with_live"),tg=function(){var W=_.O.apply(this,arguments)||this;W.closeLabel=_.Gv("CLOSE");W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=GCl;W.amountPlaceholderIndex=-1;return W};
_.Z(tg,_.O);_.r=tg.prototype;_.r.onAmountClick=function(W){this.selectedAmountIndex=_.rz(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.r.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.RT(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.r.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.RT(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.RT(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.tv())==null||W.getPlayerPromise().then(function(e){e.pauseVideo()})}};
_.r.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.RT(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.RT(this.hostElement,"yt-close-popup-action",[this.is]),_.RT(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.r.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.rz(this.hostElement).querySelector("#custom-amount-input").focus()};
_.r.updateConfirmationDialogTextWithAmount=function(W){var e=this.getConfirmDialogRuns();e&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(e),"text"],this.getFormattedAmount(W))};
_.r.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.r.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(e){return e.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.r.getFormattedAmount=function(W){var e;return(new _.Hm(4,((e=this.data)==null?void 0:e.currencyCode)||"")).format(W)};
_.r.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var e=this.get("minAmountMicros",this.data),t=this.get("maxAmountMicros",this.data);return e&&W<e||t&&W>t?!1:!0};
_.r.setInputError=function(){this.shouldShowValidationError?_.rz(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.rz(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.r.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.r.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.r.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.Ec.Object.defineProperties(tg.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,e,t;return((e=this.data)==null?void 0:(t=e.suggestedAmounts)==null?void 0:t.map(function(b,m){return{buttonRenderer:{style:W.selectedAmountIndex===m?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:b.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
tg.prototype.setInitialCheckboxValue=tg.prototype.setInitialCheckboxValue;tg.prototype.setInputError=tg.prototype.setInputError;tg.prototype.setFocusOnCustomAmountInput=tg.prototype.setFocusOnCustomAmountInput;_.P([_.y($Qg),_.Y("design:type",Object)],tg.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],tg.prototype,"closeLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],tg.prototype,"selectedAmountIndex",void 0);_.P([_.J(),_.Y("design:type",String)],tg.prototype,"customAmountInput",void 0);_.P([_.J(),_.Y("design:type",Object)],tg.prototype,"privacyCheckboxValue",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tg.prototype,"useAmsterdamStyle",void 0);_.P([_.ul("customAmount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tg.prototype,"setFocusOnCustomAmountInput",null);_.P([_.T("data","selectedAmountIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],tg.prototype,"suggestedAmountButtons",null);
_.P([_.T("data","selectedAmountIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tg.prototype,"isCustomAmountSelected",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tg.prototype,"showPrivacyCheckbox",null);_.P([_.T("data","selectedAmountIndex","customAmount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"amountMicros",null);
_.P([_.T("isCustomAmountSelected","customAmountInput"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"customAmount",null);_.P([_.T("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tg.prototype,"shouldShowValidationError",null);_.P([_.T("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tg.prototype,"isDonateButtonEnabled",null);
_.P([_.T("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"donateCommand",null);_.P([_.T("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"donateCommandWithConfirmation",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"largeDonationThreshold",null);
_.P([_.T("customAmount","donateCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"confirmLargeAmountCommand",null);_.P([_.T("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tg.prototype,"donateButtonRenderer",null);_.P([_.ul("shouldShowValidationError"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tg.prototype,"setInputError",null);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tg.prototype,"setInitialCheckboxValue",null);_.P([_.h({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],tg);
_.H(tg,"ytd-donation-amount-picker-renderer",function(){if(vI1!==void 0)return vI1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return vI1=W},{mode:1});var DvS;var bo=function(){return _.O.apply(this,arguments)||this};
_.Z(bo,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.P([_.J({}),_.Y("design:type",Object)],bo.prototype,"data",void 0);_.P([_.h({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],bo);
_.H(bo,"ytd-donation-post-transaction-content",function(){if(DvS!==void 0)return DvS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return DvS=W},{mode:1});var SyE;var ms=function(){return _.O.apply(this,arguments)||this};
_.Z(ms,_.O);ms.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.P([_.J({}),_.Y("design:type",Object)],ms.prototype,"data",void 0);_.P([_.h({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],ms);
_.H(ms,"ytd-donation-post-transaction-renderer",function(){if(SyE!==void 0)return SyE;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return SyE=W},{mode:1});var BFC;var oIg;var re=function(){return _.O.apply(this,arguments)||this};
_.Z(re,_.O);re.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
re.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],re.prototype,"data",void 0);_.P([_.J({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],re.prototype,"isStreamingProvider",void 0);
_.P([_.h({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],re);
_.H(re,"ytd-media-provider-renderer",function(){if(oIg!==void 0)return oIg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oIg=W},{mode:1});var l4w;var qb=function(){return _.O.apply(this,arguments)||this};
_.Z(qb,_.O);qb.prototype.observeLightsourcePalette=function(){var W,e=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;e&&_.T2(this.hostElement,e)};
qb.prototype.observeLightsourcePalette=qb.prototype.observeLightsourcePalette;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],qb.prototype,"data",void 0);
_.P([_.ul("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qb.prototype,"observeLightsourcePalette",null);_.P([_.h({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],qb);
_.H(qb,"ytd-streaming-pop-up-dialog",function(){if(l4w!==void 0)return l4w;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return l4w=W},{mode:1});var RO=function(){return _.O.apply(this,arguments)||this};
_.Z(RO,_.O);RO.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.ee().resolve(_.tQ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
RO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
RO.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"}}}}};
RO.prototype.onPopupOpened_=RO.prototype.onPopupOpened_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.PB),_.Y("design:type",Object)],RO.prototype,"ytContinuationHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],RO.prototype,"data",void 0);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RO.prototype,"onPopupOpened_",null);_.P([_.h({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],RO);
_.H(RO,"ytd-brandconnect-popup-renderer",function(){if(BFC!==void 0)return BFC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BFC=W},{mode:1});var Z2B;var Q_=function(){return _.O.apply(this,arguments)||this};
_.Z(Q_,_.O);_.r=Q_.prototype;_.r.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.r.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.r.computeAlt=function(W){return _.Ub(W)};
_.r.onDismissTap=function(){_.RT(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(e,t){t.checkboxSurveyOptionRenderer&&e.push(t.checkboxSurveyOptionRenderer);return e},[]):[]};
_.r.onOptionChange=function(W){var e=this,t=!1;if(W.detail.checked)for(var b=this.getOptionRenderers().find(function(X){return X.value===W.detail.value}),m=this.getOptionRenderers(),q=0;q<m.length;q++){var Q=m[q];
this.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked");Q.checked&&((b==null?0:b.isExclusiveOption)?!Q.isExclusiveOption:Q.isExclusiveOption)?this.set("data.options."+q+".checkboxSurveyOptionRenderer.checked",!1):Q.checked&&(t=!0)}else t=this.getOptionRenderers().some(function(X,I){e.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked");return X.checked});
this.updateSubmitButton(t)};
_.r.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(q){return q.checked});
if(W.length!==0){var e=W.map(function(q){return q.responseEndpoint});
W=[];for(var t=1;t<e.length;t++){var b=void 0,m=(b=_.l(e[t],_.Ol))==null?void 0:b.feedbackToken;m&&W.push(m)}e=[e[0]];W.length&&e.push({extra_feedback_tokens:W});_.X5(this.hostElement,e);_.RT(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.S("kevlar_command_handler_migration_killswitch"))_.IT(this.hostElement,W,this.hostElement);else for(W=_.R(W),e=W.next();!e.done;e=W.next())this.ytComponentBehavior.resolveCommand(e.value)}};
Q_.prototype.onOptionChange=Q_.prototype.onOptionChange;Q_.prototype.dataChanged=Q_.prototype.dataChanged;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Q_.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Q_.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.P([_.y(V1T),_.Y("design:type",Object)],Q_.prototype,"ytdHatsSurveyBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Q_.prototype,"data",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q_.prototype,"dataChanged",null);
_.P([_.wz("ytd-checkbox-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Q_.prototype,"onOptionChange",null);_.P([_.h({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Q_);
_.H(Q_,"ytd-checkbox-survey-renderer",function(){if(Z2B!==void 0)return Z2B;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Z2B=W},{mode:1});var $vM;var kCg;var F9=function(){return _.O.apply(this,arguments)||this};
_.Z(F9,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.P([_.y(PTg),_.Y("design:type",Object)],F9.prototype,"ytdDismissalReasonBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],F9.prototype,"data",void 0);_.P([_.h({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],F9);
_.H(F9,"ytd-dismissal-reason-text-renderer",function(){if(kCg!==void 0)return kCg;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return kCg=W},{mode:1});var pC1;var X9=function(){return _.O.apply(this,arguments)||this};
_.Z(X9,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.P([_.y(PTg),_.Y("design:type",Object)],X9.prototype,"ytdDismissalReasonBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],X9.prototype,"data",void 0);_.P([_.h({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],X9);
_.H(X9,"ytd-dismissal-reason-video-renderer",function(){if(pC1!==void 0)return pC1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return pC1=W},{mode:1});var IO=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(IO,_.O);_.r=IO.prototype;_.r.created=function(){this.selectedFeedbackTokens=new Pt};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.r.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.r.onDismissalReasonSelected=function(W,e){_.q2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(e);this.hasReasonsSelected=!0};
_.r.onDismissalReasonDeselected=function(W,e){_.q2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(e);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.r.onCancelTap=function(){_.RT(this.hostElement,"yt-close-popup-action")};
_.r.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.ee().resolve(_.tQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.RT(this.hostElement,"yt-close-popup-action")};
IO.prototype.onDismissalReasonDeselected=IO.prototype.onDismissalReasonDeselected;IO.prototype.onDismissalReasonSelected=IO.prototype.onDismissalReasonSelected;IO.prototype.dataChanged=IO.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],IO.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],IO.prototype,"hasReasonsSelected",void 0);_.P([_.J(),_.Y("design:type",Pt)],IO.prototype,"selectedFeedbackTokens",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],IO.prototype,"darkerDarkTheme",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IO.prototype,"dataChanged",null);
_.P([_.wz("yt-dismissal-reason-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],IO.prototype,"onDismissalReasonSelected",null);_.P([_.wz("yt-dismissal-reason-deselected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],IO.prototype,"onDismissalReasonDeselected",null);_.P([_.h({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],IO);
_.H(IO,"ytd-dismissal-follow-up-renderer",function(){if($vM!==void 0)return $vM;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return $vM=W},{mode:1});var yxC;var aO=function(){return _.O.apply(this,arguments)||this};
_.Z(aO,_.O);_.r=aO.prototype;_.r.onCheckedChange=function(){this.multiselect||_.q2(this.hostElement,"yt-feedback-single-select-changed");_.rz(this.hostElement).querySelector("#freeform").focus();_.q2(this.hostElement,"yt-refit")};
_.r.showTextBox=function(W,e){return W&&e};
_.r.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))};
_.r.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.r.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
aO.prototype.dataChanged=aO.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],aO.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],aO.prototype,"multiselect",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aO.prototype,"dataChanged",null);
_.P([_.h({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],aO);
_.H(aO,"ytd-feedback-option-renderer",function(){if(yxC!==void 0)return yxC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yxC=W},{mode:1});var jLw;var we=function(){return _.O.apply(this,arguments)||this};
_.Z(we,_.O);we.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
we.prototype.onSingleSelectCheckedChanged=function(W){W=_.Er(W);for(var e=0;e<this.data.options.length;e++)if(W.data!==_.l(this.data.options[e],HxE)){var t="data.options."+e+".feedbackOptionRenderer.checked";this.notifyPath(t);this.set(t,!1)}};
we.prototype.onSingleSelectCheckedChanged=we.prototype.onSingleSelectCheckedChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],we.prototype,"data",void 0);
_.P([_.wz("yt-feedback-single-select-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],we.prototype,"onSingleSelectCheckedChanged",null);_.P([_.h({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],we);
_.H(we,"ytd-feedback-question-renderer",function(){if(jLw!==void 0)return jLw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jLw=W},{mode:1});var CRS;var uo=function(){return _.O.apply(this,arguments)||this};
_.Z(uo,_.O);uo.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
uo.prototype.getSelectedFeedbackResults=function(){for(var W={},e=0;e<this.data.questions.length;e++)for(var t=_.l(this.data.questions[e],h9l),b=0;b<t.options.length;b++){var m=_.l(t.options[b],HxE);m&&m.checked&&(W[m.optionKey]=m.resultText)}return W};
uo.prototype.onKeyUp=function(){var W=this;_.F6(_.Tm,function(){_.q2(W.hostElement,"yt-refit")});
_.Tm.start()};
uo.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.ee().resolve(_.tQ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],uo.prototype,"data",void 0);_.P([_.h({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],uo);
_.H(uo,"ytd-feedback-survey-renderer",function(){if(CRS!==void 0)return CRS;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return CRS=W},{mode:1});var nIT;var f4l;var cy=function(){return _.O.apply(this,arguments)||this};
_.Z(cy,_.O);cy.prototype.computeAlt=function(W){return _.Ub(W)};
cy.prototype.submitResponse=function(){var W,e;(W=this.data)!=null&&W.feedbackToken&&((e=this.data)==null?void 0:e.nextStageIndex)!==void 0&&(_.Qx(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Qx(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
cy.prototype.onClick=function(){this.submitResponse()};
cy.prototype.onClick=cy.prototype.onClick;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],cy.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cy.prototype,"vertical",void 0);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cy.prototype,"onClick",null);
_.P([_.h({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],cy);
_.H(cy,"ytd-single-select-answer-option-renderer",function(){if(f4l!==void 0)return f4l;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return f4l=W},{mode:1});var gIl;var vy=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.Z(vy,_.O);vy.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
vy.prototype.dataChanged=function(){var W,e;this.vertical=((e=(W=this.data)==null?void 0:W.answerOrientation)!=null?e:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
vy.prototype.submitFeedback=function(W){var e;((e=this.data)==null?0:e.responseEndpoint)&&W&&_.X5(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
vy.prototype.dataChanged=vy.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],vy.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],vy.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],vy.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vy.prototype,"vertical",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],vy.prototype,"darkerDarkTheme",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vy.prototype,"dataChanged",null);_.P([_.h({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],vy);
_.H(vy,"ytd-single-select-question-renderer",function(){if(gIl!==void 0)return gIl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return gIl=W},{mode:1});var Gc=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.Z(Gc,_.O);_.r=Gc.prototype;_.r.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"}}}};
_.r.dataChanged=function(){this.jumpToStage(0)};
_.r.jumpToStage=function(W){var e,t;if((e=this.data)==null?0:(t=e.stages)==null?0:t[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.r.computeAlt=function(W){return _.Ub(W)};
_.r.computeSimpleMessage=function(W){var e;return(e=_.l(W,V3w))==null?void 0:e.messageText};
_.r.computeHideDismiss=function(W){var e;return(e=_.l(W,vGT))==null?void 0:e.hideParentDismissButton};
_.r.onDismissTap=function(){_.RT(this.hostElement,"yt-close-popup-action");_.l(this.currentStage,V3w)||this.data.dismissalEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.r.refitAfterRender=function(){var W=this;_.Uc(this,function(){_.q2(W.hostElement,"yt-refit")})};
Gc.prototype.dataChanged=Gc.prototype.dataChanged;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Gc.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Gc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Gc.prototype,"ytActionHandlerBehavior",void 0);
_.P([_.y(V1T),_.Y("design:type",Object)],Gc.prototype,"ytdHatsSurveyBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Gc.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Gc.prototype,"currentStage",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gc.prototype,"dataChanged",null);_.P([_.h({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Gc);
_.H(Gc,"ytd-multi-stage-survey-renderer",function(){if(nIT!==void 0)return nIT;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return nIT=W},{mode:1});var TFE;var DP=function(){return _.O.apply(this,arguments)||this};
_.Z(DP,_.O);DP.prototype.computeAlt=function(W){return _.Ub(W)};
DP.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.ee().resolve(_.tQ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.RT(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.gPg(!1)))};
DP.prototype.onTap=function(){this.vertical&&this.submitResponse()};
DP.prototype.onTap=DP.prototype.onTap;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],DP.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],DP.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],DP.prototype,"vertical",void 0);
_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DP.prototype,"onTap",null);_.P([_.h({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],DP);
_.H(DP,"ytd-single-option-survey-option-renderer",function(){if(TFE!==void 0)return TFE;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TFE=W},{mode:1});var Jx1;var Sn=function(){return _.O.apply(this,arguments)||this};
_.Z(Sn,_.O);_.r=Sn.prototype;_.r.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){var W,e;this.vertical=(((W=this.data)==null?void 0:(e=W.surveyOrientation)==null?void 0:e.type)||"HORIZONTAL")==="VERTICAL"};
_.r.computeAlt=function(W){return _.Ub(W)};
_.r.onDismissTap=function(){_.RT(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.ee().resolve(_.tQ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.gPg(!1))};
Sn.prototype.dataChanged=Sn.prototype.dataChanged;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Sn.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(V1T),_.Y("design:type",Object)],Sn.prototype,"ytdHatsSurveyBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],Sn.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Sn.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sn.prototype,"vertical",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sn.prototype,"dataChanged",null);_.P([_.h({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Sn);
_.H(Sn,"ytd-single-option-survey-renderer",function(){if(Jx1!==void 0)return Jx1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Jx1=W},{mode:1});var xvT;var By=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(By,_.O);By.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
By.prototype.onDismissTap=function(){_.RT(this.hostElement,"yt-close-popup-action")};
By.prototype.onNavigate=function(){_.RT(this.hostElement,"yt-close-popup-action")};
By.prototype.onNavigate=By.prototype.onNavigate;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],By.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],By.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],By.prototype,"darkerDarkTheme",void 0);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],By.prototype,"onNavigate",null);_.P([_.h({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],By);
_.H(By,"ytd-survey-follow-up-renderer",function(){if(xvT!==void 0)return xvT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xvT=W},{mode:1});var O2C;var MtM;var sL1;var oO=function(){var W=_.O.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.Z(oO,_.O);_.r=oO.prototype;_.r.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.r.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.r.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.r.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("minutes-changed",this.minutes))};
_.r.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("seconds-changed",this.seconds))};
_.r.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.r.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
oO.prototype.secondsChangedForBinding=oO.prototype.secondsChangedForBinding;oO.prototype.minutesChangedForBinding=oO.prototype.minutesChangedForBinding;oO.prototype.secondsChanged=oO.prototype.secondsChanged;_.P([_.J(),_.Y("design:type",String)],oO.prototype,"minutes",void 0);_.P([_.J(),_.Y("design:type",String)],oO.prototype,"seconds",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oO.prototype,"polymer2",void 0);
_.P([_.vG("#seconds"),_.Y("design:type",Object)],oO.prototype,"secondsEl",void 0);_.P([_.ul("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oO.prototype,"secondsChanged",null);_.P([_.ul("minutes"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oO.prototype,"minutesChangedForBinding",null);
_.P([_.ul("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oO.prototype,"secondsChangedForBinding",null);_.P([_.gz({is:"yt-timestamp-input",disableElementRegistration:!0})],oO);
_.H(oO,"yt-timestamp-input",function(){if(sL1===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;MtM===void 0&&(MtM=document.createElement("template"));var b=MtM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);sL1=W}W=sL1;return W},{mode:2});var lo=function(){return _.O.apply(this,arguments)||this};
_.Z(lo,_.O);_.r=lo.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18179_scroller.dialogElement=this.hostElement.parentNode};
_.r.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.bJ().getPlayerPromise().then(function(e){e=e.getCurrentTime();W.minutes=Math.floor(e/60).toString();W.seconds=(Math.floor(e)%60).toString()})};
_.r.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.ee().resolve(_.tQ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.r.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.r.onYtServiceRequestCompleted=function(W,e){e=e.actions;if(Array.isArray(e))for(var t=0,b=e.length;t<b;t++)_.l(e[t],_.jO)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(e[t]))};
_.r.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.r.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.r.handleInput=function(){var W=this.issueType,e=this.affiliation,t=this.minutes,b=this.seconds;t=!this.showTimestamp||!!t&&!!b;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!e&&t)};
_.r.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.r.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.r.computeShowTimestamp=function(W){return!!W};
_.r.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.r.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.r.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.r.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.r.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.r.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
lo.prototype.handleInput=lo.prototype.handleInput;lo.prototype.onYtServiceRequestError=lo.prototype.onYtServiceRequestError;lo.prototype.onYtServiceRequestCompleted=lo.prototype.onYtServiceRequestCompleted;lo.prototype.onYtServiceRequestSent=lo.prototype.onYtServiceRequestSent;lo.prototype.dataChanged=lo.prototype.dataChanged;_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],lo.prototype,"ytOpenPopupBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.P([_.vG("#scroller"),_.Y("design:type",Object)],lo.prototype,"JSC$18179_scroller",void 0);_.P([_.vG("#description"),_.Y("design:type",HTMLInputElement)],lo.prototype,"description",void 0);_.P([_.vG("#full-name"),_.Y("design:type",Object)],lo.prototype,"fullName",void 0);_.P([_.J(),_.Y("design:type",Object)],lo.prototype,"data",void 0);
_.P([_.J({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Y("design:type",Boolean)],lo.prototype,"showTimestamp",void 0);_.P([_.J({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Y("design:type",Object)],lo.prototype,"serviceEndpoint",void 0);_.P([_.J({computed:"computeSubmitButton(data)"}),_.Y("design:type",Object)],lo.prototype,"submitButton",void 0);_.P([_.J(),_.Y("design:type",String)],lo.prototype,"descriptionText",void 0);
_.P([_.J(),_.Y("design:type",Number)],lo.prototype,"issueType",void 0);_.P([_.J(),_.Y("design:type",Number)],lo.prototype,"affiliation",void 0);_.P([_.J(),_.Y("design:type",String)],lo.prototype,"fullNameText",void 0);_.P([_.J(),_.Y("design:type",String)],lo.prototype,"minutes",void 0);_.P([_.J(),_.Y("design:type",String)],lo.prototype,"seconds",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lo.prototype,"dataChanged",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],lo.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],lo.prototype,"onYtServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lo.prototype,"onYtServiceRequestError",null);_.P([_.ul("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lo.prototype,"handleInput",null);_.P([_.h({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],lo);
_.H(lo,"ytd-legal-report-details-form-renderer",function(){if(O2C!==void 0)return O2C;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return O2C=W},{mode:1});var h7l;var ZP=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.Z(ZP,_.O);ZP.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
ZP.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.ee().resolve(_.tQ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.RT(this.hostElement,"yt-close-popup-action"))}};
ZP.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.RT(this.hostElement,"yt-close-popup-action"))};
ZP.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
ZP.prototype.onPopupClosed=ZP.prototype.onPopupClosed;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],ZP.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);
_.P([_.vG("yt-form-renderer"),_.Y("design:type",Object)],ZP.prototype,"formRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],ZP.prototype,"data",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZP.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-form-popup-content",disableElementRegistration:!0})],ZP);
_.H(ZP,"ytd-form-popup-content",function(){if(h7l!==void 0)return h7l;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return h7l=W},{mode:1});var H2E;var $8=function(){return _.O.apply(this,arguments)||this};
_.Z($8,_.O);$8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$8.prototype.onPopupOpened=function(){_.q2(this.hostElement,"yt-invalidate-popup-tabbables")};
$8.prototype.onYtServiceRequestCompleted=function(W,e){e.data&&e.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.q2(this.hostElement,"yt-invalidate-popup-tabbables"))};
$8.prototype.onYtServiceRequestCompleted=$8.prototype.onYtServiceRequestCompleted;$8.prototype.onPopupOpened=$8.prototype.onPopupOpened;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],$8.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],$8.prototype,"data",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$8.prototype,"onPopupOpened",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],$8.prototype,"onYtServiceRequestCompleted",null);_.P([_.h({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],$8);
_.H($8,"ytd-form-popup-renderer",function(){if(H2E!==void 0)return H2E;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return H2E=W},{mode:1});var Kj9;var k8=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;return W};
_.Z(k8,_.O);_.r=k8.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");dzS(this.hostElement)};
_.r.onYtServiceRequestSent=function(){this.isLoading=!0};
_.r.onYtServiceRequestCompleted=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.r.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.IT(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.r.closePopupHandler=function(){this.fireOnCloseActions()};
_.r.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.rd(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.r.onYtNavigate=function(W){(W=_.Er(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
k8.prototype.onYtNavigate=k8.prototype.onYtNavigate;k8.prototype.onHeaderImageChanged=k8.prototype.onHeaderImageChanged;k8.prototype.closePopupHandler=k8.prototype.closePopupHandler;k8.prototype.onYtServiceRequestCompleted=k8.prototype.onYtServiceRequestCompleted;k8.prototype.onYtServiceRequestSent=k8.prototype.onYtServiceRequestSent;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],k8.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],k8.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],k8.prototype,"isLoading",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLDivElement)],k8.prototype,"header",void 0);_.P([_.vG("#confirm-button"),_.Y("design:type",_.lw)],k8.prototype,"confirmButton",void 0);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k8.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k8.prototype,"onYtServiceRequestCompleted",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],k8.prototype,"closePopupHandler",null);_.P([_.ul("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k8.prototype,"onHeaderImageChanged",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k8.prototype,"onYtNavigate",null);
_.P([_.h({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],k8);
_.H(k8,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Kj9!==void 0)return Kj9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Kj9=W},{mode:1});var PR1;var pZ=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;return W};
_.Z(pZ,_.O);_.r=pZ.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);dzS(this.hostElement)};
_.r.onYtServiceRequestCompleted=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.r.onYtServiceRequestError=function(W){_.mF(this.hostElement,W.detail.error.message)};
_.r.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.r.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.RT(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.r.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.rd(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.fc();var e=_.nc(),t=this.get("data.trackingParams");t&&e&&W&&_.Ke(W,e,_.$5(t))};
_.Ec.Object.defineProperties(pZ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
pZ.prototype.onDataChanged=pZ.prototype.onDataChanged;pZ.prototype.onDomChange=pZ.prototype.onDomChange;pZ.prototype.onYtServiceRequestError=pZ.prototype.onYtServiceRequestError;pZ.prototype.onYtServiceRequestCompleted=pZ.prototype.onYtServiceRequestCompleted;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],pZ.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],pZ.prototype,"isLoading",void 0);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pZ.prototype,"hasDescription",null);_.P([_.vG("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],pZ.prototype,"scrollable",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],pZ.prototype,"header",void 0);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pZ.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pZ.prototype,"onYtServiceRequestError",null);
_.P([_.wz("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pZ.prototype,"onDomChange",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pZ.prototype,"onDataChanged",null);_.P([_.h({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],pZ);
_.H(pZ,"ytd-gaming-account-link-setting-renderer",function(){if(PR1!==void 0)return PR1;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return PR1=W},{mode:1});var Vt9;var i2C;var y_=function(){var W=_.O.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=function(){return EhQ(W.data)};
return W};
_.Z(y_,_.O);_.r=y_.prototype;_.r.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var e=_.Qx(W.hostElement,"yt-get-opened-popups-action");!(e&&e.length===1?e[0]:[]).some(function(t){t=t.openPopupAction.popupType;return t==="SURVEY"||t==="MEALBAR"||t==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.IT(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.r.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.r.onDown=function(){this.interaction.triggerDown()};
_.r.onUp=function(){this.interaction.triggerUp()};
_.r.onTap=function(W){if(this.data.serviceEndpoint){var e;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.l(this.data.serviceEndpoint,_.Za))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):L11(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.NA(_.LB(W),this.hostElement,["A".toString()])&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.r.computeActive=function(W,e){if(!W)return!1;var t=W.navigationEndpoint;W=W.serviceEndpoint;if(!t&&!W||!e)return!1;if(t){W=(W=_.Da(e))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.l(t,_.Sf)&&_.l(e,_.Sf)&&!W){var b=_.l(t,_.Sf).browseId;e=_.l(e,_.Sf).browseId;return b!==void 0&&e!==void 0&&(b===e||b==="VLWL"&&e==="FEwatch_later"||b==="FEwatch_later"&&e==="VLWL")}var m;t=(m=_.l(t.commandMetadata,_.ez))==null?void 0:m.url;e=(b=_.l(e.commandMetadata,_.ez))==null?void 0:b.url;return!(!t||
!e||t!==e&&t!==_.I_(e))}return this.isActiveShortsTab(W,e)};
_.r.isActiveShortsTab=function(W,e){e=!!_.l(e,_.Za)||!!_.l(e,_.xi);return(!!_.l(W,_.Za)||!!_.l(W,_.xi))&&e};
_.r.computeIsPrimary=function(W){return!!W};
_.Ec.Object.defineProperties(y_.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
y_.prototype.onTap=y_.prototype.onTap;y_.prototype.onUp=y_.prototype.onUp;y_.prototype.onDown=y_.prototype.onDown;y_.prototype.triggerHintActions=y_.prototype.triggerHintActions;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],y_.prototype,"componentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],y_.prototype,"rendererBehavior",void 0);_.P([_.y(_.e$.YtTaskEmitterBehavior),_.Y("design:type",Object)],y_.prototype,"taskEmitterBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],y_.prototype,"activeEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],y_.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],y_.prototype,"guideOpened",void 0);_.P([_.J(),_.Y("design:type",String)],y_.prototype,"type",void 0);_.P([_.vG("yt-interaction"),_.Y("design:type",Object)],y_.prototype,"interaction",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],y_.prototype,"isHeader",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data","activeEndpoint"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],y_.prototype,"active",null);_.P([_.J({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],y_.prototype,"isPrimary",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.count","data.presentationStyle","data.badges.*"),_.Y("design:type",String),_.Y("design:paramtypes",[])],y_.prototype,"lineEndStyle",null);
_.P([_.T("lineEndStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],y_.prototype,"ariaLabel",null);_.P([_.ul("data.hintActions","guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y_.prototype,"triggerHintActions",null);_.P([_.wz("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y_.prototype,"onDown",null);
_.P([_.wz("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y_.prototype,"onUp",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],y_.prototype,"onTap",null);_.P([_.h({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],y_);
_.H(y_,"ytd-guide-entry-renderer",function(){if(i2C!==void 0)return i2C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return i2C=W},{mode:1});var jn=function(){var W=_.O.apply(this,arguments)||this;W.userToggled=!1;return W};
_.Z(jn,_.O);_.r=jn.prototype;_.r.getItemsPath=function(){return"data.expandableItems"};
_.r.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.r.onExpanderItemTapped=function(W){var e=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.S("kevlar_guide_expandable_items_killswitch")&&_.Uc(this,function(){_.EH(e.expandableItems)});
W.preventDefault()};
_.r.onCollapserItemTapped=function(W){var e=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.S("kevlar_guide_collapsible_items_killswitch")&&_.Uc(this,function(){_.L_(e.hostElement)})};
_.r.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,e=this.data,t=this.expandableItems.children,b=0,m=t.length;b<m;b++)t[b].activeEndpoint=W;e&&e.autoExpandCommand&&W&&!this.userToggled&&(t=this.data.autoExpandCommand,e=!(!_.l(t,_.Sf)||!_.l(W,_.Sf)||_.l(t,_.Sf).browseId!==_.l(W,_.Sf).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),t=this.get("commandMetadata.webCommandMetadata.url",t),e=e||!!(W&&t&&W.includes(t)),this._setExpanded(e),e&&this.ytLazyListBehavior.fillRemainingListItems())};
jn.prototype.observeActiveEndpoint=jn.prototype.observeActiveEndpoint;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],jn.prototype,"ytLazyListBehavior",void 0);_.P([_.vG("#expandable-items"),_.Y("design:type",HTMLElement)],jn.prototype,"expandableItems",void 0);
_.P([_.J(),_.Y("design:type",Object)],jn.prototype,"data",void 0);_.P([_.J({readOnly:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],jn.prototype,"expanded",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],jn.prototype,"initialCount",void 0);_.P([_.J(),_.Y("design:type",Object)],jn.prototype,"activeEndpoint",void 0);_.P([_.ul("data","activeEndpoint","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jn.prototype,"observeActiveEndpoint",null);
_.P([_.h({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],jn);
_.H(jn,"ytd-guide-collapsible-entry-renderer",function(){if(Vt9!==void 0)return Vt9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Vt9=W},{mode:_.Qe("kevlar_poly_si_batch_j079")?1:2});var Yy9;var z7T;var CZ=function(){var W=_.O.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.Z(CZ,_.O);CZ.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
CZ.prototype.observeRenderEntry=CZ.prototype.observeRenderEntry;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],CZ.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],CZ.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],CZ.prototype,"activeEndpoint",void 0);_.P([_.J({selector:_.oiv}),_.Y("design:type",Object)],CZ.prototype,"allVideosCount",void 0);
_.P([_.J(),_.Y("design:type",Object)],CZ.prototype,"renderGuideEntry",void 0);_.P([_.BG("allVideosCount","data.alwaysShow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CZ.prototype,"observeRenderEntry",null);_.P([_.h({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],CZ);
_.H(CZ,"ytd-guide-downloads-entry-renderer",function(){if(z7T===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);z7T=W}W=z7T;return W},{mode:1});var nZ=function(){var W=_.O.apply(this,arguments)||this;W.youtab=_.S("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.Z(nZ,_.O);_.r=nZ.prototype;_.r.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]]"}}}}}};
_.r.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,e=0,t=W.length;e<t;e++)W[e].activeEndpoint=this.activeEndpoint}};
_.r.handleAddToGuideSectionAction=function(W){var e=_.l(W,q4E);if(e&&this.data&&(W=e.items,e=e.handlerData,W&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1)){e=0;for(var t=W.length;e<t;e++)W[e].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[e])}};
_.r.handleRemoveFromGuideSectionAction=function(W){var e=_.l(W,R9C);e&&this.data&&(W=e.guideEntryId,e=e.handlerData,W&&e&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(e)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.r.removeFromExpandedSection=function(W,e){W=this.getEntryIndexMatchingId(W,e);W!==-1&&this.splice("data.sectionItems",W,1)};
_.r.removeFromCollapsedSection=function(W,e){var t=e.findIndex(function(b){return!!_.l(b,Zxw)});
t&&t!==-1&&e[t]&&_.l(e[t],Zxw)&&(e=_.l(e[t],Zxw).expandableItems)&&(W=this.getEntryIndexMatchingId(W,e),W!==-1&&this.splice("data.sectionItems."+t+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.r.getEntryIndexMatchingId=function(W,e){var t=this;return e.findIndex(function(b){return t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===W})};
nZ.prototype.activeEndpointChanged=nZ.prototype.activeEndpointChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],nZ.prototype,"actionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#section-items"),_.Y("design:type",HTMLDivElement)],nZ.prototype,"sectionItems",void 0);
_.P([_.vG("#header-entry"),_.Y("design:type",Object)],nZ.prototype,"headerEntry",void 0);_.P([_.J(),_.Y("design:type",Object)],nZ.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],nZ.prototype,"activeEndpoint",void 0);_.P([_.J(),_.Y("design:type",Object)],nZ.prototype,"youtab",void 0);_.P([_.ul("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nZ.prototype,"activeEndpointChanged",null);
_.P([_.h({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],nZ);
_.H(nZ,"ytd-guide-collapsible-section-entry-renderer",function(){if(Yy9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);Yy9=W}W=Yy9;return W},{mode:1});var Uvl;var LjT;var fZ=function(){var W=_.O.apply(this,arguments)||this;W.modernTypography=_.S("web_modern_typography");W.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 W};
_.Z(fZ,_.O);_.r=fZ.prototype;
_.r.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}}}}};
_.r.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.Qx(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.Qx(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.r.handleResetChannelUnreadCountCommand=function(W){var e;(W=(e=_.l(W,FWu))==null?void 0:e.channelId)&&this.data&&this.data.items&&(e=this.getPathToEntryMatchingId(W))&&(this.set(e+".guideEntryRenderer.count",0),this.set(e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.r.handleResetSubscriptionsUnreadDotCommand=function(W){var e,t=(e=_.l(W,XMS))==null?void 0:e.targetId,b;t&&(b=this.data)!=null&&b.items&&(W=this.data.items.findIndex(function(m){var q;return((q=m.guideEntryRenderer)==null?void 0:q.targetId)===t}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.r.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var e=this.getEntryIndexMatchingId(W,this.data.items);if(e>-1)return"data.items."+e;for(var t=0;t<this.data.items.length;t++)if(e=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[t]))if(e=this.getEntryIndexMatchingId(W,e),e>-1)return"data.items."+t+".guideCollapsibleEntryRenderer.expandableItems."+e}};
_.r.handleAddToGuideSectionAction=function(W){var e=this;if(_.l(W,q4E)){var t=_.l(W,q4E).items;W=_.l(W,q4E).handlerData;var b,m;t&&W&&((b=this.data)==null?void 0:(m=b.handlerDatas)==null?void 0:m.indexOf(W))>-1&&(t=t.filter(function(q){return(q=e.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q))&&!e.isGuideItemPresent(q)}),this.unshift.apply(this,["data.items"].concat(_.kP(t))))}};
_.r.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var e=this.data.items.find(function(t){return!!t.guideCollapsibleEntryRenderer});
if((e==null?0:e.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,e.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.r.getEntryIndexMatchingId=function(W,e){var t=this;return e.findIndex(function(b){return t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===W})};
_.r.handleRemoveFromGuideSectionAction=function(W){if(_.l(W,R9C)){var e=_.l(W,R9C).guideEntryId;W=_.l(W,R9C).handlerData;var t,b;e&&W&&((t=this.data)==null?void 0:(b=t.handlerDatas)==null?void 0:b.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(e,this.data.items),this.removeFromCollapsedSection(e,this.data.items))}};
_.r.removeFromExpandedSection=function(W,e){W=this.getEntryIndexMatchingId(W,e);W!==-1&&this.splice("data.items",W,1)};
_.r.removeFromCollapsedSection=function(W,e){var t=e.findIndex(function(b){return!!b.guideCollapsibleEntryRenderer});
t!==-1&&(e=e[t].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,e),W!==-1&&this.splice("data.items."+t+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.r.activeEndpointChanged=function(){for(var W=_.rz(this.hostElement).querySelector("#items").children,e=0,t=W.length;e<t;e++)W[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.r.guideOpenedChanged=function(){for(var W=_.rz(this.hostElement).querySelector("#items").children,e=0,t=W.length;e<t;e++)W[e].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
fZ.prototype.guideOpenedChanged=fZ.prototype.guideOpenedChanged;fZ.prototype.activeEndpointChanged=fZ.prototype.activeEndpointChanged;fZ.prototype.persistentGuideChanged=fZ.prototype.persistentGuideChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],fZ.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],fZ.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],fZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fZ.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],fZ.prototype,"modernTypography",void 0);_.P([_.J(),_.Y("design:type",String)],fZ.prototype,"type",void 0);_.P([_.J({value:20}),_.Y("design:type",Number)],fZ.prototype,"initialCount",void 0);_.P([_.J({value:10}),_.Y("design:type",Number)],fZ.prototype,"targetFramerate",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],fZ.prototype,"autoFill",void 0);_.P([_.J({value:50}),_.Y("design:type",Number)],fZ.prototype,"renderDelay",void 0);
_.P([_.ul("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fZ.prototype,"persistentGuideChanged",null);_.P([_.BG("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fZ.prototype,"activeEndpointChanged",null);_.P([_.BG("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fZ.prototype,"guideOpenedChanged",null);
_.P([_.h({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],fZ);
_.H(fZ,"ytd-guide-section-renderer",function(){if(LjT!==void 0)return LjT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return LjT=W},{mode:_.Qe("kevlar_poly_si_batch_j073")?1:2});var EIB;var ge=function(){return _.O.apply(this,arguments)||this};
_.Z(ge,_.O);_.Ec.Object.defineProperties(ge.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ge.prototype,"rendererBehaviors",void 0);_.P([_.J(),_.Y("design:type",Object)],ge.prototype,"data",void 0);_.P([_.J(),_.T("data.signInButton.buttonRenderer.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ge.prototype,"alignByText",null);_.P([_.h({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],ge);
_.H(ge,"ytd-guide-signin-promo-renderer",function(){if(EIB===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);EIB=W}W=EIB;return W},{mode:1});var Tc=function(){var W=_.O.apply(this,arguments)||this;W.showFooter=!1;return W};
_.Z(Tc,_.O);Tc.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}}}}};
Tc.prototype.attached=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1){e=_.ee().resolve(_.Wi(_.Op));if(!e)return t.jumpTo(0);e.setGuideData(W.hostElement);return _.a(t,0,3)}W.ytLazyListBehavior.initialCount=2;return t.return()})};
Tc.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Tc.prototype.dataChanged=Tc.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Tc.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.dW.YtLazyListBehavior),_.Y("design:type",Object)],Tc.prototype,"ytLazyListBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Tc.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Tc.prototype,"showFooter",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],Tc.prototype,"autoFill",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tc.prototype,"dataChanged",null);_.P([_.h({is:"ytd-guide-renderer",disableElementRegistration:!0})],Tc);
_.H(Tc,"ytd-guide-renderer",function(){if(Uvl!==void 0)return Uvl;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return Uvl=W},{mode:_.Qe("kevlar_poly_si_batch_j073")?1:2});var AxT;var Jg=function(){var W=_.O.apply(this,arguments)||this;W.systemIcons=_.S("kevlar_system_icons");W.frostedGlass=_.S("web_frosted_glass");W.getEndpointForm=function(){return EhQ(W.data)};
return W};
_.Z(Jg,_.O);_.r=Jg.prototype;_.r.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.r.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Ub(this.data.formattedTitle))};
_.r.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.r.onDown=function(){this.interaction.triggerDown()};
_.r.onUp=function(){this.interaction.triggerUp()};
_.r.onTap=function(W){if(this.data.serviceEndpoint){var e;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((e=_.l(this.data.serviceEndpoint,_.Za))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):L11(this.data.serviceEndpoint,this);W.preventDefault()}else{var t;((t=this.data)==null?0:t.navigationEndpoint)&&!_.NA(_.LB(W),this.hostElement,["A".toString()])&&_.q2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.r.computeActive=function(W,e){if(!W)return!1;var t=W.navigationEndpoint;W=W.serviceEndpoint;if(!t&&!W||!e)return!1;if(t){W=_.l(t,_.Sf);var b=_.l(e,_.Sf);if(W&&b)return W.browseId===b.browseId&&W.params===b.params;var m;t=(m=_.l(t.commandMetadata,_.ez))==null?void 0:m.url;var q;e=(q=_.l(e.commandMetadata,_.ez))==null?void 0:q.url;return!(!t||!e||t!==e&&t!==_.I_(e))}return this.isActiveShortsTab(W,e)};
_.r.isActiveShortsTab=function(W,e){e=!!_.l(e,_.Za)||!!_.l(e,_.xi);return(!!_.l(W,_.Za)||!!_.l(W,_.xi))&&e};
_.r.computeTitle=function(W,e){return e?"":_.Ub(W)};
_.Ec.Object.defineProperties(Jg.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Jg.prototype.onTap=Jg.prototype.onTap;Jg.prototype.onUp=Jg.prototype.onUp;Jg.prototype.onDown=Jg.prototype.onDown;Jg.prototype.onActiveStateChange=Jg.prototype.onActiveStateChange;Jg.prototype.dataChanged=Jg.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Jg.prototype,"ytComponentBehavior",void 0);
_.P([_.y(_.JX),_.Y("design:type",Object)],Jg.prototype,"ironButtonState",void 0);_.P([_.J(),_.Y("design:type",Object)],Jg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Jg.prototype,"activeEndpoint",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jg.prototype,"noLabels",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Y("design:type",Boolean)],Jg.prototype,"isActive",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Jg.prototype,"systemIcons",void 0);_.P([_.vG("yt-interaction"),_.Y("design:type",Object)],Jg.prototype,"interaction",void 0);_.P([_.T("isActive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Jg.prototype,"ariaSelected",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Jg.prototype,"frostedGlass",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jg.prototype,"dataChanged",null);_.P([_.ul("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jg.prototype,"onActiveStateChange",null);_.P([_.wz("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jg.prototype,"onDown",null);
_.P([_.wz("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jg.prototype,"onUp",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Jg.prototype,"onTap",null);_.P([_.h({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Jg);
_.H(Jg,"ytd-mini-guide-entry-renderer",function(){if(AxT!==void 0)return AxT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return AxT=W},{mode:_.Qe("kevlar_poly_si_batch_j063")?1:2});var NFT;var x8=function(){var W=_.O.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.S("kevlar_mini_guide_no_labels");W.frostedGlass=_.S("web_frosted_glass");return W};
_.Z(x8,_.O);_.r=x8.prototype;_.r.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.r.visibleChanged=function(){if(this.visible&&!this.data){var W=_.ee().resolve(_.Wi(_.Op));W&&W.setGuideData(this.hostElement)}};
_.r.dataChanged=function(){var W=[],e;if((e=this.data)!=null&&e.items){e=_.R(this.data.items);for(var t=e.next();!t.done;t=e.next()){t=t.value;var b=void 0;if((b=t.guideSectionRenderer)==null?0:b.items)for(b=void 0,t=_.R((b=t.guideSectionRenderer)==null?void 0:b.items),b=t.next();!b.done;b=t.next())if(b=b.value,b.guideEntryRenderer)b=b.guideEntryRenderer,b.isPrimary&&W.push({guideEntryRenderer:b});else if(b.guideCollapsibleSectionEntryRenderer){var m=void 0;((m=_.l(b.guideCollapsibleSectionEntryRenderer.headerEntry,
ii))==null?0:m.isPrimary)&&W.push({guideEntryRenderer:_.l(b.guideCollapsibleSectionEntryRenderer.headerEntry,ii)});if(b=b.guideCollapsibleSectionEntryRenderer.sectionItems)for(b=_.R(b),m=b.next();!m.done;m=b.next()){var q=m.value;m=_.l(q,$UQ);var Q=void 0;((Q=_.l(q,ii))==null?0:Q.isPrimary)?W.push({guideEntryRenderer:_.l(q,ii)}):m&&(q=void 0,_.l((q=m)==null?void 0:q.entryRenderer,ii)&&(m.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.l(m.entryRenderer,ii)}))}}}}this.miniGuideItems=
W};
_.r.activeEndpointChanged=function(){for(var W=this.items.children,e=0;e<W.length;e++)W[e].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
x8.prototype.activeEndpointChanged=x8.prototype.activeEndpointChanged;x8.prototype.dataChanged=x8.prototype.dataChanged;x8.prototype.visibleChanged=x8.prototype.visibleChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],x8.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],x8.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],x8.prototype,"ytComponentBehavior",void 0);_.P([_.vG("#items"),_.Y("design:type",Object)],x8.prototype,"items",void 0);_.P([_.J(),_.Y("design:type",Object)],x8.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],x8.prototype,"visible",void 0);
_.P([_.J(),_.Y("design:type",Object)],x8.prototype,"miniGuideItems",void 0);_.P([_.J({selector:_.oiv}),_.Y("design:type",Object)],x8.prototype,"allVideosCount",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],x8.prototype,"noLabels",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],x8.prototype,"frostedGlass",void 0);_.P([_.BG("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"visibleChanged",null);
_.P([_.BG("data","allVideosCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"dataChanged",null);_.P([_.BG("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"activeEndpointChanged",null);_.P([_.h({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],x8);
_.H(x8,"ytd-mini-guide-renderer",function(){if(NFT===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);NFT=W}W=NFT;return W},{mode:1});var dv9;var W4T=/^[\x00-\x7F]+$/,Ok=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(Ok,_.O);_.Ec.Object.defineProperties(Ok.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,e=_.Ub((W=this.data)==null?void 0:W.handle);if(e)return _.zq("@"+e)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.Ub(this.displayHandle),e,t=_.Ub((e=this.data)==null?void 0:e.handleUrl);if(W&&t)return _.zq(t+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.Ub(this.displayHandle);if(W&&!W4T.test(W)){var e;return(e=this.data)==null?void 0:e.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.Ub(this.displayHandleUrl),e,t=_.Ub((e=this.data)==null?void 0:e.urlInfoText);if(W&&t)return _.zq(t+" "+W)}}});
_.P([_.J(),_.Y("design:type",Object)],Ok.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ok.prototype,"displayHandle",null);_.P([_.T("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ok.prototype,"displayHandleUrl",null);_.P([_.T("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ok.prototype,"warningText",null);
_.P([_.T("displayHandleUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ok.prototype,"urlInfoTextWithUrl",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Ok.prototype,"darkerDarkTheme",void 0);_.P([_.h({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ok);
_.H(Ok,"ytd-handles-claiming-confirm-dialog-content",function(){if(dv9!==void 0)return dv9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dv9=W},{mode:1});var eUT;var Mb=function(){var W=_.O.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.Z(Mb,_.O);Mb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mb.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mb.prototype,"okButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],Mb.prototype,"data",void 0);_.P([_.h({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Mb);
_.H(Mb,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(eUT!==void 0)return eUT;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return eUT=W},{mode:1});var tUC;var bzC=/^[\x00-\x7F]+$/,sk=function(){var W=_.O.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(sk,_.O);sk.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.Qx(this.hostElement,"yt-refit-popups-action")}};
_.Ec.Object.defineProperties(sk.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.zq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.zq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!bzC.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],sk.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sk.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],sk.prototype,"selectedHandle",void 0);_.P([_.J(),_.Y("design:type",Object)],sk.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Function)],sk.prototype,"onSelectedHandleChanged",void 0);_.P([_.vG("#channel-handle-input"),_.Y("design:type",Object)],sk.prototype,"handleInput",void 0);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sk.prototype,"handleUrlPrefix",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sk.prototype,"displayHandle",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sk.prototype,"displayHandleUrl",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sk.prototype,"warningText",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],sk.prototype,"darkerDarkTheme",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.P([_.h({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],sk);
_.H(sk,"ytd-handles-claiming-edit-dialog-content",function(){if(tUC!==void 0)return tUC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return tUC=W},{mode:1});var mX1;var hg=function(){var W=_.O.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(e){W.selectedHandle=e};
return W};
_.Z(hg,_.O);_.r=hg.prototype;_.r.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.r.onDataChanged=function(){var W,e;this.selectedHandle=(e=_.l((W=this.data)==null?void 0:W.inputField,e9C))==null?void 0:e.handle};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onCancel=function(){this.selectedHandle="";_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(t,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.mF(W.hostElement,_.Ub(b.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var m;if((m=W.data)==null?0:m.onChannelUpdateSuccess){t=W.data.onChannelUpdateSuccess;var q,Q;if(b=(q=_.l(t,_.jO))==null?void 0:(Q=q.popup)==null?void 0:Q.handlesClaimingConfirmDialogRenderer)b.handle=_.zq(W.selectedHandle);W.ytComponentBehavior.resolveCommand(t);_.RT(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var t;W.content&&((t=W.content)==null?0:t.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.mF(W.hostElement,_.Gv("TRY_AGAIN_LATER"))}}}))}};
_.r.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
hg.prototype.onDataChanged=hg.prototype.onDataChanged;hg.prototype.onSelectedHandleChanged=hg.prototype.onSelectedHandleChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],hg.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"actionButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"cancelButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",String)],hg.prototype,"selectedHandle",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"selectButtonDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"hasSelectedHandleEventListener",void 0);_.P([_.J(),_.Y("design:type",Object)],hg.prototype,"handleInput",void 0);
_.P([_.ul("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hg.prototype,"onSelectedHandleChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hg.prototype,"onDataChanged",null);_.P([_.vG("ytd-handles-claiming-edit-dialog-content"),_.Y("design:type",Object)],hg.prototype,"content",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.h({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],hg);
_.H(hg,"ytd-handles-claiming-edit-dialog-renderer",function(){if(mX1!==void 0)return mX1;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return mX1=W},{mode:1});var raT;var Hy=function(){return _.O.apply(this,arguments)||this};
_.Z(Hy,_.O);_.Ec.Object.defineProperties(Hy.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var e;return _.zq("@"+_.Ub((e=this.data)==null?void 0:e.handle))}}}});
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hy.prototype,"formattedHandle",null);_.P([_.J(),_.Y("design:type",Object)],Hy.prototype,"data",void 0);_.P([_.h({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Hy);
_.H(Hy,"ytd-handles-claiming-radio-option-renderer",function(){if(raT!==void 0)return raT;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return raT=W},{mode:1});var qv$;var RUS=/^[\x00-\x7F]+$/,KZ=function(){var W=_.O.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.Z(KZ,_.O);KZ.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
KZ.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(W)}};
_.Ec.Object.defineProperties(KZ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.zq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.zq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!RUS.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.P([_.J(),_.Y("design:type",Object)],KZ.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],KZ.prototype,"initialRadioIndex",void 0);_.P([_.J(),_.Y("design:type",Number)],KZ.prototype,"selectedRadioIndex",void 0);_.P([_.J(),_.Y("design:type",String)],KZ.prototype,"selectedHandle",void 0);_.P([_.J(),_.Y("design:type",Object)],KZ.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Function)],KZ.prototype,"onSelectedHandleChanged",void 0);
_.P([_.J(),_.Y("design:type",Function)],KZ.prototype,"onSelectedRadioIndexChanged",void 0);_.P([_.vG("#channel-handle-input"),_.Y("design:type",Object)],KZ.prototype,"handleInput",void 0);_.P([_.vG("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],KZ.prototype,"feedbackSurveyRenderer",void 0);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],KZ.prototype,"radioButtonLength",null);
_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KZ.prototype,"handleUrlPrefix",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KZ.prototype,"displayHandle",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KZ.prototype,"displayHandleUrl",null);_.P([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],KZ.prototype,"warningText",null);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],KZ.prototype,"darkerDarkTheme",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.P([_.h({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],KZ);
_.H(KZ,"ytd-handles-claiming-select-dialog-content",function(){if(qv$!==void 0)return qv$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return qv$=W},{mode:1});var QVC;var Py=function(){var W=_.O.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(e){W.selectedRadioIndex=Number(e.detail.value)};
W.selectedHandleChanged=function(e){W.selectedHandle=e.detail.value};
W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(Py,_.O);_.r=Py.prototype;_.r.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.r.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.r.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Qx(this.hostElement,"yt-refit-popups-action")};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var e;((e=this.data)==null?void 0:e.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(t,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.mF(W.hostElement,_.Ub(b.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var m;if((m=W.data)==null?0:m.onChannelUpdateSuccess){t=W.data.onChannelUpdateSuccess;b=_.l(t,_.jO);var q;if(b==null?0:(q=b.popup)==null?0:q.handlesClaimingConfirmDialogRenderer)b.popup.handlesClaimingConfirmDialogRenderer.handle=_.zq(W.selectedHandle);W.ytComponentBehavior.resolveCommand(t);_.RT(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var t;W.content&&((t=W.content)==null?0:t.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.mF(W.hostElement,_.Gv("TRY_AGAIN_LATER"))}}}))}};
_.r.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,e;this.selectedHandle=(W=this.content)==null?void 0:(e=W.handleInput)==null?void 0:e.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.r.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.r.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.l(this.data.radioButton[W],G0w)};
_.Ec.Object.defineProperties(Py.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
Py.prototype.onSelectedHandleChanged=Py.prototype.onSelectedHandleChanged;Py.prototype.onSelectedHandleIndexChanged=Py.prototype.onSelectedHandleIndexChanged;Py.prototype.onDataChanged=Py.prototype.onDataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Py.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"actionButtonOverride",void 0);_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"cancelButtonOverride",void 0);
_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"initialRadioIndex",void 0);_.P([_.J(),_.Y("design:type",Number)],Py.prototype,"selectedRadioIndex",void 0);_.P([_.J(),_.Y("design:type",String)],Py.prototype,"selectedHandle",void 0);_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"selectButtonDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],Py.prototype,"isLoading",void 0);
_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Py.prototype,"radioButtonLength",null);_.P([_.vG("ytd-handles-claiming-select-dialog-content"),_.Y("design:type",Object)],Py.prototype,"content",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Py.prototype,"onDataChanged",null);
_.P([_.ul("selectedRadioIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Py.prototype,"onSelectedHandleIndexChanged",null);_.P([_.ul("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Py.prototype,"onSelectedHandleChanged",null);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Py.prototype,"darkerDarkTheme",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.P([_.h({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Py);
_.H(Py,"ytd-handles-claiming-select-dialog-renderer",function(){if(QVC!==void 0)return QVC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return QVC=W},{mode:1});var F41;var XAQ;var V_=function(){return _.O.apply(this,arguments)||this};
_.Z(V_,_.O);V_.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],V_.prototype,"data",void 0);_.P([_.h({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],V_);
_.H(V_,"ytd-hotkey-dialog-section-option-renderer",function(){if(XAQ!==void 0)return XAQ;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return XAQ=W},{mode:1});var I7l;var io=function(){return _.O.apply(this,arguments)||this};
_.Z(io,_.O);io.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],io.prototype,"data",void 0);_.P([_.h({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],io);
_.H(io,"ytd-hotkey-dialog-section-renderer",function(){if(I7l!==void 0)return I7l;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return I7l=W},{mode:1});var Y8=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(Y8,_.O);Y8.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Y8.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y8.prototype,"darkerDarkTheme",void 0);_.P([_.h({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Y8);
_.H(Y8,"ytd-hotkey-dialog-content",function(){if(F41!==void 0)return F41;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return F41=W},{mode:1});var a7C;var zc=function(){return _.O.apply(this,arguments)||this};
_.Z(zc,_.O);zc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
zc.prototype.onCloseTap=function(){_.RT(this.hostElement,"yt-close-popup-action")};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],zc.prototype,"data",void 0);_.P([_.h({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],zc);
_.H(zc,"ytd-hotkey-dialog-renderer",function(){if(a7C!==void 0)return a7C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return a7C=W},{mode:1});var wA9;var Uk=function(){return _.O.apply(this,arguments)||this};
_.Z(Uk,_.O);Uk.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var e=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var t;e=(t=this.data)==null?void 0:t.toggledServiceEndpoint}var b;(e=(b=_.l(e,_.Xqv))==null?void 0:b.onFailureAction)&&this.ytComponentBehavior.resolveCommand(e);this.updateBlockState(!this.blocked)};
Uk.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
Uk.prototype.updateBlockState=function(W){if(W!==this.blocked){var e=this.blockedEntityKey;e&&this.ytdReduxBehavior.dispatch(_.SX("blockStateEntity",e,{key:e,blocked:W}));this.set("data.isToggled",W)}};
_.Ec.Object.defineProperties(Uk.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)}}});
Uk.prototype.onYtToggleButton=Uk.prototype.onYtToggleButton;Uk.prototype.onYtServiceRequestError=Uk.prototype.onYtServiceRequestError;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Uk.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Uk.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Uk.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Uk.prototype,"blockedEntityKey",void 0);
_.P([_.J({selectorArgs:["blockedEntityKey"],selector:function(W,e){return _.I1(W.entities,"blockStateEntity",e)}}),
_.Y("design:type",Object)],Uk.prototype,"blockStateEntity",void 0);_.P([_.T("data","blockStateEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uk.prototype,"blocked",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Uk.prototype,"onYtServiceRequestError",null);
_.P([_.wz("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Uk.prototype,"onYtToggleButton",null);_.P([_.h({is:"ytd-block-button",disableElementRegistration:!0})],Uk);
_.H(Uk,"ytd-block-button",function(){if(wA9!==void 0)return wA9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return wA9=W},
{mode:1});var uVE;var caC;var LZ=function(){return _.O.apply(this,arguments)||this};
_.Z(LZ,_.O);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],LZ.prototype,"data",void 0);_.P([_.h({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],LZ);
_.H(LZ,"ytd-kids-blocklist-picker-item-renderer",function(){if(caC!==void 0)return caC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return caC=W},{mode:1});var Ek=function(){return _.O.apply(this,arguments)||this};
_.Z(Ek,_.O);Ek.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ek.prototype,"data",void 0);_.P([_.h({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Ek);
_.H(Ek,"ytd-kids-blocklist-picker-content",function(){if(uVE!==void 0)return uVE;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return uVE=
W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var vow;var Ag=function(){var W=_.O.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.Z(Ag,_.O);_.r=Ag.prototype;_.r.attached=function(){this.hostElement.setAttribute("dialog","")};
_.r.onDoneButtonTap=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.r.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.r.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.r.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.r.onPopupClosed=function(W){var e,t;if(((e=W.detail)==null?void 0:(t=e.popup)==null?void 0:t.is)==="tp-yt-paper-dialog"){var b;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((b=this.data)==null?0:b.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Nf(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Ag.prototype.onPopupClosed=Ag.prototype.onPopupClosed;Ag.prototype.onYtServiceRequestError=Ag.prototype.onYtServiceRequestError;Ag.prototype.onYtServiceRequestCompleted=Ag.prototype.onYtServiceRequestCompleted;Ag.prototype.onYtServiceRequestSent=Ag.prototype.onYtServiceRequestSent;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ag.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Ag.prototype,"data",void 0);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ag.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ag.prototype,"onYtServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ag.prototype,"onYtServiceRequestError",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ag.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Ag);
_.H(Ag,"ytd-kids-blocklist-picker-renderer",function(){if(vow!==void 0)return vow;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return vow=W},{mode:1});var GPQ;var DXl;var Nb=function(){return _.O.apply(this,arguments)||this};
_.Z(Nb,_.O);Nb.prototype.setTip=function(W){var e=this;this.data&&(this.tip=quw(mQU.getInstance(),W,this.data),_.Uc(this,function(){_.q2(e.hostElement,"yt-refit")}))};
Nb.prototype.clearTip=function(){this.tip=void 0};
Nb.prototype.computeHidden=function(W){return!W};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Nb.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Y("design:type",Boolean)],Nb.prototype,"hidden",void 0);_.P([_.J(),_.Y("design:type",Object)],Nb.prototype,"tip",void 0);_.P([_.h({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Nb);
_.H(Nb,"ytd-menu-popup-tip-renderer",function(){if(DXl!==void 0)return DXl;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);
return DXl=W},{mode:1});var Svu;var de=function(){var W=_.O.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.S("kevlar_system_icons");W.useListItemStyles=_.S("web_list_item_style_for_menu_items");return W};
_.Z(de,_.O);_.r=de.prototype;_.r.onFocus=function(){var W;(W=_.rz(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.r.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.l(W,_.wy))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}});var e;((e=_.l(W,_.c6))==null?void 0:e.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.r.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.r.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.r.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,e=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.SX("toggleMenuServiceItemEntity",W,{key:W,isToggled:e}))};
_.r.computeIcon=function(W,e,t){return(W=W?t:e)&&W.iconType?_.ao(W.iconType):""};
_.r.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.r.isIconActive=function(W){return!_.S("toggle_menu_active_icon_killswitch")&&W};
_.Ec.Object.defineProperties(de.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?0:W.isToggled)?(e=this.data)==null?void 0:e.toggledText:(t=this.data)==null?void 0:t.defaultText}}});
de.prototype.toggledStateEntityChanged=de.prototype.toggledStateEntityChanged;de.prototype.onYtServiceRequestCompleted=de.prototype.onYtServiceRequestCompleted;de.prototype.onTap=de.prototype.onTap;de.prototype.onFocus=de.prototype.onFocus;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],de.prototype,"componentBehavior",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],de.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],de.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],de.prototype,"useIcons",void 0);_.P([_.J({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],de.prototype,"icon",void 0);
_.P([_.J({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,e){return _.I1(W.entities,"toggleMenuServiceItemEntity",e)}}),
_.Y("design:type",Object)],de.prototype,"toggleMenuServiceItemEntity",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],de.prototype,"systemIcons",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],de.prototype,"useListItemStyles",void 0);_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],de.prototype,"onFocus",null);
_.P([_.T("data.isToggled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],de.prototype,"toggleButtonText",null);_.P([_.wz("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],de.prototype,"onTap",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],de.prototype,"onYtServiceRequestCompleted",null);
_.P([_.ul("toggleMenuServiceItemEntity.isToggled","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],de.prototype,"toggledStateEntityChanged",null);_.P([_.h({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],de);
_.H(de,"ytd-toggle-menu-service-item-renderer",function(){if(Svu!==void 0)return Svu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Svu=W},{mode:1});var BrC;var Wc=function(){return _.O.apply(this,arguments)||this};
_.Z(Wc,_.O);Wc.prototype.onFocus=function(){var W;(W=_.rz(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.Ec.Object.defineProperties(Wc.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.lF(this.data.iconUrl)}}});
Wc.prototype.onFocus=Wc.prototype.onFocus;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Wc.prototype,"rendererBehavior",void 0);_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],Wc.prototype,"ytEndpointBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Wc.prototype,"data",void 0);_.P([_.wz("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wc.prototype,"onFocus",null);
_.P([_.T("data.iconUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wc.prototype,"imageSource",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Wc);
_.H(Wc,"ytd-menu-custom-icon-item-renderer",function(){if(BrC!==void 0)return BrC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return BrC=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});_.mM(_.p$,"yt-list-item-view-model",{props:{data:_.Eu,isMenuItem:_.Eu,isCompact:_.Eu,onTap:_.bt,trailingAccessory:_.bt,hideSelectionTextChevron:_.Eu,disabled:_.Eu,inPopup:_.Eu,disableHorizontalPadding:_.Eu,isOverlay:_.Eu,isToggled:_.Eu}});var ei=function(){var W=_.O.apply(this,arguments)||this;W.disableBackdropFilter=_.S("web_disable_backdrop_filter");return W};
_.Z(ei,_.O);_.r=ei.prototype;
_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.r.computeAriaLabel=function(W){return W};
_.r.onPopupOpened=function(){this.items.selected=0;for(var W=_.R(_.rz(this.items).children),e=W.next();!e.done;e=W.next())e.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.fc())&&_.ic(W,[this.veData])};
_.r.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.r.onIronActivate=function(W){this.shouldPersist(W)||_.RT(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.fc())&&_.zv(W,this.veData)};
_.r.shouldPersist=function(W){var e,t;if(((e=W.detail)==null?void 0:e.selected)===void 0||(t=this.data)==null||!t.items)return!1;var b,m;return!((m=(b=this.data.items[W.detail.selected])==null?void 0:b.toggleMenuServiceItemRenderer)==null||!m.persistentOnMenuPopup)};
_.r.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
ei.prototype.onPopupClosed=ei.prototype.onPopupClosed;ei.prototype.onPopupOpened=ei.prototype.onPopupOpened;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],ei.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],ei.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ei.prototype,"veData",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Y("design:type",String)],ei.prototype,"ariaLabel",void 0);_.P([_.J({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ei.prototype,"useIcons",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],ei.prototype,"disableBackdropFilter",void 0);_.P([_.vG("#items"),_.Y("design:type",Object)],ei.prototype,"items",void 0);_.P([_.vG("ytd-menu-popup-tip-renderer"),_.Y("design:type",Object)],ei.prototype,"popupTip",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ei.prototype,"onPopupOpened",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ei.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],ei);
_.H(ei,"ytd-menu-popup-renderer",function(){if(GPQ!==void 0)return GPQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return GPQ=W},{mode:1});var oog;var l7E=_.NN(function(W){W=_.Ez(W,{icon:void 0});var e=W.data;W=W.icon;var t=function(){return e().iconBadgeText},b={},m=_.ve("yt-spec-icon-badge-shape",function(){a:switch(e().iconBadgeType){case "notification":var q="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":q="yt-spec-icon-badge-shape--type-cart";break a;default:q=""}return q},function(){a:switch(e().iconBadgeStyle){case "overlay":var q="yt-spec-icon-badge-shape--style-overlay";
break a;default:q=""}return q},(b["yt-spec-icon-badge-shape--text-size-small"]=function(){var q=t();
return!!((q==null?0:q.length)&&q.length>2)},b));
return _.w("yt-icon-badge-shape",null,_.w(_.G,{cond:W,then:function(q){return _.w("div",{class:m},_.w("div",{class:"yt-spec-icon-badge-shape__icon"},_.w(_.kD,{icon:q})),_.w(_.G,{cond:t,then:function(Q){return _.w("div",{class:"yt-spec-icon-badge-shape__badge"},Q)}}))}}))},"sg");
l7E.idomCompat=!0;_.mM(l7E,"yt-icon-badge-shape",{props:{data:_.Eu,icon:_.Eu}});var tV=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.Z(tV,_.O);_.r=tV.prototype;_.r.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(e){W.onServiceWorkerMessage(e)})};
_.r.onDataChanged=function(){this.isAttached&&!this.JSC$18310_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18310_lastData=this.data};
_.r.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.r.computeIcon=function(){var W,e;return(W=this.data)==null?void 0:(e=W.icon)==null?void 0:e.iconType};
_.r.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.r.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.l(this.data.updateUnseenCountEndpoint,_.c6)&&_.l(this.data.updateUnseenCountEndpoint,_.c6).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.r.handleUpdateNotificationsUnseenCountAction=function(W){var e=this;W=_.l(W,QUu);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.Tm.addLowPriorityJob(function(){e.data.updateUnseenCountEndpoint&&e.ytComponentBehavior.resolveCommand(e.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.r.onClick=function(){_.q2(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.Qx(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),e=this.data.menuRequest;W&&W.length===1&&W[0]?_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):e&&this.ytComponentBehavior.resolveCommand(e)};
_.r.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.r.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.r.sendUnseenCountRequest=function(W){var e=this;_.kM(_.Tm,function(){e.ytComponentBehavior.resolveCommand(W)})};
_.r.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.Ec.Object.defineProperties(tV.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
tV.prototype.handleUpdateNotificationsUnseenCountAction=tV.prototype.handleUpdateNotificationsUnseenCountAction;tV.prototype.onDataChanged=tV.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],tV.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.UP),_.Y("design:type",Object)],tV.prototype,"ytdOpenPopupBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],tV.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],tV.prototype,"unseenCount",void 0);_.P([_.J(),_.Y("design:type",Object)],tV.prototype,"isOverlay",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],tV.prototype,"showTooltips",void 0);_.P([_.vG("yt-icon-button"),_.Y("design:type",Object)],tV.prototype,"iconButton",void 0);
_.P([_.T("unseenCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tV.prototype,"showNotificationCount",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tV.prototype,"onDataChanged",null);_.P([_.wz("yt-update-notifications-unseen-count-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],tV.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.P([_.h({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],tV);
_.H(tV,"ytd-notification-topbar-button-renderer",function(){if(oog!==void 0)return oog;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return oog=W},{mode:_.Qe("kevlar_poly_si_batch_j025")?1:2});var Zz9;var b3=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.Z(b3,_.O);b3.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}}}}}};
b3.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
b3.prototype.onDarkModeToggled=function(W){this.dark=W};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],b3.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],b3.prototype,"data",void 0);_.P([_.J({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],b3.prototype,"dark",void 0);
_.P([_.h({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],b3);
_.H(b3,"yt-pdg-buy-flow-header-renderer",function(){if(Zz9!==void 0)return Zz9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Zz9=W},{mode:1});var $XM;var kPE;var GG=function(){var W=_.O.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(GG,_.O);_.r=GG.prototype;_.r.created=function(){_.Kx.requestAvailability()};
_.r.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.r.dataChanged=function(){var W=_.rz(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.XB(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.h8(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Ot("HTML_DIR")==="rtl"&&_.rz(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.r.onSliderImmediateChange=function(){var W=_.rz(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.r.onSliderChange=function(){var W=_.rz(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.r.updateSliderAria=function(){var W=_.rz(this.hostElement).querySelector("#color-slider"),e=_.rz(this.hostElement).querySelector("#color-slider");e=_.Ub(this.data.notches[e.immediateValue].tierValue);_.gG()&&_.q2(this.hostElement,"iron-announce",{text:e});W.setAttribute("aria-valuetext",e)};
_.r.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var e,t,b=this==null?void 0:(e=this.data)==null?void 0:(t=e.superThanksSelectedTierEntity)==null?void 0:t.key;b&&b.length>0&&this.ytdReduxBehavior.dispatch(_.SX("superThanksSelectedTierEntity",b,{key:b,index:W}))}};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var e={"--ytd-pdg-color-slider-knob-color":_.h8(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&e!==null&&(e=Object.assign({},e,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));e!==null&&_.XB(this.hostElement,e)};
GG.prototype.onSliderChange=GG.prototype.onSliderChange;GG.prototype.onSliderImmediateChange=GG.prototype.onSliderImmediateChange;GG.prototype.dataChanged=GG.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],GG.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],GG.prototype,"immediateValue",void 0);_.P([_.J(),_.Y("design:type",Number)],GG.prototype,"maxMarkers",void 0);
_.P([_.J({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Rbg}),_.Y("design:type",Object)],GG.prototype,"superThanksSelectedTierEntity",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],GG.prototype,"isDarkTheme",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],GG.prototype,"ytdReduxBehavior",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GG.prototype,"dataChanged",null);
_.P([_.wz("immediate-value-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GG.prototype,"onSliderImmediateChange",null);_.P([_.wz("change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GG.prototype,"onSliderChange",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],GG);
_.H(GG,"ytd-pdg-color-slider-renderer",function(){if(kPE!==void 0)return kPE;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return kPE=W},{mode:1});var pAC;var yaw;var Df=null;
_.yQ({is:"ytd-comment-input",_template:function(){if(yaw!==void 0)return yaw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return yaw=W},
behaviors:[_.tUD.YtHostElementBehavior,_.ZJ,_.P1.YtComponentBehavior,_.rq.YtRendererstamperBehavior,_.v_D.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 _.MM}},
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",_.aH(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;_.wJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.aH(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var e=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(e,W);this.maybeUpdateTextDirection_();_.q2(this.hostElement,"input")},
getInputRange_:function(){var W=_.$L();if(W){W=W.getBrowserRangeObject();for(var e=W.commonAncestorContainer;e;){if(e===this.getEditableTextArea_())return W;e=e.parentNode}}W=this.getEditableTextArea_();W=_.MG(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,e,t){(e=this.emojiManager.createDocumentFragment(e,!0,!1,t===void 0?!0:t))&&e.childNodes.length!==0&&(W.collapsed||W.deleteContents(),t=e.lastChild,W.insertNode(e),_.TyS(t).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.$L();if(W){var e=W.JSC$9301_getStartNode(),t=W.JSC$9301_getEndNode();if(Ayu(e)&&Ayu(t)){var b=W.JSC$9301_getStartOffset(),m;if(_.vb&&e.nodeType===Node.ELEMENT_NODE&&(m=_.iQv(e)))_.MG(m,0).select();else{m=A4(e)?e:_.JD(e,A4);var q=A4(t)?t:_.JD(t,A4);if(m||q)if(W.isCollapsed()){if(e.nodeType===Node.TEXT_NODE){W=!0;b===e.length&&(W=!1);if(Df==="end"||Df==="right")W=!1;e=e.parentNode;W=[].concat(_.kP(e.parentNode.childNodes)).indexOf(e)+(W?0:1);_.MG(e.parentNode,W).select()}}else m?
m.previousSibling&&m.previousSibling.length>0?_.sU(t,W.JSC$9301_getEndOffset(),m.previousSibling,m.previousSibling.length-1).select():(e=document.createTextNode("\u200b"),m.parentNode.insertBefore(e,m),_.sU(t,W.JSC$9301_getEndOffset(),e,0).select()):q&&(q.nextSibling&&q.nextSibling.length>0?_.sU(e,W.JSC$9301_getStartOffset(),q.nextSibling,1).select():(t=document.createTextNode("\u200b"),q.parentNode.insertBefore(t,q.nextSibling),_.sU(e,W.JSC$9301_getStartOffset(),t,t.length).select()));Df=null}}else Df=
null}else Df=null},
leftKeyPressed_:function(){Df="left"},
rightKeyPressed_:function(){Df="right"},
endKeyPressed_:function(){Df="end"},
maybeDeleteChip_:function(){var W=bG$(!0);if(W){var e=_.$L(),t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();_.fs(t,e,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=bG$(!1);if(W){var e=_.$L(),t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();_.fs(t,e,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var e=_.$L();if(e.isCollapsed()){var t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();var b=mfU(t,e,!0);b&&(_.fs(t,e,b,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var e=_.$L();if(e.isCollapsed()){var t=e.JSC$9301_getStartNode();e=e.JSC$9301_getStartOffset();var b=mfU(t,e,!1);b&&(_.fs(t,e,b,b.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&A4(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.rz(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.rz(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(W,e){W=d2C(W,this.emojiManager,e).cloneNode(!0);for(e=W.firstChild;e;)if(e.nodeType!==1)e=e.nextSibling;else switch(e.tagName){case "BR":var t=_.jQ();_.ds8(t,e);e=t.nextSibling;break;case "DIV":(t=e.lastChild)&&e.nextSibling&&_.gj(_.jQ(),t);e.previousSibling&&(e.previousSibling.nodeType===1||e.previousSibling.nodeType===3&&!e.previousSibling.textContent.endsWith("\n"))&&_.fd(_.jQ(),e);t&&t.nodeName==="BR"&&_.BX(t);t=e;e.hasChildNodes()?(e=e.firstChild,
_.WeD(t)):(e=e.nextSibling,_.BX(t));break;default:e=e.nextSibling}return rmQ(W)},
setTextAreaValue:function(W){W||(W="");var e=this.getEditableFormattedString_();e.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});e.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Df=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.MG(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ot("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),e=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",e)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var e=this.getInputRange_();e&&(W=this.emojiInput.retrieveTextBeforeRange(e))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.q2(this.hostElement,"input"))},
insertText_:function(W,e,t){e=e===void 0?!1:e;t=t===void 0?!0:t;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(e&&this.emojiInput.offsetStartOfRangeBy(b,W.length),this.insertTextWithEmojis_(b,W,t),NyM(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,W),this.updateSuggestionOffset_(b)))}},
getSimpleString:_.Ub,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,e){W?this.fire("yt-autonav-pause-focus"):e!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var e=this.getEditableTextArea_();[].concat(_.kP(W.dataTransfer.items)).forEach(function(t){t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(b){e.appendChild(document.createTextNode(b))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.rz(this.emojiInput).querySelector("#dropdown")){var e=this.getEditableTextArea_().getBoundingClientRect().bottom,t=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(e-t)+5;e=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-e;_.rz(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sH("yt-post"));return this.localStorage}});var Si=function(){var W=_.O.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.MM;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.q2(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(e){e.preventDefault();e.stopImmediatePropagation();var t;if(e=(t=e.clipboardData)==null?void 0:t.getData("text/plain"))t=document.getSelection().getRangeAt(0),t.collapsed||t.deleteContents(),e=document.createTextNode(e),t.insertNode(e),t.selectNodeContents(e),t.collapse(!1),e=window.getSelection(),e.removeAllRanges(),e.addRange(t)};
W.onDocumentClick=function(e){if(W.isEmojiPickerDisplayed){var t,b,m;!(e.target instanceof Node)||(t=e.composedPath())!=null&&t.includes(W.editableTextEl)||(b=e.composedPath())!=null&&b.includes(W.emojiButtonEl)||(m=e.composedPath())!=null&&m.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.Z(Si,_.O);_.r=Si.prototype;_.r.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.r.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.r.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var e;(e=this.contentEl)==null||e.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.r.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.r.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.r.reloadEmojis=function(){this.emojiPickerEl&&_.l(this.emojiPicker,_.orB)&&this.emojiPickerEl.updateEmojiCategories()};
_.r.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.XB(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.r.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var e;_.XB(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.h8((e=this.currentCommentOption)==null?void 0:e.commentBackgroundColorArgb)})}else _.XB(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.r.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.r.onEditButtonClick=function(W){var e=document.getSelection();e&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),e.selectAllChildren(this.contentEl),e.collapseToEnd())};
_.r.onContentDrop=function(W){var e=this;if(W.dataTransfer){W=_.R(W.dataTransfer.items);for(var t=W.next();!t.done;t=W.next())t=t.value,t.kind==="string"&&t.type.match("^text/plain")&&t.getAsString(function(b){var m;(m=e.contentEl)==null||m.appendChild(document.createTextNode(b))})}};
_.r.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.r.getUserGeneratedCommentText=function(){var W,e=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return e?e.trim():""};
_.r.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.r.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.Ec.Object.defineProperties(Si.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.l((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.JqU)){var e;return _.l((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.JqU)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,e;return((W=this.data)==null?0:W.commentOptionRenderers)?_.l((e=this.data)==null?void 0:e.commentOptionRenderers[this.superThanksSelectedTierEntity.index],JXU):void 0}var t,b;return((t=this.data)==null?0:t.commentOptionRenderers)?_.l((b=this.data)==null?void 0:b.commentOptionRenderers[this.currentCommentOptionIndex],JXU):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.commentDialog,_.wbe))==null?void 0:e.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.commentDialog,_.wbe))==null?void 0:e.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=_.l((W=this.data)==null?void 0:W.commentDialog,_.wbe))==null?void 0:e.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(e=_.l((W=this.data)==null?void 0:W.commentDialog,_.wbe))==null?void 0:e.emojiPicker;if(!_.l(t,_.orB)||!_.l(t,_.orB).categories)return!1;W=function(q){return q.emojiPickerCategoryRenderer?q.emojiPickerCategoryRenderer.emojiIds&&q.emojiPickerCategoryRenderer.emojiIds.length>0:q.emojiPickerUpsellCategoryRenderer?q.emojiPickerUpsellCategoryRenderer.emojis&&q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var b,m;return((b=_.l(t,_.orB))==null?0:(m=b.categories)==null?0:m.find(W))?!0:!1}}});
Si.prototype.onEmojiSelect=Si.prototype.onEmojiSelect;Si.prototype.dataChanged=Si.prototype.dataChanged;Si.prototype.currentCommentOptionChanged=Si.prototype.currentCommentOptionChanged;_.P([_.y(_.fu),_.Y("design:type",Object)],Si.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Si.prototype,"rendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.vG("#content-dom-if"),_.Y("design:type",_.CD)],Si.prototype,"contentDomIfEl",void 0);_.P([_.vG("#content-no-emojis"),_.Y("design:type",HTMLElement)],Si.prototype,"contentEl",void 0);_.P([_.vG("#container"),_.Y("design:type",HTMLElement)],Si.prototype,"containerEl",void 0);_.P([_.vG("#comment-chip-container"),_.Y("design:type",HTMLElement)],Si.prototype,"paidCommentChipContainerEl",void 0);_.P([_.vG("#text-input"),_.Y("design:type",HTMLElement)],Si.prototype,"editableTextEl",void 0);
_.P([_.vG("#emoji-button"),_.Y("design:type",HTMLElement)],Si.prototype,"emojiButtonEl",void 0);_.P([_.vG("#emoji-picker > yt-emoji-picker-renderer"),_.Y("design:type",Object)],Si.prototype,"emojiPickerEl",void 0);_.P([_.vG("#text-input > ytd-comment-input"),_.Y("design:type",Object)],Si.prototype,"ytdCommentInputEl",void 0);_.P([_.J(),_.Y("design:type",Object)],Si.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Si.prototype,"currentCommentOptionIndex",void 0);
_.P([_.J({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Rbg}),_.Y("design:type",Object)],Si.prototype,"superThanksSelectedTierEntity",void 0);_.P([_.J(),_.Y("design:type",Object)],Si.prototype,"isEmojiPickerDisplayed",void 0);_.P([_.J(),_.Y("design:type",Object)],Si.prototype,"emojiManager",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Si.prototype,"isUgcEmpty",void 0);
_.P([_.ul("currentCommentOption"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Si.prototype,"currentCommentOptionChanged",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Si.prototype,"dataChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Si.prototype,"isEmojiYtdCommentInputEnabled",null);
_.P([_.T("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"title",null);_.P([_.T("data.authorText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"channelName",null);_.P([_.T("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Si.prototype,"shouldShowPaidCommentChipRenderer",null);
_.P([_.T("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"paidCommentChipRenderer",null);_.P([_.T("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"currentCommentOption",null);
_.P([_.T("data.defaultCommentText","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"commentText",null);_.P([_.T("data.placeholderText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"placeholderText",null);_.P([_.T("data.commentDialog.commentDialogRenderer.editableText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"editableText",null);
_.P([_.T("data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"emojiButton",null);_.P([_.T("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Si.prototype,"emojiPicker",null);
_.P([_.T("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Si.prototype,"isEmojiButtonDisplayed",null);_.P([_.wz("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Si.prototype,"onEmojiSelect",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Si);
_.H(Si,"ytd-pdg-comment-preview-renderer",function(){if(pAC!==void 0)return pAC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return pAC=W},{mode:2});var jVM;var Bc=function(){var W=_.O.apply(this,arguments)||this;W.selected=!1;return W};
_.Z(Bc,_.O);_.r=Bc.prototype;_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.r.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.r.dataChanged=function(){this.data&&(_.qN(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.XB(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.h8(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.h8(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.r.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.r.onClick=function(){this.logClick()};
_.r.onKeyboardSelect=function(){_.q2(this.hostElement,"tap");this.onClick()};
_.r.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bc.prototype.onClick=Bc.prototype.onClick;Bc.prototype.selectedChanged=Bc.prototype.selectedChanged;Bc.prototype.dataChanged=Bc.prototype.dataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Bc.prototype,"componentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.ZJ),_.Y("design:type",Object)],Bc.prototype,"ironA11yKeysBehavior",void 0);
_.P([_.y(_.PG),_.Y("design:type",Object)],Bc.prototype,"ironSelectableBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Bc.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Bc.prototype,"shownThumbnail",void 0);_.P([_.J(),_.Y("design:type",Object)],Bc.prototype,"basePriceText",void 0);_.P([_.J(),_.Y("design:type",Object)],Bc.prototype,"purchaseCommand",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Bc.prototype,"selected",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bc.prototype,"dataChanged",null);_.P([_.ul("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bc.prototype,"selectedChanged",null);_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bc.prototype,"onClick",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Bc);
_.H(Bc,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(jVM!==void 0)return jVM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return jVM=W},{mode:1});var oF=function(){var W=_.O.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.Z(oF,_.O);_.r=oF.prototype;
_.r.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]]"}}}}}};
_.r.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var e=(W=_.l(this.data.colorSlider,Tf$))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var t;e=(t=_.l(this.data.selectableItemButtons[this.selectedItemIndex],Ox1))==null?void 0:t.purchaseCommand}if(e){W=_.l(e,_.w2v);W.productData||(W.productData={});var b;W.productData={pdgData:{commentMessageText:(b=this.commentPreviewRenderer)==null?void 0:b.getUserGeneratedCommentText()}};
_.q2(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(e)}}};
_.r.dataChanged=function(){if(this.data){_.MM.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Yoy(_.MM,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.MM.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.l(this.data.commentPreview,xUw))==null||!W.placeholderText);this.updatePriceSelectorStatus();var e;if((e=this.data)==null?0:e.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(t){return _.rd(t.thumbnails,1920)});
W=_.R(W);for(e=W.next();!e.done;e=W.next())(e=e.value)&&_.jW2(e).thenCatch(function(){_.JC(Error("ml"))})}};
_.r.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.r.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.r.updatePriceSelectorStatus=function(){this.isColorSlider?(_.rz(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.rz(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.rz(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.rz(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.r.closeBuyFlow=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.r.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.r.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.Ec.Object.defineProperties(oF.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
oF.prototype.onUserGeneratedContentChanged=oF.prototype.onUserGeneratedContentChanged;oF.prototype.closeBuyFlow=oF.prototype.closeBuyFlow;oF.prototype.selectedItemIndexChanged=oF.prototype.selectedItemIndexChanged;oF.prototype.superThanksSelectedTierEntityChanged=oF.prototype.superThanksSelectedTierEntityChanged;oF.prototype.dataChanged=oF.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],oF.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oF.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],oF.prototype,"selectedItemIndex",void 0);_.P([_.J(),_.Y("design:type",Boolean)],oF.prototype,"isColorSlider",void 0);
_.P([_.J(),_.Y("design:type",Object)],oF.prototype,"buyButtonDisabled",void 0);_.P([_.J({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Rbg}),_.Y("design:type",Object)],oF.prototype,"superThanksSelectedTierEntity",void 0);_.P([_.vG("ytd-pdg-comment-preview-renderer"),_.Y("design:type",Object)],oF.prototype,"commentPreviewRenderer",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],oF.prototype,"ytdReduxBehavior",void 0);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oF.prototype,"dataChanged",null);_.P([_.ul("superThanksSelectedTierEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oF.prototype,"superThanksSelectedTierEntityChanged",null);_.P([_.ul("selectedItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oF.prototype,"selectedItemIndexChanged",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oF.prototype,"closeBuyFlow",null);_.P([_.wz("ytd-pdg-user-generated-comment-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oF.prototype,"onUserGeneratedContentChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oF.prototype,"isDisclaimerTextShown",null);
_.P([_.h({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],oF);
_.H(oF,"yt-super-vod-buy-flow-content-renderer",function(){if($XM!==void 0)return $XM;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return $XM=W},{mode:1});var C4B;var l3=function(){var W=_.O.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.Z(l3,_.O);_.r=l3.prototype;_.r.created=function(){_.Kx.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.aH(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.r.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.q2(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.r.detached=function(){this.autoCloseJobId&&_.Tm.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.aH(this,this.onPopupIronOverlayOpened))};
_.r.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.RT(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.F6(_.Tm,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.XB(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.r.onDOMLoadedLottie=function(){var W=this,e,t,b=Number((e=this.data)==null?void 0:(t=e.autoCloseDelay)==null?void 0:t.seconds)||0;this.fadeOutJobId=_.F6(_.Tm,function(){W.lottiePlayerEl.classList.add("fadeout")},(b-.25)*1E3);
this.autoCloseJobId=_.F6(_.Tm,function(){W.closePopup()},b*1E3)};
_.r.openPopup=function(){this.ironOverlayBehavior.open()};
_.r.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.RT(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.IT(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.ee().resolve(_.tQ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Tm.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Tm.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.r.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,e;(W=this.lottieAnimationRef)==null||(e=W.lottieEl)==null||e.destroy();W=this.data.lottie;var t,b;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(b=(t=W.settings)==null?void 0:t.loop)!=null?b:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Ec.Object.defineProperties(l3.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,e;return!!((W=this.data)==null?0:(e=W.lottie)==null?0:e.url)}}});
l3.prototype.maybeInitializeLottie=l3.prototype.maybeInitializeLottie;l3.prototype.dataChanged=l3.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],l3.prototype,"rendererBehavior",void 0);_.P([_.y(_.z0),_.Y("design:type",Object)],l3.prototype,"ironOverlayBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],l3.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],l3.prototype,"lottiePlayerProps",void 0);
_.P([_.J(),_.Y("design:type",Object)],l3.prototype,"lottieAnimationRef",void 0);_.P([_.vG("ytd-lottie-player"),_.Y("design:type",HTMLElement)],l3.prototype,"lottiePlayerEl",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"dataChanged",null);_.P([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l3.prototype,"hasLottieAnimation",null);
_.P([_.ul("data.lottie.url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"maybeInitializeLottie",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],l3);
_.H(l3,"ytd-desktop-image-overlay-renderer",function(){if(C4B!==void 0)return C4B;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return C4B=W},{mode:1});var noE;var Zf=function(){return _.O.apply(this,arguments)||this};
_.Z(Zf,_.O);_.r=Zf.prototype;_.r.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"}}}}};
_.r.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",_.aH(this,this.closePopup))};
_.r.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.aH(this,this.closePopup))};
_.r.dataChanged=function(){_.Qx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.l(this.data.header,gGE)&&(this.hasBackgroundBanner=!!_.l(this.data.header,gGE).backgroundBanner)};
_.r.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.aH(this,this.closePopup))};
_.r.closePopup=function(){this.data&&this.data.onCloseCommand&&_.X5(this.hostElement,[this.data.onCloseCommand])};
Zf.prototype.handleBuyflowSelectionSubmitted=Zf.prototype.handleBuyflowSelectionSubmitted;Zf.prototype.dataChanged=Zf.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Zf.prototype,"data",void 0);
_.P([_.J({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Zf.prototype,"hasBackgroundBanner",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zf.prototype,"dataChanged",null);_.P([_.wz("yt-pdg-buy-flow-selection-submitted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zf.prototype,"handleBuyflowSelectionSubmitted",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Zf);
_.H(Zf,"ytd-pdg-buy-flow-renderer",function(){if(noE!==void 0)return noE;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return noE=W},{mode:1});var f7g;var $$=function(){var W=_.O.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.Z($$,_.O);_.r=$$.prototype;_.r.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.r.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.q2(this.hostElement,"yt-refit")};
_.r.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.X5(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(e,t){if(!_.S("killswitch_ep_in_create_playlist_response")&&(t==null?0:t.actions))for(e=_.R(t.actions),t=e.next();!t.done;t=e.next())t=t.value,_.l(t,_.xB)&&W.ytComponentBehavior.resolveCommand(t)}}]),this.isPlaylistCreated=!0)};
_.r.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.r.onServiceRequestCompleted=function(W){W.stopPropagation();_.RT(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.r.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
$$.prototype.onServiceRequestCompleted=$$.prototype.onServiceRequestCompleted;$$.prototype.onKeydown=$$.prototype.onKeydown;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$$.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],$$.prototype,"isOpen",void 0);
_.P([_.J(),_.Y("design:type",Object)],$$.prototype,"isPlaylistCreated",void 0);_.P([_.J({value:{REQUIRED_LABEL:_.Gv("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Gv("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],$$.prototype,"addToStrings",void 0);_.P([_.J({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Y("design:type",Array)],$$.prototype,"privacyBadge",void 0);
_.P([_.vG("#privacy-input"),_.Y("design:type",Object)],$$.prototype,"privacyInput",void 0);_.P([_.vG("#name-input"),_.Y("design:type",Object)],$$.prototype,"nameInput",void 0);_.P([_.wz("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],$$.prototype,"onKeydown",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$$.prototype,"onServiceRequestCompleted",null);
_.P([_.h({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],$$);
_.H($$,"ytd-add-to-playlist-create-renderer",function(){if(f7g!==void 0)return f7g;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return f7g=W},{mode:1});var goC;var TrB;var k$=function(){var W=_.O.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.Z(k$,_.O);k$.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
k$.prototype.onCheckboxChange=function(W){var e=this;this.data&&_.HG(this,"yt-playlist-checkbox-changed",function(){var t=_.Er(W).checked?e.data.addToPlaylistServiceEndpoint:e.data.removeFromPlaylistServiceEndpoint;t&&_.ee().resolve(_.tQ).resolveCommand(t,{form:{element:e.hostElement}});_.S("dl_playlist_killswitch")||e.transferState!=="TRANSFER_STATE_UNKNOWN"&&e.transferState!=="TRANSFER_STATE_FAILED"&&e.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:e.data.playlistId,action:"ACTION_SYNC"}})},
100)};
k$.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
k$.prototype.dataChanged=k$.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],k$.prototype,"data",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],k$.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.P([_.vG("#checkbox"),_.Y("design:type",HTMLInputElement)],k$.prototype,"checkbox",void 0);
_.P([_.J({selector:_.Ob,selectorArgs:["data.playlistId"]}),_.Y("design:type",String)],k$.prototype,"transferState",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k$.prototype,"dataChanged",null);_.P([_.h({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],k$);
_.H(k$,"ytd-playlist-add-to-option-renderer",function(){if(TrB!==void 0)return TrB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TrB=W},{mode:1});_.tA(qb$);_.a5(qb$,"ytd-menu-title-renderer",{propNames:["data"]});var pg=function(){var W=_.O.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Gv("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.Gv("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.S("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.Z(pg,_.O);_.r=pg.prototype;_.r.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"}}}};
_.r.onPopupOpened=function(){_.RH(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.r.onPopupClosed=function(){_.RH(this.playlists,"scrollable",!1)};
_.r.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.R(this.data.actions);for(var e=W.next();!e.done;e=W.next())if(e=e.value,e.menuTitleRenderer)return _.Ub(e.menuTitleRenderer.title)}};
_.r.onTapClose=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Ec.Object.defineProperties(pg.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.R(this.data.actions);for(var e=W.next();!e.done;e=W.next())if(e=e.value,e.menuTitleRenderer)return e.menuTitleRenderer}return!1}}});
pg.prototype.onPopupClosed=pg.prototype.onPopupClosed;pg.prototype.onPopupOpened=pg.prototype.onPopupOpened;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],pg.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pg.prototype,"ytRendererStamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],pg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],pg.prototype,"addToStrings",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],pg.prototype,"ariaLabel",void 0);_.P([_.J(),_.Y("design:type",String)],pg.prototype,"closeButtonAriaLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pg.prototype,"dialog",void 0);
_.P([_.vG("#playlists"),_.Y("design:type",HTMLElement)],pg.prototype,"playlists",void 0);_.P([_.vG("ytd-add-to-playlist-create-renderer"),_.Y("design:type",Object)],pg.prototype,"createRenderer",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pg.prototype,"menuTitleRenderer",null);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pg.prototype,"onPopupOpened",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pg.prototype,"onPopupClosed",null);_.P([_.h({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],pg);
_.H(pg,"ytd-add-to-playlist-renderer",function(){if(goC!==void 0)return goC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return goC=W},{mode:1});var JaS;var ys=function(){var W=_.O.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.Gv("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.Gv("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.Z(ys,_.O);_.r=ys.prototype;_.r.attached=function(){this.JSC$18366_scroller&&(this.JSC$18366_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18366_scroller.attached&&typeof this.JSC$18366_scroller.attached==="function"&&this.JSC$18366_scroller.attached())};
_.r.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.r.onPopupClosed=function(){this.reset()};
_.r.close=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.r.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var e=[];this.nameInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&e.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var t=Number(this.privacyInput.value);isNaN(t)||e.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:t})}this.votingInput.value!==null&&(t=this.votingInput.value)&&e.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:t});if(e.length>0){var b;_.l((b=this.data)==null?void 0:b.updateSettingsEndpoint,_.Jr).actions=e;var m;if((m=this.data)==null?0:m.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.r.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.r.computeEditorData=function(W){var e,t;return W==null?void 0:(e=W.sections)==null?void 0:(t=e[0])==null?void 0:t.playlistSettingsEditorCasualSectionRenderer};
_.r.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.r.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}}}}}};
_.r.computeAriaLabel=function(){var W,e,t,b=(W=this.data)==null?void 0:(e=W.sections)==null?void 0:(t=e[0])==null?void 0:t.playlistSettingsEditorCasualSectionRenderer;return _.Ub(b==null?void 0:b.title)};
_.r.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"}))};
_.r.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.r.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.r.isNameChanged=function(){var W,e,t;return(((W=this.editorData)==null?void 0:(e=W.name)==null?void 0:(t=e.textInputFormFieldRenderer)==null?void 0:t.value)||"")!==(this.nameInput.value||"")};
_.r.isDescriptionChanged=function(){var W,e,t;return(((W=this.editorData)==null?void 0:(e=W.description)==null?void 0:(t=e.textInputFormFieldRenderer)==null?void 0:t.value)||"")!==(this.descriptionInput.value||"")};
_.r.isPrivacyChanged=function(){var W,e,t,b,m,q,Q,X;return((Q=(W=this.editorData)==null?void 0:(e=W.privacy)==null?void 0:(t=e.dropdownFormFieldRenderer)==null?void 0:(b=t.dropdown)==null?void 0:(m=b.dropdownRenderer)==null?void 0:(q=m.entries)==null?void 0:q.find(function(I){var u;return I==null?void 0:(u=I.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(X=Q.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.privacyInput.value};
_.r.isVotingChanged=function(){var W,e,t,b,m,q,Q,X;return((Q=(W=this.editorData)==null?void 0:(e=W.voting)==null?void 0:(t=e.dropdownFormFieldRenderer)==null?void 0:(b=t.dropdown)==null?void 0:(m=b.dropdownRenderer)==null?void 0:(q=m.entries)==null?void 0:q.find(function(I){var u;return I==null?void 0:(u=I.privacyDropdownItemRenderer)==null?void 0:u.isSelected}))==null?void 0:(X=Q.privacyDropdownItemRenderer)==null?void 0:X.int32Value)!==this.votingInput.value};
ys.prototype.onPopupClosed=ys.prototype.onPopupClosed;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],ys.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ys.prototype,"ytRendererStamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],ys.prototype,"data",void 0);_.P([_.J({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Y("design:type",Array)],ys.prototype,"privacyBadge",void 0);_.P([_.J({computed:"computeEditorData(data)"}),_.Y("design:type",Object)],ys.prototype,"editorData",void 0);_.P([_.J(),_.Y("design:type",Object)],ys.prototype,"isPlaylistEditComplete",void 0);_.P([_.J(),_.Y("design:type",Object)],ys.prototype,"isCollabEngagementDisabled",void 0);
_.P([_.J({value:{REQUIRED_LABEL:_.Gv("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Gv("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],ys.prototype,"addToStrings",void 0);_.P([_.J({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],ys.prototype,"ariaLabel",void 0);_.P([_.J(),_.Y("design:type",String)],ys.prototype,"closeButtonAriaLabel",void 0);
_.P([_.J(),_.Y("design:type",Object)],ys.prototype,"saveButton",void 0);_.P([_.vG("#name-input"),_.Y("design:type",Object)],ys.prototype,"nameInput",void 0);_.P([_.vG("#description-input"),_.Y("design:type",Object)],ys.prototype,"descriptionInput",void 0);_.P([_.vG("#privacy-input"),_.Y("design:type",Object)],ys.prototype,"privacyInput",void 0);_.P([_.vG("#voting-input"),_.Y("design:type",Object)],ys.prototype,"votingInput",void 0);
_.P([_.vG("#scroller"),_.Y("design:type",Object)],ys.prototype,"JSC$18366_scroller",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ys.prototype,"onPopupClosed",null);_.P([_.J(),_.Y("design:type",Object)],ys.prototype,"onValueChanged",void 0);_.P([_.h({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],ys);
_.H(ys,"ytd-playlist-settings-editor-renderer",function(){if(JaS===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);JaS=W}W=JaS;return W},{mode:1});var xX$;_.xD("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var ji=function(){return _.O.apply(this,arguments)||this};
_.Z(ji,_.O);_.r=ji.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.r.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.r.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.S("enable_premium_voluntary_pause")||_.RT(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.r.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.r.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
ji.prototype.onPopupOpened=ji.prototype.onPopupOpened;ji.prototype.onSelectedResponseIndexChange=ji.prototype.onSelectedResponseIndexChange;ji.prototype.dataChanged=ji.prototype.dataChanged;_.P([_.y(_.UP),_.Y("design:type",Object)],ji.prototype,"ytdOpenPopupBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],ji.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],ji.prototype,"selectedResponseIndex",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ji.prototype,"dataChanged",null);_.P([_.ul("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ji.prototype,"onSelectedResponseIndexChange",null);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ji.prototype,"onPopupOpened",null);_.P([_.h({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ji);
_.H(ji,"ytd-red-cancel-survey-renderer",function(){if(xX$!==void 0)return xX$;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return xX$=W},{mode:1});var OzS;var Cg=function(){var W=_.O.apply(this,arguments)||this;W.closeButtonAriaLabel=_.Gv("SBOX_INAPPROPRIATE_CANCEL");return W};
_.Z(Cg,_.O);Cg.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Cg.prototype.onClickClose=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Cg.prototype,"rendererStamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Cg.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],Cg.prototype,"closeButtonAriaLabel",void 0);_.P([_.h({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Cg);
_.H(Cg,"ytd-search-filter-options-dialog-renderer",function(){if(OzS!==void 0)return OzS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return OzS=W},{mode:1});var MU9;var Flg=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var fg=function(){var W=_.O.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.Z(fg,_.O);_.r=fg.prototype;_.r.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}}}}};
_.r.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.r.updateQualityOptions=function(){if(this.formats===void 0)_.RT(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],e=[];this.showUpsellSection=!1;for(var t=_.R(this.formats),b=t.next();!b.done;b=t.next())(b=b.value)&&(b.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?e.push(b):W.push(b));W.length&&(this.qualityOptions=Q1B(W));e.length&&(this.showUpsellSection=!0,this.upsellOptions=Q1B(e))}};
_.r.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var e;W=(e=this.data)==null?void 0:e.premiumRememberSettingString}else{var t;W=(t=this.data)==null?void 0:t.rememberSettingString}W=W===void 0?_.Gv("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.tm(W),disabled:!1}};
_.r.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Ec.Object.defineProperties(fg.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
fg.prototype.updateRememberString=fg.prototype.updateRememberString;fg.prototype.updateQualityOptions=fg.prototype.updateQualityOptions;fg.prototype.dataChanged=fg.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],fg.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fg.prototype,"data",void 0);
_.P([_.y(_.fu),_.Y("design:type",Object)],fg.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Boolean)],fg.prototype,"selectedUpsellQuality",void 0);_.P([_.J({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Y("design:type",String)],fg.prototype,"premiumIcon",void 0);_.P([_.J({selector:b_$,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],fg.prototype,"downloadQualityPickerEntity",void 0);
_.P([_.J(),_.Y("design:type",Array)],fg.prototype,"qualityOptions",void 0);_.P([_.J(),_.Y("design:type",Array)],fg.prototype,"upsellOptions",void 0);_.P([_.J(),_.Y("design:type",Object)],fg.prototype,"showUpsellSection",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],fg.prototype,"darkerDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],fg.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.P([_.vG("#remember-settings"),_.Y("design:type",HTMLInputElement)],fg.prototype,"rememberSettingsCheckbox",void 0);_.P([_.J(),_.Y("design:type",Object)],fg.prototype,"rememberSettingsChecked",void 0);_.P([_.J(),_.Y("design:type",Function)],fg.prototype,"onRememberSettingsCheckedChanged",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fg.prototype,"dataChanged",null);
_.P([_.ul("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fg.prototype,"updateQualityOptions",null);_.P([_.ul("selectedUpsellQuality"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fg.prototype,"updateRememberString",null);_.P([_.h({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],fg);
_.H(fg,"ytd-download-quality-selector-content",function(){if(MU9!==void 0)return MU9;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return MU9=W},{mode:1});var sVu;var gI=function(){var W=_.O.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.S("web_darker_dark_theme");W.useUpsellDismissAlternate=_.S("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(e){W.rememberSettingsChecked=e};
return W};
_.Z(gI,_.O);_.r=gI.prototype;
_.r.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tm(_.Gv("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.r.updateQualityOptions=function(){this.formats===void 0?_.RT(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Q1B(this.formats)};
_.r.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var e=_.R(this.qualityOptions.entries()),t=e.next();!t.done;t=
e.next()){t=_.R(t.value);var b=t.next().value;t=t.next().value;var m=void 0,q=void 0;if(((m=t)==null?void 0:(q=m.settingsRadioOptionRenderer)==null?void 0:q.id)===W){this.selectedQualityIndex=b;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[b])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.r.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var e,t;W=(t=(e=this.data)==null?void 0:e.onSubmitEndpoint)!=null?t:{};var b,m;if(this.formats&&(((b=_.l(W,_.cS))==null?0:b.videoId)||((m=_.l(W,_.vS))==null?0:m.playlistId))){var q,Q,X,I,u,c;e={formatType:(I=(q=this.formats)==null?void 0:(Q=q[(X=this.selectedQualityIndex)!=null?X:0])==null?void 0:Q.format)!=null?I:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(u=this.getOfflineEndpoint(W))==null?void 0:(c=u.actionParams)==null?void 0:c.settingsAction)};this.getOfflineEndpoint(W).actionParams=e;this.ytComponentBehavior.resolveCommand(W)}_.RT(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.r.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var e,t;W=(t=(e=this.data)==null?void 0:e.upsellEndpoint)!=null?t:{};this.ytComponentBehavior.resolveCommand(W);_.RT(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);e="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var b,m,q,Q;e=(Q=(b=this.formats)==null?void 0:(m=b[(q=this.selectedQualityIndex)!=null?q:0])==null?void 0:m.format)!=null?Q:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:e}})}};
_.r.onClickClose=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.r.getOfflineSettingsAction=function(W,e){return W?e===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":e:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.r.getOfflineEndpoint=function(W){return _.l(W,_.cS)?_.l(W,_.cS):_.l(W,_.vS)};
_.Ec.Object.defineProperties(gI.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.tm(_.Gv("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
gI.prototype.updateQualityOptions=gI.prototype.updateQualityOptions;gI.prototype.dataChanged=gI.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],gI.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],gI.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Number)],gI.prototype,"selectedQualityIndex",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"selectedUpsellQuality",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],gI.prototype,"ytdReduxBehavior",void 0);
_.P([_.J({selector:b_$,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],gI.prototype,"downloadQualityPickerEntity",void 0);_.P([_.J(),_.Y("design:type",Array)],gI.prototype,"qualityOptions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],gI.prototype,"darkerDarkTheme",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gI.prototype,"useUpsellDismissAlternate",void 0);
_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"downloadButtonRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"upsellButtonRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"cancelButtonRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"upsellCancelButtonRenderer",void 0);_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"rememberSettings",void 0);
_.P([_.J(),_.Y("design:type",Object)],gI.prototype,"rememberSettingsChecked",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gI.prototype,"dataChanged",null);_.P([_.ul("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gI.prototype,"updateQualityOptions",null);_.P([_.h({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],gI);
_.H(gI,"ytd-download-quality-selector-renderer",function(){if(sVu!==void 0)return sVu;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sVu=W},{mode:1});var hU9;var TG=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(TG,_.O);TG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
TG.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],TG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TG.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],TG.prototype,"darkerDarkTheme",void 0);_.P([_.J({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],TG.prototype,"infoIcon",void 0);
_.P([_.J({computed:"computeIcon_(data.warningIcon)"}),_.Y("design:type",Object)],TG.prototype,"warningIcon",void 0);_.P([_.h({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],TG);
_.H(TG,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(hU9!==void 0)return hU9;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return hU9=W},{mode:1});var HzS;var JV=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(JV,_.O);JV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JV.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"}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],JV.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],JV.prototype,"darkerDarkTheme",void 0);_.P([_.h({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],JV);
_.H(JV,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(HzS!==void 0)return HzS;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return HzS=W},{mode:1});var K4S;var x$=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(x$,_.O);x$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
x$.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"}}}}};
x$.prototype.onServiceRequestSentOrCompleted=function(W,e){e&&e.actions&&e.actions.length>0&&_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
x$.prototype.onServiceRequestSentOrCompleted=x$.prototype.onServiceRequestSentOrCompleted;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],x$.prototype,"darkerDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],x$.prototype,"data",void 0);
_.P([_.wz("yt-service-request-completed"),_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],x$.prototype,"onServiceRequestSentOrCompleted",null);_.P([_.h({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],x$);
_.H(x$,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(K4S!==void 0)return K4S;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return K4S=W},{mode:1});var P4Q;var OK=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.Z(OK,_.O);_.r=OK.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.r.onDataChanged=function(){var W,e,t;if(((W=this.data)==null?void 0:(e=W.confirmButton)==null?void 0:(t=e.buttonRenderer)==null?void 0:t.isDisabled)!==void 0){var b,m,q;this.submitButtonDisabled=(b=this.data)==null?void 0:(m=b.confirmButton)==null?void 0:(q=m.buttonRenderer)==null?void 0:q.isDisabled}};
_.r.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.r.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.r.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
OK.prototype.onDataChanged=OK.prototype.onDataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],OK.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],OK.prototype,"darkerDarkTheme",void 0);
_.P([_.J(),_.Y("design:type",Object)],OK.prototype,"submitButtonDisabled",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OK.prototype,"onDataChanged",null);_.P([_.h({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],OK);
_.H(OK,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(P4Q!==void 0)return P4Q;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return P4Q=W},{mode:1});var VUU;var Mx=function(){return _.O.apply(this,arguments)||this};
_.Z(Mx,_.O);_.Ec.Object.defineProperties(Mx.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,e,t;return((W=this.data)==null?void 0:W.title)+" "+((e=this.data)==null?void 0:e.metadataPrimary)+" "+((t=this.data)==null?void 0:t.metadataSecondary)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Mx.prototype,"data",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mx.prototype,"ariaLabel",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Mx);
_.H(Mx,"ytd-compact-product-list-item-renderer",function(){if(VUU!==void 0)return VUU;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return VUU=W},{mode:1});var izU;var sK=function(){return _.O.apply(this,arguments)||this};
_.Z(sK,_.O);sK.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]]"}}}}}};
_.Ec.Object.defineProperties(sK.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],sK.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sK.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],sK);
_.H(sK,"ytd-compact-product-list-renderer",function(){if(izU!==void 0)return izU;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return izU=W},{mode:1});var YvC;var hV=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(hV,_.O);_.r=hV.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.r.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.rd(W,this.hostElement.clientWidth)+")":""};
_.r.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.fc();var e=_.nc(),t=this.get("data.trackingParams");t&&e&&W&&_.Ke(W,e,_.$5(t));W=_.R(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=W.next();!e.done;e=W.next())e.value.onShow()};
_.r.onPopupClosed=function(W){_.Er(W).localName==="ytd-membership-post-cancel-renderer"&&_.RT(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
hV.prototype.onPopupClosed=hV.prototype.onPopupClosed;hV.prototype.onDataChanged=hV.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],hV.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],hV.prototype,"darkerDarkTheme",void 0);
_.P([_.vG("#header"),_.Y("design:type",HTMLDivElement)],hV.prototype,"header",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hV.prototype,"onDataChanged",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hV.prototype,"onPopupClosed",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],hV);
_.H(hV,"ytd-membership-post-cancel-renderer",function(){if(YvC!==void 0)return YvC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return YvC=W},{mode:1});var zUC;var Hc=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(Hc,_.O);Hc.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Hc.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Hc.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Hc.prototype,"darkerDarkTheme",void 0);_.P([_.vG("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],Hc.prototype,"feedbackSurveyRenderer",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Hc);
_.H(Hc,"ytd-sponsorship-confirm-cancel-content",function(){if(zUC!==void 0)return zUC;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return zUC=W},{mode:1});var UXu;var Kg=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.Z(Kg,_.O);_.r=Kg.prototype;_.r.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.r.onYtPopupOpened=function(W,e){e===this&&this.data&&this.data.onOpenCommands&&_.IT(this.hostElement,this.data.onOpenCommands,this.hostElement);_.RT(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.r.onYtPopupClosed=function(W,e){(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.IT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestCompleted=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.r.onYtServiceRequestError=function(W){_.mF(this.hostElement,W.detail.error.message)};
_.r.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.rz(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.Ec.Object.defineProperties(Kg.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.rd(W,this.hostElement.clientWidth)+")":""}}});
Kg.prototype.onDataChanged=Kg.prototype.onDataChanged;Kg.prototype.onYtServiceRequestError=Kg.prototype.onYtServiceRequestError;Kg.prototype.onYtServiceRequestCompleted=Kg.prototype.onYtServiceRequestCompleted;Kg.prototype.onYtPopupClosed=Kg.prototype.onYtPopupClosed;Kg.prototype.onYtPopupOpened=Kg.prototype.onYtPopupOpened;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Kg.prototype,"data",void 0);_.P([_.J({value:function(){return _.Gv("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],Kg.prototype,"closeButtonAriaLabel",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Kg.prototype,"darkerDarkTheme",void 0);_.P([_.vG("#scrollable"),_.Y("design:type",Object)],Kg.prototype,"scrollable",void 0);_.P([_.vG("ytd-sponsorship-confirm-cancel-content"),_.Y("design:type",Object)],Kg.prototype,"content",void 0);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Kg.prototype,"onYtPopupOpened",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Kg.prototype,"onYtPopupClosed",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Kg.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Kg.prototype,"onYtServiceRequestError",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kg.prototype,"onDataChanged",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Kg);
_.H(Kg,"ytd-sponsorship-confirm-cancel-renderer",function(){if(UXu!==void 0)return UXu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return UXu=W},{mode:_.Qe("kevlar_poly_si_batch_j081")?1:2});var L4u;var Pc=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(Pc,_.O);Pc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Pc.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Pc.prototype,"darkerDarkTheme",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Pc);
_.H(Pc,"ytd-sponsorships-celebration-content",function(){if(L4u!==void 0)return L4u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return L4u=
W},{mode:1});var Eo9;var Aal=_.Nw(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Vs=function(){var W=_.O.apply(this,arguments)||this;W.scriptsAppended=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.Z(Vs,_.O);_.r=Vs.prototype;
_.r.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:_.S("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var e;(e=this.header)==null||e.style.setProperty("background-image",W)}e=_.fc(4);W=_.nc(4);var t=this.get("data.trackingParams");if(t&&W&&e){var b=_.$5(t);_.Ke(e,W,b);_.S("combine_ve_grafts")?_.Sg().graftServerVe(t,W,4):_.Ke(e,W,b)}e=_.R(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=e.next();!W.done;W=e.next())W.value.onShow();if(e=this.get("data.gtmId"))_.CT(e,
_.Ot("GL","")),this.setupConversionTracking()};
_.r.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var e=_.Mt(Aal.join(""));_.hK(W,e);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.r.onPopupClosed=function(W){if(_.Er(W).localName==="ytd-sponsorships-celebration-renderer"){_.RT(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var e;this.data&&((e=this.data)==null?0:e.dismissCommand)&&_.uL.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Ec.Object.defineProperties(Vs.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.h8(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.rd(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
Vs.prototype.onPopupClosed=Vs.prototype.onPopupClosed;Vs.prototype.onDataChanged=Vs.prototype.onDataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Vs.prototype,"data",void 0);_.P([_.vG("#header"),_.Y("design:type",HTMLElement)],Vs.prototype,"header",void 0);
_.P([_.J(),_.Y("design:type",Object)],Vs.prototype,"scriptsAppended",void 0);_.P([_.J(),_.Y("design:type",Object)],Vs.prototype,"buttonOverrides",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vs.prototype,"onDataChanged",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Vs.prototype,"onPopupClosed",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Vs);
_.H(Vs,"ytd-sponsorships-celebration-renderer",function(){if(Eo9!==void 0)return Eo9;var W=document.createElement("template");_.p(W,'\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="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Eo9=W},{mode:1});var NrC;var i3=function(){var W=_.O.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.Z(i3,_.O);i3.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
i3.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
i3.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,e=_.l((W=this.data)==null?void 0:W.switchButton,M3g);e&&(this.isToggleChecked&&e.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOnInnertubeCommand),!this.isToggleChecked&&e.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(e.switchOffInnertubeCommand))};
i3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
i3.prototype.onDataChanged=i3.prototype.onDataChanged;_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],i3.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],i3.prototype,"isToggleChecked",void 0);_.P([_.J({value:_.Gv("CLOSE")}),_.Y("design:type",String)],i3.prototype,"closeButtonAriaLabel",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i3.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],i3);
_.H(i3,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(NrC!==void 0)return NrC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return NrC=W},{mode:1});var dXQ;var Y$=function(){return _.O.apply(this,arguments)||this};
_.Z(Y$,_.O);_.r=Y$.prototype;_.r.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"}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.detached=function(){this.playerElement.stop()};
_.r.onYtServiceRequestCompleted=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.r.onYtServiceRequestError=function(W){_.mF(this.hostElement,W.detail.error.message)};
_.r.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.r.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.r.getTier=function(W,e){return!W||!W.tiers||e<0?null:_.l(W.tiers[e],KWT)};
_.r.moreThanOne=function(W){return!!(W&&W.length>1)};
_.r.tierOverviewTap=function(W){var e=this;this.selectedTier=W.model.index;_.Uc(this,function(){_.q2(e.hostElement,"yt-refit")})};
_.r.computeSelectedClass=function(W,e){return this.isSelected(W,e)?"selected":""};
_.r.computeButtonAriaPressed=function(W,e){return this.isSelected(W,e)?"true":"false"};
_.r.isSelected=function(W,e){return W===e};
_.r.onDataChanged=function(){_.rz(this.hostElement).querySelector("#header-overlay").style.visibility="";_.rz(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 W=_.R(this.hostElement.querySelectorAll("yt-img-shadow")),
e=W.next();!e.done;e=W.next())e.value.onShow();var t;this.set("selectedTier",(t=this.get("data.targetTierIndex"))!=null?t:0);var b;(W=(b=this.data)==null?void 0:b.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.r.initializeVe=function(W){var e=_.fc(),t=_.nc(),b=this.get("data.trackingParams");t&&e&&(this.screenLayer=4,e=_.hJ(_.GMQ)(void 0,69877,{clientScreenNonce:e,visualElement:t},void 0,void 0,void 0),_.T4(e,69877,4),t=_.nc(4),b&&t&&(b=_.$5(b),_.Ke(e,t,b),W&&(this.offerVideoVe=_.na(74659),_.Ke(e,b,this.offerVideoVe))))};
_.r.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.rz(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.h8(W);if(W=this.getHeaderImage())W=_.rd(W,screen.width),_.rz(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.r.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r.setupVideoPlayer=function(W){var e=this,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1)return t=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),b=e.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.S("kevlar_player_update_killswitch")?e.playerElement.update({args:{autoplay:t,video_id:W,player_params:b}}):e.playerElement.loadVideoWithPlayerVars({autoplay:t,video_id:W,player_params:b}),
_.a(Q,e.playerElement.getPlayerPromise(),2);m=Q.yieldResult;m.addEventListener("onStateChange",function(X){e.onPlayerStateChange(X)});
m.setScreenLayer(e.screenLayer);(q=_.fc(4))&&e.offerVideoVe&&_.Vx(q,e.offerVideoVe);t&&(e.pauseOtherPlayers(),e.playerElement.focusOnPlayer(),e.playerElement.getPlayer().hideControls(),_.kM(_.Tm,function(){e.fadeOutHeaderOverlay()},4E3));
_.u8(Q)})};
_.r.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.rz(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.rz(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.r.fadeOutHeaderOverlay=function(){_.rz(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.r.onHeaderTap=function(){if(this.offerVideo){_.rz(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.fc(4))&&this.offerVideoVe&&_.zv(W,this.offerVideoVe)}};
_.r.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.r.getHeaderClass=function(W){return W?"header-with-video":""};
_.r.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.r.getTitleContainerClass=function(W,e){return W?"title-container-with-video":e?"title-container-without-video-flexible":"title-container-without-video"};
_.r.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.r.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.ee().resolve(_.Kn).getPlayerElement():this.backgroundPlayerElement=_.tv();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.r.isMiniplayerActive=function(){return _.ee().resolve(_.Kn).isMiniplayerActive()};
_.r.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("selected-tier-changed",this.selectedTier))};
Y$.prototype.selectedTierChangedForBinding=Y$.prototype.selectedTierChangedForBinding;Y$.prototype.onDataChanged=Y$.prototype.onDataChanged;Y$.prototype.onYtPopupClosed=Y$.prototype.onYtPopupClosed;Y$.prototype.onYtPopupOpened=Y$.prototype.onYtPopupOpened;Y$.prototype.onYtServiceRequestError=Y$.prototype.onYtServiceRequestError;Y$.prototype.onYtServiceRequestCompleted=Y$.prototype.onYtServiceRequestCompleted;
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Y$.prototype,"data",void 0);_.P([_.J({value:0}),_.Y("design:type",Number)],Y$.prototype,"selectedTier",void 0);
_.P([_.J({value:""}),_.Y("design:type",String)],Y$.prototype,"offerVideo",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Y$.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.P([_.J({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.bh(this)}}),
_.Y("design:type",String)],Y$.prototype,"playerId",void 0);_.P([_.vG("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],Y$.prototype,"scrollable",void 0);_.P([_.vG("ytd-sponsorships-tier-renderer"),_.Y("design:type",Object)],Y$.prototype,"tierRenderer",void 0);_.P([_.vG("#player"),_.Y("design:type",Object)],Y$.prototype,"playerElement",void 0);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Y$.prototype,"onYtServiceRequestCompleted",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Y$.prototype,"onYtServiceRequestError",null);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y$.prototype,"onYtPopupOpened",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y$.prototype,"onYtPopupClosed",null);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y$.prototype,"onDataChanged",null);
_.P([_.ul("selectedTier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y$.prototype,"selectedTierChangedForBinding",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Y$);
_.H(Y$,"ytd-sponsorships-offer-renderer",function(){if(dXQ!==void 0)return dXQ;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return dXQ=W},{mode:_.Qe("kevlar_poly_si_batch_j077")?1:2});var W3u;var zG=function(){var W=_.O.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.Z(zG,_.O);zG.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}}}}}};
zG.prototype.backgroundColorChanged=function(){var W,e,t,b=(e=_.l((W=this.data)==null?void 0:W.content,P$$))==null?void 0:(t=e.backgroundColor)==null?void 0:t.backgroundColor;b&&(W=_.sr(b),_.rz(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.rz(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
zG.prototype.attached=function(){this.JSC$18452_scroller&&(this.JSC$18452_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18452_scroller.attached&&typeof this.JSC$18452_scroller.attached==="function"&&this.JSC$18452_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zG.prototype.backgroundColorChanged=zG.prototype.backgroundColorChanged;_.P([_.J(),_.Y("design:type",Object)],zG.prototype,"data",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#scroller"),_.Y("design:type",Object)],zG.prototype,"JSC$18452_scroller",void 0);_.P([_.J(),_.Y("design:type",Object)],zG.prototype,"buttonOverrides",void 0);
_.P([_.ul("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zG.prototype,"backgroundColorChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],zG);
_.H(zG,"ytd-sponsorships-promotion-celebration-renderer",function(){if(W3u!==void 0)return W3u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return W3u=W},{mode:_.Qe("kevlar_poly_si_batch_j077")?1:2});var e$g;var t2C;var UK=function(){return _.O.apply(this,arguments)||this};
_.Z(UK,_.O);UK.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
UK.prototype.computeIsInitiallyChecked=function(W){return W===1};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],UK.prototype,"data",void 0);_.P([_.vG("#checkbox"),_.Y("design:type",Object)],UK.prototype,"checkbox",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],UK);
_.H(UK,"ytd-subscription-toggle-option-renderer",function(){if(t2C!==void 0)return t2C;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return t2C=W},{mode:1});var Lg=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.Z(Lg,_.O);Lg.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"}}}};
Lg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Lg.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.rz(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var e=_.rz(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");e&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(e=e.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[e]);_.ee().resolve(_.tQ).resolveCommand(W,{form:{element:this.hostElement}});
_.RT(this.hostElement,"yt-close-popup-action")};
_.Ec.Object.defineProperties(Lg.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,e=0;e<W.length;e++){var t=W[e].subscriptionRadioOptionRenderer;if(t&&t.selected)return e}return null}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Lg.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Lg.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],Lg.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Lg.prototype,"darkerDarkTheme",void 0);_.P([_.T("data.options"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lg.prototype,"initialIndex",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Lg);
_.H(Lg,"ytd-subscription-notification-options-renderer",function(){if(e$g!==void 0)return e$g;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return e$g=W},{mode:1});var byu;var EK=function(){return _.O.apply(this,arguments)||this};
_.Z(EK,_.O);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],EK.prototype,"data",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],EK);
_.H(EK,"ytd-tvfilm-offer-groups-renderer",function(){if(byu!==void 0)return byu;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return byu=W},{mode:1});var miM;var AV=function(){var W=_.O.apply(this,arguments)||this;W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(AV,_.O);_.r=AV.prototype;_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.r.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.r.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.r.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.r.onDataChanged=function(){[].concat(_.kP(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
AV.prototype.onDataChanged=AV.prototype.onDataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],AV.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],AV.prototype,"darkerDarkTheme",void 0);
_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AV.prototype,"onDataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],AV);
_.H(AV,"ytd-ypc-offers-overlay-renderer",function(){if(miM!==void 0)return miM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return miM=W},{mode:_.Qe("kevlar_poly_si_batch_j028")?1:2});var rMM;var qe9=function(){this.usedMethods=new Set};
qe9.prototype.add=function(W){this.usedMethods.add(W)};
qe9.prototype.reset=function(){this.usedMethods.clear()};var F31=function(W,e){this.query=W;this.previousSearchQuery=e;this.id=R$$++;if(!QC9){e=_.Ot("SBOX_SETTINGS");W="https://"+((e==null?void 0:e.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var t=e==null?void 0:e.REQUEST_LANGUAGE;t&&(W+="&hl="+t);(t=e==null?void 0:e.REQUEST_DOMAIN)&&(W+="&gl="+t);W+="&client=youtube&gs_ri=youtube";(t=e==null?void 0:e.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(t));(t=e==null?void 0:e.PSUGGEST_TOKEN)&&(W+="&tok="+t);(e=
e==null?void 0:e.SESSION_INDEX)&&(W+="&authuser="+e);_.S("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");QC9=W}},XBB=function(W){var e="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(e+="&pq="+encodeURIComponent(W.previousSearchQuery));return e},Iqw=function(){var W=_.Ot("SBOX_SETTINGS"),e={};
if(W==null?0:W.SEND_VISITOR_DATA)e["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return e},aql=function(W){var e=QC9;
e+="&gs_id="+W.id.toString(36);e+="&q="+encodeURIComponent(W.query);e+="&cp="+W.query.length;W.previousSearchQuery&&(e+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(e+="&video_id="+W);return e},R$$=0,QC9="";var wBg=_.Pr.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,uKS=_.Pr.SEARCH_ENTITY_SUGGESTION_MOVIE,cMM=_.Pr.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ve9=_.Pr.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Gp1=function(W,e){this.text=W;this.bold=e},Dig=function(W,e,t){this.input=e;
this.index=t;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var b;this.displayText=dh((b=W[3])==null?void 0:b.b);var m;this.ignoredPrefix=dh((m=W[3])==null?void 0:m.a);var q,Q;this.hasNewVideo=((q=W[3])==null?void 0:(Q=q.zam)==null?void 0:Q.toString())==="true"?!0:!1;var X;this.visualSuggestUrl=(X=W[3])==null?void 0:X.zai;var I;this.entityType=dh((I=W[3])==null?void 0:I.zap);var u;this.entityName=dh((u=W[3])==null?void 0:u.zao);var c;e=dh((c=
W[3])==null?void 0:c.zaf);var v;this.entityMid=(v=W[3])==null?void 0:v.zae;c=INU(this.subtypes,this.entityMid);if(e&&c){if(e){v="";switch(c){case "YOUTUBE_ENTITY_TYPE_SONG":v=cMM;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":v=wBg;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":v=ve9;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":v=uKS}c=c==="YOUTUBE_ENTITY_TYPE_SONG"||c==="YOUTUBE_ENTITY_TYPE_ALBUM"?v+" \u2022  \u2022 "+e:e}else c="";this.entitySubtitle=c}var D;this.externalChannelId=(D=W[3])==null?void 0:D.zav;var B;
this.entityThumbnailAttributionUrl=(B=W[3])==null?void 0:B.zaq},BcM=function(W,e){var t=[],b,m=(b=W.displayText)!=null?b:W.text;
(e==null?0:e.useEntityName)&&SeM(W)&&W.entityName&&(m=W.entityName);if(W.type===33)return t.push(new Gp1(m,!1)),t;if(m.length>=W.input.length&&m.substring(0,W.input.length)===W.input)t.push(new Gp1(W.input,!1)),t.push(new Gp1(m.substring(W.input.length),!0));else{var q=new Set(W.input.split(/\s/)),Q=m.split(/\s/);t=Q.map(function(X,I){return new Gp1(X.trim()+(I===Q.length-1?"":" "),!q.has(X))})}return t},SeM=function(W){var e=!!INU(W.subtypes);
W=!!W.entityMid;return e||W};var oeC=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var e=JSON.parse(aNu(W));if(typeof e==="object"&&e!==null)this.rawResponse=e;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(b){console.log("Suggest: Failed to parse SuggestResponse!");return}var t=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(b,m){return new Dig(b,t,m)})};var lqC=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new qe9;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18489_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},ZyU,$ig=function(){ZyU||(ZyU=new lqC);
return ZyU};
lqC.prototype.updateSuggestions=function(W){var e=this;this.availableSuggestions.forEach(function(t){e.previousSuggestions[t]=!0});
this.availableSuggestions=W.map(function(t){var b=t.type.toString();t.subtypes.length>0&&(b+="i"+t.subtypes.join("i"),b+="k"+t.suggestionSources.COMPLETE_SERVER.toString());return b})};
var kp9=function(W,e){var t=Date.now();W.firstEditTime<0&&(W.firstEditTime=t);e&&(W.lastQueryBuildTime=t);W.lastEditTime=t};
lqC.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18489_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var pBg=function(W){var e="";W.availableSuggestions.forEach(function(m){delete W.previousSuggestions[m]});
for(var t=_.R(Object.keys(W.previousSuggestions)),b=t.next();!b.done;b=t.next())b=b.value,W.previousSuggestions[b]&&(e+=(e?"j":"")+b);return e},yMU=function(W,e){var t=[];
e&&(t[1]=e.toString());t[0]="youtube";t[7]=Date.now()-W.startTime;t[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(t[33]=W.zeroPrefixSuggestionCount);t[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var b=e="",m=0,q=_.R(W.availableSuggestions),Q=q.next();!Q.done;Q=q.next())Q=Q.value,Q!==b&&(m>1&&(e+="l"+m),e+=(b?"j":"")+Q,m=0,b=Q),m+=1;m>1&&(e+="l"+m);t[3]=e}t[35]=pBg(W);W.selectedSuggestionIndex>=0&&(t[2]=W.selectedSuggestionIndex);var X;if(e=(X=_.Ot("SBOX_SETTINGS"))==
null?void 0:X.SUGG_EXP_ID)t[19]=W.normalize(e),X=0,W.experimentTriggeredBeforeFinal&&(X|=1),W.experimentTriggeredFinal&&(X|=2),t[20]=X;t[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$18489_totalRoundTripTime>0){t[15]=W.JSC$18489_totalRoundTripTime;t[14]=W.maxRoundTripTime;X=[];for(m=e=0;m<10;m++)b=W.roundTripTimeHistogram[m],b===0?e++:(e>1?X.push(m+"-"+b):e===1?X.push("0j"+b):X.push(b.toString()),e=0);X=X.join("j");t[16]=X}W.zeroPrefixRoundTripTime>0&&(t[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(t[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(t[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(t[5]=W.lastEditTime-W.startTime);return t.join(".")};
lqC.prototype.normalize=function(W){return W.replaceAll(".","-")};
var jCC=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Nx=function(){var W=_.O.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.Z(Nx,_.O);_.r=Nx.prototype;_.r.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.r.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=w4E()};
_.r.dataChanged=function(){this.logDialog()};
_.r.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$17778_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$17778_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.r.handleSpeechQueryCompleteAction=function(W){var e=W.navigationAction;e&&(W.trackingParams&&_.Sg().graftServerVe(W.trackingParams,this.dialogVe,5),_.q2(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getNavigationParams(e),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.r.onExitButtonClick=function(){this.closeDialog()};
_.r.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var e;(e=W.audioPlayer)==null||HP(e,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.r.transcriptionChanged=function(){var W,e;(((W=this.transcription)==null?0:W.low)||((e=this.transcription)==null?0:e.high))&&this.setState("transcribing",this.transcription)};
_.r.stateChanged=function(){this.setState(this.state,this.transcription)};
_.r.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.Sg(),_.FW(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.r.getNavigationParams=function(W){var e={};if(_.S("web_yt_searchbox")){var t=$ig();t.inputMethodsTracker.add(6);t=yMU(t,15);e.gs_l=t;var b;e.oq=((b=_.l(W,_.Bw))==null?void 0:b.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())e.oq=W.oq,e.gs_l=W.gs_l}else _.Kt(Error("nl"));return e};
_.r.closeDialog=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.r.setState=function(W,e){if(this.data){var t=this.data,b={};switch(W){case "listening":b={headerText:t.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:t.microphoneButtonAriaLabel};break;case "timeout":b={headerText:t.promptHeader,microphoneState:"try-again",microphoneLabel:t.promptMicrophoneLabel,microphoneAriaLabel:t.promptMicrophoneLabel};break;case "microphone-off":b={headerText:t.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:t.promptMicrophoneLabel,
microphoneAriaLabel:t.promptMicrophoneLabel};break;case "transcribing":(e==null?0:e.low)||(e==null?0:e.high)?b={transcriptionLow:e==null?void 0:e.low,transcriptionHigh:e==null?void 0:e.high,microphoneState:"speaking",microphoneAriaLabel:t.microphoneButtonAriaLabel}:b={headerText:t.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:t.microphoneButtonAriaLabel};break;case "processing":b={headerText:t.loadingHeader,microphoneState:"processing",microphoneAriaLabel:t.microphoneButtonAriaLabel};
break;case "offline":b={headerText:t.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:t.connectionErrorMicrophoneLabel,microphoneAriaLabel:t.connectionErrorMicrophoneLabel};break;case "permission":b={headerText:t.permissionsHeader,bodyLine1:t.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:t.permissionsSubtext};break;case "permission-denied":b={headerText:t.disabledHeader,bodyLine1:t.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:t.disabledSubtext}}b.className=
W;this.speechOverlayState=b;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.r.setMicrophoneState=function(W){var e=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!e&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.r.setClass=function(W){this.speechOverlayClassName&&_.RH(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.RH(this.hostElement,W,!0))};
_.r.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var e=1+Math.random()*.75,t=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+t/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+e+")");_.Tm.addJob(function(){W.runLevelAnimation()},3,t)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Nx.prototype.stateChanged=Nx.prototype.stateChanged;Nx.prototype.transcriptionChanged=Nx.prototype.transcriptionChanged;Nx.prototype.onPopupClosed=Nx.prototype.onPopupClosed;Nx.prototype.dataChanged=Nx.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Nx.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Nx.prototype,"rendererStamperBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Nx.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Nx.prototype,"eventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Nx.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Nx.prototype,"speechOverlayState",void 0);
_.P([_.J(),_.Y("design:type",Object)],Nx.prototype,"microphoneSpinnerActive",void 0);_.P([_.J({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Y("design:type",Object)],Nx.prototype,"noAnimations",void 0);_.P([_.J({selector:function(W){var e;return(e=W.voiceSearch)==null?void 0:e.transcription}}),
_.Y("design:type",Object)],Nx.prototype,"transcription",void 0);_.P([_.J({selector:function(W){var e;return(e=W.voiceSearch)==null?void 0:e.overlay}}),
_.Y("design:type",String)],Nx.prototype,"state",void 0);_.P([_.J(),_.Y("design:type",Object)],Nx.prototype,"boundExitClick",void 0);_.P([_.vG("#microphone-levels"),_.Y("design:type",HTMLElement)],Nx.prototype,"level",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nx.prototype,"dataChanged",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nx.prototype,"onPopupClosed",null);
_.P([_.BG("transcription"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nx.prototype,"transcriptionChanged",null);_.P([_.BG("state"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nx.prototype,"stateChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Nx);
_.H(Nx,"ytd-voice-search-dialog-renderer",function(){if(rMM!==void 0)return rMM;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return rMM=W},{mode:1});var COw;var dI=function(){var W=_.O.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.Z(dI,_.O);_.r=dI.prototype;_.r.onPopupClosed=function(){this.toggleIconState(!1)};
_.r.computeIcon=function(){var W,e,t;return(e=_.l((W=this.data)==null?void 0:W.icon,UU1))==null?void 0:(t=e.icon)==null?void 0:t.iconType};
_.r.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.r.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.r.computeHidden=function(W){return!W};
_.r.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
dI.prototype.onPopupClosed=dI.prototype.onPopupClosed;_.P([_.y(_.fu),_.Y("design:type",Object)],dI.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],dI.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],dI.prototype,"isOverlay",void 0);
_.P([_.J({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Y("design:type",Object)],dI.prototype,"hidden",void 0);_.P([_.J({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,e){return _.I1(W.entities,"iconBadgeEntity",e)}}),
_.Y("design:type",Object)],dI.prototype,"iconBadgeEntity",void 0);_.P([_.vG("yt-icon-button"),_.Y("design:type",HTMLButtonElement)],dI.prototype,"iconButton",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dI.prototype,"onPopupClosed",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],dI);
_.H(dI,"ytd-icon-badge-topbar-button-renderer",function(){if(COw!==void 0)return COw;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return COw=W},{mode:1});var neU;var W8=function(){var W=_.O.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.S("web_darker_dark_theme");return W};
_.Z(W8,_.O);W8.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Ec.Object.defineProperties(W8.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],W8.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Array)],W8.prototype,"premiumOptions",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],W8.prototype,"darkerDarkTheme",void 0);_.P([_.T("premiumOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],W8.prototype,"hasPremiumOptions",null);
_.P([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],W8);
_.H(W8,"ytd-offline-promo-content",function(){if(neU!==void 0)return neU;var W=document.createElement("template");_.p(W,'\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="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return neU=W},{mode:1});var fqB;var ep=function(){var W=_.O.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.Z(ep,_.O);ep.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=XmC((W=this.data)==null?void 0:W.formats)};
ep.prototype.onClickSubmit=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.tv())==null||W.pause()};
ep.prototype.attached=function(){this.JSC$18509_scroller&&(this.JSC$18509_scroller.dialogElement=this.hostElement.parentNode)};
_.Ec.Object.defineProperties(ep.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
ep.prototype.dataChanged=ep.prototype.dataChanged;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],ep.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ep.prototype,"data",void 0);
_.P([_.J({computed:"computeIcon_(data.headersIcon)",value:""}),_.Y("design:type",String)],ep.prototype,"headersIcon",void 0);_.P([_.J(),_.Y("design:type",Array)],ep.prototype,"premiumOptions",void 0);_.P([_.vG("#scroller"),_.Y("design:type",Object)],ep.prototype,"JSC$18509_scroller",void 0);_.P([_.T("headersIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ep.prototype,"showIcon",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ep.prototype,"dataChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],ep);
_.H(ep,"ytd-offline-promo-renderer",function(){if(fqB!==void 0)return fqB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return fqB=W},{mode:1});var geC;var t$=function(){var W=_.O.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.Gv("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.Z(t$,_.O);_.r=t$.prototype;_.r.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.r.attached=function(){this.pausePlayer()};
_.r.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.r.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.r.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.r.handleSaveConsent=function(W){var e=this;this.showLoadingSpinner();this.showLoadingSpinner();Yiw(_.l(W,LKT)).catch(function(t){_.JC(new _.o_("Something went wrong when save consent "+(t.message?t.message:t)+"."));e.hideLoadingSpinner();e.showErrorMessage()})};
_.r.handleDisablePersonalization=function(W){var e=this;this.showLoadingSpinner();zZw(_.l(W,UG$)).then(function(){e.dialog.close();e.resumePlayer()}).catch(function(t){_.JC(new _.o_("Something went wrong when disable personalization "+(t.message?t.message:t)+"."));
e.hideLoadingSpinner();e.showErrorMessage()})};
_.r.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.Tm.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.r.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Tm.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.r.showErrorMessage=function(){var W=this;this.hasError=!0;_.Tm.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.r.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Fe(function(){try{var W=_.tv();W&&W.pause()}catch(e){}},100))};
_.r.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.tv();W&&W.play()}catch(e){}};
_.Ec.Object.defineProperties(t$.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var e=["SHIELD","WARNING","BAR_CHART"],t=this.data.eomV1Text.essentialCookieMsg.items,b=0;b<e.length&&b<t.length;b++)W.push({icon:e[b],text:t[b]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var e=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],t=this.data.eomV1Text.nonEssentialCookieMsg.items,b=0;b<e.length&&b<t.length;b++)W.push({icon:e[b],text:t[b]});return W}}});
t$.prototype.onDataChange=t$.prototype.onDataChange;_.P([_.J(),_.Y("design:type",Object)],t$.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],t$.prototype,"showEOMV1Text",void 0);_.P([_.J(),_.Y("design:type",Object)],t$.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Object)],t$.prototype,"hasError",void 0);_.P([_.J(),_.Y("design:type",Number)],t$.prototype,"showSpinnerJobId",void 0);_.P([_.J(),_.Y("design:type",Object)],t$.prototype,"dialogClass",void 0);
_.P([_.vG("#dialog"),_.Y("design:type",Object)],t$.prototype,"dialog",void 0);_.P([_.vG("#cb-header"),_.Y("design:type",HTMLElement)],t$.prototype,"header",void 0);_.P([_.vG("#lang-select"),_.Y("design:type",HTMLElement)],t$.prototype,"langSelect",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],t$.prototype,"ytComponentBehavior",void 0);
_.P([_.J(),_.Y("design:type",String)],t$.prototype,"youtubeLabel",void 0);_.P([_.J(),_.Y("design:type",Object)],t$.prototype,"logoName",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t$.prototype,"onDataChange",null);_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],t$.prototype,"eomEssentialCookieMsgItems",null);
_.P([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],t$.prototype,"eomNonEssentialCookieMsgItems",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],t$);
_.H(t$,"ytd-consent-bump-v2-lightbox",function(){if(geC!==void 0)return geC;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return geC=W},{mode:1});var TcS;var b5=function(){return _.O.apply(this,arguments)||this};
_.Z(b5,_.O);b5.prototype.ready=function(){if(!_.DK()||Xew)var W=!0;else Xew=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.rz(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.P([_.J(),_.Y("design:type",Object)],b5.prototype,"data",void 0);_.P([_.vG("#lightbox"),_.Y("design:type",Object)],b5.prototype,"lightBox",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],b5);
_.H(b5,"ytd-consent-bump-v2-renderer",function(){if(TcS!==void 0)return TcS;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return TcS=W},{mode:1});var JMl;var xiQ;var Oyu;var mi=function(){var W=_.O.apply(this,arguments)||this;W.ephemeralActionsEnabled=_.S("web_ephemeral_actions");return W};
_.Z(mi,_.O);_.r=mi.prototype;_.r.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Z4g(this.toastManager,this.toastType)};
_.r.open=function(W){this.toast&&(this.ephemeralAction&&_.ee().resolve(_.Is).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.r.close=function(W){var e;(e=this.toast)==null||e.close();this.toastManager&&W===1&&Z4g(this.toastManager,W)};
_.r.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.r.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.r.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.r.computeButtonClass_=function(W){return W?"toast-button":""};
_.r.computeText_=function(W){return _.Ub(W)};
_.r.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.K7("toast-opened-changed",this.toastOpened))};
_.r.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.Ec.Object.defineProperties(mi.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,e,t=(W=this.data)==null?void 0:(e=W.actionButton)==null?void 0:e.buttonRenderer;return(t==null?void 0:t.command)||(t==null?void 0:t.serviceEndpoint)||(t==null?void 0:t.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&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 W=[],e;((e=this.data)==null?0:e.responseText)&&W.push(_.Ub(this.data.responseText));var t;((t=this.data)==null?0:t.subText)&&W.push(_.Ub(this.data.subText));var b,m;if((b=this.data)==null?0:(m=b.actionButton)==null?0:m.buttonRenderer){var q,Q;W.push(((q=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Q=q.accessibilityData)==null?void 0:Q.label)||_.Ub(this.data.actionButton.buttonRenderer.text))}return W.filter(function(X){return X}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,e;return(e=(W=this.toast)==null?void 0:W.opened)!=null?e:!1}}});
mi.prototype.toastOpenedChangedForBinding=mi.prototype.toastOpenedChangedForBinding;mi.prototype.toastOpenedChanged=mi.prototype.toastOpenedChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],mi.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],mi.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],mi.prototype,"duration",void 0);
_.P([_.J(),_.Y("design:type",Number)],mi.prototype,"toastType",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],mi.prototype,"useCloseButton",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],mi.prototype,"closeToastOnActionButtonClick",void 0);_.P([_.J({value:function(){return _.Gv("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],mi.prototype,"closeButtonAriaLabel",void 0);_.P([_.J(),_.Y("design:type",Boolean)],mi.prototype,"toastOpened",void 0);_.P([_.J(),_.Y("design:type",Boolean)],mi.prototype,"hasOpened",void 0);_.P([_.J(),_.Y("design:type",Object)],mi.prototype,"ephemeralActionsEnabled",void 0);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mi.prototype,"command",null);
_.P([_.T("ephemeralActionsEnabled","labelText","command","duration"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mi.prototype,"ephemeralAction",null);_.P([_.T("ephemeralAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mi.prototype,"hasEphemeralAction",null);_.P([_.vG("#toast"),_.Y("design:type",Object)],mi.prototype,"toast",void 0);_.P([_.J({value:function(){return{style:"call-to-action-inverse"}}}),
_.Y("design:type",Object)],mi.prototype,"buttonOverrides",void 0);_.P([_.J({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],mi.prototype,"closeButtonOverrides",void 0);_.P([_.J({value:function(){return _.ee().resolve(_.Wi(_.r1))}}),
_.Y("design:type",Object)],mi.prototype,"toastManager",void 0);_.P([_.T("data.responseText","data.subText","data.actionButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mi.prototype,"labelText",null);_.P([_.ul("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mi.prototype,"toastOpenedChanged",null);
_.P([_.ul("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mi.prototype,"toastOpenedChangedForBinding",null);_.P([_.gz({is:"yt-notification-action-renderer",disableElementRegistration:!0})],mi);
_.H(mi,"yt-notification-action-renderer",function(){if(Oyu===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;xiQ===void 0&&(xiQ=document.createElement("template"));var b=xiQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Oyu=W}W=Oyu;return W},{mode:2});var ra=function(){var W=_.O.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(e){W.isLeaderTab&&W.downloadingCount>0&&(e.preventDefault(),
e.returnValue=!0)};
return W};
_.Z(ra,_.O);_.r=ra.prototype;
_.r.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,e=this.sessionTotalDownloads>1?_.Gv("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.Gv("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(e=this.sessionTotalDownloads>1?_.Gv("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.Gv("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.Gv("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Ub(this.data.responseText)!==e||_.Ub(this.data.subText)!==W)this.set("data.responseText",_.zq(e)),this.set("data.subText",_.zq(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.r.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.r.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.r.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.r.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.r.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
ra.prototype.updateCurrentDownloadProgress=ra.prototype.updateCurrentDownloadProgress;ra.prototype.updatePopup=ra.prototype.updatePopup;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],ra.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],ra.prototype,"ytEventForwardingBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],ra.prototype,"actionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"duration",void 0);_.P([_.J({selector:function(W){return _.ZxK(W.entities).length}}),
_.Y("design:type",Object)],ra.prototype,"downloadingCount",void 0);_.P([_.J({selector:tJU}),_.Y("design:type",Object)],ra.prototype,"downloadedCount",void 0);_.P([_.J({selector:function(W){var e=_.ZxK(W.entities);return e_B(W.entities,e)}}),
_.Y("design:type",Object)],ra.prototype,"downloadingOnlySmartDownloads",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"sessionTotalDownloads",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"sessionDownloaded",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"previousSessionsDownloaded",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"totalDownloadPercentage",void 0);
_.P([_.J({selector:function(W){var e;W=(e=_.ZxK(W.entities))!=null?e:[];return W.length>0?_.xGK(W.slice(-1)):0}}),
_.Y("design:type",Object)],ra.prototype,"currentDownloadProgress",void 0);_.P([_.J(),_.Y("design:type",Object)],ra.prototype,"currentDownloadPercentage",void 0);_.P([_.J({selector:_.krZ}),_.Y("design:type",Object)],ra.prototype,"isLeaderTab",void 0);_.P([_.vG("yt-notification-action-renderer"),_.Y("design:type",Object)],ra.prototype,"notificationActionRenderer",void 0);
_.P([_.BG("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ra.prototype,"updatePopup",null);_.P([_.BG("currentDownloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ra.prototype,"updateCurrentDownloadProgress",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],ra);
_.H(ra,"ytd-video-download-toast-renderer",function(){if(JMl!==void 0)return JMl;var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return JMl=W},{mode:1});var M2U;var sCC;var qJ=function(){return _.O.apply(this,arguments)||this};
_.Z(qJ,_.O);qJ.prototype.computeIsRedLogo=function(W,e){!W&&e&&(W=e);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
qJ.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],qJ.prototype,"componentBehavior",void 0);_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Y("design:type",Boolean)],qJ.prototype,"isRedLogo",void 0);_.P([_.J({computed:"computeLogoName(data)"}),_.Y("design:type",String)],qJ.prototype,"logoName",void 0);_.P([_.J({value:{}}),_.Y("design:type",Object)],qJ.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],qJ.prototype,"logoType",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-logo"})],qJ);
_.H(qJ,"ytd-logo",function(){if(sCC!==void 0)return sCC;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return sCC=W},{mode:_.Qe("kevlar_poly_si_batch_j074")?1:2});var Ri=function(){var W=_.O.apply(this,arguments)||this;W.animationRef={};return W};
_.Z(Ri,_.O);_.r=Ri.prototype;_.r.attached=function(){document.addEventListener("yt-navigate-finish",_.aH(this,this.logYoodle))};
_.r.detached=function(){document.removeEventListener("yt-navigate-finish",_.aH(this,this.logYoodle))};
_.r.logYoodle=function(){var W,e;if((W=this.data)==null?0:(e=W.loggingDirectives)==null?0:e.trackingParams)this.ytRendererBehavior.markDirty(),_.Sg().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.r.computeHideImg=function(W,e){return!!W||!!e};
_.r.computeHideYtdLogo=function(W,e){return!W||!!e};
_.r.computeHideLottie=function(W){return!W};
_.r.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.r.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),e=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getLogoTitleText(this.data),b=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==e&&(this.animatedUrl=e);this.logoTitleText!==t&&(this.logoTitleText=t);this.lottieUrl!==b&&(this.lottieUrl=b,this.lottiePlayerProps=this.computeLottiePlayerProps(b))};
_.r.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.LXG(W.thumbnails,122)||"":""};
_.r.getThumbnailUrl=function(W,e){if(!e)return"";var t,b;W=W?(t=e.darkThemeLogo)==null?void 0:t.thumbnail:(b=e.lightThemeLogo)==null?void 0:b.thumbnail;return this.getSanitizedThumbnail(W)};
_.r.getAnimatedThumbnailUrl=function(W,e){return e?this.getSanitizedThumbnail(W?e.darkThemeAnimatedLogo:e.lightThemeAnimatedLogo):""};
_.r.getLogoTitleText=function(W){if(W)return _.Ub(W.tooltipText)};
_.r.computeLogoIcon=function(W,e){if(e){var t,b;return W?(t=e.darkThemeLogo)==null?void 0:t.icon:(b=e.lightThemeLogo)==null?void 0:b.icon}};
_.r.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.r.getLottieUrl=function(W,e){var t,b,m,q;return W?e==null?void 0:(t=e.darkThemeLogo)==null?void 0:(b=t.lottieAnimation)==null?void 0:b.url:e==null?void 0:(m=e.lightThemeLogo)==null?void 0:(q=m.lottieAnimation)==null?void 0:q.url};
_.r.computeLottiePlayerProps=function(W){if(W){var e;if((e=this.animationRef)==null?0:e.lottieEl){var t;(t=this.animationRef)==null||t.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.r.onLottieError=function(){this.data&&this.lottieUrl&&_.q2(this.hostElement,"yoodle-error")};
_.r.onImgError=function(){this.data&&!this.lottieUrl&&_.q2(this.hostElement,"yoodle-error")};
Ri.prototype.playAnimation=Ri.prototype.playAnimation;Ri.prototype.renderLogoEntity=Ri.prototype.renderLogoEntity;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Ri.prototype,"data",void 0);_.P([_.J({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ri.prototype,"hideImg",void 0);
_.P([_.J({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ri.prototype,"hideYtdLogo",void 0);_.P([_.J({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Y("design:type",Boolean)],Ri.prototype,"hideLottie",void 0);_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Y("design:type",Boolean)],Ri.prototype,"isRedLogo",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],Ri.prototype,"useDarkThemeYoodle",void 0);_.P([_.J(),_.Y("design:type",String)],Ri.prototype,"url",void 0);_.P([_.J(),_.Y("design:type",String)],Ri.prototype,"animatedUrl",void 0);_.P([_.J(),_.Y("design:type",String)],Ri.prototype,"logoTitleText",void 0);_.P([_.J({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Y("design:type",Object)],Ri.prototype,"logoIcon",void 0);_.P([_.J(),_.Y("design:type",Object)],Ri.prototype,"logoType",void 0);
_.P([_.J(),_.Y("design:type",String)],Ri.prototype,"lottieUrl",void 0);_.P([_.J(),_.Y("design:type",Object)],Ri.prototype,"lottiePlayerProps",void 0);_.P([_.J(),_.Y("design:type",Object)],Ri.prototype,"animationRef",void 0);_.P([_.ul("data"),_.ul("useDarkThemeYoodle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ri.prototype,"renderLogoEntity",null);
_.P([_.wz("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Ri.prototype,"playAnimation",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Ri);
_.H(Ri,"ytd-yoodle-renderer",function(){if(M2U!==void 0)return M2U;var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return M2U=W},{mode:_.Qe("kevlar_poly_si_batch_j074")?1:2});var h$U;var HyT;var QY=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.Z(QY,_.O);_.r=QY.prototype;_.r.onYoodleError=function(){_.S("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.r.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.r.computeTitle=function(W,e,t){return t&&(e==null?0:e.tooltipText)?_.Ub(e.tooltipText):_.Ub(W)};
_.r.computeAriaLabel=function(W,e,t){return t&&(e==null?0:e.tooltipText)?_.Ub(W):""};
_.r.computeShowYoodle=function(W,e,t){return!W||!e&&!!t&&!_.kJ.isEmpty(t)};
_.r.onNavigateHomeAction=function(){if(_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.rz(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.r.computeLogoHref=function(W,e,t){var b;(t==null?0:t.onTapCommand)?b=this.componentBehavior.computeHref_(t.onTapCommand):W&&(b=this.componentBehavior.computeHref_(W));return b?b:e};
_.r.computeCommand=function(W,e){return(e==null?void 0:e.onTapCommand)||W};
_.r.getEndpointForm=function(){if(_.S("kevlar_topbar_disable_cache_only_home")){var W=_.ee().resolve(_.hh),e=QzM(W.getState())||"";W=_.UTL(W.getState())||"";return{disableCache:e==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
QY.prototype.onYoodleError=QY.prototype.onYoodleError;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],QY.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],QY.prototype,"componentBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],QY.prototype,"ytdReduxBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],QY.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],QY.prototype,"countryCode",void 0);_.P([_.J({selectorArgs:["data.overrideEntityKey"],selector:function(W,e){return _.I1(W.entities,"logoEntity",e)}}),
_.Y("design:type",Object)],QY.prototype,"logoEntity",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Y("design:type",Boolean)],QY.prototype,"showYoodle",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],QY.prototype,"yoodleError",void 0);_.P([_.J({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],QY.prototype,"titleText",void 0);
_.P([_.J({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],QY.prototype,"ariaLabelText",void 0);_.P([_.J({value:"/"}),_.Y("design:type",String)],QY.prototype,"defaultEndpointUrl",void 0);_.P([_.J({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Y("design:type",String)],QY.prototype,"endpointUrl",void 0);
_.P([_.J({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Y("design:type",String)],QY.prototype,"command",void 0);_.P([_.J(),_.Y("design:type",Object)],QY.prototype,"logoType",void 0);_.P([_.J({}),_.Y("design:type",Boolean)],QY.prototype,"useDarkThemeYoodle",void 0);_.P([_.wz("yoodle-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QY.prototype,"onYoodleError",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],QY);
_.H(QY,"ytd-topbar-logo-renderer",function(){if(HyT!==void 0)return HyT;var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return HyT=W},{mode:_.Qe("kevlar_poly_si_batch_j027")?1:2});var K3T=0;var POC=_.Pr.SEARCH_APPEND_LABEL,V2g=_.Pr.SUGGESTION_NEW_VIDEOS_TEXT,iy9=_.Pr.SUGGESTION_THUMBNAIL_LABEL,YeS=_.Pr.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,z$U=_.NN(function(W){function e(y8){var I$,Rm;return _.F(function(q9){if(q9.nextAddress==1)return I$=new Request(y8),_.Qh(q9,2),_.a(q9,fetch(I$,{credentials:"include"}),4);if(q9.nextAddress!=2)return sB(!0),_.Hi(q9,0);Rm=_.w9(q9);_.JC(Rm);_.u8(q9)})}
var t=W.isHighlighted;var b=W.suggestion;var m=W.onClickCallback;var q=W.onHoverUpdateCallback;var Q=W.labels;var X=W.queryBuilderFunction;var I=W.onRemoveCallback;var u=W.suggestionIndex;var c=W.generateUniqueId;var v=W.highlightedId;var D=W.useScrollMargin;var B=W.isKeyboardMode;var k=null,n=null,f=_.zT("div"),M=_.zT("span");W=_.R(_.up(!1,void 0,"CgAMgc"));var K=W.next().value,U=W.next().value,V=_.Um("a",function(y8){y8&&_.OR(237477,y8,n,function(I$){n=I$})}),L=_.Um("button",function(y8){y8&&_.OR(237477,
y8,n,function(I$){n=I$})}),E=_.Be(function(y8){if((y8==null?void 0:y8.button)===2)return y8.preventDefault(),!1;
var I$=_.fc();I$&&k&&_.U6(I$,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Rm;m(y8,b().text,b().index,b().entityMid,y8==null?void 0:(Rm=y8.detail)==null?void 0:Rm.wasSelectedByKeyboard);return!1}),RR=function(){return b().type===35},uv=function(){return _.S("desktop_enable_single_suggestion_highlight")},GS=function(){return _.mn("desktop_suggestions_panel_row_height")||0},k9=function(){var y8;
return _.S("desktop_enable_new_video_metadata")&&((y8=b())==null?void 0:y8.hasNewVideo)===!0},CQ=function(){return _.S("desktop_enable_visual_suggest")},fQ=function(){return _.S("desktop_enable_entity_suggest")&&SeM(b())},iv=function(){return b().entitySubtitle},hz=function(){return uv()?(t==null?void 0:t())||DD()&&!(B==null?0:B()):(t==null?void 0:t())||DD()},ES=function(){var y8=_.Ot("SBOX_SETTINGS");
return RR()&&!(y8==null?0:y8.HIDE_REMOVE_LINK)},Wu=function(){return BcM(b(),{useEntityName:fQ()})},pr,ay=!((pr=_.ee().resolve(_.Wi(_.zf)))==null||!pr()),PU=function(){return RR()?_.S("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},cu=function(){return Q==null?void 0:Q().SUGGESTION_DISMISS_LABEL},LQ=function(){return Q==null?void 0:Q().SUGGESTION_DISMISSED_LABEL};
W=_.R(_.up(!1,void 0,"RcUcKd"));pr=W.next().value;var sB=W.next().value;W=_.R(_.up(!1,void 0,"yGR7je"));var z1=W.next().value,FD=W.next().value,DD=z1,nr=_.Be(function(){X(M.value.innerText);return!1}),UB=_.Be(function(y8){y8.preventDefault();
return!1}),ZD=_.Be(function(y8){var I$=b().text,Rm=_.Ot("SBOX_SETTINGS"),q9="https://"+(Rm.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
q9+="&delq="+encodeURIComponent(I$);(I$=Rm==null?void 0:Rm.PSUGGEST_TOKEN)&&(q9+="&tok="+I$);(Rm=Rm==null?void 0:Rm.SESSION_INDEX)&&(q9+="&authuser="+Rm);e(q9);y8.preventDefault();(y8=_.fc())&&n&&_.U6(y8,n,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");I(u==null?void 0:u());return!1}),US=_.Be(function(){if(uv()&&(B==null?0:B()))return!1;
FD(!0);q(!0);return!1}),Ha=_.Be(function(){FD(!1);
q(!1);return!1}),zZ=_.Be(function(){U(!0);
return!1}),qo=_.Be(function(){U(!1);
return!1}),sS=_.Be(function(y8){y8.preventDefault();
var I$;(y8=(I$=b().entityThumbnailAttributionUrl)!=null?I$:"")&&_.vO9(y8);return!1});
W=_.R(_.up("",void 0,"k9uVge"));var ST=W.next().value,SP=W.next().value;_.jm(function(){ES()&&SP(c==null?void 0:c(u==null?void 0:u()));f.value&&_.OR(12453,f.value,k,function(y8){k=y8})});
return _.w(_.G,{cond:pr,then:function(){var y8={};return _.w("div",{class:_.ve("ytSuggestionComponentRemovedText",(y8.ytSuggestionComponentLargerRemovedText=function(){return CQ()},y8)),
style:function(){return GS()>0?"height: "+GS()+"px;":""},
role:"button"},LQ)},
else:function(){var y8={},I$={};return _.w("div",{class:_.ve("ytSuggestionComponentSuggestion",(y8.ytSuggestionComponentSuggestionHover=function(){return!uv()},y8.ytSuggestionComponentHighlighted=hz,y8.ytSuggestionComponentPersonalizedSuggestion=RR,y8.ytSuggestionComponentMweb=!1,y8.ytSuggestionComponentLargerSuggestion=function(){return k9()||CQ()},y8.ytSuggestionComponentThumbnailSuggestion=function(){return CQ()},y8.ytSuggestionComponentRoundedSuggestion=function(){return _.S("desktop_enable_scrollable_suggestions_panel")&&
_.S("desktop_enable_suggestions_panel_padding")},y8.ytSuggestionComponentThumbnailPadding=function(){return CQ()&&!RR()},y8)),
style:function(){return GS()>0?"height: "+GS()+"px;":""},
role:"presentation","on:mousedown":E,"on:mouseover":US,"on:mouseout":Ha,el:f},_.w("div",{class:_.ve("ytSuggestionComponentText",(I$.ytSuggestionComponentScrollMargin=D,I$)),"aria-label":function(){return k9()?b().text+" "+V2g:b().text},
id:function(){return c==null?void 0:c(u==null?void 0:u())},
"on:mousedown":E,role:"option"},_.w(_.G,{cond:function(){return b().type!==33},
then:function(){return _.w(_.kD,{icon:PU,className:"ytSuggestionComponentIcon"})}}),_.w("div",{class:"ytSuggestionComponentLeftContainer"},_.w("span",{el:M,
role:"button",tabindex:0},_.w(_.lV,{each:Wu},function(Rm){return Rm.bold?_.w("span",{class:"ytSuggestionComponentBold"},Rm.text):_.w("span",null,Rm.text)})),_.w(_.G,{cond:function(){return fQ()&&!!b().entitySubtitle||k9()},
then:function(){return _.w("div",{class:"ytSuggestionComponentMetadataContainer"},_.w(_.G,{cond:function(){return fQ()&&!!b().entitySubtitle},
then:function(){return _.w("div",{class:"ytSuggestionComponentEntitySubtitle"},iv)}}),_.w(_.G,{cond:function(){return k9()},
then:function(){return _.w("div",{class:"ytSuggestionComponentNewVideoContainer"},_.w("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.w("div",{class:"ytSuggestionComponentNewVideoText"},V2g))}}))}}))),_.w("div",{class:"ytSuggestionComponentRightContainer"},_.w(_.G,{cond:function(){return CQ()&&b().visualSuggestUrl!==void 0},
then:function(){var Rm={};return _.w("div",{class:"ytSuggestionComponentThumbnailContainer"},_.w("img",{"aria-label":iy9,class:_.ve("ytSuggestionComponentVisualSuggestThumbnail",(Rm.ytSuggestionComponentCircularFrame=function(){return fQ()&&b().subtypes.includes(790)},Rm.ytSuggestionComponentEntitySuggestThumbnail=function(){return fQ()},Rm)),
src:function(){return b().visualSuggestUrl}}),_.w(_.G,{cond:function(){return fQ()&&!!b().entityThumbnailAttributionUrl},
then:function(){var q9={};return _.w("span",{title:YeS,role:"tooltip"},_.w("div",{"on:mouseover":zZ,"on:mouseout":qo,"on:mousedown":sS,class:_.ve("ytSuggestionComponentThumbnailOverlay",(q9.ytSuggestionComponentThumbnailOverlayHidden=function(){return!K()},q9))},_.w(_.kD,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.w(_.kq,null,_.w(_.Zb,{when:function(){return CQ()&&ES()}},function(){var Rm={};
return _.w("button",{class:_.ve("ytSuggestionComponentRemoveLinkClearButton",(Rm.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return ST()&&ST()===(v==null?void 0:v())},Rm.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!hz()},Rm)),
el:L,"on:mousedown":ZD,"aria-label":cu,id:function(){return ST()}},_.w(_.kD,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.w(_.Zb,{when:function(){return!(CQ()&&b().visualSuggestUrl!==void 0)&&ES()}},function(){var Rm={};
return _.w("a",{class:_.ve("ytSuggestionComponentRemoveLink",(Rm.ytSuggestionComponentRemoveLinkDark=ay,Rm.ytSuggestionComponentRemoveLinkSelected=function(){return ST()&&ST()===(v==null?void 0:v())},Rm)),
el:V,"on:mousedown":ZD,"aria-label":cu,tabindex:0,role:"button",id:function(){return ST()}},cu)}),_.w(_.Zb,{when:function(){return!1}},function(){return _.w("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":nr,"on:mousedown":UB,role:"button","aria-label":POC},_.w(_.kD,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"tg");var UiB=_.NN(function(){return _.w("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.w("button",{class:"ytdTextInputAssistantButton","on:click":_.Be(function(){$ig().inputMethodsTracker.add(3);var W,e=(W=_.Ot("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(e)return _.sT("//www.google.com/textinputassistant/14/"+e+"_tia.js"),!1})},_.w("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ug");var L3g=function(){this.cache=new Map},EeS=function(W){for(var e=_.R(W.cache.entries()),t=e.next();!t.done;t=e.next()){var b=_.R(t.value);
t=b.next().value;b=b.next().value;b.suggestions.some(function(m){return m.type===35})&&W.cache.delete(t)}};var AMg=_.Pr.SEARCH,NcQ=_.Pr.SEARCH_CLEAR_LABEL,diT=new _.W_("FAKE_SUGGEST_RESPONSE");_.mM(_.NN(function(W){function e(){zZ||(zZ=setTimeout(function(){sS()},1E3))}
function t(GZ,uh,Bu){if(GZ.trim()){Ha=GZ;_.xq("REFINEMENTS_TUPLE",void 0);ZD=!0;var un;uh=yMU(z1,uh);var Ry=(un=W.searchEndpoint)==null?void 0:un.call(W);un=PU.value.value;Ry||(Ry=SzQ);var Gy;(Gy=_.l(Ry.commandMetadata,_.ez))!=null&&Gy.url||(Gy=Error("ol`"+JSON.stringify(Ry)),_.gQ(Gy),Ry=SzQ);Gy=_.kJ.unsafeClone(Ry);Ry=_.Mq(_.l(Gy.commandMetadata,_.ez).url,"search_query",GZ);_.VV(location.href,"sv")==="1"&&(_.l(Gy,_.Bw).params="EgOAAgE%3D",Ry=_.Mq(Ry,"sv","1"));_.l(Gy,_.Bw)&&(_.l(Gy,_.Bw).query=GZ);
Ry=Ry.replace(/%20/g,"+");_.l(Gy.commandMetadata,_.ez).url=Ry;Bu=_.S("desktop_enable_entity_suggest")?{entityMid:Bu}:{};_.ee().resolve(_.tQ).resolveCommand(Gy,{form:{tempData:Object.assign({},{gs_l:uh,oq:un!=null?un:GZ},Bu)}});sS();PU.value.value=GZ;PU.value.blur();z1.reset()}}
function b(GZ){return _.F(function(uh){return uh.return(new Promise(function(Bu){var un=new XMLHttpRequest;un.open("GET",aql(GZ),!0);un.withCredentials=!0;var Ry=_.Ot("SBOX_SETTINGS");(Ry==null?0:Ry.SEND_VISITOR_DATA)&&un.setRequestHeader("X-Goog-Visitor-Id",Ry==null?void 0:Ry.VISITOR_DATA);un.onload=function(){Bu(un.responseText)};
un.onerror=function(){_.JC(Error("pl"));Bu(null)};
setTimeout(function(){un.abort()},1E4);
un.send(null)}))})}
function m(GZ){var uh,Bu,un,Ry;return _.F(function(Gy){switch(Gy.nextAddress){case 1:return uh={credentials:"include",headers:Iqw()},window.AbortController&&(Bu=new AbortController,setTimeout(function(){Bu.abort("ytsbox-suggest-timeout")},1E4),uh.signal=Bu.signal),_.Qh(Gy,2),_.a(Gy,fetch(aql(GZ),uh),4);
case 4:un=Gy.yieldResult.text();_.Hi(Gy,3);break;case 2:return Ry=_.w9(Gy),Ry!=="ytsbox-abort-last"&&Ry!=="ytsbox-suggest-timeout"&&_.JC(Ry),Gy.return(null);case 3:return Gy.return(un)}})}
function q(GZ){var uh,Bu,un;return _.F(function(Ry){switch(Ry.nextAddress){case 1:if(uh=_.ee().resolve(_.Wi(diT)))return Ry.return(uh);Bu=Date.now();e();return _.S("yt_searchbox_xhr")?_.a(Ry,b(GZ),5):_.a(Ry,m(GZ),4);case 4:un=Ry.yieldResult;Ry.jumpTo(3);break;case 5:un=Ry.yieldResult;case 3:if(un){zZ&&(clearTimeout(zZ),zZ=null);var Gy=z1,JE=Bu,Je=GZ.query.length===0;JE=Date.now()-JE;Je?Gy.zeroPrefixRoundTripTime=JE:(Gy.JSC$18489_totalRoundTripTime+=JE,Gy.maxRoundTripTime=Math.max(Gy.maxRoundTripTime,
JE),Je=Math.floor(JE/100),Je>=jCC.length?++Gy.roundTripTimeHistogram[9]:++Gy.roundTripTimeHistogram[jCC[Je]])}return Ry.return(un)}})}
function Q(GZ){var uh,Bu,un;return _.F(function(Ry){if(Ry.nextAddress==1)return(uh=sB.cache.get(XBB(GZ)))?Ry.return(uh):_.a(Ry,q(GZ),2);Bu=Ry.yieldResult;if(Bu===null)return Ry.return(null);un=new oeC(Bu);GZ.query.length===0&&un.suggestions.length===0||sB.cache.set(XBB(GZ),un);return Ry.return(un)})}
function X(GZ){var uh,Bu;return _.F(function(un){if(un.nextAddress==1){US=!1;var Ry=Ha;Ry=_.w0S()==="search"?(_.VV(location.href,"search_query")||_.VV(location.href,"q"))===Ry:!1;uh=new F31(GZ,Ry?Ha:null);return _.a(un,Q(uh),2)}Bu=un.yieldResult;if(Bu===null)return un.return();uh.query.length===0&&(z1.zeroPrefixSuggestionCount=Bu.suggestions.length);if(uh.id<=qo)return z1.outOfSyncResponseCount++,un.return();if(document.activeElement!==PU.value)return un.return();qo=uh.id;var Gy=z1,JE=Bu.rawResponse[2]||
{};Gy.experimentTriggeredBeforeFinal||(Gy.experimentTriggeredBeforeFinal=Gy.experimentTriggeredFinal);Gy.experimentTriggeredFinal=!!JE.e;z1.updateSuggestions(Bu.suggestions);f(-1);ES([]);Bu.suggestions!==B()&&Sh(Bu.suggestions.length);k(Bu.suggestions);uv(Bu.suggestions.length>0&&Bu.suggestions[0].type===33);LQ&&(LQ.hidden=Bu.suggestions.length===0,RR()?(LQ.style.minWidth="",Gy=LQ.style,JE=(Ry=B()[0])==null?void 0:Ry.ignoredPrefix,Gy.marginLeft=(JE?Math.min(JE.length*6,cu.value.offsetWidth):0).toString()+
"px"):(LQ.style.minWidth=cu.value.offsetWidth+"px",LQ.style.marginLeft="0"),XY());_.u8(un)})}
function I(){if(!ZD)return!1;var GZ=_.Ot("REFINEMENTS_TUPLE");return GZ?(GZ=GZ[1].map(function(uh,Bu){return new Dig([uh,0,[71]],PU.value.value,Bu)}),B()!==GZ&&Sh(GZ.length),ES([]),k(GZ),z1.updateSuggestions(GZ),ZD=!1,LQ.hidden=GZ.length===0,US=GZ.length>0,!0):!1}
function u(){var GZ=PU.value.value;(typeof GZ==="string"||GZ instanceof String)&&GZ!==""?V(!0):V(!1)}
function c(){if(_.w0S()==="search"){var GZ=window.location.href;try{var uh=_.VV(GZ,"search_query")||_.VV(GZ,"q")||""}catch(Bu){uh=""}uh&&(PU.value.value=uh,V(!0))}}
var v=_.R(_.up([],void 0,"kGFAjf")),D=v.next().value;v=v.next().value;var B=D,k=v;D=_.R(_.up(-1,void 0,"mLGL9e"));var n=D.next().value,f=D.next().value;D=_.R(_.up(-1,void 0,"u2rYdc"));var M=D.next().value,K=D.next().value;D=_.R(_.up(!1,void 0,"W9DFC"));var U=D.next().value,V=D.next().value;D=_.R(_.up(!1,void 0,"Ip4dNc"));var L=D.next().value,E=D.next().value;v=_.R(_.up(!1,void 0,"ZNKSQb"));D=v.next().value;v=v.next().value;var RR=D,uv=v;v=_.R(_.up(!1,void 0,"JBrGLd"));D=v.next().value;var GS=v.next().value;
v=_.R(_.up(!1,void 0,"P2pD6e"));var k9=v.next().value,CQ=v.next().value;v=_.R(_.up(1,void 0,"SjP20c"));var fQ=v.next().value,iv=v.next().value;v=_.R(_.up([],void 0,"h4dRaf"));var hz=v.next().value,ES=v.next().value;v=_.R(_.up(!1,void 0,"TUTzaf"));var Wu=v.next().value,pr=v.next().value;v=_.S("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var ay=_.zT("yt-searchbox"),PU=_.zT("input"),cu=_.zT("div"),LQ,sB=
new L3g,z1=$ig(),FD=_.ee().resolve(_.Wi(_.zf)),DD=function(){var GZ;return((GZ=W.forceDarkMode)==null?void 0:GZ.call(W))||!(FD==null||!FD())},nr=function(){return _.S("desktop_enable_scrollable_suggestions_panel")},UB="i"+K3T++,ZD=!1,US=!1,Ha="",zZ=null,qo=-1,sS=function(){ES([]);
k([]);uv(!1);LQ&&(LQ.hidden=!0);zZ&&(clearTimeout(zZ),zZ=null);f(-1)},ST=function(GZ,uh){GZ.preventDefault();
pr(!0);LQ&&(LQ.hidden=!1);var Bu=n();GZ=B();var un=hz();uh=wmE(uh);Bu+=uh;for(Bu>=GZ.length?Bu=-1:Bu<-1&&(Bu=GZ.length-1);Bu!==-1&&(un.includes(Bu)||Bu>=GZ.length||Bu<0);)Bu+=uh,Bu>=GZ.length&&(Bu=-1);f(Bu);n()>=0&&(PU.value.value=B()[n()].text,K(0),u(),GZ=n(),un=M(),(un=document.getElementById(KP[GZ][un]))&&nr()&&(GZ===B().length-1?LQ.scrollTop=LQ.scrollHeight:un.scrollIntoView({block:"nearest",inline:"start"})))},SP=_.Be(function(GZ){if(!(GZ.relatedTarget instanceof Element&&GZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){E(!0);
var uh;(uh=W.focusCallback)==null||uh.call(W,!0);I()||(US?LQ.hidden=!1:(_.q2(ay.value,"yt-autonav-pause-focus",{}),X(GZ.target.value)))}}),y8=_.Be(function(GZ){if(!(GZ.relatedTarget instanceof Element&&GZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){E(!1);
var uh;(uh=W.focusCallback)==null||uh.call(W,!1);LQ.scrollTop=0;LQ.hidden=!0;_.q2(ay.value,"yt-autonav-pause-blur",{})}}),I$=function(GZ){GZ=wmE(GZ);
var uh;((uh=KP[n()])==null?0:uh[M()+GZ])&&K(M()+GZ)},Rm=_.Be(function(GZ){var uh=GZ.target;
switch(GZ.keyCode){case 13:GZ.preventDefault();var Bu;if((Bu=KP[n()])==null?0:Bu[M()]){var un;(un=document.getElementById(KP[n()][M()]))==null||un.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}GZ=GZ.shiftKey?4:3;Bu=z1;un=n();Bu.selectedSuggestionIndex=un;t(uh.value,GZ);break;case 27:LQ&&(LQ.hidden=!0);break;case 40:ST(GZ,40);break;case 38:ST(GZ,38);break;case 39:I$(39);break;case 37:I$(37);break;case 229:z1.inputMethodsTracker.add(4);break;default:z1.inputMethodsTracker.add(1),
kp9(z1)}return!1}),q9=_.Be(function(GZ){X(GZ.target.value);
u();nr()&&LQ&&(LQ.scrollTop=0);return!1}),Ba=_.Be(function(){z1.inputMethodsTracker.add(2);
kp9(z1);return!1});
_.jm(function(){if(LQ){z1.reset();if(window.ResizeObserver){var GZ=new ResizeObserver(function(){RR()||(LQ.style.minWidth=cu.value.offsetWidth+"px")});
GZ.observe(cu.value);(new ResizeObserver(function(){XY()})).observe(LQ);
_.fh(function(){GZ.disconnect()})}c();
window.addEventListener("yt-navigate-finish",c);window.addEventListener("yt-focus-searchbox",function(){PU.value.focus()});
var uh;GS((uh=_.Ot("SBOX_SETTINGS"))==null?void 0:uh.HAS_ON_SCREEN_KEYBOARD)}else _.gQ(new _.o_("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var HF=_.Be(function(GZ){GZ.preventDefault();t(PU.value.value,12);return!1}),HU=_.Be(function(GZ){GZ.preventDefault();
var uh,Bu;(uh=PU)==null||(Bu=uh.value)==null||Bu.focus();var un,Ry;((un=PU)==null?void 0:(Ry=un.value)==null?void 0:Ry.value)!==""&&(PU.value.value="",PU.value.dispatchEvent(new Event("input")));return!1}),kl=_.Be(function(){var GZ=FGg(PU.value.value,B().filter(function(uh){return uh.type!==35}).map(function(uh){return{label:uh.text}}));
_.RT(ay.value,"yt-open-popup-action",[{openPopupAction:GZ},document.body]);return!1}),WR=_.Be(function(){PU.value.focus();
return!1}),mf=function(GZ,uh,Bu,un,Ry){z1.selectedSuggestionIndex=Bu;
t(uh,Ry?3:1,un)},Ch=function(GZ){PU.value.value=GZ;
PU.value.dispatchEvent(new Event("input"));z1.inputMethodsTracker.add(5);kp9(z1,!0)},KP=[[]],Pi=function(GZ){var uh="searchbox-suggestion"+_.TR(_.Zm);
KP[GZ].push(uh);return uh},Sh=function(GZ){if(B()){KP=[[]];
for(var uh=0;uh<GZ;uh++)KP.push([])}},XY=function(){if(nr()){var GZ=LQ,uh=GZ.scrollTop;
GZ=GZ.scrollHeight-GZ.clientHeight;CQ(uh>=GZ);uh=Math.abs(GZ-uh);uh<=40?iv(1-(40-uh)/40):iv(1)}},oM=function(){return"opacity: "+fQ()*100+"%"},Zg=_.Be(function(){XY();
return!1}),x9=_.Be(function(){pr(!1);
return!1}),KQ,cU={},rE={},CO={},a$={};
return _.w("yt-searchbox",{class:_.ve("ytSearchboxComponentHost",(cU.ytSearchboxComponentMweb=!1,cU.ytSearchboxComponentDesktop=!0,cU["yt-searchbox-filled-query"]=function(){return U()},cU["ytd-masthead"]=function(){return!L()},cU.ytSearchboxComponentHostDark=DD,cU)),
role:"search",el:ay,"client-ve-type":10349},_.w("div",{el:cu,"on:click":WR,class:_.ve("ytSearchboxComponentInputBox",(rE.ytSearchboxComponentInputBoxDark=DD,rE.ytSearchboxComponentInputBoxHasFocus=L,rE))},_.w("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":HF},_.w(_.G,{cond:L,then:function(){return _.w("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.w(_.kD,{icon:"SEARCH"}))}}),_.w("input",{el:PU,
class:_.ve("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":UB,"aria-expanded":!((KQ=LQ)==null?0:KQ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":y8,"on:focus":SP,"on:input":q9,"on:keydown":Rm,"on:paste":Ba,placeholder:W.placeholderText,"aria-activedescendant":function(){var GZ;return(GZ=KP[n()])==null?void 0:GZ[M()]},
"aria-autocomplete":"list",role:"combobox"})),_.w(_.G,{cond:D,then:function(){return _.w("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.w(UiB,null))}}),_.w(_.G,{cond:U,
then:function(){return _.w("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.w("button",{class:"ytSearchboxComponentClearButton","on:click":HU,"aria-label":W.clearButtonAriaLabel||NcQ},_.w(_.kD,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.w(_.jN,{model:{}})))}})),_.w("button",{class:_.ve("ytSearchboxComponentSearchButton",(CO.ytSearchboxComponentSearchButtonDark=DD,CO)),
"on:click":HF,"aria-label":AMg,title:W.placeholderText},_.w(_.kD,{icon:"SEARCH"})),_.w(_.G,{cond:function(){if(l8C()&&_.S("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(GZ){var uh={};return _.w("div",{class:_.ve("ytSearchboxComponentVoiceSearchWrapper",(uh.ytSearchboxComponentHideVoiceSearchButton=function(){return U()},uh))},_.w(_.nU,{data:GZ},{buttonRenderer:function(Bu){return _.w(_.PA,{data:Bu.data,
onButtonClickCallback:function(){}})}}))}}),_.w("div",{el:_.dA(function(GZ){return void(LQ=GZ)}),
id:UB,class:_.ve("ytSearchboxComponentSuggestionsContainer",(a$.ytSearchboxComponentSuggestionsContainerDark=DD,a$["yt-searchbox-suggestions-container"]=!1,a$.ytSearchboxComponentSuggestionsContainerScrollable=nr(),a$.ytSearchboxComponentSuggestionsContainerAnimated=v,a$)),"on:scroll":Zg,"on:mousemove":x9,role:"listbox",hidden:!0},_.w(_.lV,{each:B},function(GZ,uh){return _.w(z$U,{suggestion:GZ,isHighlighted:function(){return uh()===n()},
onClickCallback:mf,onHoverUpdateCallback:function(Bu){if(_.S("desktop_enable_single_suggestion_highlight")){var un=uh();Bu&&(K(0),f(un))}},
onRemoveCallback:function(Bu){EeS(sB);Bu===void 0||Bu<0||hz().includes(Bu)||ES([].concat(_.kP(hz()),[Bu]))},
labels:W.labels,queryBuilderFunction:Ch,suggestionIndex:uh,generateUniqueId:Pi,highlightedId:function(){var Bu;return(Bu=KP[n()])==null?void 0:Bu[M()]},
useScrollMargin:nr(),isKeyboardMode:Wu})}),_.w(_.G,{cond:function(){return!RR()&&B().find(function(GZ){return GZ.type!==35})&&_.S("searchbox_reporting")},
then:function(){return _.w("button",{class:"ytSearchboxComponentReportButton","on:mousedown":kl},_.Gv("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.w(_.G,{cond:function(){return!k9()&&nr()},
then:function(){return _.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.w("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:oM}))}})))},"vg"),"yt-searchbox",{props:{searchEndpoint:_.Eu,
placeholderText:_.Eu,labels:_.Eu,voiceSearchButton:_.Eu,focusCallback:_.bt,clearButtonAriaLabel:_.Eu,forceDarkMode:_.Eu}});var Fs=function(){var W=_.O.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.Gv("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Gv("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Gv("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Gv("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.desktopUnifiedSearchPanelMode=_.S("desktop_enable_unified_search_panel");
W.cinematicTheaterMode=_.S("web_cinematic_theater_mode");W.ytSearchboxFocused=!1;W.searchboxLabels=_.Ot("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=w4E();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=function(e){W.ytSearchboxFocused=e};
return W};
_.Z(Fs,_.O);_.r=Fs.prototype;_.r.computeSimpleText=function(W){return _.Ub(W)};
_.r.onDarkChanged=function(){for(var W=_.R(this.buttons||[]),e=W.next();!e.done;e=W.next())e.value.isOverlay=!!this.dark;W=_.R(this.buttonRenderers||[]);for(e=W.next();!e.done;e=W.next())e.value.overrides=this.computeButtonOverride()};
_.r.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.r.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"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.h2(_.sj(),"aa");_.RH(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.BX(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.aH(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.aH(this,this.onSetTheaterModeEnabled))};
_.r.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.aH(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.aH(this,this.onSetTheaterModeEnabled))};
_.r.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?w4E().isSupported():!1,_.Aav(_.k6(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.IT(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.RH(this.hostElement,"dark",!1),_.RH(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.BX(W))))};
_.r.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.r.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.RH(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.r.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.r.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.r.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.r.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.r.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.r.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.r.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.r.calculateBackgroundOpacity=function(W){var e=this.theater&&this.cinematicTheaterMode?.6:0,t=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),t)/t*(1-e)+e};
_.r.shouldShowCinematicMastHead=function(){var W=_.S("kevlar_watch_grid")&&!_.S("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.r.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.r.focusGuide=function(){this.guideButton.focus()};
_.r.onGuideToggleTap=function(){_.q2(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.r.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.r.onGuideToggleHover=function(){_.q2(this.hostElement,"yt-guide-hover")};
_.r.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.r.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.r.closeOnOutsideClickCondition=function(W){for(W=_.LB(W);W[0];){var e=W.shift();if(e instanceof Element&&e.id==="kbd")return!1}return!0};
_.r.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.r.pausePlayer=function(){var W;(W=_.tv())==null||W.pause();this.pauseMiniplayer()};
_.r.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.ee().resolve(_.Kn).getPlayerElement())==null||W.pause()}};
_.r.isMiniplayerActive=function(){return _.ee().resolve(_.Kn).isMiniplayerActive()};
_.r.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.r.onYtSendFeedbackAction=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Ec.Object.defineProperties(Fs.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.S("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 W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
Fs.prototype.narrowChanged=Fs.prototype.narrowChanged;Fs.prototype.onWatchPageChange=Fs.prototype.onWatchPageChange;Fs.prototype.onRendererStamperFinished=Fs.prototype.onRendererStamperFinished;Fs.prototype.dataChanged=Fs.prototype.dataChanged;Fs.prototype.onDarkChanged=Fs.prototype.onDarkChanged;_.P([_.y(_.gf),_.Y("design:type",Object)],Fs.prototype,"ironResizableBehavior",void 0);_.P([_.y(_.DYE),_.Y("design:type",Object)],Fs.prototype,"ytdExpandableInputBehavior",void 0);
_.P([_.y(_.M$.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Fs.prototype,"ytdGuideStateAwareBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Fs.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Fs.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fs.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.fu),_.Y("design:type",Object)],Fs.prototype,"ytdReduxBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"narrow",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"logoType",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Fs.prototype,"voiceEnabled",void 0);
_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"menuStrings",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Fs.prototype,"dark",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fs.prototype,"pageDarkTheme",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"watchPageScrollTop",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.Tq}),_.Y("design:type",Boolean)],Fs.prototype,"isWatchPage",void 0);
_.P([_.J({reflectToAttribute:!0,selector:_.uQD}),_.Y("design:type",Boolean)],Fs.prototype,"isShortsPage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fs.prototype,"theater",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Fs.prototype,"fullscreen",void 0);_.P([_.J({reflectToAttribute:!0,selector:_.Dd2}),_.Y("design:type",String)],Fs.prototype,"frostedGlassMode",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"ytSearchboxFocused",void 0);
_.P([_.GF("#buttons > *"),_.Y("design:type",Array)],Fs.prototype,"buttons",void 0);_.P([_.GF("ytd-button-renderer"),_.Y("design:type",Array)],Fs.prototype,"buttonRenderers",void 0);_.P([_.vG("#background"),_.Y("design:type",HTMLDivElement)],Fs.prototype,"background",void 0);_.P([_.vG("#guide-button"),_.Y("design:type",Object)],Fs.prototype,"guideButton",void 0);_.P([_.vG("#logo"),_.Y("design:type",Object)],Fs.prototype,"logo",void 0);
_.P([_.J({computed:"computeButtonOverride(dark)"}),_.Y("design:type",Object)],Fs.prototype,"buttonOverrides",void 0);_.P([_.BG("dark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fs.prototype,"onDarkChanged",null);_.P([_.J({value:function(){return this.onVoiceTap.bind(this)}}),
_.Y("design:type",Function)],Fs.prototype,"boundOnTapVoiceButton",void 0);_.P([_.J(),_.Y("design:type",Object)],Fs.prototype,"topbarIsAboveChipbar",void 0);_.P([_.J(),_.Y("design:type",String),_.Y("design:paramtypes",[])],Fs.prototype,"guideIcon",null);_.P([_.T("voiceEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fs.prototype,"shouldShowVoiceSearchButton",null);_.P([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fs.prototype,"voiceSearchButton",null);
_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fs.prototype,"dataChanged",null);_.P([_.wz("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fs.prototype,"onRendererStamperFinished",null);_.P([_.BG("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fs.prototype,"onWatchPageChange",null);
_.P([_.BG("narrow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fs.prototype,"narrowChanged",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-masthead"})],Fs);
_.H(Fs,"ytd-masthead",function(){if(h$U!==void 0)return h$U;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return h$U=W},{mode:_.Qe("kevlar_poly_si_batch_j036")?1:2});var WaB;var eul={},tr$={},bLU={},mEB={},rUg=(mEB.OFFLINE=(eul["publicytnetworkstatus-online"]="BACK_ONLINE",eul),mEB.ONLINE=(tr$["publicytnetworkstatus-offline"]="OFFLINE",tr$),mEB.BACK_ONLINE=(bLU["publicytnetworkstatus-offline"]="OFFLINE",bLU.TIMER_TRIGGER="ONLINE",bLU),mEB),Xs=function(){var W=_.O.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.Yn;return W};
_.Z(Xs,_.O);_.r=Xs.prototype;_.r.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.r.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.r.enterState=function(W){var e=this;this.scheduledJobId&&_.Tm.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Gv("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.Gv("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.kM(_.Tm,function(){e.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.r.stateChangeHandler=function(W){(W=rUg[this.currentState][W])&&this.enterState(W)};
_.r.logVisibility=function(W){var e=_.fc();this.createBannerVe(W);e&&this.bannerVe&&(W?_.ic(e,[this.bannerVe]):_.Yh(e,[this.bannerVe]))};
_.r.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.na(37929),_.I0(_.Sg(),this.bannerVe))};
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",String)],Xs.prototype,"currentState",void 0);_.P([_.J(),_.Y("design:type",Object)],Xs.prototype,"scheduledJobId",void 0);_.P([_.J(),_.Y("design:type",Object)],Xs.prototype,"bannerString",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Xs);
_.H(Xs,"ytd-network-status-banner",function(){if(WaB!==void 0)return WaB;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return WaB=
W},{mode:1});var q3u;var Ii=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.S("web_frosted_glass");return W};
_.Z(Ii,_.O);Ii.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
Ii.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.l(W,_.OM8))if(W=_.l(W.renderer,_.x_y))this.data=W};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Ii.prototype,"componentBehavior",void 0);_.P([_.J({value:!0,computed:"computeHidden(data)"}),_.Y("design:type",Object)],Ii.prototype,"hidden",void 0);_.P([_.J(),_.Y("design:type",Object)],Ii.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ii.prototype,"frostedGlass",void 0);
_.P([_.h({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ii);
_.H(Ii,"ytd-permission-role-bottom-bar-renderer",function(){if(q3u!==void 0)return q3u;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return q3u=W},{mode:1});var RuC;var Quw;var u41={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var ai=function(){return _.O.apply(this,arguments)||this};
_.Z(ai,_.O);_.r=ai.prototype;_.r.attached=function(){this.JSC$18592_scroller&&(this.JSC$18592_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18592_scroller.attached&&typeof this.JSC$18592_scroller.attached==="function"&&this.JSC$18592_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(t){t.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.rz(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var e=W.querySelector("#reason-text");e&&(e.value="");W.querySelector("#description-text").value=""}};
_.r.canSubmit=function(W,e){_.q2(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&e)};
_.r.onCancel=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.r.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(q){return q.active}).map(function(q){return q.innerText.trim()}),e=this.hostElement.querySelector("tp-yt-paper-radio-group"),t=e.selectedItem,b=t.name;
t=t.innerText.trim();var m=e.querySelector("#reason-text");e=void 0;m&&(e=m.value);(m=this.descriptionText.value)&&(m=m.trim());cm1(this.data.searchQuery,W,b,t,m,e);_.RT(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.r.sendFormSubmitToast=function(){var W=_.dO(_.Gv("SBOX_INAPPROPRIATE_TOAST"));_.RT(this.hostElement,"yt-open-popup-action",[W,this])};
_.r.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.r.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
ai.prototype.onIronSelect=ai.prototype.onIronSelect;ai.prototype.onIronChange=ai.prototype.onIronChange;ai.prototype.dataChanged=ai.prototype.dataChanged;_.P([_.J(),_.Y("design:type",Object)],ai.prototype,"data",void 0);_.P([_.J({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Y("design:type",Boolean)],ai.prototype,"submitDisabled",void 0);_.P([_.J(),_.Y("design:type",Boolean)],ai.prototype,"suggestionSelected",void 0);
_.P([_.J(),_.Y("design:type",Boolean)],ai.prototype,"catagorySelected",void 0);_.P([_.vG("#scroller"),_.Y("design:type",Object)],ai.prototype,"JSC$18592_scroller",void 0);_.P([_.vG("#description-text"),_.Y("design:type",Object)],ai.prototype,"descriptionText",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ai.prototype,"dataChanged",null);
_.P([_.wz("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ai.prototype,"onIronChange",null);_.P([_.wz("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ai.prototype,"onIronSelect",null);_.P([_.h({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],ai);
_.H(ai,"ytd-search-suggestion-report-dialog",function(){if(Quw!==void 0)return Quw;var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);return Quw=W},{mode:1});var wa=function(W){var e=W.openPopupAction;var t=W.target;var b=W.container;var m=W.popupContainerConfig;var q=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=e;this.target=t;this.container=b;this.popupContainerConfig=m;this.getElement=q;this.JSC$18598_popupConfig=this.popupContainerConfig.JSC$17713_popupConfig[this.openPopupAction.popupType];this.rendererName=(e=this.getName())?_.xkQ(e,iTg(this.popupContainerConfig,
e)):"";_.S("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
wa.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$18598_popupConfig=this.popupContainerConfig.JSC$17713_popupConfig[this.openPopupAction.popupType];FaQ(this);_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
wa.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var aGM=function(W,e,t){(e=e&&W.JSC$18598_popupConfig.narrowProperties?W.JSC$18598_popupConfig.narrowProperties:W.JSC$18598_popupConfig.properties)&&t!==void 0&&(e.isAriaModal=t);XVM(W,e);W.isRtl()&&XVM(W,W.JSC$18598_popupConfig.rtlProperties);IGB(W)};
wa.prototype.createPopup=function(){var W=this.JSC$18598_popupConfig.component;if(this.popupContent=wVu(this,this.rendererName)){if(W){this.popup=wVu(this,W);var e=this.popupContent;_.S("web_enable_wrapper_for_cow_component_in_popup")&&(e=document.createElement("div"),e.appendChild(this.popupContent));_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18598_popupConfig.slotName&&e.setAttribute("slot",this.JSC$18598_popupConfig.slotName);W=this.popup;var t=this.container.tagName.toLowerCase(),
b=_.A8(e);_.mvK(_.dD(W),_.tc(e,t,b));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.S("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.rz(this.container).appendChild(this.popup)}};
var FaQ=function(W){var e,t,b=(e=W.openPopupAction.accessibilityData)==null?void 0:(t=e.accessibilityData)==null?void 0:t.label;b&&(W.popup.ariaLabel=b);var m;((m=W.popupContent.polymerController)!=null?m:W.popupContent).data=(0,_.kJ.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=uSC(W);W.popupContent.positionType=W.openPopupAction.position;var q=W.openPopupAction.properties;q&&Object.keys(q).forEach(function(Q){W.popupContent[Q]=q[Q]})},XVM=function(W,e){if(e)for(var t=
_.R(Object.keys(e)),b=t.next();!b.done;b=t.next())b=b.value,W.popup[b]=e[b]},IGB=function(W){if(W.openPopupAction.position){var e=W.JSC$18598_popupConfig.positionalProperties&&W.JSC$18598_popupConfig.positionalProperties[W.openPopupAction.position],t=W.JSC$18598_popupConfig.rtlPositionalProperties&&W.JSC$18598_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
e=W.isRtl()&&t?t:e;e.shiftedHorizontalOffset&&(t=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(e.horizontalOffset=W.popup.positionTarget.clientWidth/2-e.shiftedHorizontalOffset),W.popup.style.display=t);XVM(W,e)}},cU1=function(W,e){if(e)for(var t=_.R(Object.keys(e)),b=t.next();!b.done;b=t.next())b=b.value,W.popup.style[b]=e[b]};
wa.prototype.getName=function(){return _.Tn(this.openPopupAction.popup,"renderer")||_.Tn(this.openPopupAction.popup,"dialog")||_.Tn(this.openPopupAction.popup,"model")||void 0};
var uSC=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
wa.prototype.isRtl=function(){return _.Ot("HTML_DIR")==="rtl"};
var wVu=function(W,e){W=W.getElement(e,W.target);W==null&&_.JC(new _.o_("popup getElement returned null",e));return W};var vWM={};
vWM.YtPopupContainerBehavior=[_.P1.YtComponentBehavior,_.qM.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_);_.m1(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ry(this.hostElement)},
closePopup:function(W){var e=this.createCacheKey(void 0,W);this.popups_[e]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Tm.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Tm.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var e=this.popups_[W];if(e.popup.scrollAction==="refit"){var t=e.popup.positionTarget.getBoundingClientRect(),b=e.popup;t=t.top;var m=e;if(!m.naturalHeight){m.popup.hidden=!1;m.popup.style.position="fixed";m.popup.style.top="0px";m.popup.style.left="0px";var q=m.popup.getBoundingClientRect();m.naturalHeight=q.bottom-q.top;m.popup.refit()}b.hidden=!(t>=m.naturalHeight+60);e.popupContent.clientHeight===0&&e.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,e){var t=W.openPopupAction,b=_.ee().resolve(_.Wi(_.r1))&&t.popupType==="TOAST";b&&!t.uniqueId&&(t.uniqueId=_.yb());if(!_.S("popup_container_parent_target_killswitch")){var m;e=(m=this.getParentTarget(e))!=null?m:e}var q=this.ensurePopup_(t,e);return new _.c3(function(Q){q.then(function(X){if(!X)return Q();this.maybeCreateNarrowMediaQuery_();var I=this.createCacheKey(X.rendererName,X.openPopupAction.uniqueId);if(t.showOncePerUniqueId){if(this.shownPopupKeys_.has(I))return Q();
this.shownPopupKeys_.add(I)}I=this.popups_[I];var u=!(!I||!I.openPopupAction.beReused);u=!!t.reusePopup||u;if(X.popup.opened&&!u){b&&!X.openPopupAction.replacePopup||this.handleClosePopupAction_(X.rendererName,X.openPopupAction.uniqueId);u=t.popupType==="DIALOG"&&!_.S("popup_container_dialog_reopen_killswitch");if(!b&&!u&&I&&I.target==e&&!X.openPopupAction.replacePopup)return Q();_.Uc(X.popup,function(){this.completeOpenPopupAction_(t,e,X);Q()}.bind(this))}else X.popup.opened?X.updatePopup(t):this.completeOpenPopupAction_(t,
e,X),Q()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var e=_.R(Object.entries(this.popups_)),t=e.next();!t.done;t=e.next())if(t=_.R(t.value),t.next(),t=t.next().value,t.popup.tagName==="TP-YT-IRON-DROPDOWN"&&W.closest(t.rendererName))return t.target},
completeOpenPopupAction_:function(W,e,t){t.updatePopup(W);W=this.narrowMediaQuery_.queryMatches;var b=this.isAriaModal;t.target=e;var m;e=((m=t.target.polymerController)!=null?m:t.target).popupPositionTarget||t.target;t.JSC$18598_popupConfig.targetContainer&&(e=t.container);t.popup.positionTarget=e;t.popupContent.positionTarget=e;IGB(t);t.JSC$18598_popupConfig.forceFocus&&(t.popupContent.style.outline="none");t.popupContent.tabIndex=-1;t.JSC$18598_popupConfig.narrowProperties&&(t.popup.style.position=
"static");t.JSC$18598_popupConfig.preventAutonav&&t.popup.setAttribute("prevent-autonav",!0);t.JSC$18598_popupConfig.forceCloseOnOutsideClick&&t.popup.setAttribute("force-close-on-outside-click",!0);aGM(t,W,b);cU1(t,t.JSC$18598_popupConfig.styles);t.isRtl()&&cU1(t,t.JSC$18598_popupConfig.rtlStyles);if(!t.openPopupAction.shouldStopParentSignal){var q;m=(q=t.target.polymerController)!=null?q:t.target;(t.popupContent.startForwardingEvents||t.popupContainerConfig.forwardingEnabledPopups.has(t.rendererName))&&
m.parentComponent!==t.popupContent&&t.popupContent!==t.target&&t.target!==document.body&&(t.popupContent.startForwardingEvents?t.popupContent.startForwardingEvents(t.popupContainerConfig.forwardedEvents,t.target):(t.JSC$18598_eventForwarder||(t.JSC$18598_eventForwarder=new _.cN(t.popupContent)),t.JSC$18598_eventForwarder.start(t.popupContainerConfig.forwardedEvents,t.target)))}t=t.popup;t.addEventListener("iron-overlay-opened",_.aH(this,this.onPopupIronOverlayOpened_));t.addEventListener("iron-overlay-closed",
_.aH(this,this.onPopupIronOverlayClosed_));t.addEventListener("iron-overlay-canceled",_.aH(this,this.onPopupIronOverlayCanceled_));t.addEventListener("yt-refit",_.aH(this,this.refitPopup_));t.addEventListener("yt-invalidate-popup-tabbables",_.aH(this,this.handleInvalidatePopupTabbables_));t.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,e){var t=_.S("web_popup_cache_key_killswitch")||!!e;if(W||t){var b=this.createCacheKey(W,e);W=(W=this.popups_[b])&&W.popup}else W=_.xAk(_.i$);if(W&&W.close){if(e=_.ee().resolve(_.Wi(_.FN)))W.restoreFocusOnClose=e.isKeyBoardInUse();W.close();this.removePopup_(W,b)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var e={},t;for(t in this.popups_)if(e={key$jscomp$1151:e.key$jscomp$1151},e.key$jscomp$1151=t,!W||!W.some(function(q){return function(Q){return Q==q.key$jscomp$1151}}(e))){var b=this.popups_[e.key$jscomp$1151],m=b.popup;
_.ee().resolve(_.Wi(_.r1))&&b.openPopupAction.popupType==="TOAST"||(m&&m.close&&m.close(),this.removePopup_(m,e.key$jscomp$1151))}},
handleClosePopupsAction_:function(W){W.forEach(function(e){var t=this.popups_[e];t&&((t=t.popup)&&t.close&&t.close(),this.removePopup_(t,e))}.bind(this))},
handleGetPopupOpenedAction_:function(W,e){return(e=this.createCacheKey(W,e))&&this.popups_[e]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],e;for(e in this.popups_){var t=this.popups_[e];t.popup.opened&&W.push(t)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,e){_.S("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.rz(this.hostElement).removeChild(W),e&&this.popups_[e]&&delete this.popups_[e])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,e){this.maybeCreateNarrowMediaQuery_();var t=_.Tn(W.popup,"renderer")||_.Tn(W.popup,"dialog")||_.Tn(W.popup,"model");if(!t)return _.aT();t=_.xkQ(t,iTg(this.popupContainerConfig,t));return _.aT(this.getAndMaybeCreatePopup_(W,t,e))},
getAndMaybeCreatePopup_:function(W,e,t){var b=this.createCacheKey(e,W.uniqueId);if(this.popups_[b])return this.popups_[b];W=new wa({openPopupAction:W,target:t,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(e)});return this.popups_[b]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.S("ytpopup_disable_default_html_caching")?W&&W.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",_.aH(this,this.openPopupQueryMatchesChanged_)),_.rz(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var e in this.popups_)aGM(this.popups_[e],W)},
onPopupIronOverlayClosed_:function(W){var e=W.currentTarget,t=_.$vg(e);t=t.length>0?t[0]:e;if(t.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=e;W.detail.popupRenderer=t;var b,m={context:{openingElement:((b=this.popups_[(t==null?void 0:t.is)||""])==null?void 0:b.target)||void 0}};Object.assign(m,W.detail);var q;_.q2((q=t.hostElement)!=null?q:t,"yt-popup-closed",m);e.removeEventListener("yt-refit",_.aH(this,this.refitPopup_));e.removeEventListener("yt-invalidate-popup-tabbables",
_.aH(this,this.handleInvalidatePopupTabbables_));e.removeEventListener("iron-overlay-canceled",_.aH(this,this.onPopupIronOverlayCanceled_));e.removeEventListener("iron-overlay-closed",_.aH(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(e)}},
onPopupIronOverlayCanceled_:function(W,e){var t=W.currentTarget,b=_.$vg(t);b=b.length>0?b[0]:t;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var m;_.q2((m=b.hostElement)!=null?m:b,"yt-popup-canceled",W.detail);m=e?_.LB(e):null;(!e||["click","tap"].includes(e.type))&&!t.hasAttribute("force-close-on-outside-click")&&t.positionTarget&&m&&m.includes(t.positionTarget)&&W.preventDefault();t.restoreFocusOnClose=_.ZJ.keyboardEventMatchesKeys(e,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var e=_.$vg(W);e=e.length>0?e[0]:W;var t,b;_.q2((t=e.hostElement)!=null?t:e,"yt-popup-opened",(b=e.hostElement)!=null?b:e);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));t=_.ee().resolve(_.Wi(_.FN));b=!!e.querySelector("#toast");t&&t.isKeyBoardInUse()&&!b&&(typeof e.focusFirstItem==="function"?e.focusFirstItem():(e=_.gDh(W),e.length&&e[0].focus()));W.removeEventListener("iron-overlay-opened",
_.aH(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,e){return _.S("web_popup_cache_key_killswitch")?e?W+"#"+e:W:e?"#"+e:W},
openSheet:function(W,e){var t=W==null?void 0:W.openPopupActionCommand;!t&&(W==null?0:W.viewModel)&&(t={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});t&&this.handleOpenPopupAction(t,e)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.F(function(e){return e.return(W.handleGetOpenedPopupsAction_().filter(function(t){var b;return((b=t.openPopupAction)==null?void 0:b.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,e,t){if(_.S("web_dialog_utils_killswitch")){var b=W==null?void 0:W.openPopupActionCommand,m=(t==null?0:t.ariaLabel)?{accessibilityData:{accessibilityData:{label:t.ariaLabel}}}:void 0;!b&&(W==null?0:W.viewModel)&&(b={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(t==null?0:t.isModal)?"MODAL":"DIALOG"},m&&m)});b&&this.handleOpenPopupAction(b,e)}else{if(m=W==null?void 0:W.viewModel){var q=t=t===void 0?{}:t;t=q.ariaLabel;m={popup:{dialogViewModel:m},
popupType:q.isModal?"MODAL":"DIALOG"};q={accessibilityData:{label:t}};t&&(m.accessibilityData=q);m={openPopupAction:m}}else m=void 0;if(m=(b=m)!=null?b:W==null?void 0:W.openPopupActionCommand)this.isAriaModal=_.S("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(m,e)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.F(function(e){return e.return(W.handleGetOpenedPopupsAction_().filter(function(t){var b;return((b=t.openPopupAction)==null?void 0:b.popupType)==="DIALOG"}).length>0)})}}];var G7T;var DEg;var S3M=_.Nw(["about:blank"]),u5=function(){var W=_.O.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.Z(u5,_.O);_.r=u5.prototype;_.r.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var e=this.data.url,t=_.J7(e);_.S("enable_yt_ata_iframe_authuser")?(t=_.J7(e),_.fF(this.iframe,vgB(t))):_.fF(this.iframe,t);this.pageLoadTimeoutId=_.kM(_.g0(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.eQ({destination:window,iframe:this.iframe,origin:_.syB(t.toString()),channelName:"ataiframe",onMessage:_.VZz(EF1,function(b){AB1(b.data)?(b=_.op(b.data,1,_.lg,_.tE()),b.length!==1?_.JC(Error("ql")):(b=b[0],b===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):b===1&&W.close())):_.JC(Error("rl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.r.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.g0().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.r.logStateChanged=function(W){var e;if((e=this.data)==null?0:e.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.Sg().stateChanged(this.data.trackingParams,W)};
_.r.close=function(){_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.handlesPopupClosed=function(W,e){var t=this,b,m;return _.F(function(q){if(q.nextAddress==1)return _.Ot("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.RT(t.hostElement,"on-about-this-ad-popup-closed",[t.isMuted,e]),q.jumpTo(0)):W&&GqQ(W)?_.a(q,DfU(W),4):(t.isMuted&&_.RT(t.hostElement,"yt-mute-ad-action",[t.is,t]),q.jumpTo(0));if(b=q.yieldResult){var Q=m=new _.$e(b),X=t.isMuted;Q.getOptions().includes("onAboutThisAdPopupClosed")?_.ZWe(Q,"onAboutThisAdPopupClosed",{isMuted:X,layoutId:e}):_.b0("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.u8(q)})};
_.r.onPopupClosed=function(W){var e=this,t,b;return _.F(function(m){t=_.bN(S3M);_.fF(e.iframe,t);e.cancelPageLoadTimeout();if(!e.data)return m.jumpTo(0);e.ytRendererBehavior.markDirty();b=W.detail.context.openingElement;return _.a(m,e.handlesPopupClosed(b,e.data.layoutId),0)})};
_.r.detached=function(){this.cancelPageLoadTimeout()};
_.r.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
u5.prototype.onPopupClosed=u5.prototype.onPopupClosed;u5.prototype.dataChanged=u5.prototype.dataChanged;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.P([_.vG("#iframe"),_.Y("design:type",HTMLIFrameElement)],u5.prototype,"iframe",void 0);_.P([_.J(),_.Y("design:type",Object)],u5.prototype,"data",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u5.prototype,"dataChanged",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],u5.prototype,"onPopupClosed",null);_.P([_.gz({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],u5);
_.H(u5,"yt-about-this-ad-renderer",function(){if(DEg===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;G7T===void 0&&(G7T=document.createElement("template"));var b=G7T;t.call(e,b.content.cloneNode(!0),W.content.firstChild);DEg=W}W=DEg;return W},{mode:2});var BXC;var oWl;var c8=function(W){var e=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,c8.prototype)};
_.Z(c8,Error);var lGB=function(W,e){var t=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.minWidth=W;this.minHeight=e;Object.setPrototypeOf(this,lGB.prototype)};
_.Z(lGB,Error);var ZLE=function(W){this.requirements=W;this.JSC$18626_maxFileSize=W.maxFileSizeMB*1024*1024},$EC=function(W,e){if(e.size>W.JSC$18626_maxFileSize)throw new c8(W.requirements.maxFileSizeMB);
};var k7E=function(W,e){this.canvas=W;this.imageEditorBuilder=e};
k7E.prototype.addEventListeners=function(W){var e=function(m){pVQ(W,m)};
this.JSC$18632_mouseDownEvent=e;var t=function(m){yU1(W,m)};
this.JSC$18632_mouseMoveEvent=t;var b=function(){juU(W)};
this.JSC$18632_mouseUpEvent=b;this.canvas.addEventListener("mousedown",e);this.canvas.addEventListener("mousemove",t);document.addEventListener("mouseup",b)};
k7E.prototype.removeEventListeners=function(){this.JSC$18632_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18632_mouseDownEvent);this.JSC$18632_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18632_mouseMoveEvent);this.JSC$18632_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18632_mouseUpEvent)};
var CBU=function(W,e){W.removeEventListeners();return new Promise(function(t){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var m=W.imageEditorBuilder(W.canvas,b);W.addEventListeners(m);t(m)};
b.src=e})},v8=function(W,e,t,b,m,q,Q,X){this.canvas=W;
this.image=e;this.requiredRatio=t;this.minImageCropDimension=b;this.minOutputImageResolution=m;this.component=q;this.styleFocusedCorner=X===void 0?!0:X;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("sl");this.ctx=W;this.canvasMargin=Q!=null?Q:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Q=this.image;W=this.canvasInnerWidth/Q.width;Q.height*W>912&&(W=Q.width/Q.height*912/Q.width);Q=W;this.scaledImageWidth=this.canvas.width%2?
BOE(this.image.width*Q):SbM(this.image.width*Q);this.scaledImageHeight=Math.round(this.image.height*Q);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18635_overlayMarginBottom=this.JSC$18635_overlayMarginTop=this.canvasMargin;this.JSC$18635_overlayMarginRight=this.JSC$18635_overlayMarginLeft=this.horizontalMargin;this.JSC$18635_overlayWidth=this.scaledImageWidth;this.JSC$18635_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$18635_overlayWidth=this.canvas.width%2?BOE(this.scaledImageHeight*this.requiredRatio):SbM(this.scaledImageHeight*this.requiredRatio),this.JSC$18635_overlayMarginRight=this.JSC$18635_overlayMarginLeft=(this.canvas.width-this.JSC$18635_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$18635_overlayHeight=this.canvas.height%2?BOE(this.scaledImageWidth/this.requiredRatio):SbM(this.scaledImageWidth/this.requiredRatio),this.JSC$18635_overlayMarginBottom=
this.JSC$18635_overlayMarginTop=(this.canvas.height-this.JSC$18635_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Q,this.scaledImageWidth);nWl(this)};
v8.prototype.getContext=function(){return this.ctx};
var pVQ=function(W,e){e={x:Math.round(e.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(e.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=e;fGU(W,e)!==0?(W.action=1,gWC(W,e),W.resizeCorner=fGU(W,e)):e.x>W.JSC$18635_overlayMarginLeft&&e.x<W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth&&e.y>W.JSC$18635_overlayMarginTop&&e.y<W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight&&(W.action=0)},TXQ=function(W,e){switch(e){case 1:return{x:W.JSC$18635_overlayMarginLeft,
y:W.JSC$18635_overlayMarginTop};case 2:return{x:W.JSC$18635_overlayMarginLeft,y:W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight};case 3:return{x:W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth,y:W.JSC$18635_overlayMarginTop};case 4:return{x:W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth,y:W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight};default:throw Error("tl");}},xEB=function(W,e){if(W.focusedCorner!==0){W.dragStart=TXQ(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var t=W.dragStart.x,b=W.dragStart.y;switch(e){case 0:W.focusedCorner===1||W.focusedCorner===4?(t-=10,b-=10):(t-=10,b+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(t+=10,b+=10):(t+=10,b-=10);break;case 2:t=W.focusedCorner===1||W.focusedCorner===4?t-10:t+10;b-=10;break;case 3:t=W.focusedCorner===1||W.focusedCorner===4?t+10:t-10;b+=10;break;default:throw Error("ul");}JUQ(W,{x:t,y:b});nWl(W);W.action=2;W.dragStart=void 0}},yU1=function(W,e){e={x:Math.round(e.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(e.pageY-W.canvas.getBoundingClientRect().top)};gWC(W,e);switch(W.action){case 1:JUQ(W,e);break;case 0:W.dragStart&&(W.JSC$18635_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$18635_overlayMarginLeft-(W.dragStart.x-e.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$18635_overlayWidth)),W.JSC$18635_overlayMarginRight=W.canvas.width-W.JSC$18635_overlayMarginLeft-W.JSC$18635_overlayWidth,W.JSC$18635_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$18635_overlayMarginTop-
(W.dragStart.y-e.y),W.scaledImageHeight-W.JSC$18635_overlayHeight+W.canvasMargin)),W.JSC$18635_overlayMarginBottom=W.canvas.height-(W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight));break;default:return}nWl(W);W.dragStart=e},juU=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},gWC=function(W,e){switch(fGU(W,e)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:W.action!==1&&(document.body.style.cursor="auto")}},fGU=function(W,e){var t=W.JSC$18635_overlayMarginLeft-5,b=W.JSC$18635_overlayMarginTop-5,m=W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth-5;
W=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-5;return OLC(e,{x:t,y:b})?1:OLC(e,{x:m,y:b})?3:OLC(e,{x:t,y:W})?2:OLC(e,{x:m,y:W})?4:0},OLC=function(W,e){return W.x>=e.x&&W.x<=e.x+10&&W.y>=e.y&&W.y<=e.y+10},JUQ=function(W,e){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth-e.x)/(e.y-W.JSC$18635_overlayMarginTop))>=W.requiredRatio?Mr9(W,e.x):su$(W,e.y);
break;case 1:Math.abs((W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth-e.x)/(W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-e.y))>=W.requiredRatio?huB(W,e.x):su$(W,e.y);break;case 4:Math.abs((e.x-W.JSC$18635_overlayMarginLeft)/(e.y-W.JSC$18635_overlayMarginTop))>=W.requiredRatio?Mr9(W,e.x):HLB(W,e.y);break;case 3:Math.abs((e.x-W.JSC$18635_overlayMarginLeft)/(W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-e.y))>=W.requiredRatio?huB(W,e.x):HLB(W,e.y);break;default:throw Error("vl");
}},Mr9=function(W,e){var t=W.JSC$18635_overlayMarginTop;
W.JSC$18635_overlayMarginBottom=Kal(W,e);W.JSC$18635_overlayHeight=W.canvas.height-W.JSC$18635_overlayMarginBottom-t;W.JSC$18635_overlayWidth=Math.round(W.JSC$18635_overlayHeight*W.requiredRatio);PBU(W)},huB=function(W,e){var t=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight;
W.JSC$18635_overlayMarginTop=Kal(W,e);W.JSC$18635_overlayHeight=t-W.JSC$18635_overlayMarginTop;W.JSC$18635_overlayWidth=Math.round(W.JSC$18635_overlayHeight*W.requiredRatio);PBU(W)},PBU=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$18635_overlayMarginLeft=W.canvas.width-W.JSC$18635_overlayMarginRight-W.JSC$18635_overlayWidth;
break;case 4:case 3:W.JSC$18635_overlayMarginRight=W.canvas.width-W.JSC$18635_overlayMarginLeft-W.JSC$18635_overlayWidth;break;default:throw Error("vl");}},su$=function(W,e){var t=W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth;
W.JSC$18635_overlayMarginLeft=VrU(W,e);W.JSC$18635_overlayWidth=t-W.JSC$18635_overlayMarginLeft;W.JSC$18635_overlayHeight=Math.round(W.JSC$18635_overlayWidth/W.requiredRatio);iLg(W)},HLB=function(W,e){var t=W.JSC$18635_overlayMarginLeft;
W.JSC$18635_overlayMarginRight=VrU(W,e);W.JSC$18635_overlayWidth=W.canvas.width-W.JSC$18635_overlayMarginRight-t;W.JSC$18635_overlayHeight=Math.round(W.JSC$18635_overlayWidth/W.requiredRatio);iLg(W)},iLg=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$18635_overlayMarginBottom=W.canvas.height-W.JSC$18635_overlayMarginTop-W.JSC$18635_overlayHeight;
break;case 1:case 3:W.JSC$18635_overlayMarginTop=W.canvas.height-W.JSC$18635_overlayMarginBottom-W.JSC$18635_overlayHeight;break;default:throw Error("vl");}},Kal=function(W,e){switch(W.resizeCorner){case 2:e=W.canvas.height-(W.JSC$18635_overlayMarginTop+Y3$(W,e));
break;case 4:e=W.canvas.height-(W.JSC$18635_overlayMarginTop+zug(W,e));break;case 1:e=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-Y3$(W,e);break;case 3:e=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-zug(W,e);break;default:throw Error("vl");}return Math.max(e,W.canvasMargin)},Y3$=function(W,e){e=W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth-Math.max(e,W.horizontalMargin);
e=e<0?W.JSC$18635_overlayWidth:Math.max(e,W.minOverlayWidth);return Math.round(e/W.requiredRatio)},zug=function(W,e){e=W.canvas.width-Math.max(W.canvas.width-e,W.horizontalMargin)-W.JSC$18635_overlayMarginLeft;
e=e<0?W.JSC$18635_overlayWidth:Math.max(e,W.minOverlayWidth);return Math.round(e/W.requiredRatio)},VrU=function(W,e){switch(W.resizeCorner){case 2:e=W.canvas.width-W.JSC$18635_overlayMarginRight-UEB(W,e);
break;case 4:e=W.canvas.width-W.JSC$18635_overlayMarginLeft-UEB(W,e);break;case 1:e=W.canvas.width-W.JSC$18635_overlayMarginRight-Lag(W,e);break;case 3:e=W.canvas.width-W.JSC$18635_overlayMarginLeft-Lag(W,e);break;default:throw Error("vl");}return Math.max(e,W.horizontalMargin)},UEB=function(W,e){e=W.canvas.height-Math.max(W.canvas.height-e,W.canvasMargin)-W.JSC$18635_overlayMarginTop;
return e<0?W.JSC$18635_overlayWidth:Math.max(Math.round(e*W.requiredRatio),W.minOverlayWidth)},Lag=function(W,e){e=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-Math.max(e,W.canvasMargin);
return e<0?W.JSC$18635_overlayWidth:Math.max(Math.round(e*W.requiredRatio),W.minOverlayWidth)},nWl=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$18635_overlayMarginTop,W.JSC$18635_overlayMarginLeft-W.horizontalMargin,W.JSC$18635_overlayHeight);W.ctx.fillRect(W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth,W.JSC$18635_overlayMarginTop,W.JSC$18635_overlayMarginRight-W.horizontalMargin,W.JSC$18635_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$18635_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight,W.scaledImageWidth,W.JSC$18635_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.q2(W.component,"image-updated")};
v8.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18635_overlayMarginLeft,this.JSC$18635_overlayMarginTop,this.JSC$18635_overlayWidth,this.JSC$18635_overlayHeight);EWu(this)};
var EWu=function(W){var e=W.JSC$18635_overlayMarginLeft-5,t=W.JSC$18635_overlayMarginTop-5,b=W.JSC$18635_overlayMarginLeft+W.JSC$18635_overlayWidth-5,m=W.JSC$18635_overlayMarginTop+W.JSC$18635_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(e,t,10,10);W.ctx.strokeRect(e,t,10,10);W.ctx.fillRect(b,t,10,10);W.ctx.strokeRect(b,t,10,10);W.ctx.fillRect(e,m,10,10);W.ctx.strokeRect(e,m,10,10);W.ctx.fillRect(b,m,10,10);W.ctx.strokeRect(b,m,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--e;--t;break;case 2:--e;t=m-1;break;case 3:e=b-1;--t;break;case 4:e=b-1;t=m-1;break;default:return}W.ctx.strokeRect(e,t,12,12)}};
v8.prototype.crop=function(W,e){e=e===void 0?!0:e;var t=this.image.width/this.scaledImageWidth,b=document.createElement("canvas"),m=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],q=this.JSC$18635_overlayWidth*t,Q=this.JSC$18635_overlayHeight*t;b.width=Math.max(q,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);b.height=Math.max(Q,m);W&&(b.width=Math.min(b.width,b.height),b.height=Math.min(b.width,b.height));
W=b.getContext("2d");if(!W)throw Error("jl");m=(this.JSC$18635_overlayMarginLeft-this.horizontalMargin)*t;t*=this.JSC$18635_overlayMarginTop-this.canvasMargin;e||(W.fillStyle="white",W.fillRect(0,0,b.width,b.height));W.drawImage(this.image,m,t,q,Q,0,0,b.width,b.height);return b};var AUl=function(W,e,t,b,m){v8.call(this,W,e,t,b,void 0,m,8,!1)};
_.Z(AUl,v8);AUl.prototype.drawOverlay=function(){var W=this.getContext(),e=this.JSC$18635_overlayWidth,t=this.JSC$18635_overlayHeight,b=this.JSC$18635_overlayMarginTop,m=this.JSC$18635_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(m+e/2,b+t/2,e/2,0,2*Math.PI);W.stroke();W.strokeRect(m,b,e,t);EWu(this)};
var NXC={maxFileSizeMB:15,minWidth:98,minHeight:98},dEl=["image/png","image/jpeg","image/gif"],GH=function(){var W=_.O.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.Z(GH,_.O);_.r=GH.prototype;_.r.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.r.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.r.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.r.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.RT(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.r.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.r.showPopup=function(){var W=this;this.hideContainer=!1;_.kM(_.Tm,function(){_.q2(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.r.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.r.closePopup=function(){this.resetFileSelector();_.RT(this.hostElement,"yt-close-popup-action",[this.is])};
_.r.onCancelTap=function(){this.isPlaylistThumbnail||_.RT(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.r.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.kM(_.Tm,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(e){e instanceof Error?_.gQ(e):_.TT(new _.o_(JSON.stringify(e)))}};
_.r.handleFileSelection=function(){var W=this,e,t,b,m,q,Q;return _.F(function(X){switch(X.nextAddress){case 1:_.Qh(X,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),X.return();e=W.fileSelector.files[0];$EC(W.imageChecker,e);_.Qh(X,4);return _.a(X,Y6l(e),6);case 6:W.mimeType=X.yieldResult;_.Hi(X,5,2);break;case 4:_.w9(X,2),_.RT(W.hostElement,"yt-image-selection-error-action",[(t=W.data)==null?void 0:t.genericImageLoadErrorMessage]),W.onCancelTap();case 5:b=new FileReader;b.addEventListener("load",
function(){var I,u;return _.F(function(c){if(c.nextAddress==1){if(!b.result)return _.JC(Error("ll")),c.return();I=b.result;u=new Image;u.src=I;u.onload=function(){try{var v=W.imageChecker;if(u.width<v.requirements.minWidth||u.height<v.requirements.minHeight)throw new lGB(v.requirements.minWidth,v.requirements.minHeight);}catch(B){if(B instanceof lGB){var D;_.RT(W.hostElement,"yt-image-selection-error-action",[(D=W.data)==null?void 0:D.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else B instanceof
Error?_.gQ(B):(v=new _.o_(JSON.stringify(B)),_.gQ(v));W.onCancelTap()}W.showPopup()};
u.onerror=function(){var v;_.RT(W.hostElement,"yt-image-selection-error-action",[(v=W.data)==null?void 0:v.genericImageLoadErrorMessage]);W.onCancelTap()};
return _.a(c,CBU(W.imageEditorCanvas,I),2)}W.imageEditor=c.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.u8(c)})},!1);
b.readAsDataURL(e);_.Hi(X,0);break;case 2:m=_.w9(X),m instanceof c8?_.RT(W.hostElement,"yt-image-selection-error-action",[(q=W.data)==null?void 0:q.imageSizeErrorMessage]):(m instanceof Error?_.gQ(m):_.TT(new _.o_(JSON.stringify(m))),_.RT(W.hostElement,"yt-image-selection-error-action",[(Q=W.data)==null?void 0:Q.genericImageLoadErrorMessage])),W.onCancelTap(),_.u8(X)}})};
_.r.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.Dj(_.Sg(),{veType:232707,visualElement:_.na(232707)});W&&(W={visualElement:W},_.Gf().reportShown(W))}};
_.r.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.q7S(this.hostElement,W)};
_.r.convertToImageFormatBundle=function(W){var e=this,t,b,m;return _.F(function(q){switch(q.nextAddress){case 1:return t=W.toDataURL(e.outputMimeType,1),_.a(q,zfS(t),2);case 2:b=q.yieldResult;_.Qh(q,3);$EC(e.imageChecker,b);_.Hi(q,4);break;case 3:m=_.w9(q);if(!(m instanceof c8))throw m;_.JC(new _.o_("Output size is bigger than input size for image",e.mimeType,e.outputMimeType,b.size));t=W.toDataURL("image/jpeg",.95);return _.a(q,zfS(t),6);case 6:b=q.yieldResult;case 4:return q.return({dataUrl:t,imageFile:b})}})};
_.r.handleUploadImageToScottyCommand=function(W){var e=this,t,b,m,q,Q,X,I,u,c,v;return _.F(function(D){switch(D.nextAddress){case 1:if(!e.imageEditor||!_.l(W,aJB))return D.return();t=_.l(W,aJB).scottyUploadUrl;if(!t){var B=new _.o_("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.gQ(B);return D.return()}_.Qh(D,2);e.setLoadingState();b=e.imageEditor.crop(!1,!1);return _.a(D,e.convertToImageFormatBundle(b),4);case 4:return m=D.yieldResult,_.a(D,VzU(m.imageFile,t),5);case 5:q=
D.yieldResult;((Q=e.data)==null?0:Q.onUploadEndpoint)?(X=e.buildUploadServiceEndpoint(q),e.ytComponentBehavior.resolveCommand(X),I=_.l(X,_.Jr),((u=I)==null?0:u.params)?e.closePopup():e.resetFileSelector()):(_.RT(e.hostElement,"yt-image-updated-action",[m.dataUrl,q]),e.closePopup());_.Hi(D,0);break;case 2:c=_.w9(D),e.setErrorState((v=e.data)==null?void 0:v.uploadErrorMessage),c instanceof Error?_.gQ(c):(B=new _.o_(JSON.stringify(c)),_.gQ(B)),_.u8(D)}})};
_.r.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.r.dataChanged=function(){var W=this,e;return _.F(function(t){if(t.nextAddress==1){if(!W.data||!W.canvasElement)return t.return();W.data.imageRatio&&W.data.minImageCropWidth||_.TT(new _.o_("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));e=function(b,m){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new AUl(b,m,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new v8(b,m,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new k7E(W.canvasElement,e);return W.data.url?_.a(t,CBU(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),t.jumpTo(0))}W.imageEditor=t.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.u8(t)})};
_.r.addEventListeners=function(W){this.removeEventListeners();var e=function(m){pVQ(W,m)};
this.JSC$18643_mouseDownEvent=e;var t=function(m){yU1(W,m)};
this.JSC$18643_mouseMoveEvent=t;var b=function(){juU(W)};
this.JSC$18643_mouseUpEvent=b;this.topLeftCorner.addEventListener("mousedown",e);this.topLeftCorner.addEventListener("mousemove",t);this.topLeftCorner.addEventListener("mouseup",b);this.topRightCorner.addEventListener("mousedown",e);this.topRightCorner.addEventListener("mousemove",t);this.topRightCorner.addEventListener("mouseup",b);this.bottomLeftCorner.addEventListener("mousedown",e);this.bottomLeftCorner.addEventListener("mousemove",t);this.bottomLeftCorner.addEventListener("mouseup",b);this.bottomRightCorner.addEventListener("mousedown",
e);this.bottomRightCorner.addEventListener("mousemove",t);this.bottomRightCorner.addEventListener("mouseup",b)};
_.r.removeEventListeners=function(){this.JSC$18643_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18643_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18643_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18643_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18643_mouseDownEvent));this.JSC$18643_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18643_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18643_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18643_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18643_mouseMoveEvent));this.JSC$18643_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18643_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18643_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18643_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18643_mouseUpEvent))};
_.r.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.r.updatePositionOfCorner=function(W,e){var t=W.y-e.offsetHeight/2+4;e.style.left=W.x-e.offsetWidth/2+16+"px";e.style.top=t+"px"};
_.r.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.R([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),e=W.next();!e.done;e=W.next()){e=e.value;var t=TXQ(this.imageEditor,e.corner);this.updatePositionOfCorner(t,e.div)}};
_.r.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(xEB(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.r.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(xEB(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.r.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(xEB(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.r.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(xEB(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.r.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Ec.Object.defineProperties(GH.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&dEl.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,e,t;((e=this.data)==null?0:e.imageRatio)&&((t=this.data)==null?0:t.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=NXC;return new ZLE(W)}}});
GH.prototype.updatePositionOfAllCorners=GH.prototype.updatePositionOfAllCorners;GH.prototype.dataChanged=GH.prototype.dataChanged;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],GH.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],GH.prototype,"ytComponentBehavior",void 0);_.P([_.y(_.ZJ),_.Y("design:type",Object)],GH.prototype,"ironA11yKeysBehavior",void 0);
_.P([_.vG("#canvas"),_.Y("design:type",HTMLCanvasElement)],GH.prototype,"canvasElement",void 0);_.P([_.vG("#file-selector"),_.Y("design:type",HTMLInputElement)],GH.prototype,"fileSelector",void 0);_.P([_.vG("#top-left-corner"),_.Y("design:type",HTMLDivElement)],GH.prototype,"topLeftCorner",void 0);_.P([_.vG("#top-right-corner"),_.Y("design:type",HTMLDivElement)],GH.prototype,"topRightCorner",void 0);
_.P([_.vG("#bottom-left-corner"),_.Y("design:type",HTMLDivElement)],GH.prototype,"bottomLeftCorner",void 0);_.P([_.vG("#bottom-right-corner"),_.Y("design:type",HTMLDivElement)],GH.prototype,"bottomRightCorner",void 0);_.P([_.J(),_.Y("design:type",Object)],GH.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],GH.prototype,"errorMessage",void 0);_.P([_.J(),_.Y("design:type",Object)],GH.prototype,"isLoading",void 0);_.P([_.J(),_.Y("design:type",Object)],GH.prototype,"hideContainer",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Y("design:type",Boolean)],GH.prototype,"isPlaylistThumbnail",void 0);_.P([_.BG("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],GH.prototype,"dataChanged",null);_.P([_.wz("image-updated"),_.wz("yt-refit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GH.prototype,"updatePositionOfAllCorners",null);
_.P([_.gz({is:"yt-image-editor-renderer",disableElementRegistration:!0})],GH);
_.H(GH,"yt-image-editor-renderer",function(){if(oWl===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;BXC===void 0&&(BXC=document.createElement("template"));var b=BXC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);oWl=W}W=oWl;return W},{mode:2});var WoC;var eAu;var Dx=function(){return _.O.apply(this,arguments)||this};
_.Z(Dx,_.O);Dx.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
Dx.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
Dx.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Dx.prototype,"ytComponentBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],Dx.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",String)],Dx.prototype,"minutes",void 0);_.P([_.J(),_.Y("design:type",String)],Dx.prototype,"seconds",void 0);_.P([_.J(),_.Y("design:type",String)],Dx.prototype,"description",void 0);_.P([_.J(),_.Y("design:type",Function)],Dx.prototype,"handleMinutesChanged",void 0);
_.P([_.J(),_.Y("design:type",Function)],Dx.prototype,"handleSecondsChanged",void 0);_.P([_.J(),_.Y("design:type",Function)],Dx.prototype,"handleDescriptionChanged",void 0);_.P([_.J(),_.Y("design:type",Number)],Dx.prototype,"characterLimit",void 0);_.P([_.J(),_.Y("design:type",Number)],Dx.prototype,"textNumRows",void 0);_.P([_.gz({is:"yt-report-details-form-content",disableElementRegistration:!0})],Dx);
_.H(Dx,"yt-report-details-form-content",function(){if(eAu===void 0){var W=document.createElement("template");_.p(W,'\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>');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;WoC===void 0&&(WoC=document.createElement("template"));var b=WoC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);eAu=W}W=eAu;return W},{mode:2});var tsQ;var bA$;var Sp=function(){var W=_.O.apply(this,arguments)||this;W.updateMinutesFromBinding=function(e){W.minutes=e.detail.value};
W.updateSecondsFromBinding=function(e){W.seconds=e.detail.value};
W.updateDescriptionFromBinding=function(e){W.description=e.detail.value};
return W};
_.Z(Sp,_.O);_.r=Sp.prototype;_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.r.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"}}}};
_.r.ready=function(){_.rz(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.r.onSubmitYtAction=function(W){var e=W.detail;e.actionName==="yt-service-request"&&(e=e.args[1],e.flagEndpoint&&(W.stopPropagation(),this.refireAction(e)))};
_.r.refireAction=function(W){var e={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(e.vss_id=this.vssId);_.X5(this.hostElement,[W,e]);this.submitDisabled=!0};
_.r.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var e=_.tv();e&&e.getPlayerPromise().then(function(t){var b=t.getOption("cc","track")||t.getOption("captions","track");b&&(W.vssId=b.vss_id);t=t.getCurrentTime();W.minutes=Math.floor(t/60).toString();W.seconds=(Math.floor(t)%60).toString()})};
_.r.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.r.onYtServiceRequestCompleted=function(){_.RT(this.hostElement,"yt-close-popup-action")};
_.r.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Ec.Object.defineProperties(Sp.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
Sp.prototype.onYtServiceRequestError=Sp.prototype.onYtServiceRequestError;Sp.prototype.onYtServiceRequestCompleted=Sp.prototype.onYtServiceRequestCompleted;Sp.prototype.updateSubmitButtonState=Sp.prototype.updateSubmitButtonState;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);
_.P([_.J({observer:"dataChanged"}),_.Y("design:type",Object)],Sp.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Sp.prototype,"submitDisabled",void 0);_.P([_.J(),_.Y("design:type",String)],Sp.prototype,"minutes",void 0);_.P([_.J(),_.Y("design:type",String)],Sp.prototype,"seconds",void 0);_.P([_.J(),_.Y("design:type",String)],Sp.prototype,"description",void 0);_.P([_.J(),_.Y("design:type",String)],Sp.prototype,"vssId",void 0);
_.P([_.J({value:_.Ot("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sp.prototype,"isMusic",void 0);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Sp.prototype,"characterLimit",null);_.P([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Sp.prototype,"textNumRows",null);
_.P([_.BG("minutes","seconds","description","submitDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"updateSubmitButtonState",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"onYtServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sp.prototype,"onYtServiceRequestError",null);_.P([_.gz({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Sp);
_.H(Sp,"yt-report-details-form-renderer",function(){if(bA$===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;tsQ===void 0&&(tsQ=document.createElement("template"));var b=tsQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);bA$=W}W=bA$;return W});var mKQ;var rb9;var q2$;var RAU;var B8=function(){return _.O.apply(this,arguments)||this};
_.Z(B8,_.O);
B8.prototype.onCheckedChanged_=function(){if(this.data){var W=_.rz(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.RT(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.RT(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.RT(this.hostElement,"yt-modify-report-form-command",[_.l(this.data.enableCommand,S4$)]):!W&&this.data.disableCommand&&_.RT(this.hostElement,
"yt-modify-report-form-command",[_.l(this.data.enableCommand,S4$)])}};
B8.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.rz(this.hostElement).querySelector("#checkbox").checked=!_.rz(this.hostElement).querySelector("#checkbox").checked)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],B8.prototype,"data",void 0);_.P([_.gz({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],B8);
_.H(B8,"yt-boolean-form-field-v2-renderer",function(){if(RAU===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;q2$===void 0&&(q2$=document.createElement("template"));var b=q2$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);RAU=W}W=RAU;return W});var oi=function(){var W=_.O.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.Z(oi,_.O);oi.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}}}}};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],oi.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],oi.prototype,"canShowAdditionalDetailCheckbox",void 0);_.P([_.J(),_.Y("design:type",Object)],oi.prototype,"canShowCheckbox",void 0);_.P([_.J(),_.Y("design:type",Object)],oi.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.P([_.gz({is:"yt-report-form-modal-content",disableElementRegistration:!0})],oi);
_.H(oi,"yt-report-form-modal-content",function(){if(rb9===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;mKQ===void 0&&(mKQ=document.createElement("template"));var b=mKQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);rb9=W}W=rb9;return W},{mode:2});var QSg;var Fog;var l5=function(){var W=_.O.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.Z(l5,_.O);_.r=l5.prototype;_.r.created=function(){this.refitJob=0};
_.r.attached=function(){this.JSC$18666_scroller&&(this.JSC$18666_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18666_scroller.attached&&typeof this.JSC$18666_scroller.attached==="function"&&this.JSC$18666_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.r.onYtPopupOpened=function(){var W=_.tv();W&&W.getPlayerPromise().then(function(e){e.pauseVideo()})};
_.r.onYtNavigate=function(W){_.l(W.detail.endpoint,_.Lzo)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.r.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.r.onYtServiceRequestCompleted=function(W,e){var t=e.actions;if(t){if(t.length===1&&_.l(t[0],_.wy)){var b;t=((b=_.l(t[0],_.wy))==null?void 0:b.commands)||[]}b=0;for(var m=t.length;b<m;b++)_.l(t[b],_.jO)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(t[b]))}if(e.data&&(W=this.get("feedbackResponses",e.data)))for(e=0;e<W.length;e++)if(W[e].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.r.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.r._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.r.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var e=this.command=W.submitEndpoint;e=_.l(e,_.OdD);if(e==null?0:e.additionalDetailCheckboxChecked)e.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.r.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.r.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.r.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.r.updateDialogStyling=function(){var W,e,t,b,m,q=((m=(W=this.data)==null?void 0:(e=W.optionsSupportedRenderers)==null?void 0:(t=e.optionsRenderer)==null?void 0:(b=t.items)==null?void 0:b.length)!=null?m:0)<=2?0:240;_.XB(this.hostElement,{"--yt-report-form-modal-renderer-min-width":q+"px"})};
_.r.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.r.computeSubmitButtonData=function(W,e){var t={};_.l(e,_.Lzo)?t.navigationEndpoint=e:t.command=e||void 0;W&&W.buttonRenderer&&_.kJ.extend(t,W.buttonRenderer);return t};
_.r.computeNextButtonData=function(W,e){var t={};if(!W||!W.buttonRenderer)return t;_.kJ.extend(t,W.buttonRenderer);if(!e)return t;if(_.l(e,_.Lzo))t.navigationEndpoint=O4$(e);else if(t.command=O4$(e),W=_.l(t.command,_.OdD))W.legalCheckboxChecked=!0;return t};
_.r.computeShowNextButton=function(W,e,t){return!!W&&e&&t};
_.r.refit=function(){var W=this;this.refitJob||(this.refitJob=_.Tm.addLowPriorityJob(function(){_.q2(W.hostElement,"yt-refit");W.refitJob=0}))};
_.r.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.l(this.command,_.OdD).additionalDetailCheckboxChecked=W};
_.Ec.Object.defineProperties(l5,{template:{configurable:!0,enumerable:!0,get:function(){if(Fog===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;QSg===void 0&&(QSg=document.createElement("template"));var b=QSg;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Fog=W}W=Fog;return W}}});
l5.prototype.onYtServiceRequestError=l5.prototype.onYtServiceRequestError;l5.prototype.onYtServiceRequestCompleted=l5.prototype.onYtServiceRequestCompleted;l5.prototype.onYtServiceRequestSent=l5.prototype.onYtServiceRequestSent;l5.prototype.onYtNavigate=l5.prototype.onYtNavigate;l5.prototype.onYtPopupOpened=l5.prototype.onYtPopupOpened;_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],l5.prototype,"openPopupBehavior",void 0);
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],l5.prototype,"eventForwardingBehavior",void 0);_.P([_.y(_.gf),_.Y("design:type",Object)],l5.prototype,"ironResizableBehavior",void 0);_.P([_.J({observer:"dataChanged"}),_.Y("design:type",Object)],l5.prototype,"data",void 0);
_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"submitting",void 0);_.P([_.J({observer:"submitButtonDisabledChanged"}),_.Y("design:type",Object)],l5.prototype,"submitButtonDisabled",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"command",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l5.prototype,"hideReportForm",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"canShowCheckbox",void 0);
_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"canShowNextButton",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"additionalDetailCheckboxChecked",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"refitJob",void 0);_.P([_.J(),_.Y("design:type",Object)],l5.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.P([_.vG("#scroller"),_.Y("design:type",Object)],l5.prototype,"JSC$18666_scroller",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l5.prototype,"onYtPopupOpened",null);_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onYtNavigate",null);
_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],l5.prototype,"onYtServiceRequestSent",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],l5.prototype,"onYtServiceRequestCompleted",null);
_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],l5.prototype,"onYtServiceRequestError",null);_.P([_.gz({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],l5);var XvQ;var IyB;var Zx=function(){return _.O.apply(this,arguments)||this};
_.Z(Zx,_.O);_.r=Zx.prototype;_.r.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.r.onVisible=function(){var W,e;(e=_.ee().resolve(_.Wi(_.Is)))==null||e.enqueue({label:_.Ub((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})};
_.r.onThumbnailLoaded=function(){_.q2(this.hostElement,"yt-refit")};
_.r.onDismissTap=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.r.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.r.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.r.computeBackgroundStyle=function(W,e){if(W=this.computeBackgroundImage(W,e))if(W=_.qA(W.thumbnails))return'background-image: url("'+W+'");'};
_.r.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.r.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.r.computeIcon=function(W,e){if(W&&W.icon)return e?W.iconDark:W.icon};
_.r.computeBackgroundImage=function(W,e){if(W&&W.backgroundImage)return e?W.backgroundImageDark:W.backgroundImage};
_.r.computeLogo=function(W,e){if(W&&W.logo)return e?W.logoDark:W.logo};
_.r.computeShouldShowModernIcon=function(W,e){return W&&!!e};
_.r.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.r.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.r.logoWithPadding=function(W){var e,t,b;return(W=(e=this.computeLogo(W,this.isDarkTheme))==null?void 0:(t=e.thumbnails)==null?void 0:(b=t[0])==null?void 0:b.height)&&W%31===0?!0:!1};
Zx.prototype.onThumbnailLoaded=Zx.prototype.onThumbnailLoaded;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.P([_.J({}),_.Y("design:type",Object)],Zx.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Y("design:type",Boolean)],Zx.prototype,"modern",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],Zx.prototype,"isDarkTheme",void 0);
_.P([_.J({computed:"computeIcon(data, isDarkTheme)"}),_.Y("design:type",Object)],Zx.prototype,"icon",void 0);_.P([_.J({computed:"computeLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],Zx.prototype,"logo",void 0);_.P([_.J({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Y("design:type",Object)],Zx.prototype,"backgroundStyle",void 0);_.P([_.J({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Y("design:type",Object)],Zx.prototype,"alternateIcon",void 0);
_.P([_.J({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Y("design:type",Boolean)],Zx.prototype,"hasFullHeightImage",void 0);_.P([_.J({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Y("design:type",Boolean)],Zx.prototype,"useYoutubeSans",void 0);_.P([_.J({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Y("design:type",Boolean)],Zx.prototype,"shouldShowModernIcon",void 0);
_.P([_.wz("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zx.prototype,"onThumbnailLoaded",null);_.P([_.gz({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Zx);
_.H(Zx,"yt-mealbar-promo-renderer",function(){if(IyB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;XvQ===void 0&&(XvQ=document.createElement("template"));var b=XvQ;t.call(e,b.content.cloneNode(!0),W.content.firstChild);IyB=W}W=IyB;return W},{mode:2});var ayu;var wvC;var $7=function(){return _.O.apply(this,arguments)||this};
_.Z($7,_.O);_.r=$7.prototype;_.r.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]]"}}}}}};
_.r.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.r.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.r.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.X5(W.hostElement,[e])})};
_.r.onTap_=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
$7.prototype.observeImpressionEndpoints_=$7.prototype.observeImpressionEndpoints_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],$7.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],$7.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],$7.prototype,"positionType",void 0);_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],$7.prototype,"hasButtons_",void 0);_.P([_.J({value:function(){return this.onTap_.bind(this)}}),
_.Y("design:type",Function)],$7.prototype,"boundOnTap_",void 0);_.P([_.J({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],$7.prototype,"buttonOverride",void 0);_.P([_.ul("data.promoConfig.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$7.prototype,"observeImpressionEndpoints_",null);_.P([_.gz({is:"yt-tooltip-renderer",disableElementRegistration:!0})],$7);
_.H($7,"yt-tooltip-renderer",function(){if(wvC===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;ayu===void 0&&(ayu=document.createElement("template"));var b=ayu;t.call(e,b.content.cloneNode(!0),W.content.firstChild);wvC=W}W=wvC;return W},{mode:2});var ukC;var cbu;var vRB={},GYM=(vRB.WEB_REMIX="music.youtube.com",vRB),k7=function(){var W=_.O.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.Z(k7,_.O);_.r=k7.prototype;_.r.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.created=function(){this.embedHost_=GYM[_.Ot("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.r.ready=function(){_.rz(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.r.computeEmbedCode_=function(W,e,t,b,m){if(!W)return"";var q=W.videoId,Q=W.fullListId,X=[];W.attributionId&&X.push("si="+W.attributionId);b||X.push("controls=0");t&&Number(e)>0&&X.push("start="+e);Q&&(q="videoseries",X.push("list="+Q));t="https://"+(m?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+q;W.clipId&&(X.push("clip="+W.clipId),X.push("clipt="+W.clipTiming));e=X.length>0?t+"?"+X.join("&amp;"):t;W.encryptedEmbedConfig&&X.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
X=X.length>0?t+"?"+X.join("&amp;"):t;_.S("web_sharing_embed_preview_killswitch")?_.rz(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(X,W.previewWidth||854,W.previewHeight||480):(_.nd(this.videoPreviewContainer),_.rz(this.videoPreviewContainer).appendChild(this.buildIframeElement(X)));return this.getEmbedCode_(e,W.width||560,W.height||315)};
_.r.buildIframeElement=function(W){var e=document.createElement("iframe"),t,b;e.width=""+((b=(t=this.data)==null?void 0:t.previewWidth)!=null?b:854);var m,q;e.height=""+((q=(m=this.data)==null?void 0:m.previewHeight)!=null?q:480);_.DSs(e,2,W);e.title="YouTube video player";e.frameBorder="0";e.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";e.referrerPolicy="strict-origin-when-cross-origin";e.allowFullscreen=!0;return e};
_.r.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.r.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.r.getEmbedCode_=function(W,e,t){return'<iframe width="'+e+'" height="'+t+'" src="'+W+'" 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>'};
_.r.handleSignalActionCopyShareEmbedUrl_=function(){_.rz(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.r.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.r.closePanel_=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.r.onEmbedCode_=function(){_.rz(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.r.onYtPopupClosed_=function(){_.nd(_.rz(this.hostElement).querySelector("#video-preview"))};
_.r.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.l(this.data.actionButtons[0],_.Md)&&this.ytRendererBehavior.logExplicitClick(_.l(this.data.actionButtons[0],_.Md))};
k7.prototype.onYtPopupClosed_=k7.prototype.onYtPopupClosed_;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],k7.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],k7.prototype,"data",void 0);
_.P([_.J({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Y("design:type",String)],k7.prototype,"embedCode_",void 0);_.P([_.J({value:!0}),_.Y("design:type",Boolean)],k7.prototype,"isPlayerControlsOptionChecked_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],k7.prototype,"isPrivacyModeOptionChecked_",void 0);_.P([_.J({value:!1,notify:!0}),_.Y("design:type",Boolean)],k7.prototype,"startAtChecked_",void 0);
_.P([_.J({value:0}),_.Y("design:type",Number)],k7.prototype,"startAtTimeStamp_",void 0);_.P([_.J({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],k7.prototype,"isSquareAspectRatio_",void 0);_.P([_.vG("#video-preview"),_.Y("design:type",HTMLElement)],k7.prototype,"videoPreviewContainer",void 0);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k7.prototype,"onYtPopupClosed_",null);
_.P([_.gz({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],k7);
_.H(k7,"yt-sharing-embed-renderer",function(){if(cbu===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ukC===void 0&&(ukC=document.createElement("template"));var b=ukC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);cbu=W}W=cbu;return W},{mode:2});var DKw={};
DKw.YtUnlimitedFamilyInterstitialBehavior=[_.v4.YtOpenPopupBehavior,_.qM.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(W){W=_.ubk(_.Er(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var e={openPopupAction:{popupType:"DIALOG",popup:{}}};e.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(e)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var e=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(b){return!!W.openPopupAction.popup[b]}),t=this.getElementName_();
e&&this.data&&(this.pushToHistory({renderer:t,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.l(W,z9C))this.loading=!0,_.RT(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(e){return""+e[0].toUpperCase()+e.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var S21;var BgE;var pR=function(){return _.O.apply(this,arguments)||this};
_.Z(pR,_.O);_.r=pR.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.RT(this.hostElement,"yt-register-create-family-dialog");_.rz(this.hostElement).querySelector("#thumbnail").onShow()};
_.r.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.IT(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.r.onYtServiceRequestSent_=function(W,e){e&&e.endpoint&&_.l(e.endpoint,_.c6)||(this.loading=!0)};
_.r.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.r.openPopupHandler_=function(W){if(W.detail==this){var e;((e=this.data)==null?0:e.onOpenCommands)&&_.IT(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.r.closePopupHandler_=function(W,e){this.fireOnCloseCommand_();if(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1){var t;((t=this.data)==null?0:t.onDismissCommands)&&_.IT(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.r.dataChanged_=function(){this.loading=!1};
pR.prototype.dataChanged_=pR.prototype.dataChanged_;pR.prototype.closePopupHandler_=pR.prototype.closePopupHandler_;pR.prototype.openPopupHandler_=pR.prototype.openPopupHandler_;pR.prototype.onYtServiceRequestCompleted_=pR.prototype.onYtServiceRequestCompleted_;pR.prototype.onYtServiceRequestSent_=pR.prototype.onYtServiceRequestSent_;_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],pR.prototype,"ytEventForwardingBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(DKw.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],pR.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],pR.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pR.prototype,"loading",void 0);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],pR.prototype,"onYtServiceRequestSent_",null);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],pR.prototype,"onYtServiceRequestCompleted_",null);
_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],pR.prototype,"openPopupHandler_",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],pR.prototype,"closePopupHandler_",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pR.prototype,"dataChanged_",null);
_.P([_.gz({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],pR);
_.H(pR,"yt-unlimited-family-message-interstitial-renderer",function(){if(BgE===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;S21===void 0&&(S21=document.createElement("template"));var b=S21;t.call(e,b.content.cloneNode(!0),W.content.firstChild);BgE=W}W=BgE;return W},{mode:2});var oRC;var lyl;var yY=function(){return _.O.apply(this,arguments)||this};
_.Z(yY,_.O);yY.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"}}}};
yY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.rz(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.rz(this.hostElement).querySelector("#main-thumbnail").onShow()};
yY.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
yY.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.P([_.y(DKw.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],yY.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],yY.prototype,"data",void 0);
_.P([_.J({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Y("design:type",Number)],yY.prototype,"mainThumbnailWidth_",void 0);_.P([_.J({value:function(){return this.onButtonTap_.bind(this)}}),
_.Y("design:type",Function)],yY.prototype,"boundButtonTap_",void 0);_.P([_.gz({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],yY);
_.H(yY,"yt-unlimited-family-profile-interstitial-renderer",function(){if(lyl===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;oRC===void 0&&(oRC=document.createElement("template"));var b=oRC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);lyl=W}W=lyl;return W},{mode:2});var ZAC;var $Kl;var jp=function(){var W=_.O.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.Gv("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.Z(jp,_.O);_.r=jp.prototype;_.r.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_]]"}}}}}};
_.r.onPopupOpened_=function(W){W.detail==this&&_.S("enable_premium_voluntary_pause")&&(_.RT(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.r.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.r.dataChanged_=function(){this.data&&this.resetSlider_()};
_.r.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.l(W,_.NvD)&&_.X5(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.r.onExitButtonTap_=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.r.closePopupHandler_=function(W,e){(e&&e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.handleOnDismissCommands_()};
_.r.onSliderChange_=function(){this.selectedIndex_=_.rz(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.r.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.r.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.r.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,e=_.rz(this.hostElement).querySelector("#id-pause-slider");if(e.immediateValue<W)for(;e.immediateValue!=W;)e.increment();else if(W<e.immediateValue)for(;e.immediateValue!=W;)e.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.r.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.IT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.r.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.IT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestSent=function(){this.loading=!0};
_.r.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
jp.prototype.onYtServiceRequestCompleted=jp.prototype.onYtServiceRequestCompleted;jp.prototype.onYtServiceRequestSent=jp.prototype.onYtServiceRequestSent;jp.prototype.closePopupHandler_=jp.prototype.closePopupHandler_;jp.prototype.dataChanged_=jp.prototype.dataChanged_;jp.prototype.onPopupOpened_=jp.prototype.onPopupOpened_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],jp.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],jp.prototype,"loading",void 0);_.P([_.J(),_.Y("design:type",Number)],jp.prototype,"selectIndexMax_",void 0);_.P([_.J(),_.Y("design:type",Object)],jp.prototype,"selectedData_",void 0);
_.P([_.J(),_.Y("design:type",Object)],jp.prototype,"sliderAriaValueText_",void 0);_.P([_.J({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Y("design:type",Function)],jp.prototype,"onButtonTap_",void 0);_.P([_.J({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Y("design:type",Function)],jp.prototype,"onSecondaryTap_",void 0);_.P([_.J(),_.Y("design:type",Object)],jp.prototype,"messages",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],jp.prototype,"onPopupOpened_",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jp.prototype,"dataChanged_",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],jp.prototype,"closePopupHandler_",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],jp.prototype,"onYtServiceRequestSent",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],jp.prototype,"onYtServiceRequestCompleted",null);_.P([_.gz({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],jp);
_.H(jp,"yt-unplugged-pause-membership-dialog-renderer",function(){if($Kl===void 0){var W=document.createElement("template");_.p(W,'\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>');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ZAC===void 0&&(ZAC=document.createElement("template"));var b=ZAC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);$Kl=W}W=$Kl;return W},{mode:2});var kYw;var pv9;var CR=function(){return _.O.apply(this,arguments)||this};
_.Z(CR,_.O);CR.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.OZ("vcBalanceRenderer")}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],CR.prototype,"data",void 0);_.P([_.gz({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],CR);
_.H(CR,"yt-vc-offer-layout-header-renderer",function(){if(pv9===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;kYw===void 0&&(kYw=document.createElement("template"));var b=kYw;t.call(e,b.content.cloneNode(!0),W.content.firstChild);pv9=W}W=pv9;return W},{mode:2});var ybB;var jSu;var C7Q;var nRC;var nR=function(){return _.O.apply(this,arguments)||this};
_.Z(nR,_.O);nR.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Ec.Object.defineProperties(nR.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)}}});
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.mjr.YtTappableItemBehavior),_.Y("design:type",Object)],nR.prototype,"ytTappableItemBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],nR.prototype,"data",void 0);
_.P([_.J({reflectToAttribute:!0}),_.T("data.accessibilityText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],nR.prototype,"ariaLabel",null);_.P([_.J({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],nR.prototype,"vcOfferStyle",null);_.P([_.T("data.style","data.titleText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],nR.prototype,"showTitleText",null);_.P([_.gz({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],nR);
_.H(nR,"yt-vc-offer-renderer",function(){if(nRC===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;C7Q===void 0&&(C7Q=document.createElement("template"));var b=C7Q;t.call(e,b.content.cloneNode(!0),W.content.firstChild);nRC=W}W=nRC;return W},{mode:2});var fR=function(){return _.O.apply(this,arguments)||this};
_.Z(fR,_.O);fR.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],fR.prototype,"data",void 0);_.P([_.gz({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],fR);
_.H(fR,"yt-vc-offer-layout-renderer",function(){if(jSu===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;ybB===void 0&&(ybB=document.createElement("template"));var b=ybB;t.call(e,b.content.cloneNode(!0),W.content.firstChild);jSu=W}W=jSu;return W},{mode:2});var fyT;var gR1;var TgS;var Jbg;var TH=function(){return _.O.apply(this,arguments)||this};
_.Z(TH,_.O);TH.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}}}}}};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],TH.prototype,"data",void 0);_.P([_.gz({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],TH);
_.H(TH,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Jbg===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;TgS===void 0&&(TgS=document.createElement("template"));var b=TgS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);Jbg=W}W=Jbg;return W},{mode:2});var J$=function(){return _.O.apply(this,arguments)||this};
_.Z(J$,_.O);J$.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"}}}}};
J$.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
J$.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.P([_.vG("#scrollable"),_.Y("design:type",Object)],J$.prototype,"scrollable",void 0);_.P([_.J(),_.Y("design:type",Object)],J$.prototype,"data",void 0);_.P([_.gz({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],J$);
_.H(J$,"yt-ypc-offers-modal-renderer",function(){if(gR1===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;fyT===void 0&&(fyT=document.createElement("template"));var b=fyT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);gR1=W}W=gR1;return W},{mode:2});var xKM;var OAw;var x7=function(){return _.O.apply(this,arguments)||this};
_.Z(x7,_.O);_.r=x7.prototype;_.r.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}}}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.rz(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.r.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.RT(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.r.onYtPopupOpened_=function(W,e){(e==null?void 0:e.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.IT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.r.onYtPopupClosed_=function(W,e){this.continueButtonTapped||e&&(e.canceled===!0||e.canceled===!1&&e.confirmed===!1)&&this.data.onDismissCommands&&_.IT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.r.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.mF(this.hostElement,W.detail.error.message)};
_.r.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.S("enable_ypc_spinners")?_.RT(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
x7.prototype.onYtServiceRequestError_=x7.prototype.onYtServiceRequestError_;x7.prototype.onYtPopupClosed_=x7.prototype.onYtPopupClosed_;x7.prototype.onYtPopupOpened_=x7.prototype.onYtPopupOpened_;x7.prototype.onYtServiceRequestCompleted_=x7.prototype.onYtServiceRequestCompleted_;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);
_.P([_.J(),_.Y("design:type",Object)],x7.prototype,"data",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],x7.prototype,"showSpinner",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],x7.prototype,"continueButtonTapped",void 0);_.P([_.J({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Y("design:type",Function)],x7.prototype,"bindOnContinueTapped_",void 0);_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x7.prototype,"onYtServiceRequestCompleted_",null);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],x7.prototype,"onYtPopupOpened_",null);
_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],x7.prototype,"onYtPopupClosed_",null);_.P([_.wz("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x7.prototype,"onYtServiceRequestError_",null);_.P([_.gz({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],x7);
_.H(x7,"yt-ypc-upgrade-dialog-renderer",function(){if(OAw===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;xKM===void 0&&(xKM=document.createElement("template"));var b=xKM;t.call(e,b.content.cloneNode(!0),W.content.firstChild);OAw=W}W=OAw;return W},{mode:2});var Ms$;var sSB;var On=function(){return _.O.apply(this,arguments)||this};
_.Z(On,_.O);On.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
On.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
On.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],On.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],On.prototype,"data",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],On.prototype,"positionType",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],On.prototype,"hasButtons_",void 0);_.P([_.J({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],On.prototype,"style_",void 0);_.P([_.gz({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],On);
_.H(On,"yt-bubble-hint-renderer",function(){if(sSB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Ms$===void 0&&(Ms$=document.createElement("template"));var b=Ms$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);sSB=W}W=sSB;return W},{mode:2});var hA9;var HAC;var MJ=function(){var W=_.AA.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.Z(MJ,_.AA);_.r=MJ.prototype;_.r.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.r.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.r.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.r.computeUseOverlayForSpinner_=function(W,e){return!!W&&e};
_.r.computeShowSpinner_=function(W,e){return W||!!e};
_.r.fireOnCloseActions_=function(){var W,e=_.R(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=e.next();!W.done;W=e.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.r.fireOnOpenCommands_=function(W){var e,t=(e=this.data)==null?void 0:e.onOpenCommands;if(t)for(W.stopImmediatePropagation(),W=_.R(t),e=W.next();!e.done;e=W.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.r.fireOnDismissCommands_=function(W){var e,t=(e=this.data)==null?void 0:e.onDismissCommands;if(t)for(W.stopImmediatePropagation(),W=_.R(t),e=W.next();!e.done;e=W.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.r.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.r.closePopupHandler_=function(W,e){_.Qx(this,"yt-confirm-dialog-close-action",[e]);this.fireOnCloseActions_();(e&&e.canceled===!0||e&&e.canceled===!1&&e.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.r.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.r.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.r.computeHasLoadingMessage=function(W){return!!W};
_.r.onHeaderImageWidthChanged_=function(){var W,e=(W=this.data)==null?void 0:W.headerImageWidth;if(e){if(W=1.25*e*2+e,this.$.main.style.width=W+"px",e=this.$.scroller.firstElementChild)e.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.r.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.r.onYtNavigate_=function(W){W=_.Er(W);W instanceof Node&&_.qN(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.r.computePrimaryIsCancel_=function(W){return W};
_.r.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.r.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.r.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.r.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.r.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Ec.Object.defineProperties(MJ,{template:{configurable:!0,enumerable:!0,get:function(){if(HAC===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;hA9===void 0&&(hA9=document.createElement("template"));var b=hA9;t.call(e,b.content.cloneNode(!0),W.content.firstChild);HAC=W}W=HAC;return W}}});
MJ.prototype.onYtServiceRequestCompleted_=MJ.prototype.onYtServiceRequestCompleted_;MJ.prototype.onYtServiceRequestSent_=MJ.prototype.onYtServiceRequestSent_;MJ.prototype.onThumbnailLoaded_=MJ.prototype.onThumbnailLoaded_;MJ.prototype.onYtNavigate_=MJ.prototype.onYtNavigate_;MJ.prototype.onThumbnailChanged_=MJ.prototype.onThumbnailChanged_;MJ.prototype.onHeaderImageWidthChanged_=MJ.prototype.onHeaderImageWidthChanged_;MJ.prototype.onHeaderImageChanged_=MJ.prototype.onHeaderImageChanged_;
MJ.prototype.closePopupHandler_=MJ.prototype.closePopupHandler_;MJ.prototype.openPopupHandler_=MJ.prototype.openPopupHandler_;_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],MJ.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);
_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],MJ.prototype,"ytEventForwardingBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],MJ.prototype,"data",void 0);_.P([_.J({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],MJ.prototype,"primaryIsCancel",void 0);_.P([_.J({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],MJ.prototype,"isCancelButtonHidden",void 0);
_.P([_.J({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],MJ.prototype,"isCheckboxHidden",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],MJ.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.P([_.J({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],MJ.prototype,"useOverlayForSpinner_",void 0);
_.P([_.J({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Y("design:type",Boolean)],MJ.prototype,"showSpinner_",void 0);_.P([_.J({value:!1}),_.Y("design:type",Boolean)],MJ.prototype,"isActionInProgress_",void 0);_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Y("design:type",Boolean)],MJ.prototype,"hasHeaderImageWidth_",void 0);
_.P([_.J({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Y("design:type",Boolean)],MJ.prototype,"hasLoadingMessage",void 0);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],MJ.prototype,"openPopupHandler_",null);_.P([_.wz("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],MJ.prototype,"closePopupHandler_",null);
_.P([_.ul("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MJ.prototype,"onHeaderImageChanged_",null);_.P([_.ul("data.headerImageWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MJ.prototype,"onHeaderImageWidthChanged_",null);_.P([_.ul("data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MJ.prototype,"onThumbnailChanged_",null);
_.P([_.wz("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],MJ.prototype,"onYtNavigate_",null);_.P([_.wz("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MJ.prototype,"onThumbnailLoaded_",null);_.P([_.wz("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ka]),_.Y("design:returntype")],MJ.prototype,"onYtServiceRequestSent_",null);
_.P([_.wz("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ap]),_.Y("design:returntype")],MJ.prototype,"onYtServiceRequestCompleted_",null);_.P([_.gz({is:"yt-confirm-dialog-renderer",noInjection:!0})],MJ);var KoT;var P7B;var sn=function(){return _.O.apply(this,arguments)||this};
_.Z(sn,_.O);sn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.rz(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
sn.prototype.computeConfirmButton_=function(W){var e={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?e.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(e.serviceEndpoint=W.confirmServiceEndpoint);return e};
sn.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],sn.prototype,"data",void 0);_.P([_.J({computed:"computeShowTitle_(data)"}),_.Y("design:type",Boolean)],sn.prototype,"showTitle",void 0);_.P([_.gz({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],sn);
_.H(sn,"yt-fancy-dismissible-dialog-renderer",function(){if(P7B===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;KoT===void 0&&(KoT=document.createElement("template"));var b=KoT;t.call(e,b.content.cloneNode(!0),W.content.firstChild);P7B=W}W=P7B;return W});var Vs$;var iAB;var h$=function(){var W=_.O.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.Z(h$,_.O);h$.prototype.created=function(){XGT(2201)};
h$.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
h$.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
h$.prototype.onIronOverlayClosed=h$.prototype.onIronOverlayClosed;h$.prototype.onIronOverlayOpened=h$.prototype.onIronOverlayOpened;_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.z0),_.Y("design:type",Object)],h$.prototype,"tpYtIronOverlayBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],h$.prototype,"data",void 0);_.P([_.J(),_.Y("design:type",Object)],h$.prototype,"spinnerActive",void 0);
_.P([_.wz("iron-overlay-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h$.prototype,"onIronOverlayOpened",null);_.P([_.wz("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h$.prototype,"onIronOverlayClosed",null);_.P([_.gz({is:"yt-loading-renderer",disableElementRegistration:!0})],h$);
_.H(h$,"yt-loading-renderer",function(){if(iAB===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Vs$===void 0&&(Vs$=document.createElement("template"));var b=Vs$;t.call(e,b.content.cloneNode(!0),W.content.firstChild);iAB=W}W=iAB;return W},{mode:2});var Y2U;var zAl;var H8=function(){var W=_.O.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.Z(H8,_.O);_.r=H8.prototype;_.r.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.r.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.r.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.r.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.r.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.RT(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.r.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.RT(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.r.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.RT(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.r.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.r.computeLayoutStyle_=function(W){return W};
_.r.computePopupSize_=function(W){return W};
_.r.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.r.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.r.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.r.computeCustomLogo=function(W,e){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?e?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.r.computeHeaderBackgroundImage=function(W,e){if(W!=null&&W.headerBackgroundImage)return e&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.r.shouldShowIconContainer=function(W,e){return W&&!e};
_.r.shouldShowNonYouTubeIcon=function(W,e){return!W&&!e};
_.r.getLogoImageId=function(W){var e,t,b;return(W=(e=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(t=e.thumbnails)==null?void 0:(b=t[0])==null?void 0:b.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
H8.prototype.openPopupHandler_=H8.prototype.openPopupHandler_;H8.prototype.dataChanged_=H8.prototype.dataChanged_;_.P([_.y(_.rq.YtRendererstamperBehavior),_.Y("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.P([_.J(),_.Y("design:type",Boolean)],H8.prototype,"isDarkTheme",void 0);
_.P([_.J({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],H8.prototype,"customLogo",void 0);_.P([_.J({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Y("design:type",Object)],H8.prototype,"headerBackgroundImage",void 0);_.P([_.J(),_.Y("design:type",Object)],H8.prototype,"data",void 0);_.P([_.J({computed:"computeHasHeader_(data)"}),_.Y("design:type",Boolean)],H8.prototype,"hasHeader",void 0);
_.P([_.J({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Y("design:type",Object)],H8.prototype,"layoutStyle",void 0);_.P([_.J({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Y("design:type",Object)],H8.prototype,"popupSize",void 0);_.P([_.J({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],H8.prototype,"hasLogo",void 0);
_.P([_.J({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],H8.prototype,"hasCustomLogo",void 0);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H8.prototype,"dataChanged_",null);_.P([_.wz("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],H8.prototype,"openPopupHandler_",null);
_.P([_.gz({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],H8);
_.H(H8,"yt-upsell-dialog-renderer",function(){if(zAl===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;Y2U===void 0&&(Y2U=document.createElement("template"));var b=Y2U;t.call(e,b.content.cloneNode(!0),W.content.firstChild);zAl=W}W=zAl;return W},{mode:2});var UKg=_.NN(function(W){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.w(_.G,{cond:W.title,then:function(e){return _.w("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},e)}}))},"wg"),LoU=_.NN(function(W){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.w(_.nU,{data:W.closeButton},{buttonViewModel:function(e){return _.w("div",null,_.w(_.MV,{data:e.data}))}}))},"xg"),ERU=_.NN(function(W){var e=
W.data;
return _.w(_.qD,null,_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.w(_.G,{cond:function(){return!!e().image&&!!e().title},
then:function(){return _.w(_.A_,{data:function(){return e().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.w(_.G,{cond:function(){return e().title},
then:function(t){return _.w("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},t)}}),_.w(_.G,{cond:function(){return e().primaryGenre},
then:function(t){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},t)}}))),_.w(_.G,{cond:function(){var t=e().description;
return t&&t.length<=150},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return e().description}))}}))},"yg"),AbU=_.NN(function(W){W=W.infoRows;
var e=_.ee().resolve(_.Tb),t=_.S("enable_displaying_ppn");return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.w(_.lV,{each:W},function(b){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w(_.G,{cond:function(){return b.label},
then:function(m){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},m)}}),_.w(_.G,{cond:function(){return b.attributedLabel},
then:function(m){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.w(_.WL,{text:m,noPreWrap:!0}))}}),_.w(_.G,{cond:function(){return b.value},
then:function(m){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},m)}}),_.w(_.G,{cond:function(){return b.attributedValue},
then:function(m){return _.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.w(_.WL,{text:m,noPreWrap:!0}))}}))}),_.w(_.G,{cond:function(){return t&&e.clientData.has("post_play_nonce")},
then:function(){return _.w("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.w("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},e.getData("post_play_nonce")))}}))},"zg"),NgB=_.NN(function(W){var e=W.data;
return _.w("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.w(UKg,{title:function(){return e().dialogTitle}}),_.w(ERU,{data:e}),_.w(_.G,{cond:function(){return e().infoRow},
then:function(t){return _.w(AbU,{infoRows:t})}}),_.w(LoU,{closeButton:function(){return e().closeButton}}))},"Ag");
NgB.idomCompat=!0;_.mM(NgB,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;return _.w("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.w(_.A_,{data:function(){return e().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.w("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.w(_.G,{cond:function(){var t=e().ytLogo;return t?t.iconType:null},
then:function(t){return _.w(_.kD,{icon:t,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.w("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.w("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.w(_.WL,{text:function(){return e().body}})),_.w("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.w(_.WL,{text:function(){return e().verifyStateText}}))),
_.w("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.w("div",null,_.w(_.nU,{data:function(){return e().dismissButton}},{buttonViewModel:_.MV})),_.w("div",null,_.w(_.nU,{data:function(){return e().linkParentButton}},{buttonViewModel:_.MV})))))},"Bg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Eu}});var dK1=_.NN(function(W){var e=W.data;W=_.LD(function(){return e().agreements},[]);
return _.w("installment-agreements-view-model",{class:_.ve("ytInstallmentAgreementsViewModelHost")},_.w(_.lV,{each:W},function(t){return _.w("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.w(_.WL,{text:t.label})),_.w("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.w(_.nU,{data:function(){return t.openButton}},{buttonViewModel:_.MV})))}))},"Cg");
dK1.idomCompat=!0;var WHU=_.NN(function(W){return _.w("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.w(_.WL,{text:function(){return W.data().inviteMessage}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.w(_.WL,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.w(_.nU,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.pz}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.w(_.WL,{text:function(){return W.data().accountName}}),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.w(_.WL,{text:function(){return W.data().handle}}))),_.w(_.nU,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.MV})),_.w("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.w(_.WL,{text:function(){return W.data().termsOfService}})))},"Dg");var eJC=_.NN(function(W){var e=_.R(_.ZT(function(){var E,RR;return((E=W.data().createPlaylistDialogFormSchema)==null?0:(RR=E.initialValues)==null?0:RR.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),t=e.next().value,b=e.next().value;
e=_.R(_.ZT(function(){W.data();return!1}));
var m=e.next().value,q=e.next().value;e=_.R(_.ZT(function(){W.data();return!1}));
var Q=e.next().value,X=e.next().value;e=_.R(_.ZT(function(){var E,RR;return(E=W.data().createPlaylistDialogFormSchema)==null?void 0:(RR=E.initialValues)==null?void 0:RR.visibility}));
var I=e.next().value,u=e.next().value;e=_.R(_.ZT(function(){W.data();return!1}));
var c=e.next().value,v=e.next().value;e=_.R(_.ZT(function(){var E,RR;return(E=W.data().createPlaylistDialogFormSchema)==null?void 0:(RR=E.initialValues)==null?void 0:RR.isCollaborative}));
var D=e.next().value,B=e.next().value,k=_.zT("div");_.nh(function(){var E=k.value.querySelector("textarea");E&&(E.value=t())},"OCauEe");
_.nt(function(){var E;_.SEB((E=W.data().createPlaylistDialogFormSchema)==null?void 0:E.id,{onSubmit:function(){var RR=t();var uv=I(),GS=D(),k9=W.data();RR={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:RR,privacyStatus:uv,videoIds:k9.videoIds,sourcePlaylistId:k9.sourcePlaylistId,params:GS?k9.createPlaylistParamsCollaborationEnabled:k9.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.ee().resolve(_.tQ).resolveCommand(RR)},
isValid:function(){return m()&&!Q()&&!c()}})});
var n=function(E){if(E!==void 0&&(b(E),!m()&&E.length>0&&q(!0),m())){var RR=ogl(W.data());if(RR){var uv=RR.minLength;RR=RR.maxLength;uv&&E.length<uv?X(!0):RR&&E.length>RR?X(!0):X(!1)}}},f=function(){var E=!(!D()||I()!=="PRIVATE");
v(E)},M=function(E){E!==void 0&&(u(E),f())},K=function(){if(c())return ZGu(W.data())},U=function(){B(!D());
f()},V=function(){return{validate:function(E){if(m()){var RR=ogl(W.data());
if(RR){var uv=RR.minLength;RR=RR.translations;if(uv&&E.length<uv)return RR==null?void 0:RR.minLengthErrorMessage}}}}},L=function(){var E=ogl(W.data()),RR=E==null?void 0:E.maxLength,uv;
E=E==null?void 0:(uv=E.translations)==null?void 0:uv.maxLengthErrorMessage;if(RR&&E)return{maxChars:RR,errorMessage:E}};
return _.w("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.w("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:k},_.w(_.nU,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(E){return _.w(_.qt1,{data:E.data,
text:t,onInput:n,validation:V,characterLimit:L})},
textFieldViewModel:function(E){return _.w(_.rJ1,{data:E.data,text:t,onInput:n,validation:V,characterLimit:L})}})),_.w("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.w(_.nU,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(E){return _.w(_.DDu,{data:E.data,
onSelected:M,error:K})}})),_.w(_.G,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.w("div",null,_.w(_.nU,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(E){return _.w(_.ax8,{data:E.data,
onTap:U})}}))}}))},"Eg");var ta$=_.NN(function(W){var e=_.LD(W.noPadding,!1),t=function(){var m,q;return(q=(m=W.data().logo.accessibilityData)==null?void 0:m.label)!=null?q:""},b={};
return _.w("upsell-view-model",{class:_.ve("ytUpsellViewModelHost",(b.ytUpsellViewModelHostNoPadding=function(){return e()},b))},_.w("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.w(_.G,{cond:function(){return _.dN(W.data().logo)},
then:function(m){return _.w(_.A_,{data:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:t})}})),_.w("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.w(_.WL,{text:function(){return W.data().title}})),_.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.w(_.lV,{each:function(){var m;
return(m=W.data().subtitles)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.w("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.w(_.WL,{text:m}))})),_.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.w(_.lV,{each:function(){var m;
return(m=W.data().benefitInfos)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.w(_.G,{cond:function(){return m().info},
then:function(q){return _.w("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.w(_.kD,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.w(_.WL,{text:q}))}})})),_.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.w(_.lV,{each:function(){var m;
return(m=W.data().legalInfos)!=null?m:[]},
keyBy:"INDEX"},function(m){return _.w("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.w(_.WL,{text:m}))})))},"Fg");var bjE=_.NN(function(W){var e=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=$fS(),W);return _.w("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.w("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return e().title}),_.w("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return e().subtitle}),_.w("div",{class:_.DT(W)},_.w("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return e().score})),_.w("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return e().prompt}))},"Gg");var meT=function(){this.store=_.Yt();this.formId=""};var r1E=_.NN(function(W){function e(X){if(X&&(X=_.l(X,_.ov)))return Object.assign({},X,{isSelected:q()})}
var t=_.R(_.ZT(function(){var X,I;return(I=(X=_.l(W.data().option,_.ov))==null?void 0:X.isSelected)!=null?I:!1})),b=t.next().value,m=t.next().value,q=b;
_.nt(function(){var X;_.SEB((X=W.data().formSchema)==null?void 0:X.id,{onSubmit:function(){var I=_.ee().resolve(_.tQ),u=!!W.data().selectedCommand,c=!!W.data().unselectedCommand;if(q()){if(u)var v=W.data().selectedCommand}else c&&(v=W.data().unselectedCommand);v=_.Mk(v);e(W.data().option)&&!v?(I="",!u&&c?I="selected ":u&&!c&&(I="unselected "),u=new _.o_("No "+I+"command found for SelectionListItemFormViewModel"),_.gQ(u)):v&&I.resolveCommand(v)},
isValid:function(){return!0}})});
var Q=function(){m(!q())};
_.fh(function(){var X,I,u=(X=W.data())==null?void 0:(I=X.formSchema)==null?void 0:I.id;u&&_.GaT()().delete(u)});
return _.w("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.w("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.w(_.WL,{text:function(){return W.data().paragraph}})),_.w(_.G,{cond:function(){return e(W.data().option)},
then:function(X){return _.w(_.p$,{data:X,isCompact:!0,hideSelectionTextChevron:!0,onTap:Q,disableHorizontalPadding:!0})}}))},"Hg");var qsT=_.NN(function(W){var e=W.data;var t=W.disablePadding;var b=W.className;var m=_.zT("yt-dialog-header-view-model"),q=function(){var X=e().imageBanner;a:switch(e().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var I="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:I="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:X,style:I,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Q=function(){return e().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.nt(function(){var X=function(){_.RT(m.value,"yt-refit-popups-action")},I;
(I=m.value)==null||I.addEventListener("image-loaded",X);_.fh(function(){var u;(u=m.value)==null||u.removeEventListener("image-loaded",X)})});
W={};return _.w("yt-dialog-header-view-model",{el:m,class:_.ve(b,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=t,W))},_.w(_.G,{cond:function(){return e().imageBanner},
then:function(){var X={};return _.w("div",{class:_.ve(b,(X.ytDialogHeaderViewModelBanner=!0,X.ytDialogHeaderViewModelBannerFullBleed=Q,X)),style:_.$D({"max-height":function(){return e().assetContainerMaxHeight!==void 0?e().assetContainerMaxHeight+"px":void 0}})},_.w(_.WB,{data:q,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.w(_.G,{cond:function(){return e().headerBlock},
then:function(){return _.w("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.w(_.nU,{data:function(){return e().headerBlock}},{contentPreviewImageViewModel:function(X){return _.w(_.WB,{data:X.data,
notifyOnLoaded:!0})}}))}}),_.w(_.G,{cond:function(){return e().customAssetContainer},
then:function(X){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.nU,{data:X},{avatarStackViewModel:_.jU}))}}),_.w(_.G,{cond:function(){return e().customBanner},
then:function(X){return _.w("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.w(_.nU,{data:X},{avatarStackViewModel:_.jU}))}}),_.w(_.G,{cond:function(){return e().headline},
then:function(X){return _.w("h2",null,_.w(_.WL,{text:X,className:"ytDialogHeaderViewModelText"}))}}))},"Ig");
qsT.idomCompat=!0;var RJ$=_.NN(function(W){var e=_.B6C(function(){return W.data().formId}),t=e.onSubmit,b=e.isValid;
return _.w("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.w(_.nU,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(m){return _.w(_.sM,{data:m.data,
disablePadding:!0,disablePrimaryButton:function(){return!b()},
onClickPrimaryButton:function(){t()}})}}))},"Jg");var QJB=_.NN(function(W){var e=function(){var t,b;return(b=(t=_.l(W.data().rendererContext,_.ly))==null?void 0:t.label)!=null?b:""};
return _.w("yt-dialog-image-content-view-model",{class:_.ve("ytDialogImageContentViewModelHost",W.className)},_.w(_.G,{cond:function(){return _.dN(W.data().image)},
then:function(t){return _.w(_.A_,{data:t,alt:e,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.w(_.WL,{text:function(){return W.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kg");var Ip$=_.NN(function(W){var e=_.Ez(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),t=e.elRefCallback;W=e.iconWiz;var b=e.assetWiz,m=e.assetType,q=e.titleWiz,Q=e.leadingActionHeaderWiz,X=e.trailingActionHeaderWiz,I=e.headerPosition,u=e.contentWiz,c=e.buttonLayout,v=e.buttonStyle,D=e.primaryButtonWiz,B=e.secondaryButtonWiz,k=e.contentAlignment,n=e.isFullscreen,f=e.width,M=e.maxHeight,K=e.isHeaderWizDefined,
U=e.headerWiz,V=e.isFooterWizDefined,L=e.footerWiz;e=_.zT("dialog-layout",function(hz){t==null||t(hz)});
var E=b?function(){return b({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,RR=D?function(){var hz={};
return D({buttonOverrides:function(){return{style:(v==null?void 0:v())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ve((hz["yt-spec-dialog-layout__dialog-layout-button"]=!0,hz["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(c==null?void 0:c())===0||(c==null?void 0:c())===2},hz))})}:void 0,uv=B?function(){var hz={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ve((hz["yt-spec-dialog-layout__dialog-layout-button"]=!0,hz["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(c==null?void 0:c())===0||(c==null?void 0:c())===2},hz))})}:void 0,GS=function(){return(!!q||!!Q||!!X)&&I()===0},k9={},CQ={},fQ={},iv={};
return _.w("dialog-layout",{el:e,class:_.ve((k9["yt-spec-dialog-layout"]=!0,k9["yt-spec-dialog-layout--dialog-layout-fullscreen"]=n,k9["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!n()},k9["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return M()===1},k9["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(m==null?void 0:m())===1},k9)),
style:function(){return(f==null?void 0:f())!==void 0?"width: "+f+"px;":""}},W?_.w("div",{class:_.ve((CQ["yt-spec-dialog-layout__dialog-layout-icon"]=!0,CQ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!b&&I()===1},CQ["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return k()===1},CQ))},_.w(W,null)):null,_.w(_.G,{cond:K,
then:function(){return U?_.w("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.w(U,null)):null},
else:function(){return _.w(_.qD,null,_.w(_.G,{cond:GS,then:function(){return _.w(FHB,{contentAlignment:k,LeadingActionHeader:Q,TrailingActionHeader:X,Title:q,isAboveAsset:!!E})}}),E?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.w(E,null)):null)}}),_.w("div",{class:_.ve((fQ["yt-spec-dialog-layout__dialog-layout-container"]=!0,fQ["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(k==null?void 0:k())===1},fQ["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!q&&!U||!!E&&(I==null?void 0:I())===0},fQ))},_.w(_.G,{cond:function(){return q&&!U&&(I==null?void 0:I())===1},
then:function(){return _.w(FHB,{contentAlignment:k,LeadingActionHeader:Q,TrailingActionHeader:X,Title:q,isAboveAsset:!1})}}),u?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.w(u,null))):null,_.w(_.G,{cond:V,
then:function(){return L?_.w("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.w(L,null)):null}}),RR||uv?_.w(XWw,{footerClasses:_.ve((iv["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,iv["yt-spec-dialog-layout__dialog-layout-footer"]=!0,iv["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(c==null?void 0:c())===2},iv["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(c==null?void 0:c())===1},iv)),
PrimaryButton:RR,SecondaryButton:uv}):null))},"Lg"),FHB=_.NN(function(W){var e=_.Ez(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),t=e.contentAlignment,b=e.LeadingActionHeader;W=e.Title;var m=e.TrailingActionHeader,q=e.isAboveAsset,Q=e.enableLeadingActionHeader;e={};return _.w("div",{class:_.ve((e["yt-spec-dialog-layout__dialog-header-container"]=!0,e["yt-spec-dialog-layout__dialog-header"]=!0,e["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=q,e["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(t==null?void 0:t())===1&&Q()},e))},_.w(_.G,{cond:function(){return Q()},
then:function(){return b?_.w("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.w(b,null)):null}}),W?_.w("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.w(W,null)):null,m?_.w("div",null,_.w(m,null)):null)},"Mg"),XWw=_.NN(function(W){var e=W.footerClasses;
var t=W.PrimaryButton;W=W.SecondaryButton;return _.w("div",{class:e},W?_.w(W,null):null,t?_.w(t,null):null)},"Ng");var apg=_.NN(function(W){var e=W.data;return _.w("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.w("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.w(_.nU,{data:function(){return e().avatar}},{avatarViewModel:_.pz})),_.w("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w(_.WL,{text:function(){return e().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Og");var wWw=_.NN(function(W){var e=W.data;return _.w("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.w("div",{class:"ytAccessConfirmationViewModelContent"},_.w(_.nU,{data:function(){return e().dualAvatar}},{dualAvatarViewModel:function(t){return _.w(_.VqN,{data:t.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.w("h2",{class:"ytAccessConfirmationViewModelTitle"},_.w(_.WL,{text:function(){return e().title}})),_.w(_.WL,{text:function(){return e().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pg");var unT=_.NN(function(W){var e=W.data;var t=void 0;W=_.R(_.ZT(function(){var u;return((u=_.l(e().content,_.T$1))==null?void 0:u.defaultSelectedKey)||""}));
var b=W.next().value,m=W.next().value,q,Q=function(){m("");var u;(u=t)!=null&&u.store.dispatch(_.rO({type:"RESET_COMMAND_MAP"}))};
_.nt(function(){t=new meT;window.addEventListener("yt-popup-closed",Q)});
_.nh(function(){if(t&&q!==e().formId){var u=t,c=e();c.formId&&(u.formId=c.formId,u.store.dispatch(_.rO({type:"SET_CURRENT_FORM_ID",payload:{formId:u.formId}})));(q=e().formId)&&b()&&(u=t,c={key:b()},c.command&&u.store.dispatch(ITC(q,c.command)))}},"k6b6Qe");
_.fh(function(){window.removeEventListener("yt-popup-closed",Q)});
var X=function(u,c,v){c.key&&v&&c.key!==b()&&(m(c.key),t&&c.command&&t.store.dispatch(ITC(v,c.command)))},I=function(){if(_.l(e().content,_.T$1))return!(b==null?0:b())};
return _.w("yt-dialog-view-model",{class:_.ve("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.w(Ip$,{headerWiz:function(){return _.w("span",{skip:!0},_.w(_.nU,{data:function(){return e().header}},{dialogHeaderViewModel:function(u){return _.w(qsT,{data:u.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!e().header},
contentWiz:function(){return _.w("span",{skip:!0},_.w(_.nU,{data:function(){return e().customContent?e().customContent:e().content}},{basicContentViewModel:_.yz1,
createPlaylistDialogFormViewModel:eJC,collaborativePlaylistInviteMessageViewModel:WHU,miniAppScoreChallengeViewModel:bjE,radioButtonGroupViewModel:function(u){var c=u.data;return _.w(_.cJu,{data:c,selectedKey:b,onSelected:X,groupName:function(){return c().formId}})},
selectionListItemFormViewModel:r1E,upsellViewModel:function(u){return _.w(ta$,{data:u.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:apg,installmentAgreementsViewModel:dK1,accessConfirmationViewModel:wWw,listViewModel:function(u){return _.w(_.Bao,{data:u.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:QJB}))},
footerWiz:function(){return _.w("span",{skip:!0},_.w(_.nU,{data:function(){return e().footer}},{panelFooterViewModel:function(u){return _.w(_.sM,{data:u.data,
disablePadding:!0,disablePrimaryButton:I})},
formPanelFooterViewModel:RJ$,formFooterViewModel:function(u){return _.w(_.tmQ,{data:u.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!e().footer}}))},"Qg");
unT.idomCompat=!0;_.mM(unT,"yt-dialog-view-model",{props:{data:_.Eu},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var c1$=_.NN(function(W){var e=W.data;W={};return _.w("yt-panel-header-view-model",{class:_.ve("yt-panel-header-view-model-wiz",(W["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!e().shouldHideDivider},W["yt-panel-header-view-model-wiz--compact"]=function(){return!!e().subtitle},W))},_.w("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.w(_.G,{cond:function(){return e().title},
then:function(t){return _.w(_.WL,{text:t,className:"yt-panel-header-view-model-wiz__title"})}}),_.w(_.G,{cond:function(){return e().subtitle},
then:function(t){return _.w(_.WL,{text:t,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.w("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.w(_.nU,{data:function(){return e().trailingButtons}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Rg");
c1$.idomCompat=!0;var vuQ=_.NN(function(W){var e=_.Be(function(q){var Q;if((Q=W.skipContentClick)==null?0:Q.call(W))return!1;W.onContentWrapperClick(q);return!0}),t,b,m;
return _.w("div",{class:_.ve("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(t=W.header)==null?void 0:t.call(W),_.w("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.$D({"max-height":(0,_.$A)(W.maxHeightForContentWrapper)}),"on:scroll":j1S(W.onScroll),"on:touchmove":j1S(function(q){return void q.stopPropagation()})},_.w("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":e},(b=W.body)==null?void 0:b.call(W))),(m=W.footer)==null?void 0:m.call(W))},"Sg");
vuQ.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var GNC=_.NN(function(W){var e=_.LD(W.leadingLabel),t=_.LD(W.trailingLabel),b=_.LD(W.footerButtonType),m=function(){return e()||t()||W.hasPrimaryButton()||W.hasSecondaryButton()},q={},Q=_.ve("yt-spec-bottom-sheet-layout__primary-button",(q["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return b()===0&&W.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return b()===1&&W.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return b()===2&&W.hasPrimaryButton()},q["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return b()===3&&W.hasPrimaryButton()},q));
q={};var X=_.ve("yt-spec-bottom-sheet-layout__secondary-button",(q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return b()===1&&W.hasSecondaryButton()},q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return b()===2&&W.hasSecondaryButton()},q["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return b()===3&&W.hasPrimaryButton()},q));
return _.w(_.G,{cond:W.hasFooterOverride,then:function(){var I;return _.w(_.qD,null,(I=W.footerOverride)==null?void 0:I.call(W))},
else:function(){return _.w(_.G,{cond:m,then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.w(_.G,{cond:function(){return e()||t()},
then:function(){var I={};return _.w("div",{class:_.ve("yt-spec-bottom-sheet-layout__footer-label-wrapper",(I["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},I))},_.w(_.G,{cond:e,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},e)}}),_.w(_.G,{cond:t,
then:function(){return _.w("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},t)}}))}}),_.w(_.G,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var I={};return _.w("div",{class:_.ve("yt-spec-bottom-sheet-layout__footer-button-wrapper",(I["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.ZAb,I))},_.w(_.G,{cond:function(){return W.hasSecondaryButton()&&b()!==0},
then:function(){var u;return _.w("div",{class:X},(u=W.secondaryButton)==null?void 0:u.call(W))}}),_.w(_.G,{cond:W.hasPrimaryButton,
then:function(){var u;return _.w("div",{class:Q},(u=W.primaryButton)==null?void 0:u.call(W))}}))}}))}})}})},"Tg");
GNC.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var De1=_.NN(function(W){var e=_.LD(W.title),t=_.LD(W.subtitle);return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":_.Be(function(b){var m;(m=W.touchstart)==null||m.call(W,b);return!1}),
"on:touchmove":_.Be(function(b){var m;(m=W.touchmove)==null||m.call(W,b);return!1}),
"on:touchend":_.Be(function(b){var m;(m=W.touchend)==null||m.call(W,b);return!1})},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.w(_.G,{cond:W.hasHeaderOverride,
then:function(){var b;return _.w(_.qD,null,(b=W.headerOverride)==null?void 0:b.call(W))},
else:function(){var b={};return _.w("div",{class:_.ve((b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=e,b))},_.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.w(_.G,{cond:e,then:function(){return _.w(_.qD,null,_.w("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},e),_.w(_.G,{cond:t,then:function(){return _.w("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
t)}}))}})),_.w(_.G,{cond:function(){return e()&&W.hasActionHeader()},
then:function(){var m;return _.w("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(m=W.actionHeader)==null?void 0:m.call(W))}}))}}))},"Ug");
De1.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.NN(function(W){function e(E){if(!M&&typeof MutationObserver!=="undefined"){var RR={childList:!0};"MutationObserver"in window&&(M=new MutationObserver(t.bind(void 0,E)),M.observe(E,RR))}}
function t(E){typeof M!=="undefined"&&(K["content-wrapper"]===void 0&&(K["content-wrapper"]=E.children[0].clientHeight),B(K["content-wrapper"]),D()>k()||n(D()))}
function b(){v(window.innerHeight);D()>k()||n(D());U.isFullScreen[0]()&&D()>k()?V().dispatch("Snap To Full Screen",{maxHeight:f()}):V().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function m(E){document.body.style.overscrollBehavior="none";E.preventDefault();V().dispatch("Touch Start",{event:E})}
function q(E){E.preventDefault();V().dispatch("Touch Move",{event:E,contentScrollable:D()>k(),fullContentWrapperHeight:f(),contentWrapperHeight:k(),contentHeightMap:K,contentWrapperId:"content-wrapper",header:ngC(W),footer:ngC(W)})}
function Q(){document.body.style.overscrollBehavior="";U.isFullScreen[0]()?U.currentY[0]()>=60?V().dispatch("Snap To Neutral Position",{maxHeight:k()}):V().dispatch("Snap To Full Screen",{maxHeight:f()}):U.currentY[0]()>=60?X():U.currentY[0]()<=-60&&D()>k()?V().dispatch("Snap To Full Screen",{maxHeight:f()}):V().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function X(){V().dispatch("Close Sheet",{clientHeight:c(),maxHeight:0});setTimeout(function(){CXC()},250)}
var I=_.R(_.up(window.innerHeight,void 0,"NWeFS")),u=I.next().value;I=I.next().value;var c=u,v=I;I=_.R(_.up(0,void 0,"oxfm4"));u=I.next().value;I=I.next().value;var D=u,B=I;I=_.R(_.ZT(function(){var E=ngC(W);return.6*c()-kqQ(E)-pmC(E)}));
u=I.next().value;I=I.next().value;var k=u,n=I,f=function(){var E=ngC(W);return c()-kqQ(E)-pmC(E)-24-24},M=null,K={},U={initialY:_.up(0,void 0,"cYBE5c"),
currentY:_.up(0,void 0,"RndqHc"),isAnimating:_.up(!1,void 0,"vO9DVd"),isFullScreen:_.up(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.ZT(k)},V=function(){var E=null;return function(){if(!E){var RR={initialY:U.initialY[0](),currentY:U.currentY[0](),isAnimating:U.isAnimating[0](),isFullScreen:U.isFullScreen[0](),maxHeightForContentWrapper:U.maxHeightForContentWrapper[0]()};E=ym9(RR)}return E}}();
_.nt(function(){window.addEventListener("resize",b);V().subscribe(function(E){U.initialY[1](E.initialY);U.currentY[1](E.currentY);U.isAnimating[1](E.isAnimating);U.isFullScreen[1](E.isFullScreen);U.maxHeightForContentWrapper[1](E.maxHeightForContentWrapper)})});
_.fh(function(){window.removeEventListener("resize",b);M&&(M.disconnect(),M=null)});
var L=_.ve({"bottom-sheet-content-without-icon":function(){var E;return!((E=W.shouldShowIcons)==null?0:E.call(W))}});
return _.w("bottom-sheet-layout",null,_.w(vuQ,{contentWrapperId:"content-wrapper",isAnimating:function(){return U.isAnimating[0]()},
currentY:function(){return U.currentY[0]()},
maxHeightForContentWrapper:function(){return U.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var E=document.getElementById("header-wrapper"),RR=document.getElementById("content-wrapper");if(E&&RR){var uv={};uv=(uv["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,uv["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,uv);E.className=RR.scrollTop>1?_.DT(uv):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:CXC,contentWrapperEl:function(E){e(E);requestAnimationFrame(function(){t(E)})},
header:function(){return _.w(De1,{touchstart:m,touchmove:q,touchend:Q,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.w(GNC,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.w(_.G,{cond:W.hasContentFn,then:function(){var E;return _.w("div",{class:L},(E=W.contentFn)==null?void 0:E.call(W))}})}}))},"Vg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Ssu=_.NN(function(W){var e=_.ee().resolve(_.lR);return _.w("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Be(function(){return void e.closeSheet()})},_.w(_.G,{cond:function(){return!!W.header},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},W.header())}}),_.w(_.G,{cond:function(){return!!W.content},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},W.content())}}),_.w(_.G,{cond:function(){return!!W.footer},
then:function(){return _.w("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},W.footer())}}))},"Wg");
Ssu.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var BZC=_.NN(function(W){W=W.data;var e=_.zT("yt-sheet-view-model",function(b){if(_.S("web_focus_first_element_sheet"))return b.addEventListener("focus",function(){lt1(b)}),function(){b.removeEventListener("focus",function(){lt1(b)})}}),t={};
return _.w("yt-sheet-view-model",{class:_.ve("yt-sheet-view-model-wiz",(t["yt-sheet-view-model-wiz--contextual"]=!0,t["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.S("web_disable_backdrop_filter"),t)),el:e,tabindex:-1},_.w(_.G,{cond:W,then:function(b){return _.w(Ssu,{header:function(){return _.w(_.nU,{data:function(){return b().header}},{panelHeaderViewModel:c1$})},
content:function(){return _.w(_.nU,{data:function(){return b().content}},{listViewModel:function(m){return _.w(_.Bao,{data:m.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:ta$,miniAppScoreChallengeViewModel:bjE})},
footer:function(){return _.w(_.nU,{data:function(){return b().footer}},{panelFooterViewModel:_.sM})}})}}))},"Xg");
BZC.idomCompat=!0;_.mM(BZC,"yt-sheet-view-model",{props:{data:_.Eu}});var lpl=_.NN(function(W){var e=function(){var t;return(t=W.data().enableDebuggingFeatures)!=null?t:!1};
return _.w("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.w(_.lV,{each:function(){var t;return(t=W.data().stickers)!=null?t:[]}},function(t){return _.w(oul,{data:function(){return t},
debugMode:e})}))},"Yg"),oul=_.NN(function(W){var e=_.Ez(W,{debugMode:!1}).debugMode,t=_.LD(function(){var I;
return(I=W.data().region)==null?void 0:I.w},0),b=_.LD(function(){var I;
return(I=W.data().region)==null?void 0:I.h},0),m=_.LD(function(){var I;
return(I=W.data().region)==null?void 0:I.x},0),q=_.LD(function(){var I;
return(I=W.data().region)==null?void 0:I.y},0),Q=_.Be(function(){var I=W.data().onTap;
I&&_.K4(I)}),X={};
return _.w("div",{class:_.ve("ytStoriesStickerLayerViewModelSticker",(X.ytStoriesStickerLayerViewModelDebugMode=e,X)),style:_.$D({width:function(){return 100*t()+"%"},
height:function(){return 100*b()+"%"},
left:function(){return 100*m()+"%"},
top:function(){return 100*q()+"%"},
"flex-direction":function(){return fNl(W.data().flexDirection)},
"justify-content":function(){return ggM(W.data().justifyContent)},
"align-items":function(){return TOB(W.data().alignItems)}}),
"on:click":Q},_.w(_.nU,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(I){return _.w(_.MV,{data:I.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(I){return _.w(_.fU,{data:I.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Zg");var $eT=_.NN(function(W){var e=function(){return W.data()},t={},b=_.LD(function(){return e().backgroundColor},0),m=_.LD(function(){return e().actionButtons},[]),q=_.LD(function(){return e().stickerLayer},{}),Q=function(){var I,u;
return{animationRef:t,animationConfig:{autoplay:!1,loop:!1,path:(u=(I=e().foregroundAnimation)==null?void 0:I.url)!=null?u:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},X=function(){var I,u,c,v,D,B,k,n;
return{animationConfig:{autoplay:(B=(I=e().backgroundAnimation)==null?void 0:(u=I.settings)==null?void 0:u.autoplay)!=null?B:!1,loop:(k=(c=e().backgroundAnimation)==null?void 0:(v=c.settings)==null?void 0:v.loop)!=null?k:!1,path:(n=(D=e().backgroundAnimation)==null?void 0:D.url)!=null?n:"",name:"stories_item_background_animation"}}};
_.nh(function(){if(W.isVisible()){var I;(I=t.lottieEl)==null||I.play();W.animationRef()&&(W.animationRef().lottieEl=t.lottieEl)}else{var u;(u=t.lottieEl)==null||u.stop()}},"Cbnkwd");
return _.w("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.$D({"background-color":function(){return _.h8(b())+";"}})},_.w("div",{class:"ytStoriesItemViewModelAssetContent"},_.w(_.G,{cond:function(){return!!e().backgroundAnimation},
then:function(){return _.w(_.G2,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.G,{cond:function(){return!!e().backgroundImage},
then:function(){return _.w(_.A_,{data:function(){return e().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.w(_.G,{cond:function(){return!!e().foregroundAnimation},
then:function(){return _.w(_.G2,{data:Q,animationName:function(){return Q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.w(_.G,{cond:function(){return!!e().foregroundImage},
then:function(){return _.w(_.A_,{data:function(){return e().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.w("div",{class:"ytStoriesItemViewModelTopShadow"}),_.w(_.nU,{data:function(){return q()}},{storiesStickerLayerViewModel:lpl})),_.w("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.$D({"background-color":function(){return _.h8(b())}})},_.w("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Be(W.pauseAutoNavigation)},_.w(_.lV,{each:m},function(I){return _.w(ZjC,{data:function(){return I}})}))))},"$g"),kNw={style:"overlay",
type:"outline"},ZjC=_.NN(function(W){var e={};return _.w("div",{class:_.ve("ytStoriesItemViewModelActionButton",(e.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},e))},_.w(_.nU,{data:function(){return W.data().button}},{buttonViewModel:function(t){return _.w(_.MV,{data:t.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:kNw})}}))},"ah");_.mM(_.NN(function(W){var e=function(){var RR;return(RR=W.data().startIndex)!=null?RR:0},t=_.R(_.ZT(e)),b=t.next().value,m=t.next().value;
t=_.R(_.up(!1,void 0,"O8yPf"));var q=t.next().value,Q=t.next().value,X=function(){var RR;return(RR=W.data().storyItems)!=null?RR:[]},I={},u=function(){return W.data().dismissButton},c=function(){var RR;
return _.l((RR=_.l(u(),_.kb))==null?void 0:RR.onTap,_.OD)},v=_.zT("div"),D,B,k=!1,n=function(){var RR;
(RR=D)==null||RR.cancel();D=f(b()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});D.onfinish=function(){f(b()).style.width="100%";var uv=_.l(X()[b()],yXQ),GS,k9;uv!=null&&uv.foregroundAnimation&&((uv==null?0:(GS=uv.foregroundAnimation)==null?0:GS.url)||(uv==null?0:(k9=uv.foregroundAnimation)==null?0:k9.payload))||(b()!==X().length-1?(m(b()+1),n()):c()&&_.sD(c()))}},f=function(RR){return v.value.children[RR].children[0]},M=function(){for(var RR=0;RR<b();RR++)f(RR).style.width=
"100%"};
t=_.Be(function(){k||(q()?Q(!1):(b()===X().length-1&&c()&&_.sD(c()),f(b()).style.width="100%",b()!==X().length-1&&(m(b()+1),n())))});
var K=_.Be(function(){k||(q()?Q(!1):(f(b()).style.width="0%",b()!==0?m(b()-1):m(b()),n()))}),U=function(){Q(!0)},V=function(){f(b()).style.width="100%";
b()!==X().length-1?(m(b()+1),n()):c()&&_.sD(c())},L=_.Be(function(){k=!1;
B=setTimeout(function(){Q(!0);k=!0},300)}),E=_.Be(function(){clearTimeout(B);
k&&q()&&Q(!1)});
_.nh(function(){if(q()){var RR;(RR=D)==null||RR.pause();var uv;(uv=I.lottieEl)==null||uv.pause()}else{var GS;(GS=D)==null||GS.play();var k9;(k9=I.lottieEl)==null||k9.play()}},"DIHTEd");
_.nh(function(){M();b()===e()&&n()},"ze5F8b");
_.nt(function(){M();n()});
_.fh(function(){clearTimeout(B)});
return _.w("yt-stories-viewer-view-model",{class:_.ve("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.w("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.w("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":K,"on:mousedown":L,"on:mouseup":E,"on:mouseleave":E}),_.w("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":t,"on:mousedown":L,"on:mouseup":E,"on:mouseleave":E})),_.w(_.nU,{data:X},{storiesItemViewModel:function(RR,
uv){var GS=RR.data;return _.w(_.G,{cond:function(){return Math.abs(uv()-b())<=1},
then:function(){var k9={};return _.w("div",{class:_.ve("ytStoriesViewerViewModelStoryItem",(k9.ytStoriesViewerViewModelHiddenStoryItem=function(){return uv()!==b()},k9))},_.w($eT,{data:GS,
pauseAutoNavigation:U,navigateToNextItemOnLottieComplete:V,isVisible:function(){return uv()===b()},
animationRef:I}))}})}}),_.w("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:v},_.w(_.lV,{each:X},function(){return _.w("div",{class:"ytStoriesViewerViewModelProgressBar"},_.w("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.w("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.w(_.nU,{data:u},{buttonViewModel:_.MV})))},"bh"),"yt-stories-viewer-view-model",{props:{data:_.Eu}});_.mM(_.NN(function(W){var e=W.data;var t=_.zT("yt-gen-ai-feedback-form-view-model"),b=[];return _.w("yt-gen-ai-feedback-form-view-model",{el:t,class:"ytGenAiFeedbackFormViewModelHost"},_.w(_.WL,{text:function(){return e().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.w(_.nU,{data:function(){return e().feedbackChips}},{toggleButtonViewModel:function(m){var q=m.data;
return _.w(_.fU,{data:q,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Q){var X=q();X=_.l(X,_.pU);X=_.l(X==null?void 0:X.defaultButtonViewModel,_.kb).trackingParams;Q?b.push(X):(Q=b.indexOf(X),Q>-1&&b.splice(Q,1))}})}})),_.w(_.WL,{text:function(){return e().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.w("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.w(_.nU,{data:function(){return e().submitButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Jmg(t.value,b,e().uniqueId)}})}}),_.w(_.nU,{data:function(){return e().moreFeedbackButton}},{buttonViewModel:function(m){return _.w(_.MV,{data:m.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ch"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Eu},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var KR=function(){return _.O.apply(this,arguments)||this};
_.Z(KR,_.O);KR.prototype.created=function(){XGT(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(zdT);var W=_.ee().resolve(_.RcS);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.ee().resolve(_.lR))W.container=this.ytPopupContainerBehavior;if(W=_.ee().resolve(_.Z4)){var e=this.ytPopupContainerBehavior;W.containerWasInjected?_.JC(Error("dj")):W.container=e}};
KR.prototype.ensurePopupBelowPlayer=function(W,e){var t=_.ee().resolve(_.Wi(_.WS));if(!t||!t.isOnWatch()||!_.tv())return!1;t=t.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.lm().height>t+this.getPopupHeight(W,e)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=t+"px",W.style.bottom="auto");return!0};
KR.prototype.getPopupHeight=function(W,e){e&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){e=0;var t=W.clientHeight,b=window.getComputedStyle(W);e+=parseInt(b.marginTop,10);e+=parseInt(b.marginBottom,10);W.cachedPopupHeight=t+e}return W.cachedPopupHeight};
KR.prototype.getElement=function(W){return document.createElement(W)};
_.P([_.y(vWM.YtPopupContainerBehavior),_.Y("design:type",Object)],KR.prototype,"ytPopupContainerBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.P([_.h({disableElementRegistration:!0,is:"ytd-popup-container"})],KR);
_.H(KR,"ytd-popup-container",function(){if(RuC!==void 0)return RuC;var W=document.createElement("template");_.p(W,"\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");W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);return RuC=W},{mode:1});var pWQ;var y1C={};y1C.YtLogYpcFlowCommandsBehavior=[_.qM.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(W){_.l(W,Y4$)&&(W=_.l(W,Y4$))&&(W.serializedTransactionFlowLoggingParams?_.$$9(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.nb("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.nb("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.nb("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&dIg("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.nb("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.nb("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.l(W,ixE)&&(W=_.l(W,ixE),W.serializedTransactionFlowLoggingParams?_.kxD(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.nb("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.nb("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.nb("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&dIg("YPC_EVENT_TYPE_CANCEL",W))}}];var jJu={};jJu.YtCancelRecurrenceBehavior=[_.P1.YtComponentBehavior,_.wYU,{attached:function(){var W=this;UNC(this,function(e,t){return W.ypcCancelRecurrenceHandler(e,t)})},
ypcCancelRecurrenceHandler:function(W,e){var t=this;if(!e||!e.ypcCancelRecurrenceEndpoint)return!1;if(!e.ypcCancelRecurrenceEndpoint.params)return _.st(Error("wl")),!0;_.ER(this.hostElement);var b=_.Vp.instance,m=_.ee().resolve(_.Wi(_.Ti));b&&_.YD(b,e)?_.z2(b,e).then(function(q){t.ypcCancelRecurrenceSuccess_(W,e,{data:q})},function(q){t.ypcCancelRecurrenceFailure_(W,e,q)}).thenCatch(function(){_.st(Error("xl"))}):m?m.requestDataForServiceEndpoint(e).then(function(q){t.ypcCancelRecurrenceSuccess_(W,
e,q)},function(q){t.ypcCancelRecurrenceFailure_(W,e,q)}).thenCatch(function(){_.st(Error("xl"))}):_.st(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,e,t){_.A3(this.hostElement);t.data||(t={data:t});t.data&&t.data.actions&&_.IT(this.hostElement,t.data.actions,this.hostElement);t.data.messageRenderer?ebE(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(e=e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.nb("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",e);_.q2(W,"yt-service-request-completed",t)},
ypcCancelRecurrenceFailure_:function(W,e,t){_.A3(this.hostElement);ebE(e.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.q2(W,"yt-service-request-error",{error:t,params:[W,e]})}}];var CfM=function(W,e){_.WZ.call(this,e)};
_.Z(CfM,$AC);var nuM={};nuM.YtCompleteTransactionBehavior=[_.P1.YtComponentBehavior,_.wYU,{attached:function(){var W=this;UNC(this,function(e,t){return W.ypcCompleteTransactionHandler(e,t)})},
completeTransaction:function(W,e){var t=this;e={payments_payload:window.btoa(e.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var b=_.ee().resolve(_.Ti),m=W.data.completeTransactionEndpoint,q=this.get("ypcCompleteTransactionEndpoint.actions",m);q&&_.IT(this.hostElement,q,this.hostElement);return(q=_.Vp.instance)&&_.YD(q,m)?_.z2(q,m,e).then(function(Q){return!Q||(Q==null?0:Q.error)?(Q=t.get("data.serializedTransactionFlowLoggingParams",W),_.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Q))):{data:Q}}).then(function(Q){return t.handleCompleteTransactionSuccess_(Q,W)},function(){return t.handleCompleteTransactionFailure_(W)}):b.requestDataForServiceEndpoint(m,e).then(function(Q){return t.handleCompleteTransactionSuccess_(Q,W)},function(){return t.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,e){W.data||(W={data:W});if(W.data.messageRenderer)return _.jg(new CfM(W.data.messageRenderer));if(W.data.trackingParams){var t=_.fc(),b=_.nc();t&&b&&_.Ke(t,b,_.$5(W.data.trackingParams))}e=this.get("data.serializedTransactionFlowLoggingParams",e);WGS(e);return _.aT(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.zi("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,e){var t=this;if(!e.ypcCompleteTransactionEndpoint)return!1;if(!e.ypcCompleteTransactionEndpoint.transactionParams)return _.st(Error("zl")),!0;e.ypcCompleteTransactionEndpoint&&e.ypcCompleteTransactionEndpoint.gtmData&&_.nT(e.ypcCompleteTransactionEndpoint.gtmData);var b=_.ee().resolve(_.Wi(_.Ti));if(b){_.ER(this.hostElement);var m=_.Vp.instance;m&&_.YD(m,e)?_.z2(m,e).then(function(q){return!q||(q==null?0:q.error)?(q=t.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
e),_.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",q))):{data:q}}).then(function(q){_.q2(W,"yt-service-request-completed");
t.ypcCompleteTransactionSuccess_(e,q)},function(){return t.ypcCompleteTransactionFailure_(e)}):b.requestDataForServiceEndpoint(e).then(function(q){_.q2(W,"yt-service-request-completed");
t.ypcCompleteTransactionSuccess_(e,q)},function(){return t.ypcCompleteTransactionFailure_(e)})}return!0},
ypcCompleteTransactionSuccess_:function(W,e){_.A3(this.hostElement);e.data||(e={data:e});_.RT(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);e.data.messageRenderer||e.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.nT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));e.data.actions&&(W=QTC(e.data.actions),e=F1B(e.data.actions),W.length&&_.X5(this.hostElement,
W),e.length&&_.IT(this.hostElement,e,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.A3(this.hostElement);_.RT(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,e,t){if(e=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",e))e={serializedTransactionFlowLoggingParams:e},t&&(e.errorType=t),_.nJ(W,e),_.fJ()}}];var fpS={};fpS.YtEndpointHandlerWithYpcBehavior=[_.wYU,_.qM.YtActionHandlerBehavior,[{openWalletDialog:function(W,e,t,b,m,q,Q){var X=this,I=_.UZ();e=e.replace(/-/g,"+").replace(/_/g,"/");var u=_.B6().get("hl");_.Fvv(_.Fq(_.Ur),e,I.resolve,m,function(c){q&&q();I.reject(c)},u,function(c){return X.onServerBackendAnalyticEvent_(W,t,c)},this.onDialogClose_.bind(this),b,Q);
return I.promise},
openFixFlowDialog:function(W,e,t,b){W=W.replace(/-/g,"+").replace(/_/g,"/");_.Fq(_.Ur).openFixFlowDialog(W,e,t,b)},
onDialogClose_:function(){_.RT(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,e,t){_.q2(W,"yt-commerce-action-init-done");e&&_.X5(this.hostElement,[e,{backend_analytics:t}])}}],
_.v4.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,e){W=this.get("data.nativeFlowEndpoint",e);e=this.get("data.fallbackEndpoint",e);W?_.X5(this.hostElement,[W]):e&&_.q2(this.hostElement,"yt-navigate",{endpoint:e})}}],
jJu.YtCancelRecurrenceBehavior,nuM.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 W=this;UNC(this,function(e,t,b){return W.handleYPCEndpoint(e,t,b)});
this.ypcRegisterActionMapJobId_=_.kM(_.Tm,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.Tm.cancelJob(this.ypcRegisterActionMapJobId_);_.kM(_.Tm,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,e,t){var b=e.ypcGetCartEndpoint;if(b){_.gy("commerce_transaction");var m=b.gtmId;m&&_.CT(m);(b=b.gtmData)&&_.nT(b)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",e)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,e),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",e)!=null?(this.handleYPCFixInstrumentEndpoint_(W,e),!0):e.ypcPauseSubscriptionCommand?(VwQ(this.hostElement,W,e,t),
!0):e.ypcResumeSubscriptionCommand?(zoT(this.hostElement,W,e),!0):e.getPaymentInstrumentsParamsCommand?(HGC(this.hostElement,W,e),!0):e.ypcHandleTransactionEndpoint?(s1E(this.hostElement,W,e,t),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,e){var t=this;_.Tv("ttcr",void 0,"commerce_transaction");e=e.ypcGetCartEndpoint;var b=e.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,m=b.encryptedPurchaseParams,q=b.serializedTransactionFlowLoggingParams,Q=b.serializedPaymentsClientParams,X=this.createGetCartResponseFromParams_(b,e.offerParams,q);this.changeButtonState(W,!0);_.yd(this.openWalletDialog(W,m,b.ypcLogWalletAnalyticDataEndpoint,q,function(){t.changeButtonState(W,!1)},function(){t.changeButtonState(W,
!1)},Q).then(function(I){return t.handleBuyFlowCompleteCallback_(W,X,I)},function(){return t.handleOnLoadError(X)}).then(function(I){return void t.handlePostPurchaseSuccess_(W,X,I)},function(I){return void t.handlePostPurchaseError_(I)}),function(){t.changeButtonState(W,!1);
W instanceof Element&&_.q2(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,e,t){var b=W.completeTransactionEndpoint,m=W.handleTransactionEndpoint;e={data:{offerParams:window.btoa(e),serializedTransactionFlowLoggingParams:t}};m?e.data.handleTransactionEndpoint=m:e.data.completeTransactionEndpoint=b;W.onCartDismissCommand&&(e.data.onCartDismissCommand=W.onCartDismissCommand);return e},
onGetCartServiceRequestCompleted_:function(W,e){var t=this,b=W.target;if(e&&e.data&&e.data.messageRenderer)_.A3(this.hostElement),this.handleMessageRenderer_(e.data.messageRenderer),this.changeButtonState(b,!1);else{var m=this.get("data.encryptedPurchaseParams",e),q=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",e),Q=this.get("data.ypcLogWalletAnalyticDataEndpoint",e),X=this.get("data.serializedPaymentsClientParams",e),I=this.getLoggingParams_(e);if(I||m||q)W.stopPropagation(),_.Tv("ttcr",
void 0,"commerce_transaction"),m||_.A3(this.hostElement),this.changeButtonState(b,!1),q?_.RT(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Ot("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:q}}},this]):m&&(this.changeButtonState(b,!0),W=null,W=this.openWalletDialog(b,m,Q,I,function(){_.A3(t.hostElement);t.changeButtonState(b,!1)},function(){_.A3(t.hostElement);
t.changeButtonState(b,!1)},X),_.yd(W.then(function(u){return t.handleBuyFlowCompleteCallback_(b,e,u)},function(){return t.handleOnLoadError(e)}).then(function(u){return t.handlePostPurchaseSuccess_(b,e,u)},function(u){return t.handlePostPurchaseError_(u)}),function(){t.changeButtonState(b,!1);
_.q2(b,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,e){e&&e.endpoint&&e.endpoint.ypcGetCartEndpoint&&!e.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)&&_.IT(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",e.endpoint.ypcGetCartEndpoint)],W.target),_.ER(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,e){if(e&&e.params&&e.params.length){e=_.R(e.params);for(var t=e.next();!t.done;t=e.next())if((t=t.value)&&t.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",t.ypcGetCartEndpoint)&&_.IT(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",t.ypcGetCartEndpoint)],W.target);_.A3(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,e,t){var b=t.integratorData;return b==null||b===""||t.error!=null?(b=this.getLoggingParams_(e),String(t.error)==="-1"?(e.data.onCartDismissCommand&&_.IT(this.hostElement,[e.data.onCartDismissCommand],W),_.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b,!0))):_.jg(new W0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b))):e.data.handleTransactionEndpoint?ho1(this.hostElement,e.data.handleTransactionEndpoint,{payments_payload:b,funds_guarantee_callback_client_data:t.integratorClientCallbackData}):
this.completeTransaction(e,t)},
handlePostPurchaseSuccess_:function(W,e,t){e=t.data;var b=!1,m,q;if(e&&((m=e.command)==null?0:(q=m.commandExecutorCommand)==null?0:q.commands)){var Q,X;m=(Q=e.command)==null?void 0:(X=Q.commandExecutorCommand)==null?void 0:X.commands;for(Q=0;Q<m.length;Q++)if(_.l(m[Q],_.EiU)){b=!0;break}}b||(e&&e.gtmDatas&&e.gtmDatas.length?_.nT(e.gtmDatas[0]):_.nT('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));t.data&&t.data.actions&&(e=QTC(t.data.actions),t=F1B(t.data.actions),e.length&&
_.X5(this.hostElement,e),t.length&&_.IT(this.hostElement,t,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.gQ(Error("Bl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.jg(new W0("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var e=_.Tn(W,"renderer"),t=_.Ot("openPopupConfig");e==="confirmDialogRenderer"&&t&&_.RT(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:t.popupTypeMap[e],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,e){var t=this,b=e.ypcFixInstrumentEndpoint;e=b.encryptedFixInstrumentParameters;this.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(e,function(m,q){t.onFixFlowCompleteCallback_(b,m,q)},function(){return t.changeButtonState(W,!1)},function(){t.changeButtonState(W,!1);
t.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,e,t){var b=_.HO("payments.business.integration.scenario.FixInstrument");if(e==b.IntegratorCallbackType.ON_COMPLETE){e="FIX_FOP_EVENT_TYPE_CANCEL";var m=null;t.error!=null?t.error!=b.OnCompleteCallbackError.USER_CANCELLED&&(_.IT(this.hostElement,[W.errorAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_FAILURE",m="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.IT(this.hostElement,[W.successAction],this.hostElement),e="FIX_FOP_EVENT_TYPE_SUCCESS");_.IT(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,e,m)}},
logFixFopEvent_:function(W,e,t){(W=W.serializedFixFopLoggingParams)?(e={eventType:e,serializedFixFopLoggingParams:W},t!=null&&(e.errorType=t),_.nJ("fixFopFlow",e),_.fJ()):_.gQ(Error("Cl"))},
changeButtonState:function(W,e){_.S("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=e)}}];var gu$=function(W){this.JSC$28858_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Lll,"yt-feedback-dialog-requested":Ufu,"yt-signal-action-help":Eg1,"yt-signal-action-send-feedback":AmC,"yt-send-feedback-action":dfl,"yt-user-feedback-endpoint":WVE};_.Vo(_.P3.getInstance(),this.feedbackCollectorActionMap,this.JSC$28858_clientRoot)},TZw;var J1u=function(W){this.JSC$28863_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":eLC.bind(null,this.JSC$28863_clientRoot),"yt-signal-action-delete-all-downloads":bBg,"yt-signal-action-delete-download":mu$,"yt-signal-action-delete-playlist-download":qrB,"yt-signal-action-install-pwa":aag,"yt-signal-action-refresh-downloads":XwT,"yt-offline-video-endpoint":uu1,"yt-offline-playlist-endpoint":vQ$,"yt-update-local-app-setting-command":DuC,"yt-offline-orchestration-action-command":BDw,
"yt-signal-action-undo-delete-download":QXU,"yt-local-watch-history-command":ZBw};_.Vo(_.P3.getInstance(),this.downloadManagerActionMap,this.JSC$28863_clientRoot);_.nB.instance=new _.nB},xeE;var P8=function(){var W=_.O.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.Z(P8,_.O);_.r=P8.prototype;
_.r.ready=function(){_.S("polymer_enable_mdx")&&(zYS({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.S("enable_cast_short_lived_lounge_token")}),_.Rz("yt-remote-connection-change",this.handleConnectionChange_,this),_.Rz("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Wyw())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.r.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.r.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=E0C(),!W&&zpS()&&Ugl()&&(W={key:"cast-selector-receiver",name:Ugl()}),W=W.name):W=null;this.receiverName=W;_.NL(this.remoteApi_);(this.remoteApi_=Wyw())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.r.handleReceiverAvailabilityChange_=function(){var W=Lwu();zpS()&&_.Ie("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.r.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,e=this.currentListId_,t=X7(this.remoteApi_);this.currentVideoId_=t.videoId;this.currentListId_=t.listId;this.currentVideoId_&&_.RT(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.S("polymer_enable_mdx_queue")?this.currentListId_:null,W,e])};
_.r.handleAddToQueueAction_=function(W){W=_.l(W,jUT);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.r.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.r.handleInsertInQueueAction_=function(W){W=_.l(W,C$B);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17615_insertVideo(W.videoId)};
_.r.handleRemoveFromQueueAction_=function(W){W=_.l(W,nGU);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17615_removeVideo(W.videoId)};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],P8.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J(),_.Y("design:type",Object)],P8.prototype,"appId",void 0);_.P([_.J(),_.Y("design:type",Boolean)],P8.prototype,"mdxConnected",void 0);_.P([_.J(),_.Y("design:type",Boolean)],P8.prototype,"receiverAvailable",void 0);_.P([_.J(),_.Y("design:type",Object)],P8.prototype,"receiverName",void 0);_.P([_.J(),_.Y("design:type",Object)],P8.prototype,"currentVideoId_",void 0);
_.P([_.J(),_.Y("design:type",Object)],P8.prototype,"currentListId_",void 0);_.P([_.gz({is:"yt-mdx-manager",disableElementRegistration:!0})],P8);_.H(P8,"yt-mdx-manager",void 0,{mode:2});var OjS;var MaB;var VY=function(){var W=_.O.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$18856_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.Z(VY,_.O);_.r=VY.prototype;_.r.created=function(){XGT(2200)};
_.r.detached=function(){this.observer_&&this.observer_.disconnect()};
_.r.open=function(W,e){var t=this,b=W.serializedYpcFamilyCreateLoggingParams;this.JSC$18856_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,b),3E4);e&&(this.onReadyCallback_=e);var m=_.rz(this.hostElement).querySelector("#unicorn-iframe");b&&b&&NTC("ypcFamilyCreateFlowStarted",b);_.vZc("family_creation",function(){var q=_.HO("gapi.family_creation.render");_.HO("gapi.config.update")("iframes/family_creation/url",t.getFamilyCreationUrlWithUnicornParams_());var Q=3;W.appId&&W.appId in
t.APP_IDS&&(Q=t.APP_IDS[W.appId]);Q={authUser:_.Ot("SESSION_INDEX")||0,clientId:Q,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Ot("HL"),initialflow:[4,5,6,7],m:t.isMobile?1:0,onFlowComplete:t.onUnicornFlowComplete_.bind(t,W.postFlowSuccessEndpoint,b),onError:t.onUnicornFlowError_.bind(t,W.postFlowErrorEndpoint,b),onReady:t.onUnicornFlowReady_.bind(t,W.referencePcidParams)};q(m,Q)})};
_.r.close=function(){_.rz(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.r.onUnicornFlowComplete_=function(W,e){this.close();e&&e&&NTC("ypcFamilyCreateFlowSucceeded",e);_.q2(this.hostElement,"yt-navigate",{endpoint:W})};
_.r.onUnicornFlowError_=function(W,e){this.close();e&&NTC("ypcFamilyCreateFlowCancelled",e);_.q2(this.hostElement,"yt-navigate",{endpoint:W})};
_.r.onUnicornFlowReady_=function(W){var e=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.HO("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.rz(e.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.rz(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.rz(this.hostElement).querySelector("#dialog").open()};
_.r.getFamilyCreationUrlWithUnicornParams_=function(){return _.Ot("YTR_FAMILY_CREATION_URL")};
_.r.getCurrentUrl_=function(){return document.location.href};
_.r.abort_=function(W,e){this.clearTimeout_();this.onUnicornFlowError_(W,e)};
_.r.clearTimeout_=function(){clearTimeout(this.JSC$18856_timeoutId_)};
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],VY.prototype,"ytActionHandlerBehavior",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VY.prototype,"isMobile",void 0);_.P([_.J(),_.Y("design:type",Object)],VY.prototype,"onReadyCallback_",void 0);_.P([_.J(),_.Y("design:type",Object)],VY.prototype,"observer_",void 0);_.P([_.gz({is:"yt-create-family-dialog",disableElementRegistration:!0})],VY);
_.H(VY,"yt-create-family-dialog",function(){if(MaB===void 0){var W=document.createElement("template");_.p(W,'\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);var e=W.content,t=e.insertBefore;OjS===void 0&&(OjS=document.createElement("template"));var b=OjS;t.call(e,b.content.cloneNode(!0),W.content.firstChild);MaB=W}W=MaB;return W},{mode:2});var sJC;var hJC;var i5=function(){var W=_.O.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.Z(i5,_.O);_.r=i5.prototype;_.r.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.r.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));_.ee().addProvider({provide:CTB,useValue:this})};
_.r.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.r.finish=function(){var W=this;this.progress=this.MAX_PROGESS;$uC(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.r.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Ec.Object.defineProperties(i5.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var e="scaleX("+W/this.MAX_PROGESS+")",t=_.rz(this.hostElement).querySelector("#progress").style;t.transform=e;t.webkitTransform=e;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],i5.prototype,"ytComponentBehavior",void 0);_.P([_.gz({is:"yt-page-navigation-progress",disableElementRegistration:!0})],i5);
_.H(i5,"yt-page-navigation-progress",function(){if(hJC===void 0){var W=document.createElement("template");_.p(W,'\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');W.content.insertBefore(_.N().content.cloneNode(!0),
W.content.firstChild);var e=W.content,t=e.insertBefore;sJC===void 0&&(sJC=document.createElement("template"));var b=sJC;t.call(e,b.content.cloneNode(!0),W.content.firstChild);hJC=W}W=hJC;return W},{mode:2});_.mM(_.NN(function(W){return _.w("yt-tooltip",{class:_.ve("ytTooltipContainerHost",W.className)},W.data)},"dh"),"yt-tooltip");var HjS={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"},KHU={"font-size":"12px","font-style":"italic"},Pfl={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.jX$=function(){return _.F(function(W){_.u8(W)})};var Vag=_.NN(function(W){var e=function(){return W.data().subtext},t={};
return _.w("snackbar-view-model",{class:_.ve("snackbarViewModelHost",W.className)},_.w("div",{class:_.ve("snackbarViewModelEngagementBarWrapper",W.className)},_.w(_.G,{cond:function(){return W.data().image},
then:function(b){return _.w(_.A_,{data:b,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.w(_.G,{cond:function(){return W.data().imageContent},
then:function(){return _.w("div",{class:"snackbarViewModelAvatarContainer"},_.w(_.nU,{data:function(){return W.data().imageContent}},{decoratedAvatarViewModel:_.yc}))}}),_.w("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.w("div",{class:_.ve((t.snackbarViewModelTitle=!0,t.snackbarViewModelTitleWithSubtext=e,t))},_.w(_.WL,{text:function(){return W.data().text}})),_.w(_.G,{cond:e,
then:function(){return _.w("div",{class:"snackbarViewModelSubtext"},_.w(_.WL,{text:function(){return e()}}))}})),_.w(_.G,{cond:function(){return W.data().buttons},
then:function(){return _.w("div",{class:"snackbarViewModelButtonClassWrapper"},_.w(_.nU,{data:function(){return W.data().buttons}},{buttonViewModel:function(b){return _.w(_.MV,{data:b.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"eh");_.mM(_.NN(function(){function W(k,n){B(k);v("in");u(!0);q=setTimeout(function(){e()},n)}
function e(k){v("out");k&&clearTimeout(q)}
function t(){e(!0)}
function b(k){if(k){var n=k.snackbarViewModel,f=k.durationMs;f||(f=3E3);n&&(k=_.ee().resolve(_.Wi(_.r1)))&&k.enqueue({isOpened:I,open:function(){W(n,f)},
close:e},0)}}
var m=_.zT("snackbar-container"),q=void 0,Q=_.R(_.up(!1,void 0,"mDc5N")),X=Q.next().value;Q=Q.next().value;var I=X,u=Q;X=_.R(_.up("out",void 0,"FpOs5e"));var c=X.next().value,v=X.next().value;X=_.R(_.up(void 0,void 0,"jIDRob"));var D=X.next().value,B=X.next().value;X=_.Be(function(){if(c()==="out"){u(!1);B(void 0);var k=_.ee().resolve(_.Wi(_.r1));k&&Z4g(k,0)}});
_.nt(function(){var k=_.ee().resolve(_.Wi(_.JfZ));k&&(k.showSnackbarFn=b,k.closeSnackbarFn=t)});
Q={};return _.w("snackbar-container",{class:_.ve("ytSnackbarContainerHost",(Q.ytSnackbarContainerOpened=function(){return I()&&c()==="in"},Q.ytSnackbarContainerClosed=function(){return I()&&c()==="out"},Q)),
el:m,"on:animationend":X},_.w(_.G,{cond:function(){return I()&&!!D()},
then:function(){return _.w(Vag,{data:function(){return D()}})}}))},"fh"),"snackbar-container");_.mM(_.NN(function(){var W=_.MA(_.g$2);return _.w("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var e;return(e=W())==null?void 0:e.announcement})},"gh"),"yt-ephemeral-actions");var zLu=new Map;var fK9=function(W,e){var t=this;this.handleError=W;this.logEventInternal=e;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){t.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
fK9.prototype.logError=function(W){this.handleError(W)};
fK9.prototype.logEvent=function(W,e){switch(W){case "IDB_DATA_CORRUPTED":_.S("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",e);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",e);break;case "IS_SUPPORTED_COMPLETED":_.S("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",e);break;case "QUOTA_EXCEEDED":ij$(this,e);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",e);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},e,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var ij$=function(W,e){_.w1.getInstance().estimate().then(function(t){t=Object.assign({},e,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:LVC(t==null?void 0:t.usage),deviceStorageQuotaMbytes:LVC(t==null?void 0:t.quota)});W.logEventInternal("idbQuotaExceeded",t)})};var Y7=function(){var W=_.O.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.deprecateFullerscreenUi=_.S("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.S("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.S("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.S("web_masthead_hidden_focus_within_killswitch");W.ephemeralActionsEnabled=_.S("web_ephemeral_actions");W.clientOnlyWizTooltipsEnabled=_.S("enable_client_only_wiz_tooltips");
W.scrollAtTop=!0;W.guideScrollTop=0;W.isTheaterModeSession=_.MD("START_IN_THEATER_MODE");W.iMaxTheaterMode=_.S("web_watch_imax_theater_mode");W.isFullWindowSession=_.MD("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.Yn;W.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"};W.dynamicActionMap={"yt-run-attestation-command":function(e){var t=_.hXS.instance,b=_.l(e,_.wNv);return b?_.S("use_rta_manager_for_async")&&
vwQ()?Wuu(t,b,e.clickTrackingParams):dNC(t,b,e.clickTrackingParams):_.jg(Error("mi"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.Z(Y7,_.O);_.r=Y7.prototype;_.r.created=function(){var W=_.ee();_.S("kevlar_clear_duplicate_pref_cookie")&&_.kM(_.Tm,function(){var e=_.vi.get("PREF");e&&!/f\d=/.test(e)&&(e=_.r8("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=e?"PREF=null;domain="+e+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.S("gzip_gel_with_worker")&&_.fN9();_.S("jspb_serialize_with_worker")&&KnC();_.S("web_worker_availability_check")&&UuC();_.S("nwl_init_killswitch")||hZE().then(function(){_.Tm.addLowPriorityJob(W1S)});
this.pageManagerAttachedPromise=_.UZ();this.ytdAppBehavior.loadDepsPromise=_.pV([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.eS(this.onThrottledScroll,200,this);_.S("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);gwT();lTw=!!_.HO("ytappsettings.initialized");Qu=_.HO("ytappsettings.previousValue");c7E=_.HO("ytappsettings.previousSnapshotTime");lTw||(lTw=!0,vnQ());q6g();Rf$();_.xq("DEFERRED_DETACH",
_.S("kevlar_tuner_should_defer_detach"));_.xq("REUSE_COMPONENTS",!0);_.xq("STAMPER_STABLE_LIST",!0);_.xq("SCHEDULED_LAZY_LIST",!0);_.xq("openPopupConfig",YuC);_.xq("useClickHandler",!0);_.S("kevlar_shell_cleanup")&&_.Tm.addLowPriorityJob(Z_$.bind(this,_.tz.caches));_.MD("IS_SHELL_LOAD")&&_.fe({shellStartupDurationMs:Math.round((0,_.eJ)()-_.pe())});gQB(this.networkStatusManager);_.S("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",kiB(HjS)),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!",
kiB(KHU)),console.log("%cVisit http://go/join-youtube-web to apply today.",kiB(Pfl)));_.Z3S(W.resolve(_.FO),1E3)};
_.r.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=N8u();W&&!_.S("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.r.attached=function(){var W=this;_.sj().processSignal("ci");_.S("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.MZg?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.GL(_.OVv(),"SUCCESS");this.updateIconSet();_.m1(this.guideInnerContent,!1);_.k6().initVisibilityObserver();this.guideService.guideElement=this.guide;var e=document.createElement("ytd-miniplayer"),t=_.rz(this.hostElement).querySelector("#content");
_.rz(this.hostElement).insertBefore(e,t);_.sj().processSignal("ma");_.ee().resolve(_.Kn).init(e);_.MD("IS_SHELL_LOAD")&&(t=document.createElement("ytd-network-status-banner"),_.rz(this.hostElement).insertBefore(t,e));_.S("kevlar_right_click_on_lockups")&&_.i$._onCaptureClick&&document.addEventListener("contextmenu",_.i$._onCaptureClick.bind(_.i$),!0);var b=function(){var m=_.tH("yt-page-navigation-progress");_.rz(W.hostElement).appendChild(m)};
setTimeout(function(){_.sj().parkOrScheduleJob(b,0,"eocs",16)},0);
_.S("service_worker_push_enabled")&&_.kM(_.Tm,A7g);_.Vo(_.P3.getInstance(),this.dynamicActionMap,this.hostElement);_.q2(this.hostElement,"ytd-app-attached");_.sj().processSignal("aa");u3g(this.hostElement);_.Nz("gapi.load",_.vZc);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.kM(_.Tm,
function(){var m=document.createElement("ytd-video-preview");_.rz(_.rz(W.hostElement).querySelector("#video-preview")).appendChild(m)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.kM(_.Tm,function(){Cm9();W.registerViewTransitionTasks()});
if(_.CB()&&this.isAppDarkTheme()!==_.yI())this.onDarkModeToggledAction();else e=_.jf()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==e&&(_.S("enable_dark_theme_only_on_shorts")?_.VI(_.S("enable_dark_theme_only_on_shorts_control")?window.location.href:_.zn(window.location.href,{theme:"dark"})):_.JC(new _.o_("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(E6S=new LyS(this.hostElement)),xeE=new J1u(this.hostElement),TZw=new gu$(this.hostElement),cHw=new uN1(this.hostElement)};
_.r.getThemeSettingsToLog=function(){var W=_.jf()==="USER_INTERFACE_THEME_DARK";W=_.CB()?_.yI()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.DK()}};
_.r.detached=function(){_.ry(this.guideInnerContent);_.Tm.cancelJob(rh);rh=0;_.Tm.cancelJob(R6);R6=0;_.iB2(wH$);wH$.length=0;XHB=_.mMz=null;_.k6().dispose();_.S("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.ie(_.P3.getInstance(),E6S.playlistHandlerActionMap,E6S.JSC$28557_clientRoot);_.ie(_.P3.getInstance(),xeE.downloadManagerActionMap,xeE.JSC$28863_clientRoot);_.ie(_.P3.getInstance(),TZw.feedbackCollectorActionMap,TZw.JSC$28858_clientRoot);
for(var W=_.R(cHw.eventListeners),e=W.next();!e.done;e=W.next()){var t=_.R(e.value);e=t.next().value;t=t.next().value;t=_.R(t);for(var b=t.next();!b.done;b=t.next()){var m=_.R(b.value);b=m.next().value;m=m.next().value;e.removeEventListener(b,m)}}_.ie(_.P3.getInstance(),cHw.autonavPauseActionMap,cHw.JSC$17800_clientRoot)};
_.r.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.B6().getFlag(186)};
_.r.computeIsInlinePreviewEnabled=function(W,e,t){return!t&&_.SJu({miniplayerIsActive:W,miniplayerPlaybackState:e})};
_.r.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.rO({type:"SET_FROSTED_GLASS_MODE",payload:!_.S("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"}))};
_.r.computeIsFrostedGlassDisabled=function(W,e,t,b){return W||e||t||b&&_.S("web_frosted_glass_disable_watch")};
_.r.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.S("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.r.computeIsHomePage=function(W,e){if(!W||e==null||!e.endpoint)return!1;var t;return((t=_.l(e.endpoint,_.Sf))==null?void 0:t.browseId)==="FEwhat_to_watch"};
_.r.updateIsChannelOrPlaylistPage=function(){if(_.S("web_frosted_glass")){var W,e,t=(e=(W=_.ee().resolve(_.Wi(_.WS)))==null?void 0:W.getCurrentPage())==null?void 0:e.pageSubtype;this.isChannelOrPlaylistPage=t?["channel","channels","playlist"].includes(t):!1}};
_.r.scheduleFrostedGlassInitialization=function(){var W=this;_.S("web_frosted_glass")&&_.sj().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.fb(["eocs",
"cr"]),300)};
_.r.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.YpS(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.rO({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.rO({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.r.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(weT(!0))};
_.r.onYtSignalActionRequestPersistentStorage=function(){if(!_.S("request_persistent_storage_killswitch")){var W=_.ee().resolve(_.o9w);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=g5C())}};
_.r.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.r.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.r.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(weT(!1))};
_.r.initIconDefs=function(W,e){var t=document.createElement("iron-iconset-svg");t.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");t.appendChild(W);W.appendChild(e);document.body.appendChild(t);return t};
_.r.onWindowResized=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.bzr.getInstance();W.documentWidth_=document.body.clientWidth;pGM(W)};
_.r.onWindowScrolled=function(){var W=_.ee().resolve(_.WS).getCurrentPage();if(W!=null&&W.getScrollTop){var e=this.ytdReduxBehavior,t=e.dispatch;W=W.getScrollTop()<=0;t.call(e,_.rO({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.r.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.ee().resolve(_.WS).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.Qx(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.r.getCurrentPageScrollableElementType=function(){var W=_.ee().resolve(_.WS).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.r.observeGuideVisibility=function(){var W=_.bzr.getInstance(),e=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=e;pGM(W)};
_.r.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.RT(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.NFP.getInstance(),_.Nr.set(W.eduDismissAction.key+"-dismissed",!0))};
_.r.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var e=_.NFP.getInstance();W=W.eduImpressionAction.key;e.JSC$10959_eduDisplayedThisLoad_[_.AxP[W].setKey||W]=!0;_.Nr.set(W+"-impression",parseInt(_.Nr.get(W+"-impression")||0,10)+1)}};
_.r.onYtSignalActionConfirmMentionsEdu=function(){_.RT(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.e1.getInstance();_.W1.set("edu-dismissed",!0)};
_.r.onYtSignalActionRecordMentionsEduImpression=function(){_.e1.getInstance();var W=_.W1.set,e=parseInt(_.W1.get("edu-impressions"),10);W.call(_.W1,"edu-impressions",(isFinite(e)?e:0)+1)};
_.r.onYtPageManagerAttached=function(W){var e;((e=_.Er(W))==null?void 0:e.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.r.onInvokeInstrumentManagerAction=function(W,e){dug(e,W)};
_.r.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var e=_.qN(W),t=e.querySelector("g#yt-logo-updated");t&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(t.cloneNode(!0)),(e=e.querySelector("g#yt-logo-red-updated"))&&W.appendChild(e.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.r.updateMastheadData=function(){var W=this,e,t,b,m,q;return _.F(function(Q){if(Q.nextAddress==1){e=W.data;t=W.hostElement.querySelector("#masthead");if(!t)return Q.return();_.Uc(W,function(){t.data=W.topbarData});
if(!W.get("response.topbar",e)||W.get("response.topbar.responseContext.maxAgeSeconds",e)===0)return Q.jumpTo(0);if(b=_.ee().resolve(_.Kw))return _.a(Q,b(),6);m=_.ee().resolve(_.rF);return _.a(Q,m.put("service:topbar:fallback",new _.qv({innertubeResponse:W.get("response.topbar",e)})),0)}return(q=Q.yieldResult)?_.a(Q,q.put("service:topbar:fallback",new _.qv({innertubeResponse:W.get("response.topbar",e)})),0):Q.jumpTo(0)})};
_.r.computeTopbarData=function(W){if(!W)return null;var e;return this.isShortsPage&&this.topbarData&&!_.l((e=W.response)==null?void 0:e.topbar,cX$)?this.topbarData:W.response&&"topbar"in W.response?_.l(W.response.topbar,cX$)||null:null};
_.r.onSetTheaterModeEnabled=function(W,e){this.isTheaterModeSession=e.enabled;this.setTheaterModeStyles(e.enabled)};
_.r.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.r.onDarkModeToggledAction=function(){var W=_.I_(window.location.href);if(!_.cHK(W)){(W=!!_.Yq(window.location.href).themeRefresh)&&_.JC(new _.o_("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){vnQ();W={themeRefresh:1};var e=_.ee().resolve(_.WS);if(e.isOnWatch()){var t,b;e=((t=e.getPlayerFromWatch())==null?void 0:(b=t.getPlayer())==null?void 0:b.getCurrentTime())||0;e>=1&&(W.time_continue=Math.floor(e))}_.DK()||_.jf()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.VI(_.zn(window.location.href,
W))}_.S("web_appshell_refresh_trigger")&&_.tz.caches&&this.refreshAppShellResponse();t=_.Kc(window.location.href);_.Fa(_.ee().resolve(_.Xa),_.W6(t,"theme"))}};
_.r.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.r.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.r.onPlayerFullscreen=function(W){_.ty();this.playerFullscreen=W};
_.r.setRestrictedMode=function(W){var e=_.B6();_.oT(0,58,W);e.save();_.ee().resolve(_.$6).reload()};
_.r.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.TL("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.TL("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.TL("WEB_PAGE_TYPE_MINI_APP")):_.S("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.TL("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.TL("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.r.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.r.onGuideToggleTap=function(){_.q2(this.hostElement,"yt-guide-toggle")};
_.r.onGuideToggleHover=function(){_.q2(this.hostElement,"yt-guide-hover")};
_.r.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.r.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.r.setMastheadTheme=function(){var W=_.qN(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.r.onRequestPanelModeChange=function(W,e){this.hideHeaderShadow=e.mode!=="seamed"};
_.r.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.r.onDrawerIronSelect=function(W){_.Er(W).id==="guide"&&this.processDrawerIronSelect()};
_.r.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.q2(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.r.onAddElementToApp=function(W){_.rz(this.hostElement).appendChild(W.detail)};
_.r.onThrottledScroll=function(){var W=_.ee().resolve(_.WS).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.r.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.r.setFullscreen=function(){if(_.S("external_fullscreen")||!this.isWatchPage){var W=_.S("kevlar_fullerscreen_root_only_killswitch")?!!_.ty():!!_.ty()&&_.ty()===document.documentElement;W=(this.isWatchPage||_.S("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.Qx(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Eb().dispatch(_.aKT(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.RT(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.r.setFullscreenLoggingForShorts=function(W){var e,t,b;return _.F(function(m){if(m.nextAddress==1)return _.a(m,(e=_.tv())==null?void 0:e.getPlayerPromise(),2);t=m.yieldResult;(b=t)==null||b.setAppFullscreen(W);_.u8(m)})};
_.r.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.XB(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.r.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.XB(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.r.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.XB(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.r.updateScrollAndMasthead=function(W,e,t,b){this.iMaxTheaterMode||(b=!1);var m=_.ee().resolve(_.WS).getCurrentPage();W||e||b?(document.body.classList.add("no-scroll"),m.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.aH(this,this.onScroll)),m.setScrollTop(0),_.XB(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.jy()+"px"})):t?_.q2(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.q2(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
m.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.aH(this,this.onScroll)));this.mastheadHidden=W||e||t;this.updateMastheadCssHeight();_.S("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.r.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.r.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.q2(this.hostElement,"yt-navigate",{endpoint:W})};
_.r.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.rz(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.r.onSetPushNotificationsEnabledCommand=function(W){var e=this,t=_.l(W,u81);t&&typeof t.enabled==="boolean"&&(Notification.permission!=="granted"?YH9().then(function(){Notification.permission==="granted"?(nnM(!t.enabled).then(TTE),t.successAction&&_.X5(e.hostElement,[t.successAction])):t.failureAction&&_.X5(e.hostElement,[t.failureAction])}):(nnM(!t.enabled).then(TTE),t.successAction&&_.X5(this.hostElement,[t.successAction])))};
_.r.onYtSignalActionEnableChromeNotifications=function(){z_C(!0)};
_.r.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.l(this.topbarData.hotkeyDialog,DUS)}}})};
_.r.onYtSignalActionShowKeyboardShortcutDialog=function(){_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.r.onYtEndpointChangeHandler=function(W,e){var t=_.Fq(_.ZU);t.pendingPrefetchJob_&&(e=!(!e||e.autonav!="1"),t.pendingPrefetchJob_.resolve(W&&_.rHz(W)?_.qPs(W,e):""),t.pendingPrefetchJob_=null);_.RT(this.hostElement,"yt-pause-active-page-context");_.RT(this.hostElement,"ytd-log-youthere-nav");_.RT(this.hostElement,"yt-prepare-page-dispose")};
_.r.handleCommandWithCommandHandler=function(W,e){_.uL.instance.resolveCommand(W,{form:{element:e}})};
_.r.onYtTimedCommand=function(W){var e=this;W=_.l(W,bxU);var t=W.command;t&&_.CU(_.Tm,function(){var b=_.l(t,_.SUy);b?(_.uL.instance.resolveCommand(t),e.maybeLogGetAnswerRequestTick(b)):_.IT(e.hostElement,[t],e.hostElement)},W.timeoutMs||0)};
_.r.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.gy("search_overview_answer"),_.Tv("so_rq",void 0,"search_overview_answer"))};
_.r.onYtSignalActionSkipNavigation=function(){var W=_.ee().resolve(_.WS).getCurrentPage();_.EH(W)};
_.r.onYtSignalActionCopyDebugData=function(){qmw()};
_.r.handleEntityUpdateCommand=function(W){_.vm(_.l(W,_.luD).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.r.logFlowLoggingEventCommand=function(W){if(W=_.l(W,_.zA9))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var e=W.flowEventNamespace,t=W.flowEventType,b=W.flowType;b&&e&&t&&_.Ntc(_.IX(e,t,W.flowEventMetadata),b)}else{e=_.wD();t=W.flowEventNamespace;b=W.flowEventType;var m=W.flowType;m&&t&&b&&_.aX(e,_.IX(t,b,W.flowEventMetadata),m,W.flowNonce)}};
_.r.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.r.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.r.onTouchStart=function(){var W=_.pT();_.fc()&&_.Pe(W.JSC$11186_screenManager,{visualElement:W.ve})};
_.r.handleSelectLanguageCommand=function(W){if(W=_.l(W,IJT).hl){var e=_.B6();e.set("hl",W);e.save();_.ee().resolve(_.$6).reload()}};
_.r.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.r.handleOpenPopupNavigationEndpoints=function(W,e){_.S("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,e)};
_.r.handleSaveCommandToSessionStorage=function(W){if(W=_.l(W,_.SlN)){var e=W.key;e&&W.command&&window.sessionStorage.setItem(e,JSON.stringify(W.command))}};
_.r.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.gQ(W)})};
_.r.onDeviceThemeChanged=function(){var W=_.yI();_.oT(_.B6(),185,W);_.B6().save()};
_.r.handleYtRegisterPromoCommand=function(W){if(_.l(W,wMU)){var e=_.ee().resolve(_.WS).getCurrentPage()||this.hostElement;ZTT().registerPromoCommand(_.l(W,wMU),e)}};
_.r.onYtNavigateHomeAction=function(){if(!_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,e,t,b,m=(b=(W=this.topbarData)==null?void 0:(e=W.logo)==null?void 0:(t=e.topbarLogoRenderer)==null?void 0:t.endpoint)!=null?b:_.DB;this.ytComponentBehavior.resolveCommand(m)}};
_.r.onYtLocationCollectionCommand=function(W){y8B(_.l(W,pMg))};
_.r.onYtGetLocationCommand=function(W){w6C(_.l(W,k0w),this)};
_.r.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.r.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.r.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.r.onThemeSelected=function(W,e){var t=_.B6(),b=W||e?W:_.yI(),m=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.cHK(_.I_(window.location.href));_.oT(0,165,W);_.oT(0,174,e);t.save();m&&_.RT(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.RT(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.r.getCurrentTheme=function(){return _.CB()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.jf()};
_.r.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.r.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.r.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.r.handleShowConsentPrimitive=function(W){var e=this,t,b;return _.F(function(m){if(m.nextAddress==1){try{t=(b=_.tv())==null?void 0:b.getPlayerPromise()}catch(q){}return _.a(m,YrE(W,t),2)}_.RT(e.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.u8(m)})};
_.r.handleSelectActiveIdentityEndpointInternal=function(W){_.KB();W=_.l(W,_.sUe);if(W!=null&&W.supportedTokens){W=_.R(W.supportedTokens);for(var e=W.next();!e.done;e=W.next())e=e.value,e.accountSigninToken&&_.VI(e.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.r.handleUpdatePermissionRoleCommand=function(W){if(W=_.l(W,_.OM8)){var e;this.hasDelegation=!((e=_.l(W.renderer,_.x_y))==null||!e.status)}};
_.r.registerViewTransitionTasks=function(){var W=this,e=_.ee().resolve(_.Wi(_.q1));if(e){var t,b=(t=this.guide)==null?void 0:t.querySelector("#scrim"),m,q=(m=this.guide)==null?void 0:m.querySelector("#contentContainer");b&&q&&(t={beforeTransition:function(){var Q;(Q=W.guide)!=null&&Q.persistent||(b.style.viewTransitionName="app-drawer-scrim",q.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Q;(Q=W.guide)!=null&&Q.persistent||(b.style.viewTransitionName="",q.style.viewTransitionName="")}},E_(e,"slide",t),E_(e,"zoom",t))}};
_.Ec.Object.defineProperties(Y7.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.S("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Ec.Object.defineProperties(Y7,{template:{configurable:!0,enumerable:!0,get:function(){if(pWQ===void 0){var W=document.createElement("template");_.p(W,'\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<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\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');
W.content.insertBefore(_.N().content.cloneNode(!0),W.content.firstChild);pWQ=W}W=pWQ;return W}}});
Y7.prototype.onOpenHotkeyDialog=Y7.prototype.onOpenHotkeyDialog;Y7.prototype.setFullscreen=Y7.prototype.setFullscreen;Y7.prototype.onAddElementToApp=Y7.prototype.onAddElementToApp;Y7.prototype.onDrawerIronSelect=Y7.prototype.onDrawerIronSelect;Y7.prototype.onGuideOpenButtonHover=Y7.prototype.onGuideOpenButtonHover;Y7.prototype.onRequestPanelModeChange=Y7.prototype.onRequestPanelModeChange;Y7.prototype.onPageDataUpdated=Y7.prototype.onPageDataUpdated;Y7.prototype.onPageChanged=Y7.prototype.onPageChanged;
Y7.prototype.onSetTheaterModeEnabled=Y7.prototype.onSetTheaterModeEnabled;Y7.prototype.updateMastheadData=Y7.prototype.updateMastheadData;Y7.prototype.onYtPageManagerAttached=Y7.prototype.onYtPageManagerAttached;Y7.prototype.observeGuideVisibility=Y7.prototype.observeGuideVisibility;Y7.prototype.guideIsVisibleButNotPersistentSelectorChanged=Y7.prototype.guideIsVisibleButNotPersistentSelectorChanged;Y7.prototype.isInlinePreviewEnabledChanged=Y7.prototype.isInlinePreviewEnabledChanged;
Y7.prototype.isWatchPageChanged=Y7.prototype.isWatchPageChanged;Y7.prototype.dispatchFrostedGlassMode=Y7.prototype.dispatchFrostedGlassMode;_.P([_.y(_.fu),_.Y("design:type",Object)],Y7.prototype,"ytdReduxBehavior",void 0);_.P([_.y(_.GP.YtEventForwardingBehavior),_.Y("design:type",Object)],Y7.prototype,"ytEventForwardingBehavior",void 0);_.P([_.y(_.v4.YtOpenPopupBehavior),_.Y("design:type",Object)],Y7.prototype,"ytOpenPopupBehavior",void 0);
_.P([_.y(_.qM.YtActionHandlerBehavior),_.Y("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.P([_.y({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.P3.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.S("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.Y("design:type",Object)],Y7.prototype,"ytActionRouterBehavior",void 0);_.P([_.y(fU1.YtdAppBehavior),_.Y("design:type",Object)],Y7.prototype,"ytdAppBehavior",void 0);_.P([_.y(_.Ge.YtEndpointBehavior),_.Y("design:type",Object)],Y7.prototype,"ytEndpointBehavior",void 0);_.P([_.y(fpS.YtEndpointHandlerWithYpcBehavior),_.Y("design:type",Object)],Y7.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.P([_.y(y1C.YtLogYpcFlowCommandsBehavior),_.Y("design:type",Object)],Y7.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.P([_.y(_.d.YtRendererBehavior),_.Y("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.P([_.y(_.P1.YtComponentBehavior),_.Y("design:type",Object)],Y7.prototype,"ytComponentBehavior",void 0);_.P([_.J({selector:_.rGl}),_.Y("design:type",Object)],Y7.prototype,"tabGesturesIsActive",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Y7.prototype,"renderGuide",void 0);
_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"guidePersistentAndVisible",void 0);_.P([_.J({selector:_.mYB}),_.Y("design:type",Boolean)],Y7.prototype,"guideIsVisibleButNotPersistent",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"standalone",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"miniGuideVisible",void 0);
_.P([_.J({selector:_.Grg}),_.Y("design:type",Number)],Y7.prototype,"miniplayerPlaybackState",void 0);_.P([_.J({selector:_.gO,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"miniplayerIsActive",void 0);_.P([_.J({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],Y7.prototype,"isInlinePreviewEnabled",void 0);_.P([_.J(),_.Y("design:type",Boolean)],Y7.prototype,"isInlinePreviewDisabled",void 0);
_.P([_.J({reflectToAttribute:!0,value:function(){return _.MD("START_IN_FULL_WINDOW_MODE")}}),
_.Y("design:type",Boolean)],Y7.prototype,"mastheadHidden",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"playerFullscreen",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"deprecateFullerscreenUi",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"fullscreen",void 0);_.P([_.J({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"hideHeaderShadow",void 0);
_.P([_.J({value:{GUIDE_ALT_LABEL:_.Gv("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Y("design:type",Object)],Y7.prototype,"menuStrings",void 0);_.P([_.J({computed:"computeTopbarData(data)"}),_.Y("design:type",Object)],Y7.prototype,"topbarData",void 0);_.P([_.J({selector:_.Tq}),_.Y("design:type",Boolean)],Y7.prototype,"isWatchPage",void 0);_.P([_.J({selector:_.uQD,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"isShortsPage",void 0);
_.P([_.J({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Y("design:type",Boolean)],Y7.prototype,"isMiniAppPage",void 0);_.P([_.J({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.Y("design:type",Boolean)],Y7.prototype,"isBrowsePage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Y7.prototype,"scrolling",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"hasDelegation",void 0);_.P([_.J({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Y7.prototype,"guideScrolledByTouch",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"darkerDarkTheme",void 0);
_.P([_.J(),_.Y("design:type",Object)],Y7.prototype,"isFrostedGlassInitialized",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"frostedGlassExp",void 0);_.P([_.J({selector:function(W){return W.ui.chipBarIsSticky}}),
_.Y("design:type",Boolean)],Y7.prototype,"chipBarIsSticky",void 0);_.P([_.J({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Y("design:type",Boolean)],Y7.prototype,"isHomePage",void 0);_.P([_.J({reflectToAttribute:!0}),_.Y("design:type",Object)],Y7.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.P([_.J(),_.Y("design:type",Object)],Y7.prototype,"ephemeralActionsEnabled",void 0);_.P([_.J(),_.Y("design:type",Object)],Y7.prototype,"clientOnlyWizTooltipsEnabled",void 0);
_.P([_.UM("guide"),_.Y("design:type",Object)],Y7.prototype,"guide",void 0);_.P([_.UM("guide-service"),_.Y("design:type",DME)],Y7.prototype,"guideService",void 0);_.P([_.UM("guide-inner-content"),_.Y("design:type",HTMLDivElement)],Y7.prototype,"guideInnerContent",void 0);_.P([_.J({selector:_.Dd2}),_.Y("design:type",String)],Y7.prototype,"frostedGlassMode",void 0);
_.P([_.ul("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"dispatchFrostedGlassMode",null);_.P([_.J({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Y("design:type",Object)],Y7.prototype,"isFrostedGlassDisabled",void 0);
_.P([_.ul("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"isWatchPageChanged",null);_.P([_.T("isHomePage","chipBarIsSticky"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y7.prototype,"applyFrostedGlassToChipBar",null);_.P([_.J(),_.Y("design:type",Object)],Y7.prototype,"isChannelOrPlaylistPage",void 0);
_.P([_.BG("isInlinePreviewEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"isInlinePreviewEnabledChanged",null);_.P([_.ul("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.P([_.ul("guidePersistentAndVisible","miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"observeGuideVisibility",null);_.P([_.wz("attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Y7.prototype,"onYtPageManagerAttached",null);_.P([_.ul("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Y7.prototype,"updateMastheadData",null);
_.P([_.wz("yt-set-theater-mode-enabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Y7.prototype,"onSetTheaterModeEnabled",null);_.P([_.wz("yt-page-type-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Y7.prototype,"onPageChanged",null);_.P([_.wz("yt-page-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"onPageDataUpdated",null);
_.P([_.wz("yt-request-panel-mode-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],Y7.prototype,"onRequestPanelModeChange",null);_.P([_.wz("yt-guide-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"onGuideOpenButtonHover",null);_.P([_.wz("app-drawer-transitioned"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Y7.prototype,"onDrawerIronSelect",null);
_.P([_.wz("yt-add-element-to-app"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Y7.prototype,"onAddElementToApp",null);_.P([_.wz("yt-set-fullerscreen-styles"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"setFullscreen",null);_.P([_.wz("yt-open-hotkey-dialog"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y7.prototype,"onOpenHotkeyDialog",null);
_.P([_.h({is:"ytd-app"})],Y7);_.sj().processSignal("eor");
_.Tg();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
